From ddbc5869fa74fd64714173ec4dec7a244d649ca1 Mon Sep 17 00:00:00 2001 From: pIvan Date: Wed, 27 May 2020 22:03:07 +0200 Subject: [PATCH] #17 - Fixed hex value validation issue --- docs/index.html | 2 +- ...8e03394d18b4d1.js => main-es2015.34c003b1ea2585bb6332.js} | 2 +- ...fc18e03394d18b4d1.js => main-es5.34c003b1ea2585bb6332.js} | 2 +- projects/iplab/ngx-color-picker/package.json | 2 +- .../components/parts/inputs/hex-input/hex-input.component.ts | 5 ++++- 5 files changed, 8 insertions(+), 5 deletions(-) rename docs/{main-es2015.34cfc18e03394d18b4d1.js => main-es2015.34c003b1ea2585bb6332.js} (78%) rename docs/{main-es5.34cfc18e03394d18b4d1.js => main-es5.34c003b1ea2585bb6332.js} (80%) diff --git a/docs/index.html b/docs/index.html index 2384898..cdcfe49 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,5 +8,5 @@ - + diff --git a/docs/main-es2015.34cfc18e03394d18b4d1.js b/docs/main-es2015.34c003b1ea2585bb6332.js similarity index 78% rename from docs/main-es2015.34cfc18e03394d18b4d1.js rename to docs/main-es2015.34c003b1ea2585bb6332.js index b1428d6..8e13114 100644 --- a/docs/main-es2015.34cfc18e03394d18b4d1.js +++ b/docs/main-es2015.34c003b1ea2585bb6332.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"Eh/9":function(e,t,n){var s,r;r=null,window.PR_SHOULD_USE_CONTINUATION=!0,function(){function n(e,t,n,s){t&&(n(e={a:t,e}),s.push.apply(s,e.g))}function o(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var s=n.nodeType;t=1===s?t?e:n:3===s&&C.test(n.nodeValue)?e:t}return t===e?void 0:t}function i(e,t){var s,o={};!function(){for(var n=e.concat(t),i=[],l={},a=0,c=n.length;a=0;)o[h.charAt(d)]=u;l.hasOwnProperty(h=""+(u=u[1]))||(i.push(u),l[h]=r)}i.push(/[\S\s]/),s=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=h[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function s(e){var s=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),r=(e=[],["["]);(o="^"===s[0])&&r.push("^");for(var o=o?1:0,i=s.length;o122||(l<65||a>90||e.push([32|Math.max(65,a),32|Math.min(l,90)]),l<97||a>122||e.push([-33&Math.max(97,a),-33&Math.min(l,122)]))}for(e.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]})),s=[],i=[],o=0;oa[0]&&(a[1]+1>a[0]&&r.push("-"),r.push(n(a[1])));return r.push("]"),r.join("")}function r(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),r=t.length,l=[],a=0,c=0;a=2&&"["===e?t[a]=s(u):"\\"!==e&&(t[a]=u.replace(/[A-Za-z]/g,(function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"})));return t.join("")}for(var o=0,i=!1,l=!1,a=0,c=e.length;a=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y="src"),g||(d[m]=y)}if(v=c,c+=m.length,g){var _=m.indexOf(g=b[1]),w=_+g.length;b[2]&&(_=(w=m.length-b[2].length)-g.length),y=y.substring(5),n(l+v,m.substring(0,_),e,a),n(l+v+_,g,u(y,g),a),n(l+v+w,m.substring(w),e,a)}else a.push(l+v,y)}r.g=a}}function l(e){var t=[],n=[];t.push(e.tripleQuotedStrings?["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,r,"'\""]:e.multiLineStrings?["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,r,"'\"`"]:["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,r,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,r]);var s=e.hashComments;if(s&&(e.cStyleComments?(t.push(s>1?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,r,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,r,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,r])):t.push(["com",/^#[^\n\r]*/,r,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,r]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,r])),s=e.regexLiterals){var o=(s=s>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+s+"])(?:[^/\\x5B\\x5C"+s+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+s+"]|\\x5C"+o+")*(?:\\x5D|$))+/)")])}return(s=e.types)&&n.push(["typ",s]),(s=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+s.replace(/[\s,]+/g,"|")+")\\b"),r]),t.push(["pln",/^\s+/,r," \r\n\t\xa0"]),s="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(s+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,r],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,r],["pln",/^[$_a-z][\w$@]*/i,r],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,r,"0123456789"],["pln",/^\\[\S\s]?/,r],["pun",RegExp(s),r]),i(t,n)}function a(e,t,n){function s(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var a=e.nodeValue,c=a.match(i);c&&(t=a.substring(0,c.index),e.nodeValue=t,(a=a.substring(c.index+c[0].length))&&e.parentNode.insertBefore(l.createTextNode(a),e.nextSibling),r(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)r(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)s(e)}function r(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var s=n?t.cloneNode(!1):t;if(r=t.parentNode){var r=e(r,1),o=t.nextSibling;r.appendChild(s);for(var i=o;i;i=o)o=i.nextSibling,r.appendChild(i)}return s}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;c.push(e)}for(var o=/(?:^|\s)nocode(?:\s|$)/,i=/\r\n?|\n/,l=e.ownerDocument,a=l.createElement("li");e.firstChild;)a.appendChild(e.firstChild);for(var c=[a],u=0;u=0;){var s=t[n];S.hasOwnProperty(s)?f.console&&console.warn("cannot override language handler %s",s):S[s]=e}}function u(e,t){return e&&S.hasOwnProperty(e)||(e=/^\s*=C&&(h+=2),n>=x&&(g+=2)}}finally{_&&(_.style.display=v)}}catch(T){f.console&&console.log(T&&T.stack||T)}}var d,p,f=window,g=[d=[[p=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],m=[d,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[m,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],b=[p,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],v=[p,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],_=[p,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],w=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C=/\S/,x=l({keywords:[g,y,d=[d,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",b,v,p=[p,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),S={};c(x,["default-code"]),c(i([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),c(i([["pln",/^\s+/,r," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,r,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),c(i([],[["atv",/^[\S\s]+/]]),["uq.val"]),c(l({keywords:g,hashComments:!0,cStyleComments:!0,types:w}),["c","cc","cpp","cxx","cyc","m"]),c(l({keywords:"null,true,false"}),["json"]),c(l({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:w}),["cs"]),c(l({keywords:m,cStyleComments:!0}),["java"]),c(l({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),c(l({keywords:b,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),c(l({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),c(l({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),c(l({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),c(l({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),c(l({keywords:_,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),c(i([],[["str",/^[\S\s]+/]]),["regex"]);var k=f.PR={createSimpleLexer:i,registerLangHandler:c,sourceDecorator:l,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:f.prettyPrintOne=function(e,t,n){var s=document.createElement("div");return s.innerHTML="
"+e+"
",s=s.firstChild,n&&a(s,n,!0),h({h:t,j:n,c:s,i:1}),s.innerHTML},prettyPrint:f.prettyPrint=function(e,t){for(var n=(s=t||document.body).ownerDocument||document,s=[s.getElementsByTagName("pre"),s.getElementsByTagName("code"),s.getElementsByTagName("xmp")],i=[],l=0;l{throw e},0)}const l={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete(){}},a=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof u?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[p](){return this}static create(e,t,n){const s=new f(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class g extends f{constructor(e,t,n,r){let o;super(),this._parentSubscriber=e;let i=this;s(t)?o=t:t&&(o=t.next,n=t.error,r=t.complete,t!==l&&(i=Object.create(t),s(i.unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(i(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(){}let b=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,r=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(l)}(e,t,n);if(r.add(s?s.call(r,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),o.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=v(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[m](){return this}pipe(...e){return 0===e.length?this:((t=e)?1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)}:y)(this);var t}toPromise(e){return new(e=v(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function v(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const _=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class w extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends f{constructor(e){super(e),this.destination=e}}let x=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new _;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;rnew S(e,t),e})();class S extends x{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function k(e){return e&&"function"==typeof e.schedule}class A extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const E=e=>t=>{for(let n=0,s=e.length;n{if(e&&"function"==typeof e[m])return o=e,e=>{const t=o[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if((t=e)&&"number"==typeof t.length&&"function"!=typeof t)return E(e);var t,n,s,r,o;if((n=e)&&"function"!=typeof n.subscribe&&"function"==typeof n.then)return r=e,e=>(r.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i),e);if(e&&"function"==typeof e[P])return s=e,e=>{const t=s[P]();for(;;){const n=t.next();if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function I(e,t,n,s,r=new A(e,n,s)){if(!r.closed)return t instanceof b?t.subscribe(r):O(t)(r)}class M extends f{notifyNext(e,t,n,s,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function V(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new N(e,t))}}class N{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new F(e,this.project,this.thisArg))}}class F extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function R(e,t){return new b(n=>{const s=new h;let r=0;return s.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}class D{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new j(e,this.project,this.concurrent))}}class j extends M{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function H(e){return e}function q(e,t){return t?R(e,t):new b(E(e))}function B(){return function(e){return e.lift(new L(e))}}class L{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new z(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class z extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class K extends b{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new Q(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return B()(this)}}const Z=(()=>{const e=K.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class Q extends C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function G(){return new x}function U(e){return{toString:e}.toString()}function W(e,t,n){return U(()=>{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Y=W("Inject",e=>({token:e})),X=W("Optional"),J=W("Self"),$=W("SkipSelf");var ee=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function te(e){for(let t in e)if(e[t]===te)return t;throw Error("Could not find renamed property on target object.")}function ne(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function se(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function re(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function oe(e){return ie(e,e[ae])||ie(e,e[he])}function ie(e,t){return t&&t.token===e?t:null}function le(e){return e&&(e.hasOwnProperty(ce)||e.hasOwnProperty(de))?e[ce]:null}const ae=te({"\u0275prov":te}),ce=te({"\u0275inj":te}),ue=te({"\u0275provFallback":te}),he=te({ngInjectableDef:te}),de=te({ngInjectorDef:te});function pe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(pe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function fe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ge=te({__forward_ref__:te});function me(e){return e.__forward_ref__=me,e.toString=function(){return pe(this())},e}function ye(e){return"function"==typeof(t=e)&&t.hasOwnProperty(ge)&&t.__forward_ref__===me?e():e;var t}const be="undefined"!=typeof globalThis&&globalThis,ve="undefined"!=typeof window&&window,_e="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,we="undefined"!=typeof global&&global,Ce=be||we||ve||_e,xe=te({"\u0275cmp":te}),Se=te({"\u0275dir":te}),ke=te({"\u0275pipe":te}),Ae=te({"\u0275mod":te}),Ee=te({"\u0275loc":te}),Te=te({"\u0275fac":te}),Pe=te({__NG_ELEMENT_ID__:te});class Oe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=se({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ie=new Oe("INJECTOR",-1),Me={},Ve=/\n/gm,Ne=te({provide:String,useValue:te});let Fe,Re=void 0;function De(e){const t=Re;return Re=e,t}function je(e){const t=Fe;return Fe=e,t}function He(e,t=ee.Default){if(void 0===Re)throw new Error("inject() must be called from an injection context");return null===Re?Be(e,void 0,t):Re.get(e,t&ee.Optional?null:void 0,t)}function qe(e,t=ee.Default){return(Fe||He)(ye(e),t)}function Be(e,t,n){const s=oe(e);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&ee.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${pe(e)}]`)}function Le(e){const t=[];for(let n=0;nArray.isArray(e)?Ze(e,t):t(e))}function Qe(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ge(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ue(e,t,n){let s=Ye(e,t);return s>=0?e[1|s]=n:(s=~s,function(e,t,n,s){let r=e.length;if(r==t)e.push(n,s);else if(1===r)e.push(s,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=s}}(e,s,t,n)),s}function We(e,t){const n=Ye(e,t);if(n>=0)return e[1|n]}function Ye(e,t){return function(e,t,n){let s=0,r=e.length>>1;for(;r!==s;){const n=s+(r-s>>1),o=e[n<<1];if(t===o)return n<<1;o>t?r=n:s=n+1}return~(r<<1)}(e,t)}const Xe=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Je=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),$e={},et=[];let tt=0;function nt(e){return U(()=>{const t=e.type,n=t.prototype,s={},r={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:s,inputs:null,outputs:null,exportAs:e.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:e.changeDetection===Xe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||et,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Je.Emulated,id:"c",styles:e.styles||et,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,i=e.features,l=e.pipes;return r.id+=tt++,r.inputs=lt(e.inputs,s),r.outputs=lt(e.outputs),i&&i.forEach(e=>e(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(st):null,r.pipeDefs=l?()=>("function"==typeof l?l():l).map(rt):null,r})}function st(e){return ut(e)||function(e){return e[Se]||null}(e)}function rt(e){return function(e){return e[ke]||null}(e)}const ot={};function it(e){const t={type:e.type,bootstrap:e.bootstrap||et,declarations:e.declarations||et,imports:e.imports||et,exports:e.exports||et,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&U(()=>{ot[e.id]=e.type}),t}function lt(e,t){if(null==e)return $e;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=s,t&&(t[r]=o)}return n}const at=nt;function ct(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ut(e){return e[xe]||null}function ht(e,t){return e.hasOwnProperty(Te)?e[Te]:null}function dt(e,t){const n=e[Ae]||null;if(!n&&!0===t)throw new Error(`Type ${pe(e)} does not have '\u0275mod' property.`);return n}function pt(e){return Array.isArray(e)&&"object"==typeof e[1]}function ft(e){return Array.isArray(e)&&!0===e[1]}function gt(e){return 0!=(8&e.flags)}function mt(e){return 2==(2&e.flags)}function yt(e){return 1==(1&e.flags)}function bt(e){return null!==e.template}function vt(e){return 0!=(512&e[2])}let _t=void 0;function wt(e){return!!e.listen}const Ct={createRenderer:(e,t)=>void 0!==_t?_t:"undefined"!=typeof document?document:void 0};function xt(e){for(;Array.isArray(e);)e=e[0];return e}function St(e,t){return xt(t[e+19])}function kt(e,t){return xt(t[e.index])}function At(e,t){return e.data[t+19]}function Et(e,t){return e[t+19]}function Tt(e,t){const n=t[e];return pt(n)?n:n[0]}function Pt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ot(e){return 4==(4&e[2])}function It(e){return 128==(128&e[2])}function Mt(e,t){return null===e||null==t?null:e[t]}function Vt(e){e[18]=0}const Nt={lFrame:Jt(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ft(){return Nt.bindingsEnabled}function Rt(){return Nt.lFrame.lView}function Dt(){return Nt.lFrame.tView}function jt(e){Nt.lFrame.contextLView=e}function Ht(){return Nt.lFrame.previousOrParentTNode}function qt(e,t){Nt.lFrame.previousOrParentTNode=e,Nt.lFrame.isParent=t}function Bt(){return Nt.lFrame.isParent}function Lt(){return Nt.checkNoChangesMode}function zt(e){Nt.checkNoChangesMode=e}function Kt(){const e=Nt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Zt(){return Nt.lFrame.bindingIndex++}function Qt(e,t){const n=Nt.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function Gt(){return Nt.lFrame.currentQueryIndex}function Ut(e){Nt.lFrame.currentQueryIndex=e}function Wt(e,t){const n=Xt();Nt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Yt(e,t){const n=Xt(),s=e[1];Nt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=s,n.contextLView=e,n.bindingIndex=s.bindingStartIndex}function Xt(){const e=Nt.lFrame,t=null===e?null:e.child;return null===t?Jt(e):t}function Jt(e){const t={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:e,child:null};return null!==e&&(e.child=t),t}function $t(){const e=Nt.lFrame;return Nt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const en=$t;function tn(){const e=$t();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function nn(){return Nt.lFrame.selectedIndex}function sn(e){Nt.lFrame.selectedIndex=e}function rn(){const e=Nt.lFrame;return At(e.tView,e.selectedIndex)}function on(){Nt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ln(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n=s)break}else t[i]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(i)):o.call(i)}class pn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function fn(e,t,n){const s=wt(e);let r=0;for(;rt){i=o-1;break}}}for(;o>16}function wn(e,t){let n=_n(e),s=t;for(;n>0;)s=s[15],n--;return s}function Cn(e){return"string"==typeof e?e:null==e?"":""+e}function xn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Cn(e)}const Sn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ce))();function kn(e){return e instanceof Function?e():e}let An=!0;function En(e){const t=An;return An=e,t}let Tn=0;function Pn(e,t){const n=In(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,On(s.data,e),On(t,null),On(s.blueprint,null));const r=Mn(e,t),o=e.injectorIndex;if(bn(r)){const e=vn(r),n=wn(r,t),s=n[1].data;for(let r=0;r<8;r++)t[o+r]=n[e+r]|s[e+r]}return t[o+8]=r,o}function On(e,t){e.push(0,0,0,0,0,0,0,0,t)}function In(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Mn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],s=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function Vn(e,t,n){!function(e,t,n){let s="string"!=typeof n?n[Pe]:n.charCodeAt(0)||0;null==s&&(s=n[Pe]=Tn++);const r=255&s,o=1<0?255&t:t}(n);if("function"==typeof r){Wt(t,e);try{const e=r();if(null!=e||s&ee.Optional)return e;throw new Error(`No provider for ${xn(n)}!`)}finally{en()}}else if("number"==typeof r){if(-1===r)return new Bn(e,t);let o=null,i=In(e,t),l=-1,a=s&ee.Host?t[16][6]:null;for((-1===i||s&ee.SkipSelf)&&(l=-1===i?Mn(e,t):t[i+8],qn(s,!1)?(o=t[1],i=vn(l),t=wn(l,t)):i=-1);-1!==i;){l=t[i+8];const e=t[1];if(Hn(r,i,e.data)){const e=Rn(i,t,n,o,s,a);if(e!==Fn)return e}qn(s,t[1].data[i+8]===a)&&Hn(r,i,t)?(o=e,i=vn(l),t=wn(l,t)):i=-1}}}if(s&ee.Optional&&void 0===r&&(r=null),0==(s&(ee.Self|ee.Host))){const e=t[9],o=je(void 0);try{return e?e.get(n,r,s&ee.Optional):Be(n,r,s&ee.Optional)}finally{je(o)}}if(s&ee.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${xn(n)}]`)}const Fn={};function Rn(e,t,n,s,r,o){const i=t[1],l=i.data[e+8],a=Dn(l,i,n,null==s?mt(l)&&An:s!=i&&3===l.type,r&ee.Host&&o===l);return null!==a?jn(t,i,a,l):Fn}function Dn(e,t,n,s,r){const o=e.providerIndexes,i=t.data,l=65535&o,a=e.directiveStart,c=o>>16,u=r?l+c:e.directiveEnd;for(let h=s?l:l+c;h=a&&e.type===n)return h}if(r){const e=i[a];if(e&&bt(e)&&e.type===n)return a}return null}function jn(e,t,n,s){let r=e[n];const o=t.data;if(r instanceof pn){const i=r;if(i.resolving)throw new Error(`Circular dep for ${xn(o[n])}`);const l=En(i.canSeeViewProviders);let a;i.resolving=!0,i.injectImpl&&(a=je(i.injectImpl)),Wt(e,s);try{r=e[n]=i.factory(void 0,o,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{onChanges:s,onInit:r,doCheck:o}=t;s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{i.injectImpl&&je(a),En(l),i.resolving=!1,en()}}return r}function Hn(e,t,n){const s=64&e,r=32&e;let o;return o=128&e?s?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:s?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(o&1<o?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==Jn(t,c,0)||2&s&&c!==e){if(ns(s))return!1;i=!0}}}}else{if(!i&&!ns(s)&&!ns(a))return!1;if(i&&ns(a))continue;i=!1,s=a|1&s}}return ns(s)||i}function ns(e){return 0==(1&e)}function ss(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&s?r+="."+i:4&s&&(r+=" "+i);else""===r||ns(i)||(t+=os(o,r),r=""),s=i,o=o||!ns(s);n++}return""!==r&&(t+=os(o,r)),t}const ls={};function as(e){const t=e[3];return ft(t)?t[3]:t}function cs(e){us(Dt(),Rt(),nn()+e,Lt())}function us(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&an(t,s,n)}else{const s=e.preOrderHooks;null!==s&&cn(t,s,0,n)}sn(n)}function hs(e,t){return e<<17|t<<2}function ds(e){return e>>17&32767}function ps(e){return 2|e}function fs(e){return(131068&e)>>2}function gs(e,t){return-131069&e|t<<2}function ms(e){return 1|e}function ys(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;s>1==-1){for(let e=9;e19&&us(e,t,0,Lt()),n(s,r)}finally{sn(o)}}function ks(e,t,n){Ft()&&(function(e,t,n,s){const r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Pn(n,t),Wn(s,t);const i=n.initialInputs;for(let l=r;lPromise.resolve(null))();function er(e){return e[7]||(e[7]=[])}function tr(e){return e.cleanup||(e.cleanup=[])}function nr(e,t){const n=e[9],s=n?n.get(Zn,null):null;s&&s.handleError(t)}function sr(e,t,n,s,r){for(let o=0;o0&&(e[n-1][4]=s[4]);const o=Ge(e,9+t);lr(s[1],s,!1,null);const i=o[5];null!==i&&i.detachView(o[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function ur(e,t){if(!(256&t[2])){const n=t[11];wt(n)&&n.destroyNode&&_r(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return dr(e[1],e);for(;t;){let n=null;if(pt(t))n=t[13];else{const e=t[9];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)pt(t)&&dr(t[1],t),t=hr(t,e);null===t&&(t=e),pt(t)&&dr(t[1],t),n=t&&t[4]}t=n}}(t)}}function hr(e,t){let n;return pt(e)&&(n=e[6])&&2===n.type?rr(n,e):e[3]===t?null:e[3]}function dr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let s=0;s=0?e[l]():e[-l].unsubscribe(),s+=2}else n[s].call(e[n[s+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&wt(t[11])&&t[11].destroy();const s=t[17];if(null!==s&&ft(t[3])){s!==t[3]&&ar(s,t);const n=t[5];null!==n&&n.detachView(e)}}}function pr(e,t,n,s){wt(e)?e.insertBefore(t,n,s):t.insertBefore(n,s,!0)}function fr(e,t,n){wt(e)?e.appendChild(t,n):t.appendChild(n)}function gr(e,t,n,s){null!==s?pr(e,t,n,s):fr(e,t,n)}function mr(e,t){return wt(e)?e.parentNode(t):t.parentNode}function yr(e,t,n,s){const r=function(e,t,n){let s=t.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(t=s).parent;if(null==s){const e=n[6];return 2===e.type?or(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return kt(t,n).parentNode;if(2&s.flags){const t=e.data,n=t[t[s.index].directiveStart].encapsulation;if(n!==Je.ShadowDom&&n!==Je.Native)return null}return kt(s,n)}(e,s,t);if(null!=r){const e=t[11],o=function(e,t){if(2===e.type){const n=rr(e,t);return null===n?null:br(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?kt(e,t):null}(s.parent||t[6],t);if(Array.isArray(n))for(let t=0;t-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ur(this._lView[1],this._lView)}onDestroy(e){var t,n,s;t=this._lView[1],s=e,er(n=this._lView).push(s),t.firstCreatePass&&tr(t).push(n[7].length-1,null)}markForCheck(){Ws(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ys(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){zt(!0);try{Ys(e,t,n)}finally{zt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,_r(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class kr extends Sr{constructor(e){super(e),this._view=e}detectChanges(){Xs(this._view)}checkNoChanges(){!function(e){zt(!0);try{Xs(e)}finally{zt(!1)}}(this._view)}get context(){return null}}let Ar,Er,Tr;function Pr(e,t,n){return Ar||(Ar=class extends e{}),new Ar(kt(t,n))}function Or(e,t,n,s){return Er||(Er=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=vs(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[5];null!==s&&(n[5]=s.createEmbeddedView(t)),ws(t,n,e);const r=new Sr(n);return r._tViewNode=n[6],r}}),0===n.type?new Er(s,n,Pr(t,n,s)):null}function Ir(e,t,n,s){let r;Tr||(Tr=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return Pr(t,this._hostTNode,this._hostView)}get injector(){return new Bn(this._hostTNode,this._hostView)}get parentInjector(){const e=Mn(this._hostTNode,this._hostView),t=wn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let s=_n(e),r=t,o=t[6];for(;s>1;)r=r[15],o=r[6],s--;return o}(e,this._hostView,this._hostTNode);return bn(e)&&null!=n?new Bn(n,t):new Bn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-9}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){const e=o.get(Ke,null);e&&(r=e)}const i=e.create(o,s,void 0,r);return this.insert(i.hostView,t),i}insert(e,t){const n=e._lView,s=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),ft(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new Tr(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t);return function(e,t,n,s){const r=9+s,o=n.length;s>0&&(n[r-1][4]=t),s{class e{}return e.__NG_ELEMENT_ID__=()=>Nr(),e})();const Nr=Mr,Fr=new Oe("Set Injector scope."),Rr={},Dr={},jr=[];let Hr=void 0;function qr(){return void 0===Hr&&(Hr=new ze),Hr}function Br(e,t=null,n=null,s){return new Lr(e,n,t||qr(),s)}class Lr{constructor(e,t,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&Ze(t,n=>this.processProvider(n,e,t)),Ze([e],e=>this.processInjectorType(e,[],r)),this.records.set(Ie,Kr(void 0,this));const o=this.records.get(Fr);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof e?null:pe(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Me,n=ee.Default){this.assertNotDestroyed();const s=De(this);try{if(!(n&ee.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Oe)&&oe(e);t=n&&this.injectableDefInScope(n)?Kr(zr(e),Rr):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&ee.Self?qr():this.parent).get(e,t=n&ee.Optional&&t===Me?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(pe(e)),s)throw o;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=pe(t);if(Array.isArray(t))r=t.map(pe).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):pe(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(Ve,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{De(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(pe(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ye(e)))return!1;let s=le(e);const r=null==s&&e.ngModule||void 0,o=void 0===r?e:r,i=-1!==n.indexOf(o);if(void 0!==r&&(s=le(r)),null==s)return!1;if(null!=s.imports&&!i){let e;n.push(o);try{Ze(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,s||jr))}}this.injectorDefTypes.add(o),this.records.set(o,Kr(s.factory,Rr));const l=s.providers;if(null!=l&&!i){const t=e;Ze(l,e=>this.processProvider(e,t,l))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=Qr(e=ye(e))?e:ye(e&&e.provide);const r=function(e,t,n){return Zr(e)?Kr(void 0,e.useValue):Kr(function(e,t,n){let s=void 0;if(Qr(e)){const t=ye(e);return ht(t)||zr(t)}if(Zr(e))s=()=>ye(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...Le(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>qe(ye(e.useExisting));else{const r=ye(e&&(e.useClass||e.provide));if(r||function(e,t,n){let s="";throw e&&t&&(s=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${pe(e)}'`+s)}(t,n,e),!function(e){return!!e.deps}(e))return ht(r)||zr(r);s=()=>new r(...Le(e.deps))}var r;return s}(e,t,n),Rr)}(e,t,n);if(Qr(e)||!0!==e.multi){const e=this.records.get(s);e&&void 0!==e.multi&&Xn()}else{let t=this.records.get(s);t?void 0===t.multi&&Xn():(t=Kr(void 0,Rr,!0),t.factory=()=>Le(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===Dr?function(e){throw new Error(`Cannot instantiate cyclic dependency! ${e}`)}(pe(e)):t.value===Rr&&(t.value=Dr,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function zr(e){const t=oe(e),n=null!==t?t.factory:ht(e);if(null!==n)return n;const s=le(e);if(null!==s)return s.factory;if(e instanceof Oe)throw new Error(`Token ${pe(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=function(e,t){const n=[];for(let s=0;sn.factory(e):()=>new e}(e);throw new Error("unreachable")}function Kr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zr(e){return null!==e&&"object"==typeof e&&Ne in e}function Qr(e){return"function"==typeof e}const Gr=function(e,t,n){return function(e,t=null,n=null,s){const r=Br(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let Ur=(()=>{class e{static create(e,t){return Array.isArray(e)?Gr(e,t,""):Gr(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Me,e.NULL=new ze,e.\u0275prov=se({token:e,providedIn:"any",factory:()=>qe(Ie)}),e.__NG_ELEMENT_ID__=-1,e})(),Wr=new Map;const Yr=new Set;function Xr(e){return"string"==typeof e?e:e.text()}function Jr(e,t){let n=e.styles,s=e.classes,r=0;for(let o=0;ol(xt(e[s.index])).target:s.index;if(wt(n)){let i=null;if(!l&&a&&(i=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let o=0;on?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,r,s.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=o,i.__ngLastListenerFn__=o,h=!1;else{o=wo(s,t,o,!1);const e=n.listen(p.name||f,r,o);u.push(o,e),c&&c.push(r,m,g,g+1)}}else o=wo(s,t,o,!0),f.addEventListener(r,o,i),u.push(o),c&&c.push(r,m,g,i)}const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const e=p.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,Nt.lFrame.contextLView))[8]}(e)}const xo=[];function So(e,t,n,s,r){const o=e[n+1],i=null===t;let l=s?ds(o):fs(o),a=!1;for(;0!==l&&(!1===a||i);){const n=e[l+1];ko(e[l],t)&&(a=!0,e[l+1]=s?ms(n):ps(n)),l=s?ds(n):fs(n)}a&&(e[n+1]=s?ps(o):ms(o))}function ko(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ye(e,t)>=0}function Ao(e,t,n){return To(e,t,n,!1),Ao}function Eo(e,t){return To(e,t,null,!0),Eo}function To(e,t,n,s){const r=Rt(),o=Dt(),i=function(e){const t=Nt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+2,n}();if(o.firstUpdatePass&&function(e,t,n,s){const r=e.data;if(null===r[n+1]){const o=r[nn()+19],i=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(o,s)&&null===t&&!i&&(t=!1),t=function(e,t,n,s){const r=function(e){const t=Nt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=s?t.residualClasses:t.residualStyles;if(null===r)0===(s?t.classBindings:t.styleBindings)&&(n=Oo(n=Po(null,e,t,n,s),t.attrs,s),o=null);else{const i=t.directiveStylingLast;if(-1===i||e[i]!==r)if(n=Po(r,e,t,n,s),null===o){let n=function(e,t,n){const s=n?t.classBindings:t.styleBindings;if(0!==fs(s))return e[ds(s)]}(e,t,s);void 0!==n&&Array.isArray(n)&&(n=Po(null,e,t,n[1],s),n=Oo(n,t.attrs,s),function(e,t,n,s){e[ds(n?t.classBindings:t.styleBindings)]=s}(e,t,s,n))}else o=function(e,t,n){let s=void 0;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(u=!0)}else c=n;if(r)if(0!==a){const t=ds(e[l+1]);e[s+1]=hs(t,l),0!==t&&(e[t+1]=gs(e[t+1],s)),e[l+1]=131071&e[l+1]|s<<17}else e[s+1]=hs(l,0),0!==l&&(e[l+1]=gs(e[l+1],s)),l=s;else e[s+1]=hs(a,0),0===l?l=s:e[a+1]=gs(e[a+1],s),a=s;u&&(e[s+1]=ps(e[s+1])),So(e,c,s,!0),So(e,c,s,!1),function(e,t,n,s,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ye(o,t)>=0&&(n[s+1]=ms(n[s+1]))}(t,c,e,s,o),i=hs(l,a),o?t.classBindings=i:t.styleBindings=i}(r,o,t,n,i,s)}}(o,e,i,s),t!==ls&&io(r,i,t)){let l;null==n&&(l=function(){const e=Nt.lFrame;return null===e?null:e.currentSanitizer}())&&(n=l),function(e,t,n,s,r,o,i,l){if(3!==t.type)return;const a=e.data,c=a[l+1];Mo(1==(1&c)?Io(a,t,n,r,fs(c),i):void 0)||(Mo(o)||function(e){return 2==(2&e)}(c)&&(o=Io(a,null,n,r,l,i)),function(e,t,n,s,r){const o=wt(e);if(t)r?o?e.addClass(n,s):n.classList.add(s):o?e.removeClass(n,s):n.classList.remove(s);else{const t=-1==s.indexOf("-")?void 0:2;null==r?o?e.removeStyle(n,s,t):n.style.removeProperty(s):o?e.setStyle(n,s,r,t):n.style.setProperty(s,r)}}(s,i,St(nn(),n),r,o))}(o,o.data[nn()+19],r,r[11],e,r[i+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=pe(function(e){return e instanceof class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),s,i)}}function Po(e,t,n,s,r){let o=null;const i=n.directiveEnd;let l=n.directiveStylingLast;for(-1===l?l=n.directiveStart:l++;l0;){const t=e[r],o=Array.isArray(t),a=o?t[1]:t,c=null===a;let u=n[r+1];u===ls&&(u=c?xo:void 0);let h=c?We(u,s):a===s?u:void 0;if(o&&!Mo(h)&&(h=We(t,s)),Mo(h)&&(l=h,i))return l;const d=e[r+1];r=i?ds(d):fs(d)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(l=We(e,s))}return l}function Mo(e){return void 0!==e}function Vo(e,t=""){const n=Rt(),s=Dt(),r=e+19,o=s.firstCreatePass?_s(s,n[6],e,3,null,null):s.data[r],i=n[r]=function(e,t){return wt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);yr(s,n,i,o),qt(o,!1)}function No(e,t,n){const s=Rt(),r=function(e,t,n,s){return io(e,Zt(),n)?t+Cn(n)+s:ls}(s,e,t,n);return r!==ls&&function(e,t,n){const s=St(t,e),r=e[11];wt(r)?r.setValue(s,n):s.textContent=n}(s,nn(),r),No}function Fo(e,t,n){const s=Rt();return io(s,Zt(),t)&&Is(Dt(),rn(),s,e,t,s[11],n,!0),Fo}function Ro(e,t){const n=Pt(e)[1],s=n.data.length-1;ln(n,{directiveStart:s,directiveEnd:s+1})}function Do(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const s=[e];for(;t;){let r=void 0;if(bt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){s.push(r);const t=e;t.inputs=jo(e.inputs),t.declaredInputs=jo(e.declaredInputs),t.outputs=jo(e.outputs);const n=r.hostBindings;n&&Bo(e,n);const o=r.viewQuery,i=r.contentQueries;if(o&&Ho(e,o),i&&qo(e,i),ne(e.inputs,r.inputs),ne(e.declaredInputs,r.declaredInputs),ne(e.outputs,r.outputs),bt(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}t.afterContentChecked=t.afterContentChecked||r.afterContentChecked,t.afterContentInit=e.afterContentInit||r.afterContentInit,t.afterViewChecked=e.afterViewChecked||r.afterViewChecked,t.afterViewInit=e.afterViewInit||r.afterViewInit,t.doCheck=e.doCheck||r.doCheck,t.onDestroy=e.onDestroy||r.onDestroy,t.onInit=e.onInit||r.onInit}const t=r.features;if(t)for(let s=0;s=0;s--){const r=e[s];r.hostVars=t+=r.hostVars,r.hostAttrs=mn(r.hostAttrs,n=mn(n,r.hostAttrs))}}(s)}function jo(e){return e===$e?{}:e===et?[]:e}function Ho(e,t){const n=e.viewQuery;e.viewQuery=n?(e,s)=>{t(e,s),n(e,s)}:t}function qo(e,t){const n=e.contentQueries;e.contentQueries=n?(e,s,r)=>{t(e,s,r),n(e,s,r)}:t}function Bo(e,t){const n=e.hostBindings;e.hostBindings=n?(e,s)=>{t(e,s),n(e,s)}:t}class Lo{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function zo(e){e.type.prototype.ngOnChanges&&(e.setInput=Ko,e.onChanges=function(){const e=Zo(this),t=e&&e.current;if(t){const n=e.previous;if(n===$e)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function Ko(e,t,n,s){const r=Zo(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:$e,current:null}),o=r.current||(r.current={}),i=r.previous,l=this.declaredInputs[n],a=i[l];o[l]=new Lo(a&&a.currentValue,t,i===$e),e[s]=t}function Zo(e){return e.__ngSimpleChanges__||null}zo.ngInherit=!0;class Qo{}class Go{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${pe(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let Uo=(()=>{class e{}return e.NULL=new Go,e})(),Wo=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>Yo(e),e})();const Yo=function(e){return Pr(e,Ht(),Rt())};class Xo{}const Jo=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let $o=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ei(),e})();const ei=function(){const e=Rt(),t=Tt(Ht().index,e);return function(e){const t=e[11];if(wt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(pt(t)?t:e)};let ti=(()=>{class e{}return e.\u0275prov=se({token:e,providedIn:"root",factory:()=>null}),e})();class ni{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const si=new ni("9.0.7");class ri{constructor(){}supports(e){return so(e)}create(e){return new ii(e)}}const oi=(e,t)=>t;class ii{constructor(e){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=e||oi}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const o=!n||t&&t.currentIndex{s=this._trackByFn(t,e),null!==r&&to(r.trackById,s)?(o&&(r=this._verifyReinsertion(r,e,s,t)),to(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),o=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(to(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(to(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,s)):e=this._addAfter(new li(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ci),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ci),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class li{constructor(e,t){this.item=e,this.trackById=t,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 ai{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&to(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class ci{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new ai,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ui(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new pi(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){to(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class pi{constructor(e){this.key=e,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 fi=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new $,new X]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=se({token:e,providedIn:"root",factory:()=>new e([new ri])}),e})(),gi=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new $,new X]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=se({token:e,providedIn:"root",factory:()=>new e([new hi])}),e})();const mi=[new hi],yi=new fi([new ri]),bi=new gi(mi);let vi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>_i(e,Wo),e})();const _i=function(e,t){return Or(e,t,Ht(),Rt())};let wi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ci(e,Wo),e})();const Ci=function(e,t){return Ir(e,t,Ht(),Rt())},xi={};class Si extends Uo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ut(e);return new Ei(t,this.ngModule)}}function ki(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Ai=new Oe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Sn});class Ei extends Qo{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(is).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ki(this.componentDef.inputs)}get outputs(){return ki(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const o=e.get(n,xi,r);return o!==xi||s===xi?o:t.get(n,s,r)}}}(e,s.injector):e,o=r.get(Xo,Ct),i=r.get(ti,null),l=o.createRenderer(null,this.componentDef),a=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(wt(e))return e.selectRootElement(t,n===Je.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(l,n,this.componentDef.encapsulation):bs(a,o.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(a)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:Sn,clean:$s,playerHandler:null,flags:0},p=Ts(0,-1,null,1,0,null,null,null,null,null),f=vs(null,p,d,u,null,null,o,l,i,r);let g,m;Yt(f,null);try{const e=function(e,t,n,s,r,o){const i=n[1];n[19]=e;const l=_s(i,null,0,3,null,null),a=l.mergedAttrs=t.hostAttrs;null!==a&&(Jr(l,a),null!==e&&(fn(r,e,a),null!==l.classes&&xr(r,e,l.classes),null!==l.styles&&Cr(r,e,l.styles)));const c=s.createRenderer(e,t),u=vs(n,Es(t),null,t.onPush?64:16,n[19],l,s,c,void 0);return i.firstCreatePass&&(Vn(Pn(l,n),i,t.type),Ds(i,l),Hs(l,n.length,1)),Us(n,u),n[19]=u}(c,this.componentDef,f,o,l);if(c)if(n)fn(l,c,["ng-version",si.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s0&&xr(l,c,t.join(" "))}m=At(f[1],0),t&&(m.projection=t.map(e=>Array.from(e))),g=function(e,t,n,s,r){const o=n[1],i=function(e,t,n){const s=Ht();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Rs(e,s,1),qs(e,t,n));const r=jn(t,e,t.length-1,s);Wn(r,t);const o=kt(s,t);return o&&Wn(o,t),r}(o,n,t);s.components.push(i),e[8]=i,r&&r.forEach(e=>e(i,t)),t.contentQueries&&t.contentQueries(1,i,n.length-1);const l=Ht();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){sn(l.index-19);const e=n[1];Vs(e,t),Ns(e,n,t.hostVars),Fs(t,i)}return i}(e,this.componentDef,f,d,[Ro]),ws(p,f,null)}finally{tn()}const y=new Ti(this.componentType,g,Pr(Wo,m,f),f,m);return n&&!h||(y.hostView._tViewNode.child=m),y}}class Ti extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new kr(s),this.hostView._tViewNode=function(e,t,n,s){let r=e.node;return null==r&&(e.node=r=Ps(0,null,2,-1,null,null)),s[6]=r}(s[1],0,0,s),this.componentType=e}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Pi=void 0;var Oi=["en",[["a","p"],["AM","PM"],Pi],[["AM","PM"],Pi,Pi],[["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"]],Pi,[["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"]],Pi,[["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}",Pi,"{1} 'at' {0}",Pi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Ii={};function Mi(e){return e in Ii||(Ii[e]=Ce.ng&&Ce.ng.common&&Ce.ng.common.locales&&Ce.ng.common.locales[e]),Ii[e]}const Vi=function(){var e={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,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();let Ni="en-US";function Fi(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error(`ASSERTION ERROR: ${e}`+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Ni=e.toLowerCase().replace(/_/g,"-"))}const Ri=new Map;class Di extends Ke{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Si(this);const n=dt(e),s=e[Ee]||null;s&&Fi(s),this._bootstrapComponents=kn(n.bootstrap),this._r3Injector=Br(e,t,[{provide:Ke,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver}],pe(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ur.THROW_IF_NOT_FOUND,n=ee.Default){return e===Ur||e===Ke||e===Ie?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ji extends class{}{constructor(e){super(),this.moduleType=e,null!==dt(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${pe(t)} vs ${pe(t.name)}`)})(e,Ri.get(e),t),Ri.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new Di(this.moduleType,e)}}function Hi(e,t,n,s,r){return Li(Rt(),Kt(),e,t,n,s,r)}function qi(e,t){const n=e[t];return n===ls?void 0:n}function Bi(e,t,n,s,r,o){const i=t+n;return io(e,i,r)?oo(e,i+1,o?s.call(o,r):s(r)):qi(e,i+1)}function Li(e,t,n,s,r,o,i){const l=t+n;return function(e,t,n,s){const r=io(e,t,n);return io(e,t+1,s)||r}(e,l,r,o)?oo(e,l+2,i?s.call(i,r,o):s(r,o)):qi(e,l+2)}function zi(e,t){const n=Dt();let s;const r=e+19;n.firstCreatePass?(s=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const s=t[n];if(e===s.name)return s}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,s.onDestroy)):s=n.data[r];const o=s.factory||(s.factory=ht(s.type)),i=je(uo),l=o();return je(i),function(e,t,n,s){const r=n+19;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=s}(n,Rt(),e,l),l}function Ki(e,t,n){const s=Rt(),r=Et(s,e);return Gi(s,Qi(s,e)?Bi(s,Kt(),t,r.transform,n,r):r.transform(n))}function Zi(e,t,n,s){const r=Rt(),o=Et(r,e);return Gi(r,Qi(r,e)?Li(r,Kt(),t,o.transform,n,s,o):o.transform(n,s))}function Qi(e,t){return e[1].data[t+19].pure}function Gi(e,t){return no.isWrapped(t)&&(t=no.unwrap(t),e[Nt.lFrame.bindingIndex]=ls),t}class Ui extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let s,r=e=>null,o=()=>null;e&&"object"==typeof e?(s=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(s,r,o);return e instanceof h&&e.add(i),i}}function Wi(){return this._results[eo()]()}class Yi{constructor(){this.dirty=!0,this._results=[],this.changes=new Ui,this.length=0;const e=eo(),t=Yi.prototype;t[e]||(t[e]=Wi)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let s=0;s0)r.push(l[t/2]);else{const o=i[t+1],l=n[-s];for(let t=9;t{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(qe(ul,8))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const dl=new Oe("AppId"),pl={provide:dl,useFactory:function(){return`${fl()}${fl()}${fl()}`},deps:[]};function fl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gl=new Oe("Platform Initializer"),ml=new Oe("Platform ID"),yl=new Oe("appBootstrapListener");let bl=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const vl=new Oe("LocaleId"),_l=new Oe("DefaultCurrencyCode");class wl{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Cl=function(e){return new ji(e)},xl=Cl,Sl=function(e){return Promise.resolve(Cl(e))},kl=function(e){const t=Cl(e),n=kn(dt(e).declarations).reduce((e,t)=>{const n=ut(t);return n&&e.push(new Ei(n)),e},[]);return new wl(t,n)},Al=kl,El=function(e){return Promise.resolve(kl(e))};let Tl=(()=>{class e{constructor(){this.compileModuleSync=xl,this.compileModuleAsync=Sl,this.compileModuleAndAllComponentsSync=Al,this.compileModuleAndAllComponentsAsync=El}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const Pl=new Oe("compilerOptions"),Ol=(()=>Promise.resolve(0))();function Il(e){"undefined"==typeof Zone?Ol.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ml{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ui(!1),this.onMicrotaskEmpty=new Ui(!1),this.onStable=new Ui(!1),this.onError=new Ui(!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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=Ce.requestAnimationFrame,t=Ce.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ce,()=>{e.lastRequestAnimationFrameId=-1,Rl(e),Fl(e)}),Rl(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,s,r,o,i,l)=>{try{return Dl(e),n.invokeTask(r,o,i,l)}finally{t&&"eventTask"===o.type&&t(),jl(e)}},onInvoke:(t,n,s,r,o,i,l)=>{try{return Dl(e),t.invoke(s,r,o,i,l)}finally{jl(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,Rl(e),Fl(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ml.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ml.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,e,Nl,Vl,Vl);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Vl(){}const Nl={};function Fl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Rl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Dl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function jl(e){e._nesting--,Fl(e)}class Hl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ui,this.onMicrotaskEmpty=new Ui,this.onStable=new Ui,this.onError=new Ui}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let ql=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{Ml.assertNotInAngularZone(),Il(()=>{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())Il(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(qe(Ml))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})(),Bl=(()=>{class e{constructor(){this._applications=new Map,Kl.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Kl.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class Ll{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let zl,Kl=new Ll,Zl=function(e,t,n){const s=new ji(n);if(0===Wr.size)return Promise.resolve(s);const r=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(e.get(Pl,[]).concat(t).map(e=>e.providers));if(0===r.length)return Promise.resolve(s);const o=function(){const e=Ce.ng;if(!e||!e.\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 e.\u0275compilerFacade}(),i=Ur.create({providers:r}).get(o.ResourceLoader);return function(e){const t=[],n=new Map;function s(e){let t=n.get(e);if(!t){const s=(e=>Promise.resolve(i.get(e)))(e);n.set(e,t=s.then(Xr))}return t}return Wr.forEach((e,n)=>{const r=[];e.templateUrl&&r.push(s(e.templateUrl).then(t=>{e.template=t}));const o=e.styleUrls,i=e.styles||(e.styles=[]),l=e.styles.length;o&&o.forEach((t,n)=>{i.push(""),r.push(s(t).then(s=>{i[l+n]=s,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});const a=Promise.all(r).then(()=>function(e){Yr.delete(e)}(n));t.push(a)}),Wr=new Map,Promise.all(t).then(()=>{})}().then(()=>s)};const Ql=new Oe("AllowMultipleToken");function Gl(e,t,n=[]){const s=`Platform: ${t}`,r=new Oe(s);return(t=[])=>{let o=Ul();if(!o||o.injector.get(Ql,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Fr,useValue:"platform"});!function(e){if(zl&&!zl.destroyed&&!zl.injector.get(Ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zl=e.get(Wl);const t=e.get(gl,null);t&&t.forEach(e=>e())}(Ur.create({providers:e,name:s}))}return function(e){const t=Ul();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ul(){return zl&&!zl.destroyed?zl:null}let Wl=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Hl:("zone.js"===e?void 0:e)||new Ml({enableLongStackTrace:Un(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),s=[{provide:Ml,useValue:n}];return n.run(()=>{const t=Ur.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),o=r.injector.get(Zn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Jl(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{o.handleError(e)}})),function(e,t,n){try{const s=n();return bo(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(o,n,()=>{const e=r.injector.get(hl);return e.runInitializers(),e.donePromise.then(()=>(Fi(r.injector.get(vl,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Yl({},t);return Zl(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Xl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${pe(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(qe(Ur))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();function Yl(e,t){return Array.isArray(t)?t.reduce(Yl,e):Object.assign(Object.assign({},e),t)}let Xl=(()=>{class e{constructor(e,t,n,s,r,o){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Un(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Ml.assertNotInAngularZone(),Il(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ml.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return k(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof b?e[0]:function(e=Number.POSITIVE_INFINITY){return function e(t,n,s=Number.POSITIVE_INFINITY){return"function"==typeof n?r=>r.pipe(e((e,s)=>{return(r=t(e,s),r instanceof b?r:new b(O(r))).pipe(V((t,r)=>n(e,t,s,r)));var r},s)):("number"==typeof n&&(s=n),e=>e.lift(new D(t,s)))}(H,e)}(t)(q(e,n))}(i,l.pipe(e=>{return B()((t=G,function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,Z);return s.source=e,s.subjectFactory=n,s})(e));var t}))}bootstrap(e,t){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=e instanceof Qo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Ke),r=n.create(Ur.NULL,[],t||n.selector,s);r.onDestroy(()=>{this._unloadComponent(r)});const o=r.injector.get(ql,null);return o&&r.injector.get(Bl).registerApplication(r.location.nativeElement,o),this._loadComponent(r),Un()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Jl(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(yl,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Jl(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(qe(Ml),qe(bl),qe(Ur),qe(Zn),qe(Uo),qe(hl))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();function Jl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $l=Gl(null,"core",[{provide:ml,useValue:"unknown"},{provide:Wl,deps:[Ur]},{provide:Bl,deps:[]},{provide:bl,deps:[]}]),ea=[{provide:Xl,useClass:Xl,deps:[Ml,bl,Ur,Zn,Uo,hl]},{provide:Ai,deps:[Ml],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:hl,useClass:hl,deps:[[new X,ul]]},{provide:Tl,useClass:Tl,deps:[]},pl,{provide:fi,useFactory:function(){return yi},deps:[]},{provide:gi,useFactory:function(){return bi},deps:[]},{provide:vl,useFactory:function(e){return Fi(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Y(vl),new X,new $]]},{provide:_l,useValue:"USD"}];let ta=(()=>{class e{constructor(e){}}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)(qe(Xl))},providers:ea}),e})(),na=null;function sa(){return na}const ra=new Oe("DocumentToken"),oa=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}();class ia{}let la=(()=>{class e extends ia{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Mi(t);if(n)return n;const s=t.split("-")[0];if(n=Mi(s),n)return n;if("en"===s)return Oi;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Vi.PluralCase]}(t||this.locale)(e)){case oa.Zero:return"zero";case oa.One:return"one";case oa.Two:return"two";case oa.Few:return"few";case oa.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(qe(vl))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})(),aa=(()=>{class e{constructor(e,t,n,s){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(so(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${pe(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(uo(fi),uo(gi),uo(Wo),uo($o))},e.\u0275dir=at({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class ca{constructor(e,t,n,s){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=s}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 ua=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Un()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}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(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,s)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ca(null,this._ngForOf,-1,-1),null===s?void 0:s),r=new ha(e,n);t.push(r)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,s);const o=new ha(e,r);t.push(o)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(uo(wi),uo(vi),uo(fi))},e.\u0275dir=at({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class ha{constructor(e,t){this.record=e,this.view=t}}let da=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new pa,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fa("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fa("ngIfElse",e),this._elseTemplateRef=e,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(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(uo(wi),uo(vi))},e.\u0275dir=at({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class pa{constructor(){this.$implicit=null,this.ngIf=null}}function fa(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${pe(t)}'.`)}class ga{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let ma=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new ga(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(uo(wi),uo(vi),uo(ma,1))},e.\u0275dir=at({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),ba=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,s]=e.split(".");null!=(t=null!=t&&s?`${t}${s}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(uo(Wo),uo(gi),uo($o))},e.\u0275dir=at({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})();class va{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class _a{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const wa=new _a,Ca=new va;let xa=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):to(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,no.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(bo(t))return wa;if(function(e){return!!e&&"function"==typeof e.subscribe}(t))return Ca;throw Error(`InvalidPipeArgument: '${t}' for pipe '${pe(e)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(function(e=ee.Default){const t=Mr(!0);if(null!=t||e&ee.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},e.\u0275pipe=ct({name:"async",type:e,pure:!1}),e})(),Sa=(()=>{class e{}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)},providers:[{provide:ia,useClass:la}]}),e})();class ka extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new ka,na||(na=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=Ea||(Ea=document.querySelector("base"),Ea)?Ea.getAttribute("href"):null;return null==t?null:(n=t,Aa||(Aa=document.createElement("a")),Aa.setAttribute("href",n),"/"===Aa.pathname.charAt(0)?Aa.pathname:"/"+Aa.pathname);var n}resetBaseElement(){Ea=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,e)}}let Aa,Ea=null;const Ta=new Oe("TRANSITION_ID"),Pa=[{provide:ul,useFactory:function(e,t,n){return()=>{n.get(hl).donePromise.then(()=>{const n=sa();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Ta,ra,Ur],multi:!0}];class Oa{static init(){var e;e=new Oa,Kl=e}addToWindow(e){Ce.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements(),Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(e=>{const t=Ce.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?sa().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const Ia=new Oe("EventManagerPlugins");let Ma=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})(),Fa=(()=>{class e extends Na{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>sa().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(qe(ra))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const Ra={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/"},Da=/%COMP%/g;function ja(e,t,n){for(let s=0;s{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let qa=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ba(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Je.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new La(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Je.Native:case Je.ShadowDom:return new za(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=ja(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(qe(Ma),qe(Fa),qe(dl))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class Ba{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ra[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=Ra[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=Ra[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&Jo.DashCase?e.style.setProperty(t,n,s&Jo.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Jo.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ha(n)):this.eventManager.addEventListener(e,t,Ha(n))}}class La extends Ba{constructor(e,t,n,s){super(e),this.component=n;const r=ja(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Da,s+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(Da,e)}(s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class za extends Ba{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===Je.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=ja(s.id,s.styles,[]);for(let o=0;o{class e extends Va{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(qe(ra))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const Za=["alt","control","meta","shift"],Qa={"\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"},Ga={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"},Ua={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Wa=(()=>{class e extends Va{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),o=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sa().onAndCancel(t,r.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let o="";if(Za.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=r,0!=n.length||0===r.length)return null;const i={};return i.domEventName=s,i.fullKey=o,i}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ga.hasOwnProperty(t)&&(t=Ga[t]))}return Qa[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Za.forEach(s=>{s!=n&&(0,Ua[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(qe(ra))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const Ya=Gl($l,"browser",[{provide:ml,useValue:"browser"},{provide:gl,useValue:function(){ka.makeCurrent(),Oa.init()},multi:!0},{provide:ra,useFactory:function(){return function(e){_t=e}(document),document},deps:[]}]),Xa=[[],{provide:Fr,useValue:"root"},{provide:Zn,useFactory:function(){return new Zn},deps:[]},{provide:Ia,useClass:Ka,multi:!0,deps:[ra,Ml,ml]},{provide:Ia,useClass:Wa,multi:!0,deps:[ra]},[],{provide:qa,useClass:qa,deps:[Ma,Fa,dl]},{provide:Xo,useExisting:qa},{provide:Na,useExisting:Fa},{provide:Fa,useClass:Fa,deps:[ra]},{provide:ql,useClass:ql,deps:[Ml]},{provide:Ma,useClass:Ma,deps:[Ia,Ml]},[]];let Ja=(()=>{class e{constructor(e){if(e)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(t){return{ngModule:e,providers:[{provide:dl,useValue:t.appId},{provide:Ta,useExisting:dl},Pa]}}}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)(qe(e,12))},providers:Xa,imports:[Sa,ta]}),e})();"undefined"!=typeof window&&window;class $a{}function ec(e,t){return{type:7,name:e,definitions:t,options:{}}}function tc(e,t=null){return{type:4,styles:t,timings:e}}function nc(e,t=null){return{type:2,steps:e,options:t}}function sc(e){return{type:6,styles:e,offset:null}}function rc(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function oc(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function ic(e,t){return{type:12,timings:e,animation:t}}function lc(e){Promise.resolve(null).then(e)}class ac{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lc(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class cc{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?lc(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function uc(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function hc(e){switch(e.length){case 0:return new ac;case 1:return e[0];default:return new cc(e)}}function dc(e,t,n,s,r={},o={}){const i=[],l=[];let a=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==a,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,l=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,i),l){case"!":l=r[n];break;case"*":l=o[n];break;default:l=t.normalizeStyleValue(n,s,l,i)}u[s]=l}),s||l.push(u),c=u,a=n}),i.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${i.join(e)}`)}return l}function pc(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&fc(n,"start",e)));break;case"done":e.onDone(()=>s(n&&fc(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&fc(n,"destroy",e)))}}function fc(e,t,n){const s=n.totalTime,r=gc(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function gc(e,t,n,s,r="",o=0,i){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:o,disabled:!!i}}function mc(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function yc(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let bc=(e,t)=>!1,vc=(e,t)=>!1,_c=(e,t,n)=>[];const wc=uc();(wc||"undefined"!=typeof Element)&&(bc=(e,t)=>e.contains(t),vc=(()=>{if(wc||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):vc}})(),_c=(e,t,n)=>{let s=[];if(n)s.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&s.push(n)}return s});let Cc=null,xc=!1;function Sc(e){Cc||(Cc=("undefined"!=typeof document?document.body:null)||{},xc=!!Cc.style&&"WebkitAppearance"in Cc.style);let t=!0;return Cc.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Cc.style,!t&&xc)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Cc.style),t}const kc=vc,Ac=bc,Ec=_c;function Tc(e){const t={};return Object.keys(e).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let Pc=(()=>{class e{validateStyleProperty(e){return Sc(e)}matchesElement(e,t){return kc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Ec(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,o=[],i){return new ac(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})(),Oc=(()=>{class e{}return e.NOOP=new Pc,e})();function Ic(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Mc(parseFloat(t[1]),t[2])}function Mc(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Vc(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,o="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=Mc(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(r=Mc(parseFloat(i),n[4]));const l=n[5];l&&(o=l)}else s=e;if(!n){let n=!1,o=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(o,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:o}}(e,t,n)}function Nc(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Fc(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else Nc(e,n);return n}function Rc(e,t,n){return n?t+":"+n+";":""}function Dc(e){let t="";for(let n=0;n{const r=Qc(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),uc()&&Dc(e))}function Hc(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Qc(t);e.style[n]=""}),uc()&&Dc(e))}function qc(e){return Array.isArray(e)?1==e.length?e[0]:nc(e):e}const Bc=new RegExp("{{\\s*(.+?)\\s*}}","g");function Lc(e){let t=[];if("string"==typeof e){let n;for(;n=Bc.exec(e);)t.push(n[1]);Bc.lastIndex=0}return t}function zc(e,t,n){const s=e.toString(),r=s.replace(Bc,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),r=""),r.toString()});return r==s?e:r}function Kc(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Zc=/-+([a-z0-9])/g;function Qc(e){return e.replace(Zc,(...e)=>e[1].toUpperCase())}function Gc(e,t){return 0===e||0===t}function Uc(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let o=t[0],i=[];if(s.forEach(e=>{o.hasOwnProperty(e)||i.push(e),o[e]=n[e]}),i.length)for(var r=1;rfunction(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],o=s[2],i=s[3];t.push(eu(r,i)),"<"!=o[0]||"*"==r&&"*"==i||t.push(eu(i,r))}(e,n,t)):n.push(e),n}const Jc=new Set(["true","1"]),$c=new Set(["false","0"]);function eu(e,t){const n=Jc.has(e)||$c.has(e),s=Jc.has(t)||$c.has(t);return(r,o)=>{let i="*"==e||e==r,l="*"==t||t==o;return!i&&n&&"boolean"==typeof r&&(i=r?Jc.has(e):$c.has(e)),!l&&s&&"boolean"==typeof o&&(l=o?Jc.has(t):$c.has(t)),i&&l}}const tu=new RegExp("s*:selfs*,?","g");function nu(e,t,n){return new su(e).build(t,n)}class su{constructor(e){this._driver=e}build(e,t){const n=new ru(t);return this._resetContextStyleTimingState(n),Wc(this,qc(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,o.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,o=s||{};if(n.styles.forEach(e=>{if(ou(e)){const t=e;Object.keys(t).forEach(e=>{Lc(t[e]).forEach(e=>{o.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=Kc(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Wc(this,qc(e.animation),t);return{type:1,matchers:Xc(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:iu(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Wc(this,e,t)),options:iu(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Wc(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:iu(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return lu(Vc(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=lu(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||Vc(s,t),lu(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:sc({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=sc(e)}t.currentTime+=n.duration+n.delay;const i=this.visitStyle(r,t);i.isEmptyStep=o,s=i}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(ou(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=t.collectedStyles[t.currentQuerySelector],i=o[n];let l=!0;i&&(r!=s&&r>=i.startTime&&s<=i.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${i.startTime}ms" and "${i.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),l=!1),r=i.startTime),l&&(o[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=Lc(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let o=!1,i=!1,l=0;const a=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let a=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(ou(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(ou(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=a&&(s++,c=n.offset=a),i=i||c<0||c>1,o=o||c0&&s{const o=u>0?s==h?1:u*s:r[s],i=o*f;t.currentTime=d+p.delay+i,p.duration=i,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Wc(this,qc(e.animation),t),options:iu(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:iu(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:iu(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,o]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(tu,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,mc(t.collectedStyles,t.currentQuerySelector,{});const i=Wc(this,qc(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:i,originalSelector:e.selector,options:iu(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Vc(e.timings,t.errors,!0);return{type:12,animation:Wc(this,qc(e.animation),t),timings:n,options:null}}}class ru{constructor(e){this.errors=e,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 ou(e){return!Array.isArray(e)&&"object"==typeof e}function iu(e){var t;return e?(e=Nc(e)).params&&(e.params=(t=e.params)?Nc(t):null):e={},e}function lu(e,t,n){return{duration:e,delay:t,easing:n}}function au(e,t,n,s,r,o,i=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:o,totalTime:r+o,easing:i,subTimeline:l}}class cu{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const uu=new RegExp(":enter","g"),hu=new RegExp(":leave","g");function du(e,t,n,s,r,o={},i={},l,a,c=[]){return(new pu).buildKeyframes(e,t,n,s,r,o,i,l,a,c)}class pu{buildKeyframes(e,t,n,s,r,o,i,l,a,c=[]){a=a||new cu;const u=new gu(e,t,a,s,r,c,[]);u.options=l,u.currentTimeline.setStyles([o],null,u.errors,l),Wc(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(i).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([i],null,u.errors,l)}return h.length?h.map(e=>e.buildKeyframes()):[au(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?Ic(n.duration):null,o=null!=n.delay?Ic(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,o);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Wc(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=fu);const e=Ic(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Wc(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?Ic(e.options.delay):0;e.steps.forEach(o=>{const i=t.createSubContext(e.options);r&&i.delayNextStep(r),Wc(this,o,i),s=Math.max(s,i.currentTimeline.currentTime),n.push(i.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Vc(t.params?zc(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(e=>{o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?Ic(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=fu);let o=n;const i=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=i.length;let l=null;i.forEach((n,s)=>{t.currentQueryIndex=s;const i=t.createSubContext(e.options,n);r&&i.delayNextStep(r),n===t.element&&(l=i.currentTimeline),Wc(this,e.animation,i),i.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,i.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),i=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=i-l;break;case"full":l=n.currentStaggerTime}const a=t.currentTimeline;l&&a.delayNextStep(l);const c=a.currentTime;Wc(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const fu={};class gu{constructor(e,t,n,s,r,o,i,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new mu(this._driver,t,0),i.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=Ic(n.duration)),null!=n.delay&&(s.delay=Ic(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=zc(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new gu(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=fu,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new yu(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let i=[];if(s&&i.push(this.element),e.length>0){e=(e=e.replace(uu,"."+this._enterClassName)).replace(hu,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),i.push(...t)}return r||0!=i.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),i}}class mu{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new mu(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},o=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]="*"})):Fc(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=zc(o[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,o)=>{const i=Fc(r,!0);Object.keys(i).forEach(n=>{const s=i[n];"!"==s?e.add(n):"*"==s&&t.add(n)}),n||(i.offset=o/this.duration),s.push(i)});const r=e.size?Kc(e.values()):[],o=t.size?Kc(t.values()):[];if(n){const e=s[0],t=Nc(e);e.offset=0,t.offset=1,s=[e,t]}return au(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class yu extends mu{constructor(e,t,n,s,r,o,i=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=i,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],o=n+t,i=t/o,l=Fc(e[0],!1);l.offset=0,r.push(l);const a=Fc(e[0],!1);a.offset=bu(i),r.push(a);const c=e.length-1;for(let s=1;s<=c;s++){let i=Fc(e[s],!1);i.offset=bu((t+i.offset*n)/o),r.push(i)}n=o,t=0,s="",e=r}return au(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function bu(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class vu{}class _u extends vu{normalizePropertyName(e,t){return Qc(e)}normalizeStyleValue(e,t,n,s){let r="";const o=n.toString().trim();if(wu[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+r}}const wu=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("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 Cu(e,t,n,s,r,o,i,l,a,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:s,toStyles:i,timelines:l,queriedElements:a,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const xu={};class Su{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],o=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}build(e,t,n,s,r,o,i,l,a,c){const u=[],h=this.ast.options&&this.ast.options.params||xu,d=this.buildStyles(n,i&&i.params||xu,u),p=l&&l.params||xu,f=this.buildStyles(s,p,u),g=new Set,m=new Map,y=new Map,b="void"===s,v={params:Object.assign(Object.assign({},h),p)},_=c?[]:du(e,t,this.ast.animation,r,o,d,f,v,a,u);let w=0;if(_.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return Cu(t,this._triggerName,n,s,b,d,f,[],[],m,y,w,u);_.forEach(e=>{const n=e.element,s=mc(m,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=mc(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&g.add(n)});const C=Kc(g.values());return Cu(t,this._triggerName,n,s,b,d,f,_,C,m,y,w)}}class ku{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=Nc(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let o=r[e];o.length>1&&(o=zc(o,s,t)),n[e]=o})}}),n}}class Au{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new ku(e.style,e.options&&e.options.params||{})}),Eu(this.states,"true","1"),Eu(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new Su(e,t,this.states))}),this.fallbackTransition=new Su(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Eu(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Tu=new cu;class Pu{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=nu(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=dc(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let o;const i=new Map;if(r?(o=du(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Tu,s),o.forEach(e=>{const t=mc(i,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);i.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const l=hc(o.map(e=>{const t=i.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,s){const r=gc(t,"","","");return pc(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const Ou=[],Iu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Vu{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=Nc(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Nu=new Vu("void");class Fu{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Lu(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const o=mc(this._elementListeners,e,[]),i={name:t,phase:n,callback:s};o.push(i);const l=mc(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Lu(e,"ng-trigger"),Lu(e,"ng-trigger-"+t),l[t]=Nu),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(i);e>=0&&o.splice(e,1),this._triggers[t]||delete l[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),o=new Du(this.id,t,e);let i=this._engine.statesByElement.get(e);i||(Lu(e,"ng-trigger"),Lu(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,i={}));let l=i[t];const a=new Vu(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&a.absorbOptions(l.options),i[t]=a,l||(l=Nu),"void"!==a.value&&l.value===a.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r{Hc(e,n),jc(e,s)})}return}const c=mc(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(l.value,a.value,e,a.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:l,toState:a,player:o,isFallbackTransition:h}),h||(Lu(e,"ng-animate-queued"),o.onStart(()=>{zu(e,"ng-animate-queued")})),o.onDone(()=>{let t=this.players.indexOf(o);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(o);e>=0&&n.splice(e,1)}}),this.players.push(o),c.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const o=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",s);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&hc(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const s=t.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,o=this._engine.statesByElement.get(e)[s]||Nu,i=new Vu("void"),l=new Du(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:r,fromState:o,toState:i,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==Iu||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Lu(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,o=this._elementListeners.get(r);o&&o.forEach(t=>{if(t.name==n.triggerName){const s=gc(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,pc(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Ru{constructor(e,t,n){this.bodyNode=e,this.driver=t,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Fu(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Lu(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),zu(e,"ng-animate-disabled"))}removeNode(e,t,n,s){if(ju(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return ju(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return hc(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Iu,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;ne()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?hc(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new cu,s=[],r=new Map,o=[],i=new Map,l=new Map,a=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n{const n="ng-enter"+f++;p.set(t,n),e.forEach(e=>Lu(e,n))});const g=[],m=new Set,y=new Set;for(let O=0;Om.add(e)):y.add(e))}const b=new Map,v=Bu(h,Array.from(m));v.forEach((e,t)=>{const n="ng-leave"+f++;b.set(t,n),e.forEach(e=>Lu(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>zu(e,n))}),v.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>zu(e,n))}),g.forEach(e=>{this.processLeaveNode(e)})});const _=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(_.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=b.get(r),d=p.get(r),f=this._buildInstruction(e,n,d,h,c);if(!f.errors||!f.errors.length)return c?(t.onStart(()=>Hc(r,f.fromStyles)),t.onDestroy(()=>jc(r,f.toStyles)),void s.push(t)):e.isFallbackTransition?(t.onStart(()=>Hc(r,f.fromStyles)),t.onDestroy(()=>jc(r,f.toStyles)),void s.push(t)):(f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),o.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>mc(i,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=l.get(t);e||l.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=a.get(t);s||a.set(t,s=new Set),n.forEach(e=>s.add(e))}));w.push(f)});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),_.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,x=new Map;o.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{mc(C,t,[]).push(e),e.destroy()})});const S=g.filter(e=>Zu(e,l,a)),k=new Map;qu(k,this.driver,y,a,"*").forEach(e=>{Zu(e,l,a)&&S.push(e)});const A=new Map;d.forEach((e,t)=>{qu(A,this.driver,new Set(e),l,"!")}),S.forEach(e=>{const t=k.get(e),n=A.get(e);k.set(e,Object.assign(Object.assign({},t),n))});const E=[],T=[],P={};o.forEach(e=>{const{element:t,player:o,instruction:i}=e;if(n.has(t)){if(c.has(t))return o.onDestroy(()=>jc(t,i.toStyles)),o.disabled=!0,o.overrideTotalTime(i.totalTime),void s.push(o);let e=P;if(x.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>x.set(t,e))}const n=this._buildAnimation(o.namespaceId,i,C,r,A,k);if(o.setRealPlayer(n),e===P)E.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=hc(t)),s.push(o)}}else Hc(t,i.fromStyles),o.onDestroy(()=>jc(t,i.toStyles)),T.push(o),c.has(t)&&s.push(o)}),T.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=hc(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O!e.destroyed);s.length?Ku(this,e,s):this.processLeaveNode(e)}return g.length=0,E.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),E}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(o=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||"void"==r;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&o.push(t)})}}return(n||s)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const i of t.timelines){const e=i.element,l=e!==s,a=mc(n,e,[]);this._getPreviousPlayers(e,l,r,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),a.push(e)})}Hc(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,o){const i=t.triggerName,l=t.element,a=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new ac(t.duration,t.delay);const p=h!==l,f=function(e){const t=[];return function e(t,n){for(let s=0;se.getRealPlayer())).filter(e=>!!e.element&&e.element===h),g=r.get(h),m=o.get(h),y=dc(0,this._normalizer,0,t.keyframes,g,m),b=this._buildPlayer(t,y,f);if(t.subTimeline&&s&&u.add(h),p){const t=new Du(e,i,h);t.setRealPlayer(b),a.push(t)}return b});a.forEach(e=>{mc(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Lu(e,"ng-animating"));const d=hc(h);return d.onDestroy(()=>{c.forEach(e=>zu(e,"ng-animating")),jc(l,t.toStyles)}),u.forEach(e=>{mc(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ac(e.duration,e.delay)}}class Du{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new ac,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>pc(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){mc(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function ju(e){return e&&1===e.nodeType}function Hu(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function qu(e,t,n,s,r){const o=[];n.forEach(e=>o.push(Hu(e)));const i=[];s.forEach((n,s)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=Mu,i.push(s))}),e.set(s,o)});let l=0;return n.forEach(e=>Hu(e,o[l++])),i}function Bu(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let o=r.get(t);if(o)return o;const i=t.parentNode;return o=n.has(i)?i:s.has(i)?1:e(i),r.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}function Lu(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function zu(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Ku(e,t,n){hc(n).onDone(()=>e.processLeaveNode(t))}function Zu(e,t,n){const s=n.get(e);if(!s)return!1;let r=t.get(e);return r?s.forEach(e=>r.add(e)):t.set(e,s),n.delete(e),!0}class Qu{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ru(e,t,n),this._timelineEngine=new Pu(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const o=e+"-"+s;let i=this._triggerCache[o];if(!i){const e=[],t=nu(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);i=function(e,t){return new Au(e,t)}(s,t),this._triggerCache[o]=i}this._transitionEngine.registerTrigger(t,s,i)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=yc(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=yc(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Gu(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=Wu(t[0]),t.length>1&&(s=Wu(t[t.length-1]))):t&&(n=Wu(t)),n||s?new Uu(e,n,s):null}let Uu=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&jc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jc(this._element,this._initialStyles),this._endStyles&&(jc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Hc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Hc(this._element,this._endStyles),this._endStyles=null),jc(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Wu(e){let t=null;const n=Object.keys(e);for(let s=0;sthis._handleCallback(e)}apply(){!function(e,t){const n=sh(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),th(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=sh(e,"").split(","),s=eh(n,t);s>=0&&(n.splice(s,1),nh(e,"",n.join(",")))}(this._element,this._name))}}function Ju(e,t,n){nh(e,"PlayState",n,$u(e,t))}function $u(e,t){const n=sh(e,"");return n.indexOf(",")>0?eh(n.split(","),t):eh([n],t)}function eh(e,t){for(let n=0;n=0)return n;return-1}function th(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function nh(e,t,n,s){const r="animation"+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function sh(e,t){return e.style["animation"+t]}class rh{constructor(e,t,n,s,r,o,i,l){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=i,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}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 Xu(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Yc(this.element,n))})}this.currentSnapshot=e}}class oh extends ac{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Tc(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class ih{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return Sc(e)}matchesElement(e,t){return kc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Ec(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Tc(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=`${r}}\n`}),s+="}\n";const o=document.createElement("style");return o.innerHTML=s,o}animate(e,t,n,s,r,o=[],i){i&&this._notifyFaultyScrubber();const l=o.filter(e=>e instanceof rh),a={};Gc(n,s)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Uc(e,t,a));if(0==n)return new oh(e,c);const u=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Gu(e,t),p=new rh(e,t,u,n,s,r,c,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}_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 lh{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Yc(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class ah{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ch().toString()),this._cssKeyframesDriver=new ih}validateStyleProperty(e){return Sc(e)}matchesElement(e,t){return kc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Ec(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,o=[],i){if(!i&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,o);const l={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(l.easing=r);const a={},c=o.filter(e=>e instanceof lh);Gc(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const u=Gu(e,t=Uc(e,t=t.map(e=>Fc(e,!1)),a));return new lh(e,t,l,u)}}function ch(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let uh=(()=>{class e extends $a{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Je.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?nc(e):e;return ph(this._renderer,null,t,"register",[n]),new hh(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(qe(Xo),qe(ra))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class hh extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new dh(this._id,e,t||{},this._renderer)}}class dh{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return ph(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){return 0}}function ph(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}let fh=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new gh("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const o=t=>{Array.isArray(t)?t.forEach(o):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(o),new mh(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&et(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,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 e.\u0275fac=function(t){return new(t||e)(qe(Xo),qe(Qu),qe(Ml))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class gh{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class mh extends gh{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let yh=(()=>{class e extends Qu{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(qe(ra),qe(Oc),qe(vu))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const bh=[{provide:Oc,useFactory:function(){return"function"==typeof ch()?new ah:new ih}},{provide:new Oe("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:$a,useClass:uh},{provide:vu,useFactory:function(){return new _u}},{provide:Qu,useClass:yh},{provide:Xo,useFactory:function(e,t,n){return new fh(e,t,n)},deps:[qa,Qu,Ml]}];let vh=(()=>{class e{}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)},providers:bh,imports:[Ja]}),e})(),_h=(()=>{class e{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class wh{}class Ch extends wh{constructor(e,t,n,s){super(),this.cyan=e,this.magenta=t,this.yellow=n,this.black=s}toString(){return`cmyk(${this.getCyan()}%, ${this.getMagenta()}%, ${this.getYellow()}%, ${this.getBlack()}%)`}getCyan(){return Math.round(this.cyan)}getMagenta(){return Math.round(this.magenta)}getYellow(){return Math.round(this.yellow)}getBlack(){return Math.round(this.black)}}class xh extends wh{constructor(e,t,n,s){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=s}toString(e=!0){return e?`hsla(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%, ${this.getAlpha()})`:`hsl(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getLightness(){return Math.round(this.lightness)}getAlpha(){return Math.round(100*this.alpha)/100}}class Sh extends wh{constructor(e,t,n,s){super(),this.hue=e,this.saturation=t,this.value=n,this.alpha=s}toString(e=!0){return e?`hsva(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%, ${this.getAlpha()})`:`hsv(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getValue(){return Math.round(this.value)}getAlpha(){return Math.round(100*this.alpha)/100}}class kh extends wh{constructor(e,t,n,s){super(),this.red=e,this.green=t,this.blue=n,this.alpha=s}toString(e=!0){return e?`rgba(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()}, ${this.getAlpha()})`:`rgb(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()})`}getRed(){return Math.round(this.red)}getGreen(){return Math.round(this.green)}getBlue(){return Math.round(this.blue)}getAlpha(){return Math.round(100*this.alpha)/100}}let Ah=(()=>{class e{}return e.transparent=new kh(0,0,0,0),e.aliceblue=new kh(240,248,255,1),e.antiquewhite=new kh(250,235,215,1),e.aqua=new kh(0,255,255,1),e.aquamarine=new kh(127,255,212,1),e.azure=new kh(240,255,255,1),e.beige=new kh(245,245,220,1),e.bisque=new kh(255,228,196,1),e.black=new kh(0,0,0,1),e.blanchedalmond=new kh(255,235,205,1),e.blue=new kh(0,0,255,1),e.blueviolet=new kh(138,43,226,1),e.brown=new kh(165,42,42,1),e.burlywood=new kh(222,184,135,1),e.cadetblue=new kh(95,158,160,1),e.chartreuse=new kh(127,255,0,1),e.chocolate=new kh(210,105,30,1),e.coral=new kh(255,127,80,1),e.cornflowerblue=new kh(100,149,237,1),e.cornsilk=new kh(255,248,220,1),e.crimson=new kh(220,20,60,1),e.cyan=new kh(0,255,255,1),e.darkblue=new kh(0,0,139,1),e.darkcyan=new kh(0,139,139,1),e.darkgoldenrod=new kh(184,134,11,1),e.darkgray=new kh(169,169,169,1),e.darkgreen=new kh(0,100,0,1),e.darkgrey=e.darkgray,e.darkkhaki=new kh(189,183,107,1),e.darkmagenta=new kh(139,0,139,1),e.darkolivegreen=new kh(85,107,47,1),e.darkorange=new kh(255,140,0,1),e.darkorchid=new kh(153,50,204,1),e.darkred=new kh(139,0,0,1),e.darksalmon=new kh(233,150,122,1),e.darkseagreen=new kh(143,188,143,1),e.darkslateblue=new kh(72,61,139,1),e.darkslategray=new kh(47,79,79,1),e.darkslategrey=e.darkslategray,e.darkturquoise=new kh(0,206,209,1),e.darkviolet=new kh(148,0,211,1),e.deeppink=new kh(255,20,147,1),e.deepskyblue=new kh(0,191,255,1),e.dimgray=new kh(105,105,105,1),e.dimgrey=e.dimgray,e.dodgerblue=new kh(30,144,255,1),e.firebrick=new kh(178,34,34,1),e.floralwhite=new kh(255,250,240,1),e.forestgreen=new kh(34,139,34,1),e.fuchsia=new kh(255,0,255,1),e.gainsboro=new kh(220,220,220,1),e.ghostwhite=new kh(248,248,255,1),e.gold=new kh(255,215,0,1),e.goldenrod=new kh(218,165,32,1),e.gray=new kh(128,128,128,1),e.grey=e.gray,e.green=new kh(0,128,0,1),e.greenyellow=new kh(173,255,47,1),e.honeydew=new kh(240,255,240,1),e.hotpink=new kh(255,105,180,1),e.indianred=new kh(205,92,92,1),e.indigo=new kh(75,0,130,1),e.ivory=new kh(255,255,240,1),e.khaki=new kh(240,230,140,1),e.lavender=new kh(230,230,250,1),e.lavenderblush=new kh(255,240,245,1),e.lawngreen=new kh(124,252,0,1),e.lemonchiffon=new kh(255,250,205,1),e.lightblue=new kh(173,216,230,1),e.lightcoral=new kh(240,128,128,1),e.lightcyan=new kh(224,255,255,1),e.lightgoldenrodyellow=new kh(250,250,210,1),e.lightgray=new kh(211,211,211,1),e.lightgreen=new kh(144,238,144,1),e.lightgrey=e.lightgray,e.lightpink=new kh(255,182,193,1),e.lightsalmon=new kh(255,160,122,1),e.lightseagreen=new kh(32,178,170,1),e.lightskyblue=new kh(135,206,250,1),e.lightslategray=new kh(119,136,153,1),e.lightslategrey=e.lightslategray,e.lightsteelblue=new kh(176,196,222,1),e.lightyellow=new kh(255,255,224,1),e.lime=new kh(0,255,0,1),e.limegreen=new kh(50,205,50,1),e.linen=new kh(250,240,230,1),e.magenta=new kh(255,0,255,1),e.maroon=new kh(128,0,0,1),e.mediumaquamarine=new kh(102,205,170,1),e.mediumblue=new kh(0,0,205,1),e.mediumorchid=new kh(186,85,211,1),e.mediumpurple=new kh(147,112,219,1),e.mediumseagreen=new kh(60,179,113,1),e.mediumslateblue=new kh(123,104,238,1),e.mediumspringgreen=new kh(0,250,154,1),e.mediumturquoise=new kh(72,209,204,1),e.mediumvioletred=new kh(199,21,133,1),e.midnightblue=new kh(25,25,112,1),e.mintcream=new kh(245,255,250,1),e.mistyrose=new kh(255,228,225,1),e.moccasin=new kh(255,228,181,1),e.navajowhite=new kh(255,222,173,1),e.navy=new kh(0,0,128,1),e.oldlace=new kh(253,245,230,1),e.olive=new kh(128,128,0,1),e.olivedrab=new kh(107,142,35,1),e.orange=new kh(255,165,0,1),e.orangered=new kh(255,69,0,1),e.orchid=new kh(218,112,214,1),e.palegoldenrod=new kh(238,232,170,1),e.palegreen=new kh(152,251,152,1),e.paleturquoise=new kh(175,238,238,1),e.palevioletred=new kh(219,112,147,1),e.papayawhip=new kh(255,239,213,1),e.peachpuff=new kh(255,218,185,1),e.peru=new kh(205,133,63,1),e.pink=new kh(255,192,203,1),e.plum=new kh(221,160,221,1),e.powderblue=new kh(176,224,230,1),e.purple=new kh(128,0,128,1),e.red=new kh(255,0,0,1),e.rosybrown=new kh(188,143,143,1),e.royalblue=new kh(65,105,225,1),e.saddlebrown=new kh(139,69,19,1),e.salmon=new kh(250,128,114,1),e.sandybrown=new kh(244,164,96,1),e.seagreen=new kh(46,139,87,1),e.seashell=new kh(255,245,238,1),e.sienna=new kh(160,82,45,1),e.silver=new kh(192,192,192,1),e.skyblue=new kh(135,206,235,1),e.slateblue=new kh(106,90,205,1),e.slategray=new kh(112,128,144,1),e.slategrey=e.slategray,e.snow=new kh(255,250,250,1),e.springgreen=new kh(0,255,127,1),e.steelblue=new kh(70,130,180,1),e.tan=new kh(210,180,140,1),e.teal=new kh(0,128,128,1),e.thistle=new kh(216,191,216,1),e.tomato=new kh(255,99,71,1),e.turquoise=new kh(64,224,208,1),e.violet=new kh(238,130,238,1),e.wheat=new kh(245,222,179,1),e.white=new kh(255,255,255,1),e.whitesmoke=new kh(245,245,245,1),e.yellow=new kh(255,255,0,1),e.yellowgreen=new kh(154,205,50,1),e})();class Eh{constructor(e){this.hsva=new Sh(0,1,1,1),this.rgba=new kh(255,0,0,1),e&&this.stringToColor(e)}static from(e){return"string"==typeof e?new Eh(e):e instanceof Eh?e.clone():e instanceof kh?(new Eh).setRgba(e.red,e.green,e.blue,e.alpha):e instanceof Sh?(new Eh).setHsva(e.hue,e.saturation,e.value,e.alpha):e instanceof xh?(new Eh).setHsla(e.hue,e.saturation,e.lightness,e.alpha):null}clone(){return Eh.from(this.getRgba())}setFromString(e){return this.stringToColor(e)}setHsva(e=null,t=100,n=100,s=1){return null!=e&&(this.hsva.hue=e),null!=t&&(this.hsva.saturation=t),null!=n&&(this.hsva.value=n),null!=s&&(this.hsva.alpha=s=s>1?1:s<0?0:s),this.rgba=this.hsvaToRgba(this.hsva),this}setRgba(e=null,t=null,n=null,s=1){return null!=e&&(this.rgba.red=e),null!=t&&(this.rgba.green=t),null!=n&&(this.rgba.blue=n),null!=s&&(this.rgba.alpha=s=s>1?1:s<0?0:s),this.hsva=this.rgbaToHsva(this.rgba),this}setHsla(e,t,n,s=1){null!=s&&(this.rgba.alpha=s=s>1?1:s<0?0:s);const r=new xh(e,t,n,s);return this.rgba=this.hslaToRgba(r),this.hsva=this.rgbaToHsva(this.rgba),this}toHexString(e=!1){let t="#"+(1<<24|this.rgba.getRed()<<16|this.rgba.getGreen()<<8|this.rgba.getBlue()).toString(16).substr(1);return e&&(t+=(256|Math.round(255*this.rgba.alpha)).toString(16).substr(1)),t.toUpperCase()}toRgbaString(){return this.rgba.toString()}toRgbString(){return this.rgba.toString(!1)}toHslaString(){return this.getHsla().toString()}toHslString(){return this.getHsla().toString(!1)}toHsvaString(){return this.hsva.toString()}toHsvString(){return this.hsva.toString(!1)}toCmykString(){return this.getCmyk().toString()}getHsva(){return new Sh(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}getRgba(){return new kh(this.rgba.red,this.rgba.green,this.rgba.blue,this.rgba.alpha)}getHsla(){return this.rgbaToHsla(this.rgba)}getCmyk(){return this.rgbaToCmyk(this.rgba)}hsvaToHsla(e){const t=e.saturation/100,n=(2-t)*e.value/2;return new xh(e.hue,100*n,100*(t*(e.value/100)/(n<=1?n:2-n)||0),e.alpha)}hslaToHsva(e){const t=e.lightness/100*2,n=e.saturation/100*(t<=1?t:2-t);return new Sh(e.hue,2*n/(t+n)||0,(t+n)/2,e.alpha)}rgbaToHsva(e){const t=e.red/255,n=e.green/255,s=e.blue/255,r=e.alpha,o=Math.max(t,n,s),i=Math.min(t,n,s),l=o-i;let a=0,c=0===o?0:l/o,u=o;if(o!==i){switch(o){case t:a=(n-s)/l+(n.5?u/(2-o-i):u/(o+i),o){case t:l=(n-s)/u+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}cmykToRgba(e){const t=e.black/100,n=e.magenta/100,s=e.yellow/100;let r=Math.min(1,(1-e.cyan/100)*(1-t)),o=Math.min(1,(1-n)*(1-t)),i=Math.min(1,(1-s)*(1-t));return r*=255,o*=255,i*=255,new kh(r,o,i,1)}rgbaToCmyk(e){let t=1-e.red/255,n=1-e.green/255,s=1-e.blue/255,r=Math.min(t,n,s);return 1===r?new Ch(0,0,0,1):(t=(t-r)/(1-r),n=(n-r)/(1-r),s=(s-r)/(1-r),r*=100,t*=100,n*=100,s*=100,new Ch(t,n,s,r))}roundNumber(e){return Math.round(100*e)/100}stringToColor(e){const t=e.replace(/ /g,"").toLowerCase();let n=Ah[t]||null;if("#"===t[0]){let e=t.substr(1);const s=e.length;let r,o=1;if(3===s)r=e.split("").map(e=>e+e);else if(6===s)r=e.match(/.{2}/g);else if(8===s){const t=e.substr(-2);e=e.substr(0,s-2),o=this.roundNumber(parseInt(t||"FF",16)/255),r=e.match(/.{2}/g)}3===r.length&&(n=new kh(parseInt(r[0],16),parseInt(r[1],16),parseInt(r[2],16),o))}const s=t.indexOf("("),r=t.indexOf(")");if(-1!==s&&r+1===t.length){const e=t.substr(0,s),o=t.substr(s+1,r-(s+1)).split(",");let i=1;switch(e){case"rgba":i=parseFloat(o.pop());case"rgb":n=new kh(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),i);break;case"hsla":i=parseFloat(o.pop());case"hsl":const e=new xh(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),i);n=this.hslaToRgba(e);break;case"cmyk":const t=new Ch(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10));n=this.cmykToRgba(t)}}return n&&(this.rgba=n,this.hsva=this.rgbaToHsva(n)),this}}let Th=(()=>{class e{constructor(e,t,n){this.document=e,this.elementRef=t,this.renderer=n,this.eventHooks=[],this.window={pageXOffset:0,pageYOffset:0},this.window=e.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame()}onEventChange(e){this.calculate(e),this.eventHooks.push(this.renderer.listen(this.document,"mouseup",()=>this.removeListeners())),this.eventHooks.push(this.renderer.listen(this.document,"touchend",()=>this.removeListeners())),this.eventHooks.push(this.renderer.listen(this.document,"mousemove",e=>this.calculate(e))),this.eventHooks.push(this.renderer.listen(this.document,"touchmove",e=>this.calculate(e)))}calculateCoordinates(e){const{width:t,height:n,top:s,left:r}=this.elementRef.nativeElement.getBoundingClientRect(),o="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,i=Math.max(0,Math.min(("number"==typeof e.pageX?e.pageX:e.touches[0].pageX)-(r+this.window.pageXOffset),t)),l=Math.max(0,Math.min(o-(s+this.window.pageYOffset),n));this.movePointer({x:i,y:l,height:n,width:t})}calculate(e){if(e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame(()=>this.calculateCoordinates(e))}getRequestAnimationFrame(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}removeListeners(){this.eventHooks.forEach(e=>e()),this.eventHooks.length=0}ngOnDestroy(){this.removeListeners()}}return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=at({type:e}),e})();const Ph=["pointer"];let Oh=(()=>{class e extends Th{constructor(e,t,n){super(t,n,e),this.colorChange=new Ui(!1)}get backgroundColor(){return this.hue?this.hue.toRgbaString():""}onClick(e){this.onEventChange(e)}ngOnInit(){this.hue||(this.hue=Eh.from(this.color.getHsva())),this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.backgroundColor)}ngOnChanges(e){if(e.color&&e.color.previousValue!==e.color.currentValue){const e=this.color.getHsva();this.changePointerPosition(e.saturation,e.value)}}movePointer({x:e,y:t,height:n,width:s}){const r=100*e/s,o=-100*t/n+100;this.changePointerPosition(r,o);const i=this.hue.getHsva(),l=this.color.getHsva(),a=(new Eh).setHsva(i.hue,r,o,l.alpha);this.colorChange.emit(a)}changePointerPosition(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-t}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${e}%`)}}return e.\u0275fac=function(t){return new(t||e)(uo($o),uo(ra),uo(Wo))},e.\u0275cmp=nt({type:e,selectors:[["saturation-component"]],viewQuery:function(e,t){var n;1&e&&il(Ph,!0),2&e&&ol(n=ll())&&(t.pointer=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&vo("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)})),2&e&&Ao("background-color",t.backgroundColor)},inputs:{hue:"hue",color:"color"},outputs:{colorChange:"colorChange"},features:[Do,zo],decls:2,vars:0,consts:[[1,"pointer"],["pointer",""]],template:function(e,t){1&e&&mo(0,"div",0,1)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49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ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==")}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}'],changeDetection:0}),e})(),Ih=(()=>{class e{constructor(e,t,n,s){this.pickerConfig=e,this.renderer=t,this.elementRef=n,this.document=s,this.colorType="rgba"}get title(){return this.pickerConfig?this.pickerConfig.indicatorTitle:""}get backgroundColor(){return this.color.toRgbaString()}onClick(e){const t=this.renderer.createElement("input");switch(this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","-100%"),this.renderer.setStyle(t,"left","-100%"),this.colorType){case"hsla":t.value=this.color.toHslaString();break;case"hex":t.value=this.color.toHexString();break;default:t.value=this.backgroundColor}this.renderer.appendChild(this.elementRef.nativeElement,t),t.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,t)}}return e.\u0275fac=function(t){return new(t||e)(uo(_h),uo($o),uo(Wo),uo(ra))},e.\u0275cmp=nt({type:e,selectors:[["indicator-component"]],hostVars:1,hostBindings:function(e,t){1&e&&vo("click",(function(e){return t.onClick(e)})),2&e&&lo("title",t.title)},inputs:{color:"color",colorType:"colorType"},decls:4,vars:2,consts:[["viewBox","0 0 48 48"],["d","M0 0h48v48h-48z","fill","none"],["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"]],template:function(e,t){1&e&&(fo(0,"div"),on(),fo(1,"svg",0),mo(2,"path",1),mo(3,"path",2),go(),go()),2&e&&Ao("background-color",t.backgroundColor)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:rgba(0,0,0,0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC") repeat}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{z-index:1}[_nghost-%COMP%]:hover:after, [_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}[_nghost-%COMP%]:hover:after{display:block;content:"\xa0";background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),e})();const Mh=["pointer"];let Vh=(()=>{class e extends Th{constructor(e,t,n){super(t,n,e),this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.isVertical=!1}onClick(e){this.onEventChange(e)}set vertical(e){this.isVertical=!0}ngOnChanges(e){if(e.hue&&e.hue.previousValue!==e.hue.currentValue){const e=this.hue.getHsva();this.changePointerPosition(e.hue)}}movePointer({x:e,y:t,height:n,width:s}){const r=this.isVertical?t/n*360:e/s*360;this.changePointerPosition(r);const o=this.color.getHsva(),i=(new Eh).setHsva(r,o.saturation,o.value,o.alpha),l=(new Eh).setHsva(r,100,100,o.alpha);this.hueChange.emit(l),this.colorChange.emit(i)}changePointerPosition(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",`${e/360*100}%`)}}return e.\u0275fac=function(t){return new(t||e)(uo($o),uo(ra),uo(Wo))},e.\u0275cmp=nt({type:e,selectors:[["hue-component"]],viewQuery:function(e,t){var n;1&e&&il(Mh,!0),2&e&&ol(n=ll())&&(t.pointer=n.first)},hostBindings:function(e,t){1&e&&vo("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)}))},inputs:{hue:"hue",color:"color",vertical:"vertical"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},features:[Do,zo],decls:2,vars:0,consts:[[1,"pointer"],["pointer",""]],template:function(e,t){1&e&&mo(0,"div",0,1)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC");background-size:100% 100%;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2Afk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njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAJtJREFUeNrs2MEJBDEMQ1EZ5rTpv9TM1VuEBGbMTwFCfhdBqqWW8R79pOGAM95gQQCIIIIIYqhBdZvD8so8wQ644w0WBIAIIoggphqU3GGRuW2JgKPPnwAiiCCCuAWx1G0Oi7ltgYA73mBBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC");width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}'],changeDetection:0}),e})();const Nh=["pointer"],Fh=function(e){return{background:e}};let Rh=(()=>{class e extends Th{constructor(e,t,n){super(t,n,e),this.colorChange=new Ui(!1),this.isVertical=!1}onClick(e){this.onEventChange(e)}set vertical(e){this.isVertical=!0}ngOnChanges(e){if(e.color&&e.color.previousValue!==e.color.currentValue){const e=this.color.getHsva();this.changePointerPosition(e.alpha)}}movePointer({x:e,y:t,height:n,width:s}){const r=this.isVertical?t/n:e/s;this.changePointerPosition(r);const o=this.color.getHsva(),i=(new Eh).setHsva(o.hue,o.saturation,o.value,r);this.colorChange.emit(i)}changePointerPosition(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",`${100*e}%`)}get gradient(){const e=this.color.getRgba();return`linear-gradient(to ${this.isVertical?"bottom":"right"}, rgba(${e.red}, ${e.green}, ${e.blue}, 0) 0%, rgb(${e.red}, ${e.green}, ${e.blue}) 100%)`}}return e.\u0275fac=function(t){return new(t||e)(uo($o),uo(ra),uo(Wo))},e.\u0275cmp=nt({type:e,selectors:[["alpha-component"]],viewQuery:function(e,t){var n;1&e&&il(Nh,!0),2&e&&ol(n=ll())&&(t.pointer=n.first)},hostBindings:function(e,t){1&e&&vo("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)}))},inputs:{color:"color",vertical:"vertical"},outputs:{colorChange:"colorChange"},features:[Do,zo],decls:3,vars:3,consts:[[1,"pointer"],["pointer",""],[1,"gradient-color",3,"ngStyle"]],template:function(e,t){var n,s;1&e&&(mo(0,"div",0,1),mo(2,"div",2)),2&e&&(cs(2),ho("ngStyle",(1,n=Fh,s=t.gradient,Bi(Rt(),Kt(),1,n,s,void 0))))},directives:[ba],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==");background-position:0;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}'],changeDetection:0}),e})(),Dh=(()=>{class e{constructor(){this.inputChange=new Ui}inputChanges(e){const t=parseFloat((e.target||e.srcElement).value);!isNaN(t)&&t>=parseInt(this.min,10)&&t<=parseInt(this.max,10)&&this.inputChange.emit(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=at({type:e,selectors:[["","inputChange",""]],hostBindings:function(e,t){1&e&&vo("input",(function(e){return t.inputChanges(e)}))},inputs:{min:"min",max:"max"},outputs:{inputChange:"inputChange"}}),e})();function jh(e,t){1&e&&(fo(0,"span"),Vo(1,"R"),go())}function Hh(e,t){1&e&&(fo(0,"span"),Vo(1,"G"),go())}function qh(e,t){1&e&&(fo(0,"span"),Vo(1,"B"),go())}function Bh(e,t){1&e&&(fo(0,"span"),Vo(1,"A"),go())}function Lh(e,t){if(1&e){const e=yo();fo(0,"div",0),fo(1,"input",4),vo("inputChange",(function(t){return jt(e),Co().onInputChange(t,"A")})),go(),ao(2,Bh,2,0,"span",2),go()}if(2&e){const e=Co();cs(1),ho("value",null==e.value?null:e.value.getAlpha().toString()),cs(1),ho("ngIf",e.labelVisible)}}let zh=(()=>{class e{constructor(){this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.isAlphaVisible=!0}set label(e){this.labelVisible=!0}set alpha(e){this.isAlphaVisible=e}get value(){return this.color?this.color.getRgba():null}onInputChange(e,t){const n=this.value,s="R"===t?e:n.red,r="G"===t?e:n.green,o="B"===t?e:n.blue,i="A"===t?e:n.alpha,l=(new Eh).setRgba(s,r,o,i),a=(new Eh).setHsva(l.getHsva().hue);this.hueChange.emit(a),this.colorChange.emit(l)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["rgba-input-component"]],inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","255",3,"value","inputChange"],[4,"ngIf"],["class","column",4,"ngIf"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"]],template:function(e,t){1&e&&(fo(0,"div",0),fo(1,"input",1),vo("inputChange",(function(e){return t.onInputChange(e,"R")})),go(),ao(2,jh,2,0,"span",2),go(),fo(3,"div",0),fo(4,"input",1),vo("inputChange",(function(e){return t.onInputChange(e,"G")})),go(),ao(5,Hh,2,0,"span",2),go(),fo(6,"div",0),fo(7,"input",1),vo("inputChange",(function(e){return t.onInputChange(e,"B")})),go(),ao(8,qh,2,0,"span",2),go(),ao(9,Lh,3,2,"div",3)),2&e&&(cs(1),ho("value",null==t.value?null:t.value.getRed().toString()),cs(1),ho("ngIf",t.labelVisible),cs(2),ho("value",null==t.value?null:t.value.getGreen().toString()),cs(1),ho("ngIf",t.labelVisible),cs(2),ho("value",null==t.value?null:t.value.getBlue().toString()),cs(1),ho("ngIf",t.labelVisible),cs(1),ho("ngIf",t.isAlphaVisible))},directives:[Dh,da],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),e})();function Kh(e,t){1&e&&(fo(0,"span"),Vo(1,"H"),go())}function Zh(e,t){1&e&&(fo(0,"span"),Vo(1,"S"),go())}function Qh(e,t){1&e&&(fo(0,"span"),Vo(1,"L"),go())}function Gh(e,t){1&e&&(fo(0,"span"),Vo(1,"A"),go())}function Uh(e,t){if(1&e){const e=yo();fo(0,"div",0),fo(1,"input",5),vo("inputChange",(function(t){return jt(e),Co().onInputChange(t,"A")})),go(),ao(2,Gh,2,0,"span",2),go()}if(2&e){const e=Co();cs(1),ho("value",null==e.value?null:e.value.getAlpha().toString()),cs(1),ho("ngIf",e.labelVisible)}}let Wh=(()=>{class e{constructor(){this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.isAlphaVisible=!0}set label(e){this.labelVisible=!0}set alpha(e){this.isAlphaVisible=e}get value(){return this.color?this.color.getHsla():null}onInputChange(e,t){const n=this.value,s="H"===t?e:n.hue,r="S"===t?e:n.saturation,o="L"===t?e:n.lightness,i="A"===t?e:n.alpha,l=(new Eh).setHsla(s,r,o,i),a=(new Eh).setHsva(l.getHsva().hue);this.hueChange.emit(a),this.colorChange.emit(l)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["hsla-input-component"]],inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","360",3,"value","inputChange"],[4,"ngIf"],["type","text","pattern","[0-9]*","min","0","max","100",3,"value","inputChange"],["class","column",4,"ngIf"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"]],template:function(e,t){1&e&&(fo(0,"div",0),fo(1,"input",1),vo("inputChange",(function(e){return t.onInputChange(e,"H")})),go(),ao(2,Kh,2,0,"span",2),go(),fo(3,"div",0),fo(4,"input",3),vo("inputChange",(function(e){return t.onInputChange(e,"S")})),go(),ao(5,Zh,2,0,"span",2),go(),fo(6,"div",0),fo(7,"input",3),vo("inputChange",(function(e){return t.onInputChange(e,"L")})),go(),ao(8,Qh,2,0,"span",2),go(),ao(9,Uh,3,2,"div",4)),2&e&&(cs(1),ho("value",null==t.value?null:t.value.getHue().toString()),cs(1),ho("ngIf",t.labelVisible),cs(2),ho("value",(null==t.value?null:t.value.getSaturation())+"%"),cs(1),ho("ngIf",t.labelVisible),cs(2),ho("value",(null==t.value?null:t.value.getLightness())+"%"),cs(1),ho("ngIf",t.labelVisible),cs(1),ho("ngIf",t.isAlphaVisible))},directives:[Dh,da],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),e})();function Yh(e,t){1&e&&(fo(0,"span"),Vo(1,"HEX"),go())}let Xh=(()=>{class e{constructor(){this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.prefixValue=""}set label(e){this.labelVisible=!0}set prefix(e){this.prefixValue=e}get value(){return this.prefixValue+(this.color?this.color.toHexString().replace("#",""):"")}onInputChange(e){const t=e.toLowerCase().replace("#","");if((3===t.length||6===t.length||8===t.length)&&parseInt(t,16).toString(16)===t&&this.value!==t){const e=new Eh(`#${t}`),n=(new Eh).setHsva(e.getHsva().hue);this.hueChange.emit(n),this.colorChange.emit(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["hex-input-component"]],inputs:{hue:"hue",color:"color",label:"label",prefix:"prefix"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:4,vars:2,consts:[[1,"column"],["type","text",3,"value","keyup"],["elRef",""],[4,"ngIf"]],template:function(e,t){if(1&e){const e=yo();fo(0,"div",0),fo(1,"input",1,2),vo("keyup",(function(){jt(e);const n=co(2);return t.onInputChange(n.value)})),go(),ao(3,Yh,2,0,"span",3),go()}2&e&&(cs(1),ho("value",t.value),cs(2),ho("ngIf",t.labelVisible))},directives:[da],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),e})();const Jh=ec("opacityAnimation",[($h=sc({opacity:1}),{type:0,name:"true",styles:$h,options:void 0}),rc("void => *",[sc({opacity:0}),tc(".08s ease-in")])]);var $h;const ed=ec("listAnimation",[rc("* => up",[oc(":enter",[sc({opacity:0,height:0}),ic(-10,[tc(".08s",sc({opacity:1,height:"*"}))])],{optional:!0})]),rc("* => right",[oc(":enter",[sc({opacity:0,height:0}),ic(-10,[tc(".08s",sc({opacity:1,height:"*"}))])],{optional:!0})]),rc("* => down",[oc(":enter",[sc({opacity:0,height:0}),ic(10,[tc(".08s",sc({opacity:1,height:"*"}))])],{optional:!0})]),rc("* => left",[oc(":enter",[sc({opacity:0,height:0}),ic(10,[tc(".08s",sc({opacity:1,height:"*"}))])],{optional:!0})])]);function td(...e){let t=e[e.length-1];return k(t)?(e.pop(),R(e,t)):q(e)}class nd extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class sd extends nd{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,s=void 0;try{this.work(e)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let rd=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class od extends rd{constructor(e,t=rd.now){super(e,()=>od.delegate&&od.delegate!==this?od.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return od.delegate&&od.delegate!==this?od.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const id=new od(sd),ld=new b(e=>e.complete());let ad=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return td(this.value);case"E":return e=this.error,new b(t=>t.error(e));case"C":return ld}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class cd{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new ud(e,this.delay,this.scheduler))}}class ud extends f{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,s=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-s.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(ud.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new hd(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(ad.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(ad.createComplete()),this.unsubscribe()}}class hd{constructor(e,t){this.time=e,this.notification=t}}class dd{constructor(e){this.notifier=e}call(e,t){const n=new pd(e),s=I(n,this.notifier);return s&&!n.seenValue?(n.add(s),t.subscribe(n)):n}}class pd extends M{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,s,r){this.seenValue=!0,this.complete()}notifyComplete(){}}let fd=(()=>{class e{constructor(e){this.pickerConfig=e,this.selectionChange=new Ui(!1),this.longPress=new Ui(!1),this.mouseup=new x,this.showDepthText=!1}set depth(e){this.showDepthText=!!e}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete()}get bgColor(){return this.color.toRgbaString()}get title(){const e=this.color?this.color.toHexString():"";return this.showDepthText?this.pickerConfig.presetsTitle.replace(/\{\s*(.+?)\s*\}/g,(t,n)=>e):e}get className(){return!!this.activeColor&&this.color.toRgbaString()===this.activeColor.toRgbaString()}onTouch(e){var t;td(e).pipe(V(e=>e.timeStamp||(new Date).getTime()),function(e,t=id){var n;const s=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new cd(s,t))}(350),(t=this.mouseup,e=>e.lift(new dd(t)))).subscribe(()=>this.longPress.next(!0)),this.selectionChange.emit(this.color)}onTouchEnd(e){this.mouseup.next(e)}}return e.\u0275fac=function(t){return new(t||e)(uo(_h))},e.\u0275cmp=nt({type:e,selectors:[["color-preset"]],hostVars:5,hostBindings:function(e,t){1&e&&vo("mousedown",(function(e){return t.onTouch(e)}))("touchstart",(function(e){return t.onTouch(e)}))("mouseup",(function(e){return t.onTouchEnd(e)}))("touchend",(function(e){return t.onTouchEnd(e)})),2&e&&(lo("title",t.title),Ao("background-color",t.bgColor),Eo("selected",t.className))},inputs:{activeColor:"activeColor",color:"color",depth:["show-depth-title","depth"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},decls:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0}),e})(),gd=(()=>{class e{transform(e,t=!0){return t?e.slice().reverse():e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=ct({name:"reverse",type:e,pure:!0}),e})();function md(e,t){if(1&e){const e=yo();fo(0,"color-preset",5),vo("selectionChange",(function(t){return jt(e),Co(2).onSelectionChange(t)})),go()}if(2&e){const e=t.$implicit,n=Co(2);ho("color",e)("activeColor",n.activeColor)}}function yd(e,t){if(1&e&&(fo(0,"div",3),ao(1,md,1,2,"color-preset",4),zi(2,"reverse"),go()),2&e){const e=Co();ho("@opacityAnimation",e.showChildren)("@listAnimation",e.direction),cs(1),ho("ngForOf",Zi(2,3,e.list,"up"==e.direction||"right"==e.direction))}}let bd=(()=>{class e{constructor(e,t,n){this.renderer=e,this.document=t,this.cdr=n,this.selectionChange=new Ui(!1),this.direction="up",this.showChildren=!1,this.hooks=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}removeListeners(){this.hooks.forEach(e=>e()),this.hooks.length=0}onSelectionChange(e){this.selectionChange.next(e)}onLongPress(){this.showChildren=!0,this.listenDocumentClick()}listenDocumentClick(){this.hooks.push(this.renderer.listen(this.document,"mousedown",()=>this.closeList())),this.hooks.push(this.renderer.listen(this.document,"touchstart",()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}get className(){return`direction-${this.direction}`}}return e.\u0275fac=function(t){return new(t||e)(uo($o),uo(ra),uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(e,t){2&e&&Fo("className",t.className)},inputs:{list:"list",direction:"direction",activeColor:"activeColor"},outputs:{selectionChange:"selectionChange"},decls:4,vars:8,consts:[[3,"show-depth-title","color","activeColor","longPress","selectionChange"],[1,"reflection"],["class","sublist",4,"ngIf"],[1,"sublist"],[3,"color","activeColor","selectionChange",4,"ngFor","ngForOf"],[3,"color","activeColor","selectionChange"]],template:function(e,t){1&e&&(fo(0,"color-preset",0),vo("longPress",(function(){return t.onLongPress()}))("selectionChange",(function(e){return t.onSelectionChange(e)})),go(),mo(1,"div",1),mo(2,"div",1),ao(3,yd,3,6,"div",2)),2&e&&(ho("show-depth-title",t.list.length>1)("color",t.list[0])("activeColor",t.activeColor),cs(1),Ao("background-color",t.list[0].toRgbaString()),cs(1),Ao("background-color",t.list[0].toRgbaString()),cs(1),ho("ngIf",t.showChildren))},directives:[fd,da,ua],pipes:[gd],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 2px 4px rgba(0,0,0,.3);padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Jh,ed]},changeDetection:0}),e})(),vd=(()=>{class e{transform(e,t){return e.reduce((n,s,r)=>r%t?n:n.concat([e.slice(r,r+t)]),[])}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=ct({name:"chunks",type:e,pure:!0}),e})();const _d=function(e,t){return{first:e,last:t}};function wd(e,t){if(1&e){const e=yo();fo(0,"color-preset-sublist",5),vo("selectionChange",(function(t){return jt(e),Co(3).onSelectionChange(t)})),go()}if(2&e){const e=Co(),t=e.$implicit,n=e.first,s=e.last,r=Co(2);ho("list",t)("direction",r.direction)("activeColor",r.color)("ngClass",Hi(4,_d,n,s))}}function Cd(e,t){if(1&e){const e=yo();fo(0,"color-preset",6),vo("selectionChange",(function(t){return jt(e),Co(3).onSelectionChange(t)})),go()}if(2&e){const e=Co(),t=e.first,n=e.last,s=e.$implicit,r=Co(2);ho("ngClass",Hi(3,_d,t,n))("color",s)("activeColor",r.color)}}function xd(e,t){if(1&e&&(ao(0,wd,1,7,"color-preset-sublist",3),ao(1,Cd,1,6,"ng-template",null,4,cl)),2&e){const e=t.$implicit,n=co(2);ho("ngIf",Co(2).isList(e))("ngIfElse",n)}}function Sd(e,t){if(1&e&&(fo(0,"div",1),ao(1,xd,3,2,"ng-template",2),go()),2&e){const e=t.$implicit;ho("ngClass",Hi(2,_d,t.first,t.last)),cs(1),ho("ngForOf",e)}}let kd=(()=>{class e{constructor(){this.columns=8,this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.direction="up"}onSelectionChange(e){const t=e.getRgba(),n=e.getHsva(),s=(new Eh).setRgba(t.red,t.green,t.blue,t.alpha),r=(new Eh).setHsva(n.hue);this.hueChange.emit(r),this.colorChange.emit(s)}isList(e){return Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["color-presets-component"]],inputs:{columns:"columns",colorPresets:"colorPresets",hue:"hue",color:"color",direction:"direction"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:2,vars:4,consts:[["class","row",3,"ngClass",4,"ngFor","ngForOf"],[1,"row",3,"ngClass"],["ngFor","",3,"ngForOf"],[3,"list","direction","activeColor","ngClass","selectionChange",4,"ngIf","ngIfElse"],["colorPreset",""],[3,"list","direction","activeColor","ngClass","selectionChange"],[3,"ngClass","color","activeColor","selectionChange"]],template:function(e,t){1&e&&(ao(0,Sd,2,5,"div",0),zi(1,"chunks")),2&e&&ho("ngForOf",Zi(1,1,t.colorPresets,t.columns))},directives:[ua,aa,da,bd,fd],pipes:[vd],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0}),e})();class Ad extends x{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value}next(e){super.next(this._value=e)}}class Ed{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new Td(e,this.compare,this.keySelector))}}class Td extends f{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}var Pd=function(e){return e.hex="hex",e.hexa="hexa",e.rgba="rgba",e.rgb="rgb",e.hsla="hsla",e.hsl="hsl",e.cmyk="cmyk",e}({});class Od{constructor(){var e;this.modelValue=null,this.hueValue=null,this.initValue=null,this.valueChanged=new x,this.presetsVisibilityChanges=new Ad(!0),this.initType=null,this.alphaChannelVisibilityChanges=new Ad(!0),this.valueChanges=this.valueChanged.asObservable().pipe((e=(e,t)=>e.toRgbaString()==t.toRgbaString(),t=>t.lift(new Ed(e,void 0)))),this.colorPresets=[];const t=Eh.from(new kh(255,0,0,1));this.setValue(t),this.setHueColor(t)}setValueFrom(e){const t=Eh.from(e);return this.initValue||(this.initValue=Eh.from(e)),"string"==typeof e&&this.finOutInputType(e),this.setHueColor(t),this.setValue(t),this}setHueColor(e){(this.hueValue&&e.getHsva().hue>0||!this.hueValue)&&(this.hueValue=(new Eh).setHsva(e.getHsva().hue))}get hue(){return this.hueValue}set hue(e){this.hueValue=e}setValue(e){return this.modelValue=e,this.valueChanged.next(e),this}get value(){return this.modelValue}set value(e){this.setValue(e)}reset(){let e;return this.initValue?(e=this.initValue.clone(),this.setHueColor(e)):(e=Eh.from(new kh(255,0,0,1)),this.hueValue=(new Eh).setHsva(e.getHsva().hue)),this.setValue(e),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}finOutInputType(e){const t=e.replace(/ /g,"").toLowerCase();"#"===t[0]&&(this.initType=Pd.hex,t.length>7&&(this.initType=Pd.hexa));const n=t.indexOf("(");switch(t.substr(0,n)){case Pd.rgba:this.initType=Pd.rgba;break;case Pd.rgb:this.initType=Pd.rgb;break;case Pd.hsla:this.initType=Pd.hsla;break;case Pd.hsl:this.initType=Pd.hsl;break;case Pd.cmyk:this.initType=Pd.cmyk}}setColorPresets(e){return this.colorPresets=this.setPresets(e),this}setPresets(e){const t=[];for(const n of e)Array.isArray(n)?t.push(this.setPresets(n)):t.push(new Eh(n));return t}get presets(){return this.colorPresets}hasPresets(){return this.colorPresets.length>0}isPresetVisible(){return this.presetsVisibilityChanges.value}showPresets(){return this.presetsVisibilityChanges.next(!0),this}hidePresets(){return this.presetsVisibilityChanges.next(!1),this}}function Id(e,t){switch(t){case Pd.hex:return e.toHexString();case Pd.hexa:return e.toHexString(!0);case Pd.rgb:return e.toRgbString();case Pd.rgba:return e.toRgbaString();case Pd.hsl:return e.toHslString();case Pd.hsla:return e.toHslaString();default:return e.toRgbaString()}}function Md(e,t){if(1&e){const e=yo();fo(0,"alpha-component",14),vo("colorChange",(function(t){return jt(e),Co().control.value=t})),go()}2&e&&ho("color",Co().control.value)}function Vd(e,t){if(1&e){const e=yo();fo(0,"rgba-input-component",15),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),zi(1,"async"),go()}if(2&e){const e=Co();ho("alpha",Ki(1,3,e.control.alphaChannelVisibilityChanges))("color",e.control.value)("hue",e.control.hue)}}function Nd(e,t){if(1&e){const e=yo();fo(0,"hsla-input-component",15),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),zi(1,"async"),go()}if(2&e){const e=Co();ho("alpha",Ki(1,3,e.control.alphaChannelVisibilityChanges))("color",e.control.value)("hue",e.control.hue)}}function Fd(e,t){if(1&e){const e=yo();fo(0,"hex-input-component",16),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),go()}if(2&e){const e=Co();ho("color",e.control.value)("hue",e.control.hue)}}function Rd(e,t){if(1&e){const e=yo();fo(0,"color-presets-component",17),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),go()}if(2&e){const e=Co();ho("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let Dd=(()=>{class e{constructor(e){this.cdr=e,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.colorChange=new Ui(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Od),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Id(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["chrome-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[zo],decls:18,vars:16,consts:[[3,"hue","color","colorChange"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"colorType","color"],[3,"hue","color","hueChange","colorChange"],[3,"color","colorChange",4,"ngIf"],[1,"controls-row","presentation"],[1,"column",3,"ngSwitch"],["label","",3,"alpha","color","hue","colorChange","hueChange",4,"ngSwitchCase"],["label","","prefix","#",3,"color","hue","colorChange","hueChange",4,"ngSwitchCase"],[1,"column","type-column"],[1,"type-btn",3,"click"],[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[3,"color","colorChange"],["label","",3,"alpha","color","hue","colorChange","hueChange"],["label","","prefix","#",3,"color","hue","colorChange","hueChange"],[3,"color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(fo(0,"saturation-component",0),vo("colorChange",(function(e){return t.control.value=e})),go(),fo(1,"div",1),fo(2,"div",2),fo(3,"div",3),mo(4,"indicator-component",4),go(),fo(5,"div",3),fo(6,"hue-component",5),vo("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),ao(7,Md,1,1,"alpha-component",6),zi(8,"async"),go(),go(),fo(9,"div",7),fo(10,"div",8),ao(11,Vd,2,5,"rgba-input-component",9),ao(12,Nd,2,5,"hsla-input-component",9),ao(13,Fd,1,2,"hex-input-component",10),go(),fo(14,"div",11),fo(15,"span",12),vo("click",(function(){return t.changePresentation()})),go(),go(),go(),go(),ao(16,Rd,1,3,"color-presets-component",13),zi(17,"async")),2&e&&(ho("hue",t.control.hue)("color",t.control.value),cs(4),ho("colorType",t.presentations[t.selectedPresentation])("color",t.control.value),cs(2),ho("hue",t.control.hue)("color",t.control.value),cs(1),ho("ngIf",Ki(8,12,t.control.alphaChannelVisibilityChanges)),cs(3),ho("ngSwitch",t.presentations[t.selectedPresentation]),cs(1),ho("ngSwitchCase","rgba"),cs(1),ho("ngSwitchCase","hsla"),cs(1),ho("ngSwitchCase","hex"),cs(3),ho("ngIf",Ki(17,14,t.control.presetsVisibilityChanges)))},directives:[Oh,Ih,Vh,da,ma,ya,Rh,zh,Wh,Xh,kd],pipes:[xa],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}[_nghost-%COMP%] .controls .pointer{box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:rgba(0,0,0,0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==") no-repeat 50%;background-size:6px 12px}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] color-preset{box-shadow:inset 0 0 2px rgba(0,0,0,.3)}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover{-ms-transform:scale(1.18);transform:scale(1.18)}'],changeDetection:0}),e})();function jd(e,t){if(1&e){const e=yo();fo(0,"alpha-component",12),vo("colorChange",(function(t){return jt(e),Co().control.value=t})),go()}2&e&&ho("color",Co().control.value)}function Hd(e,t){if(1&e){const e=yo();fo(0,"color-presets-component",13),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),go()}if(2&e){const e=Co();ho("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let qd=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new Ui(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Od),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#d0041b","#8b572a","#f5a623","#f8e71c","#7ed321","#417506","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#030303","#4a4a4a","#9b9b9b","#fff"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Id(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["sketch-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[zo],decls:17,vars:18,consts:[[3,"hue","color","colorChange"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"hue","color","hueChange","colorChange"],[3,"color","colorChange",4,"ngIf"],[1,"column","indicator-column"],["colorType","rgba",3,"color"],[1,"controls-row","presentation"],["label","",3,"color","hue","colorChange","hueChange"],["label","",3,"alpha","color","hue","colorChange","hueChange"],[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[3,"color","colorChange"],[3,"color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(fo(0,"saturation-component",0),vo("colorChange",(function(e){return t.control.value=e})),go(),fo(1,"div",1),fo(2,"div",2),fo(3,"div",3),fo(4,"hue-component",4),vo("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),ao(5,jd,1,1,"alpha-component",5),zi(6,"async"),go(),fo(7,"div",6),mo(8,"indicator-component",7),go(),go(),fo(9,"div",8),fo(10,"div",3),fo(11,"hex-input-component",9),vo("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),go(),go(),fo(12,"div",3),fo(13,"rgba-input-component",10),vo("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),zi(14,"async"),go(),go(),go(),go(),ao(15,Hd,1,3,"color-presets-component",11),zi(16,"async")),2&e&&(ho("hue",t.control.hue)("color",t.control.value),cs(4),ho("hue",t.control.hue)("color",t.control.value),cs(1),ho("ngIf",Ki(6,12,t.control.alphaChannelVisibilityChanges)),cs(3),ho("color",t.control.value),cs(3),ho("color",t.control.value)("hue",t.control.hue),cs(2),ho("alpha",Ki(14,14,t.control.alphaChannelVisibilityChanges))("color",t.control.value)("hue",t.control.hue),cs(2),ho("ngIf",Ki(16,16,t.control.presetsVisibilityChanges)))},directives:[Oh,Vh,da,Ih,Xh,zh,Rh,kd],pipes:[xa],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;padding:9px;width:220px;border-radius:4px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}saturation-component[_ngcontent-%COMP%]{height:146px;border-radius:2px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:0 0 2px rgba(0,0,0,.6);width:10px;height:10px}.controls[_ngcontent-%COMP%]{padding:4px 0 0}alpha-component[_ngcontent-%COMP%], hue-component[_ngcontent-%COMP%]{height:10px;border-radius:2px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}hue-component[_ngcontent-%COMP%]{margin-bottom:4px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.indicator-column[_ngcontent-%COMP%]{width:25px}indicator-component[_ngcontent-%COMP%]{height:24px;width:100%;box-shadow:inset 0 0 2px rgba(0,0,0,.6);border-radius:2px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px 9px 0;margin:8px -9px 0}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:5%}.controls-row.hue-alpha[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{padding-right:5px}.hue-alpha[_ngcontent-%COMP%] .pointer{width:6px;margin:0 0 0 -3px;height:100%;top:0;border-radius:2px;border:1px solid #898989}.presentation[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:56px}.presentation[_ngcontent-%COMP%] input{height:20px;font-size:11px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{height:16px;width:16px;border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset 0 0 2px rgba(0,0,0,.4)}[_nghost-%COMP%] color-preset.selected{box-shadow:inset 0 1px 4px rgba(0,0,0,.4)}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 10px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}"],changeDetection:0}),e})();function Bd(e,t){if(1&e){const e=yo();fo(0,"color-presets-component",12),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),go()}if(2&e){const e=Co();ho("columns",9)("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let Ld=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new Ui(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Od),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#6da6e8","#74c283","#f9d948","#f5943f","#f66c6c","#ef8ab8","#696cd4","#6c6c6c","#f6f5f5"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Id(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["compact-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[zo],decls:15,vars:10,consts:[["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[1,"controls"],[1,"controls-row","saturation-hue"],[1,"column"],[3,"hue","color","colorChange"],[1,"column","hue-column"],["vertical","",3,"hue","color","hueChange","colorChange"],[1,"controls-row","presentation"],["viewBox","0 0 1024 1024",1,"pencil"],["d","M639.77,121.045l-48.598,84.2l112.215,64.8l48.6-84.205L639.77,121.045z M558.773,261.354\n L315.78,682.206l112.215,64.795L670.99,326.15L558.773,261.354z M690.816,75.691l74.922,43.286\n c41.682,24.045,55.52,76.564,31.725,117.784l-37.967,65.68l-32.398,56.11L451.706,835.594L282.452,947.303\n c-40.961,27.004-70.24,9.027-67.329-38.894l12.149-202.411l275.395-477.041l32.398-56.11l37.883-65.686\n C596.824,65.946,649.473,51.857,690.816,75.691z M274.689,883.015l120.908-79.818l-112.218-64.8L274.689,883.015z"],["prefix","#",3,"color","hue","colorChange","hueChange"],["colorType","hex",3,"color"],["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(ao(0,Bd,1,4,"color-presets-component",0),zi(1,"async"),fo(2,"div",1),fo(3,"div",2),fo(4,"div",3),fo(5,"saturation-component",4),vo("colorChange",(function(e){return t.control.value=e})),go(),go(),fo(6,"div",5),fo(7,"hue-component",6),vo("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),go(),go(),fo(8,"div",7),fo(9,"div",3),on(),fo(10,"svg",8),mo(11,"path",9),go(),Nt.lFrame.currentNamespace=null,fo(12,"hex-input-component",10),vo("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),go(),go(),fo(13,"div",3),mo(14,"indicator-component",11),go(),go(),go()),2&e&&(ho("ngIf",Ki(1,8,t.control.presetsVisibilityChanges)),cs(5),ho("hue",t.control.hue)("color",t.control.value),cs(2),ho("hue",t.control.hue)("color",t.control.value),cs(5),ho("color",t.control.value)("hue",t.control.hue),cs(2),ho("color",t.control.value))},directives:[da,Oh,Vh,Xh,Ih,kd],pipes:[xa],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:240px;border-radius:3px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 0 4px rgba(0,0,0,.3)}color-presets-component[_ngcontent-%COMP%]{border-bottom:1px solid #e4e4e6;padding:9px 12px}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}.controls[_ngcontent-%COMP%]{padding:10px 12px 12px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.controls-row.saturation-hue[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.saturation-hue[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:178px}saturation-component[_ngcontent-%COMP%]{height:178px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:0 0 2px rgba(0,0,0,.6)}.hue-column[_ngcontent-%COMP%]{padding-left:14px}[_nghost-%COMP%] hue-component[_ngcontent-%COMP%]{width:100%;height:178px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}[_nghost-%COMP%] hue-component[vertical][_ngcontent-%COMP%] .pointer{width:auto;height:9px;left:-3px;right:-3px;margin:-4.5px 0 0;background:rgba(0,0,0,0);border:3px solid #fff;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.6)}.controls-row.presentation[_ngcontent-%COMP%]{border:1px solid #e4e4e6;border-radius:3px;padding:6px 6px 6px 26px;position:relative}indicator-component[_ngcontent-%COMP%]{height:18px;width:18px;box-shadow:inset 0 0 2px rgba(0,0,0,.6);border-radius:50%}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:25%}hex-input-component[_ngcontent-%COMP%] input{border:0;color:#817e81;margin:0;text-align:left;height:18px}.pencil[_ngcontent-%COMP%]{position:absolute;height:14px;width:14px;left:6px;top:50%;margin:-7px 0 0}.pencil[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%] .reflection{display:none}[_nghost-%COMP%] color-preset{height:18px;width:18px;border-radius:50%;box-shadow:inset 0 1px 1px rgba(0,0,0,.6)}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 6px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] color-preset.selected{box-shadow:inset 0 1px 6px rgba(0,0,0,.6)}"],changeDetection:0}),e})(),zd=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new Ui(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Od),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#b80000","#db3e00","#fccb00","#008b02","#006b76","#1273de","#004dcf","#5300eb","#eb9694","#fad0c3","#fef3bd","#c1e1c5","#bedadc","#c4def6","#bed3f3","#d4c4fb"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Id(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["github-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[zo],decls:1,vars:2,consts:[["direction","down",3,"color","colorPresets","colorChange"]],template:function(e,t){1&e&&(fo(0,"color-presets-component",0),vo("colorChange",(function(e){return t.control.value=e})),go()),2&e&&ho("color",t.control.value)("colorPresets",t.control.presets)},directives:[kd],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:212px;border:1px solid rgba(0,0,0,.2);box-shadow:0 3px 12px rgba(0,0,0,.15);border-radius:4px;padding:5px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:25px;height:25px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;z-index:10;border:2px solid #fff;box-shadow:0 0 5px 2px rgba(0,0,0,.2)}'],changeDetection:0}),e})();function Kd(e,t){if(1&e){const e=yo();fo(0,"color-presets-component",2),vo("colorChange",(function(t){return jt(e),Co().childControl.value=t})),go()}if(2&e){const e=Co();ho("columns",7)("color",e.childControl.value)("colorPresets",e.childControl.presets)}}let Zd=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new Ui(!1),this.control=new Od,this.childControl=new Od,this.subscriptions=[],this.mapColors={"#E6315B":["#fc8da7","#fa7d9a","#f56484","#f04a71","#e82c58","#e31746","#de0235","#d60234","#d10232","#c70230","#b8022c","#ab0229","#9c0225","#8f0122","#8c0122","#82011f","#78011b","#690117","#5c0012","#4f0010","#42000c"],"#793183":["#ef8dfc","#eb7dfa","#e664f5","#dc4af0","#d22ce8","#cb17e3","#c402de","#c002d9","#bb02d4","#b002c7","#a202b8","#9702ab","#8a029c","#7e018f","#7a018a","#730182","#6c0178","#5e0169","#54015c","#49014f","#3d0142"],"#009DE7":["#8dd9fc","#7dd2fa","#64c7f5","#4abbf0","#2cade8","#17a2e3","#0298de","#0295d9","#0291d4","#0289c7","#027eb8","#0275ab","#026b9c","#01628f","#015f8a","#015982","#015278","#014869","#013f5c","#01364f","#012e42"],"#00B59C":["#8dfeea","#7dfbe4","#63f4db","#4befd2","#2de7c6","#16e2be","#03deb7","#01ddb6","#01d4ae","#01c7a4","#01b897","#01aa8b","#019b80","#019076","#018c73","#01836c","#017763","#016857","#005c4e","#005044","#004239"],"#FFCE00":["#fce68d","#fae17d","#f5da64","#f0cf4a","#e8c22c","#e5bc17","#deb202","#deb100","#d4aa02","#c7a002","#b89302","#ab8902","#9c7d02","#8f7301","#8c7001","#826801","#786201","#695601","#5c4b00","#4f4100","#423700"],"#FF4A21":["#fca28d","#fa947d","#f57f64","#f0694a","#e84f2c","#e33c17","#de2a02","#d92a02","#d42902","#c72602","#b82302","#ab2102","#9c1e02","#8f1b01","#8a1a01","#821901","#781701","#691300","#5c1100","#4f0e00","#420c00"],"#D6D5D6":["#fff","#f2f2f2","#e5e5e5","#d9d9d9","#cccccc","#bfbfbf","#b3b3b3","#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#595959","#4d4d4d","#424242","#363636","#262626","#1a1a1a","#0f0f0f","#000"]}}ngOnInit(){this.color?this.childControl.setValueFrom(this.color):this.control.setValueFrom("#E6315B"),this.control.setColorPresets(["#e6315b","#793183","#009de7","#00b59c","#ffce00","#ff4a21","#d6d5d6"]),this.childControl.setColorPresets(this.mapColors["#E6315B"]),this.subscriptions.push(this.childControl.valueChanges.subscribe(e=>{this.colorChange.emit(Id(e,this.childControl.initType))})),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck();const t=this.mapColors[e.toHexString()];t&&this.childControl.setColorPresets(t),this.colorChange.emit(Id(this.childControl.value,this.childControl.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.childControl.setValueFrom(this.color)}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["swatches-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},features:[zo],decls:2,vars:4,consts:[["direction","down",3,"columns","color","colorPresets","colorChange"],["class","child-list","direction","down",3,"columns","color","colorPresets","colorChange",4,"ngIf"],["direction","down",1,"child-list",3,"columns","color","colorPresets","colorChange"]],template:function(e,t){1&e&&(fo(0,"color-presets-component",0),vo("colorChange",(function(e){return t.control.value=e})),go(),ao(1,Kd,1,3,"color-presets-component",1)),2&e&&(ho("columns",7)("color",t.control.value)("colorPresets",t.control.presets),cs(1),ho("ngIf",t.childControl.presets.length))},directives:[kd,da],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:224px;border:1px solid rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.3);border-radius:4px;padding:6px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:30px;height:30px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:3px;top:3px;bottom:3px;right:3px;z-index:10;border:3px solid #fff;box-shadow:0 0 5px 2px rgba(0,0,0,.2)}[_nghost-%COMP%] .row:first-child color-preset-sublist:first-child, [_nghost-%COMP%] .row:first-child color-preset:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .row.last color-preset-sublist.last, [_nghost-%COMP%] .row.last color-preset.last{border-radius:0 4px 4px 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.first color-preset.first{border-radius:4px 0 0 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.first color-preset.last{border-radius:0 4px 0 0}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.last color-preset.first{border-radius:0 0 0 4px}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.last color-preset.last{border-radius:0 0 4px 0}[_nghost-%COMP%] .child-list{margin-top:6px;border-top:1px solid #e5e5e5;padding:6px 0 0}[_nghost-%COMP%] .child-list color-preset.selected:after, [_nghost-%COMP%] .child-list color-preset:hover:after{content:"\u2714";font-size:18px;color:#fff;border:0;left:0;top:0;bottom:0;right:0;line-height:30px;box-shadow:none;text-align:center}'],changeDetection:0}),e})(),Qd=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:_h,useValue:t||new _h}]}}}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)},providers:[_h],imports:[[Sa]]}),e})();var Gd=n("Eh/9");function Ud(e,t){1&e&&mo(0,"chrome-picker",2),2&e&&ho("control",Co().colorControl)}function Wd(e,t){if(1&e){const e=yo();fo(0,"div",3),vo("click",(function(t){return jt(e),Co().overlayClick(t)})),go()}}let Yd=(()=>{class e{constructor(){this.colorControl=new Od,this.isVisible=!1,this.colorChange=new Ui}set color(e){this.colorControl.setValueFrom(e)}get background(){return this.colorControl.value.toHexString()}ngOnInit(){this.colorControl.valueChanges.subscribe(e=>this.colorChange.emit(e.toHexString()))}showColorPicker(e){!0!==this.isVisible&&(this.isVisible=!this.isVisible)}overlayClick(e){e.preventDefault(),e.stopPropagation(),this.isVisible=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["chrome-wrapper"]],hostVars:2,hostBindings:function(e,t){1&e&&vo("click",(function(e){return t.showColorPicker(e)})),2&e&&Ao("background-color",t.background)},inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:2,vars:2,consts:[[3,"control",4,"ngIf"],["class","overlay",3,"click",4,"ngIf"],[3,"control"],[1,"overlay",3,"click"]],template:function(e,t){1&e&&(ao(0,Ud,1,1,"chrome-picker",0),ao(1,Wd,1,0,"div",1)),2&e&&(ho("ngIf",t.isVisible),cs(1),ho("ngIf",t.isVisible))},directives:[da,Dd],styles:["[_nghost-%COMP%]{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px}chrome-picker[_ngcontent-%COMP%]{left:100%;position:absolute;top:100%;z-index:2}.overlay[_ngcontent-%COMP%]{background:rgba(0,0,0,0);left:0;position:fixed;top:0;height:100%;width:100%;z-index:1}"]}),e})(),Xd=(()=>{class e{constructor(e){this.elRef=e,this.color="rgba(54, 86, 4, 1)",this.chromeControl=(new Od).setValueFrom(Ah.aquamarine).hidePresets().hideAlphaChannel(),this.sketchControl=(new Od).setValueFrom("#A6771C"),this.compactControl=new Od,this.githubControl=(new Od).setValueFrom("#1273DE"),this.swatchesColor="#F04A71",this.wrapperColor="#F04A71"}ngAfterViewInit(){this.elRef.nativeElement.querySelectorAll(".prettify").forEach(e=>e.innerHTML=Gd.prettyPrintOne(e.innerHTML))}}return e.\u0275fac=function(t){return new(t||e)(uo(Wo))},e.\u0275cmp=nt({type:e,selectors:[["app-root"]],decls:726,vars:48,consts:[[1,"jumbotron"],[1,"background"],[1,"container"],[1,"row"],[1,"col"],[1,"display-4"],["href","https://github.com/pIvan/ngx-color-picker","role","button","aria-pressed","true",1,"btn","btn-primary","btn-lg","active"],[1,"row","pickers-row"],[1,"col","col-md-6","text-right"],[3,"color","colorChange"],[1,"col","col-md-6"],[1,"card"],[1,"card-header"],[1,"card-block"],[2,"padding","0 0 0 40px"],["id","installation",1,"card"],[1,"prettify"],["id","usage",1,"card"],[1,"col","col-lg-4"],[1,"info-row"],[3,"control"],[1,"col","col-lg-8"],[1,"buttons-row"],[1,"btn","btn-primary",3,"click"],["id","wrap-component",1,"card"],[1,"table","table-bordered","table-striped"],["target","_blank","href","https://www.w3.org/TR/css-color-3/#svg-color"]],template:function(e,t){if(1&e){fo(0,"div",0),mo(1,"div",1),fo(2,"div",2),fo(3,"div",3),fo(4,"div",4),fo(5,"h1",5),Vo(6,"@iplab/ngx-color-picker"),go(),mo(7,"br"),fo(8,"a",6),Vo(9,"GitHub"),go(),go(),go(),fo(10,"div",7),fo(11,"div",8),fo(12,"sketch-picker",9),vo("colorChange",(function(e){return t.color=e})),go(),go(),fo(13,"div",10),fo(14,"chrome-picker",9),vo("colorChange",(function(e){return t.color=e})),go(),go(),go(),go(),go(),fo(15,"div",2),fo(16,"div",11),fo(17,"div",12),Vo(18,"Getting started"),go(),fo(19,"div",13),fo(20,"ol"),fo(21,"li"),Vo(22,"Fork and clone this repo"),go(),fo(23,"li"),Vo(24,"npm install"),go(),fo(25,"li"),Vo(26,'Open a terminal and type "npm run start"'),go(),go(),fo(27,"p",14),fo(28,"b"),Vo(29,"or"),go(),go(),fo(30,"ol"),fo(31,"li"),Vo(32,"npm install @iplab/ngx-color-picker --save"),go(),fo(33,"li"),Vo(34,"ng serve --open"),go(),go(),go(),go(),mo(35,"br"),fo(36,"div",11),fo(37,"div",12),Vo(38,"Description"),go(),fo(39,"div",13),fo(40,"p"),Vo(41,"Pure Angular color picker library."),go(),fo(42,"ul"),fo(43,"li"),Vo(44,"It's an Angular color picker"),go(),fo(45,"li"),Vo(46,"Compatible with Angular 5+ versions"),go(),fo(47,"li"),Vo(48,"No external dependency"),go(),fo(49,"li"),Vo(50,"Simple to configure"),go(),fo(51,"li"),Vo(52,"Easy to use"),go(),go(),go(),go(),mo(53,"br"),fo(54,"div",15),fo(55,"div",12),Vo(56,"Installation"),go(),fo(57,"div",13),fo(58,"p"),Vo(59,"To install this component to an external project, follow the procedure:"),go(),fo(60,"ol"),fo(61,"li"),fo(62,"code"),Vo(63,"npm install @iplab/ngx-color-picker --save"),go(),go(),fo(64,"li"),fo(65,"pre",16),Vo(66,"import { ColorPickerModule } from '@iplab/ngx-color-picker';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n...\n...\n\n\n@NgModule({\n imports: [\n BrowserModule,\n ColorPickerModule,\n "),fo(67,"b"),Vo(68,"BrowserAnimationsModule"),go(),Vo(69," or "),fo(70,"b"),Vo(71,"NoopAnimationsModule"),go(),Vo(72," // need to be included\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}"),go(),go(),fo(73,"li"),fo(74,"code"),Vo(75,''),go(),go(),go(),go(),go(),mo(76,"br"),fo(77,"div",17),fo(78,"div",12),Vo(79,"Usage"),go(),fo(80,"div",13),fo(81,"h6"),Vo(82,"predefined components"),go(),fo(83,"p"),Vo(84,"Color picker have 5 predefined components. Each component, except swatches-picker,"),mo(85,"br"),Vo(86," can be used with direct color binding "),fo(87,"b"),Vo(88,"or/and"),go(),Vo(89," with control which provides greater flexibility"),go(),fo(90,"p"),fo(91,"code"),Vo(92,''),go(),mo(93,"br"),fo(94,"code"),Vo(95,''),go(),mo(96,"br"),fo(97,"code"),Vo(98,''),go(),mo(99,"br"),fo(100,"code"),Vo(101,''),go(),mo(102,"br"),fo(103,"code"),Vo(104,''),go(),go(),mo(105,"hr"),fo(106,"h6"),Vo(107,"[color] attribute"),go(),fo(108,"p"),Vo(109,"When binding over attribute "),fo(110,"b"),Vo(111,"[color]"),go(),Vo(112," is used, component try to determine which value type is used so the output would be the same."),mo(113,"br"),fo(114,"b"),Vo(115,"Examples:"),go(),mo(116,"br"),fo(117,"code"),Vo(118,''),go(),Vo(119," -> output is "),fo(120,"b"),Vo(121,"rgb"),go(),mo(122,"br"),fo(123,"code"),Vo(124,''),go(),Vo(125," -> output is "),fo(126,"b"),Vo(127,"rgba"),go(),mo(128,"br"),fo(129,"code"),Vo(130,''),go(),Vo(131," -> output is "),fo(132,"b"),Vo(133,"hsl"),go(),mo(134,"br"),fo(135,"code"),Vo(136,''),go(),Vo(137," -> output is "),fo(138,"b"),Vo(139,"hex"),go(),go(),mo(140,"hr"),fo(141,"h6"),Vo(142,"[control] attribute"),go(),fo(143,"p"),Vo(144,"When binding over "),fo(145,"b"),Vo(146,"[control]"),go(),Vo(147," user have greater control over color output and all events"),mo(148,"br"),fo(149,"b"),Vo(150,"Examples:"),go(),mo(151,"br"),fo(152,"code"),Vo(153,''),go(),go(),mo(154,"hr"),fo(155,"h6"),Vo(156,"color indicator"),go(),fo(157,"p"),Vo(158,"Color indicator is not only indicator, but click also allows copying component color to clipboard."),mo(159,"br"),Vo(160," Text which is displayed on mouseover can be configured over NgModule configuration"),go(),fo(161,"pre",16),Vo(162,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public indicatorTitle: string = 'Copy color to clipboard';\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),go(),mo(163,"hr"),fo(164,"h6"),Vo(165,"color presets"),go(),fo(166,"p"),Vo(167,"color presets on click choose a color, if the child list is available user can show it by long press on certain colors"),mo(168,"br"),Vo(169," Text which is displayed on mouseover can be configured over NgModule configuration"),go(),fo(170,"pre",16),Nt.bindingsEnabled=!1,Vo(171,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public presetsTitle: string = '{0}. Long-click to show alternate shades.'; // {0} is the place where hex value will be placed\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),Nt.bindingsEnabled=!0,go(),mo(172,"hr"),fo(173,"h6"),Vo(174,"all color picker parts"),go(),fo(175,"p"),Vo(176,"Color picker library exports all parts to enable custom components builds"),mo(177,"br"),Vo(178," Here is a list of all available components and their attributes (optional attributes are marked with question mark) "),go(),fo(179,"pre",16),Vo(180,'\n\n\n\n\n\n\n\n\n\n'),go(),fo(181,"h6"),Vo(182,"attributes explanation"),go(),fo(183,"p"),fo(184,"b"),Vo(185,"color =>"),go(),Vo(186," currently selected color (output color)"),mo(187,"br"),fo(188,"b"),Vo(189,"hue =>"),go(),Vo(190," color used internally as current hue color"),mo(191,"br"),fo(192,"b"),Vo(193,"colorType =>"),go(),Vo(194," specify which type of color should be copied to the clipboard"),mo(195,"br"),fo(196,"b"),Vo(197,"vertical =>"),go(),Vo(198," should component be placed horizontally or vertically"),mo(199,"br"),fo(200,"b"),Vo(201,"alpha =>"),go(),Vo(202," should component display alpha channel"),mo(203,"br"),fo(204,"b"),Vo(205,"label =>"),go(),Vo(206," whether the label will be displayed or not (rgba, hsla, hex)"),mo(207,"br"),fo(208,"b"),Vo(209,"prefix =>"),go(),Vo(210," definition of label prefix"),mo(211,"br"),fo(212,"b"),Vo(213,"colorPresets =>"),go(),Vo(214," list of colors used as presets "),go(),go(),go(),mo(215,"br"),fo(216,"div",11),fo(217,"div",12),Vo(218,"Chrome color picker"),go(),fo(219,"div",13),fo(220,"div",3),fo(221,"div",18),fo(222,"div",19),fo(223,"code"),Vo(224),go(),fo(225,"code"),Vo(226),go(),fo(227,"code"),Vo(228),go(),fo(229,"code"),Vo(230),go(),fo(231,"code"),Vo(232),go(),fo(233,"code"),Vo(234),go(),fo(235,"code"),Vo(236),go(),fo(237,"code"),Vo(238),go(),fo(239,"code"),Vo(240),go(),go(),mo(241,"chrome-picker",20),go(),fo(242,"div",21),fo(243,"p"),Vo(244,"Component code"),go(),fo(245,"pre",16),Vo(246,"@Component({\n...\n})\nexport class AppComponent {\n\n public chromeControl = new ColorPickerControl()\n .setValueFrom(ColorsTable.aquamarine)\n .hidePresets()\n .hideAlphaChannel();\n\n constructor() { \n }\n}"),go(),fo(247,"p"),Vo(248,"Template code"),go(),fo(249,"pre",16),Vo(250,''),go(),go(),go(),fo(251,"div",22),fo(252,"button",23),vo("click",(function(){return t.chromeControl.isPresetVisible()?t.chromeControl.hidePresets():t.chromeControl.showPresets()})),Vo(253,"Toggle presets visibility"),go(),Vo(254," \xa0 "),fo(255,"button",23),vo("click",(function(){return t.chromeControl.reset()})),Vo(256,"Reset to initial"),go(),Vo(257," \xa0 "),fo(258,"button",23),vo("click",(function(){return t.chromeControl.isAlphaChannelEnabled()?t.chromeControl.hideAlphaChannel():t.chromeControl.showAlphaChannel()})),Vo(259,"Toggle alpha channel"),go(),go(),go(),go(),mo(260,"br"),fo(261,"div",11),fo(262,"div",12),Vo(263,"Sketch color picker"),go(),fo(264,"div",13),fo(265,"div",3),fo(266,"div",18),fo(267,"div",19),fo(268,"code"),Vo(269),go(),fo(270,"code"),Vo(271),go(),fo(272,"code"),Vo(273),go(),fo(274,"code"),Vo(275),go(),fo(276,"code"),Vo(277),go(),fo(278,"code"),Vo(279),go(),fo(280,"code"),Vo(281),go(),fo(282,"code"),Vo(283),go(),fo(284,"code"),Vo(285),go(),go(),mo(286,"sketch-picker",20),go(),fo(287,"div",21),fo(288,"p"),Vo(289,"Component code"),go(),fo(290,"pre",16),Vo(291,"@Component({\n...\n})\nexport class AppComponent {\n\n public sketchControl = new ColorPickerControl()\n .setValueFrom('#A6771C');\n\n constructor() { \n }\n}"),go(),fo(292,"p"),Vo(293,"Template code"),go(),fo(294,"pre",16),Vo(295,''),go(),go(),go(),fo(296,"div",22),fo(297,"button",23),vo("click",(function(){return t.sketchControl.isPresetVisible()?t.sketchControl.hidePresets():t.sketchControl.showPresets()})),Vo(298,"Toggle presets visibility"),go(),Vo(299," \xa0 "),fo(300,"button",23),vo("click",(function(){return t.sketchControl.reset()})),Vo(301,"Reset to initial"),go(),Vo(302," \xa0 "),fo(303,"button",23),vo("click",(function(){return t.sketchControl.isAlphaChannelEnabled()?t.sketchControl.hideAlphaChannel():t.sketchControl.showAlphaChannel()})),Vo(304,"Toggle alpha channel"),go(),go(),go(),go(),mo(305,"br"),fo(306,"div",11),fo(307,"div",12),Vo(308,"Compact color picker"),go(),fo(309,"div",13),fo(310,"div",3),fo(311,"div",18),fo(312,"div",19),fo(313,"code"),Vo(314),go(),fo(315,"code"),Vo(316),go(),fo(317,"code"),Vo(318),go(),fo(319,"code"),Vo(320),go(),fo(321,"code"),Vo(322),go(),fo(323,"code"),Vo(324),go(),fo(325,"code"),Vo(326),go(),fo(327,"code"),Vo(328),go(),fo(329,"code"),Vo(330),go(),go(),mo(331,"compact-picker",20),go(),fo(332,"div",21),fo(333,"p"),Vo(334,"Component code"),go(),fo(335,"pre",16),Vo(336,"@Component({\n...\n})\nexport class AppComponent {\n\n public compactControl = new ColorPickerControl();\n\n constructor() { \n }\n}"),go(),fo(337,"p"),Vo(338,"Template code"),go(),fo(339,"pre",16),Vo(340,''),go(),go(),go(),fo(341,"div",22),fo(342,"button",23),vo("click",(function(){return t.compactControl.isPresetVisible()?t.compactControl.hidePresets():t.compactControl.showPresets()})),Vo(343,"Toggle presets visibility"),go(),Vo(344," \xa0 "),fo(345,"button",23),vo("click",(function(){return t.compactControl.reset()})),Vo(346,"Reset to initial"),go(),go(),go(),go(),mo(347,"br"),fo(348,"div",11),fo(349,"div",12),Vo(350,"Github color picker"),go(),fo(351,"div",13),fo(352,"div",3),fo(353,"div",18),fo(354,"div",19),fo(355,"code"),Vo(356),go(),fo(357,"code"),Vo(358),go(),fo(359,"code"),Vo(360),go(),fo(361,"code"),Vo(362),go(),fo(363,"code"),Vo(364),go(),fo(365,"code"),Vo(366),go(),fo(367,"code"),Vo(368),go(),fo(369,"code"),Vo(370),go(),fo(371,"code"),Vo(372),go(),go(),mo(373,"github-picker",20),go(),fo(374,"div",21),fo(375,"p"),Vo(376,"Component code"),go(),fo(377,"pre",16),Vo(378,"@Component({\n...\n})\nexport class AppComponent {\n\n public githubControl = new ColorPickerControl()\n .setValueFrom('#1273DE');\n\n constructor() { \n }\n}"),go(),fo(379,"p"),Vo(380,"Template code"),go(),fo(381,"pre",16),Vo(382,''),go(),go(),go(),fo(383,"div",22),fo(384,"button",23),vo("click",(function(){return t.githubControl.reset()})),Vo(385,"Reset to initial"),go(),go(),go(),go(),mo(386,"br"),fo(387,"div",11),fo(388,"div",12),Vo(389,"Swatches color picker"),go(),fo(390,"div",13),fo(391,"div",3),fo(392,"div",18),fo(393,"p"),Vo(394,"Swatches component only supports binding over color attribute"),go(),fo(395,"div",19),fo(396,"code"),Vo(397),go(),mo(398,"br"),go(),fo(399,"swatches-picker",9),vo("colorChange",(function(e){return t.swatchesColor=e})),go(),go(),fo(400,"div",21),fo(401,"p"),Vo(402,"Component code"),go(),fo(403,"pre",16),Vo(404,"@Component({\n...\n})\nexport class AppComponent {\n\n public swatchesColor = '#F04A71'\n\n constructor() { \n }\n}"),go(),fo(405,"p"),Vo(406,"Template code"),go(),fo(407,"pre",16),Vo(408,''),go(),go(),go(),go(),go(),mo(409,"br"),fo(410,"div",24),fo(411,"div",12),Vo(412,"How to wrapp color picker"),go(),fo(413,"div",13),fo(414,"div",3),fo(415,"div",18),fo(416,"div",19),fo(417,"code"),Vo(418),go(),mo(419,"br"),go(),fo(420,"chrome-wrapper",9),vo("colorChange",(function(e){return t.wrapperColor=e})),go(),go(),fo(421,"div",21),fo(422,"p"),Vo(423,"Component code"),go(),fo(424,"pre",16),Vo(425,"@Component({\n...\nselector: 'chrome-wrapper',\ntemplate: '\n\n
\n'\n})\nexport class ChromeWrapperComponent {\n\n public colorControl = new ColorPickerControl();\n\n public isVisible: boolean = false;\n\n @Input()\n public set color(color: string) {\n this.colorControl.setValueFrom(color);\n }\n\n @Output()\n public colorChange: EventEmitter = new EventEmitter();\n\n @HostBinding('style.background-color')\n public get background(): string {\n return this.colorControl.value.toHexString();\n }\n\n public ngOnInit() {\n this.colorControl.valueChanges.subscribe((value: Color) => this.colorChange.emit(value.toHexString()));\n }\n\n @HostListener('click', ['$event'])\n public showColorPicker(event: MouseEvent) {\n if (this.isVisible === true) {\n return;\n }\n\n this.isVisible = !this.isVisible;\n }\n\n public overlayClick(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isVisible = false;\n }\n}"),go(),fo(426,"p"),Vo(427,"Use case"),go(),fo(428,"pre",16),Vo(429,''),go(),go(),go(),go(),go(),mo(430,"br"),fo(431,"div",11),fo(432,"div",12),Vo(433,"ColorPickerControl methods"),go(),fo(434,"div",13),fo(435,"table",25),fo(436,"thead"),fo(437,"tr"),fo(438,"th"),Vo(439,"Property"),go(),fo(440,"th"),Vo(441,"Type"),go(),fo(442,"th"),Vo(443,"Description"),go(),go(),go(),fo(444,"tbody"),fo(445,"tr"),fo(446,"td"),Vo(447,"setValueFrom"),go(),fo(448,"td"),fo(449,"code"),Vo(450,"Function"),go(),go(),fo(451,"td"),Vo(452,"Set value from Color, Rgba, Hsla, Hsva or ColorString"),go(),go(),fo(453,"tr"),fo(454,"td"),Vo(455,"value"),go(),fo(456,"td"),fo(457,"code"),Vo(458,"Getter.value"),go(),go(),fo(459,"td"),Vo(460,"get value as a Color object"),go(),go(),fo(461,"tr"),fo(462,"td"),Vo(463,"reset"),go(),fo(464,"td"),fo(465,"code"),Vo(466,"Function"),go(),go(),fo(467,"td"),Vo(468,"reset value to initial state"),go(),go(),fo(469,"tr"),fo(470,"td"),Vo(471,"valueChanges"),go(),fo(472,"td"),fo(473,"code"),Vo(474,"Observable"),go(),go(),fo(475,"td"),Vo(476,"Used to observe component value changes"),go(),go(),fo(477,"tr"),fo(478,"td"),Vo(479,"isAlphaChannelEnabled"),go(),fo(480,"td"),fo(481,"code"),Vo(482,"Function"),go(),go(),fo(483,"td"),Vo(484,"return is alpha changel enabled"),go(),go(),fo(485,"tr"),fo(486,"td"),Vo(487,"showAlphaChannel"),go(),fo(488,"td"),fo(489,"code"),Vo(490,"Function"),go(),go(),fo(491,"td"),Vo(492,"show alpha channel"),go(),go(),fo(493,"tr"),fo(494,"td"),Vo(495,"hideAlphaChannel"),go(),fo(496,"td"),fo(497,"code"),Vo(498,"Function"),go(),go(),fo(499,"td"),Vo(500,"hide alpha channel"),go(),go(),fo(501,"tr"),fo(502,"td"),Vo(503,"alphaChannelVisibilityChanges"),go(),fo(504,"td"),fo(505,"code"),Vo(506,"BehaviorSubject"),go(),go(),fo(507,"td"),Vo(508,"Used to observe alpha channel changes"),go(),go(),fo(509,"tr"),fo(510,"td"),Vo(511,"setColorPresets"),go(),fo(512,"td"),fo(513,"code"),Vo(514,"Function"),go(),go(),fo(515,"td"),Vo(516,"define color preset list"),go(),go(),fo(517,"tr"),fo(518,"td"),Vo(519,"presets");go(),fo(520,"td"),fo(521,"code"),Vo(522,"Getter.presets"),go(),go(),fo(523,"td"),Vo(524,"get color presets"),go(),go(),fo(525,"tr"),fo(526,"td"),Vo(527,"hasPresets"),go(),fo(528,"td"),fo(529,"code"),Vo(530,"Function"),go(),go(),fo(531,"td"),Vo(532,"return status of predefined color presets"),go(),go(),fo(533,"tr"),fo(534,"td"),Vo(535,"showPresets"),go(),fo(536,"td"),fo(537,"code"),Vo(538,"Function"),go(),go(),fo(539,"td"),Vo(540,"show predefined color presets"),go(),go(),fo(541,"tr"),fo(542,"td"),Vo(543,"hidePresets"),go(),fo(544,"td"),fo(545,"code"),Vo(546,"Function"),go(),go(),fo(547,"td"),Vo(548,"hide predefined color presets"),go(),go(),fo(549,"tr"),fo(550,"td"),Vo(551,"presetsVisibilityChanges"),go(),fo(552,"td"),fo(553,"code"),Vo(554,"BehaviorSubject"),go(),go(),fo(555,"td"),Vo(556,"Used to observe color preset visibility"),go(),go(),go(),go(),go(),go(),mo(557,"br"),fo(558,"div",11),fo(559,"div",12),Vo(560,"Color methods"),go(),fo(561,"div",13),fo(562,"table",25),fo(563,"thead"),fo(564,"tr"),fo(565,"th"),Vo(566,"Property"),go(),fo(567,"th"),Vo(568,"Type"),go(),fo(569,"th"),Vo(570,"Description"),go(),go(),go(),fo(571,"tbody"),fo(572,"tr"),fo(573,"td"),Vo(574,"Color.from"),go(),fo(575,"td"),fo(576,"code"),Vo(577,"static method"),go(),go(),fo(578,"td"),Vo(579,"create new Color object from Color, Rgba, Hsla, Hsva or ColorString"),go(),go(),fo(580,"tr"),fo(581,"td"),Vo(582,"clone"),go(),fo(583,"td"),fo(584,"code"),Vo(585,"Function"),go(),go(),fo(586,"td"),Vo(587,"create new Color object"),go(),go(),fo(588,"tr"),fo(589,"td"),Vo(590,"setFromString"),go(),fo(591,"td"),fo(592,"code"),Vo(593,"Function"),go(),go(),fo(594,"td"),Vo(595,"change the value by providing the string"),go(),go(),fo(596,"tr"),fo(597,"td"),Vo(598,"setHsva"),go(),fo(599,"td"),fo(600,"code"),Vo(601,"Function"),go(),go(),fo(602,"td"),Vo(603,"change the value by providing hsv values"),go(),go(),fo(604,"tr"),fo(605,"td"),Vo(606,"setRgba"),go(),fo(607,"td"),fo(608,"code"),Vo(609,"Function"),go(),go(),fo(610,"td"),Vo(611,"change the value by providing rgb values"),go(),go(),fo(612,"tr"),fo(613,"td"),Vo(614,"setHsla"),go(),fo(615,"td"),fo(616,"code"),Vo(617,"Function"),go(),go(),fo(618,"td"),Vo(619,"change the value by providing hsl values"),go(),go(),fo(620,"tr"),fo(621,"td"),Vo(622,"toHexString"),go(),fo(623,"td"),fo(624,"code"),Vo(625,"Function"),go(),go(),fo(626,"td"),Vo(627,"convert Color object to hex string"),go(),go(),fo(628,"tr"),fo(629,"td"),Vo(630,"toRgbString"),go(),fo(631,"td"),fo(632,"code"),Vo(633,"Function"),go(),go(),fo(634,"td"),Vo(635,"convert Color object to rgb string"),go(),go(),fo(636,"tr"),fo(637,"td"),Vo(638,"toRgbaString"),go(),fo(639,"td"),fo(640,"code"),Vo(641,"Function"),go(),go(),fo(642,"td"),Vo(643,"convert Color object to rgba string"),go(),go(),fo(644,"tr"),fo(645,"td"),Vo(646,"toHslString"),go(),fo(647,"td"),fo(648,"code"),Vo(649,"Function"),go(),go(),fo(650,"td"),Vo(651,"convert Color object to hsl string"),go(),go(),fo(652,"tr"),fo(653,"td"),Vo(654,"toHslaString"),go(),fo(655,"td"),fo(656,"code"),Vo(657,"Function"),go(),go(),fo(658,"td"),Vo(659,"convert Color object to hsla string"),go(),go(),fo(660,"tr"),fo(661,"td"),Vo(662,"toHsvString"),go(),fo(663,"td"),fo(664,"code"),Vo(665,"Function"),go(),go(),fo(666,"td"),Vo(667,"convert Color object to hsv string"),go(),go(),fo(668,"tr"),fo(669,"td"),Vo(670,"toHsvaString"),go(),fo(671,"td"),fo(672,"code"),Vo(673,"Function"),go(),go(),fo(674,"td"),Vo(675,"convert Color object to hsva string"),go(),go(),fo(676,"tr"),fo(677,"td"),Vo(678,"toCmykString"),go(),fo(679,"td"),fo(680,"code"),Vo(681,"Function"),go(),go(),fo(682,"td"),Vo(683,"convert Color object to cmyk string"),go(),go(),fo(684,"tr"),fo(685,"td"),Vo(686,"getHsva"),go(),fo(687,"td"),fo(688,"code"),Vo(689,"Function"),go(),go(),fo(690,"td"),Vo(691,"return Hsva object"),go(),go(),fo(692,"tr"),fo(693,"td"),Vo(694,"getRgba"),go(),fo(695,"td"),fo(696,"code"),Vo(697,"Function"),go(),go(),fo(698,"td"),Vo(699,"return Rgba object"),go(),go(),fo(700,"tr"),fo(701,"td"),Vo(702,"getHsla"),go(),fo(703,"td"),fo(704,"code"),Vo(705,"Function"),go(),go(),fo(706,"td"),Vo(707,"return Hsla object"),go(),go(),fo(708,"tr"),fo(709,"td"),Vo(710,"getCmyk"),go(),fo(711,"td"),fo(712,"code"),Vo(713,"Function"),go(),go(),fo(714,"td"),Vo(715,"return Cmyk object"),go(),go(),go(),go(),go(),go(),mo(716,"br"),fo(717,"div",11),fo(718,"div",12),Vo(719,"ColorsTable"),go(),fo(720,"div",13),fo(721,"p"),Vo(722,"ColorTable is class with static properties which represent Rgba colors defined by "),fo(723,"a",26),Vo(724,"list of the X11 colors"),go(),go(),go(),go(),mo(725,"br"),go()}2&e&&(cs(1),Ao("background-color",t.color),cs(11),ho("color",t.color),cs(2),ho("color",t.color),cs(210),No("selected hex: ",t.chromeControl.value.toHexString(),""),cs(2),No("selected hexa: ",t.chromeControl.value.toHexString(!0),""),cs(2),No("selected rgb: ",t.chromeControl.value.toRgbString(),""),cs(2),No("selected rgba: ",t.chromeControl.value.toRgbaString(),""),cs(2),No("selected hsl: ",t.chromeControl.value.toHslString(),""),cs(2),No("selected hsla: ",t.chromeControl.value.toHslaString(),""),cs(2),No("selected hsv: ",t.chromeControl.value.toHsvString(),""),cs(2),No("selected hsva: ",t.chromeControl.value.toHsvaString(),""),cs(2),No("selected cmyk: ",t.chromeControl.value.toCmykString(),""),cs(1),ho("control",t.chromeControl),cs(28),No("selected hex: ",t.sketchControl.value.toHexString(),""),cs(2),No("selected hexa: ",t.sketchControl.value.toHexString(!0),""),cs(2),No("selected rgb: ",t.sketchControl.value.toRgbString(),""),cs(2),No("selected rgba: ",t.sketchControl.value.toRgbaString(),""),cs(2),No("selected hsl: ",t.sketchControl.value.toHslString(),""),cs(2),No("selected hsla: ",t.sketchControl.value.toHslaString(),""),cs(2),No("selected hsv: ",t.sketchControl.value.toHsvString(),""),cs(2),No("selected hsva: ",t.sketchControl.value.toHsvaString(),""),cs(2),No("selected cmyk: ",t.sketchControl.value.toCmykString(),""),cs(1),ho("control",t.sketchControl),cs(28),No("selected hex: ",t.compactControl.value.toHexString(),""),cs(2),No("selected hexa: ",t.compactControl.value.toHexString(!0),""),cs(2),No("selected rgb: ",t.compactControl.value.toRgbString(),""),cs(2),No("selected rgba: ",t.compactControl.value.toRgbaString(),""),cs(2),No("selected hsl: ",t.compactControl.value.toHslString(),""),cs(2),No("selected hsla: ",t.compactControl.value.toHslaString(),""),cs(2),No("selected hsv: ",t.compactControl.value.toHsvString(),""),cs(2),No("selected hsva: ",t.compactControl.value.toHsvaString(),""),cs(2),No("selected cmyk: ",t.compactControl.value.toCmykString(),""),cs(1),ho("control",t.compactControl),cs(25),No("selected hex: ",t.githubControl.value.toHexString(),""),cs(2),No("selected hexa: ",t.githubControl.value.toHexString(!0),""),cs(2),No("selected rgb: ",t.githubControl.value.toRgbString(),""),cs(2),No("selected rgba: ",t.githubControl.value.toRgbaString(),""),cs(2),No("selected hsl: ",t.githubControl.value.toHslString(),""),cs(2),No("selected hsla: ",t.githubControl.value.toHslaString(),""),cs(2),No("selected hsv: ",t.githubControl.value.toHsvString(),""),cs(2),No("selected hsva: ",t.githubControl.value.toHsvaString(),""),cs(2),No("selected cmyk: ",t.githubControl.value.toCmykString(),""),cs(1),ho("control",t.githubControl),cs(24),No("selected color: ",t.swatchesColor,""),cs(2),ho("color",t.swatchesColor),cs(19),No("selected color: ",t.wrapperColor,""),cs(2),ho("color",t.wrapperColor))},directives:[qd,Dd,Ld,zd,Zd,Yd],styles:["[_nghost-%COMP%]{display:block}.background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:500px;opacity:.5;z-index:0}.jumbotron[_ngcontent-%COMP%]{position:relative;background:none}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin-top:-30px;display:inline-block}.jumbotron[_ngcontent-%COMP%] sketch-picker[_ngcontent-%COMP%]{display:inline-block}.jumbotron[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{padding-top:20px}@media handheld,screen and (max-width:768px){.jumbotron[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .pickers-row[_ngcontent-%COMP%]{text-align:center!important}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin:0}}.info-row[_ngcontent-%COMP%]{padding:0 0 20px}.info-row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block}.col-lg-4[_ngcontent-%COMP%]{padding:0}.buttons-row[_ngcontent-%COMP%]{padding:20px 0}.btn[_ngcontent-%COMP%]{cursor:pointer;outline:none}"]}),e})(),Jd=(()=>{class e{}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)},imports:[[Ja,Qd]]}),e})(),$d=(()=>{class e{}return e.\u0275mod=it({type:e,bootstrap:[Xd]}),e.\u0275inj=re({factory:function(t){return new(t||e)},providers:[],imports:[[Ja,Qd,vh,Jd]]}),e})();(function(){if(Gn)throw new Error("Cannot enable prod mode after platform setup.");Qn=!1})(),Ya().bootstrapModule($d).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"Eh/9":function(e,t,n){var s,r;r=null,window.PR_SHOULD_USE_CONTINUATION=!0,function(){function n(e,t,n,s){t&&(n(e={a:t,e}),s.push.apply(s,e.g))}function o(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var s=n.nodeType;t=1===s?t?e:n:3===s&&C.test(n.nodeValue)?e:t}return t===e?void 0:t}function i(e,t){var s,o={};!function(){for(var n=e.concat(t),i=[],l={},a=0,c=n.length;a=0;)o[h.charAt(d)]=u;l.hasOwnProperty(h=""+(u=u[1]))||(i.push(u),l[h]=r)}i.push(/[\S\s]/),s=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=h[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function s(e){var s=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),r=(e=[],["["]);(o="^"===s[0])&&r.push("^");for(var o=o?1:0,i=s.length;o122||(l<65||a>90||e.push([32|Math.max(65,a),32|Math.min(l,90)]),l<97||a>122||e.push([-33&Math.max(97,a),-33&Math.min(l,122)]))}for(e.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]})),s=[],i=[],o=0;oa[0]&&(a[1]+1>a[0]&&r.push("-"),r.push(n(a[1])));return r.push("]"),r.join("")}function r(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),r=t.length,l=[],a=0,c=0;a=2&&"["===e?t[a]=s(u):"\\"!==e&&(t[a]=u.replace(/[A-Za-z]/g,(function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"})));return t.join("")}for(var o=0,i=!1,l=!1,a=0,c=e.length;a=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y="src"),g||(d[m]=y)}if(v=c,c+=m.length,g){var _=m.indexOf(g=b[1]),w=_+g.length;b[2]&&(_=(w=m.length-b[2].length)-g.length),y=y.substring(5),n(l+v,m.substring(0,_),e,a),n(l+v+_,g,u(y,g),a),n(l+v+w,m.substring(w),e,a)}else a.push(l+v,y)}r.g=a}}function l(e){var t=[],n=[];t.push(e.tripleQuotedStrings?["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,r,"'\""]:e.multiLineStrings?["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,r,"'\"`"]:["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,r,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,r]);var s=e.hashComments;if(s&&(e.cStyleComments?(t.push(s>1?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,r,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,r,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,r])):t.push(["com",/^#[^\n\r]*/,r,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,r]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,r])),s=e.regexLiterals){var o=(s=s>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+s+"])(?:[^/\\x5B\\x5C"+s+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+s+"]|\\x5C"+o+")*(?:\\x5D|$))+/)")])}return(s=e.types)&&n.push(["typ",s]),(s=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+s.replace(/[\s,]+/g,"|")+")\\b"),r]),t.push(["pln",/^\s+/,r," \r\n\t\xa0"]),s="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(s+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,r],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,r],["pln",/^[$_a-z][\w$@]*/i,r],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,r,"0123456789"],["pln",/^\\[\S\s]?/,r],["pun",RegExp(s),r]),i(t,n)}function a(e,t,n){function s(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var a=e.nodeValue,c=a.match(i);c&&(t=a.substring(0,c.index),e.nodeValue=t,(a=a.substring(c.index+c[0].length))&&e.parentNode.insertBefore(l.createTextNode(a),e.nextSibling),r(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)r(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)s(e)}function r(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var s=n?t.cloneNode(!1):t;if(r=t.parentNode){var r=e(r,1),o=t.nextSibling;r.appendChild(s);for(var i=o;i;i=o)o=i.nextSibling,r.appendChild(i)}return s}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;c.push(e)}for(var o=/(?:^|\s)nocode(?:\s|$)/,i=/\r\n?|\n/,l=e.ownerDocument,a=l.createElement("li");e.firstChild;)a.appendChild(e.firstChild);for(var c=[a],u=0;u=0;){var s=t[n];S.hasOwnProperty(s)?f.console&&console.warn("cannot override language handler %s",s):S[s]=e}}function u(e,t){return e&&S.hasOwnProperty(e)||(e=/^\s*=C&&(h+=2),n>=x&&(g+=2)}}finally{_&&(_.style.display=v)}}catch(T){f.console&&console.log(T&&T.stack||T)}}var d,p,f=window,g=[d=[[p=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],m=[d,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[m,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],b=[p,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],v=[p,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],_=[p,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],w=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,C=/\S/,x=l({keywords:[g,y,d=[d,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",b,v,p=[p,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),S={};c(x,["default-code"]),c(i([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),c(i([["pln",/^\s+/,r," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,r,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),c(i([],[["atv",/^[\S\s]+/]]),["uq.val"]),c(l({keywords:g,hashComments:!0,cStyleComments:!0,types:w}),["c","cc","cpp","cxx","cyc","m"]),c(l({keywords:"null,true,false"}),["json"]),c(l({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:w}),["cs"]),c(l({keywords:m,cStyleComments:!0}),["java"]),c(l({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),c(l({keywords:b,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),c(l({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),c(l({keywords:v,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),c(l({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),c(l({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),c(l({keywords:_,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),c(i([],[["str",/^[\S\s]+/]]),["regex"]);var k=f.PR={createSimpleLexer:i,registerLangHandler:c,sourceDecorator:l,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:f.prettyPrintOne=function(e,t,n){var s=document.createElement("div");return s.innerHTML="
"+e+"
",s=s.firstChild,n&&a(s,n,!0),h({h:t,j:n,c:s,i:1}),s.innerHTML},prettyPrint:f.prettyPrint=function(e,t){for(var n=(s=t||document.body).ownerDocument||document,s=[s.getElementsByTagName("pre"),s.getElementsByTagName("code"),s.getElementsByTagName("xmp")],i=[],l=0;l{throw e},0)}const l={closed:!0,next(e){},error(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete(){}},a=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function c(e){return null!==e&&"object"==typeof e}const u=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof u?t.errors:t),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[p](){return this}static create(e,t,n){const s=new f(e,t,n);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class g extends f{constructor(e,t,n,r){let o;super(),this._parentSubscriber=e;let i=this;s(t)?o=t:t&&(o=t.next,n=t.error,r=t.complete,t!==l&&(i=Object.create(t),s(i.unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=o,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(s){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(i(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(){}let b=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:s}=this,r=function(e,t,n){if(e){if(e instanceof f)return e;if(e[p])return e[p]()}return e||t||n?new f(e,t,n):new f(l)}(e,t,n);if(r.add(s?s.call(r,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),o.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:s}=e;if(t||s)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=v(t))((t,n)=>{let s;s=this.subscribe(t=>{try{e(t)}catch(r){n(r),s&&s.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[m](){return this}pipe(...e){return 0===e.length?this:((t=e)?1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)}:y)(this);var t}toPromise(e){return new(e=v(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function v(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const _=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class w extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class C extends f{constructor(e){super(e),this.destination=e}}let x=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(e){const t=new S(this,this);return t.operator=e,t}next(e){if(this.closed)throw new _;if(!this.isStopped){const{observers:t}=this,n=t.length,s=t.slice();for(let r=0;rnew S(e,t),e})();class S extends x{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function k(e){return e&&"function"==typeof e.schedule}class A extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const E=e=>t=>{for(let n=0,s=e.length;n{if(e&&"function"==typeof e[m])return o=e,e=>{const t=o[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if((t=e)&&"number"==typeof t.length&&"function"!=typeof t)return E(e);var t,n,s,r,o;if((n=e)&&"function"!=typeof n.subscribe&&"function"==typeof n.then)return r=e,e=>(r.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i),e);if(e&&"function"==typeof e[P])return s=e,e=>{const t=s[P]();for(;;){const n=t.next();if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e};{const t=c(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function I(e,t,n,s,r=new A(e,n,s)){if(!r.closed)return t instanceof b?t.subscribe(r):O(t)(r)}class M extends f{notifyNext(e,t,n,s,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function V(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new N(e,t))}}class N{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new F(e,this.project,this.thisArg))}}class F extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function R(e,t){return new b(n=>{const s=new h;let r=0;return s.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}class D{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new j(e,this.project,this.concurrent))}}class j extends M{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function H(e){return e}function q(e,t){return t?R(e,t):new b(E(e))}function B(){return function(e){return e.lift(new L(e))}}class L{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const s=new z(e,n),r=t.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class z extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,s=e._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class K extends b{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new Q(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return B()(this)}}const Z=(()=>{const e=K.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class Q extends C{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function G(){return new x}function U(e){return{toString:e}.toString()}function W(e,t,n){return U(()=>{const s=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return s.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,s){const r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Y=W("Inject",e=>({token:e})),X=W("Optional"),J=W("Self"),$=W("SkipSelf");var ee=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function te(e){for(let t in e)if(e[t]===te)return t;throw Error("Could not find renamed property on target object.")}function ne(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function se(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function re(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function oe(e){return ie(e,e[ae])||ie(e,e[he])}function ie(e,t){return t&&t.token===e?t:null}function le(e){return e&&(e.hasOwnProperty(ce)||e.hasOwnProperty(de))?e[ce]:null}const ae=te({"\u0275prov":te}),ce=te({"\u0275inj":te}),ue=te({"\u0275provFallback":te}),he=te({ngInjectableDef:te}),de=te({ngInjectorDef:te});function pe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(pe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function fe(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ge=te({__forward_ref__:te});function me(e){return e.__forward_ref__=me,e.toString=function(){return pe(this())},e}function ye(e){return"function"==typeof(t=e)&&t.hasOwnProperty(ge)&&t.__forward_ref__===me?e():e;var t}const be="undefined"!=typeof globalThis&&globalThis,ve="undefined"!=typeof window&&window,_e="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,we="undefined"!=typeof global&&global,Ce=be||we||ve||_e,xe=te({"\u0275cmp":te}),Se=te({"\u0275dir":te}),ke=te({"\u0275pipe":te}),Ae=te({"\u0275mod":te}),Ee=te({"\u0275loc":te}),Te=te({"\u0275fac":te}),Pe=te({__NG_ELEMENT_ID__:te});class Oe{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=se({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ie=new Oe("INJECTOR",-1),Me={},Ve=/\n/gm,Ne=te({provide:String,useValue:te});let Fe,Re=void 0;function De(e){const t=Re;return Re=e,t}function je(e){const t=Fe;return Fe=e,t}function He(e,t=ee.Default){if(void 0===Re)throw new Error("inject() must be called from an injection context");return null===Re?Be(e,void 0,t):Re.get(e,t&ee.Optional?null:void 0,t)}function qe(e,t=ee.Default){return(Fe||He)(ye(e),t)}function Be(e,t,n){const s=oe(e);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&ee.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${pe(e)}]`)}function Le(e){const t=[];for(let n=0;nArray.isArray(e)?Ze(e,t):t(e))}function Qe(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ge(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ue(e,t,n){let s=Ye(e,t);return s>=0?e[1|s]=n:(s=~s,function(e,t,n,s){let r=e.length;if(r==t)e.push(n,s);else if(1===r)e.push(s,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=s}}(e,s,t,n)),s}function We(e,t){const n=Ye(e,t);if(n>=0)return e[1|n]}function Ye(e,t){return function(e,t,n){let s=0,r=e.length>>1;for(;r!==s;){const n=s+(r-s>>1),o=e[n<<1];if(t===o)return n<<1;o>t?r=n:s=n+1}return~(r<<1)}(e,t)}const Xe=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Je=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),$e={},et=[];let tt=0;function nt(e){return U(()=>{const t=e.type,n=t.prototype,s={},r={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:s,inputs:null,outputs:null,exportAs:e.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:e.changeDetection===Xe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||et,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Je.Emulated,id:"c",styles:e.styles||et,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,i=e.features,l=e.pipes;return r.id+=tt++,r.inputs=lt(e.inputs,s),r.outputs=lt(e.outputs),i&&i.forEach(e=>e(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(st):null,r.pipeDefs=l?()=>("function"==typeof l?l():l).map(rt):null,r})}function st(e){return ut(e)||function(e){return e[Se]||null}(e)}function rt(e){return function(e){return e[ke]||null}(e)}const ot={};function it(e){const t={type:e.type,bootstrap:e.bootstrap||et,declarations:e.declarations||et,imports:e.imports||et,exports:e.exports||et,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&U(()=>{ot[e.id]=e.type}),t}function lt(e,t){if(null==e)return $e;const n={};for(const s in e)if(e.hasOwnProperty(s)){let r=e[s],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=s,t&&(t[r]=o)}return n}const at=nt;function ct(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ut(e){return e[xe]||null}function ht(e,t){return e.hasOwnProperty(Te)?e[Te]:null}function dt(e,t){const n=e[Ae]||null;if(!n&&!0===t)throw new Error(`Type ${pe(e)} does not have '\u0275mod' property.`);return n}function pt(e){return Array.isArray(e)&&"object"==typeof e[1]}function ft(e){return Array.isArray(e)&&!0===e[1]}function gt(e){return 0!=(8&e.flags)}function mt(e){return 2==(2&e.flags)}function yt(e){return 1==(1&e.flags)}function bt(e){return null!==e.template}function vt(e){return 0!=(512&e[2])}let _t=void 0;function wt(e){return!!e.listen}const Ct={createRenderer:(e,t)=>void 0!==_t?_t:"undefined"!=typeof document?document:void 0};function xt(e){for(;Array.isArray(e);)e=e[0];return e}function St(e,t){return xt(t[e+19])}function kt(e,t){return xt(t[e.index])}function At(e,t){return e.data[t+19]}function Et(e,t){return e[t+19]}function Tt(e,t){const n=t[e];return pt(n)?n:n[0]}function Pt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ot(e){return 4==(4&e[2])}function It(e){return 128==(128&e[2])}function Mt(e,t){return null===e||null==t?null:e[t]}function Vt(e){e[18]=0}const Nt={lFrame:Jt(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ft(){return Nt.bindingsEnabled}function Rt(){return Nt.lFrame.lView}function Dt(){return Nt.lFrame.tView}function jt(e){Nt.lFrame.contextLView=e}function Ht(){return Nt.lFrame.previousOrParentTNode}function qt(e,t){Nt.lFrame.previousOrParentTNode=e,Nt.lFrame.isParent=t}function Bt(){return Nt.lFrame.isParent}function Lt(){return Nt.checkNoChangesMode}function zt(e){Nt.checkNoChangesMode=e}function Kt(){const e=Nt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Zt(){return Nt.lFrame.bindingIndex++}function Qt(e,t){const n=Nt.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function Gt(){return Nt.lFrame.currentQueryIndex}function Ut(e){Nt.lFrame.currentQueryIndex=e}function Wt(e,t){const n=Xt();Nt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Yt(e,t){const n=Xt(),s=e[1];Nt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=s,n.contextLView=e,n.bindingIndex=s.bindingStartIndex}function Xt(){const e=Nt.lFrame,t=null===e?null:e.child;return null===t?Jt(e):t}function Jt(e){const t={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:e,child:null};return null!==e&&(e.child=t),t}function $t(){const e=Nt.lFrame;return Nt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const en=$t;function tn(){const e=$t();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function nn(){return Nt.lFrame.selectedIndex}function sn(e){Nt.lFrame.selectedIndex=e}function rn(){const e=Nt.lFrame;return At(e.tView,e.selectedIndex)}function on(){Nt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ln(e,t){for(let n=t.directiveStart,s=t.directiveEnd;n=s)break}else t[i]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(i)):o.call(i)}class pn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function fn(e,t,n){const s=wt(e);let r=0;for(;rt){i=o-1;break}}}for(;o>16}function wn(e,t){let n=_n(e),s=t;for(;n>0;)s=s[15],n--;return s}function Cn(e){return"string"==typeof e?e:null==e?"":""+e}function xn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Cn(e)}const Sn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ce))();function kn(e){return e instanceof Function?e():e}let An=!0;function En(e){const t=An;return An=e,t}let Tn=0;function Pn(e,t){const n=In(e,t);if(-1!==n)return n;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,On(s.data,e),On(t,null),On(s.blueprint,null));const r=Mn(e,t),o=e.injectorIndex;if(bn(r)){const e=vn(r),n=wn(r,t),s=n[1].data;for(let r=0;r<8;r++)t[o+r]=n[e+r]|s[e+r]}return t[o+8]=r,o}function On(e,t){e.push(0,0,0,0,0,0,0,0,t)}function In(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Mn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],s=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function Vn(e,t,n){!function(e,t,n){let s="string"!=typeof n?n[Pe]:n.charCodeAt(0)||0;null==s&&(s=n[Pe]=Tn++);const r=255&s,o=1<0?255&t:t}(n);if("function"==typeof r){Wt(t,e);try{const e=r();if(null!=e||s&ee.Optional)return e;throw new Error(`No provider for ${xn(n)}!`)}finally{en()}}else if("number"==typeof r){if(-1===r)return new Bn(e,t);let o=null,i=In(e,t),l=-1,a=s&ee.Host?t[16][6]:null;for((-1===i||s&ee.SkipSelf)&&(l=-1===i?Mn(e,t):t[i+8],qn(s,!1)?(o=t[1],i=vn(l),t=wn(l,t)):i=-1);-1!==i;){l=t[i+8];const e=t[1];if(Hn(r,i,e.data)){const e=Rn(i,t,n,o,s,a);if(e!==Fn)return e}qn(s,t[1].data[i+8]===a)&&Hn(r,i,t)?(o=e,i=vn(l),t=wn(l,t)):i=-1}}}if(s&ee.Optional&&void 0===r&&(r=null),0==(s&(ee.Self|ee.Host))){const e=t[9],o=je(void 0);try{return e?e.get(n,r,s&ee.Optional):Be(n,r,s&ee.Optional)}finally{je(o)}}if(s&ee.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${xn(n)}]`)}const Fn={};function Rn(e,t,n,s,r,o){const i=t[1],l=i.data[e+8],a=Dn(l,i,n,null==s?mt(l)&&An:s!=i&&3===l.type,r&ee.Host&&o===l);return null!==a?jn(t,i,a,l):Fn}function Dn(e,t,n,s,r){const o=e.providerIndexes,i=t.data,l=65535&o,a=e.directiveStart,c=o>>16,u=r?l+c:e.directiveEnd;for(let h=s?l:l+c;h=a&&e.type===n)return h}if(r){const e=i[a];if(e&&bt(e)&&e.type===n)return a}return null}function jn(e,t,n,s){let r=e[n];const o=t.data;if(r instanceof pn){const i=r;if(i.resolving)throw new Error(`Circular dep for ${xn(o[n])}`);const l=En(i.canSeeViewProviders);let a;i.resolving=!0,i.injectImpl&&(a=je(i.injectImpl)),Wt(e,s);try{r=e[n]=i.factory(void 0,o,e,s),t.firstCreatePass&&n>=s.directiveStart&&function(e,t,n){const{onChanges:s,onInit:r,doCheck:o}=t;s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{i.injectImpl&&je(a),En(l),i.resolving=!1,en()}}return r}function Hn(e,t,n){const s=64&e,r=32&e;let o;return o=128&e?s?r?n[t+7]:n[t+6]:r?n[t+5]:n[t+4]:s?r?n[t+3]:n[t+2]:r?n[t+1]:n[t],!!(o&1<o?"":r[u+1].toLowerCase();const t=8&s?e:null;if(t&&-1!==Jn(t,c,0)||2&s&&c!==e){if(ns(s))return!1;i=!0}}}}else{if(!i&&!ns(s)&&!ns(a))return!1;if(i&&ns(a))continue;i=!1,s=a|1&s}}return ns(s)||i}function ns(e){return 0==(1&e)}function ss(e,t,n,s){if(null===t)return-1;let r=0;if(s||!n){let n=!1;for(;r-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&s?r+="."+i:4&s&&(r+=" "+i);else""===r||ns(i)||(t+=os(o,r),r=""),s=i,o=o||!ns(s);n++}return""!==r&&(t+=os(o,r)),t}const ls={};function as(e){const t=e[3];return ft(t)?t[3]:t}function cs(e){us(Dt(),Rt(),nn()+e,Lt())}function us(e,t,n,s){if(!s)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&an(t,s,n)}else{const s=e.preOrderHooks;null!==s&&cn(t,s,0,n)}sn(n)}function hs(e,t){return e<<17|t<<2}function ds(e){return e>>17&32767}function ps(e){return 2|e}function fs(e){return(131068&e)>>2}function gs(e,t){return-131069&e|t<<2}function ms(e){return 1|e}function ys(e,t){const n=e.contentQueries;if(null!==n)for(let s=0;s>1==-1){for(let e=9;e19&&us(e,t,0,Lt()),n(s,r)}finally{sn(o)}}function ks(e,t,n){Ft()&&(function(e,t,n,s){const r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Pn(n,t),Wn(s,t);const i=n.initialInputs;for(let l=r;lPromise.resolve(null))();function er(e){return e[7]||(e[7]=[])}function tr(e){return e.cleanup||(e.cleanup=[])}function nr(e,t){const n=e[9],s=n?n.get(Zn,null):null;s&&s.handleError(t)}function sr(e,t,n,s,r){for(let o=0;o0&&(e[n-1][4]=s[4]);const o=Ge(e,9+t);lr(s[1],s,!1,null);const i=o[5];null!==i&&i.detachView(o[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function ur(e,t){if(!(256&t[2])){const n=t[11];wt(n)&&n.destroyNode&&_r(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return dr(e[1],e);for(;t;){let n=null;if(pt(t))n=t[13];else{const e=t[9];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)pt(t)&&dr(t[1],t),t=hr(t,e);null===t&&(t=e),pt(t)&&dr(t[1],t),n=t&&t[4]}t=n}}(t)}}function hr(e,t){let n;return pt(e)&&(n=e[6])&&2===n.type?rr(n,e):e[3]===t?null:e[3]}function dr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let s=0;s=0?e[l]():e[-l].unsubscribe(),s+=2}else n[s].call(e[n[s+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&wt(t[11])&&t[11].destroy();const s=t[17];if(null!==s&&ft(t[3])){s!==t[3]&&ar(s,t);const n=t[5];null!==n&&n.detachView(e)}}}function pr(e,t,n,s){wt(e)?e.insertBefore(t,n,s):t.insertBefore(n,s,!0)}function fr(e,t,n){wt(e)?e.appendChild(t,n):t.appendChild(n)}function gr(e,t,n,s){null!==s?pr(e,t,n,s):fr(e,t,n)}function mr(e,t){return wt(e)?e.parentNode(t):t.parentNode}function yr(e,t,n,s){const r=function(e,t,n){let s=t.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(t=s).parent;if(null==s){const e=n[6];return 2===e.type?or(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return kt(t,n).parentNode;if(2&s.flags){const t=e.data,n=t[t[s.index].directiveStart].encapsulation;if(n!==Je.ShadowDom&&n!==Je.Native)return null}return kt(s,n)}(e,s,t);if(null!=r){const e=t[11],o=function(e,t){if(2===e.type){const n=rr(e,t);return null===n?null:br(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?kt(e,t):null}(s.parent||t[6],t);if(Array.isArray(n))for(let t=0;t-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ur(this._lView[1],this._lView)}onDestroy(e){var t,n,s;t=this._lView[1],s=e,er(n=this._lView).push(s),t.firstCreatePass&&tr(t).push(n[7].length-1,null)}markForCheck(){Ws(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ys(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){zt(!0);try{Ys(e,t,n)}finally{zt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,_r(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class kr extends Sr{constructor(e){super(e),this._view=e}detectChanges(){Xs(this._view)}checkNoChanges(){!function(e){zt(!0);try{Xs(e)}finally{zt(!1)}}(this._view)}get context(){return null}}let Ar,Er,Tr;function Pr(e,t,n){return Ar||(Ar=class extends e{}),new Ar(kt(t,n))}function Or(e,t,n,s){return Er||(Er=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=vs(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[5];null!==s&&(n[5]=s.createEmbeddedView(t)),ws(t,n,e);const r=new Sr(n);return r._tViewNode=n[6],r}}),0===n.type?new Er(s,n,Pr(t,n,s)):null}function Ir(e,t,n,s){let r;Tr||(Tr=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return Pr(t,this._hostTNode,this._hostView)}get injector(){return new Bn(this._hostTNode,this._hostView)}get parentInjector(){const e=Mn(this._hostTNode,this._hostView),t=wn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let s=_n(e),r=t,o=t[6];for(;s>1;)r=r[15],o=r[6],s--;return o}(e,this._hostView,this._hostTNode);return bn(e)&&null!=n?new Bn(n,t):new Bn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-9}createEmbeddedView(e,t,n){const s=e.createEmbeddedView(t||{});return this.insert(s,n),s}createComponent(e,t,n,s,r){const o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){const e=o.get(Ke,null);e&&(r=e)}const i=e.create(o,s,void 0,r);return this.insert(i.hostView,t),i}insert(e,t){const n=e._lView,s=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),ft(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],s=new Tr(t,t[6],t[3]);s.detach(s.indexOf(e))}}const r=this._adjustIndex(t);return function(e,t,n,s){const r=9+s,o=n.length;s>0&&(n[r-1][4]=t),s{class e{}return e.__NG_ELEMENT_ID__=()=>Nr(),e})();const Nr=Mr,Fr=new Oe("Set Injector scope."),Rr={},Dr={},jr=[];let Hr=void 0;function qr(){return void 0===Hr&&(Hr=new ze),Hr}function Br(e,t=null,n=null,s){return new Lr(e,n,t||qr(),s)}class Lr{constructor(e,t,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];t&&Ze(t,n=>this.processProvider(n,e,t)),Ze([e],e=>this.processInjectorType(e,[],r)),this.records.set(Ie,Kr(void 0,this));const o=this.records.get(Fr);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof e?null:pe(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Me,n=ee.Default){this.assertNotDestroyed();const s=De(this);try{if(!(n&ee.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Oe)&&oe(e);t=n&&this.injectableDefInScope(n)?Kr(zr(e),Rr):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&ee.Self?qr():this.parent).get(e,t=n&ee.Optional&&t===Me?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(pe(e)),s)throw o;return function(e,t,n,s){const r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=pe(t);if(Array.isArray(t))r=t.map(pe).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let s=t[n];e.push(n+":"+("string"==typeof s?JSON.stringify(s):pe(s)))}r=`{${e.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${e.replace(Ve,"\n ")}`}("\n"+e.message,r,n,s),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{De(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(pe(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ye(e)))return!1;let s=le(e);const r=null==s&&e.ngModule||void 0,o=void 0===r?e:r,i=-1!==n.indexOf(o);if(void 0!==r&&(s=le(r)),null==s)return!1;if(null!=s.imports&&!i){let e;n.push(o);try{Ze(s.imports,s=>{this.processInjectorType(s,t,n)&&(void 0===e&&(e=[]),e.push(s))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,s||jr))}}this.injectorDefTypes.add(o),this.records.set(o,Kr(s.factory,Rr));const l=s.providers;if(null!=l&&!i){const t=e;Ze(l,e=>this.processProvider(e,t,l))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let s=Qr(e=ye(e))?e:ye(e&&e.provide);const r=function(e,t,n){return Zr(e)?Kr(void 0,e.useValue):Kr(function(e,t,n){let s=void 0;if(Qr(e)){const t=ye(e);return ht(t)||zr(t)}if(Zr(e))s=()=>ye(e.useValue);else if((r=e)&&r.useFactory)s=()=>e.useFactory(...Le(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))s=()=>qe(ye(e.useExisting));else{const r=ye(e&&(e.useClass||e.provide));if(r||function(e,t,n){let s="";throw e&&t&&(s=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${pe(e)}'`+s)}(t,n,e),!function(e){return!!e.deps}(e))return ht(r)||zr(r);s=()=>new r(...Le(e.deps))}var r;return s}(e,t,n),Rr)}(e,t,n);if(Qr(e)||!0!==e.multi){const e=this.records.get(s);e&&void 0!==e.multi&&Xn()}else{let t=this.records.get(s);t?void 0===t.multi&&Xn():(t=Kr(void 0,Rr,!0),t.factory=()=>Le(t.multi),this.records.set(s,t)),s=e,t.multi.push(e)}this.records.set(s,r)}hydrate(e,t){var n;return t.value===Dr?function(e){throw new Error(`Cannot instantiate cyclic dependency! ${e}`)}(pe(e)):t.value===Rr&&(t.value=Dr,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function zr(e){const t=oe(e),n=null!==t?t.factory:ht(e);if(null!==n)return n;const s=le(e);if(null!==s)return s.factory;if(e instanceof Oe)throw new Error(`Token ${pe(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=function(e,t){const n=[];for(let s=0;sn.factory(e):()=>new e}(e);throw new Error("unreachable")}function Kr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zr(e){return null!==e&&"object"==typeof e&&Ne in e}function Qr(e){return"function"==typeof e}const Gr=function(e,t,n){return function(e,t=null,n=null,s){const r=Br(e,t,n,s);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let Ur=(()=>{class e{static create(e,t){return Array.isArray(e)?Gr(e,t,""):Gr(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Me,e.NULL=new ze,e.\u0275prov=se({token:e,providedIn:"any",factory:()=>qe(Ie)}),e.__NG_ELEMENT_ID__=-1,e})(),Wr=new Map;const Yr=new Set;function Xr(e){return"string"==typeof e?e:e.text()}function Jr(e,t){let n=e.styles,s=e.classes,r=0;for(let o=0;ol(xt(e[s.index])).target:s.index;if(wt(n)){let i=null;if(!l&&a&&(i=function(e,t,n,s){const r=e.cleanup;if(null!=r)for(let o=0;on?e[n]:null}"string"==typeof e&&(o+=2)}return null}(e,t,r,s.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=o,i.__ngLastListenerFn__=o,h=!1;else{o=wo(s,t,o,!1);const e=n.listen(p.name||f,r,o);u.push(o,e),c&&c.push(r,m,g,g+1)}}else o=wo(s,t,o,!0),f.addEventListener(r,o,i),u.push(o),c&&c.push(r,m,g,i)}const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const e=p.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,Nt.lFrame.contextLView))[8]}(e)}const xo=[];function So(e,t,n,s,r){const o=e[n+1],i=null===t;let l=s?ds(o):fs(o),a=!1;for(;0!==l&&(!1===a||i);){const n=e[l+1];ko(e[l],t)&&(a=!0,e[l+1]=s?ms(n):ps(n)),l=s?ds(n):fs(n)}a&&(e[n+1]=s?ps(o):ms(o))}function ko(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ye(e,t)>=0}function Ao(e,t,n){return To(e,t,n,!1),Ao}function Eo(e,t){return To(e,t,null,!0),Eo}function To(e,t,n,s){const r=Rt(),o=Dt(),i=function(e){const t=Nt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+2,n}();if(o.firstUpdatePass&&function(e,t,n,s){const r=e.data;if(null===r[n+1]){const o=r[nn()+19],i=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(o,s)&&null===t&&!i&&(t=!1),t=function(e,t,n,s){const r=function(e){const t=Nt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let o=s?t.residualClasses:t.residualStyles;if(null===r)0===(s?t.classBindings:t.styleBindings)&&(n=Oo(n=Po(null,e,t,n,s),t.attrs,s),o=null);else{const i=t.directiveStylingLast;if(-1===i||e[i]!==r)if(n=Po(r,e,t,n,s),null===o){let n=function(e,t,n){const s=n?t.classBindings:t.styleBindings;if(0!==fs(s))return e[ds(s)]}(e,t,s);void 0!==n&&Array.isArray(n)&&(n=Po(null,e,t,n[1],s),n=Oo(n,t.attrs,s),function(e,t,n,s){e[ds(n?t.classBindings:t.styleBindings)]=s}(e,t,s,n))}else o=function(e,t,n){let s=void 0;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(u=!0)}else c=n;if(r)if(0!==a){const t=ds(e[l+1]);e[s+1]=hs(t,l),0!==t&&(e[t+1]=gs(e[t+1],s)),e[l+1]=131071&e[l+1]|s<<17}else e[s+1]=hs(l,0),0!==l&&(e[l+1]=gs(e[l+1],s)),l=s;else e[s+1]=hs(a,0),0===l?l=s:e[a+1]=gs(e[a+1],s),a=s;u&&(e[s+1]=ps(e[s+1])),So(e,c,s,!0),So(e,c,s,!1),function(e,t,n,s,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Ye(o,t)>=0&&(n[s+1]=ms(n[s+1]))}(t,c,e,s,o),i=hs(l,a),o?t.classBindings=i:t.styleBindings=i}(r,o,t,n,i,s)}}(o,e,i,s),t!==ls&&io(r,i,t)){let l;null==n&&(l=function(){const e=Nt.lFrame;return null===e?null:e.currentSanitizer}())&&(n=l),function(e,t,n,s,r,o,i,l){if(3!==t.type)return;const a=e.data,c=a[l+1];Mo(1==(1&c)?Io(a,t,n,r,fs(c),i):void 0)||(Mo(o)||function(e){return 2==(2&e)}(c)&&(o=Io(a,null,n,r,l,i)),function(e,t,n,s,r){const o=wt(e);if(t)r?o?e.addClass(n,s):n.classList.add(s):o?e.removeClass(n,s):n.classList.remove(s);else{const t=-1==s.indexOf("-")?void 0:2;null==r?o?e.removeStyle(n,s,t):n.style.removeProperty(s):o?e.setStyle(n,s,r,t):n.style.setProperty(s,r)}}(s,i,St(nn(),n),r,o))}(o,o.data[nn()+19],r,r[11],e,r[i+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=pe(function(e){return e instanceof class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),s,i)}}function Po(e,t,n,s,r){let o=null;const i=n.directiveEnd;let l=n.directiveStylingLast;for(-1===l?l=n.directiveStart:l++;l0;){const t=e[r],o=Array.isArray(t),a=o?t[1]:t,c=null===a;let u=n[r+1];u===ls&&(u=c?xo:void 0);let h=c?We(u,s):a===s?u:void 0;if(o&&!Mo(h)&&(h=We(t,s)),Mo(h)&&(l=h,i))return l;const d=e[r+1];r=i?ds(d):fs(d)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(l=We(e,s))}return l}function Mo(e){return void 0!==e}function Vo(e,t=""){const n=Rt(),s=Dt(),r=e+19,o=s.firstCreatePass?_s(s,n[6],e,3,null,null):s.data[r],i=n[r]=function(e,t){return wt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);yr(s,n,i,o),qt(o,!1)}function No(e,t,n){const s=Rt(),r=function(e,t,n,s){return io(e,Zt(),n)?t+Cn(n)+s:ls}(s,e,t,n);return r!==ls&&function(e,t,n){const s=St(t,e),r=e[11];wt(r)?r.setValue(s,n):s.textContent=n}(s,nn(),r),No}function Fo(e,t,n){const s=Rt();return io(s,Zt(),t)&&Is(Dt(),rn(),s,e,t,s[11],n,!0),Fo}function Ro(e,t){const n=Pt(e)[1],s=n.data.length-1;ln(n,{directiveStart:s,directiveEnd:s+1})}function Do(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const s=[e];for(;t;){let r=void 0;if(bt(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){s.push(r);const t=e;t.inputs=jo(e.inputs),t.declaredInputs=jo(e.declaredInputs),t.outputs=jo(e.outputs);const n=r.hostBindings;n&&Bo(e,n);const o=r.viewQuery,i=r.contentQueries;if(o&&Ho(e,o),i&&qo(e,i),ne(e.inputs,r.inputs),ne(e.declaredInputs,r.declaredInputs),ne(e.outputs,r.outputs),bt(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}t.afterContentChecked=t.afterContentChecked||r.afterContentChecked,t.afterContentInit=e.afterContentInit||r.afterContentInit,t.afterViewChecked=e.afterViewChecked||r.afterViewChecked,t.afterViewInit=e.afterViewInit||r.afterViewInit,t.doCheck=e.doCheck||r.doCheck,t.onDestroy=e.onDestroy||r.onDestroy,t.onInit=e.onInit||r.onInit}const t=r.features;if(t)for(let s=0;s=0;s--){const r=e[s];r.hostVars=t+=r.hostVars,r.hostAttrs=mn(r.hostAttrs,n=mn(n,r.hostAttrs))}}(s)}function jo(e){return e===$e?{}:e===et?[]:e}function Ho(e,t){const n=e.viewQuery;e.viewQuery=n?(e,s)=>{t(e,s),n(e,s)}:t}function qo(e,t){const n=e.contentQueries;e.contentQueries=n?(e,s,r)=>{t(e,s,r),n(e,s,r)}:t}function Bo(e,t){const n=e.hostBindings;e.hostBindings=n?(e,s)=>{t(e,s),n(e,s)}:t}class Lo{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function zo(e){e.type.prototype.ngOnChanges&&(e.setInput=Ko,e.onChanges=function(){const e=Zo(this),t=e&&e.current;if(t){const n=e.previous;if(n===$e)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function Ko(e,t,n,s){const r=Zo(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:$e,current:null}),o=r.current||(r.current={}),i=r.previous,l=this.declaredInputs[n],a=i[l];o[l]=new Lo(a&&a.currentValue,t,i===$e),e[s]=t}function Zo(e){return e.__ngSimpleChanges__||null}zo.ngInherit=!0;class Qo{}class Go{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${pe(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let Uo=(()=>{class e{}return e.NULL=new Go,e})(),Wo=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>Yo(e),e})();const Yo=function(e){return Pr(e,Ht(),Rt())};class Xo{}const Jo=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let $o=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ei(),e})();const ei=function(){const e=Rt(),t=Tt(Ht().index,e);return function(e){const t=e[11];if(wt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(pt(t)?t:e)};let ti=(()=>{class e{}return e.\u0275prov=se({token:e,providedIn:"root",factory:()=>null}),e})();class ni{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const si=new ni("9.0.7");class ri{constructor(){}supports(e){return so(e)}create(e){return new ii(e)}}const oi=(e,t)=>t;class ii{constructor(e){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=e||oi}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,s=0,r=null;for(;t||n;){const o=!n||t&&t.currentIndex{s=this._trackByFn(t,e),null!==r&&to(r.trackById,s)?(o&&(r=this._verifyReinsertion(r,e,s,t)),to(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,s,t),o=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,s){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(to(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,s)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(to(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,s)):e=this._addAfter(new li(t,n),r,s),e}_verifyReinsertion(e,t,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,r=e._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ci),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ci),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class li{constructor(e,t){this.item=e,this.trackById=t,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 ai{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&to(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class ci{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new ai,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ui(e,t,n){const s=e.previousIndex;if(null===s)return s;let r=0;return n&&s{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new pi(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){to(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class pi{constructor(e){this.key=e,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 fi=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new $,new X]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=se({token:e,providedIn:"root",factory:()=>new e([new ri])}),e})(),gi=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new $,new X]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=se({token:e,providedIn:"root",factory:()=>new e([new hi])}),e})();const mi=[new hi],yi=new fi([new ri]),bi=new gi(mi);let vi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>_i(e,Wo),e})();const _i=function(e,t){return Or(e,t,Ht(),Rt())};let wi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ci(e,Wo),e})();const Ci=function(e,t){return Ir(e,t,Ht(),Rt())},xi={};class Si extends Uo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ut(e);return new Ei(t,this.ngModule)}}function ki(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Ai=new Oe("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Sn});class Ei extends Qo{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(is).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ki(this.componentDef.inputs)}get outputs(){return ki(this.componentDef.outputs)}create(e,t,n,s){const r=(s=s||this.ngModule)?function(e,t){return{get:(n,s,r)=>{const o=e.get(n,xi,r);return o!==xi||s===xi?o:t.get(n,s,r)}}}(e,s.injector):e,o=r.get(Xo,Ct),i=r.get(ti,null),l=o.createRenderer(null,this.componentDef),a=this.componentDef.selectors[0][0]||"div",c=n?function(e,t,n){if(wt(e))return e.selectRootElement(t,n===Je.ShadowDom);let s="string"==typeof t?e.querySelector(t):t;return s.textContent="",s}(l,n,this.componentDef.encapsulation):bs(a,o.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(a)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:Sn,clean:$s,playerHandler:null,flags:0},p=Ts(0,-1,null,1,0,null,null,null,null,null),f=vs(null,p,d,u,null,null,o,l,i,r);let g,m;Yt(f,null);try{const e=function(e,t,n,s,r,o){const i=n[1];n[19]=e;const l=_s(i,null,0,3,null,null),a=l.mergedAttrs=t.hostAttrs;null!==a&&(Jr(l,a),null!==e&&(fn(r,e,a),null!==l.classes&&xr(r,e,l.classes),null!==l.styles&&Cr(r,e,l.styles)));const c=s.createRenderer(e,t),u=vs(n,Es(t),null,t.onPush?64:16,n[19],l,s,c,void 0);return i.firstCreatePass&&(Vn(Pn(l,n),i,t.type),Ds(i,l),Hs(l,n.length,1)),Us(n,u),n[19]=u}(c,this.componentDef,f,o,l);if(c)if(n)fn(l,c,["ng-version",si.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let s=1,r=2;for(;s0&&xr(l,c,t.join(" "))}m=At(f[1],0),t&&(m.projection=t.map(e=>Array.from(e))),g=function(e,t,n,s,r){const o=n[1],i=function(e,t,n){const s=Ht();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Rs(e,s,1),qs(e,t,n));const r=jn(t,e,t.length-1,s);Wn(r,t);const o=kt(s,t);return o&&Wn(o,t),r}(o,n,t);s.components.push(i),e[8]=i,r&&r.forEach(e=>e(i,t)),t.contentQueries&&t.contentQueries(1,i,n.length-1);const l=Ht();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){sn(l.index-19);const e=n[1];Vs(e,t),Ns(e,n,t.hostVars),Fs(t,i)}return i}(e,this.componentDef,f,d,[Ro]),ws(p,f,null)}finally{tn()}const y=new Ti(this.componentType,g,Pr(Wo,m,f),f,m);return n&&!h||(y.hostView._tViewNode.child=m),y}}class Ti extends class{}{constructor(e,t,n,s,r){super(),this.location=n,this._rootLView=s,this._tNode=r,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new kr(s),this.hostView._tViewNode=function(e,t,n,s){let r=e.node;return null==r&&(e.node=r=Ps(0,null,2,-1,null,null)),s[6]=r}(s[1],0,0,s),this.componentType=e}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Pi=void 0;var Oi=["en",[["a","p"],["AM","PM"],Pi],[["AM","PM"],Pi,Pi],[["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"]],Pi,[["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"]],Pi,[["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}",Pi,"{1} 'at' {0}",Pi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Ii={};function Mi(e){return e in Ii||(Ii[e]=Ce.ng&&Ce.ng.common&&Ce.ng.common.locales&&Ce.ng.common.locales[e]),Ii[e]}const Vi=function(){var e={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,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();let Ni="en-US";function Fi(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,s){throw new Error(`ASSERTION ERROR: ${e}`+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(Ni=e.toLowerCase().replace(/_/g,"-"))}const Ri=new Map;class Di extends Ke{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Si(this);const n=dt(e),s=e[Ee]||null;s&&Fi(s),this._bootstrapComponents=kn(n.bootstrap),this._r3Injector=Br(e,t,[{provide:Ke,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver}],pe(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ur.THROW_IF_NOT_FOUND,n=ee.Default){return e===Ur||e===Ke||e===Ie?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ji extends class{}{constructor(e){super(),this.moduleType=e,null!==dt(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${pe(t)} vs ${pe(t.name)}`)})(e,Ri.get(e),t),Ri.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new Di(this.moduleType,e)}}function Hi(e,t,n,s,r){return Li(Rt(),Kt(),e,t,n,s,r)}function qi(e,t){const n=e[t];return n===ls?void 0:n}function Bi(e,t,n,s,r,o){const i=t+n;return io(e,i,r)?oo(e,i+1,o?s.call(o,r):s(r)):qi(e,i+1)}function Li(e,t,n,s,r,o,i){const l=t+n;return function(e,t,n,s){const r=io(e,t,n);return io(e,t+1,s)||r}(e,l,r,o)?oo(e,l+2,i?s.call(i,r,o):s(r,o)):qi(e,l+2)}function zi(e,t){const n=Dt();let s;const r=e+19;n.firstCreatePass?(s=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const s=t[n];if(e===s.name)return s}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,s.onDestroy)):s=n.data[r];const o=s.factory||(s.factory=ht(s.type)),i=je(uo),l=o();return je(i),function(e,t,n,s){const r=n+19;r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=s}(n,Rt(),e,l),l}function Ki(e,t,n){const s=Rt(),r=Et(s,e);return Gi(s,Qi(s,e)?Bi(s,Kt(),t,r.transform,n,r):r.transform(n))}function Zi(e,t,n,s){const r=Rt(),o=Et(r,e);return Gi(r,Qi(r,e)?Li(r,Kt(),t,o.transform,n,s,o):o.transform(n,s))}function Qi(e,t){return e[1].data[t+19].pure}function Gi(e,t){return no.isWrapped(t)&&(t=no.unwrap(t),e[Nt.lFrame.bindingIndex]=ls),t}class Ui extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let s,r=e=>null,o=()=>null;e&&"object"==typeof e?(s=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(s,r,o);return e instanceof h&&e.add(i),i}}function Wi(){return this._results[eo()]()}class Yi{constructor(){this.dirty=!0,this._results=[],this.changes=new Ui,this.length=0;const e=eo(),t=Yi.prototype;t[e]||(t[e]=Wi)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let s=0;s0)r.push(l[t/2]);else{const o=i[t+1],l=n[-s];for(let t=9;t{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(qe(ul,8))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const dl=new Oe("AppId"),pl={provide:dl,useFactory:function(){return`${fl()}${fl()}${fl()}`},deps:[]};function fl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gl=new Oe("Platform Initializer"),ml=new Oe("Platform ID"),yl=new Oe("appBootstrapListener");let bl=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const vl=new Oe("LocaleId"),_l=new Oe("DefaultCurrencyCode");class wl{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Cl=function(e){return new ji(e)},xl=Cl,Sl=function(e){return Promise.resolve(Cl(e))},kl=function(e){const t=Cl(e),n=kn(dt(e).declarations).reduce((e,t)=>{const n=ut(t);return n&&e.push(new Ei(n)),e},[]);return new wl(t,n)},Al=kl,El=function(e){return Promise.resolve(kl(e))};let Tl=(()=>{class e{constructor(){this.compileModuleSync=xl,this.compileModuleAsync=Sl,this.compileModuleAndAllComponentsSync=Al,this.compileModuleAndAllComponentsAsync=El}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const Pl=new Oe("compilerOptions"),Ol=(()=>Promise.resolve(0))();function Il(e){"undefined"==typeof Zone?Ol.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ml{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ui(!1),this.onMicrotaskEmpty=new Ui(!1),this.onStable=new Ui(!1),this.onError=new Ui(!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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=Ce.requestAnimationFrame,t=Ce.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ce,()=>{e.lastRequestAnimationFrameId=-1,Rl(e),Fl(e)}),Rl(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,s,r,o,i,l)=>{try{return Dl(e),n.invokeTask(r,o,i,l)}finally{t&&"eventTask"===o.type&&t(),jl(e)}},onInvoke:(t,n,s,r,o,i,l)=>{try{return Dl(e),t.invoke(s,r,o,i,l)}finally{jl(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,Rl(e),Fl(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ml.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ml.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,s){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+s,e,Nl,Vl,Vl);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function Vl(){}const Nl={};function Fl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Rl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Dl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function jl(e){e._nesting--,Fl(e)}class Hl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ui,this.onMicrotaskEmpty=new Ui,this.onStable=new Ui,this.onError=new Ui}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,s){return e.apply(t,n)}}let ql=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{Ml.assertNotInAngularZone(),Il(()=>{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())Il(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let s=-1;t&&t>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==s),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(qe(Ml))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})(),Bl=(()=>{class e{constructor(){this._applications=new Map,Kl.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Kl.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class Ll{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let zl,Kl=new Ll,Zl=function(e,t,n){const s=new ji(n);if(0===Wr.size)return Promise.resolve(s);const r=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(e.get(Pl,[]).concat(t).map(e=>e.providers));if(0===r.length)return Promise.resolve(s);const o=function(){const e=Ce.ng;if(!e||!e.\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 e.\u0275compilerFacade}(),i=Ur.create({providers:r}).get(o.ResourceLoader);return function(e){const t=[],n=new Map;function s(e){let t=n.get(e);if(!t){const s=(e=>Promise.resolve(i.get(e)))(e);n.set(e,t=s.then(Xr))}return t}return Wr.forEach((e,n)=>{const r=[];e.templateUrl&&r.push(s(e.templateUrl).then(t=>{e.template=t}));const o=e.styleUrls,i=e.styles||(e.styles=[]),l=e.styles.length;o&&o.forEach((t,n)=>{i.push(""),r.push(s(t).then(s=>{i[l+n]=s,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)}))});const a=Promise.all(r).then(()=>function(e){Yr.delete(e)}(n));t.push(a)}),Wr=new Map,Promise.all(t).then(()=>{})}().then(()=>s)};const Ql=new Oe("AllowMultipleToken");function Gl(e,t,n=[]){const s=`Platform: ${t}`,r=new Oe(s);return(t=[])=>{let o=Ul();if(!o||o.injector.get(Ql,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:Fr,useValue:"platform"});!function(e){if(zl&&!zl.destroyed&&!zl.injector.get(Ql,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zl=e.get(Wl);const t=e.get(gl,null);t&&t.forEach(e=>e())}(Ur.create({providers:e,name:s}))}return function(e){const t=Ul();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ul(){return zl&&!zl.destroyed?zl:null}let Wl=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Hl:("zone.js"===e?void 0:e)||new Ml({enableLongStackTrace:Un(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),s=[{provide:Ml,useValue:n}];return n.run(()=>{const t=Ur.create({providers:s,parent:this.injector,name:e.moduleType.name}),r=e.create(t),o=r.injector.get(Zn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Jl(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{o.handleError(e)}})),function(e,t,n){try{const s=n();return bo(s)?s.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}(o,n,()=>{const e=r.injector.get(hl);return e.runInitializers(),e.donePromise.then(()=>(Fi(r.injector.get(vl,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Yl({},t);return Zl(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Xl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${pe(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(qe(Ur))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();function Yl(e,t){return Array.isArray(t)?t.reduce(Yl,e):Object.assign(Object.assign({},e),t)}let Xl=(()=>{class e{constructor(e,t,n,s,r,o){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Un(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{Ml.assertNotInAngularZone(),Il(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ml.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,s=e[e.length-1];return k(s)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof s&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof b?e[0]:function(e=Number.POSITIVE_INFINITY){return function e(t,n,s=Number.POSITIVE_INFINITY){return"function"==typeof n?r=>r.pipe(e((e,s)=>{return(r=t(e,s),r instanceof b?r:new b(O(r))).pipe(V((t,r)=>n(e,t,s,r)));var r},s)):("number"==typeof n&&(s=n),e=>e.lift(new D(t,s)))}(H,e)}(t)(q(e,n))}(i,l.pipe(e=>{return B()((t=G,function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,Z);return s.source=e,s.subjectFactory=n,s})(e));var t}))}bootstrap(e,t){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=e instanceof Qo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(Ke),r=n.create(Ur.NULL,[],t||n.selector,s);r.onDestroy(()=>{this._unloadComponent(r)});const o=r.injector.get(ql,null);return o&&r.injector.get(Bl).registerApplication(r.location.nativeElement,o),this._loadComponent(r),Un()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Jl(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(yl,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Jl(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(qe(Ml),qe(bl),qe(Ur),qe(Zn),qe(Uo),qe(hl))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();function Jl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $l=Gl(null,"core",[{provide:ml,useValue:"unknown"},{provide:Wl,deps:[Ur]},{provide:Bl,deps:[]},{provide:bl,deps:[]}]),ea=[{provide:Xl,useClass:Xl,deps:[Ml,bl,Ur,Zn,Uo,hl]},{provide:Ai,deps:[Ml],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:hl,useClass:hl,deps:[[new X,ul]]},{provide:Tl,useClass:Tl,deps:[]},pl,{provide:fi,useFactory:function(){return yi},deps:[]},{provide:gi,useFactory:function(){return bi},deps:[]},{provide:vl,useFactory:function(e){return Fi(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Y(vl),new X,new $]]},{provide:_l,useValue:"USD"}];let ta=(()=>{class e{constructor(e){}}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)(qe(Xl))},providers:ea}),e})(),na=null;function sa(){return na}const ra=new Oe("DocumentToken"),oa=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}();class ia{}let la=(()=>{class e extends ia{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Mi(t);if(n)return n;const s=t.split("-")[0];if(n=Mi(s),n)return n;if("en"===s)return Oi;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Vi.PluralCase]}(t||this.locale)(e)){case oa.Zero:return"zero";case oa.One:return"one";case oa.Two:return"two";case oa.Few:return"few";case oa.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(qe(vl))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})(),aa=(()=>{class e{constructor(e,t,n,s){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(so(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${pe(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(uo(fi),uo(gi),uo(Wo),uo($o))},e.\u0275dir=at({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class ca{constructor(e,t,n,s){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=s}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 ua=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Un()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}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(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,s)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ca(null,this._ngForOf,-1,-1),null===s?void 0:s),r=new ha(e,n);t.push(r)}else if(null==s)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,s);const o=new ha(e,r);t.push(o)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(uo(wi),uo(vi),uo(fi))},e.\u0275dir=at({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class ha{constructor(e,t){this.record=e,this.view=t}}let da=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new pa,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){fa("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){fa("ngIfElse",e),this._elseTemplateRef=e,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(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(uo(wi),uo(vi))},e.\u0275dir=at({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class pa{constructor(){this.$implicit=null,this.ngIf=null}}function fa(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${pe(t)}'.`)}class ga{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let ma=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new ga(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(uo(wi),uo(vi),uo(ma,1))},e.\u0275dir=at({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),ba=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,s]=e.split(".");null!=(t=null!=t&&s?`${t}${s}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(uo(Wo),uo(gi),uo($o))},e.\u0275dir=at({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})();class va{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class _a{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const wa=new _a,Ca=new va;let xa=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):to(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,no.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(bo(t))return wa;if(function(e){return!!e&&"function"==typeof e.subscribe}(t))return Ca;throw Error(`InvalidPipeArgument: '${t}' for pipe '${pe(e)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(function(e=ee.Default){const t=Mr(!0);if(null!=t||e&ee.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},e.\u0275pipe=ct({name:"async",type:e,pure:!1}),e})(),Sa=(()=>{class e{}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)},providers:[{provide:ia,useClass:la}]}),e})();class ka extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new ka,na||(na=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=Ea||(Ea=document.querySelector("base"),Ea)?Ea.getAttribute("href"):null;return null==t?null:(n=t,Aa||(Aa=document.createElement("a")),Aa.setAttribute("href",n),"/"===Aa.pathname.charAt(0)?Aa.pathname:"/"+Aa.pathname);var n}resetBaseElement(){Ea=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[s,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(s.trim()===t)return decodeURIComponent(r)}return null}(document.cookie,e)}}let Aa,Ea=null;const Ta=new Oe("TRANSITION_ID"),Pa=[{provide:ul,useFactory:function(e,t,n){return()=>{n.get(hl).donePromise.then(()=>{const n=sa();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Ta,ra,Ur],multi:!0}];class Oa{static init(){var e;e=new Oa,Kl=e}addToWindow(e){Ce.getAngularTestability=(t,n=!0)=>{const s=e.findTestabilityInTree(t,n);if(null==s)throw new Error("Could not find testability for element.");return s},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements(),Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(e=>{const t=Ce.getAllAngularTestabilities();let n=t.length,s=!1;const r=function(t){s=s||t,n--,0==n&&e(s)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:n?sa().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const Ia=new Oe("EventManagerPlugins");let Ma=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let s=0;s{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})(),Fa=(()=>{class e extends Na{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>sa().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(qe(ra))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const Ra={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/"},Da=/%COMP%/g;function ja(e,t,n){for(let s=0;s{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let qa=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ba(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Je.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new La(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Je.Native:case Je.ShadowDom:return new za(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=ja(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(qe(Ma),qe(Fa),qe(dl))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class Ba{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ra[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,s){if(s){t=s+":"+t;const r=Ra[s];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const s=Ra[n];s?e.removeAttributeNS(s,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,s){s&Jo.DashCase?e.style.setProperty(t,n,s&Jo.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Jo.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ha(n)):this.eventManager.addEventListener(e,t,Ha(n))}}class La extends Ba{constructor(e,t,n,s){super(e),this.component=n;const r=ja(s+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Da,s+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(Da,e)}(s+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class za extends Ba{constructor(e,t,n,s){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===Je.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=ja(s.id,s.styles,[]);for(let o=0;o{class e extends Va{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(qe(ra))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const Za=["alt","control","meta","shift"],Qa={"\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"},Ga={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"},Ua={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Wa=(()=>{class e extends Va{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,s){const r=e.parseEventName(n),o=e.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sa().onAndCancel(t,r.domEventName,o))}static parseEventName(t){const n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=e._normalizeKey(n.pop());let o="";if(Za.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=r,0!=n.length||0===r.length)return null;const i={};return i.domEventName=s,i.fullKey=o,i}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ga.hasOwnProperty(t)&&(t=Ga[t]))}return Qa[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Za.forEach(s=>{s!=n&&(0,Ua[s])(e)&&(t+=s+".")}),t+=n,t}static eventCallback(t,n,s){return r=>{e.getEventFullKey(r)===t&&s.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(qe(ra))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const Ya=Gl($l,"browser",[{provide:ml,useValue:"browser"},{provide:gl,useValue:function(){ka.makeCurrent(),Oa.init()},multi:!0},{provide:ra,useFactory:function(){return function(e){_t=e}(document),document},deps:[]}]),Xa=[[],{provide:Fr,useValue:"root"},{provide:Zn,useFactory:function(){return new Zn},deps:[]},{provide:Ia,useClass:Ka,multi:!0,deps:[ra,Ml,ml]},{provide:Ia,useClass:Wa,multi:!0,deps:[ra]},[],{provide:qa,useClass:qa,deps:[Ma,Fa,dl]},{provide:Xo,useExisting:qa},{provide:Na,useExisting:Fa},{provide:Fa,useClass:Fa,deps:[ra]},{provide:ql,useClass:ql,deps:[Ml]},{provide:Ma,useClass:Ma,deps:[Ia,Ml]},[]];let Ja=(()=>{class e{constructor(e){if(e)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(t){return{ngModule:e,providers:[{provide:dl,useValue:t.appId},{provide:Ta,useExisting:dl},Pa]}}}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)(qe(e,12))},providers:Xa,imports:[Sa,ta]}),e})();"undefined"!=typeof window&&window;class $a{}function ec(e,t){return{type:7,name:e,definitions:t,options:{}}}function tc(e,t=null){return{type:4,styles:t,timings:e}}function nc(e,t=null){return{type:2,steps:e,options:t}}function sc(e){return{type:6,styles:e,offset:null}}function rc(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function oc(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function ic(e,t){return{type:12,timings:e,animation:t}}function lc(e){Promise.resolve(null).then(e)}class ac{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lc(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class cc{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,s=0;const r=this.players.length;0==r?lc(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function uc(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function hc(e){switch(e.length){case 0:return new ac;case 1:return e[0];default:return new cc(e)}}function dc(e,t,n,s,r={},o={}){const i=[],l=[];let a=-1,c=null;if(s.forEach(e=>{const n=e.offset,s=n==a,u=s&&c||{};Object.keys(e).forEach(n=>{let s=n,l=e[n];if("offset"!==n)switch(s=t.normalizePropertyName(s,i),l){case"!":l=r[n];break;case"*":l=o[n];break;default:l=t.normalizeStyleValue(n,s,l,i)}u[s]=l}),s||l.push(u),c=u,a=n}),i.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${i.join(e)}`)}return l}function pc(e,t,n,s){switch(t){case"start":e.onStart(()=>s(n&&fc(n,"start",e)));break;case"done":e.onDone(()=>s(n&&fc(n,"done",e)));break;case"destroy":e.onDestroy(()=>s(n&&fc(n,"destroy",e)))}}function fc(e,t,n){const s=n.totalTime,r=gc(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==s?e.totalTime:s,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function gc(e,t,n,s,r="",o=0,i){return{element:e,triggerName:t,fromState:n,toState:s,phaseName:r,totalTime:o,disabled:!!i}}function mc(e,t,n){let s;return e instanceof Map?(s=e.get(t),s||e.set(t,s=n)):(s=e[t],s||(s=e[t]=n)),s}function yc(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let bc=(e,t)=>!1,vc=(e,t)=>!1,_c=(e,t,n)=>[];const wc=uc();(wc||"undefined"!=typeof Element)&&(bc=(e,t)=>e.contains(t),vc=(()=>{if(wc||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):vc}})(),_c=(e,t,n)=>{let s=[];if(n)s.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&s.push(n)}return s});let Cc=null,xc=!1;function Sc(e){Cc||(Cc=("undefined"!=typeof document?document.body:null)||{},xc=!!Cc.style&&"WebkitAppearance"in Cc.style);let t=!0;return Cc.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Cc.style,!t&&xc)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Cc.style),t}const kc=vc,Ac=bc,Ec=_c;function Tc(e){const t={};return Object.keys(e).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[s]=e[n]}),t}let Pc=(()=>{class e{validateStyleProperty(e){return Sc(e)}matchesElement(e,t){return kc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Ec(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,s,r,o=[],i){return new ac(n,s)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})(),Oc=(()=>{class e{}return e.NOOP=new Pc,e})();function Ic(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Mc(parseFloat(t[1]),t[2])}function Mc(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Vc(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let s,r=0,o="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};s=Mc(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(r=Mc(parseFloat(i),n[4]));const l=n[5];l&&(o=l)}else s=e;if(!n){let n=!1,o=t.length;s<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(o,0,`The provided timing value "${e}" is invalid.`)}return{duration:s,delay:r,easing:o}}(e,t,n)}function Nc(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Fc(e,t,n={}){if(t)for(let s in e)n[s]=e[s];else Nc(e,n);return n}function Rc(e,t,n){return n?t+":"+n+";":""}function Dc(e){let t="";for(let n=0;n{const r=Qc(s);n&&!n.hasOwnProperty(s)&&(n[s]=e.style[r]),e.style[r]=t[s]}),uc()&&Dc(e))}function Hc(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Qc(t);e.style[n]=""}),uc()&&Dc(e))}function qc(e){return Array.isArray(e)?1==e.length?e[0]:nc(e):e}const Bc=new RegExp("{{\\s*(.+?)\\s*}}","g");function Lc(e){let t=[];if("string"==typeof e){let n;for(;n=Bc.exec(e);)t.push(n[1]);Bc.lastIndex=0}return t}function zc(e,t,n){const s=e.toString(),r=s.replace(Bc,(e,s)=>{let r=t[s];return t.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),r=""),r.toString()});return r==s?e:r}function Kc(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Zc=/-+([a-z0-9])/g;function Qc(e){return e.replace(Zc,(...e)=>e[1].toUpperCase())}function Gc(e,t){return 0===e||0===t}function Uc(e,t,n){const s=Object.keys(n);if(s.length&&t.length){let o=t[0],i=[];if(s.forEach(e=>{o.hasOwnProperty(e)||i.push(e),o[e]=n[e]}),i.length)for(var r=1;rfunction(e,t,n){if(":"==e[0]){const s=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof s)return void t.push(s);e=s}const s=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=s[1],o=s[2],i=s[3];t.push(eu(r,i)),"<"!=o[0]||"*"==r&&"*"==i||t.push(eu(i,r))}(e,n,t)):n.push(e),n}const Jc=new Set(["true","1"]),$c=new Set(["false","0"]);function eu(e,t){const n=Jc.has(e)||$c.has(e),s=Jc.has(t)||$c.has(t);return(r,o)=>{let i="*"==e||e==r,l="*"==t||t==o;return!i&&n&&"boolean"==typeof r&&(i=r?Jc.has(e):$c.has(e)),!l&&s&&"boolean"==typeof o&&(l=o?Jc.has(t):$c.has(t)),i&&l}}const tu=new RegExp("s*:selfs*,?","g");function nu(e,t,n){return new su(e).build(t,n)}class su{constructor(e){this._driver=e}build(e,t){const n=new ru(t);return this._resetContextStyleTimingState(n),Wc(this,qc(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,s=t.depCount=0;const r=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,s=n.name;s.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=s}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,s+=r.depCount,o.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:o,queryCount:n,depCount:s,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,o=s||{};if(n.styles.forEach(e=>{if(ou(e)){const t=e;Object.keys(t).forEach(e=>{Lc(t[e]).forEach(e=>{o.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=Kc(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Wc(this,qc(e.animation),t);return{type:1,matchers:Xc(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:iu(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Wc(this,e,t)),options:iu(e.options)}}visitGroup(e,t){const n=t.currentTime;let s=0;const r=e.steps.map(e=>{t.currentTime=n;const r=Wc(this,e,t);return s=Math.max(s,t.currentTime),r});return t.currentTime=s,{type:3,steps:r,options:iu(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return lu(Vc(e,t).duration,0,"");const s=e;if(s.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=lu(0,0,"");return e.dynamic=!0,e.strValue=s,e}return n=n||Vc(s,t),lu(n.duration,n.delay,n.easing)}(e.timings,t.errors);let s;t.currentAnimateTimings=n;let r=e.styles?e.styles:sc({});if(5==r.type)s=this.visitKeyframes(r,t);else{let r=e.styles,o=!1;if(!r){o=!0;const e={};n.easing&&(e.easing=n.easing),r=sc(e)}t.currentTime+=n.duration+n.delay;const i=this.visitStyle(r,t);i.isEmptyStep=o,s=i}return t.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?"*"==e?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let s=!1,r=null;return n.forEach(e=>{if(ou(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!s)for(let e in t)if(t[e].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let s=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=t.collectedStyles[t.currentQuerySelector],i=o[n];let l=!0;i&&(r!=s&&r>=i.startTime&&s<=i.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${i.startTime}ms" and "${i.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),l=!1),r=i.startTime),l&&(o[n]={startTime:r,endTime:s}),t.options&&function(e,t,n){const s=t.params||{},r=Lc(e);r.length&&r.forEach(e=>{s.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let o=!1,i=!1,l=0;const a=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let a=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(ou(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(ou(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),c=0;return null!=a&&(s++,c=n.offset=a),i=i||c<0||c>1,o=o||c0&&s{const o=u>0?s==h?1:u*s:r[s],i=o*f;t.currentTime=d+p.delay+i,p.duration=i,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Wc(this,qc(e.animation),t),options:iu(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:iu(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:iu(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[r,o]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(tu,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,".ng-animating"),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,mc(t.collectedStyles,t.currentQuerySelector,{});const i=Wc(this,qc(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:i,originalSelector:e.selector,options:iu(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Vc(e.timings,t.errors,!0);return{type:12,animation:Wc(this,qc(e.animation),t),timings:n,options:null}}}class ru{constructor(e){this.errors=e,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 ou(e){return!Array.isArray(e)&&"object"==typeof e}function iu(e){var t;return e?(e=Nc(e)).params&&(e.params=(t=e.params)?Nc(t):null):e={},e}function lu(e,t,n){return{duration:e,delay:t,easing:n}}function au(e,t,n,s,r,o,i=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:s,duration:r,delay:o,totalTime:r+o,easing:i,subTimeline:l}}class cu{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const uu=new RegExp(":enter","g"),hu=new RegExp(":leave","g");function du(e,t,n,s,r,o={},i={},l,a,c=[]){return(new pu).buildKeyframes(e,t,n,s,r,o,i,l,a,c)}class pu{buildKeyframes(e,t,n,s,r,o,i,l,a,c=[]){a=a||new cu;const u=new gu(e,t,a,s,r,c,[]);u.options=l,u.currentTimeline.setStyles([o],null,u.errors,l),Wc(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(i).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([i],null,u.errors,l)}return h.length?h.map(e=>e.buildKeyframes()):[au(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const s=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,s,s.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime;const r=null!=n.duration?Ic(n.duration):null,o=null!=n.delay?Ic(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,o);s=Math.max(s,n.duration+n.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Wc(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let s=t;const r=e.options;if(r&&(r.params||r.delay)&&(s=t.createSubContext(r),s.transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=fu);const e=Ic(r.delay);s.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Wc(this,e,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let s=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?Ic(e.options.delay):0;e.steps.forEach(o=>{const i=t.createSubContext(e.options);r&&i.delayNextStep(r),Wc(this,o,i),s=Math.max(s,i.currentTimeline.currentTime),n.push(i.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Vc(t.params?zc(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),s.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,s=t.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,s=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(e=>{o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(s+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,s=e.options||{},r=s.delay?Ic(s.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=fu);let o=n;const i=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=i.length;let l=null;i.forEach((n,s)=>{t.currentQueryIndex=s;const i=t.createSubContext(e.options,n);r&&i.delayNextStep(r),n===t.element&&(l=i.currentTimeline),Wc(this,e.animation,i),i.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,i.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,s=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),i=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=i-l;break;case"full":l=n.currentStaggerTime}const a=t.currentTimeline;l&&a.delayNextStep(l);const c=a.currentTime;Wc(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const fu={};class gu{constructor(e,t,n,s,r,o,i,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new mu(this._driver,t,0),i.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let s=this.options;null!=n.duration&&(s.duration=Ic(n.duration)),null!=n.delay&&(s.delay=Ic(n.delay));const r=n.params;if(r){let e=s.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=zc(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const s=t||this.element,r=new gu(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=fu,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new yu(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,s,r,o){let i=[];if(s&&i.push(this.element),e.length>0){e=(e=e.replace(uu,"."+this._enterClassName)).replace(hu,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),i.push(...t)}return r||0!=i.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),i}}class mu{constructor(e,t,n,s){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=s,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new mu(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||"*",this._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,s){t&&(this._previousKeyframe.easing=t);const r=s&&s.params||{},o=function(e,t){const n={};let s;return e.forEach(e=>{"*"===e?(s=s||Object.keys(t),s.forEach(e=>{n[e]="*"})):Fc(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(e=>{const t=zc(o[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:"*"),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],s=e._styleSummary[t];(!n||s.time>n.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,o)=>{const i=Fc(r,!0);Object.keys(i).forEach(n=>{const s=i[n];"!"==s?e.add(n):"*"==s&&t.add(n)}),n||(i.offset=o/this.duration),s.push(i)});const r=e.size?Kc(e.values()):[],o=t.size?Kc(t.values()):[];if(n){const e=s[0],t=Nc(e);e.offset=0,t.offset=1,s=[e,t]}return au(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}}class yu extends mu{constructor(e,t,n,s,r,o,i=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=i,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],o=n+t,i=t/o,l=Fc(e[0],!1);l.offset=0,r.push(l);const a=Fc(e[0],!1);a.offset=bu(i),r.push(a);const c=e.length-1;for(let s=1;s<=c;s++){let i=Fc(e[s],!1);i.offset=bu((t+i.offset*n)/o),r.push(i)}n=o,t=0,s="",e=r}return au(this.element,e,this.preStyleProps,this.postStyleProps,n,t,s,!0)}}function bu(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class vu{}class _u extends vu{normalizePropertyName(e,t){return Qc(e)}normalizeStyleValue(e,t,n,s){let r="";const o=n.toString().trim();if(wu[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&s.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+r}}const wu=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("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 Cu(e,t,n,s,r,o,i,l,a,c,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:s,toStyles:i,timelines:l,queriedElements:a,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const xu={};class Su{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,s){return function(e,t,n,s,r){return e.some(e=>e(t,n,s,r))}(this.ast.matchers,e,t,n,s)}buildStyles(e,t,n){const s=this._stateStyles["*"],r=this._stateStyles[e],o=s?s.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}build(e,t,n,s,r,o,i,l,a,c){const u=[],h=this.ast.options&&this.ast.options.params||xu,d=this.buildStyles(n,i&&i.params||xu,u),p=l&&l.params||xu,f=this.buildStyles(s,p,u),g=new Set,m=new Map,y=new Map,b="void"===s,v={params:Object.assign(Object.assign({},h),p)},_=c?[]:du(e,t,this.ast.animation,r,o,d,f,v,a,u);let w=0;if(_.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),u.length)return Cu(t,this._triggerName,n,s,b,d,f,[],[],m,y,w,u);_.forEach(e=>{const n=e.element,s=mc(m,n,{});e.preStyleProps.forEach(e=>s[e]=!0);const r=mc(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&g.add(n)});const C=Kc(g.values());return Cu(t,this._triggerName,n,s,b,d,f,_,C,m,y,w)}}class ku{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},s=Nc(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(s[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let o=r[e];o.length>1&&(o=zc(o,s,t)),n[e]=o})}}),n}}class Au{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new ku(e.style,e.options&&e.options.params||{})}),Eu(this.states,"true","1"),Eu(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new Su(e,t,this.states))}),this.fallbackTransition=new Su(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,s){return this.transitionFactories.find(r=>r.match(e,t,n,s))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Eu(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Tu=new cu;class Pu{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],s=nu(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=s}_buildPlayer(e,t,n){const s=e.element,r=dc(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const s=[],r=this._animations[e];let o;const i=new Map;if(r?(o=du(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Tu,s),o.forEach(e=>{const t=mc(i,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);i.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,"*")})});const l=hc(o.map(e=>{const t=i.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,s){const r=gc(t,"","","");return pc(this._getPlayer(e),n,r,s),()=>{}}command(e,t,n,s){if("register"==n)return void this.register(e,s[0]);if("create"==n)return void this.create(e,t,s[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const Ou=[],Iu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Vu{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(s=n?e.value:e)?s:null,n){const t=Nc(e);delete t.value,this.options=t}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Nu=new Vu("void");class Fu{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Lu(t,this._hostClassName)}listen(e,t,n,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const o=mc(this._elementListeners,e,[]),i={name:t,phase:n,callback:s};o.push(i);const l=mc(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Lu(e,"ng-trigger"),Lu(e,"ng-trigger-"+t),l[t]=Nu),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(i);e>=0&&o.splice(e,1),this._triggers[t]||delete l[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,s=!0){const r=this._getTrigger(t),o=new Du(this.id,t,e);let i=this._engine.statesByElement.get(e);i||(Lu(e,"ng-trigger"),Lu(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,i={}));let l=i[t];const a=new Vu(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&a.absorbOptions(l.options),i[t]=a,l||(l=Nu),"void"!==a.value&&l.value===a.value){if(!function(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!=s.length)return!1;for(let r=0;r{Hc(e,n),jc(e,s)})}return}const c=mc(this._engine.playersByElement,e,[]);c.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(l.value,a.value,e,a.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:l,toState:a,player:o,isFallbackTransition:h}),h||(Lu(e,"ng-animate-queued"),o.onStart(()=>{zu(e,"ng-animate-queued")})),o.onDone(()=>{let t=this.players.indexOf(o);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(o);e>=0&&n.splice(e,1)}}),this.players.push(o),c.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,".ng-trigger",!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,s){const r=this._engine.statesByElement.get(e);if(r){const o=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,"void",s);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&hc(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const s=t.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,o=this._engine.statesByElement.get(e)[s]||Nu,i=new Vu("void"),l=new Du(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:r,fromState:o,toState:i,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)s=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)n.markElementAsRemoved(this.id,e,!1,t);else{const s=e.__ng_removed;s&&s!==Iu||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Lu(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,o=this._elementListeners.get(r);o&&o.forEach(t=>{if(t.name==n.triggerName){const s=gc(r,n.triggerName,n.fromState.value,n.toState.value);s._data=e,pc(n.player,t.phase,s,t.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,s=t.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Ru{constructor(e,t,n){this.bodyNode=e,this.driver=t,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Fu(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let s=this._namespaceLookup[e];s&&s.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let s=0;s=0&&this.collectedLeaveElements.splice(e,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,n)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Lu(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),zu(e,"ng-animate-disabled"))}removeNode(e,t,n,s){if(ju(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,n,s){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,s,r){return ju(t)?this._fetchNamespace(e).listen(t,n,s,r):()=>{}}_buildInstruction(e,t,n,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,s,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,".ng-trigger",!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,".ng-animating",!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return hc(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Iu,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;ne()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?hc(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new cu,s=[],r=new Map,o=[],i=new Map,l=new Map,a=new Map,c=new Set;this.disabledNodes.forEach(e=>{c.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n{const n="ng-enter"+f++;p.set(t,n),e.forEach(e=>Lu(e,n))});const g=[],m=new Set,y=new Set;for(let O=0;Om.add(e)):y.add(e))}const b=new Map,v=Bu(h,Array.from(m));v.forEach((e,t)=>{const n="ng-leave"+f++;b.set(t,n),e.forEach(e=>Lu(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>zu(e,n))}),v.forEach((e,t)=>{const n=b.get(t);e.forEach(e=>zu(e,n))}),g.forEach(e=>{this.processLeaveNode(e)})});const _=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(_.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const c=!u||!this.driver.containsElement(u,r),h=b.get(r),d=p.get(r),f=this._buildInstruction(e,n,d,h,c);if(!f.errors||!f.errors.length)return c?(t.onStart(()=>Hc(r,f.fromStyles)),t.onDestroy(()=>jc(r,f.toStyles)),void s.push(t)):e.isFallbackTransition?(t.onStart(()=>Hc(r,f.fromStyles)),t.onDestroy(()=>jc(r,f.toStyles)),void s.push(t)):(f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),o.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>mc(i,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=l.get(t);e||l.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let s=a.get(t);s||a.set(t,s=new Set),n.forEach(e=>s.add(e))}));w.push(f)});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),_.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,x=new Map;o.forEach(e=>{const t=e.element;n.has(t)&&(x.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),s.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{mc(C,t,[]).push(e),e.destroy()})});const S=g.filter(e=>Zu(e,l,a)),k=new Map;qu(k,this.driver,y,a,"*").forEach(e=>{Zu(e,l,a)&&S.push(e)});const A=new Map;d.forEach((e,t)=>{qu(A,this.driver,new Set(e),l,"!")}),S.forEach(e=>{const t=k.get(e),n=A.get(e);k.set(e,Object.assign(Object.assign({},t),n))});const E=[],T=[],P={};o.forEach(e=>{const{element:t,player:o,instruction:i}=e;if(n.has(t)){if(c.has(t))return o.onDestroy(()=>jc(t,i.toStyles)),o.disabled=!0,o.overrideTotalTime(i.totalTime),void s.push(o);let e=P;if(x.size>1){let n=t;const s=[];for(;n=n.parentNode;){const t=x.get(n);if(t){e=t;break}s.push(n)}s.forEach(t=>x.set(t,e))}const n=this._buildAnimation(o.namespaceId,i,C,r,A,k);if(o.setRealPlayer(n),e===P)E.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=hc(t)),s.push(o)}}else Hc(t,i.fromStyles),o.onDestroy(()=>jc(t,i.toStyles)),T.push(o),c.has(t)&&s.push(o)}),T.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=hc(t);e.setRealPlayer(n)}}),s.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let O=0;O!e.destroyed);s.length?Ku(this,e,s):this.processLeaveNode(e)}return g.length=0,E.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),E}elementContainsData(e,t){let n=!1;const s=t.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,s,r){let o=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(o=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||"void"==r;t.forEach(t=>{t.queued||(e||t.triggerName==s)&&o.push(t)})}}return(n||s)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||s&&s!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const s=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const i of t.timelines){const e=i.element,l=e!==s,a=mc(n,e,[]);this._getPreviousPlayers(e,l,r,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),a.push(e)})}Hc(s,t.fromStyles)}_buildAnimation(e,t,n,s,r,o){const i=t.triggerName,l=t.element,a=[],c=new Set,u=new Set,h=t.timelines.map(t=>{const h=t.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new ac(t.duration,t.delay);const p=h!==l,f=function(e){const t=[];return function e(t,n){for(let s=0;se.getRealPlayer())).filter(e=>!!e.element&&e.element===h),g=r.get(h),m=o.get(h),y=dc(0,this._normalizer,0,t.keyframes,g,m),b=this._buildPlayer(t,y,f);if(t.subTimeline&&s&&u.add(h),p){const t=new Du(e,i,h);t.setRealPlayer(b),a.push(t)}return b});a.forEach(e=>{mc(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let s;if(e instanceof Map){if(s=e.get(t),s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&e.delete(t)}}else if(s=e[t],s){if(s.length){const e=s.indexOf(n);s.splice(e,1)}0==s.length&&delete e[t]}return s}(this.playersByQueriedElement,e.element,e))}),c.forEach(e=>Lu(e,"ng-animating"));const d=hc(h);return d.onDestroy(()=>{c.forEach(e=>zu(e,"ng-animating")),jc(l,t.toStyles)}),u.forEach(e=>{mc(s,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ac(e.duration,e.delay)}}class Du{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new ac,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>pc(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){mc(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function ju(e){return e&&1===e.nodeType}function Hu(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function qu(e,t,n,s,r){const o=[];n.forEach(e=>o.push(Hu(e)));const i=[];s.forEach((n,s)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(s,e,r);n&&0!=n.length||(s.__ng_removed=Mu,i.push(s))}),e.set(s,o)});let l=0;return n.forEach(e=>Hu(e,o[l++])),i}function Bu(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const s=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let o=r.get(t);if(o)return o;const i=t.parentNode;return o=n.has(i)?i:s.has(i)?1:e(i),r.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}function Lu(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function zu(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Ku(e,t,n){hc(n).onDone(()=>e.processLeaveNode(t))}function Zu(e,t,n){const s=n.get(e);if(!s)return!1;let r=t.get(e);return r?s.forEach(e=>r.add(e)):t.set(e,s),n.delete(e),!0}class Qu{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ru(e,t,n),this._timelineEngine=new Pu(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,s,r){const o=e+"-"+s;let i=this._triggerCache[o];if(!i){const e=[],t=nu(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);i=function(e,t){return new Au(e,t)}(s,t),this._triggerCache[o]=i}this._transitionEngine.registerTrigger(t,s,i)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,s){this._transitionEngine.insertNode(e,t,n,s)}onRemove(e,t,n,s){this._transitionEngine.removeNode(e,t,s||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,s){if("@"==n.charAt(0)){const[e,r]=yc(n);this._timelineEngine.command(e,t,r,s)}else this._transitionEngine.trigger(e,t,n,s)}listen(e,t,n,s,r){if("@"==n.charAt(0)){const[e,s]=yc(n);return this._timelineEngine.listen(e,t,s,r)}return this._transitionEngine.listen(e,t,n,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Gu(e,t){let n=null,s=null;return Array.isArray(t)&&t.length?(n=Wu(t[0]),t.length>1&&(s=Wu(t[t.length-1]))):t&&(n=Wu(t)),n||s?new Uu(e,n,s):null}let Uu=(()=>{class e{constructor(t,n,s){this._element=t,this._startStyles=n,this._endStyles=s,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&jc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jc(this._element,this._initialStyles),this._endStyles&&(jc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Hc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Hc(this._element,this._endStyles),this._endStyles=null),jc(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Wu(e){let t=null;const n=Object.keys(e);for(let s=0;sthis._handleCallback(e)}apply(){!function(e,t){const n=sh(e,"").trim();n.length&&(function(e,t){let n=0;for(let s=0;s=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),th(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=sh(e,"").split(","),s=eh(n,t);s>=0&&(n.splice(s,1),nh(e,"",n.join(",")))}(this._element,this._name))}}function Ju(e,t,n){nh(e,"PlayState",n,$u(e,t))}function $u(e,t){const n=sh(e,"");return n.indexOf(",")>0?eh(n.split(","),t):eh([n],t)}function eh(e,t){for(let n=0;n=0)return n;return-1}function th(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function nh(e,t,n,s){const r="animation"+t;if(null!=s){const t=e.style[r];if(t.length){const e=t.split(",");e[s]=n,n=e.join(",")}}e.style[r]=n}function sh(e,t){return e.style["animation"+t]}class rh{constructor(e,t,n,s,r,o,i,l){this.element=e,this.keyframes=t,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=i,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=s+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}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 Xu(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Yc(this.element,n))})}this.currentSnapshot=e}}class oh extends ac{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Tc(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class ih{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return Sc(e)}matchesElement(e,t){return kc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Ec(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Tc(e));let s=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);s+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${t}: ${n};\n`)}}),s+=`${r}}\n`}),s+="}\n";const o=document.createElement("style");return o.innerHTML=s,o}animate(e,t,n,s,r,o=[],i){i&&this._notifyFaultyScrubber();const l=o.filter(e=>e instanceof rh),a={};Gc(n,s)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const c=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Uc(e,t,a));if(0==n)return new oh(e,c);const u=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=Gu(e,t),p=new rh(e,t,u,n,s,r,c,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}_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 lh{constructor(e,t,n,s){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=s,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Yc(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class ah{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ch().toString()),this._cssKeyframesDriver=new ih}validateStyleProperty(e){return Sc(e)}matchesElement(e,t){return kc(e,t)}containsElement(e,t){return Ac(e,t)}query(e,t,n){return Ec(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,s,r,o=[],i){if(!i&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,s,r,o);const l={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(l.easing=r);const a={},c=o.filter(e=>e instanceof lh);Gc(n,s)&&c.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const u=Gu(e,t=Uc(e,t=t.map(e=>Fc(e,!1)),a));return new lh(e,t,l,u)}}function ch(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let uh=(()=>{class e extends $a{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Je.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?nc(e):e;return ph(this._renderer,null,t,"register",[n]),new hh(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(qe(Xo),qe(ra))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class hh extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new dh(this._id,e,t||{},this._renderer)}}class dh{constructor(e,t,n,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return ph(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){return 0}}function ph(e,t,n,s,r){return e.setProperty(t,`@@${n}:${s}`,r)}let fh=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new gh("",n,this.engine),this._rendererCache.set(n,e)),e}const s=t.id,r=t.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const o=t=>{Array.isArray(t)?t.forEach(o):this.engine.registerTrigger(s,r,e,t.name,t)};return t.data.animation.forEach(o),new mh(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&et(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,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 e.\u0275fac=function(t){return new(t||e)(qe(Xo),qe(Qu),qe(Ml))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class gh{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,s){this.delegate.setAttribute(e,t,n,s)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,s){this.delegate.setStyle(e,t,n,s)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class mh extends gh{constructor(e,t,n,s){super(t,n,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if("@"==t.charAt(0)){const s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,s,r,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let yh=(()=>{class e extends Qu{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(qe(ra),qe(Oc),qe(vu))},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();const bh=[{provide:Oc,useFactory:function(){return"function"==typeof ch()?new ah:new ih}},{provide:new Oe("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:$a,useClass:uh},{provide:vu,useFactory:function(){return new _u}},{provide:Qu,useClass:yh},{provide:Xo,useFactory:function(e,t,n){return new fh(e,t,n)},deps:[qa,Qu,Ml]}];let vh=(()=>{class e{}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)},providers:bh,imports:[Ja]}),e})(),_h=(()=>{class e{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=se({token:e,factory:e.\u0275fac}),e})();class wh{}class Ch extends wh{constructor(e,t,n,s){super(),this.cyan=e,this.magenta=t,this.yellow=n,this.black=s}toString(){return`cmyk(${this.getCyan()}%, ${this.getMagenta()}%, ${this.getYellow()}%, ${this.getBlack()}%)`}getCyan(){return Math.round(this.cyan)}getMagenta(){return Math.round(this.magenta)}getYellow(){return Math.round(this.yellow)}getBlack(){return Math.round(this.black)}}class xh extends wh{constructor(e,t,n,s){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=s}toString(e=!0){return e?`hsla(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%, ${this.getAlpha()})`:`hsl(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getLightness(){return Math.round(this.lightness)}getAlpha(){return Math.round(100*this.alpha)/100}}class Sh extends wh{constructor(e,t,n,s){super(),this.hue=e,this.saturation=t,this.value=n,this.alpha=s}toString(e=!0){return e?`hsva(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%, ${this.getAlpha()})`:`hsv(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getValue(){return Math.round(this.value)}getAlpha(){return Math.round(100*this.alpha)/100}}class kh extends wh{constructor(e,t,n,s){super(),this.red=e,this.green=t,this.blue=n,this.alpha=s}toString(e=!0){return e?`rgba(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()}, ${this.getAlpha()})`:`rgb(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()})`}getRed(){return Math.round(this.red)}getGreen(){return Math.round(this.green)}getBlue(){return Math.round(this.blue)}getAlpha(){return Math.round(100*this.alpha)/100}}let Ah=(()=>{class e{}return e.transparent=new kh(0,0,0,0),e.aliceblue=new kh(240,248,255,1),e.antiquewhite=new kh(250,235,215,1),e.aqua=new kh(0,255,255,1),e.aquamarine=new kh(127,255,212,1),e.azure=new kh(240,255,255,1),e.beige=new kh(245,245,220,1),e.bisque=new kh(255,228,196,1),e.black=new kh(0,0,0,1),e.blanchedalmond=new kh(255,235,205,1),e.blue=new kh(0,0,255,1),e.blueviolet=new kh(138,43,226,1),e.brown=new kh(165,42,42,1),e.burlywood=new kh(222,184,135,1),e.cadetblue=new kh(95,158,160,1),e.chartreuse=new kh(127,255,0,1),e.chocolate=new kh(210,105,30,1),e.coral=new kh(255,127,80,1),e.cornflowerblue=new kh(100,149,237,1),e.cornsilk=new kh(255,248,220,1),e.crimson=new kh(220,20,60,1),e.cyan=new kh(0,255,255,1),e.darkblue=new kh(0,0,139,1),e.darkcyan=new kh(0,139,139,1),e.darkgoldenrod=new kh(184,134,11,1),e.darkgray=new kh(169,169,169,1),e.darkgreen=new kh(0,100,0,1),e.darkgrey=e.darkgray,e.darkkhaki=new kh(189,183,107,1),e.darkmagenta=new kh(139,0,139,1),e.darkolivegreen=new kh(85,107,47,1),e.darkorange=new kh(255,140,0,1),e.darkorchid=new kh(153,50,204,1),e.darkred=new kh(139,0,0,1),e.darksalmon=new kh(233,150,122,1),e.darkseagreen=new kh(143,188,143,1),e.darkslateblue=new kh(72,61,139,1),e.darkslategray=new kh(47,79,79,1),e.darkslategrey=e.darkslategray,e.darkturquoise=new kh(0,206,209,1),e.darkviolet=new kh(148,0,211,1),e.deeppink=new kh(255,20,147,1),e.deepskyblue=new kh(0,191,255,1),e.dimgray=new kh(105,105,105,1),e.dimgrey=e.dimgray,e.dodgerblue=new kh(30,144,255,1),e.firebrick=new kh(178,34,34,1),e.floralwhite=new kh(255,250,240,1),e.forestgreen=new kh(34,139,34,1),e.fuchsia=new kh(255,0,255,1),e.gainsboro=new kh(220,220,220,1),e.ghostwhite=new kh(248,248,255,1),e.gold=new kh(255,215,0,1),e.goldenrod=new kh(218,165,32,1),e.gray=new kh(128,128,128,1),e.grey=e.gray,e.green=new kh(0,128,0,1),e.greenyellow=new kh(173,255,47,1),e.honeydew=new kh(240,255,240,1),e.hotpink=new kh(255,105,180,1),e.indianred=new kh(205,92,92,1),e.indigo=new kh(75,0,130,1),e.ivory=new kh(255,255,240,1),e.khaki=new kh(240,230,140,1),e.lavender=new kh(230,230,250,1),e.lavenderblush=new kh(255,240,245,1),e.lawngreen=new kh(124,252,0,1),e.lemonchiffon=new kh(255,250,205,1),e.lightblue=new kh(173,216,230,1),e.lightcoral=new kh(240,128,128,1),e.lightcyan=new kh(224,255,255,1),e.lightgoldenrodyellow=new kh(250,250,210,1),e.lightgray=new kh(211,211,211,1),e.lightgreen=new kh(144,238,144,1),e.lightgrey=e.lightgray,e.lightpink=new kh(255,182,193,1),e.lightsalmon=new kh(255,160,122,1),e.lightseagreen=new kh(32,178,170,1),e.lightskyblue=new kh(135,206,250,1),e.lightslategray=new kh(119,136,153,1),e.lightslategrey=e.lightslategray,e.lightsteelblue=new kh(176,196,222,1),e.lightyellow=new kh(255,255,224,1),e.lime=new kh(0,255,0,1),e.limegreen=new kh(50,205,50,1),e.linen=new kh(250,240,230,1),e.magenta=new kh(255,0,255,1),e.maroon=new kh(128,0,0,1),e.mediumaquamarine=new kh(102,205,170,1),e.mediumblue=new kh(0,0,205,1),e.mediumorchid=new kh(186,85,211,1),e.mediumpurple=new kh(147,112,219,1),e.mediumseagreen=new kh(60,179,113,1),e.mediumslateblue=new kh(123,104,238,1),e.mediumspringgreen=new kh(0,250,154,1),e.mediumturquoise=new kh(72,209,204,1),e.mediumvioletred=new kh(199,21,133,1),e.midnightblue=new kh(25,25,112,1),e.mintcream=new kh(245,255,250,1),e.mistyrose=new kh(255,228,225,1),e.moccasin=new kh(255,228,181,1),e.navajowhite=new kh(255,222,173,1),e.navy=new kh(0,0,128,1),e.oldlace=new kh(253,245,230,1),e.olive=new kh(128,128,0,1),e.olivedrab=new kh(107,142,35,1),e.orange=new kh(255,165,0,1),e.orangered=new kh(255,69,0,1),e.orchid=new kh(218,112,214,1),e.palegoldenrod=new kh(238,232,170,1),e.palegreen=new kh(152,251,152,1),e.paleturquoise=new kh(175,238,238,1),e.palevioletred=new kh(219,112,147,1),e.papayawhip=new kh(255,239,213,1),e.peachpuff=new kh(255,218,185,1),e.peru=new kh(205,133,63,1),e.pink=new kh(255,192,203,1),e.plum=new kh(221,160,221,1),e.powderblue=new kh(176,224,230,1),e.purple=new kh(128,0,128,1),e.red=new kh(255,0,0,1),e.rosybrown=new kh(188,143,143,1),e.royalblue=new kh(65,105,225,1),e.saddlebrown=new kh(139,69,19,1),e.salmon=new kh(250,128,114,1),e.sandybrown=new kh(244,164,96,1),e.seagreen=new kh(46,139,87,1),e.seashell=new kh(255,245,238,1),e.sienna=new kh(160,82,45,1),e.silver=new kh(192,192,192,1),e.skyblue=new kh(135,206,235,1),e.slateblue=new kh(106,90,205,1),e.slategray=new kh(112,128,144,1),e.slategrey=e.slategray,e.snow=new kh(255,250,250,1),e.springgreen=new kh(0,255,127,1),e.steelblue=new kh(70,130,180,1),e.tan=new kh(210,180,140,1),e.teal=new kh(0,128,128,1),e.thistle=new kh(216,191,216,1),e.tomato=new kh(255,99,71,1),e.turquoise=new kh(64,224,208,1),e.violet=new kh(238,130,238,1),e.wheat=new kh(245,222,179,1),e.white=new kh(255,255,255,1),e.whitesmoke=new kh(245,245,245,1),e.yellow=new kh(255,255,0,1),e.yellowgreen=new kh(154,205,50,1),e})();class Eh{constructor(e){this.hsva=new Sh(0,1,1,1),this.rgba=new kh(255,0,0,1),e&&this.stringToColor(e)}static from(e){return"string"==typeof e?new Eh(e):e instanceof Eh?e.clone():e instanceof kh?(new Eh).setRgba(e.red,e.green,e.blue,e.alpha):e instanceof Sh?(new Eh).setHsva(e.hue,e.saturation,e.value,e.alpha):e instanceof xh?(new Eh).setHsla(e.hue,e.saturation,e.lightness,e.alpha):null}clone(){return Eh.from(this.getRgba())}setFromString(e){return this.stringToColor(e)}setHsva(e=null,t=100,n=100,s=1){return null!=e&&(this.hsva.hue=e),null!=t&&(this.hsva.saturation=t),null!=n&&(this.hsva.value=n),null!=s&&(this.hsva.alpha=s=s>1?1:s<0?0:s),this.rgba=this.hsvaToRgba(this.hsva),this}setRgba(e=null,t=null,n=null,s=1){return null!=e&&(this.rgba.red=e),null!=t&&(this.rgba.green=t),null!=n&&(this.rgba.blue=n),null!=s&&(this.rgba.alpha=s=s>1?1:s<0?0:s),this.hsva=this.rgbaToHsva(this.rgba),this}setHsla(e,t,n,s=1){null!=s&&(this.rgba.alpha=s=s>1?1:s<0?0:s);const r=new xh(e,t,n,s);return this.rgba=this.hslaToRgba(r),this.hsva=this.rgbaToHsva(this.rgba),this}toHexString(e=!1){let t="#"+(1<<24|this.rgba.getRed()<<16|this.rgba.getGreen()<<8|this.rgba.getBlue()).toString(16).substr(1);return e&&(t+=(256|Math.round(255*this.rgba.alpha)).toString(16).substr(1)),t.toUpperCase()}toRgbaString(){return this.rgba.toString()}toRgbString(){return this.rgba.toString(!1)}toHslaString(){return this.getHsla().toString()}toHslString(){return this.getHsla().toString(!1)}toHsvaString(){return this.hsva.toString()}toHsvString(){return this.hsva.toString(!1)}toCmykString(){return this.getCmyk().toString()}getHsva(){return new Sh(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}getRgba(){return new kh(this.rgba.red,this.rgba.green,this.rgba.blue,this.rgba.alpha)}getHsla(){return this.rgbaToHsla(this.rgba)}getCmyk(){return this.rgbaToCmyk(this.rgba)}hsvaToHsla(e){const t=e.saturation/100,n=(2-t)*e.value/2;return new xh(e.hue,100*n,100*(t*(e.value/100)/(n<=1?n:2-n)||0),e.alpha)}hslaToHsva(e){const t=e.lightness/100*2,n=e.saturation/100*(t<=1?t:2-t);return new Sh(e.hue,2*n/(t+n)||0,(t+n)/2,e.alpha)}rgbaToHsva(e){const t=e.red/255,n=e.green/255,s=e.blue/255,r=e.alpha,o=Math.max(t,n,s),i=Math.min(t,n,s),l=o-i;let a=0,c=0===o?0:l/o,u=o;if(o!==i){switch(o){case t:a=(n-s)/l+(n.5?u/(2-o-i):u/(o+i),o){case t:l=(n-s)/u+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}cmykToRgba(e){const t=e.black/100,n=e.magenta/100,s=e.yellow/100;let r=Math.min(1,(1-e.cyan/100)*(1-t)),o=Math.min(1,(1-n)*(1-t)),i=Math.min(1,(1-s)*(1-t));return r*=255,o*=255,i*=255,new kh(r,o,i,1)}rgbaToCmyk(e){let t=1-e.red/255,n=1-e.green/255,s=1-e.blue/255,r=Math.min(t,n,s);return 1===r?new Ch(0,0,0,1):(t=(t-r)/(1-r),n=(n-r)/(1-r),s=(s-r)/(1-r),r*=100,t*=100,n*=100,s*=100,new Ch(t,n,s,r))}roundNumber(e){return Math.round(100*e)/100}stringToColor(e){const t=e.replace(/ /g,"").toLowerCase();let n=Ah[t]||null;if("#"===t[0]){let e=t.substr(1);const s=e.length;let r,o=1;if(3===s)r=e.split("").map(e=>e+e);else if(6===s)r=e.match(/.{2}/g);else if(8===s){const t=e.substr(-2);e=e.substr(0,s-2),o=this.roundNumber(parseInt(t||"FF",16)/255),r=e.match(/.{2}/g)}3===r.length&&(n=new kh(parseInt(r[0],16),parseInt(r[1],16),parseInt(r[2],16),o))}const s=t.indexOf("("),r=t.indexOf(")");if(-1!==s&&r+1===t.length){const e=t.substr(0,s),o=t.substr(s+1,r-(s+1)).split(",");let i=1;switch(e){case"rgba":i=parseFloat(o.pop());case"rgb":n=new kh(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),i);break;case"hsla":i=parseFloat(o.pop());case"hsl":const e=new xh(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),i);n=this.hslaToRgba(e);break;case"cmyk":const t=new Ch(parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10));n=this.cmykToRgba(t)}}return n&&(this.rgba=n,this.hsva=this.rgbaToHsva(n)),this}}let Th=(()=>{class e{constructor(e,t,n){this.document=e,this.elementRef=t,this.renderer=n,this.eventHooks=[],this.window={pageXOffset:0,pageYOffset:0},this.window=e.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame()}onEventChange(e){this.calculate(e),this.eventHooks.push(this.renderer.listen(this.document,"mouseup",()=>this.removeListeners())),this.eventHooks.push(this.renderer.listen(this.document,"touchend",()=>this.removeListeners())),this.eventHooks.push(this.renderer.listen(this.document,"mousemove",e=>this.calculate(e))),this.eventHooks.push(this.renderer.listen(this.document,"touchmove",e=>this.calculate(e)))}calculateCoordinates(e){const{width:t,height:n,top:s,left:r}=this.elementRef.nativeElement.getBoundingClientRect(),o="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,i=Math.max(0,Math.min(("number"==typeof e.pageX?e.pageX:e.touches[0].pageX)-(r+this.window.pageXOffset),t)),l=Math.max(0,Math.min(o-(s+this.window.pageYOffset),n));this.movePointer({x:i,y:l,height:n,width:t})}calculate(e){if(e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame(()=>this.calculateCoordinates(e))}getRequestAnimationFrame(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}removeListeners(){this.eventHooks.forEach(e=>e()),this.eventHooks.length=0}ngOnDestroy(){this.removeListeners()}}return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=at({type:e}),e})();const Ph=["pointer"];let Oh=(()=>{class e extends Th{constructor(e,t,n){super(t,n,e),this.colorChange=new Ui(!1)}get backgroundColor(){return this.hue?this.hue.toRgbaString():""}onClick(e){this.onEventChange(e)}ngOnInit(){this.hue||(this.hue=Eh.from(this.color.getHsva())),this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.backgroundColor)}ngOnChanges(e){if(e.color&&e.color.previousValue!==e.color.currentValue){const e=this.color.getHsva();this.changePointerPosition(e.saturation,e.value)}}movePointer({x:e,y:t,height:n,width:s}){const r=100*e/s,o=-100*t/n+100;this.changePointerPosition(r,o);const i=this.hue.getHsva(),l=this.color.getHsva(),a=(new Eh).setHsva(i.hue,r,o,l.alpha);this.colorChange.emit(a)}changePointerPosition(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-t}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${e}%`)}}return e.\u0275fac=function(t){return new(t||e)(uo($o),uo(ra),uo(Wo))},e.\u0275cmp=nt({type:e,selectors:[["saturation-component"]],viewQuery:function(e,t){var n;1&e&&il(Ph,!0),2&e&&ol(n=ll())&&(t.pointer=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&vo("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)})),2&e&&Ao("background-color",t.backgroundColor)},inputs:{hue:"hue",color:"color"},outputs:{colorChange:"colorChange"},features:[Do,zo],decls:2,vars:0,consts:[[1,"pointer"],["pointer",""]],template:function(e,t){1&e&&mo(0,"div",0,1)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcr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kmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==")}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}'],changeDetection:0}),e})(),Ih=(()=>{class e{constructor(e,t,n,s){this.pickerConfig=e,this.renderer=t,this.elementRef=n,this.document=s,this.colorType="rgba"}get title(){return this.pickerConfig?this.pickerConfig.indicatorTitle:""}get backgroundColor(){return this.color.toRgbaString()}onClick(e){const t=this.renderer.createElement("input");switch(this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","-100%"),this.renderer.setStyle(t,"left","-100%"),this.colorType){case"hsla":t.value=this.color.toHslaString();break;case"hex":t.value=this.color.toHexString();break;default:t.value=this.backgroundColor}this.renderer.appendChild(this.elementRef.nativeElement,t),t.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,t)}}return e.\u0275fac=function(t){return new(t||e)(uo(_h),uo($o),uo(Wo),uo(ra))},e.\u0275cmp=nt({type:e,selectors:[["indicator-component"]],hostVars:1,hostBindings:function(e,t){1&e&&vo("click",(function(e){return t.onClick(e)})),2&e&&lo("title",t.title)},inputs:{color:"color",colorType:"colorType"},decls:4,vars:2,consts:[["viewBox","0 0 48 48"],["d","M0 0h48v48h-48z","fill","none"],["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"]],template:function(e,t){1&e&&(fo(0,"div"),on(),fo(1,"svg",0),mo(2,"path",1),mo(3,"path",2),go(),go()),2&e&&Ao("background-color",t.backgroundColor)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:rgba(0,0,0,0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC") repeat}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{z-index:1}[_nghost-%COMP%]:hover:after, [_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}[_nghost-%COMP%]:hover:after{display:block;content:"\xa0";background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),e})();const Mh=["pointer"];let Vh=(()=>{class e extends Th{constructor(e,t,n){super(t,n,e),this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.isVertical=!1}onClick(e){this.onEventChange(e)}set vertical(e){this.isVertical=!0}ngOnChanges(e){if(e.hue&&e.hue.previousValue!==e.hue.currentValue){const e=this.hue.getHsva();this.changePointerPosition(e.hue)}}movePointer({x:e,y:t,height:n,width:s}){const r=this.isVertical?t/n*360:e/s*360;this.changePointerPosition(r);const o=this.color.getHsva(),i=(new Eh).setHsva(r,o.saturation,o.value,o.alpha),l=(new Eh).setHsva(r,100,100,o.alpha);this.hueChange.emit(l),this.colorChange.emit(i)}changePointerPosition(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",`${e/360*100}%`)}}return e.\u0275fac=function(t){return new(t||e)(uo($o),uo(ra),uo(Wo))},e.\u0275cmp=nt({type:e,selectors:[["hue-component"]],viewQuery:function(e,t){var n;1&e&&il(Mh,!0),2&e&&ol(n=ll())&&(t.pointer=n.first)},hostBindings:function(e,t){1&e&&vo("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)}))},inputs:{hue:"hue",color:"color",vertical:"vertical"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},features:[Do,zo],decls:2,vars:0,consts:[[1,"pointer"],["pointer",""]],template:function(e,t){1&e&&mo(0,"div",0,1)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC");background-size:100% 100%;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{background-image:url("data:image/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R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAJtJREFUeNrs2MEJBDEMQ1EZ5rTpv9TM1VuEBGbMTwFCfhdBqqWW8R79pOGAM95gQQCIIIIIYqhBdZvD8so8wQ644w0WBIAIIoggphqU3GGRuW2JgKPPnwAiiCCCuAWx1G0Oi7ltgYA73mBBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC");width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}'],changeDetection:0}),e})();const Nh=["pointer"],Fh=function(e){return{background:e}};let Rh=(()=>{class e extends Th{constructor(e,t,n){super(t,n,e),this.colorChange=new Ui(!1),this.isVertical=!1}onClick(e){this.onEventChange(e)}set vertical(e){this.isVertical=!0}ngOnChanges(e){if(e.color&&e.color.previousValue!==e.color.currentValue){const e=this.color.getHsva();this.changePointerPosition(e.alpha)}}movePointer({x:e,y:t,height:n,width:s}){const r=this.isVertical?t/n:e/s;this.changePointerPosition(r);const o=this.color.getHsva(),i=(new Eh).setHsva(o.hue,o.saturation,o.value,r);this.colorChange.emit(i)}changePointerPosition(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left",`${100*e}%`)}get gradient(){const e=this.color.getRgba();return`linear-gradient(to ${this.isVertical?"bottom":"right"}, rgba(${e.red}, ${e.green}, ${e.blue}, 0) 0%, rgb(${e.red}, ${e.green}, ${e.blue}) 100%)`}}return e.\u0275fac=function(t){return new(t||e)(uo($o),uo(ra),uo(Wo))},e.\u0275cmp=nt({type:e,selectors:[["alpha-component"]],viewQuery:function(e,t){var n;1&e&&il(Nh,!0),2&e&&ol(n=ll())&&(t.pointer=n.first)},hostBindings:function(e,t){1&e&&vo("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)}))},inputs:{color:"color",vertical:"vertical"},outputs:{colorChange:"colorChange"},features:[Do,zo],decls:3,vars:3,consts:[[1,"pointer"],["pointer",""],[1,"gradient-color",3,"ngStyle"]],template:function(e,t){var n,s;1&e&&(mo(0,"div",0,1),mo(2,"div",2)),2&e&&(cs(2),ho("ngStyle",(1,n=Fh,s=t.gradient,Bi(Rt(),Kt(),1,n,s,void 0))))},directives:[ba],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==");background-position:0;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}'],changeDetection:0}),e})(),Dh=(()=>{class e{constructor(){this.inputChange=new Ui}inputChanges(e){const t=parseFloat((e.target||e.srcElement).value);!isNaN(t)&&t>=parseInt(this.min,10)&&t<=parseInt(this.max,10)&&this.inputChange.emit(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=at({type:e,selectors:[["","inputChange",""]],hostBindings:function(e,t){1&e&&vo("input",(function(e){return t.inputChanges(e)}))},inputs:{min:"min",max:"max"},outputs:{inputChange:"inputChange"}}),e})();function jh(e,t){1&e&&(fo(0,"span"),Vo(1,"R"),go())}function Hh(e,t){1&e&&(fo(0,"span"),Vo(1,"G"),go())}function qh(e,t){1&e&&(fo(0,"span"),Vo(1,"B"),go())}function Bh(e,t){1&e&&(fo(0,"span"),Vo(1,"A"),go())}function Lh(e,t){if(1&e){const e=yo();fo(0,"div",0),fo(1,"input",4),vo("inputChange",(function(t){return jt(e),Co().onInputChange(t,"A")})),go(),ao(2,Bh,2,0,"span",2),go()}if(2&e){const e=Co();cs(1),ho("value",null==e.value?null:e.value.getAlpha().toString()),cs(1),ho("ngIf",e.labelVisible)}}let zh=(()=>{class e{constructor(){this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.isAlphaVisible=!0}set label(e){this.labelVisible=!0}set alpha(e){this.isAlphaVisible=e}get value(){return this.color?this.color.getRgba():null}onInputChange(e,t){const n=this.value,s="R"===t?e:n.red,r="G"===t?e:n.green,o="B"===t?e:n.blue,i="A"===t?e:n.alpha,l=(new Eh).setRgba(s,r,o,i),a=(new Eh).setHsva(l.getHsva().hue);this.hueChange.emit(a),this.colorChange.emit(l)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["rgba-input-component"]],inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","255",3,"value","inputChange"],[4,"ngIf"],["class","column",4,"ngIf"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"]],template:function(e,t){1&e&&(fo(0,"div",0),fo(1,"input",1),vo("inputChange",(function(e){return t.onInputChange(e,"R")})),go(),ao(2,jh,2,0,"span",2),go(),fo(3,"div",0),fo(4,"input",1),vo("inputChange",(function(e){return t.onInputChange(e,"G")})),go(),ao(5,Hh,2,0,"span",2),go(),fo(6,"div",0),fo(7,"input",1),vo("inputChange",(function(e){return t.onInputChange(e,"B")})),go(),ao(8,qh,2,0,"span",2),go(),ao(9,Lh,3,2,"div",3)),2&e&&(cs(1),ho("value",null==t.value?null:t.value.getRed().toString()),cs(1),ho("ngIf",t.labelVisible),cs(2),ho("value",null==t.value?null:t.value.getGreen().toString()),cs(1),ho("ngIf",t.labelVisible),cs(2),ho("value",null==t.value?null:t.value.getBlue().toString()),cs(1),ho("ngIf",t.labelVisible),cs(1),ho("ngIf",t.isAlphaVisible))},directives:[Dh,da],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),e})();function Kh(e,t){1&e&&(fo(0,"span"),Vo(1,"H"),go())}function Zh(e,t){1&e&&(fo(0,"span"),Vo(1,"S"),go())}function Qh(e,t){1&e&&(fo(0,"span"),Vo(1,"L"),go())}function Gh(e,t){1&e&&(fo(0,"span"),Vo(1,"A"),go())}function Uh(e,t){if(1&e){const e=yo();fo(0,"div",0),fo(1,"input",5),vo("inputChange",(function(t){return jt(e),Co().onInputChange(t,"A")})),go(),ao(2,Gh,2,0,"span",2),go()}if(2&e){const e=Co();cs(1),ho("value",null==e.value?null:e.value.getAlpha().toString()),cs(1),ho("ngIf",e.labelVisible)}}let Wh=(()=>{class e{constructor(){this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.isAlphaVisible=!0}set label(e){this.labelVisible=!0}set alpha(e){this.isAlphaVisible=e}get value(){return this.color?this.color.getHsla():null}onInputChange(e,t){const n=this.value,s="H"===t?e:n.hue,r="S"===t?e:n.saturation,o="L"===t?e:n.lightness,i="A"===t?e:n.alpha,l=(new Eh).setHsla(s,r,o,i),a=(new Eh).setHsva(l.getHsva().hue);this.hueChange.emit(a),this.colorChange.emit(l)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["hsla-input-component"]],inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","360",3,"value","inputChange"],[4,"ngIf"],["type","text","pattern","[0-9]*","min","0","max","100",3,"value","inputChange"],["class","column",4,"ngIf"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"]],template:function(e,t){1&e&&(fo(0,"div",0),fo(1,"input",1),vo("inputChange",(function(e){return t.onInputChange(e,"H")})),go(),ao(2,Kh,2,0,"span",2),go(),fo(3,"div",0),fo(4,"input",3),vo("inputChange",(function(e){return t.onInputChange(e,"S")})),go(),ao(5,Zh,2,0,"span",2),go(),fo(6,"div",0),fo(7,"input",3),vo("inputChange",(function(e){return t.onInputChange(e,"L")})),go(),ao(8,Qh,2,0,"span",2),go(),ao(9,Uh,3,2,"div",4)),2&e&&(cs(1),ho("value",null==t.value?null:t.value.getHue().toString()),cs(1),ho("ngIf",t.labelVisible),cs(2),ho("value",(null==t.value?null:t.value.getSaturation())+"%"),cs(1),ho("ngIf",t.labelVisible),cs(2),ho("value",(null==t.value?null:t.value.getLightness())+"%"),cs(1),ho("ngIf",t.labelVisible),cs(1),ho("ngIf",t.isAlphaVisible))},directives:[Dh,da],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),e})();function Yh(e,t){1&e&&(fo(0,"span"),Vo(1,"HEX"),go())}let Xh=(()=>{class e{constructor(){this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.prefixValue=""}set label(e){this.labelVisible=!0}set prefix(e){this.prefixValue=e}get value(){return this.prefixValue+(this.color?this.color.toHexString().replace("#",""):"")}onInputChange(e){const t=e.toLowerCase().replace("#","");if((3===t.length||6===t.length||8===t.length)&&parseInt(t,16).toString(16).padStart(t.length,"0")===t&&this.value!==t){const e=new Eh(`#${t}`),n=(new Eh).setHsva(e.getHsva().hue);this.hueChange.emit(n),this.colorChange.emit(e)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["hex-input-component"]],inputs:{hue:"hue",color:"color",label:"label",prefix:"prefix"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:4,vars:2,consts:[[1,"column"],["type","text",3,"value","keyup"],["elRef",""],[4,"ngIf"]],template:function(e,t){if(1&e){const e=yo();fo(0,"div",0),fo(1,"input",1,2),vo("keyup",(function(){jt(e);const n=co(2);return t.onInputChange(n.value)})),go(),ao(3,Yh,2,0,"span",3),go()}2&e&&(cs(1),ho("value",t.value),cs(2),ho("ngIf",t.labelVisible))},directives:[da],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),e})();const Jh=ec("opacityAnimation",[($h=sc({opacity:1}),{type:0,name:"true",styles:$h,options:void 0}),rc("void => *",[sc({opacity:0}),tc(".08s ease-in")])]);var $h;const ed=ec("listAnimation",[rc("* => up",[oc(":enter",[sc({opacity:0,height:0}),ic(-10,[tc(".08s",sc({opacity:1,height:"*"}))])],{optional:!0})]),rc("* => right",[oc(":enter",[sc({opacity:0,height:0}),ic(-10,[tc(".08s",sc({opacity:1,height:"*"}))])],{optional:!0})]),rc("* => down",[oc(":enter",[sc({opacity:0,height:0}),ic(10,[tc(".08s",sc({opacity:1,height:"*"}))])],{optional:!0})]),rc("* => left",[oc(":enter",[sc({opacity:0,height:0}),ic(10,[tc(".08s",sc({opacity:1,height:"*"}))])],{optional:!0})])]);function td(...e){let t=e[e.length-1];return k(t)?(e.pop(),R(e,t)):q(e)}class nd extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class sd extends nd{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,s=void 0;try{this.work(e)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let rd=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class od extends rd{constructor(e,t=rd.now){super(e,()=>od.delegate&&od.delegate!==this?od.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return od.delegate&&od.delegate!==this?od.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const id=new od(sd),ld=new b(e=>e.complete());let ad=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return td(this.value);case"E":return e=this.error,new b(t=>t.error(e));case"C":return ld}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class cd{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new ud(e,this.delay,this.scheduler))}}class ud extends f{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,s=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-s.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-s.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(ud.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new hd(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(ad.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(ad.createComplete()),this.unsubscribe()}}class hd{constructor(e,t){this.time=e,this.notification=t}}class dd{constructor(e){this.notifier=e}call(e,t){const n=new pd(e),s=I(n,this.notifier);return s&&!n.seenValue?(n.add(s),t.subscribe(n)):n}}class pd extends M{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,s,r){this.seenValue=!0,this.complete()}notifyComplete(){}}let fd=(()=>{class e{constructor(e){this.pickerConfig=e,this.selectionChange=new Ui(!1),this.longPress=new Ui(!1),this.mouseup=new x,this.showDepthText=!1}set depth(e){this.showDepthText=!!e}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete()}get bgColor(){return this.color.toRgbaString()}get title(){const e=this.color?this.color.toHexString():"";return this.showDepthText?this.pickerConfig.presetsTitle.replace(/\{\s*(.+?)\s*\}/g,(t,n)=>e):e}get className(){return!!this.activeColor&&this.color.toRgbaString()===this.activeColor.toRgbaString()}onTouch(e){var t;td(e).pipe(V(e=>e.timeStamp||(new Date).getTime()),function(e,t=id){var n;const s=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new cd(s,t))}(350),(t=this.mouseup,e=>e.lift(new dd(t)))).subscribe(()=>this.longPress.next(!0)),this.selectionChange.emit(this.color)}onTouchEnd(e){this.mouseup.next(e)}}return e.\u0275fac=function(t){return new(t||e)(uo(_h))},e.\u0275cmp=nt({type:e,selectors:[["color-preset"]],hostVars:5,hostBindings:function(e,t){1&e&&vo("mousedown",(function(e){return t.onTouch(e)}))("touchstart",(function(e){return t.onTouch(e)}))("mouseup",(function(e){return t.onTouchEnd(e)}))("touchend",(function(e){return t.onTouchEnd(e)})),2&e&&(lo("title",t.title),Ao("background-color",t.bgColor),Eo("selected",t.className))},inputs:{activeColor:"activeColor",color:"color",depth:["show-depth-title","depth"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},decls:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0}),e})(),gd=(()=>{class e{transform(e,t=!0){return t?e.slice().reverse():e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=ct({name:"reverse",type:e,pure:!0}),e})();function md(e,t){if(1&e){const e=yo();fo(0,"color-preset",5),vo("selectionChange",(function(t){return jt(e),Co(2).onSelectionChange(t)})),go()}if(2&e){const e=t.$implicit,n=Co(2);ho("color",e)("activeColor",n.activeColor)}}function yd(e,t){if(1&e&&(fo(0,"div",3),ao(1,md,1,2,"color-preset",4),zi(2,"reverse"),go()),2&e){const e=Co();ho("@opacityAnimation",e.showChildren)("@listAnimation",e.direction),cs(1),ho("ngForOf",Zi(2,3,e.list,"up"==e.direction||"right"==e.direction))}}let bd=(()=>{class e{constructor(e,t,n){this.renderer=e,this.document=t,this.cdr=n,this.selectionChange=new Ui(!1),this.direction="up",this.showChildren=!1,this.hooks=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}removeListeners(){this.hooks.forEach(e=>e()),this.hooks.length=0}onSelectionChange(e){this.selectionChange.next(e)}onLongPress(){this.showChildren=!0,this.listenDocumentClick()}listenDocumentClick(){this.hooks.push(this.renderer.listen(this.document,"mousedown",()=>this.closeList())),this.hooks.push(this.renderer.listen(this.document,"touchstart",()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}get className(){return`direction-${this.direction}`}}return e.\u0275fac=function(t){return new(t||e)(uo($o),uo(ra),uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(e,t){2&e&&Fo("className",t.className)},inputs:{list:"list",direction:"direction",activeColor:"activeColor"},outputs:{selectionChange:"selectionChange"},decls:4,vars:8,consts:[[3,"show-depth-title","color","activeColor","longPress","selectionChange"],[1,"reflection"],["class","sublist",4,"ngIf"],[1,"sublist"],[3,"color","activeColor","selectionChange",4,"ngFor","ngForOf"],[3,"color","activeColor","selectionChange"]],template:function(e,t){1&e&&(fo(0,"color-preset",0),vo("longPress",(function(){return t.onLongPress()}))("selectionChange",(function(e){return t.onSelectionChange(e)})),go(),mo(1,"div",1),mo(2,"div",1),ao(3,yd,3,6,"div",2)),2&e&&(ho("show-depth-title",t.list.length>1)("color",t.list[0])("activeColor",t.activeColor),cs(1),Ao("background-color",t.list[0].toRgbaString()),cs(1),Ao("background-color",t.list[0].toRgbaString()),cs(1),ho("ngIf",t.showChildren))},directives:[fd,da,ua],pipes:[gd],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 2px 4px rgba(0,0,0,.3);padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Jh,ed]},changeDetection:0}),e})(),vd=(()=>{class e{transform(e,t){return e.reduce((n,s,r)=>r%t?n:n.concat([e.slice(r,r+t)]),[])}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=ct({name:"chunks",type:e,pure:!0}),e})();const _d=function(e,t){return{first:e,last:t}};function wd(e,t){if(1&e){const e=yo();fo(0,"color-preset-sublist",5),vo("selectionChange",(function(t){return jt(e),Co(3).onSelectionChange(t)})),go()}if(2&e){const e=Co(),t=e.$implicit,n=e.first,s=e.last,r=Co(2);ho("list",t)("direction",r.direction)("activeColor",r.color)("ngClass",Hi(4,_d,n,s))}}function Cd(e,t){if(1&e){const e=yo();fo(0,"color-preset",6),vo("selectionChange",(function(t){return jt(e),Co(3).onSelectionChange(t)})),go()}if(2&e){const e=Co(),t=e.first,n=e.last,s=e.$implicit,r=Co(2);ho("ngClass",Hi(3,_d,t,n))("color",s)("activeColor",r.color)}}function xd(e,t){if(1&e&&(ao(0,wd,1,7,"color-preset-sublist",3),ao(1,Cd,1,6,"ng-template",null,4,cl)),2&e){const e=t.$implicit,n=co(2);ho("ngIf",Co(2).isList(e))("ngIfElse",n)}}function Sd(e,t){if(1&e&&(fo(0,"div",1),ao(1,xd,3,2,"ng-template",2),go()),2&e){const e=t.$implicit;ho("ngClass",Hi(2,_d,t.first,t.last)),cs(1),ho("ngForOf",e)}}let kd=(()=>{class e{constructor(){this.columns=8,this.hueChange=new Ui(!1),this.colorChange=new Ui(!1),this.direction="up"}onSelectionChange(e){const t=e.getRgba(),n=e.getHsva(),s=(new Eh).setRgba(t.red,t.green,t.blue,t.alpha),r=(new Eh).setHsva(n.hue);this.hueChange.emit(r),this.colorChange.emit(s)}isList(e){return Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["color-presets-component"]],inputs:{columns:"columns",colorPresets:"colorPresets",hue:"hue",color:"color",direction:"direction"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:2,vars:4,consts:[["class","row",3,"ngClass",4,"ngFor","ngForOf"],[1,"row",3,"ngClass"],["ngFor","",3,"ngForOf"],[3,"list","direction","activeColor","ngClass","selectionChange",4,"ngIf","ngIfElse"],["colorPreset",""],[3,"list","direction","activeColor","ngClass","selectionChange"],[3,"ngClass","color","activeColor","selectionChange"]],template:function(e,t){1&e&&(ao(0,Sd,2,5,"div",0),zi(1,"chunks")),2&e&&ho("ngForOf",Zi(1,1,t.colorPresets,t.columns))},directives:[ua,aa,da,bd,fd],pipes:[vd],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0}),e})();class Ad extends x{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value}next(e){super.next(this._value=e)}}class Ed{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new Td(e,this.compare,this.keySelector))}}class Td extends f{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(s){return this.destination.error(s)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(s){return this.destination.error(s)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}var Pd=function(e){return e.hex="hex",e.hexa="hexa",e.rgba="rgba",e.rgb="rgb",e.hsla="hsla",e.hsl="hsl",e.cmyk="cmyk",e}({});class Od{constructor(){var e;this.modelValue=null,this.hueValue=null,this.initValue=null,this.valueChanged=new x,this.presetsVisibilityChanges=new Ad(!0),this.initType=null,this.alphaChannelVisibilityChanges=new Ad(!0),this.valueChanges=this.valueChanged.asObservable().pipe((e=(e,t)=>e.toRgbaString()==t.toRgbaString(),t=>t.lift(new Ed(e,void 0)))),this.colorPresets=[];const t=Eh.from(new kh(255,0,0,1));this.setValue(t),this.setHueColor(t)}setValueFrom(e){const t=Eh.from(e);return this.initValue||(this.initValue=Eh.from(e)),"string"==typeof e&&this.finOutInputType(e),this.setHueColor(t),this.setValue(t),this}setHueColor(e){(this.hueValue&&e.getHsva().hue>0||!this.hueValue)&&(this.hueValue=(new Eh).setHsva(e.getHsva().hue))}get hue(){return this.hueValue}set hue(e){this.hueValue=e}setValue(e){return this.modelValue=e,this.valueChanged.next(e),this}get value(){return this.modelValue}set value(e){this.setValue(e)}reset(){let e;return this.initValue?(e=this.initValue.clone(),this.setHueColor(e)):(e=Eh.from(new kh(255,0,0,1)),this.hueValue=(new Eh).setHsva(e.getHsva().hue)),this.setValue(e),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}finOutInputType(e){const t=e.replace(/ /g,"").toLowerCase();"#"===t[0]&&(this.initType=Pd.hex,t.length>7&&(this.initType=Pd.hexa));const n=t.indexOf("(");switch(t.substr(0,n)){case Pd.rgba:this.initType=Pd.rgba;break;case Pd.rgb:this.initType=Pd.rgb;break;case Pd.hsla:this.initType=Pd.hsla;break;case Pd.hsl:this.initType=Pd.hsl;break;case Pd.cmyk:this.initType=Pd.cmyk}}setColorPresets(e){return this.colorPresets=this.setPresets(e),this}setPresets(e){const t=[];for(const n of e)Array.isArray(n)?t.push(this.setPresets(n)):t.push(new Eh(n));return t}get presets(){return this.colorPresets}hasPresets(){return this.colorPresets.length>0}isPresetVisible(){return this.presetsVisibilityChanges.value}showPresets(){return this.presetsVisibilityChanges.next(!0),this}hidePresets(){return this.presetsVisibilityChanges.next(!1),this}}function Id(e,t){switch(t){case Pd.hex:return e.toHexString();case Pd.hexa:return e.toHexString(!0);case Pd.rgb:return e.toRgbString();case Pd.rgba:return e.toRgbaString();case Pd.hsl:return e.toHslString();case Pd.hsla:return e.toHslaString();default:return e.toRgbaString()}}function Md(e,t){if(1&e){const e=yo();fo(0,"alpha-component",14),vo("colorChange",(function(t){return jt(e),Co().control.value=t})),go()}2&e&&ho("color",Co().control.value)}function Vd(e,t){if(1&e){const e=yo();fo(0,"rgba-input-component",15),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),zi(1,"async"),go()}if(2&e){const e=Co();ho("alpha",Ki(1,3,e.control.alphaChannelVisibilityChanges))("color",e.control.value)("hue",e.control.hue)}}function Nd(e,t){if(1&e){const e=yo();fo(0,"hsla-input-component",15),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),zi(1,"async"),go()}if(2&e){const e=Co();ho("alpha",Ki(1,3,e.control.alphaChannelVisibilityChanges))("color",e.control.value)("hue",e.control.hue)}}function Fd(e,t){if(1&e){const e=yo();fo(0,"hex-input-component",16),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),go()}if(2&e){const e=Co();ho("color",e.control.value)("hue",e.control.hue)}}function Rd(e,t){if(1&e){const e=yo();fo(0,"color-presets-component",17),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),go()}if(2&e){const e=Co();ho("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let Dd=(()=>{class e{constructor(e){this.cdr=e,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.colorChange=new Ui(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Od),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Id(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["chrome-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[zo],decls:18,vars:16,consts:[[3,"hue","color","colorChange"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"colorType","color"],[3,"hue","color","hueChange","colorChange"],[3,"color","colorChange",4,"ngIf"],[1,"controls-row","presentation"],[1,"column",3,"ngSwitch"],["label","",3,"alpha","color","hue","colorChange","hueChange",4,"ngSwitchCase"],["label","","prefix","#",3,"color","hue","colorChange","hueChange",4,"ngSwitchCase"],[1,"column","type-column"],[1,"type-btn",3,"click"],[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[3,"color","colorChange"],["label","",3,"alpha","color","hue","colorChange","hueChange"],["label","","prefix","#",3,"color","hue","colorChange","hueChange"],[3,"color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(fo(0,"saturation-component",0),vo("colorChange",(function(e){return t.control.value=e})),go(),fo(1,"div",1),fo(2,"div",2),fo(3,"div",3),mo(4,"indicator-component",4),go(),fo(5,"div",3),fo(6,"hue-component",5),vo("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),ao(7,Md,1,1,"alpha-component",6),zi(8,"async"),go(),go(),fo(9,"div",7),fo(10,"div",8),ao(11,Vd,2,5,"rgba-input-component",9),ao(12,Nd,2,5,"hsla-input-component",9),ao(13,Fd,1,2,"hex-input-component",10),go(),fo(14,"div",11),fo(15,"span",12),vo("click",(function(){return t.changePresentation()})),go(),go(),go(),go(),ao(16,Rd,1,3,"color-presets-component",13),zi(17,"async")),2&e&&(ho("hue",t.control.hue)("color",t.control.value),cs(4),ho("colorType",t.presentations[t.selectedPresentation])("color",t.control.value),cs(2),ho("hue",t.control.hue)("color",t.control.value),cs(1),ho("ngIf",Ki(8,12,t.control.alphaChannelVisibilityChanges)),cs(3),ho("ngSwitch",t.presentations[t.selectedPresentation]),cs(1),ho("ngSwitchCase","rgba"),cs(1),ho("ngSwitchCase","hsla"),cs(1),ho("ngSwitchCase","hex"),cs(3),ho("ngIf",Ki(17,14,t.control.presetsVisibilityChanges)))},directives:[Oh,Ih,Vh,da,ma,ya,Rh,zh,Wh,Xh,kd],pipes:[xa],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}[_nghost-%COMP%] .controls .pointer{box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:rgba(0,0,0,0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==") no-repeat 50%;background-size:6px 12px}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] color-preset{box-shadow:inset 0 0 2px rgba(0,0,0,.3)}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover{-ms-transform:scale(1.18);transform:scale(1.18)}'],changeDetection:0}),e})();function jd(e,t){if(1&e){const e=yo();fo(0,"alpha-component",12),vo("colorChange",(function(t){return jt(e),Co().control.value=t})),go()}2&e&&ho("color",Co().control.value)}function Hd(e,t){if(1&e){const e=yo();fo(0,"color-presets-component",13),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),go()}if(2&e){const e=Co();ho("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let qd=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new Ui(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Od),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#d0041b","#8b572a","#f5a623","#f8e71c","#7ed321","#417506","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#030303","#4a4a4a","#9b9b9b","#fff"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Id(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["sketch-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[zo],decls:17,vars:18,consts:[[3,"hue","color","colorChange"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"hue","color","hueChange","colorChange"],[3,"color","colorChange",4,"ngIf"],[1,"column","indicator-column"],["colorType","rgba",3,"color"],[1,"controls-row","presentation"],["label","",3,"color","hue","colorChange","hueChange"],["label","",3,"alpha","color","hue","colorChange","hueChange"],[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[3,"color","colorChange"],[3,"color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(fo(0,"saturation-component",0),vo("colorChange",(function(e){return t.control.value=e})),go(),fo(1,"div",1),fo(2,"div",2),fo(3,"div",3),fo(4,"hue-component",4),vo("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),ao(5,jd,1,1,"alpha-component",5),zi(6,"async"),go(),fo(7,"div",6),mo(8,"indicator-component",7),go(),go(),fo(9,"div",8),fo(10,"div",3),fo(11,"hex-input-component",9),vo("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),go(),go(),fo(12,"div",3),fo(13,"rgba-input-component",10),vo("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),zi(14,"async"),go(),go(),go(),go(),ao(15,Hd,1,3,"color-presets-component",11),zi(16,"async")),2&e&&(ho("hue",t.control.hue)("color",t.control.value),cs(4),ho("hue",t.control.hue)("color",t.control.value),cs(1),ho("ngIf",Ki(6,12,t.control.alphaChannelVisibilityChanges)),cs(3),ho("color",t.control.value),cs(3),ho("color",t.control.value)("hue",t.control.hue),cs(2),ho("alpha",Ki(14,14,t.control.alphaChannelVisibilityChanges))("color",t.control.value)("hue",t.control.hue),cs(2),ho("ngIf",Ki(16,16,t.control.presetsVisibilityChanges)))},directives:[Oh,Vh,da,Ih,Xh,zh,Rh,kd],pipes:[xa],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;padding:9px;width:220px;border-radius:4px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}saturation-component[_ngcontent-%COMP%]{height:146px;border-radius:2px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:0 0 2px rgba(0,0,0,.6);width:10px;height:10px}.controls[_ngcontent-%COMP%]{padding:4px 0 0}alpha-component[_ngcontent-%COMP%], hue-component[_ngcontent-%COMP%]{height:10px;border-radius:2px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}hue-component[_ngcontent-%COMP%]{margin-bottom:4px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.indicator-column[_ngcontent-%COMP%]{width:25px}indicator-component[_ngcontent-%COMP%]{height:24px;width:100%;box-shadow:inset 0 0 2px rgba(0,0,0,.6);border-radius:2px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px 9px 0;margin:8px -9px 0}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:5%}.controls-row.hue-alpha[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{padding-right:5px}.hue-alpha[_ngcontent-%COMP%] .pointer{width:6px;margin:0 0 0 -3px;height:100%;top:0;border-radius:2px;border:1px solid #898989}.presentation[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:56px}.presentation[_ngcontent-%COMP%] input{height:20px;font-size:11px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{height:16px;width:16px;border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset 0 0 2px rgba(0,0,0,.4)}[_nghost-%COMP%] color-preset.selected{box-shadow:inset 0 1px 4px rgba(0,0,0,.4)}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 10px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}"],changeDetection:0}),e})();function Bd(e,t){if(1&e){const e=yo();fo(0,"color-presets-component",12),vo("colorChange",(function(t){return jt(e),Co().control.value=t}))("hueChange",(function(t){return jt(e),Co().control.hue=t})),go()}if(2&e){const e=Co();ho("columns",9)("color",e.control.value)("colorPresets",e.control.presets)("hue",e.control.hue)}}let Ld=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new Ui(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Od),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#6da6e8","#74c283","#f9d948","#f5943f","#f66c6c","#ef8ab8","#696cd4","#6c6c6c","#f6f5f5"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Id(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["compact-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[zo],decls:15,vars:10,consts:[["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[1,"controls"],[1,"controls-row","saturation-hue"],[1,"column"],[3,"hue","color","colorChange"],[1,"column","hue-column"],["vertical","",3,"hue","color","hueChange","colorChange"],[1,"controls-row","presentation"],["viewBox","0 0 1024 1024",1,"pencil"],["d","M639.77,121.045l-48.598,84.2l112.215,64.8l48.6-84.205L639.77,121.045z M558.773,261.354\n L315.78,682.206l112.215,64.795L670.99,326.15L558.773,261.354z M690.816,75.691l74.922,43.286\n c41.682,24.045,55.52,76.564,31.725,117.784l-37.967,65.68l-32.398,56.11L451.706,835.594L282.452,947.303\n c-40.961,27.004-70.24,9.027-67.329-38.894l12.149-202.411l275.395-477.041l32.398-56.11l37.883-65.686\n C596.824,65.946,649.473,51.857,690.816,75.691z M274.689,883.015l120.908-79.818l-112.218-64.8L274.689,883.015z"],["prefix","#",3,"color","hue","colorChange","hueChange"],["colorType","hex",3,"color"],["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(ao(0,Bd,1,4,"color-presets-component",0),zi(1,"async"),fo(2,"div",1),fo(3,"div",2),fo(4,"div",3),fo(5,"saturation-component",4),vo("colorChange",(function(e){return t.control.value=e})),go(),go(),fo(6,"div",5),fo(7,"hue-component",6),vo("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),go(),go(),fo(8,"div",7),fo(9,"div",3),on(),fo(10,"svg",8),mo(11,"path",9),go(),Nt.lFrame.currentNamespace=null,fo(12,"hex-input-component",10),vo("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),go(),go(),fo(13,"div",3),mo(14,"indicator-component",11),go(),go(),go()),2&e&&(ho("ngIf",Ki(1,8,t.control.presetsVisibilityChanges)),cs(5),ho("hue",t.control.hue)("color",t.control.value),cs(2),ho("hue",t.control.hue)("color",t.control.value),cs(5),ho("color",t.control.value)("hue",t.control.hue),cs(2),ho("color",t.control.value))},directives:[da,Oh,Vh,Xh,Ih,kd],pipes:[xa],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:240px;border-radius:3px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 0 4px rgba(0,0,0,.3)}color-presets-component[_ngcontent-%COMP%]{border-bottom:1px solid #e4e4e6;padding:9px 12px}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}.controls[_ngcontent-%COMP%]{padding:10px 12px 12px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.controls-row.saturation-hue[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.saturation-hue[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:178px}saturation-component[_ngcontent-%COMP%]{height:178px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:0 0 2px rgba(0,0,0,.6)}.hue-column[_ngcontent-%COMP%]{padding-left:14px}[_nghost-%COMP%] hue-component[_ngcontent-%COMP%]{width:100%;height:178px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}[_nghost-%COMP%] hue-component[vertical][_ngcontent-%COMP%] .pointer{width:auto;height:9px;left:-3px;right:-3px;margin:-4.5px 0 0;background:rgba(0,0,0,0);border:3px solid #fff;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.6)}.controls-row.presentation[_ngcontent-%COMP%]{border:1px solid #e4e4e6;border-radius:3px;padding:6px 6px 6px 26px;position:relative}indicator-component[_ngcontent-%COMP%]{height:18px;width:18px;box-shadow:inset 0 0 2px rgba(0,0,0,.6);border-radius:50%}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:25%}hex-input-component[_ngcontent-%COMP%] input{border:0;color:#817e81;margin:0;text-align:left;height:18px}.pencil[_ngcontent-%COMP%]{position:absolute;height:14px;width:14px;left:6px;top:50%;margin:-7px 0 0}.pencil[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%] .reflection{display:none}[_nghost-%COMP%] color-preset{height:18px;width:18px;border-radius:50%;box-shadow:inset 0 1px 1px rgba(0,0,0,.6)}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 6px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] color-preset.selected{box-shadow:inset 0 1px 6px rgba(0,0,0,.6)}"],changeDetection:0}),e})(),zd=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new Ui(!1),this.subscriptions=[]}ngOnInit(){this.control||(this.control=new Od),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#b80000","#db3e00","#fccb00","#008b02","#006b76","#1273de","#004dcf","#5300eb","#eb9694","#fad0c3","#fef3bd","#c1e1c5","#bedadc","#c4def6","#bed3f3","#d4c4fb"]),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck(),this.colorChange.emit(Id(e,this.control.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["github-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[zo],decls:1,vars:2,consts:[["direction","down",3,"color","colorPresets","colorChange"]],template:function(e,t){1&e&&(fo(0,"color-presets-component",0),vo("colorChange",(function(e){return t.control.value=e})),go()),2&e&&ho("color",t.control.value)("colorPresets",t.control.presets)},directives:[kd],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:212px;border:1px solid rgba(0,0,0,.2);box-shadow:0 3px 12px rgba(0,0,0,.15);border-radius:4px;padding:5px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:25px;height:25px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;z-index:10;border:2px solid #fff;box-shadow:0 0 5px 2px rgba(0,0,0,.2)}'],changeDetection:0}),e})();function Kd(e,t){if(1&e){const e=yo();fo(0,"color-presets-component",2),vo("colorChange",(function(t){return jt(e),Co().childControl.value=t})),go()}if(2&e){const e=Co();ho("columns",7)("color",e.childControl.value)("colorPresets",e.childControl.presets)}}let Zd=(()=>{class e{constructor(e){this.cdr=e,this.colorChange=new Ui(!1),this.control=new Od,this.childControl=new Od,this.subscriptions=[],this.mapColors={"#E6315B":["#fc8da7","#fa7d9a","#f56484","#f04a71","#e82c58","#e31746","#de0235","#d60234","#d10232","#c70230","#b8022c","#ab0229","#9c0225","#8f0122","#8c0122","#82011f","#78011b","#690117","#5c0012","#4f0010","#42000c"],"#793183":["#ef8dfc","#eb7dfa","#e664f5","#dc4af0","#d22ce8","#cb17e3","#c402de","#c002d9","#bb02d4","#b002c7","#a202b8","#9702ab","#8a029c","#7e018f","#7a018a","#730182","#6c0178","#5e0169","#54015c","#49014f","#3d0142"],"#009DE7":["#8dd9fc","#7dd2fa","#64c7f5","#4abbf0","#2cade8","#17a2e3","#0298de","#0295d9","#0291d4","#0289c7","#027eb8","#0275ab","#026b9c","#01628f","#015f8a","#015982","#015278","#014869","#013f5c","#01364f","#012e42"],"#00B59C":["#8dfeea","#7dfbe4","#63f4db","#4befd2","#2de7c6","#16e2be","#03deb7","#01ddb6","#01d4ae","#01c7a4","#01b897","#01aa8b","#019b80","#019076","#018c73","#01836c","#017763","#016857","#005c4e","#005044","#004239"],"#FFCE00":["#fce68d","#fae17d","#f5da64","#f0cf4a","#e8c22c","#e5bc17","#deb202","#deb100","#d4aa02","#c7a002","#b89302","#ab8902","#9c7d02","#8f7301","#8c7001","#826801","#786201","#695601","#5c4b00","#4f4100","#423700"],"#FF4A21":["#fca28d","#fa947d","#f57f64","#f0694a","#e84f2c","#e33c17","#de2a02","#d92a02","#d42902","#c72602","#b82302","#ab2102","#9c1e02","#8f1b01","#8a1a01","#821901","#781701","#691300","#5c1100","#4f0e00","#420c00"],"#D6D5D6":["#fff","#f2f2f2","#e5e5e5","#d9d9d9","#cccccc","#bfbfbf","#b3b3b3","#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#595959","#4d4d4d","#424242","#363636","#262626","#1a1a1a","#0f0f0f","#000"]}}ngOnInit(){this.color?this.childControl.setValueFrom(this.color):this.control.setValueFrom("#E6315B"),this.control.setColorPresets(["#e6315b","#793183","#009de7","#00b59c","#ffce00","#ff4a21","#d6d5d6"]),this.childControl.setColorPresets(this.mapColors["#E6315B"]),this.subscriptions.push(this.childControl.valueChanges.subscribe(e=>{this.colorChange.emit(Id(e,this.childControl.initType))})),this.subscriptions.push(this.control.valueChanges.subscribe(e=>{this.cdr.markForCheck();const t=this.mapColors[e.toHexString()];t&&this.childControl.setColorPresets(t),this.colorChange.emit(Id(this.childControl.value,this.childControl.initType))}))}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}ngOnChanges(e){this.color&&this.control&&Id(this.control.value,this.control.initType)!==this.color&&this.childControl.setValueFrom(this.color)}}return e.\u0275fac=function(t){return new(t||e)(uo(Vr))},e.\u0275cmp=nt({type:e,selectors:[["swatches-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},features:[zo],decls:2,vars:4,consts:[["direction","down",3,"columns","color","colorPresets","colorChange"],["class","child-list","direction","down",3,"columns","color","colorPresets","colorChange",4,"ngIf"],["direction","down",1,"child-list",3,"columns","color","colorPresets","colorChange"]],template:function(e,t){1&e&&(fo(0,"color-presets-component",0),vo("colorChange",(function(e){return t.control.value=e})),go(),ao(1,Kd,1,3,"color-presets-component",1)),2&e&&(ho("columns",7)("color",t.control.value)("colorPresets",t.control.presets),cs(1),ho("ngIf",t.childControl.presets.length))},directives:[kd,da],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:224px;border:1px solid rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.3);border-radius:4px;padding:6px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:30px;height:30px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:3px;top:3px;bottom:3px;right:3px;z-index:10;border:3px solid #fff;box-shadow:0 0 5px 2px rgba(0,0,0,.2)}[_nghost-%COMP%] .row:first-child color-preset-sublist:first-child, [_nghost-%COMP%] .row:first-child color-preset:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .row.last color-preset-sublist.last, [_nghost-%COMP%] .row.last color-preset.last{border-radius:0 4px 4px 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.first color-preset.first{border-radius:4px 0 0 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.first color-preset.last{border-radius:0 4px 0 0}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.last color-preset.first{border-radius:0 0 0 4px}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.last color-preset.last{border-radius:0 0 4px 0}[_nghost-%COMP%] .child-list{margin-top:6px;border-top:1px solid #e5e5e5;padding:6px 0 0}[_nghost-%COMP%] .child-list color-preset.selected:after, [_nghost-%COMP%] .child-list color-preset:hover:after{content:"\u2714";font-size:18px;color:#fff;border:0;left:0;top:0;bottom:0;right:0;line-height:30px;box-shadow:none;text-align:center}'],changeDetection:0}),e})(),Qd=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:_h,useValue:t||new _h}]}}}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)},providers:[_h],imports:[[Sa]]}),e})();var Gd=n("Eh/9");function Ud(e,t){1&e&&mo(0,"chrome-picker",2),2&e&&ho("control",Co().colorControl)}function Wd(e,t){if(1&e){const e=yo();fo(0,"div",3),vo("click",(function(t){return jt(e),Co().overlayClick(t)})),go()}}let Yd=(()=>{class e{constructor(){this.colorControl=new Od,this.isVisible=!1,this.colorChange=new Ui}set color(e){this.colorControl.setValueFrom(e)}get background(){return this.colorControl.value.toHexString()}ngOnInit(){this.colorControl.valueChanges.subscribe(e=>this.colorChange.emit(e.toHexString()))}showColorPicker(e){!0!==this.isVisible&&(this.isVisible=!this.isVisible)}overlayClick(e){e.preventDefault(),e.stopPropagation(),this.isVisible=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=nt({type:e,selectors:[["chrome-wrapper"]],hostVars:2,hostBindings:function(e,t){1&e&&vo("click",(function(e){return t.showColorPicker(e)})),2&e&&Ao("background-color",t.background)},inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:2,vars:2,consts:[[3,"control",4,"ngIf"],["class","overlay",3,"click",4,"ngIf"],[3,"control"],[1,"overlay",3,"click"]],template:function(e,t){1&e&&(ao(0,Ud,1,1,"chrome-picker",0),ao(1,Wd,1,0,"div",1)),2&e&&(ho("ngIf",t.isVisible),cs(1),ho("ngIf",t.isVisible))},directives:[da,Dd],styles:["[_nghost-%COMP%]{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px}chrome-picker[_ngcontent-%COMP%]{left:100%;position:absolute;top:100%;z-index:2}.overlay[_ngcontent-%COMP%]{background:rgba(0,0,0,0);left:0;position:fixed;top:0;height:100%;width:100%;z-index:1}"]}),e})(),Xd=(()=>{class e{constructor(e){this.elRef=e,this.color="rgba(54, 86, 4, 1)",this.chromeControl=(new Od).setValueFrom(Ah.aquamarine).hidePresets().hideAlphaChannel(),this.sketchControl=(new Od).setValueFrom("#A6771C"),this.compactControl=new Od,this.githubControl=(new Od).setValueFrom("#1273DE"),this.swatchesColor="#F04A71",this.wrapperColor="#F04A71"}ngAfterViewInit(){this.elRef.nativeElement.querySelectorAll(".prettify").forEach(e=>e.innerHTML=Gd.prettyPrintOne(e.innerHTML))}}return e.\u0275fac=function(t){return new(t||e)(uo(Wo))},e.\u0275cmp=nt({type:e,selectors:[["app-root"]],decls:726,vars:48,consts:[[1,"jumbotron"],[1,"background"],[1,"container"],[1,"row"],[1,"col"],[1,"display-4"],["href","https://github.com/pIvan/ngx-color-picker","role","button","aria-pressed","true",1,"btn","btn-primary","btn-lg","active"],[1,"row","pickers-row"],[1,"col","col-md-6","text-right"],[3,"color","colorChange"],[1,"col","col-md-6"],[1,"card"],[1,"card-header"],[1,"card-block"],[2,"padding","0 0 0 40px"],["id","installation",1,"card"],[1,"prettify"],["id","usage",1,"card"],[1,"col","col-lg-4"],[1,"info-row"],[3,"control"],[1,"col","col-lg-8"],[1,"buttons-row"],[1,"btn","btn-primary",3,"click"],["id","wrap-component",1,"card"],[1,"table","table-bordered","table-striped"],["target","_blank","href","https://www.w3.org/TR/css-color-3/#svg-color"]],template:function(e,t){if(1&e){fo(0,"div",0),mo(1,"div",1),fo(2,"div",2),fo(3,"div",3),fo(4,"div",4),fo(5,"h1",5),Vo(6,"@iplab/ngx-color-picker"),go(),mo(7,"br"),fo(8,"a",6),Vo(9,"GitHub"),go(),go(),go(),fo(10,"div",7),fo(11,"div",8),fo(12,"sketch-picker",9),vo("colorChange",(function(e){return t.color=e})),go(),go(),fo(13,"div",10),fo(14,"chrome-picker",9),vo("colorChange",(function(e){return t.color=e})),go(),go(),go(),go(),go(),fo(15,"div",2),fo(16,"div",11),fo(17,"div",12),Vo(18,"Getting started"),go(),fo(19,"div",13),fo(20,"ol"),fo(21,"li"),Vo(22,"Fork and clone this repo"),go(),fo(23,"li"),Vo(24,"npm install"),go(),fo(25,"li"),Vo(26,'Open a terminal and type "npm run start"'),go(),go(),fo(27,"p",14),fo(28,"b"),Vo(29,"or"),go(),go(),fo(30,"ol"),fo(31,"li"),Vo(32,"npm install @iplab/ngx-color-picker --save"),go(),fo(33,"li"),Vo(34,"ng serve --open"),go(),go(),go(),go(),mo(35,"br"),fo(36,"div",11),fo(37,"div",12),Vo(38,"Description"),go(),fo(39,"div",13),fo(40,"p"),Vo(41,"Pure Angular color picker library."),go(),fo(42,"ul"),fo(43,"li"),Vo(44,"It's an Angular color picker"),go(),fo(45,"li"),Vo(46,"Compatible with Angular 5+ versions"),go(),fo(47,"li"),Vo(48,"No external dependency"),go(),fo(49,"li"),Vo(50,"Simple to configure"),go(),fo(51,"li"),Vo(52,"Easy to use"),go(),go(),go(),go(),mo(53,"br"),fo(54,"div",15),fo(55,"div",12),Vo(56,"Installation"),go(),fo(57,"div",13),fo(58,"p"),Vo(59,"To install this component to an external project, follow the procedure:"),go(),fo(60,"ol"),fo(61,"li"),fo(62,"code"),Vo(63,"npm install @iplab/ngx-color-picker --save"),go(),go(),fo(64,"li"),fo(65,"pre",16),Vo(66,"import { ColorPickerModule } from '@iplab/ngx-color-picker';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n...\n...\n\n\n@NgModule({\n imports: [\n BrowserModule,\n ColorPickerModule,\n "),fo(67,"b"),Vo(68,"BrowserAnimationsModule"),go(),Vo(69," or "),fo(70,"b"),Vo(71,"NoopAnimationsModule"),go(),Vo(72," // need to be included\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}"),go(),go(),fo(73,"li"),fo(74,"code"),Vo(75,''),go(),go(),go(),go(),go(),mo(76,"br"),fo(77,"div",17),fo(78,"div",12),Vo(79,"Usage"),go(),fo(80,"div",13),fo(81,"h6"),Vo(82,"predefined components"),go(),fo(83,"p"),Vo(84,"Color picker have 5 predefined components. Each component, except swatches-picker,"),mo(85,"br"),Vo(86," can be used with direct color binding "),fo(87,"b"),Vo(88,"or/and"),go(),Vo(89," with control which provides greater flexibility"),go(),fo(90,"p"),fo(91,"code"),Vo(92,''),go(),mo(93,"br"),fo(94,"code"),Vo(95,''),go(),mo(96,"br"),fo(97,"code"),Vo(98,''),go(),mo(99,"br"),fo(100,"code"),Vo(101,''),go(),mo(102,"br"),fo(103,"code"),Vo(104,''),go(),go(),mo(105,"hr"),fo(106,"h6"),Vo(107,"[color] attribute"),go(),fo(108,"p"),Vo(109,"When binding over attribute "),fo(110,"b"),Vo(111,"[color]"),go(),Vo(112," is used, component try to determine which value type is used so the output would be the same."),mo(113,"br"),fo(114,"b"),Vo(115,"Examples:"),go(),mo(116,"br"),fo(117,"code"),Vo(118,''),go(),Vo(119," -> output is "),fo(120,"b"),Vo(121,"rgb"),go(),mo(122,"br"),fo(123,"code"),Vo(124,''),go(),Vo(125," -> output is "),fo(126,"b"),Vo(127,"rgba"),go(),mo(128,"br"),fo(129,"code"),Vo(130,''),go(),Vo(131," -> output is "),fo(132,"b"),Vo(133,"hsl"),go(),mo(134,"br"),fo(135,"code"),Vo(136,''),go(),Vo(137," -> output is "),fo(138,"b"),Vo(139,"hex"),go(),go(),mo(140,"hr"),fo(141,"h6"),Vo(142,"[control] attribute"),go(),fo(143,"p"),Vo(144,"When binding over "),fo(145,"b"),Vo(146,"[control]"),go(),Vo(147," user have greater control over color output and all events"),mo(148,"br"),fo(149,"b"),Vo(150,"Examples:"),go(),mo(151,"br"),fo(152,"code"),Vo(153,''),go(),go(),mo(154,"hr"),fo(155,"h6"),Vo(156,"color indicator"),go(),fo(157,"p"),Vo(158,"Color indicator is not only indicator, but click also allows copying component color to clipboard."),mo(159,"br"),Vo(160," Text which is displayed on mouseover can be configured over NgModule configuration"),go(),fo(161,"pre",16),Vo(162,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public indicatorTitle: string = 'Copy color to clipboard';\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),go(),mo(163,"hr"),fo(164,"h6"),Vo(165,"color presets"),go(),fo(166,"p"),Vo(167,"color presets on click choose a color, if the child list is available user can show it by long press on certain colors"),mo(168,"br"),Vo(169," Text which is displayed on mouseover can be configured over NgModule configuration"),go(),fo(170,"pre",16),Nt.bindingsEnabled=!1,Vo(171,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public presetsTitle: string = '{0}. Long-click to show alternate shades.'; // {0} is the place where hex value will be placed\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),Nt.bindingsEnabled=!0,go(),mo(172,"hr"),fo(173,"h6"),Vo(174,"all color picker parts"),go(),fo(175,"p"),Vo(176,"Color picker library exports all parts to enable custom components builds"),mo(177,"br"),Vo(178," Here is a list of all available components and their attributes (optional attributes are marked with question mark) "),go(),fo(179,"pre",16),Vo(180,'\n\n\n\n\n\n\n\n\n\n'),go(),fo(181,"h6"),Vo(182,"attributes explanation"),go(),fo(183,"p"),fo(184,"b"),Vo(185,"color =>"),go(),Vo(186," currently selected color (output color)"),mo(187,"br"),fo(188,"b"),Vo(189,"hue =>"),go(),Vo(190," color used internally as current hue color"),mo(191,"br"),fo(192,"b"),Vo(193,"colorType =>"),go(),Vo(194," specify which type of color should be copied to the clipboard"),mo(195,"br"),fo(196,"b"),Vo(197,"vertical =>"),go(),Vo(198," should component be placed horizontally or vertically"),mo(199,"br"),fo(200,"b"),Vo(201,"alpha =>"),go(),Vo(202," should component display alpha channel"),mo(203,"br"),fo(204,"b"),Vo(205,"label =>"),go(),Vo(206," whether the label will be displayed or not (rgba, hsla, hex)"),mo(207,"br"),fo(208,"b"),Vo(209,"prefix =>"),go(),Vo(210," definition of label prefix"),mo(211,"br"),fo(212,"b"),Vo(213,"colorPresets =>"),go(),Vo(214," list of colors used as presets "),go(),go(),go(),mo(215,"br"),fo(216,"div",11),fo(217,"div",12),Vo(218,"Chrome color picker"),go(),fo(219,"div",13),fo(220,"div",3),fo(221,"div",18),fo(222,"div",19),fo(223,"code"),Vo(224),go(),fo(225,"code"),Vo(226),go(),fo(227,"code"),Vo(228),go(),fo(229,"code"),Vo(230),go(),fo(231,"code"),Vo(232),go(),fo(233,"code"),Vo(234),go(),fo(235,"code"),Vo(236),go(),fo(237,"code"),Vo(238),go(),fo(239,"code"),Vo(240),go(),go(),mo(241,"chrome-picker",20),go(),fo(242,"div",21),fo(243,"p"),Vo(244,"Component code"),go(),fo(245,"pre",16),Vo(246,"@Component({\n...\n})\nexport class AppComponent {\n\n public chromeControl = new ColorPickerControl()\n .setValueFrom(ColorsTable.aquamarine)\n .hidePresets()\n .hideAlphaChannel();\n\n constructor() { \n }\n}"),go(),fo(247,"p"),Vo(248,"Template code"),go(),fo(249,"pre",16),Vo(250,''),go(),go(),go(),fo(251,"div",22),fo(252,"button",23),vo("click",(function(){return t.chromeControl.isPresetVisible()?t.chromeControl.hidePresets():t.chromeControl.showPresets()})),Vo(253,"Toggle presets visibility"),go(),Vo(254," \xa0 "),fo(255,"button",23),vo("click",(function(){return t.chromeControl.reset()})),Vo(256,"Reset to initial"),go(),Vo(257," \xa0 "),fo(258,"button",23),vo("click",(function(){return t.chromeControl.isAlphaChannelEnabled()?t.chromeControl.hideAlphaChannel():t.chromeControl.showAlphaChannel()})),Vo(259,"Toggle alpha channel"),go(),go(),go(),go(),mo(260,"br"),fo(261,"div",11),fo(262,"div",12),Vo(263,"Sketch color picker"),go(),fo(264,"div",13),fo(265,"div",3),fo(266,"div",18),fo(267,"div",19),fo(268,"code"),Vo(269),go(),fo(270,"code"),Vo(271),go(),fo(272,"code"),Vo(273),go(),fo(274,"code"),Vo(275),go(),fo(276,"code"),Vo(277),go(),fo(278,"code"),Vo(279),go(),fo(280,"code"),Vo(281),go(),fo(282,"code"),Vo(283),go(),fo(284,"code"),Vo(285),go(),go(),mo(286,"sketch-picker",20),go(),fo(287,"div",21),fo(288,"p"),Vo(289,"Component code"),go(),fo(290,"pre",16),Vo(291,"@Component({\n...\n})\nexport class AppComponent {\n\n public sketchControl = new ColorPickerControl()\n .setValueFrom('#A6771C');\n\n constructor() { \n }\n}"),go(),fo(292,"p"),Vo(293,"Template code"),go(),fo(294,"pre",16),Vo(295,''),go(),go(),go(),fo(296,"div",22),fo(297,"button",23),vo("click",(function(){return t.sketchControl.isPresetVisible()?t.sketchControl.hidePresets():t.sketchControl.showPresets()})),Vo(298,"Toggle presets visibility"),go(),Vo(299," \xa0 "),fo(300,"button",23),vo("click",(function(){return t.sketchControl.reset()})),Vo(301,"Reset to initial"),go(),Vo(302," \xa0 "),fo(303,"button",23),vo("click",(function(){return t.sketchControl.isAlphaChannelEnabled()?t.sketchControl.hideAlphaChannel():t.sketchControl.showAlphaChannel()})),Vo(304,"Toggle alpha channel"),go(),go(),go(),go(),mo(305,"br"),fo(306,"div",11),fo(307,"div",12),Vo(308,"Compact color picker"),go(),fo(309,"div",13),fo(310,"div",3),fo(311,"div",18),fo(312,"div",19),fo(313,"code"),Vo(314),go(),fo(315,"code"),Vo(316),go(),fo(317,"code"),Vo(318),go(),fo(319,"code"),Vo(320),go(),fo(321,"code"),Vo(322),go(),fo(323,"code"),Vo(324),go(),fo(325,"code"),Vo(326),go(),fo(327,"code"),Vo(328),go(),fo(329,"code"),Vo(330),go(),go(),mo(331,"compact-picker",20),go(),fo(332,"div",21),fo(333,"p"),Vo(334,"Component code"),go(),fo(335,"pre",16),Vo(336,"@Component({\n...\n})\nexport class AppComponent {\n\n public compactControl = new ColorPickerControl();\n\n constructor() { \n }\n}"),go(),fo(337,"p"),Vo(338,"Template code"),go(),fo(339,"pre",16),Vo(340,''),go(),go(),go(),fo(341,"div",22),fo(342,"button",23),vo("click",(function(){return t.compactControl.isPresetVisible()?t.compactControl.hidePresets():t.compactControl.showPresets()})),Vo(343,"Toggle presets visibility"),go(),Vo(344," \xa0 "),fo(345,"button",23),vo("click",(function(){return t.compactControl.reset()})),Vo(346,"Reset to initial"),go(),go(),go(),go(),mo(347,"br"),fo(348,"div",11),fo(349,"div",12),Vo(350,"Github color picker"),go(),fo(351,"div",13),fo(352,"div",3),fo(353,"div",18),fo(354,"div",19),fo(355,"code"),Vo(356),go(),fo(357,"code"),Vo(358),go(),fo(359,"code"),Vo(360),go(),fo(361,"code"),Vo(362),go(),fo(363,"code"),Vo(364),go(),fo(365,"code"),Vo(366),go(),fo(367,"code"),Vo(368),go(),fo(369,"code"),Vo(370),go(),fo(371,"code"),Vo(372),go(),go(),mo(373,"github-picker",20),go(),fo(374,"div",21),fo(375,"p"),Vo(376,"Component code"),go(),fo(377,"pre",16),Vo(378,"@Component({\n...\n})\nexport class AppComponent {\n\n public githubControl = new ColorPickerControl()\n .setValueFrom('#1273DE');\n\n constructor() { \n }\n}"),go(),fo(379,"p"),Vo(380,"Template code"),go(),fo(381,"pre",16),Vo(382,''),go(),go(),go(),fo(383,"div",22),fo(384,"button",23),vo("click",(function(){return t.githubControl.reset()})),Vo(385,"Reset to initial"),go(),go(),go(),go(),mo(386,"br"),fo(387,"div",11),fo(388,"div",12),Vo(389,"Swatches color picker"),go(),fo(390,"div",13),fo(391,"div",3),fo(392,"div",18),fo(393,"p"),Vo(394,"Swatches component only supports binding over color attribute"),go(),fo(395,"div",19),fo(396,"code"),Vo(397),go(),mo(398,"br"),go(),fo(399,"swatches-picker",9),vo("colorChange",(function(e){return t.swatchesColor=e})),go(),go(),fo(400,"div",21),fo(401,"p"),Vo(402,"Component code"),go(),fo(403,"pre",16),Vo(404,"@Component({\n...\n})\nexport class AppComponent {\n\n public swatchesColor = '#F04A71'\n\n constructor() { \n }\n}"),go(),fo(405,"p"),Vo(406,"Template code"),go(),fo(407,"pre",16),Vo(408,''),go(),go(),go(),go(),go(),mo(409,"br"),fo(410,"div",24),fo(411,"div",12),Vo(412,"How to wrapp color picker"),go(),fo(413,"div",13),fo(414,"div",3),fo(415,"div",18),fo(416,"div",19),fo(417,"code"),Vo(418),go(),mo(419,"br"),go(),fo(420,"chrome-wrapper",9),vo("colorChange",(function(e){return t.wrapperColor=e})),go(),go(),fo(421,"div",21),fo(422,"p"),Vo(423,"Component code"),go(),fo(424,"pre",16),Vo(425,"@Component({\n...\nselector: 'chrome-wrapper',\ntemplate: '\n\n
\n'\n})\nexport class ChromeWrapperComponent {\n\n public colorControl = new ColorPickerControl();\n\n public isVisible: boolean = false;\n\n @Input()\n public set color(color: string) {\n this.colorControl.setValueFrom(color);\n }\n\n @Output()\n public colorChange: EventEmitter = new EventEmitter();\n\n @HostBinding('style.background-color')\n public get background(): string {\n return this.colorControl.value.toHexString();\n }\n\n public ngOnInit() {\n this.colorControl.valueChanges.subscribe((value: Color) => this.colorChange.emit(value.toHexString()));\n }\n\n @HostListener('click', ['$event'])\n public showColorPicker(event: MouseEvent) {\n if (this.isVisible === true) {\n return;\n }\n\n this.isVisible = !this.isVisible;\n }\n\n public overlayClick(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isVisible = false;\n }\n}"),go(),fo(426,"p"),Vo(427,"Use case"),go(),fo(428,"pre",16),Vo(429,''),go(),go(),go(),go(),go(),mo(430,"br"),fo(431,"div",11),fo(432,"div",12),Vo(433,"ColorPickerControl methods"),go(),fo(434,"div",13),fo(435,"table",25),fo(436,"thead"),fo(437,"tr"),fo(438,"th"),Vo(439,"Property"),go(),fo(440,"th"),Vo(441,"Type"),go(),fo(442,"th"),Vo(443,"Description"),go(),go(),go(),fo(444,"tbody"),fo(445,"tr"),fo(446,"td"),Vo(447,"setValueFrom"),go(),fo(448,"td"),fo(449,"code"),Vo(450,"Function"),go(),go(),fo(451,"td"),Vo(452,"Set value from Color, Rgba, Hsla, Hsva or ColorString"),go(),go(),fo(453,"tr"),fo(454,"td"),Vo(455,"value"),go(),fo(456,"td"),fo(457,"code"),Vo(458,"Getter.value"),go(),go(),fo(459,"td"),Vo(460,"get value as a Color object"),go(),go(),fo(461,"tr"),fo(462,"td"),Vo(463,"reset"),go(),fo(464,"td"),fo(465,"code"),Vo(466,"Function"),go(),go(),fo(467,"td"),Vo(468,"reset value to initial state"),go(),go(),fo(469,"tr"),fo(470,"td"),Vo(471,"valueChanges"),go(),fo(472,"td"),fo(473,"code"),Vo(474,"Observable"),go(),go(),fo(475,"td"),Vo(476,"Used to observe component value changes"),go(),go(),fo(477,"tr"),fo(478,"td"),Vo(479,"isAlphaChannelEnabled"),go(),fo(480,"td"),fo(481,"code"),Vo(482,"Function"),go(),go(),fo(483,"td"),Vo(484,"return is alpha changel enabled"),go(),go(),fo(485,"tr"),fo(486,"td"),Vo(487,"showAlphaChannel"),go(),fo(488,"td"),fo(489,"code"),Vo(490,"Function"),go(),go(),fo(491,"td"),Vo(492,"show alpha channel"),go(),go(),fo(493,"tr"),fo(494,"td"),Vo(495,"hideAlphaChannel"),go(),fo(496,"td"),fo(497,"code"),Vo(498,"Function"),go(),go(),fo(499,"td"),Vo(500,"hide alpha channel"),go(),go(),fo(501,"tr"),fo(502,"td"),Vo(503,"alphaChannelVisibilityChanges"),go(),fo(504,"td"),fo(505,"code"),Vo(506,"BehaviorSubject"),go(),go(),fo(507,"td"),Vo(508,"Used to observe alpha channel changes"),go(),go(),fo(509,"tr"),fo(510,"td"),Vo(511,"setColorPresets"),go(),fo(512,"td"),fo(513,"code"),Vo(514,"Function"),go(),go(),fo(515,"td"),Vo(516,"define color preset list"),go(),go(),fo(517,"tr"),fo(518,"td"),Vo(519,"presets");go(),fo(520,"td"),fo(521,"code"),Vo(522,"Getter.presets"),go(),go(),fo(523,"td"),Vo(524,"get color presets"),go(),go(),fo(525,"tr"),fo(526,"td"),Vo(527,"hasPresets"),go(),fo(528,"td"),fo(529,"code"),Vo(530,"Function"),go(),go(),fo(531,"td"),Vo(532,"return status of predefined color presets"),go(),go(),fo(533,"tr"),fo(534,"td"),Vo(535,"showPresets"),go(),fo(536,"td"),fo(537,"code"),Vo(538,"Function"),go(),go(),fo(539,"td"),Vo(540,"show predefined color presets"),go(),go(),fo(541,"tr"),fo(542,"td"),Vo(543,"hidePresets"),go(),fo(544,"td"),fo(545,"code"),Vo(546,"Function"),go(),go(),fo(547,"td"),Vo(548,"hide predefined color presets"),go(),go(),fo(549,"tr"),fo(550,"td"),Vo(551,"presetsVisibilityChanges"),go(),fo(552,"td"),fo(553,"code"),Vo(554,"BehaviorSubject"),go(),go(),fo(555,"td"),Vo(556,"Used to observe color preset visibility"),go(),go(),go(),go(),go(),go(),mo(557,"br"),fo(558,"div",11),fo(559,"div",12),Vo(560,"Color methods"),go(),fo(561,"div",13),fo(562,"table",25),fo(563,"thead"),fo(564,"tr"),fo(565,"th"),Vo(566,"Property"),go(),fo(567,"th"),Vo(568,"Type"),go(),fo(569,"th"),Vo(570,"Description"),go(),go(),go(),fo(571,"tbody"),fo(572,"tr"),fo(573,"td"),Vo(574,"Color.from"),go(),fo(575,"td"),fo(576,"code"),Vo(577,"static method"),go(),go(),fo(578,"td"),Vo(579,"create new Color object from Color, Rgba, Hsla, Hsva or ColorString"),go(),go(),fo(580,"tr"),fo(581,"td"),Vo(582,"clone"),go(),fo(583,"td"),fo(584,"code"),Vo(585,"Function"),go(),go(),fo(586,"td"),Vo(587,"create new Color object"),go(),go(),fo(588,"tr"),fo(589,"td"),Vo(590,"setFromString"),go(),fo(591,"td"),fo(592,"code"),Vo(593,"Function"),go(),go(),fo(594,"td"),Vo(595,"change the value by providing the string"),go(),go(),fo(596,"tr"),fo(597,"td"),Vo(598,"setHsva"),go(),fo(599,"td"),fo(600,"code"),Vo(601,"Function"),go(),go(),fo(602,"td"),Vo(603,"change the value by providing hsv values"),go(),go(),fo(604,"tr"),fo(605,"td"),Vo(606,"setRgba"),go(),fo(607,"td"),fo(608,"code"),Vo(609,"Function"),go(),go(),fo(610,"td"),Vo(611,"change the value by providing rgb values"),go(),go(),fo(612,"tr"),fo(613,"td"),Vo(614,"setHsla"),go(),fo(615,"td"),fo(616,"code"),Vo(617,"Function"),go(),go(),fo(618,"td"),Vo(619,"change the value by providing hsl values"),go(),go(),fo(620,"tr"),fo(621,"td"),Vo(622,"toHexString"),go(),fo(623,"td"),fo(624,"code"),Vo(625,"Function"),go(),go(),fo(626,"td"),Vo(627,"convert Color object to hex string"),go(),go(),fo(628,"tr"),fo(629,"td"),Vo(630,"toRgbString"),go(),fo(631,"td"),fo(632,"code"),Vo(633,"Function"),go(),go(),fo(634,"td"),Vo(635,"convert Color object to rgb string"),go(),go(),fo(636,"tr"),fo(637,"td"),Vo(638,"toRgbaString"),go(),fo(639,"td"),fo(640,"code"),Vo(641,"Function"),go(),go(),fo(642,"td"),Vo(643,"convert Color object to rgba string"),go(),go(),fo(644,"tr"),fo(645,"td"),Vo(646,"toHslString"),go(),fo(647,"td"),fo(648,"code"),Vo(649,"Function"),go(),go(),fo(650,"td"),Vo(651,"convert Color object to hsl string"),go(),go(),fo(652,"tr"),fo(653,"td"),Vo(654,"toHslaString"),go(),fo(655,"td"),fo(656,"code"),Vo(657,"Function"),go(),go(),fo(658,"td"),Vo(659,"convert Color object to hsla string"),go(),go(),fo(660,"tr"),fo(661,"td"),Vo(662,"toHsvString"),go(),fo(663,"td"),fo(664,"code"),Vo(665,"Function"),go(),go(),fo(666,"td"),Vo(667,"convert Color object to hsv string"),go(),go(),fo(668,"tr"),fo(669,"td"),Vo(670,"toHsvaString"),go(),fo(671,"td"),fo(672,"code"),Vo(673,"Function"),go(),go(),fo(674,"td"),Vo(675,"convert Color object to hsva string"),go(),go(),fo(676,"tr"),fo(677,"td"),Vo(678,"toCmykString"),go(),fo(679,"td"),fo(680,"code"),Vo(681,"Function"),go(),go(),fo(682,"td"),Vo(683,"convert Color object to cmyk string"),go(),go(),fo(684,"tr"),fo(685,"td"),Vo(686,"getHsva"),go(),fo(687,"td"),fo(688,"code"),Vo(689,"Function"),go(),go(),fo(690,"td"),Vo(691,"return Hsva object"),go(),go(),fo(692,"tr"),fo(693,"td"),Vo(694,"getRgba"),go(),fo(695,"td"),fo(696,"code"),Vo(697,"Function"),go(),go(),fo(698,"td"),Vo(699,"return Rgba object"),go(),go(),fo(700,"tr"),fo(701,"td"),Vo(702,"getHsla"),go(),fo(703,"td"),fo(704,"code"),Vo(705,"Function"),go(),go(),fo(706,"td"),Vo(707,"return Hsla object"),go(),go(),fo(708,"tr"),fo(709,"td"),Vo(710,"getCmyk"),go(),fo(711,"td"),fo(712,"code"),Vo(713,"Function"),go(),go(),fo(714,"td"),Vo(715,"return Cmyk object"),go(),go(),go(),go(),go(),go(),mo(716,"br"),fo(717,"div",11),fo(718,"div",12),Vo(719,"ColorsTable"),go(),fo(720,"div",13),fo(721,"p"),Vo(722,"ColorTable is class with static properties which represent Rgba colors defined by "),fo(723,"a",26),Vo(724,"list of the X11 colors"),go(),go(),go(),go(),mo(725,"br"),go()}2&e&&(cs(1),Ao("background-color",t.color),cs(11),ho("color",t.color),cs(2),ho("color",t.color),cs(210),No("selected hex: ",t.chromeControl.value.toHexString(),""),cs(2),No("selected hexa: ",t.chromeControl.value.toHexString(!0),""),cs(2),No("selected rgb: ",t.chromeControl.value.toRgbString(),""),cs(2),No("selected rgba: ",t.chromeControl.value.toRgbaString(),""),cs(2),No("selected hsl: ",t.chromeControl.value.toHslString(),""),cs(2),No("selected hsla: ",t.chromeControl.value.toHslaString(),""),cs(2),No("selected hsv: ",t.chromeControl.value.toHsvString(),""),cs(2),No("selected hsva: ",t.chromeControl.value.toHsvaString(),""),cs(2),No("selected cmyk: ",t.chromeControl.value.toCmykString(),""),cs(1),ho("control",t.chromeControl),cs(28),No("selected hex: ",t.sketchControl.value.toHexString(),""),cs(2),No("selected hexa: ",t.sketchControl.value.toHexString(!0),""),cs(2),No("selected rgb: ",t.sketchControl.value.toRgbString(),""),cs(2),No("selected rgba: ",t.sketchControl.value.toRgbaString(),""),cs(2),No("selected hsl: ",t.sketchControl.value.toHslString(),""),cs(2),No("selected hsla: ",t.sketchControl.value.toHslaString(),""),cs(2),No("selected hsv: ",t.sketchControl.value.toHsvString(),""),cs(2),No("selected hsva: ",t.sketchControl.value.toHsvaString(),""),cs(2),No("selected cmyk: ",t.sketchControl.value.toCmykString(),""),cs(1),ho("control",t.sketchControl),cs(28),No("selected hex: ",t.compactControl.value.toHexString(),""),cs(2),No("selected hexa: ",t.compactControl.value.toHexString(!0),""),cs(2),No("selected rgb: ",t.compactControl.value.toRgbString(),""),cs(2),No("selected rgba: ",t.compactControl.value.toRgbaString(),""),cs(2),No("selected hsl: ",t.compactControl.value.toHslString(),""),cs(2),No("selected hsla: ",t.compactControl.value.toHslaString(),""),cs(2),No("selected hsv: ",t.compactControl.value.toHsvString(),""),cs(2),No("selected hsva: ",t.compactControl.value.toHsvaString(),""),cs(2),No("selected cmyk: ",t.compactControl.value.toCmykString(),""),cs(1),ho("control",t.compactControl),cs(25),No("selected hex: ",t.githubControl.value.toHexString(),""),cs(2),No("selected hexa: ",t.githubControl.value.toHexString(!0),""),cs(2),No("selected rgb: ",t.githubControl.value.toRgbString(),""),cs(2),No("selected rgba: ",t.githubControl.value.toRgbaString(),""),cs(2),No("selected hsl: ",t.githubControl.value.toHslString(),""),cs(2),No("selected hsla: ",t.githubControl.value.toHslaString(),""),cs(2),No("selected hsv: ",t.githubControl.value.toHsvString(),""),cs(2),No("selected hsva: ",t.githubControl.value.toHsvaString(),""),cs(2),No("selected cmyk: ",t.githubControl.value.toCmykString(),""),cs(1),ho("control",t.githubControl),cs(24),No("selected color: ",t.swatchesColor,""),cs(2),ho("color",t.swatchesColor),cs(19),No("selected color: ",t.wrapperColor,""),cs(2),ho("color",t.wrapperColor))},directives:[qd,Dd,Ld,zd,Zd,Yd],styles:["[_nghost-%COMP%]{display:block}.background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:500px;opacity:.5;z-index:0}.jumbotron[_ngcontent-%COMP%]{position:relative;background:none}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin-top:-30px;display:inline-block}.jumbotron[_ngcontent-%COMP%] sketch-picker[_ngcontent-%COMP%]{display:inline-block}.jumbotron[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{padding-top:20px}@media handheld,screen and (max-width:768px){.jumbotron[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .pickers-row[_ngcontent-%COMP%]{text-align:center!important}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin:0}}.info-row[_ngcontent-%COMP%]{padding:0 0 20px}.info-row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block}.col-lg-4[_ngcontent-%COMP%]{padding:0}.buttons-row[_ngcontent-%COMP%]{padding:20px 0}.btn[_ngcontent-%COMP%]{cursor:pointer;outline:none}"]}),e})(),Jd=(()=>{class e{}return e.\u0275mod=it({type:e}),e.\u0275inj=re({factory:function(t){return new(t||e)},imports:[[Ja,Qd]]}),e})(),$d=(()=>{class e{}return e.\u0275mod=it({type:e,bootstrap:[Xd]}),e.\u0275inj=re({factory:function(t){return new(t||e)},providers:[],imports:[[Ja,Qd,vh,Jd]]}),e})();(function(){if(Gn)throw new Error("Cannot enable prod mode after platform setup.");Qn=!1})(),Ya().bootstrapModule($d).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/docs/main-es5.34cfc18e03394d18b4d1.js b/docs/main-es5.34c003b1ea2585bb6332.js similarity index 80% rename from docs/main-es5.34cfc18e03394d18b4d1.js rename to docs/main-es5.34c003b1ea2585bb6332.js index 4be4df4..be9eabf 100644 --- a/docs/main-es5.34cfc18e03394d18b4d1.js +++ b/docs/main-es5.34c003b1ea2585bb6332.js @@ -1 +1 @@ -function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=_unsupportedIterableToArray(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;)o[h.charAt(f)]=c;a.hasOwnProperty(h=""+(c=c[1]))||(s.push(c),a[h]=i)}s.push(/[\S\s]/),r=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=h[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function r(e){var r=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),i=(e=[],["["]);(o="^"===r[0])&&i.push("^");for(var o=o?1:0,s=r.length;o122||(a<65||l>90||e.push([32|Math.max(65,l),32|Math.min(a,90)]),a<97||l>122||e.push([-33&Math.max(97,l),-33&Math.min(a,122)]))}for(e.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]})),r=[],s=[],o=0;ol[0]&&(l[1]+1>l[0]&&i.push("-"),i.push(n(l[1])));return i.push("]"),i.join("")}function i(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),i=t.length,a=[],l=0,u=0;l=2&&"["===e?t[l]=r(c):"\\"!==e&&(t[l]=c.replace(/[A-Za-z]/g,(function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"})));return t.join("")}for(var o=0,s=!1,a=!1,l=0,u=e.length;l=5&&"lang-"===y.substring(0,5))||m&&"string"==typeof m[1]||(v=!1,y="src"),v||(f[g]=y)}if(_=u,u+=g.length,v){var C=g.indexOf(v=m[1]),b=C+v.length;m[2]&&(C=(b=g.length-m[2].length)-v.length),y=y.substring(5),n(a+_,g.substring(0,C),e,l),n(a+_+C,v,c(y,v),l),n(a+_+b,g.substring(b),e,l)}else l.push(a+_,y)}i.g=l}}function a(e){var t=[],n=[];t.push(e.tripleQuotedStrings?["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,i,"'\""]:e.multiLineStrings?["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,i,"'\"`"]:["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,i,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,i]);var r=e.hashComments;if(r&&(e.cStyleComments?(t.push(r>1?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,i,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,i,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,i])):t.push(["com",/^#[^\n\r]*/,i,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,i]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,i])),r=e.regexLiterals){var o=(r=r>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+r+"])(?:[^/\\x5B\\x5C"+r+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+r+"]|\\x5C"+o+")*(?:\\x5D|$))+/)")])}return(r=e.types)&&n.push(["typ",r]),(r=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+r.replace(/[\s,]+/g,"|")+")\\b"),i]),t.push(["pln",/^\s+/,i," \r\n\t\xa0"]),r="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(r+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,i],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,i],["pln",/^[$_a-z][\w$@]*/i,i],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,i,"0123456789"],["pln",/^\\[\S\s]?/,i],["pun",RegExp(r),i]),s(t,n)}function l(e,t,n){function r(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var l=e.nodeValue,u=l.match(s);u&&(t=l.substring(0,u.index),e.nodeValue=t,(l=l.substring(u.index+u[0].length))&&e.parentNode.insertBefore(a.createTextNode(l),e.nextSibling),i(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)i(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)r(e)}function i(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var r=n?t.cloneNode(!1):t;if(i=t.parentNode){var i=e(i,1),o=t.nextSibling;i.appendChild(r);for(var s=o;s;s=o)o=s.nextSibling,i.appendChild(s)}return r}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;u.push(e)}for(var o=/(?:^|\s)nocode(?:\s|$)/,s=/\r\n?|\n/,a=e.ownerDocument,l=a.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var u=[l],c=0;c=0;){var r=t[n];x.hasOwnProperty(r)?p.console&&console.warn("cannot override language handler %s",r):x[r]=e}}function c(e,t){return e&&x.hasOwnProperty(e)||(e=/^\s*=k&&(h+=2),n>=w&&(v+=2)}}finally{C&&(C.style.display=_)}}catch(T){p.console&&console.log(T&&T.stack||T)}}var f,d,p=window,v=[f=[[d=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],g=[f,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[g,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],m=[d,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],_=[d,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[d,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],b=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,k=/\S/,w=a({keywords:[v,y,f=[f,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",m,_,d=[d,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),x={};u(w,["default-code"]),u(s([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),u(s([["pln",/^\s+/,i," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,i,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),u(s([],[["atv",/^[\S\s]+/]]),["uq.val"]),u(a({keywords:v,hashComments:!0,cStyleComments:!0,types:b}),["c","cc","cpp","cxx","cyc","m"]),u(a({keywords:"null,true,false"}),["json"]),u(a({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:b}),["cs"]),u(a({keywords:g,cStyleComments:!0}),["java"]),u(a({keywords:d,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),u(a({keywords:m,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),u(a({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),u(a({keywords:_,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),u(a({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),u(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),u(a({keywords:C,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),u(s([],[["str",/^[\S\s]+/]]),["regex"]);var S=p.PR={createSimpleLexer:s,registerLangHandler:u,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:p.prettyPrintOne=function(e,t,n){var r=document.createElement("div");return r.innerHTML="
"+e+"
",r=r.firstChild,n&&l(r,n,!0),h({h:t,j:n,c:r,i:1}),r.innerHTML},prettyPrint:p.prettyPrint=function(e,t){for(var n=(r=t||document.body).ownerDocument||document,r=[r.getElementsByTagName("pre"),r.getElementsByTagName("code"),r.getElementsByTagName("xmp")],s=[],a=0;a4&&void 0!==arguments[4]?arguments[4]:new P(e,n,r);if(!i.closed)return t instanceof C?t.subscribe(i):M(t)(i)}var N=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(v);function F(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new R(e,t))}}var R=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new D(e,this.project,this.thisArg))}}]),e}(),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(v);function j(e,t){return new C((function(n){var r=new f,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}var H=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new q(e,this.project,this.concurrent))}}]),e}(),q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(N);function B(e){return e}function L(e,t){return t?j(e,t):new C(O(e))}function z(){return function(e){return e.lift(new Z(e))}}var K,Z=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new Q(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),Q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(v),W={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(K=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new f).add(this.source.subscribe(new G(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e}},{key:"refCount",value:function(){return z()(this)}}]),n}(C).prototype)._subscribe},_isComplete:{value:K._isComplete,writable:!0},getSubject:{value:K.getSubject},connect:{value:K.connect},refCount:{value:K.refCount}},G=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(S);function U(){return new A}function Y(e){return{toString:e}.toString()}function X(e,t,n){return Y((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:ne.Default;if(void 0===je)throw new Error("inject() must be called from an injection context");return null===je?ze(e,void 0,t):je.get(e,t&ne.Optional?null:void 0,t)}function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default;return(Ce||Be)(_e(e),t)}function ze(e,t,n){var r=ae(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ne.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(ve(e),"]"))}function Ke(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:Fe;if(t===Fe){var n=new Error("NullInjectorError: No provider for ".concat(ve(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Qe=function e(){_classCallCheck(this,e)};function We(e,t){e.forEach((function(e){return Array.isArray(e)?We(e,t):t(e)}))}function Ge(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ue(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ye(e,t){var n=Xe(e,t);if(n>=0)return e[1|n]}function Xe(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),s=e[o<<1];if(t===s)return o<<1;s>t?i=o:r=o+1}return~(i<<1)}(e,t)}var Je=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),$e=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),et={},tt=[],nt=0;function rt(e){return Y((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.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:e.changeDetection===Je.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||tt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||$e.Emulated,id:"c",styles:e.styles||tt,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,s=e.features,a=e.pipes;return i.id+=nt++,i.inputs=lt(e.inputs,r),i.outputs=lt(e.outputs),s&&s.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(it)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(ot)}:null,i}))}function it(e){return ht(e)||function(e){return e[Ee]||null}(e)}function ot(e){return function(e){return e[Te]||null}(e)}var st={};function at(e){var t={type:e.type,bootstrap:e.bootstrap||tt,declarations:e.declarations||tt,imports:e.imports||tt,exports:e.exports||tt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Y((function(){st[e.id]=e.type})),t}function lt(e,t){if(null==e)return et;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ut=rt;function ct(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ht(e){return e[Ae]||null}function ft(e,t){return e.hasOwnProperty(Ie)?e[Ie]:null}function dt(e,t){var n=e[Pe]||null;if(!n&&!0===t)throw new Error("Type ".concat(ve(e)," does not have '\u0275mod' property."));return n}function pt(e){return Array.isArray(e)&&"object"==typeof e[1]}function vt(e){return Array.isArray(e)&&!0===e[1]}function gt(e){return 0!=(8&e.flags)}function yt(e){return 2==(2&e.flags)}function mt(e){return 1==(1&e.flags)}function _t(e){return null!==e.template}function Ct(e){return 0!=(512&e[2])}var bt=void 0;function kt(e){return!!e.listen}var wt={createRenderer:function(e,t){return void 0!==bt?bt:"undefined"!=typeof document?document:void 0}};function xt(e){for(;Array.isArray(e);)e=e[0];return e}function St(e,t){return xt(t[e+19])}function At(e,t){return xt(t[e.index])}function Et(e,t){return e.data[t+19]}function Tt(e,t){return e[t+19]}function Pt(e,t){var n=t[e];return pt(n)?n:n[0]}function Ot(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function It(e){return 4==(4&e[2])}function Mt(e){return 128==(128&e[2])}function Vt(e,t){return null===e||null==t?null:e[t]}function Nt(e){e[18]=0}var Ft={lFrame:$t(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Rt(){return Ft.bindingsEnabled}function Dt(){return Ft.lFrame.lView}function jt(){return Ft.lFrame.tView}function Ht(e){Ft.lFrame.contextLView=e}function qt(){return Ft.lFrame.previousOrParentTNode}function Bt(e,t){Ft.lFrame.previousOrParentTNode=e,Ft.lFrame.isParent=t}function Lt(){return Ft.lFrame.isParent}function zt(){return Ft.checkNoChangesMode}function Kt(e){Ft.checkNoChangesMode=e}function Zt(){var e=Ft.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Qt(){return Ft.lFrame.bindingIndex++}function Wt(e,t){var n=Ft.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function Gt(){return Ft.lFrame.currentQueryIndex}function Ut(e){Ft.lFrame.currentQueryIndex=e}function Yt(e,t){var n=Jt();Ft.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Xt(e,t){var n=Jt(),r=e[1];Ft.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function Jt(){var e=Ft.lFrame,t=null===e?null:e.child;return null===t?$t(e):t}function $t(e){var t={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:e,child:null};return null!==e&&(e.child=t),t}function en(){var e=Ft.lFrame;return Ft.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var tn=en;function nn(){var e=en();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function rn(){return Ft.lFrame.selectedIndex}function on(e){Ft.lFrame.selectedIndex=e}function sn(){var e=Ft.lFrame;return Et(e.tView,e.selectedIndex)}function an(){Ft.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ln(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(s)):o.call(s)}var pn=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function vn(e,t,n){for(var r=kt(e),i=0;it){s=o-1;break}}}for(;o>16}function kn(e,t){for(var n=bn(e),r=t;n>0;)r=r[15],n--;return r}function wn(e){return"string"==typeof e?e:null==e?"":""+e}function xn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():wn(e)}var Sn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se);function An(e){return e instanceof Function?e():e}var En=!0;function Tn(e){var t=En;return En=e,t}var Pn=0;function On(e,t){var n=Mn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,In(r.data,e),In(t,null),In(r.blueprint,null));var i=Vn(e,t),o=e.injectorIndex;if(_n(i))for(var s=Cn(i),a=kn(i,t),l=a[1].data,u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u];return t[o+8]=i,o}function In(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Vn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Nn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[Me]:n.charCodeAt(0)||0;null==r&&(r=n[Me]=Pn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:ne.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[Me];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){Yt(t,e);try{var s=o();if(null!=s||r&ne.Optional)return s;throw new Error("No provider for ".concat(xn(n),"!"))}finally{tn()}}else if("number"==typeof o){if(-1===o)return new Ln(e,t);var a=null,l=Mn(e,t),u=-1,c=r&ne.Host?t[16][6]:null;for((-1===l||r&ne.SkipSelf)&&(u=-1===l?Vn(e,t):t[l+8],Bn(r,!1)?(a=t[1],l=Cn(u),t=kn(u,t)):l=-1);-1!==l;){u=t[l+8];var h=t[1];if(qn(o,l,h.data)){var f=Dn(l,t,n,a,r,c);if(f!==Rn)return f}Bn(r,t[1].data[l+8]===c)&&qn(o,l,t)?(a=h,l=Cn(u),t=kn(u,t)):l=-1}}}if(r&ne.Optional&&void 0===i&&(i=null),0==(r&(ne.Self|ne.Host))){var d=t[9],p=qe(void 0);try{return d?d.get(n,i,r&ne.Optional):ze(n,i,r&ne.Optional)}finally{qe(p)}}if(r&ne.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(xn(n),"]"))}var Rn={};function Dn(e,t,n,r,i,o){var s=t[1],a=s.data[e+8],l=jn(a,s,n,null==r?yt(a)&&En:r!=s&&3===a.type,i&ne.Host&&o===a);return null!==l?Hn(t,s,l,a):Rn}function jn(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,l=e.directiveStart,u=o>>16,c=i?a+u:e.directiveEnd,h=r?a:a+u;h=l&&f.type===n)return h}if(i){var d=s[l];if(d&&_t(d)&&d.type===n)return l}return null}function Hn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof pn){var s=i;if(s.resolving)throw new Error("Circular dep for ".concat(xn(o[n])));var a,l=Tn(s.canSeeViewProviders);s.resolving=!0,s.injectImpl&&(a=qe(s.injectImpl)),Yt(e,r);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{s.injectImpl&&qe(a),Tn(l),s.resolving=!1,tn()}}return i}function qn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;ro?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==$n(f,u,0)||2&r&&u!==h){if(rr(r))return!1;s=!0}}}}else{if(!s&&!rr(r)&&!rr(l))return!1;if(s&&rr(l))continue;s=!1,r=l|1&r}}return rr(r)||s}function rr(e){return 0==(1&e)}function ir(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||rr(s)||(t+=sr(o,i),i=""),r=s,o=o||!rr(r);n++}return""!==i&&(t+=sr(o,i)),t}var lr={};function ur(e){var t=e[3];return vt(t)?t[3]:t}function cr(e){hr(jt(),Dt(),rn()+e,zt())}function hr(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&un(t,i,n)}else{var o=e.preOrderHooks;null!==o&&cn(t,o,0,n)}on(n)}function fr(e,t){return e<<17|t<<2}function dr(e){return e>>17&32767}function pr(e){return 2|e}function vr(e){return(131068&e)>>2}function gr(e,t){return-131069&e|t<<2}function yr(e){return 1|e}function mr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r>1==-1){for(var r=9;r19&&hr(e,t,0,zt()),n(r,i)}finally{on(o)}}function Ar(e,t,n){Rt()&&(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||On(n,t),Yn(r,t);for(var s=n.initialInputs,a=i;a2&&void 0!==arguments[2]?arguments[2]:At,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&(e[n-1][4]=r[4]);var o=Ue(e,9+t);li(r[1],r,!1,null);var s=o[5];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function hi(e,t){if(!(256&t[2])){var n=t[11];kt(n)&&n.destroyNode&&bi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return di(e[1],e);for(;t;){var n=null;if(pt(t))n=t[13];else{var r=t[9];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)pt(t)&&di(t[1],t),t=fi(t,e);null===t&&(t=e),pt(t)&&di(t[1],t),n=t&&t[4]}t=n}}(t)}}function fi(e,t){var n;return pt(e)&&(n=e[6])&&2===n.type?oi(n,e):e[3]===t?null:e[3]}function di(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[l]():r[-l].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&kt(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&vt(t[3])){r!==t[3]&&ui(r,t);var i=t[5];null!==i&&i.detachView(e)}}}function pi(e,t,n,r){kt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function vi(e,t,n){kt(e)?e.appendChild(t,n):t.appendChild(n)}function gi(e,t,n,r){null!==r?pi(e,t,n,r):vi(e,t,n)}function yi(e,t){return kt(e)?e.parentNode(t):t.parentNode}function mi(e,t,n,r){var i=function(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?si(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return At(t,n).parentNode;if(2&r.flags){var o=e.data,s=o[o[r.index].directiveStart].encapsulation;if(s!==$e.ShadowDom&&s!==$e.Native)return null}return At(r,n)}(e,r,t);if(null!=i){var o=t[11],s=function(e,t){if(2===e.type){var n=oi(e,t);return null===n?null:_i(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?At(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}hi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,ti(n=this._lView).push(r),t.firstCreatePass&&ni(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){Yr(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Xr(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Kt(!0);try{Xr(e,t,n)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,bi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&i.push(xt(s)),vt(s))for(var a=9;a0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var s=o.get(Qe,null);s&&(i=s)}var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),vt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],s=new Ei(o,o[6],o[3]);s.detach(s.indexOf(e))}}var a=this._adjustIndex(t);return function(e,t,n,r){var i=9+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Oi(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Ln(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Vn(this._hostTNode,this._hostView),t=kn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=bn(e),s=t,a=t[6];o>1;)a=(s=s[15])[6],o--;return a}(e,this._hostView,this._hostTNode);return _n(e)&&null!=n?new Ln(n,t):new Ln(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),r}(e));var o=r[n.index];if(vt(o))(function(e,t){e[2]=-2})(i=o);else{var s;if(4===n.type)s=xt(o);else if(s=r[11].createComment(""),Ct(r)){var a=r[11],l=At(n,r);pi(a,yi(a,l),s,function(e,t){return kt(e)?e.nextSibling(t):t.nextSibling}(a,l))}else mi(r[1],r,s,n);r[n.index]=i=Zr(o,r,s,n),Ur(r,i)}return new Ei(i,n,r)}function Vi(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&yt(e)){var r=Pt(e.index,t);return new Ti(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new Ti(t[16],t):null}(qt(),Dt(),e)}var Ni=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Fi()},e}(),Fi=Vi,Ri=new Ve("Set Injector scope."),Di={},ji={},Hi=[],qi=void 0;function Bi(){return void 0===qi&&(qi=new Ze),qi}function Li(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new zi(e,n,t||Bi(),r)}var zi=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&We(n,(function(e){return i.processProvider(e,t,n)})),We([t],(function(e){return i.processInjectorType(e,[],s)})),this.records.set(Ne,Zi(void 0,this));var a=this.records.get(Ri);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof t?null:ve(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;this.assertNotDestroyed();var r,i=He(this);try{if(!(n&ne.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Ve)&&ae(e);o=s&&this.injectableDefInScope(s)?Zi(Ki(e),Di):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&ne.Self?Bi():this.parent).get(e,t=n&ne.Optional&&t===Fe?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(ve(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=ve(t);if(Array.isArray(t))i=t.map(ve).join(" -> ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ve(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Re,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{He(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(ve(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=_e(e)))return!1;var i=ue(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=ue(o)),null==i)return!1;if(null!=i.imports&&!a){var l;n.push(s);try{We(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))}))}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,i=t.providers;We(i,(function(e){return r.processProvider(e,n,i||Hi)}))},c=0;c0){var n=function(e,t){for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Qi(e){return null!==e&&"object"==typeof e&&De in e}function Wi(e){return"function"==typeof e}var Gi=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Li(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Ui=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Gi(e,t,""):Gi(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Fe,e.NULL=new Ze,e.\u0275prov=oe({token:e,providedIn:"any",factory:function(){return Le(Ne)}}),e.__NG_ELEMENT_ID__=-1,e}(),Yi=new Map,Xi=new Set;function Ji(e){return"string"==typeof e?e:e.text()}function $i(e,t){for(var n=e.styles,r=e.classes,i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:ne.Default,n=Dt();return null==n?Le(e,t):Fn(qt(),n,_e(e),t)}function fo(e,t,n){var r=Dt();return ao(r,Qt(),t)&&Mr(jt(),sn(),r,e,t,r[11],n,!1),fo}function po(e,t,n,r,i){var o=i?"class":"style";ii(e,n,t.inputs[o],o,r)}function vo(e,t,n,r){var i=Dt(),o=jt(),s=19+e,a=i[11],l=i[s]=_r(t,a,Ft.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,r,i,o,s){var a=t.consts,l=Vt(a,o),u=br(t,n[6],e,3,i,l);return Vr(t,n,u,Vt(a,s)),null!==u.mergedAttrs&&$i(u,u.mergedAttrs),null!==t.queries&&t.queries.elementStart(t,u),u}(e,o,i,0,t,n,r):o.data[s];Bt(u,!0);var c=u.mergedAttrs;null!==c&&vn(a,l,c);var h=u.classes;null!==h&&xi(a,l,h);var f=u.styles;null!==f&&wi(a,l,f),mi(o,i,l,u),0===Ft.lFrame.elementDepthCount&&Yn(l,i),Ft.lFrame.elementDepthCount++,mt(u)&&(Ar(o,i,u),function(e,t,n){if(gt(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Dt(),o=jt(),s=qt();return function(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,l=mt(r),u=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=ti(t),h=!0;if(3===r.type){var f=At(r,t),d=a?a(f):et,p=d.target||f,v=c.length,g=a?function(e){return a(xt(e[r.index])).target}:r.index;if(kt(n)){var y=null;if(!a&&l&&(y=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=ko(r,t,o,!1);var m=n.listen(d.name||p,i,o);c.push(o,m),u&&u.push(i,g,v,v+1)}}else o=ko(r,t,o,!0),p.addEventListener(i,o,s),c.push(o),u&&u.push(i,g,v,s)}var _,C=r.outputs;if(h&&null!==C&&(_=C[i])){var b=_.length;if(b)for(var k=0;k0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ft.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ft.lFrame.contextLView))[8]}(e)}var xo=[];function So(e,t,n,r,i){for(var o=e[n+1],s=null===t,a=r?dr(o):vr(o),l=!1;0!==a&&(!1===l||s);){var u=e[a+1];Ao(e[a],t)&&(l=!0,e[a+1]=r?yr(u):pr(u)),a=r?dr(u):vr(u)}l&&(e[n+1]=r?pr(o):yr(o))}function Ao(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xe(e,t)>=0}function Eo(e,t,n){return Po(e,t,n,!1),Eo}function To(e,t){return Po(e,t,null,!0),To}function Po(e,t,n,r){var i,o,s,a=Dt(),l=jt(),u=(i=Ft.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);(l.firstUpdatePass&&function(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[rn()+19],s=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Ft.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Io(n=Oo(null,e,t,n,r),t.attrs,r),o=null);else{var s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Oo(i,e,t,n,r),null===o){var a=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==vr(r))return e[dr(r)]}(e,t,r);void 0!==a&&Array.isArray(a)&&function(e,t,n,r){e[dr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,a=Io(a=Oo(null,e,t,a[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=n;if(i)if(0!==l){var f=dr(e[a+1]);e[r+1]=fr(f,a),0!==f&&(e[f+1]=gr(e[f+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=fr(a,0),0!==a&&(e[a+1]=gr(e[a+1],r)),a=r;else e[r+1]=fr(l,0),0===a?a=r:e[l+1]=gr(e[l+1],r),l=r;c&&(e[r+1]=pr(e[r+1])),So(e,u,r,!0),So(e,u,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Xe(o,t)>=0&&(n[r+1]=yr(n[r+1]))}(t,u,e,r,o),s=fr(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}(l,e,u,r),t!==lr&&ao(a,u,t))&&(null==n&&(s=function(){var e=Ft.lFrame;return null===e?null:e.currentSanitizer}())&&(n=s),function(e,t,n,r,i,o,s,a){if(3===t.type){var l=e.data,u=l[a+1];Vo(1==(1&u)?Mo(l,t,n,i,vr(u),s):void 0)||(Vo(o)||2==(2&u)&&(o=Mo(l,null,n,i,a,s)),function(e,t,n,r,i){var o=kt(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{var s=-1==r.indexOf("-")?void 0:2;null==i?o?e.removeStyle(n,r,s):n.style.removeProperty(r):o?e.setStyle(n,r,i,s):n.style.setProperty(r,i)}}(r,s,St(rn(),n),i,o))}}(l,l.data[rn()+19],a,a[11],e,a[u+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=ve(function(e){return e instanceof function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),e}()?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,u))}function Oo(e,t,n,r,i){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a=0?r[1|s]=o:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(r,s=~s,i,o))}return void 0===e?null:e}function Mo(e,t,n,r,i,o){for(var s=null===t,a=void 0;i>0;){var l=e[i],u=Array.isArray(l),c=u?l[1]:l,h=null===c,f=n[i+1];f===lr&&(f=h?xo:void 0);var d=h?Ye(f,r):c===r?f:void 0;if(u&&!Vo(d)&&(d=Ye(l,r)),Vo(d)&&(a=d,s))return a;var p=e[i+1];i=s?dr(p):vr(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=Ye(v,r))}return a}function Vo(e){return void 0!==e}function No(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Dt(),r=jt(),i=e+19,o=r.firstCreatePass?br(r,n[6],e,3,null,null):r.data[i],s=n[i]=function(e,t){return kt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);mi(r,n,s,o),Bt(o,!1)}function Fo(e,t,n){var r=Dt(),i=function(e,t,n,r){return ao(e,Qt(),n)?t+wn(n)+r:lr}(r,e,t,n);return i!==lr&&function(e,t,n){var r=St(t,e),i=e[11];kt(i)?i.setValue(r,n):r.textContent=n}(r,rn(),i),Fo}function Ro(e,t,n){var r=Dt();return ao(r,Qt(),t)&&Mr(jt(),sn(),r,e,t,r[11],n,!0),Ro}function Do(e,t){var n=Ot(e)[1],r=n.data.length-1;ln(n,{directiveStart:r,directiveEnd:r+1})}function jo(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(_t(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=Ho(e.inputs),o.declaredInputs=Ho(e.declaredInputs),o.outputs=Ho(e.outputs);var s=i.hostBindings;s&&Lo(e,s);var a=i.viewQuery,l=i.contentQueries;if(a&&qo(e,a),l&&Bo(e,l),ie(e.inputs,i.inputs),ie(e.declaredInputs,i.declaredInputs),ie(e.outputs,i.outputs),_t(i)&&i.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}o.afterContentChecked=o.afterContentChecked||i.afterContentChecked,o.afterContentInit=e.afterContentInit||i.afterContentInit,o.afterViewChecked=e.afterViewChecked||i.afterViewChecked,o.afterViewInit=e.afterViewInit||i.afterViewInit,o.doCheck=e.doCheck||i.doCheck,o.onDestroy=e.onDestroy||i.onDestroy,o.onInit=e.onInit||i.onInit}var c=i.features;if(c)for(var h=0;h=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=yn(i.hostAttrs,n=yn(n,i.hostAttrs))}}(r)}function Ho(e){return e===et?{}:e===tt?[]:e}function qo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Bo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Lo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var zo=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ko(e){e.type.prototype.ngOnChanges&&(e.setInput=Zo,e.onChanges=function(){var e=Qo(this),t=e&&e.current;if(t){var n=e.previous;if(n===et)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function Zo(e,t,n,r){var i=Qo(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:et,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new zo(l&&l.currentValue,t,s===et),e[r]=t}function Qo(e){return e.__ngSimpleChanges__||null}Ko.ngInherit=!0;var Wo=function e(){_classCallCheck(this,e)},Go=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(ve(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Uo=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Go,e}(),Yo=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return Xo(e)},e}(),Xo=function(e){return Oi(e,qt(),Dt())},Jo=function e(){_classCallCheck(this,e)},$o=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),es=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ts()},e}(),ts=function(){var e=Dt(),t=Pt(qt().index,e);return function(e){var t=e[11];if(kt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(pt(t)?t:e)},ns=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=oe({token:e,providedIn:"root",factory:function(){return null}}),e}(),rs=new function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("9.0.7"),is=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return io(e)}},{key:"create",value:function(e){return new ss(e)}}]),e}(),os=function(e,t){return t},ss=function(){function e(t){_classCallCheck(this,e),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||os}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0&&xi(u,h,C.join(" "))}o=Et(g[1],0),t&&(o.projection=t.map((function(e){return Array.from(e)}))),i=function(e,t,n,r,i){var o=n[1],s=function(e,t,n){var r=qt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Dr(e,r,1),Br(e,t,n));var i=Hn(t,e,t.length-1,r);Yn(i,t);var o=At(r,t);return o&&Yn(o,t),i}(o,n,t);r.components.push(s),e[8]=s,i&&i.forEach((function(e){return e(s,t)})),t.contentQueries&&t.contentQueries(1,s,n.length-1);var a=qt();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){on(a.index-19);var l=n[1];Nr(l,t),Fr(l,n,t.hostVars),Rr(t,s)}return s}(y,this.componentDef,g,p,[Do]),kr(v,g,null)}finally{nn()}var b=new Ts(this.componentType,i,Oi(Yo,o,g),g,o);return n&&!d||(b.hostView._tViewNode.child=o),b}},{key:"inputs",get:function(){return Ss(this.componentDef.inputs)}},{key:"outputs",get:function(){return Ss(this.componentDef.outputs)}}]),n}(Wo),Ts=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,s){var a,l,u,c;return _classCallCheck(this,n),(a=t.call(this)).location=i,a._rootLView=o,a._tNode=s,a.destroyCbs=[],a.instance=r,a.hostView=a.changeDetectorRef=new Pi(o),a.hostView._tViewNode=(l=o[1],u=o,null==(c=l.node)&&(l.node=c=Or(0,null,2,-1,null,null)),u[6]=c),a.componentType=e,a}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new Ln(this._tNode,this._rootLView)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),Ps=void 0,Os=["en",[["a","p"],["AM","PM"],Ps],[["AM","PM"],Ps,Ps],[["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"]],Ps,[["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"]],Ps,[["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}",Ps,"{1} 'at' {0}",Ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Is={};function Ms(e){return e in Is||(Is[e]=Se.ng&&Se.ng.common&&Se.ng.common.locales&&Se.ng.common.locales[e]),Is[e]}var Vs=function(){var e={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,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();function Ns(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined")+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var Fs=new Map,Rs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new xs(_assertThisInitialized(i));var o=dt(e),s=e[Oe]||null;return s&&Ns(s),i._bootstrapComponents=An(o.bootstrap),i._r3Injector=Li(e,r,[{provide:Qe,useValue:_assertThisInitialized(i)},{provide:Uo,useValue:i.componentFactoryResolver}],ve(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ui.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;return e===Ui||e===Qe||e===Ne?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Qe),Ds=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==dt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(ve(t)," vs ").concat(ve(t.name)))})(n,Fs.get(n),t),Fs.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new Rs(this.moduleType,e)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function js(e,t,n,r,i){return Bs(Dt(),Zt(),e,t,n,r,i)}function Hs(e,t){var n=e[t];return n===lr?void 0:n}function qs(e,t,n,r,i,o){var s=t+n;return ao(e,s,i)?so(e,s+1,o?r.call(o,i):r(i)):Hs(e,s+1)}function Bs(e,t,n,r,i,o,s){var a=t+n;return function(e,t,n,r){var i=ao(e,t,n);return ao(e,t+1,r)||i}(e,a,i,o)?so(e,a+2,s?r.call(s,i,o):r(i,o)):Hs(e,a+2)}function Ls(e,t){var n,r=jt(),i=e+19;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=ft(n.type)),s=qe(ho),a=o();return qe(s),function(e,t,n,r){var i=n+19;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,Dt(),e,a),a}function zs(e,t,n){var r=Dt(),i=Tt(r,e);return Qs(r,Zs(r,e)?qs(r,Zt(),t,i.transform,n,i):i.transform(n))}function Ks(e,t,n,r){var i=Dt(),o=Tt(i,e);return Qs(i,Zs(i,e)?Bs(i,Zt(),t,o.transform,n,r,o):o.transform(n,r))}function Zs(e,t){return e[1].data[t+19].pure}function Qs(e,t){return ro.isWrapped(t)&&(t=ro.unwrap(t),e[Ft.lFrame.bindingIndex]=lr),t}var Ws=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,o,s);return e instanceof f&&e.add(a),a}}]),n}(A);function Gs(){return this._results[to()]()}var Us=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new Ws,this.length=0;var t=to(),n=e.prototype;n[t]||(n[t]=Gs)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},$s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)i.push(a[l/2]);else{for(var c=s[l+1],h=n[-u],f=9;f0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Le(Ia))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),Ba=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,La.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return La.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),La=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),za=function(e,t,n){var r=new Ds(n);if(0===Yi.size)return Promise.resolve(r);var i,o,s=(i=e.get(Ta,[]).concat(t).map((function(e){return e.providers})),o=[],i.forEach((function(e){return e&&o.push.apply(o,_toConsumableArray(e))})),o);if(0===s.length)return Promise.resolve(r);var a=function(){var e=Se.ng;if(!e||!e.\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 e.\u0275compilerFacade}(),l=Ui.create({providers:s}).get(a.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(l.get(e))}(e);n.set(e,t=r.then(Ji))}return t}return Yi.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var o=e.styleUrls,s=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach((function(t,n){s.push(""),i.push(r(t).then((function(r){s[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)})))}));var l=Promise.all(i).then((function(){return function(e){Xi.delete(e)}(n)}));t.push(l)})),Yi=new Map,Promise.all(t).then((function(){}))}().then((function(){return r}))},Ka=new Ve("AllowMultipleToken");function Za(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new Ve(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Qa();if(!o||o.injector.get(Ka,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0},{provide:Ri,useValue:"platform"});!function(e){if(ja&&!ja.destroyed&&!ja.injector.get(Ka,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ja=e.get(Wa);var t=e.get(pa,null);t&&t.forEach((function(e){return e()}))}(Ui.create({providers:s,name:r}))}return function(e){var t=Qa();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Qa(){return ja&&!ja.destroyed?ja:null}var Wa=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Ha:("zone.js"===n?void 0:n)||new Ia({enableLongStackTrace:Un(),shouldCoalesceEventChangeDetection:r})),s=[{provide:Ia,useValue:o}];return o.run((function(){var t=Ui.create({providers:s,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Qn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Xa(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((s=n.injector.get(ca)).runInitializers(),s.donePromise.then((function(){return Ns(n.injector.get(ma,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return _o(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var s}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ga({},n);return za(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Ya);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(ve(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Le(Ui))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}();function Ga(e,t){return Array.isArray(t)?t.reduce(Ga,e):Object.assign(Object.assign({},e),t)}var Ua,Ya=((Ua=function(){function e(t,n,r,i,o,s){var a=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Un(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var l=new C((function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){e.next(a._stable),e.complete()}))})),u=new C((function(e){var t;a._zone.runOutsideAngular((function(){t=a._zone.onStable.subscribe((function(){Ia.assertNotInAngularZone(),Oa((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Ia.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof C?t[0]:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof n?function(i){return i.pipe(e((function(e,r){return(i=t(e,r),i instanceof C?i:new C(M(i))).pipe(F((function(t,i){return n(e,t,r,i)})));var i}),r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new H(t,r))})}(B,e)}(r)(L(t,i))}(l,u.pipe((function(e){return z()((t=U,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,W);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Wo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(Qe),o=n.create(Ui.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var s=o.injector.get(qa,null);return s&&o.injector.get(Ba).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Un()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(s){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(s)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Xa(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ga,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Xa(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Ua)(Le(Ia),Le(ya),Le(Ui),Le(Qn),Le(Uo),Le(ca))},Ua.\u0275prov=oe({token:Ua,factory:Ua.\u0275fac}),Ua);function Xa(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ja=Za(null,"core",[{provide:va,useValue:"unknown"},{provide:Wa,deps:[Ui]},{provide:Ba,deps:[]},{provide:ya,deps:[]}]),$a=[{provide:Ya,useClass:Ya,deps:[Ia,ya,Ui,Qn,Uo,ca]},{provide:As,deps:[Ia],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ca,useClass:ca,deps:[[new $,ua]]},{provide:Ea,useClass:Ea,deps:[]},fa,{provide:ps,useFactory:function(){return ys},deps:[]},{provide:vs,useFactory:function(){return ms},deps:[]},{provide:ma,useFactory:function(e){return Ns(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new J(ma),new $,new te]]},{provide:_a,useValue:"USD"}],el=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=at({type:e}),e.\u0275inj=se({factory:function(t){return new(t||e)(Le(Ya))},providers:$a}),e}(),tl=null;function nl(){return tl}var rl,il,ol,sl,al=new Ve("DocumentToken"),ll=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),ul=function e(){_classCallCheck(this,e)},cl=((il=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ms(t);if(n)return n;var r=t.split("-")[0];if(n=Ms(r))return n;if("en"===r)return Os;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Vs.PluralCase]}(t||this.locale)(e)){case ll.Zero:return"zero";case ll.One:return"one";case ll.Two:return"two";case ll.Few:return"few";case ll.Many:return"many";default:return"other"}}}]),n}(ul)).\u0275fac=function(e){return new(e||il)(Le(ma))},il.\u0275prov=oe({token:il,factory:il.\u0275fac}),il),hl=((rl=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(ve(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(io(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||rl)(ho(ps),ho(vs),ho(Yo),ho(es))},rl.\u0275dir=ut({type:rl,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),rl),fl=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),dl=((ol=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new fl(null,t._ngForOf,-1,-1),null===i?void 0:i),s=new pl(e,o);n.push(s)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var a=t._viewContainer.get(r);t._viewContainer.move(a,i);var l=new pl(e,a);n.push(l)}}));for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:ne.Default,t=Vi(!0);if(null!=t||e&ne.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},kl.\u0275pipe=ct({name:"async",type:kl,pure:!1}),kl),Fl=((bl=function e(){_classCallCheck(this,e)}).\u0275mod=at({type:bl}),bl.\u0275inj=se({factory:function(e){return new(e||bl)},providers:[{provide:ul,useClass:cl}]}),bl),Rl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Dl||(Dl=document.querySelector("base"))?Dl.getAttribute("href"):null;return null==n?null:(t=n,wl||(wl=document.createElement("a")),wl.setAttribute("href",t),"/"===wl.pathname.charAt(0)?wl.pathname:"/"+wl.pathname)}},{key:"resetBaseElement",value:function(){Dl=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return function(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),s=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),a=s[0],l=s[1];if(a.trim()===t)return decodeURIComponent(l)}}catch(u){r.e(u)}finally{r.f()}return null}(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,tl||(tl=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),Dl=null,jl=new Ve("TRANSITION_ID"),Hl=[{provide:ua,useFactory:function(e,t,n){return function(){n.get(ca).donePromise.then((function(){var n=nl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[jl,al,Ui],multi:!0}],ql=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){Se.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Se.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Se.getAllAngularRootElements=function(){return e.getAllRootElements()},Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push((function(e){var t=Se.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?nl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,La=t}}]),e}(),Bl=new Ve("EventManagerPlugins"),Ll=((xl=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&au.hasOwnProperty(t)&&(t=au[t]))}return su[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ou.forEach((function(r){r!=n&&(0,lu[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(zl)).\u0275fac=function(e){return new(e||Jl)(Le(al))},Jl.\u0275prov=oe({token:Jl,factory:Jl.\u0275fac}),Jl),cu=Za(Ja,"browser",[{provide:va,useValue:"browser"},{provide:pa,useValue:function(){Rl.makeCurrent(),ql.init()},multi:!0},{provide:al,useFactory:function(){return function(e){bt=e}(document),document},deps:[]}]),hu=[[],{provide:Ri,useValue:"root"},{provide:Qn,useFactory:function(){return new Qn},deps:[]},{provide:Bl,useClass:iu,multi:!0,deps:[al,Ia,va]},{provide:Bl,useClass:uu,multi:!0,deps:[al]},[],{provide:eu,useClass:eu,deps:[Ll,Zl,ha]},{provide:Jo,useExisting:eu},{provide:Kl,useExisting:Zl},{provide:Zl,useClass:Zl,deps:[al]},{provide:qa,useClass:qa,deps:[Ia]},{provide:Ll,useClass:Ll,deps:[Bl,Ia]},[]],fu=(($l=function(){function e(t){if(_classCallCheck(this,e),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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:ha,useValue:t.appId},{provide:jl,useExisting:ha},Hl]}}}]),e}()).\u0275mod=at({type:$l}),$l.\u0275inj=se({factory:function(e){return new(e||$l)(Le($l,12))},providers:hu,imports:[Fl,el]}),$l);"undefined"!=typeof window&&window;var du=function e(){_classCallCheck(this,e)};function pu(e,t){return{type:7,name:e,definitions:t,options:{}}}function vu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function gu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function yu(e){return{type:6,styles:e,offset:null}}function mu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function _u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Cu(e,t){return{type:12,timings:e,animation:t}}function bu(e){Promise.resolve(null).then(e)}var ku=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;bu((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),wu=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,o=0,s=this.players.length;0==s?bu((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++r==s&&n._onFinish()})),e.onDestroy((function(){++i==s&&n._onDestroy()})),e.onStart((function(){++o==s&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function xu(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Su(e){switch(e.length){case 0:return new ku;case 1:return e[0];default:return new wu(e)}}function Au(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],a=[],l=-1,u=null;if(r.forEach((function(e){var n=e.offset,r=n==l,c=r&&u||{};Object.keys(e).forEach((function(n){var r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,s),a){case"!":a=i[n];break;case"*":a=o[n];break;default:a=t.normalizeStyleValue(n,r,a,s)}c[r]=a})),r||a.push(c),u=c,l=n})),s.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(s.join(c)))}return a}function Eu(e,t,n,r){switch(t){case"start":e.onStart((function(){return r(n&&Tu(n,"start",e))}));break;case"done":e.onDone((function(){return r(n&&Tu(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return r(n&&Tu(n,"destroy",e))}))}}function Tu(e,t,n){var r=n.totalTime,i=Pu(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function Pu(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Ou(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function Iu(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Mu=function(e,t){return!1},Vu=function(e,t){return!1},Nu=function(e,t,n){return[]},Fu=xu();(Fu||"undefined"!=typeof Element)&&(Mu=function(e,t){return e.contains(t)},Vu=function(){if(Fu||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Vu}(),Nu=function(e,t,n){var r=[];if(n)r.push.apply(r,_toConsumableArray(e.querySelectorAll(t)));else{var i=e.querySelector(t);i&&r.push(i)}return r});var Ru=null,Du=!1;function ju(e){Ru||(Ru=("undefined"!=typeof document?document.body:null)||{},Du=!!Ru.style&&"WebkitAppearance"in Ru.style);var t=!0;return Ru.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Ru.style)&&Du)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ru.style),t}var Hu=Vu,qu=Mu,Bu=Nu;function Lu(e){var t={};return Object.keys(e).forEach((function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]})),t}var zu,Ku=((zu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ju(e)}},{key:"matchesElement",value:function(e,t){return Hu(e,t)}},{key:"containsElement",value:function(e,t){return qu(e,t)}},{key:"query",value:function(e,t,n){return Bu(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,r,i){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new ku(n,r)}}]),e}()).\u0275fac=function(e){return new(e||zu)},zu.\u0275prov=oe({token:zu,factory:zu.\u0275fac}),zu),Zu=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new Ku,e}();function Qu(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Wu(parseFloat(t[1]),t[2])}function Wu(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Gu(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};r=Wu(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(i=Wu(parseFloat(a),s[4]));var l=s[5];l&&(o=l)}else r=e;if(!n){var u=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:r,delay:i,easing:o}}(e,t,n)}function Uu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function Yu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else Uu(e,n);return n}function Xu(e,t,n){return n?t+":"+n+";":""}function Ju(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],s=i[2],a=i[3];t.push(pc(o,a)),"<"!=s[0]||"*"==o&&"*"==a||t.push(pc(a,o))}(e,i,r)})):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Cc(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return cc(n,e,t)})),options:Cc(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map((function(e){t.currentTime=r;var o=cc(n,e,t);return i=Math.max(i,t.currentTime),o}));return t.currentTime=i,{type:3,steps:o,options:Cc(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return bc(Gu(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var i=bc(0,0,"");return i.dynamic=!0,i.strValue=r,i}return bc((n=n||Gu(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:yu({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=yu(a)}t.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,t);l.isEmptyStep=s,n=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)})):n.push(e.styles);var r=!1,i=null;return n.forEach((function(e){if(_c(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(r){if(n._driver.validateStyleProperty(r)){var s,a,l,u,c,h=t.collectedStyles[t.currentQuerySelector],f=h[r],d=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),d=!1),o=f.startTime),d&&(h[r]={startTime:o,endTime:i}),t.options&&(s=e[r],a=t.options,l=t.errors,u=a.params||{},(c=rc(s)).length&&c.forEach((function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,l=0,u=e.steps.map((function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(_c(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(_c(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),a=a||c<0||c>1,s=s||c0&&i0?i==f?1:h*i:o[i],a=s*v;t.currentTime=d+p.delay+a,p.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)})),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:cc(this,tc(e.animation),t),options:Cc(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Cc(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Cc(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(vc,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],s=i[1];t.currentQuerySelector=n.length?n+" "+o:o,Ou(t.collectedStyles,t.currentQuerySelector,{});var a=cc(this,tc(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Cc(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Gu(e.timings,t.errors,!0);return{type:12,animation:cc(this,tc(e.animation),t),timings:n,options:null}}}]),e}(),mc=function e(t){_classCallCheck(this,e),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 _c(e){return!Array.isArray(e)&&"object"==typeof e}function Cc(e){var t;return e?(e=Uu(e)).params&&(e.params=(t=e.params)?Uu(t):null):e={},e}function bc(e,t,n){return{duration:e,delay:t,easing:n}}function kc(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var wc=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),xc=new RegExp(":enter","g"),Sc=new RegExp(":leave","g");function Ac(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},a=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Ec).buildKeyframes(e,t,n,r,i,o,s,a,l,u)}var Ec=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,o,s,a,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new wc;var c=new Pc(e,t,l,r,i,u,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),cc(this,n,c);var h=c.timelines.filter((function(e){return e.containsAnimation()}));if(h.length&&Object.keys(s).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([s],null,c.errors,a)}return h.length?h.map((function(e){return e.buildKeyframes()})):[kc(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?Qu(n.duration):null,o=null!=n.delay?Qu(n.delay):null;return 0!==i&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)})),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),cc(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Tc);var s=Qu(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach((function(e){return cc(n,e,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Qu(e.options.delay):0;e.steps.forEach((function(s){var a=t.createSubContext(e.options);o&&a.delayNextStep(o),cc(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)})),r.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Gu(t.params?ic(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?Qu(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Tc);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;var l=null;a.forEach((function(r,i){t.currentQueryIndex=i;var a=t.createSubContext(e.options,r);o&&a.delayNextStep(o),r===t.element&&(l=a.currentTimeline),cc(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),s=o*(t.currentQueryTotal-1),a=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var l=t.currentTimeline;a&&l.delayNextStep(a);var u=l.currentTime;cc(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}]),e}(),Tc={},Pc=function(){function e(t,n,r,i,o,s,a,l){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Tc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Oc(this._driver,n,0),a.push(this.currentTimeline)}return _createClass(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=Qu(r.duration)),null!=r.delay&&(i.delay=Qu(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach((function(e){t&&s.hasOwnProperty(e)||(s[e]=ic(o[e],s,n.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach((function(e){n[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Tc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Ic(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,o){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(xc,"."+this._enterClassName)).replace(Sc,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,_toConsumableArray(a))}return i||0!=s.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),Oc=function(){function e(t,n,r,i){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){r[e]="*"})):Yu(e,!1,r)})),r}(e,this._globalTimelineStyles);Object.keys(s).forEach((function(e){var t=ic(s[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:"*"),i._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){e._currentKeyframe[n]=t[n]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,s){var a=Yu(o,!0);Object.keys(a).forEach((function(e){var r=a[e];"!"==r?t.add(e):"*"==r&&n.add(e)})),r||(a.offset=s/e.duration),i.push(a)}));var o=t.size?oc(t.values()):[],s=n.size?oc(n.values()):[];if(r){var a=i[0],l=Uu(a);a.offset=0,l.offset=1,i=[a,l]}return kc(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),Ic=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,s,a){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(l=t.call(this,e,r,a.delay)).element=r,l.keyframes=i,l.preStyleProps=o,l.postStyleProps=s,l._stretchStartingKeyframe=u,l.timings={duration:a.duration,delay:a.delay,easing:a.easing},l}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,l=Yu(e[0],!1);l.offset=0,o.push(l);var u=Yu(e[0],!1);u.offset=Mc(a),o.push(u);for(var c=e.length-1,h=1;h<=c;h++){var f=Yu(e[h],!1);f.offset=Mc((n+f.offset*r)/s),o.push(f)}r=s,n=0,i="",e=o}return kc(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(Oc);function Mc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Vc=function e(){_classCallCheck(this,e)},Nc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return ac(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(Fc[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+i}}]),n}(Vc),Fc=function(e){var t={};return e.forEach((function(e){return t[e]=!0})),t}("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 Rc(e,t,n,r,i,o,s,a,l,u,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:f}}var Dc={},jc=function(){function e(t,n,r){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return _createClass(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some((function(e){return e(t,n,r,i)}))}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,s,a,l,u){var c=[],h=this.ast.options&&this.ast.options.params||Dc,f=this.buildStyles(n,s&&s.params||Dc,c),d=a&&a.params||Dc,p=this.buildStyles(r,d,c),v=new Set,g=new Map,y=new Map,m="void"===r,_={params:Object.assign(Object.assign({},h),d)},C=u?[]:Ac(e,t,this.ast.animation,i,o,f,p,_,l,c),b=0;if(C.forEach((function(e){b=Math.max(e.duration+e.delay,b)})),c.length)return Rc(t,this._triggerName,n,r,m,f,p,[],[],g,y,b,c);C.forEach((function(e){var n=e.element,r=Ou(g,n,{});e.preStyleProps.forEach((function(e){return r[e]=!0}));var i=Ou(y,n,{});e.postStyleProps.forEach((function(e){return i[e]=!0})),n!==t&&v.add(n)}));var k=oc(v.values());return Rc(t,this._triggerName,n,r,m,f,p,C,k,g,y,b)}}]),e}(),Hc=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},r=Uu(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(r[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach((function(e){var o=i[e];o.length>1&&(o=ic(o,r,t)),n[e]=o}))}})),n}}]),e}(),qc=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){r.states[e.name]=new Hc(e.style,e.options&&e.options.params||{})})),Bc(this.states,"true","1"),Bc(this.states,"false","0"),n.transitions.forEach((function(e){r.transitionFactories.push(new jc(t,e,r.states))})),this.fallbackTransition=new jc(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find((function(i){return i.match(e,t,n,r)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function Bc(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Lc=new wc,zc=function(){function e(t,n,r){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],r=gc(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=Au(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[e],a=new Map;if(s?(n=Ac(this._driver,t,s,"ng-enter","ng-leave",{},{},i,Lc,o)).forEach((function(e){var t=Ou(a,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));a.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=r._driver.computeStyle(t,n,"*")}))}));var l=Su(n.map((function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)})));return this._playersById[e]=l,l.onDestroy((function(){return r.destroy(e)})),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,r){var i=Pu(t,"","","");return Eu(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);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(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),Kc=[],Zc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Qc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var o=Uu(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach((function(e){null==n[e]&&(n[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),Gc=new Wc("void"),Uc=function(){function e(t,n,r){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,nh(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var s=Ou(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var l=Ou(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(nh(e,"ng-trigger"),nh(e,"ng-trigger-"+t),l[t]=Gc),function(){o._engine.afterFlush((function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),o._triggers[t]||delete l[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),s=new Xc(this.id,t,e),a=this._engine.statesByElement.get(e);a||(nh(e,"ng-trigger"),nh(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var l=a[t],u=new Wc(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[t]=u,l||(l=Gc),"void"===u.value||l.value!==u.value){var c=Ou(this._engine.playersByElement,e,[]);c.forEach((function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()}));var h=o.matchTransition(l.value,u.value,e,u.params),f=!1;if(!h){if(!i)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:f}),f||(nh(e,"ng-animate-queued"),s.onStart((function(){rh(e,"ng-animate-queued")}))),s.onDone((function(){var t=r.players.indexOf(s);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(s);i>=0&&n.splice(i,1)}})),this.players.push(s),c.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),nh(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),rh(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,r){if(Jc(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return Jc(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return Su(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Zc,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach((function(e){var t=e.player,o=e.element;if(x.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,o),d=k.get(o),v=p.get(o),g=n._buildInstruction(e,r,v,d,f);if(!g.errors||!g.errors.length)return f?(t.onStart((function(){return ec(o,g.fromStyles)})),t.onDestroy((function(){return $u(o,g.toStyles)})),void i.push(t)):e.isFallbackTransition?(t.onStart((function(){return ec(o,g.fromStyles)})),t.onDestroy((function(){return $u(o,g.toStyles)})),void i.push(t)):(g.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),r.append(o,g.timelines),s.push({instruction:g,player:t,element:o}),g.queriedElements.forEach((function(e){return Ou(a,e,[]).push(t)})),g.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var r=l.get(t);r||l.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}})),void g.postStyleProps.forEach((function(e,t){var n=Object.keys(e),r=u.get(t);r||u.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))})));S.push(g)}));if(S.length){var E=[];S.forEach((function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return E.push("- ".concat(e,"\n"))}))})),x.forEach((function(e){return e.destroy()})),this.reportError(E)}var T=new Map,P=new Map;s.forEach((function(e){var t=e.element;r.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))})),i.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){Ou(T,t,[]).push(e),e.destroy()}))}));var O=g.filter((function(e){return oh(e,l,u)})),I=new Map;eh(I,this.driver,m,u,"*").forEach((function(e){oh(e,l,u)&&O.push(e)}));var M=new Map;d.forEach((function(e,t){eh(M,n.driver,new Set(e),l,"!")})),O.forEach((function(e){var t=I.get(e),n=M.get(e);I.set(e,Object.assign(Object.assign({},t),n))}));var V=[],N=[],F={};s.forEach((function(e){var t=e.element,s=e.player,a=e.instruction;if(r.has(t)){if(c.has(t))return s.onDestroy((function(){return $u(t,a.toStyles)})),s.disabled=!0,s.overrideTotalTime(a.totalTime),void i.push(s);var l=F;if(P.size>1){for(var u=t,h=[];u=u.parentNode;){var f=P.get(u);if(f){l=f;break}h.push(u)}h.forEach((function(e){return P.set(e,l)}))}var d=n._buildAnimation(s.namespaceId,a,T,o,M,I);if(s.setRealPlayer(d),l===F)V.push(s);else{var p=n.playersByElement.get(l);p&&p.length&&(s.parentPlayer=Su(p)),i.push(s)}}else ec(t,a.fromStyles),s.onDestroy((function(){return $u(t,a.toStyles)})),N.push(s),c.has(t)&&i.push(s)})),N.forEach((function(e){var t=o.get(e.element);if(t&&t.length){var n=Su(t);e.setRealPlayer(n)}})),i.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var R=0;R0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ku(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),Xc=function(){function e(t,n,r){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new ku,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return Eu(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart((function(){return n.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){Ou(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Jc(e){return e&&1===e.nodeType}function $c(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function eh(e,t,n,r,i){var o=[];n.forEach((function(e){return o.push($c(e))}));var s=[];r.forEach((function(n,r){var o={};n.forEach((function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Qc,s.push(r))})),e.set(r,o)}));var a=0;return n.forEach((function(e){return $c(e,o[a++])})),s}function th(e,t){var n=new Map;if(e.forEach((function(e){return n.set(e,[])})),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var s=t.parentNode;return o=n.has(s)?s:r.has(s)?1:e(s),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)})),n}function nh(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function rh(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function ih(e,t,n){Su(n).onDone((function(){return e.processLeaveNode(t)}))}function oh(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach((function(e){return i.add(e)})):t.set(e,r),n.delete(e),!0}var sh=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Yc(t,n,r),this._timelineEngine=new zc(t,n,r),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,n,r,i){var o=e+"-"+r,s=this._triggerCache[o];if(!s){var a=[],l=gc(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(a.join("\n - ")));s=function(e,t){return new qc(e,t)}(r,l),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,r,s)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}},{key:"onRemove",value:function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var i=_slicedToArray(Iu(n),2),o=i[0],s=i[1];this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,i){if("@"==n.charAt(0)){var o=_slicedToArray(Iu(n),2),s=o[0],a=o[1];return this._timelineEngine.listen(s,t,a,i)}return this._transitionEngine.listen(e,t,n,r,i)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function ah(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=uh(t[0]),t.length>1&&(r=uh(t[t.length-1]))):t&&(n=uh(t)),n||r?new lh(e,n,r):null}var lh=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&$u(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&($u(this._element,this._initialStyles),this._endStyles&&($u(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ec(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ec(this._element,this._endStyles),this._endStyles=null),$u(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function uh(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vh(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=yh(e,"").split(","),(r=ph(n,t))>=0&&(n.splice(r,1),gh(e,"",n.join(","))))}}]),e}();function fh(e,t,n){gh(e,"PlayState",n,dh(e,t))}function dh(e,t){var n=yh(e,"");return n.indexOf(",")>0?ph(n.split(","),t):ph([n],t)}function ph(e,t){for(var n=0;n=0)return n;return-1}function vh(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function gh(e,t,n,r){var i="animation"+t;if(null!=r){var o=e.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}e.style[i]=n}function yh(e,t){return e.style["animation"+t]}var mh=function(){function e(t,n,r,i,o,s,a,l){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new hh(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:hc(e.element,r))}))}this.currentSnapshot=t}}]),e}(),_h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=Lu(r),i}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(ku),Ch=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ju(e)}},{key:"matchesElement",value:function(e,t){return Hu(e,t)}},{key:"containsElement",value:function(e,t){return qu(e,t)}},{key:"query",value:function(e,t,n){return Bu(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map((function(e){return Lu(e)}));var r="@keyframes ".concat(t," {\n"),i="";n.forEach((function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}})),r+="".concat(i,"}\n")})),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6?arguments[6]:void 0;s&&this._notifyFaultyScrubber();var a=o.filter((function(e){return e instanceof mh})),l={};lc(n,r)&&a.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])}))})),t}(t=uc(e,t,l));if(0==n)return new _h(e,u);var c="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=ah(e,t),d=new mh(e,t,c,n,r,i,u,f);return d.onDestroy((function(){var e;(e=h).parentNode.removeChild(e)})),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),bh=function(){function e(t,n,r,i){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:hc(e.element,n))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),kh=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wh().toString()),this._cssKeyframesDriver=new Ch}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ju(e)}},{key:"matchesElement",value:function(e,t){return Hu(e,t)}},{key:"containsElement",value:function(e,t){return qu(e,t)}},{key:"query",value:function(e,t,n){return Bu(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6?arguments[6]:void 0;if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var l={},u=o.filter((function(e){return e instanceof bh}));lc(n,r)&&u.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var c=ah(e,t=uc(e,t=t.map((function(e){return Yu(e,!1)})),l));return new bh(e,t,a,c)}}]),e}();function wh(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var xh,Sh=((xh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:$e.None,styles:[],data:{animation:[]}}),i}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?gu(e):e;return Th(this._renderer,null,t,"register",[n]),new Ah(t,this._renderer)}}]),n}(du)).\u0275fac=function(e){return new(e||xh)(Le(Jo),Le(al))},xh.\u0275prov=oe({token:xh,factory:xh.\u0275fac}),xh),Ah=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return _createClass(n,[{key:"create",value:function(e,t){return new Eh(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),Eh=function(){function e(t,n,r,i){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e0&&void 0!==arguments[0])||arguments[0];return e?"hsla(".concat(this.getHue(),", ").concat(this.getSaturation(),"%, ").concat(this.getLightness(),"%, ").concat(this.getAlpha(),")"):"hsl(".concat(this.getHue(),", ").concat(this.getSaturation(),"%, ").concat(this.getLightness(),"%)")}},{key:"getHue",value:function(){return Math.round(this.hue)}},{key:"getSaturation",value:function(){return Math.round(this.saturation)}},{key:"getLightness",value:function(){return Math.round(this.lightness)}},{key:"getAlpha",value:function(){return Math.round(100*this.alpha)/100}}]),n}(Wh),Yh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;return _classCallCheck(this,n),(s=t.call(this)).hue=e,s.saturation=r,s.value=i,s.alpha=o,s}return _createClass(n,[{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?"hsva(".concat(this.getHue(),", ").concat(this.getSaturation(),"%, ").concat(this.getValue(),"%, ").concat(this.getAlpha(),")"):"hsv(".concat(this.getHue(),", ").concat(this.getSaturation(),"%, ").concat(this.getValue(),"%)")}},{key:"getHue",value:function(){return Math.round(this.hue)}},{key:"getSaturation",value:function(){return Math.round(this.saturation)}},{key:"getValue",value:function(){return Math.round(this.value)}},{key:"getAlpha",value:function(){return Math.round(100*this.alpha)/100}}]),n}(Wh),Xh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;return _classCallCheck(this,n),(s=t.call(this)).red=e,s.green=r,s.blue=i,s.alpha=o,s}return _createClass(n,[{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?"rgba(".concat(this.getRed(),", ").concat(this.getGreen(),", ").concat(this.getBlue(),", ").concat(this.getAlpha(),")"):"rgb(".concat(this.getRed(),", ").concat(this.getGreen(),", ").concat(this.getBlue(),")")}},{key:"getRed",value:function(){return Math.round(this.red)}},{key:"getGreen",value:function(){return Math.round(this.green)}},{key:"getBlue",value:function(){return Math.round(this.blue)}},{key:"getAlpha",value:function(){return Math.round(100*this.alpha)/100}}]),n}(Wh),Jh=((Vh=function e(){_classCallCheck(this,e)}).transparent=new Xh(0,0,0,0),Vh.aliceblue=new Xh(240,248,255,1),Vh.antiquewhite=new Xh(250,235,215,1),Vh.aqua=new Xh(0,255,255,1),Vh.aquamarine=new Xh(127,255,212,1),Vh.azure=new Xh(240,255,255,1),Vh.beige=new Xh(245,245,220,1),Vh.bisque=new Xh(255,228,196,1),Vh.black=new Xh(0,0,0,1),Vh.blanchedalmond=new Xh(255,235,205,1),Vh.blue=new Xh(0,0,255,1),Vh.blueviolet=new Xh(138,43,226,1),Vh.brown=new Xh(165,42,42,1),Vh.burlywood=new Xh(222,184,135,1),Vh.cadetblue=new Xh(95,158,160,1),Vh.chartreuse=new Xh(127,255,0,1),Vh.chocolate=new Xh(210,105,30,1),Vh.coral=new Xh(255,127,80,1),Vh.cornflowerblue=new Xh(100,149,237,1),Vh.cornsilk=new Xh(255,248,220,1),Vh.crimson=new Xh(220,20,60,1),Vh.cyan=new Xh(0,255,255,1),Vh.darkblue=new Xh(0,0,139,1),Vh.darkcyan=new Xh(0,139,139,1),Vh.darkgoldenrod=new Xh(184,134,11,1),Vh.darkgray=new Xh(169,169,169,1),Vh.darkgreen=new Xh(0,100,0,1),Vh.darkgrey=Vh.darkgray,Vh.darkkhaki=new Xh(189,183,107,1),Vh.darkmagenta=new Xh(139,0,139,1),Vh.darkolivegreen=new Xh(85,107,47,1),Vh.darkorange=new Xh(255,140,0,1),Vh.darkorchid=new Xh(153,50,204,1),Vh.darkred=new Xh(139,0,0,1),Vh.darksalmon=new Xh(233,150,122,1),Vh.darkseagreen=new Xh(143,188,143,1),Vh.darkslateblue=new Xh(72,61,139,1),Vh.darkslategray=new Xh(47,79,79,1),Vh.darkslategrey=Vh.darkslategray,Vh.darkturquoise=new Xh(0,206,209,1),Vh.darkviolet=new Xh(148,0,211,1),Vh.deeppink=new Xh(255,20,147,1),Vh.deepskyblue=new Xh(0,191,255,1),Vh.dimgray=new Xh(105,105,105,1),Vh.dimgrey=Vh.dimgray,Vh.dodgerblue=new Xh(30,144,255,1),Vh.firebrick=new Xh(178,34,34,1),Vh.floralwhite=new Xh(255,250,240,1),Vh.forestgreen=new Xh(34,139,34,1),Vh.fuchsia=new Xh(255,0,255,1),Vh.gainsboro=new Xh(220,220,220,1),Vh.ghostwhite=new Xh(248,248,255,1),Vh.gold=new Xh(255,215,0,1),Vh.goldenrod=new Xh(218,165,32,1),Vh.gray=new Xh(128,128,128,1),Vh.grey=Vh.gray,Vh.green=new Xh(0,128,0,1),Vh.greenyellow=new Xh(173,255,47,1),Vh.honeydew=new Xh(240,255,240,1),Vh.hotpink=new Xh(255,105,180,1),Vh.indianred=new Xh(205,92,92,1),Vh.indigo=new Xh(75,0,130,1),Vh.ivory=new Xh(255,255,240,1),Vh.khaki=new Xh(240,230,140,1),Vh.lavender=new Xh(230,230,250,1),Vh.lavenderblush=new Xh(255,240,245,1),Vh.lawngreen=new Xh(124,252,0,1),Vh.lemonchiffon=new Xh(255,250,205,1),Vh.lightblue=new Xh(173,216,230,1),Vh.lightcoral=new Xh(240,128,128,1),Vh.lightcyan=new Xh(224,255,255,1),Vh.lightgoldenrodyellow=new Xh(250,250,210,1),Vh.lightgray=new Xh(211,211,211,1),Vh.lightgreen=new Xh(144,238,144,1),Vh.lightgrey=Vh.lightgray,Vh.lightpink=new Xh(255,182,193,1),Vh.lightsalmon=new Xh(255,160,122,1),Vh.lightseagreen=new Xh(32,178,170,1),Vh.lightskyblue=new Xh(135,206,250,1),Vh.lightslategray=new Xh(119,136,153,1),Vh.lightslategrey=Vh.lightslategray,Vh.lightsteelblue=new Xh(176,196,222,1),Vh.lightyellow=new Xh(255,255,224,1),Vh.lime=new Xh(0,255,0,1),Vh.limegreen=new Xh(50,205,50,1),Vh.linen=new Xh(250,240,230,1),Vh.magenta=new Xh(255,0,255,1),Vh.maroon=new Xh(128,0,0,1),Vh.mediumaquamarine=new Xh(102,205,170,1),Vh.mediumblue=new Xh(0,0,205,1),Vh.mediumorchid=new Xh(186,85,211,1),Vh.mediumpurple=new Xh(147,112,219,1),Vh.mediumseagreen=new Xh(60,179,113,1),Vh.mediumslateblue=new Xh(123,104,238,1),Vh.mediumspringgreen=new Xh(0,250,154,1),Vh.mediumturquoise=new Xh(72,209,204,1),Vh.mediumvioletred=new Xh(199,21,133,1),Vh.midnightblue=new Xh(25,25,112,1),Vh.mintcream=new Xh(245,255,250,1),Vh.mistyrose=new Xh(255,228,225,1),Vh.moccasin=new Xh(255,228,181,1),Vh.navajowhite=new Xh(255,222,173,1),Vh.navy=new Xh(0,0,128,1),Vh.oldlace=new Xh(253,245,230,1),Vh.olive=new Xh(128,128,0,1),Vh.olivedrab=new Xh(107,142,35,1),Vh.orange=new Xh(255,165,0,1),Vh.orangered=new Xh(255,69,0,1),Vh.orchid=new Xh(218,112,214,1),Vh.palegoldenrod=new Xh(238,232,170,1),Vh.palegreen=new Xh(152,251,152,1),Vh.paleturquoise=new Xh(175,238,238,1),Vh.palevioletred=new Xh(219,112,147,1),Vh.papayawhip=new Xh(255,239,213,1),Vh.peachpuff=new Xh(255,218,185,1),Vh.peru=new Xh(205,133,63,1),Vh.pink=new Xh(255,192,203,1),Vh.plum=new Xh(221,160,221,1),Vh.powderblue=new Xh(176,224,230,1),Vh.purple=new Xh(128,0,128,1),Vh.red=new Xh(255,0,0,1),Vh.rosybrown=new Xh(188,143,143,1),Vh.royalblue=new Xh(65,105,225,1),Vh.saddlebrown=new Xh(139,69,19,1),Vh.salmon=new Xh(250,128,114,1),Vh.sandybrown=new Xh(244,164,96,1),Vh.seagreen=new Xh(46,139,87,1),Vh.seashell=new Xh(255,245,238,1),Vh.sienna=new Xh(160,82,45,1),Vh.silver=new Xh(192,192,192,1),Vh.skyblue=new Xh(135,206,235,1),Vh.slateblue=new Xh(106,90,205,1),Vh.slategray=new Xh(112,128,144,1),Vh.slategrey=Vh.slategray,Vh.snow=new Xh(255,250,250,1),Vh.springgreen=new Xh(0,255,127,1),Vh.steelblue=new Xh(70,130,180,1),Vh.tan=new Xh(210,180,140,1),Vh.teal=new Xh(0,128,128,1),Vh.thistle=new Xh(216,191,216,1),Vh.tomato=new Xh(255,99,71,1),Vh.turquoise=new Xh(64,224,208,1),Vh.violet=new Xh(238,130,238,1),Vh.wheat=new Xh(245,222,179,1),Vh.white=new Xh(255,255,255,1),Vh.whitesmoke=new Xh(245,245,245,1),Vh.yellow=new Xh(255,255,0,1),Vh.yellowgreen=new Xh(154,205,50,1),Vh),$h=function(){function e(t){_classCallCheck(this,e),this.hsva=new Yh(0,1,1,1),this.rgba=new Xh(255,0,0,1),t&&this.stringToColor(t)}return _createClass(e,[{key:"clone",value:function(){return e.from(this.getRgba())}},{key:"setFromString",value:function(e){return this.stringToColor(e)}},{key:"setHsva",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return null!=e&&(this.hsva.hue=e),null!=t&&(this.hsva.saturation=t),null!=n&&(this.hsva.value=n),null!=r&&(this.hsva.alpha=r=r>1?1:r<0?0:r),this.rgba=this.hsvaToRgba(this.hsva),this}},{key:"setRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return null!=e&&(this.rgba.red=e),null!=t&&(this.rgba.green=t),null!=n&&(this.rgba.blue=n),null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r),this.hsva=this.rgbaToHsva(this.rgba),this}},{key:"setHsla",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r);var i=new Uh(e,t,n,r);return this.rgba=this.hslaToRgba(i),this.hsva=this.rgbaToHsva(this.rgba),this}},{key:"toHexString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="#"+(1<<24|this.rgba.getRed()<<16|this.rgba.getGreen()<<8|this.rgba.getBlue()).toString(16).substr(1);return e&&(t+=(256|Math.round(255*this.rgba.alpha)).toString(16).substr(1)),t.toUpperCase()}},{key:"toRgbaString",value:function(){return this.rgba.toString()}},{key:"toRgbString",value:function(){return this.rgba.toString(!1)}},{key:"toHslaString",value:function(){return this.getHsla().toString()}},{key:"toHslString",value:function(){return this.getHsla().toString(!1)}},{key:"toHsvaString",value:function(){return this.hsva.toString()}},{key:"toHsvString",value:function(){return this.hsva.toString(!1)}},{key:"toCmykString",value:function(){return this.getCmyk().toString()}},{key:"getHsva",value:function(){return new Yh(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}},{key:"getRgba",value:function(){return new Xh(this.rgba.red,this.rgba.green,this.rgba.blue,this.rgba.alpha)}},{key:"getHsla",value:function(){return this.rgbaToHsla(this.rgba)}},{key:"getCmyk",value:function(){return this.rgbaToCmyk(this.rgba)}},{key:"hsvaToHsla",value:function(e){var t=e.saturation/100,n=(2-t)*e.value/2;return new Uh(e.hue,100*n,100*(t*(e.value/100)/(n<=1?n:2-n)||0),e.alpha)}},{key:"hslaToHsva",value:function(e){var t=e.lightness/100*2,n=e.saturation/100*(t<=1?t:2-t);return new Yh(e.hue,2*n/(t+n)||0,(t+n)/2,e.alpha)}},{key:"rgbaToHsva",value:function(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=e.alpha,o=Math.max(t,n,r),s=Math.min(t,n,r),a=o-s,l=0,u=0===o?0:a/o,c=o;if(o!==s){switch(o){case t:l=(n-r)/a+(n.5?c/(2-o-s):c/(o+s),o){case t:a=(n-r)/c+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}},{key:"cmykToRgba",value:function(e){var t=e.black/100,n=e.magenta/100,r=e.yellow/100,i=Math.min(1,(1-e.cyan/100)*(1-t)),o=Math.min(1,(1-n)*(1-t)),s=Math.min(1,(1-r)*(1-t));return new Xh(i*=255,o*=255,s*=255,1)}},{key:"rgbaToCmyk",value:function(e){var t=1-e.red/255,n=1-e.green/255,r=1-e.blue/255,i=Math.min(t,n,r);return 1===i?new Gh(0,0,0,1):(t=(t-i)/(1-i),n=(n-i)/(1-i),r=(r-i)/(1-i),new Gh(t*=100,n*=100,r*=100,i*=100))}},{key:"roundNumber",value:function(e){return Math.round(100*e)/100}},{key:"stringToColor",value:function(e){var t=e.replace(/ /g,"").toLowerCase(),n=Jh[t]||null;if("#"===t[0]){var r,i=t.substr(1),o=i.length,s=1;if(3===o)r=i.split("").map((function(e){return e+e}));else if(6===o)r=i.match(/.{2}/g);else if(8===o){var a=i.substr(-2);i=i.substr(0,o-2),s=this.roundNumber(parseInt(a||"FF",16)/255),r=i.match(/.{2}/g)}3===r.length&&(n=new Xh(parseInt(r[0],16),parseInt(r[1],16),parseInt(r[2],16),s))}var l=t.indexOf("("),u=t.indexOf(")");if(-1!==l&&u+1===t.length){var c=t.substr(0,l),h=t.substr(l+1,u-(l+1)).split(","),f=1;switch(c){case"rgba":f=parseFloat(h.pop());case"rgb":n=new Xh(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),f);break;case"hsla":f=parseFloat(h.pop());case"hsl":var d=new Uh(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),f);n=this.hslaToRgba(d);break;case"cmyk":var p=new Gh(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10));n=this.cmykToRgba(p)}}return n&&(this.rgba=n,this.hsva=this.rgbaToHsva(n)),this}}],[{key:"from",value:function(t){return"string"==typeof t?new e(t):t instanceof e?t.clone():t instanceof Xh?(new e).setRgba(t.red,t.green,t.blue,t.alpha):t instanceof Yh?(new e).setHsva(t.hue,t.saturation,t.value,t.alpha):t instanceof Uh?(new e).setHsla(t.hue,t.saturation,t.lightness,t.alpha):null}}]),e}(),ef=((Nh=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.elementRef=n,this.renderer=r,this.eventHooks=[],this.window={pageXOffset:0,pageYOffset:0},this.window=t.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame()}return _createClass(e,[{key:"onEventChange",value:function(e){var t=this;this.calculate(e),this.eventHooks.push(this.renderer.listen(this.document,"mouseup",(function(){return t.removeListeners()}))),this.eventHooks.push(this.renderer.listen(this.document,"touchend",(function(){return t.removeListeners()}))),this.eventHooks.push(this.renderer.listen(this.document,"mousemove",(function(e){return t.calculate(e)}))),this.eventHooks.push(this.renderer.listen(this.document,"touchmove",(function(e){return t.calculate(e)})))}},{key:"calculateCoordinates",value:function(e){var t=this.elementRef.nativeElement.getBoundingClientRect(),n=t.width,r=t.height,i=t.top,o=t.left,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,a=Math.max(0,Math.min(("number"==typeof e.pageX?e.pageX:e.touches[0].pageX)-(o+this.window.pageXOffset),n)),l=Math.max(0,Math.min(s-(i+this.window.pageYOffset),r));this.movePointer({x:a,y:l,height:r,width:n})}},{key:"calculate",value:function(e){var t=this;if(e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame((function(){return t.calculateCoordinates(e)}))}},{key:"getRequestAnimationFrame",value:function(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}},{key:"removeListeners",value:function(){this.eventHooks.forEach((function(e){return e()})),this.eventHooks.length=0}},{key:"ngOnDestroy",value:function(){this.removeListeners()}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},Nh.\u0275dir=ut({type:Nh}),Nh),tf=["pointer"],nf=((Rh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,r,i,e)).colorChange=new Ws(!1),o}return _createClass(n,[{key:"onClick",value:function(e){this.onEventChange(e)}},{key:"ngOnInit",value:function(){this.hue||(this.hue=$h.from(this.color.getHsva())),this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.backgroundColor)}},{key:"ngOnChanges",value:function(e){if(e.color&&e.color.previousValue!==e.color.currentValue){var t=this.color.getHsva();this.changePointerPosition(t.saturation,t.value)}}},{key:"movePointer",value:function(e){var t=e.x,n=e.y,r=e.height,i=100*t/e.width,o=-100*n/r+100;this.changePointerPosition(i,o);var s=this.hue.getHsva(),a=this.color.getHsva(),l=(new $h).setHsva(s.hue,i,o,a.alpha);this.colorChange.emit(l)}},{key:"changePointerPosition",value:function(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top","".concat(100-t,"%")),this.renderer.setStyle(this.pointer.nativeElement,"left","".concat(e,"%"))}},{key:"backgroundColor",get:function(){return this.hue?this.hue.toRgbaString():""}}]),n}(ef)).\u0275fac=function(e){return new(e||Rh)(ho(es),ho(al),ho(Yo))},Rh.\u0275cmp=rt({type:Rh,selectors:[["saturation-component"]],viewQuery:function(e,t){var n;1&e&&oa(tf,!0),2&e&&ia(n=sa())&&(t.pointer=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&Co("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)})),2&e&&Eo("background-color",t.backgroundColor)},inputs:{hue:"hue",color:"color"},outputs:{colorChange:"colorChange"},features:[jo,Ko],decls:2,vars:0,consts:[[1,"pointer"],["pointer",""]],template:function(e,t){1&e&&yo(0,"div",0,1)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2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0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==")}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}'],changeDetection:0}),Rh),rf=((Fh=function(){function e(t,n,r,i){_classCallCheck(this,e),this.pickerConfig=t,this.renderer=n,this.elementRef=r,this.document=i,this.colorType="rgba"}return _createClass(e,[{key:"onClick",value:function(e){var t=this.renderer.createElement("input");switch(this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","-100%"),this.renderer.setStyle(t,"left","-100%"),this.colorType){case"hsla":t.value=this.color.toHslaString();break;case"hex":t.value=this.color.toHexString();break;default:t.value=this.backgroundColor}this.renderer.appendChild(this.elementRef.nativeElement,t),t.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,t)}},{key:"title",get:function(){return this.pickerConfig?this.pickerConfig.indicatorTitle:""}},{key:"backgroundColor",get:function(){return this.color.toRgbaString()}}]),e}()).\u0275fac=function(e){return new(e||Fh)(ho(Qh),ho(es),ho(Yo),ho(al))},Fh.\u0275cmp=rt({type:Fh,selectors:[["indicator-component"]],hostVars:1,hostBindings:function(e,t){1&e&&Co("click",(function(e){return t.onClick(e)})),2&e&&lo("title",t.title)},inputs:{color:"color",colorType:"colorType"},decls:4,vars:2,consts:[["viewBox","0 0 48 48"],["d","M0 0h48v48h-48z","fill","none"],["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"]],template:function(e,t){1&e&&(vo(0,"div"),an(),vo(1,"svg",0),yo(2,"path",1),yo(3,"path",2),go(),go()),2&e&&Eo("background-color",t.backgroundColor)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:rgba(0,0,0,0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC") repeat}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{z-index:1}[_nghost-%COMP%]:hover:after, [_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}[_nghost-%COMP%]:hover:after{display:block;content:"\xa0";background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),Fh),of=["pointer"],sf=((Dh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,r,i,e)).hueChange=new Ws(!1),o.colorChange=new Ws(!1),o.isVertical=!1,o}return _createClass(n,[{key:"onClick",value:function(e){this.onEventChange(e)}},{key:"ngOnChanges",value:function(e){if(e.hue&&e.hue.previousValue!==e.hue.currentValue){var t=this.hue.getHsva();this.changePointerPosition(t.hue)}}},{key:"movePointer",value:function(e){var t=e.x,n=e.y,r=e.height,i=e.width,o=this.isVertical?n/r*360:t/i*360;this.changePointerPosition(o);var s=this.color.getHsva(),a=(new $h).setHsva(o,s.saturation,s.value,s.alpha),l=(new $h).setHsva(o,100,100,s.alpha);this.hueChange.emit(l),this.colorChange.emit(a)}},{key:"changePointerPosition",value:function(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left","".concat(e/360*100,"%"))}},{key:"vertical",set:function(e){this.isVertical=!0}}]),n}(ef)).\u0275fac=function(e){return new(e||Dh)(ho(es),ho(al),ho(Yo))},Dh.\u0275cmp=rt({type:Dh,selectors:[["hue-component"]],viewQuery:function(e,t){var n;1&e&&oa(of,!0),2&e&&ia(n=sa())&&(t.pointer=n.first)},hostBindings:function(e,t){1&e&&Co("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)}))},inputs:{hue:"hue",color:"color",vertical:"vertical"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},features:[jo,Ko],decls:2,vars:0,consts:[[1,"pointer"],["pointer",""]],template:function(e,t){1&e&&yo(0,"div",0,1)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC");background-size:100% 100%;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFR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uAWx1G0Oi7ltgYA73mBBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC");width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}'],changeDetection:0}),Dh),af=["pointer"],lf=function(e){return{background:e}},uf=((Hh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,r,i,e)).colorChange=new Ws(!1),o.isVertical=!1,o}return _createClass(n,[{key:"onClick",value:function(e){this.onEventChange(e)}},{key:"ngOnChanges",value:function(e){if(e.color&&e.color.previousValue!==e.color.currentValue){var t=this.color.getHsva();this.changePointerPosition(t.alpha)}}},{key:"movePointer",value:function(e){var t=e.x,n=e.y,r=e.height,i=e.width,o=this.isVertical?n/r:t/i;this.changePointerPosition(o);var s=this.color.getHsva(),a=(new $h).setHsva(s.hue,s.saturation,s.value,o);this.colorChange.emit(a)}},{key:"changePointerPosition",value:function(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left","".concat(100*e,"%"))}},{key:"vertical",set:function(e){this.isVertical=!0}},{key:"gradient",get:function(){var e=this.color.getRgba();return"linear-gradient(to ".concat(this.isVertical?"bottom":"right",", rgba(").concat(e.red,", ").concat(e.green,", ").concat(e.blue,", 0) 0%, rgb(").concat(e.red,", ").concat(e.green,", ").concat(e.blue,") 100%)")}}]),n}(ef)).\u0275fac=function(e){return new(e||Hh)(ho(es),ho(al),ho(Yo))},Hh.\u0275cmp=rt({type:Hh,selectors:[["alpha-component"]],viewQuery:function(e,t){var n;1&e&&oa(af,!0),2&e&&ia(n=sa())&&(t.pointer=n.first)},hostBindings:function(e,t){1&e&&Co("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)}))},inputs:{color:"color",vertical:"vertical"},outputs:{colorChange:"colorChange"},features:[jo,Ko],decls:3,vars:3,consts:[[1,"pointer"],["pointer",""],[1,"gradient-color",3,"ngStyle"]],template:function(e,t){var n,r;1&e&&(yo(0,"div",0,1),yo(2,"div",2)),2&e&&(cr(2),fo("ngStyle",(n=lf,r=t.gradient,qs(Dt(),Zt(),1,n,r,void 0))))},directives:[Ol],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==");background-position:0;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}'],changeDetection:0}),Hh),cf=((jh=function(){function e(){_classCallCheck(this,e),this.inputChange=new Ws}return _createClass(e,[{key:"inputChanges",value:function(e){var t=parseFloat((e.target||e.srcElement).value);!isNaN(t)&&t>=parseInt(this.min,10)&&t<=parseInt(this.max,10)&&this.inputChange.emit(t)}}]),e}()).\u0275fac=function(e){return new(e||jh)},jh.\u0275dir=ut({type:jh,selectors:[["","inputChange",""]],hostBindings:function(e,t){1&e&&Co("input",(function(e){return t.inputChanges(e)}))},inputs:{min:"min",max:"max"},outputs:{inputChange:"inputChange"}}),jh);function hf(e,t){1&e&&(vo(0,"span"),No(1,"R"),go())}function ff(e,t){1&e&&(vo(0,"span"),No(1,"G"),go())}function df(e,t){1&e&&(vo(0,"span"),No(1,"B"),go())}function pf(e,t){1&e&&(vo(0,"span"),No(1,"A"),go())}function vf(e,t){if(1&e){var n=mo();vo(0,"div",0),vo(1,"input",4),Co("inputChange",(function(e){return Ht(n),wo().onInputChange(e,"A")})),go(),uo(2,pf,2,0,"span",2),go()}if(2&e){var r=wo();cr(1),fo("value",null==r.value?null:r.value.getAlpha().toString()),cr(1),fo("ngIf",r.labelVisible)}}var gf,yf=((gf=function(){function e(){_classCallCheck(this,e),this.hueChange=new Ws(!1),this.colorChange=new Ws(!1),this.isAlphaVisible=!0}return _createClass(e,[{key:"onInputChange",value:function(e,t){var n=this.value,r="R"===t?e:n.red,i="G"===t?e:n.green,o="B"===t?e:n.blue,s="A"===t?e:n.alpha,a=(new $h).setRgba(r,i,o,s),l=(new $h).setHsva(a.getHsva().hue);this.hueChange.emit(l),this.colorChange.emit(a)}},{key:"label",set:function(e){this.labelVisible=!0}},{key:"alpha",set:function(e){this.isAlphaVisible=e}},{key:"value",get:function(){return this.color?this.color.getRgba():null}}]),e}()).\u0275fac=function(e){return new(e||gf)},gf.\u0275cmp=rt({type:gf,selectors:[["rgba-input-component"]],inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","255",3,"value","inputChange"],[4,"ngIf"],["class","column",4,"ngIf"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"]],template:function(e,t){1&e&&(vo(0,"div",0),vo(1,"input",1),Co("inputChange",(function(e){return t.onInputChange(e,"R")})),go(),uo(2,hf,2,0,"span",2),go(),vo(3,"div",0),vo(4,"input",1),Co("inputChange",(function(e){return t.onInputChange(e,"G")})),go(),uo(5,ff,2,0,"span",2),go(),vo(6,"div",0),vo(7,"input",1),Co("inputChange",(function(e){return t.onInputChange(e,"B")})),go(),uo(8,df,2,0,"span",2),go(),uo(9,vf,3,2,"div",3)),2&e&&(cr(1),fo("value",null==t.value?null:t.value.getRed().toString()),cr(1),fo("ngIf",t.labelVisible),cr(2),fo("value",null==t.value?null:t.value.getGreen().toString()),cr(1),fo("ngIf",t.labelVisible),cr(2),fo("value",null==t.value?null:t.value.getBlue().toString()),cr(1),fo("ngIf",t.labelVisible),cr(1),fo("ngIf",t.isAlphaVisible))},directives:[cf,vl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),gf);function mf(e,t){1&e&&(vo(0,"span"),No(1,"H"),go())}function _f(e,t){1&e&&(vo(0,"span"),No(1,"S"),go())}function Cf(e,t){1&e&&(vo(0,"span"),No(1,"L"),go())}function bf(e,t){1&e&&(vo(0,"span"),No(1,"A"),go())}function kf(e,t){if(1&e){var n=mo();vo(0,"div",0),vo(1,"input",5),Co("inputChange",(function(e){return Ht(n),wo().onInputChange(e,"A")})),go(),uo(2,bf,2,0,"span",2),go()}if(2&e){var r=wo();cr(1),fo("value",null==r.value?null:r.value.getAlpha().toString()),cr(1),fo("ngIf",r.labelVisible)}}var wf,xf=((wf=function(){function e(){_classCallCheck(this,e),this.hueChange=new Ws(!1),this.colorChange=new Ws(!1),this.isAlphaVisible=!0}return _createClass(e,[{key:"onInputChange",value:function(e,t){var n=this.value,r="H"===t?e:n.hue,i="S"===t?e:n.saturation,o="L"===t?e:n.lightness,s="A"===t?e:n.alpha,a=(new $h).setHsla(r,i,o,s),l=(new $h).setHsva(a.getHsva().hue);this.hueChange.emit(l),this.colorChange.emit(a)}},{key:"label",set:function(e){this.labelVisible=!0}},{key:"alpha",set:function(e){this.isAlphaVisible=e}},{key:"value",get:function(){return this.color?this.color.getHsla():null}}]),e}()).\u0275fac=function(e){return new(e||wf)},wf.\u0275cmp=rt({type:wf,selectors:[["hsla-input-component"]],inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","360",3,"value","inputChange"],[4,"ngIf"],["type","text","pattern","[0-9]*","min","0","max","100",3,"value","inputChange"],["class","column",4,"ngIf"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"]],template:function(e,t){1&e&&(vo(0,"div",0),vo(1,"input",1),Co("inputChange",(function(e){return t.onInputChange(e,"H")})),go(),uo(2,mf,2,0,"span",2),go(),vo(3,"div",0),vo(4,"input",3),Co("inputChange",(function(e){return t.onInputChange(e,"S")})),go(),uo(5,_f,2,0,"span",2),go(),vo(6,"div",0),vo(7,"input",3),Co("inputChange",(function(e){return t.onInputChange(e,"L")})),go(),uo(8,Cf,2,0,"span",2),go(),uo(9,kf,3,2,"div",4)),2&e&&(cr(1),fo("value",null==t.value?null:t.value.getHue().toString()),cr(1),fo("ngIf",t.labelVisible),cr(2),fo("value",(null==t.value?null:t.value.getSaturation())+"%"),cr(1),fo("ngIf",t.labelVisible),cr(2),fo("value",(null==t.value?null:t.value.getLightness())+"%"),cr(1),fo("ngIf",t.labelVisible),cr(1),fo("ngIf",t.isAlphaVisible))},directives:[cf,vl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),wf);function Sf(e,t){1&e&&(vo(0,"span"),No(1,"HEX"),go())}var Af,Ef,Tf=((Af=function(){function e(){_classCallCheck(this,e),this.hueChange=new Ws(!1),this.colorChange=new Ws(!1),this.prefixValue=""}return _createClass(e,[{key:"onInputChange",value:function(e){var t=e.toLowerCase().replace("#","");if((3===t.length||6===t.length||8===t.length)&&parseInt(t,16).toString(16)===t&&this.value!==t){var n=new $h("#".concat(t)),r=(new $h).setHsva(n.getHsva().hue);this.hueChange.emit(r),this.colorChange.emit(n)}}},{key:"label",set:function(e){this.labelVisible=!0}},{key:"prefix",set:function(e){this.prefixValue=e}},{key:"value",get:function(){return this.prefixValue+(this.color?this.color.toHexString().replace("#",""):"")}}]),e}()).\u0275fac=function(e){return new(e||Af)},Af.\u0275cmp=rt({type:Af,selectors:[["hex-input-component"]],inputs:{hue:"hue",color:"color",label:"label",prefix:"prefix"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:4,vars:2,consts:[[1,"column"],["type","text",3,"value","keyup"],["elRef",""],[4,"ngIf"]],template:function(e,t){if(1&e){var n=mo();vo(0,"div",0),vo(1,"input",1,2),Co("keyup",(function(){Ht(n);var e=co(2);return t.onInputChange(e.value)})),go(),uo(3,Sf,2,0,"span",3),go()}2&e&&(cr(1),fo("value",t.value),cr(2),fo("ngIf",t.labelVisible))},directives:[vl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),Af),Pf=pu("opacityAnimation",[(Ef=yu({opacity:1}),{type:0,name:"true",styles:Ef,options:void 0}),mu("void => *",[yu({opacity:0}),vu(".08s ease-in")])]),Of=pu("listAnimation",[mu("* => up",[_u(":enter",[yu({opacity:0,height:0}),Cu(-10,[vu(".08s",yu({opacity:1,height:"*"}))])],{optional:!0})]),mu("* => right",[_u(":enter",[yu({opacity:0,height:0}),Cu(-10,[vu(".08s",yu({opacity:1,height:"*"}))])],{optional:!0})]),mu("* => down",[_u(":enter",[yu({opacity:0,height:0}),Cu(10,[vu(".08s",yu({opacity:1,height:"*"}))])],{optional:!0})]),mu("* => left",[_u(":enter",[yu({opacity:0,height:0}),Cu(10,[vu(".08s",yu({opacity:1,height:"*"}))])],{optional:!0})])]);function If(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(f)),Rf=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Df=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf.now;return _classCallCheck(this,n),(r=t.call(this,e,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():i()}))).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(Rf))(Ff),jf=new C((function(e){return e.complete()})),Hf=((Mf=function(){function e(t,n,r){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return If(this.value);case"E":return e=this.error,new C((function(t){return t.error(e)}));case"C":return jf}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new Mf("C"),Mf.undefinedValueNotification=new Mf("N",void 0),Mf),qf=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Bf(e,this.delay,this.scheduler))}}]),e}(),Bf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).delay=r,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new Lf(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Hf.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Hf.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.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(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(v),Lf=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},zf=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new Kf(e),r=V(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}]),e}(),Kf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).seenValue=!1,r}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(N),Zf=((Nf=function(){function e(t){_classCallCheck(this,e),this.pickerConfig=t,this.selectionChange=new Ws(!1),this.longPress=new Ws(!1),this.mouseup=new A,this.showDepthText=!1}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.mouseup.next(),this.mouseup.complete()}},{key:"onTouch",value:function(e){var t,n=this;If(e).pipe(F((function(e){return e.timeStamp||(new Date).getTime()})),function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Df,r=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new qf(r,n))}}(350),(t=this.mouseup,function(e){return e.lift(new zf(t))})).subscribe((function(){return n.longPress.next(!0)})),this.selectionChange.emit(this.color)}},{key:"onTouchEnd",value:function(e){this.mouseup.next(e)}},{key:"depth",set:function(e){this.showDepthText=!!e}},{key:"bgColor",get:function(){return this.color.toRgbaString()}},{key:"title",get:function(){var e=this.color?this.color.toHexString():"";return this.showDepthText?this.pickerConfig.presetsTitle.replace(/\{\s*(.+?)\s*\}/g,(function(t,n){return e})):e}},{key:"className",get:function(){return!!this.activeColor&&this.color.toRgbaString()===this.activeColor.toRgbaString()}}]),e}()).\u0275fac=function(e){return new(e||Nf)(ho(Qh))},Nf.\u0275cmp=rt({type:Nf,selectors:[["color-preset"]],hostVars:5,hostBindings:function(e,t){1&e&&Co("mousedown",(function(e){return t.onTouch(e)}))("touchstart",(function(e){return t.onTouch(e)}))("mouseup",(function(e){return t.onTouchEnd(e)}))("touchend",(function(e){return t.onTouchEnd(e)})),2&e&&(lo("title",t.title),Eo("background-color",t.bgColor),To("selected",t.className))},inputs:{activeColor:"activeColor",color:"color",depth:["show-depth-title","depth"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},decls:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0}),Nf),Qf=((Vf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.slice().reverse():e}}]),e}()).\u0275fac=function(e){return new(e||Vf)},Vf.\u0275pipe=ct({name:"reverse",type:Vf,pure:!0}),Vf);function Wf(e,t){if(1&e){var n=mo();vo(0,"color-preset",5),Co("selectionChange",(function(e){return Ht(n),wo(2).onSelectionChange(e)})),go()}if(2&e){var r=t.$implicit,i=wo(2);fo("color",r)("activeColor",i.activeColor)}}function Gf(e,t){if(1&e&&(vo(0,"div",3),uo(1,Wf,1,2,"color-preset",4),Ls(2,"reverse"),go()),2&e){var n=wo();fo("@opacityAnimation",n.showChildren)("@listAnimation",n.direction),cr(1),fo("ngForOf",Ks(2,3,n.list,"up"==n.direction||"right"==n.direction))}}var Uf,Yf,Xf=((Yf=function(){function e(t,n,r){_classCallCheck(this,e),this.renderer=t,this.document=n,this.cdr=r,this.selectionChange=new Ws(!1),this.direction="up",this.showChildren=!1,this.hooks=[]}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.removeListeners(),this.cdr.detach()}},{key:"removeListeners",value:function(){this.hooks.forEach((function(e){return e()})),this.hooks.length=0}},{key:"onSelectionChange",value:function(e){this.selectionChange.next(e)}},{key:"onLongPress",value:function(){this.showChildren=!0,this.listenDocumentClick()}},{key:"listenDocumentClick",value:function(){var e=this;this.hooks.push(this.renderer.listen(this.document,"mousedown",(function(){return e.closeList()}))),this.hooks.push(this.renderer.listen(this.document,"touchstart",(function(){return e.closeList()})))}},{key:"closeList",value:function(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}},{key:"className",get:function(){return"direction-".concat(this.direction)}}]),e}()).\u0275fac=function(e){return new(e||Yf)(ho(es),ho(al),ho(Ni))},Yf.\u0275cmp=rt({type:Yf,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(e,t){2&e&&Ro("className",t.className)},inputs:{list:"list",direction:"direction",activeColor:"activeColor"},outputs:{selectionChange:"selectionChange"},decls:4,vars:8,consts:[[3,"show-depth-title","color","activeColor","longPress","selectionChange"],[1,"reflection"],["class","sublist",4,"ngIf"],[1,"sublist"],[3,"color","activeColor","selectionChange",4,"ngFor","ngForOf"],[3,"color","activeColor","selectionChange"]],template:function(e,t){1&e&&(vo(0,"color-preset",0),Co("longPress",(function(){return t.onLongPress()}))("selectionChange",(function(e){return t.onSelectionChange(e)})),go(),yo(1,"div",1),yo(2,"div",1),uo(3,Gf,3,6,"div",2)),2&e&&(fo("show-depth-title",t.list.length>1)("color",t.list[0])("activeColor",t.activeColor),cr(1),Eo("background-color",t.list[0].toRgbaString()),cr(1),Eo("background-color",t.list[0].toRgbaString()),cr(1),fo("ngIf",t.showChildren))},directives:[Zf,vl,dl],pipes:[Qf],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 2px 4px rgba(0,0,0,.3);padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Pf,Of]},changeDetection:0}),Yf),Jf=((Uf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){return e.reduce((function(n,r,i){return i%t?n:n.concat([e.slice(i,i+t)])}),[])}}]),e}()).\u0275fac=function(e){return new(e||Uf)},Uf.\u0275pipe=ct({name:"chunks",type:Uf,pure:!0}),Uf),$f=function(e,t){return{first:e,last:t}};function ed(e,t){if(1&e){var n=mo();vo(0,"color-preset-sublist",5),Co("selectionChange",(function(e){return Ht(n),wo(3).onSelectionChange(e)})),go()}if(2&e){var r=wo(),i=r.$implicit,o=r.first,s=r.last,a=wo(2);fo("list",i)("direction",a.direction)("activeColor",a.color)("ngClass",js(4,$f,o,s))}}function td(e,t){if(1&e){var n=mo();vo(0,"color-preset",6),Co("selectionChange",(function(e){return Ht(n),wo(3).onSelectionChange(e)})),go()}if(2&e){var r=wo(),i=r.first,o=r.last,s=r.$implicit,a=wo(2);fo("ngClass",js(3,$f,i,o))("color",s)("activeColor",a.color)}}function nd(e,t){if(1&e&&(uo(0,ed,1,7,"color-preset-sublist",3),uo(1,td,1,6,"ng-template",null,4,la)),2&e){var n=t.$implicit,r=co(2);fo("ngIf",wo(2).isList(n))("ngIfElse",r)}}function rd(e,t){if(1&e&&(vo(0,"div",1),uo(1,nd,3,2,"ng-template",2),go()),2&e){var n=t.$implicit;fo("ngClass",js(2,$f,t.first,t.last)),cr(1),fo("ngForOf",n)}}var id,od=((id=function(){function e(){_classCallCheck(this,e),this.columns=8,this.hueChange=new Ws(!1),this.colorChange=new Ws(!1),this.direction="up"}return _createClass(e,[{key:"onSelectionChange",value:function(e){var t=e.getRgba(),n=e.getHsva(),r=(new $h).setRgba(t.red,t.green,t.blue,t.alpha),i=(new $h).setHsva(n.hue);this.hueChange.emit(i),this.colorChange.emit(r)}},{key:"isList",value:function(e){return Array.isArray(e)}}]),e}()).\u0275fac=function(e){return new(e||id)},id.\u0275cmp=rt({type:id,selectors:[["color-presets-component"]],inputs:{columns:"columns",colorPresets:"colorPresets",hue:"hue",color:"color",direction:"direction"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:2,vars:4,consts:[["class","row",3,"ngClass",4,"ngFor","ngForOf"],[1,"row",3,"ngClass"],["ngFor","",3,"ngForOf"],[3,"list","direction","activeColor","ngClass","selectionChange",4,"ngIf","ngIfElse"],["colorPreset",""],[3,"list","direction","activeColor","ngClass","selectionChange"],[3,"ngClass","color","activeColor","selectionChange"]],template:function(e,t){1&e&&(uo(0,rd,2,5,"div",0),Ls(1,"chunks")),2&e&&fo("ngForOf",Ks(1,1,t.colorPresets,t.columns))},directives:[dl,hl,vl,Xf,Zf],pipes:[Jf],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0}),id),sd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._value=e,r}return _createClass(n,[{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(A),ad=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ld(e,this.compare,this.keySelector))}}]),e}(),ld=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}]),n}(v),ud=function(e){return e.hex="hex",e.hexa="hexa",e.rgba="rgba",e.rgb="rgb",e.hsla="hsla",e.hsl="hsl",e.cmyk="cmyk",e}({}),cd=function(){function e(){var t;_classCallCheck(this,e),this.modelValue=null,this.hueValue=null,this.initValue=null,this.valueChanged=new A,this.presetsVisibilityChanges=new sd(!0),this.initType=null,this.alphaChannelVisibilityChanges=new sd(!0),this.valueChanges=this.valueChanged.asObservable().pipe((t=function(e,t){return e.toRgbaString()==t.toRgbaString()},function(e){return e.lift(new ad(t,void 0))})),this.colorPresets=[];var n=$h.from(new Xh(255,0,0,1));this.setValue(n),this.setHueColor(n)}return _createClass(e,[{key:"setValueFrom",value:function(e){var t=$h.from(e);return this.initValue||(this.initValue=$h.from(e)),"string"==typeof e&&this.finOutInputType(e),this.setHueColor(t),this.setValue(t),this}},{key:"setHueColor",value:function(e){(this.hueValue&&e.getHsva().hue>0||!this.hueValue)&&(this.hueValue=(new $h).setHsva(e.getHsva().hue))}},{key:"setValue",value:function(e){return this.modelValue=e,this.valueChanged.next(e),this}},{key:"reset",value:function(){var e;return this.initValue?(e=this.initValue.clone(),this.setHueColor(e)):(e=$h.from(new Xh(255,0,0,1)),this.hueValue=(new $h).setHsva(e.getHsva().hue)),this.setValue(e),this}},{key:"isAlphaChannelEnabled",value:function(){return this.alphaChannelVisibilityChanges.value}},{key:"showAlphaChannel",value:function(){return this.alphaChannelVisibilityChanges.next(!0),this}},{key:"hideAlphaChannel",value:function(){return this.alphaChannelVisibilityChanges.next(!1),this}},{key:"finOutInputType",value:function(e){var t=e.replace(/ /g,"").toLowerCase();"#"===t[0]&&(this.initType=ud.hex,t.length>7&&(this.initType=ud.hexa));var n=t.indexOf("(");switch(t.substr(0,n)){case ud.rgba:this.initType=ud.rgba;break;case ud.rgb:this.initType=ud.rgb;break;case ud.hsla:this.initType=ud.hsla;break;case ud.hsl:this.initType=ud.hsl;break;case ud.cmyk:this.initType=ud.cmyk}}},{key:"setColorPresets",value:function(e){return this.colorPresets=this.setPresets(e),this}},{key:"setPresets",value:function(e){var t,n=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;Array.isArray(i)?n.push(this.setPresets(i)):n.push(new $h(i))}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"hasPresets",value:function(){return this.colorPresets.length>0}},{key:"isPresetVisible",value:function(){return this.presetsVisibilityChanges.value}},{key:"showPresets",value:function(){return this.presetsVisibilityChanges.next(!0),this}},{key:"hidePresets",value:function(){return this.presetsVisibilityChanges.next(!1),this}},{key:"hue",get:function(){return this.hueValue},set:function(e){this.hueValue=e}},{key:"value",get:function(){return this.modelValue},set:function(e){this.setValue(e)}},{key:"presets",get:function(){return this.colorPresets}}]),e}();function hd(e,t){switch(t){case ud.hex:return e.toHexString();case ud.hexa:return e.toHexString(!0);case ud.rgb:return e.toRgbString();case ud.rgba:return e.toRgbaString();case ud.hsl:return e.toHslString();case ud.hsla:return e.toHslaString();default:return e.toRgbaString()}}function fd(e,t){if(1&e){var n=mo();vo(0,"alpha-component",14),Co("colorChange",(function(e){return Ht(n),wo().control.value=e})),go()}2&e&&fo("color",wo().control.value)}function dd(e,t){if(1&e){var n=mo();vo(0,"rgba-input-component",15),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),Ls(1,"async"),go()}if(2&e){var r=wo();fo("alpha",zs(1,3,r.control.alphaChannelVisibilityChanges))("color",r.control.value)("hue",r.control.hue)}}function pd(e,t){if(1&e){var n=mo();vo(0,"hsla-input-component",15),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),Ls(1,"async"),go()}if(2&e){var r=wo();fo("alpha",zs(1,3,r.control.alphaChannelVisibilityChanges))("color",r.control.value)("hue",r.control.hue)}}function vd(e,t){if(1&e){var n=mo();vo(0,"hex-input-component",16),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),go()}if(2&e){var r=wo();fo("color",r.control.value)("hue",r.control.hue)}}function gd(e,t){if(1&e){var n=mo();vo(0,"color-presets-component",17),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),go()}if(2&e){var r=wo();fo("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var yd,md=((yd=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.colorChange=new Ws(!1),this.subscriptions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.control||(this.control=new cd),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck(),e.colorChange.emit(hd(t,e.control.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}},{key:"changePresentation",value:function(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}}]),e}()).\u0275fac=function(e){return new(e||yd)(ho(Ni))},yd.\u0275cmp=rt({type:yd,selectors:[["chrome-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ko],decls:18,vars:16,consts:[[3,"hue","color","colorChange"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"colorType","color"],[3,"hue","color","hueChange","colorChange"],[3,"color","colorChange",4,"ngIf"],[1,"controls-row","presentation"],[1,"column",3,"ngSwitch"],["label","",3,"alpha","color","hue","colorChange","hueChange",4,"ngSwitchCase"],["label","","prefix","#",3,"color","hue","colorChange","hueChange",4,"ngSwitchCase"],[1,"column","type-column"],[1,"type-btn",3,"click"],[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[3,"color","colorChange"],["label","",3,"alpha","color","hue","colorChange","hueChange"],["label","","prefix","#",3,"color","hue","colorChange","hueChange"],[3,"color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(vo(0,"saturation-component",0),Co("colorChange",(function(e){return t.control.value=e})),go(),vo(1,"div",1),vo(2,"div",2),vo(3,"div",3),yo(4,"indicator-component",4),go(),vo(5,"div",3),vo(6,"hue-component",5),Co("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),uo(7,fd,1,1,"alpha-component",6),Ls(8,"async"),go(),go(),vo(9,"div",7),vo(10,"div",8),uo(11,dd,2,5,"rgba-input-component",9),uo(12,pd,2,5,"hsla-input-component",9),uo(13,vd,1,2,"hex-input-component",10),go(),vo(14,"div",11),vo(15,"span",12),Co("click",(function(){return t.changePresentation()})),go(),go(),go(),go(),uo(16,gd,1,3,"color-presets-component",13),Ls(17,"async")),2&e&&(fo("hue",t.control.hue)("color",t.control.value),cr(4),fo("colorType",t.presentations[t.selectedPresentation])("color",t.control.value),cr(2),fo("hue",t.control.hue)("color",t.control.value),cr(1),fo("ngIf",zs(8,12,t.control.alphaChannelVisibilityChanges)),cr(3),fo("ngSwitch",t.presentations[t.selectedPresentation]),cr(1),fo("ngSwitchCase","rgba"),cr(1),fo("ngSwitchCase","hsla"),cr(1),fo("ngSwitchCase","hex"),cr(3),fo("ngIf",zs(17,14,t.control.presetsVisibilityChanges)))},directives:[nf,rf,sf,vl,Tl,Pl,uf,yf,xf,Tf,od],pipes:[Nl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}[_nghost-%COMP%] .controls .pointer{box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:rgba(0,0,0,0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==") no-repeat 50%;background-size:6px 12px}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] color-preset{box-shadow:inset 0 0 2px rgba(0,0,0,.3)}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover{-ms-transform:scale(1.18);transform:scale(1.18)}'],changeDetection:0}),yd);function _d(e,t){if(1&e){var n=mo();vo(0,"alpha-component",12),Co("colorChange",(function(e){return Ht(n),wo().control.value=e})),go()}2&e&&fo("color",wo().control.value)}function Cd(e,t){if(1&e){var n=mo();vo(0,"color-presets-component",13),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),go()}if(2&e){var r=wo();fo("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var bd,kd=((bd=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.colorChange=new Ws(!1),this.subscriptions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.control||(this.control=new cd),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#d0041b","#8b572a","#f5a623","#f8e71c","#7ed321","#417506","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#030303","#4a4a4a","#9b9b9b","#fff"]),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck(),e.colorChange.emit(hd(t,e.control.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}]),e}()).\u0275fac=function(e){return new(e||bd)(ho(Ni))},bd.\u0275cmp=rt({type:bd,selectors:[["sketch-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ko],decls:17,vars:18,consts:[[3,"hue","color","colorChange"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"hue","color","hueChange","colorChange"],[3,"color","colorChange",4,"ngIf"],[1,"column","indicator-column"],["colorType","rgba",3,"color"],[1,"controls-row","presentation"],["label","",3,"color","hue","colorChange","hueChange"],["label","",3,"alpha","color","hue","colorChange","hueChange"],[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[3,"color","colorChange"],[3,"color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(vo(0,"saturation-component",0),Co("colorChange",(function(e){return t.control.value=e})),go(),vo(1,"div",1),vo(2,"div",2),vo(3,"div",3),vo(4,"hue-component",4),Co("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),uo(5,_d,1,1,"alpha-component",5),Ls(6,"async"),go(),vo(7,"div",6),yo(8,"indicator-component",7),go(),go(),vo(9,"div",8),vo(10,"div",3),vo(11,"hex-input-component",9),Co("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),go(),go(),vo(12,"div",3),vo(13,"rgba-input-component",10),Co("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),Ls(14,"async"),go(),go(),go(),go(),uo(15,Cd,1,3,"color-presets-component",11),Ls(16,"async")),2&e&&(fo("hue",t.control.hue)("color",t.control.value),cr(4),fo("hue",t.control.hue)("color",t.control.value),cr(1),fo("ngIf",zs(6,12,t.control.alphaChannelVisibilityChanges)),cr(3),fo("color",t.control.value),cr(3),fo("color",t.control.value)("hue",t.control.hue),cr(2),fo("alpha",zs(14,14,t.control.alphaChannelVisibilityChanges))("color",t.control.value)("hue",t.control.hue),cr(2),fo("ngIf",zs(16,16,t.control.presetsVisibilityChanges)))},directives:[nf,sf,vl,rf,Tf,yf,uf,od],pipes:[Nl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;padding:9px;width:220px;border-radius:4px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}saturation-component[_ngcontent-%COMP%]{height:146px;border-radius:2px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:0 0 2px rgba(0,0,0,.6);width:10px;height:10px}.controls[_ngcontent-%COMP%]{padding:4px 0 0}alpha-component[_ngcontent-%COMP%], hue-component[_ngcontent-%COMP%]{height:10px;border-radius:2px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}hue-component[_ngcontent-%COMP%]{margin-bottom:4px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.indicator-column[_ngcontent-%COMP%]{width:25px}indicator-component[_ngcontent-%COMP%]{height:24px;width:100%;box-shadow:inset 0 0 2px rgba(0,0,0,.6);border-radius:2px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px 9px 0;margin:8px -9px 0}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:5%}.controls-row.hue-alpha[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{padding-right:5px}.hue-alpha[_ngcontent-%COMP%] .pointer{width:6px;margin:0 0 0 -3px;height:100%;top:0;border-radius:2px;border:1px solid #898989}.presentation[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:56px}.presentation[_ngcontent-%COMP%] input{height:20px;font-size:11px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{height:16px;width:16px;border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset 0 0 2px rgba(0,0,0,.4)}[_nghost-%COMP%] color-preset.selected{box-shadow:inset 0 1px 4px rgba(0,0,0,.4)}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 10px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}"],changeDetection:0}),bd);function wd(e,t){if(1&e){var n=mo();vo(0,"color-presets-component",12),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),go()}if(2&e){var r=wo();fo("columns",9)("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var xd,Sd,Ad=((Sd=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.colorChange=new Ws(!1),this.subscriptions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.control||(this.control=new cd),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#6da6e8","#74c283","#f9d948","#f5943f","#f66c6c","#ef8ab8","#696cd4","#6c6c6c","#f6f5f5"]),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck(),e.colorChange.emit(hd(t,e.control.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}]),e}()).\u0275fac=function(e){return new(e||Sd)(ho(Ni))},Sd.\u0275cmp=rt({type:Sd,selectors:[["compact-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ko],decls:15,vars:10,consts:[["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[1,"controls"],[1,"controls-row","saturation-hue"],[1,"column"],[3,"hue","color","colorChange"],[1,"column","hue-column"],["vertical","",3,"hue","color","hueChange","colorChange"],[1,"controls-row","presentation"],["viewBox","0 0 1024 1024",1,"pencil"],["d","M639.77,121.045l-48.598,84.2l112.215,64.8l48.6-84.205L639.77,121.045z M558.773,261.354\n L315.78,682.206l112.215,64.795L670.99,326.15L558.773,261.354z M690.816,75.691l74.922,43.286\n c41.682,24.045,55.52,76.564,31.725,117.784l-37.967,65.68l-32.398,56.11L451.706,835.594L282.452,947.303\n c-40.961,27.004-70.24,9.027-67.329-38.894l12.149-202.411l275.395-477.041l32.398-56.11l37.883-65.686\n C596.824,65.946,649.473,51.857,690.816,75.691z M274.689,883.015l120.908-79.818l-112.218-64.8L274.689,883.015z"],["prefix","#",3,"color","hue","colorChange","hueChange"],["colorType","hex",3,"color"],["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(uo(0,wd,1,4,"color-presets-component",0),Ls(1,"async"),vo(2,"div",1),vo(3,"div",2),vo(4,"div",3),vo(5,"saturation-component",4),Co("colorChange",(function(e){return t.control.value=e})),go(),go(),vo(6,"div",5),vo(7,"hue-component",6),Co("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),go(),go(),vo(8,"div",7),vo(9,"div",3),an(),vo(10,"svg",8),yo(11,"path",9),go(),Ft.lFrame.currentNamespace=null,vo(12,"hex-input-component",10),Co("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),go(),go(),vo(13,"div",3),yo(14,"indicator-component",11),go(),go(),go()),2&e&&(fo("ngIf",zs(1,8,t.control.presetsVisibilityChanges)),cr(5),fo("hue",t.control.hue)("color",t.control.value),cr(2),fo("hue",t.control.hue)("color",t.control.value),cr(5),fo("color",t.control.value)("hue",t.control.hue),cr(2),fo("color",t.control.value))},directives:[vl,nf,sf,Tf,rf,od],pipes:[Nl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:240px;border-radius:3px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 0 4px rgba(0,0,0,.3)}color-presets-component[_ngcontent-%COMP%]{border-bottom:1px solid #e4e4e6;padding:9px 12px}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}.controls[_ngcontent-%COMP%]{padding:10px 12px 12px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.controls-row.saturation-hue[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.saturation-hue[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:178px}saturation-component[_ngcontent-%COMP%]{height:178px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:0 0 2px rgba(0,0,0,.6)}.hue-column[_ngcontent-%COMP%]{padding-left:14px}[_nghost-%COMP%] hue-component[_ngcontent-%COMP%]{width:100%;height:178px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}[_nghost-%COMP%] hue-component[vertical][_ngcontent-%COMP%] .pointer{width:auto;height:9px;left:-3px;right:-3px;margin:-4.5px 0 0;background:rgba(0,0,0,0);border:3px solid #fff;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.6)}.controls-row.presentation[_ngcontent-%COMP%]{border:1px solid #e4e4e6;border-radius:3px;padding:6px 6px 6px 26px;position:relative}indicator-component[_ngcontent-%COMP%]{height:18px;width:18px;box-shadow:inset 0 0 2px rgba(0,0,0,.6);border-radius:50%}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:25%}hex-input-component[_ngcontent-%COMP%] input{border:0;color:#817e81;margin:0;text-align:left;height:18px}.pencil[_ngcontent-%COMP%]{position:absolute;height:14px;width:14px;left:6px;top:50%;margin:-7px 0 0}.pencil[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%] .reflection{display:none}[_nghost-%COMP%] color-preset{height:18px;width:18px;border-radius:50%;box-shadow:inset 0 1px 1px rgba(0,0,0,.6)}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 6px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] color-preset.selected{box-shadow:inset 0 1px 6px rgba(0,0,0,.6)}"],changeDetection:0}),Sd),Ed=((xd=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.colorChange=new Ws(!1),this.subscriptions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.control||(this.control=new cd),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#b80000","#db3e00","#fccb00","#008b02","#006b76","#1273de","#004dcf","#5300eb","#eb9694","#fad0c3","#fef3bd","#c1e1c5","#bedadc","#c4def6","#bed3f3","#d4c4fb"]),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck(),e.colorChange.emit(hd(t,e.control.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}]),e}()).\u0275fac=function(e){return new(e||xd)(ho(Ni))},xd.\u0275cmp=rt({type:xd,selectors:[["github-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ko],decls:1,vars:2,consts:[["direction","down",3,"color","colorPresets","colorChange"]],template:function(e,t){1&e&&(vo(0,"color-presets-component",0),Co("colorChange",(function(e){return t.control.value=e})),go()),2&e&&fo("color",t.control.value)("colorPresets",t.control.presets)},directives:[od],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:212px;border:1px solid rgba(0,0,0,.2);box-shadow:0 3px 12px rgba(0,0,0,.15);border-radius:4px;padding:5px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:25px;height:25px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;z-index:10;border:2px solid #fff;box-shadow:0 0 5px 2px rgba(0,0,0,.2)}'],changeDetection:0}),xd);function Td(e,t){if(1&e){var n=mo();vo(0,"color-presets-component",2),Co("colorChange",(function(e){return Ht(n),wo().childControl.value=e})),go()}if(2&e){var r=wo();fo("columns",7)("color",r.childControl.value)("colorPresets",r.childControl.presets)}}var Pd,Od,Id=((Od=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.colorChange=new Ws(!1),this.control=new cd,this.childControl=new cd,this.subscriptions=[],this.mapColors={"#E6315B":["#fc8da7","#fa7d9a","#f56484","#f04a71","#e82c58","#e31746","#de0235","#d60234","#d10232","#c70230","#b8022c","#ab0229","#9c0225","#8f0122","#8c0122","#82011f","#78011b","#690117","#5c0012","#4f0010","#42000c"],"#793183":["#ef8dfc","#eb7dfa","#e664f5","#dc4af0","#d22ce8","#cb17e3","#c402de","#c002d9","#bb02d4","#b002c7","#a202b8","#9702ab","#8a029c","#7e018f","#7a018a","#730182","#6c0178","#5e0169","#54015c","#49014f","#3d0142"],"#009DE7":["#8dd9fc","#7dd2fa","#64c7f5","#4abbf0","#2cade8","#17a2e3","#0298de","#0295d9","#0291d4","#0289c7","#027eb8","#0275ab","#026b9c","#01628f","#015f8a","#015982","#015278","#014869","#013f5c","#01364f","#012e42"],"#00B59C":["#8dfeea","#7dfbe4","#63f4db","#4befd2","#2de7c6","#16e2be","#03deb7","#01ddb6","#01d4ae","#01c7a4","#01b897","#01aa8b","#019b80","#019076","#018c73","#01836c","#017763","#016857","#005c4e","#005044","#004239"],"#FFCE00":["#fce68d","#fae17d","#f5da64","#f0cf4a","#e8c22c","#e5bc17","#deb202","#deb100","#d4aa02","#c7a002","#b89302","#ab8902","#9c7d02","#8f7301","#8c7001","#826801","#786201","#695601","#5c4b00","#4f4100","#423700"],"#FF4A21":["#fca28d","#fa947d","#f57f64","#f0694a","#e84f2c","#e33c17","#de2a02","#d92a02","#d42902","#c72602","#b82302","#ab2102","#9c1e02","#8f1b01","#8a1a01","#821901","#781701","#691300","#5c1100","#4f0e00","#420c00"],"#D6D5D6":["#fff","#f2f2f2","#e5e5e5","#d9d9d9","#cccccc","#bfbfbf","#b3b3b3","#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#595959","#4d4d4d","#424242","#363636","#262626","#1a1a1a","#0f0f0f","#000"]}}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.color?this.childControl.setValueFrom(this.color):this.control.setValueFrom("#E6315B"),this.control.setColorPresets(["#e6315b","#793183","#009de7","#00b59c","#ffce00","#ff4a21","#d6d5d6"]),this.childControl.setColorPresets(this.mapColors["#E6315B"]),this.subscriptions.push(this.childControl.valueChanges.subscribe((function(t){e.colorChange.emit(hd(t,e.childControl.initType))}))),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck();var n=e.mapColors[t.toHexString()];n&&e.childControl.setColorPresets(n),e.colorChange.emit(hd(e.childControl.value,e.childControl.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.childControl.setValueFrom(this.color)}}]),e}()).\u0275fac=function(e){return new(e||Od)(ho(Ni))},Od.\u0275cmp=rt({type:Od,selectors:[["swatches-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},features:[Ko],decls:2,vars:4,consts:[["direction","down",3,"columns","color","colorPresets","colorChange"],["class","child-list","direction","down",3,"columns","color","colorPresets","colorChange",4,"ngIf"],["direction","down",1,"child-list",3,"columns","color","colorPresets","colorChange"]],template:function(e,t){1&e&&(vo(0,"color-presets-component",0),Co("colorChange",(function(e){return t.control.value=e})),go(),uo(1,Td,1,3,"color-presets-component",1)),2&e&&(fo("columns",7)("color",t.control.value)("colorPresets",t.control.presets),cr(1),fo("ngIf",t.childControl.presets.length))},directives:[od,vl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:224px;border:1px solid rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.3);border-radius:4px;padding:6px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:30px;height:30px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:3px;top:3px;bottom:3px;right:3px;z-index:10;border:3px solid #fff;box-shadow:0 0 5px 2px rgba(0,0,0,.2)}[_nghost-%COMP%] .row:first-child color-preset-sublist:first-child, [_nghost-%COMP%] .row:first-child color-preset:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .row.last color-preset-sublist.last, [_nghost-%COMP%] .row.last color-preset.last{border-radius:0 4px 4px 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.first color-preset.first{border-radius:4px 0 0 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.first color-preset.last{border-radius:0 4px 0 0}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.last color-preset.first{border-radius:0 0 0 4px}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.last color-preset.last{border-radius:0 0 4px 0}[_nghost-%COMP%] .child-list{margin-top:6px;border-top:1px solid #e5e5e5;padding:6px 0 0}[_nghost-%COMP%] .child-list color-preset.selected:after, [_nghost-%COMP%] .child-list color-preset:hover:after{content:"\u2714";font-size:18px;color:#fff;border:0;left:0;top:0;bottom:0;right:0;line-height:30px;box-shadow:none;text-align:center}'],changeDetection:0}),Od),Md=((Pd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[{provide:Qh,useValue:t||new Qh}]}}}]),e}()).\u0275mod=at({type:Pd}),Pd.\u0275inj=se({factory:function(e){return new(e||Pd)},providers:[Qh],imports:[[Fl]]}),Pd),Vd=n("Eh/9");function Nd(e,t){1&e&&yo(0,"chrome-picker",2),2&e&&fo("control",wo().colorControl)}function Fd(e,t){if(1&e){var n=mo();vo(0,"div",3),Co("click",(function(e){return Ht(n),wo().overlayClick(e)})),go()}}var Rd,Dd,jd,Hd,qd=((Hd=function(){function e(){_classCallCheck(this,e),this.colorControl=new cd,this.isVisible=!1,this.colorChange=new Ws}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.colorControl.valueChanges.subscribe((function(t){return e.colorChange.emit(t.toHexString())}))}},{key:"showColorPicker",value:function(e){!0!==this.isVisible&&(this.isVisible=!this.isVisible)}},{key:"overlayClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.isVisible=!1}},{key:"color",set:function(e){this.colorControl.setValueFrom(e)}},{key:"background",get:function(){return this.colorControl.value.toHexString()}}]),e}()).\u0275fac=function(e){return new(e||Hd)},Hd.\u0275cmp=rt({type:Hd,selectors:[["chrome-wrapper"]],hostVars:2,hostBindings:function(e,t){1&e&&Co("click",(function(e){return t.showColorPicker(e)})),2&e&&Eo("background-color",t.background)},inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:2,vars:2,consts:[[3,"control",4,"ngIf"],["class","overlay",3,"click",4,"ngIf"],[3,"control"],[1,"overlay",3,"click"]],template:function(e,t){1&e&&(uo(0,Nd,1,1,"chrome-picker",0),uo(1,Fd,1,0,"div",1)),2&e&&(fo("ngIf",t.isVisible),cr(1),fo("ngIf",t.isVisible))},directives:[vl,md],styles:["[_nghost-%COMP%]{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px}chrome-picker[_ngcontent-%COMP%]{left:100%;position:absolute;top:100%;z-index:2}.overlay[_ngcontent-%COMP%]{background:rgba(0,0,0,0);left:0;position:fixed;top:0;height:100%;width:100%;z-index:1}"]}),Hd),Bd=((jd=function(){function e(t){_classCallCheck(this,e),this.elRef=t,this.color="rgba(54, 86, 4, 1)",this.chromeControl=(new cd).setValueFrom(Jh.aquamarine).hidePresets().hideAlphaChannel(),this.sketchControl=(new cd).setValueFrom("#A6771C"),this.compactControl=new cd,this.githubControl=(new cd).setValueFrom("#1273DE"),this.swatchesColor="#F04A71",this.wrapperColor="#F04A71"}return _createClass(e,[{key:"ngAfterViewInit",value:function(){this.elRef.nativeElement.querySelectorAll(".prettify").forEach((function(e){return e.innerHTML=Vd.prettyPrintOne(e.innerHTML)}))}}]),e}()).\u0275fac=function(e){return new(e||jd)(ho(Yo))},jd.\u0275cmp=rt({type:jd,selectors:[["app-root"]],decls:726,vars:48,consts:[[1,"jumbotron"],[1,"background"],[1,"container"],[1,"row"],[1,"col"],[1,"display-4"],["href","https://github.com/pIvan/ngx-color-picker","role","button","aria-pressed","true",1,"btn","btn-primary","btn-lg","active"],[1,"row","pickers-row"],[1,"col","col-md-6","text-right"],[3,"color","colorChange"],[1,"col","col-md-6"],[1,"card"],[1,"card-header"],[1,"card-block"],[2,"padding","0 0 0 40px"],["id","installation",1,"card"],[1,"prettify"],["id","usage",1,"card"],[1,"col","col-lg-4"],[1,"info-row"],[3,"control"],[1,"col","col-lg-8"],[1,"buttons-row"],[1,"btn","btn-primary",3,"click"],["id","wrap-component",1,"card"],[1,"table","table-bordered","table-striped"],["target","_blank","href","https://www.w3.org/TR/css-color-3/#svg-color"]],template:function(e,t){if(1&e){vo(0,"div",0),yo(1,"div",1),vo(2,"div",2),vo(3,"div",3),vo(4,"div",4),vo(5,"h1",5),No(6,"@iplab/ngx-color-picker"),go(),yo(7,"br"),vo(8,"a",6),No(9,"GitHub"),go(),go(),go(),vo(10,"div",7),vo(11,"div",8),vo(12,"sketch-picker",9),Co("colorChange",(function(e){return t.color=e})),go(),go(),vo(13,"div",10),vo(14,"chrome-picker",9),Co("colorChange",(function(e){return t.color=e})),go(),go(),go(),go(),go(),vo(15,"div",2),vo(16,"div",11),vo(17,"div",12),No(18,"Getting started"),go(),vo(19,"div",13),vo(20,"ol"),vo(21,"li"),No(22,"Fork and clone this repo"),go(),vo(23,"li"),No(24,"npm install"),go(),vo(25,"li"),No(26,'Open a terminal and type "npm run start"'),go(),go(),vo(27,"p",14),vo(28,"b"),No(29,"or"),go(),go(),vo(30,"ol"),vo(31,"li"),No(32,"npm install @iplab/ngx-color-picker --save"),go(),vo(33,"li"),No(34,"ng serve --open"),go(),go(),go(),go(),yo(35,"br"),vo(36,"div",11),vo(37,"div",12),No(38,"Description"),go(),vo(39,"div",13),vo(40,"p"),No(41,"Pure Angular color picker library."),go(),vo(42,"ul"),vo(43,"li"),No(44,"It's an Angular color picker"),go(),vo(45,"li"),No(46,"Compatible with Angular 5+ versions"),go(),vo(47,"li"),No(48,"No external dependency"),go(),vo(49,"li"),No(50,"Simple to configure"),go(),vo(51,"li"),No(52,"Easy to use"),go(),go(),go(),go(),yo(53,"br"),vo(54,"div",15),vo(55,"div",12),No(56,"Installation"),go(),vo(57,"div",13),vo(58,"p"),No(59,"To install this component to an external project, follow the procedure:"),go(),vo(60,"ol"),vo(61,"li"),vo(62,"code"),No(63,"npm install @iplab/ngx-color-picker --save"),go(),go(),vo(64,"li"),vo(65,"pre",16),No(66,"import { ColorPickerModule } from '@iplab/ngx-color-picker';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n...\n...\n\n\n@NgModule({\n imports: [\n BrowserModule,\n ColorPickerModule,\n "),vo(67,"b"),No(68,"BrowserAnimationsModule"),go(),No(69," or "),vo(70,"b"),No(71,"NoopAnimationsModule"),go(),No(72," // need to be included\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}"),go(),go(),vo(73,"li"),vo(74,"code"),No(75,''),go(),go(),go(),go(),go(),yo(76,"br"),vo(77,"div",17),vo(78,"div",12),No(79,"Usage"),go(),vo(80,"div",13),vo(81,"h6"),No(82,"predefined components"),go(),vo(83,"p"),No(84,"Color picker have 5 predefined components. Each component, except swatches-picker,"),yo(85,"br"),No(86," can be used with direct color binding "),vo(87,"b"),No(88,"or/and"),go(),No(89," with control which provides greater flexibility"),go(),vo(90,"p"),vo(91,"code"),No(92,''),go(),yo(93,"br"),vo(94,"code"),No(95,''),go(),yo(96,"br"),vo(97,"code"),No(98,''),go(),yo(99,"br"),vo(100,"code"),No(101,''),go(),yo(102,"br"),vo(103,"code"),No(104,''),go(),go(),yo(105,"hr"),vo(106,"h6"),No(107,"[color] attribute"),go(),vo(108,"p"),No(109,"When binding over attribute "),vo(110,"b"),No(111,"[color]"),go(),No(112," is used, component try to determine which value type is used so the output would be the same."),yo(113,"br"),vo(114,"b"),No(115,"Examples:"),go(),yo(116,"br"),vo(117,"code"),No(118,''),go(),No(119," -> output is "),vo(120,"b"),No(121,"rgb"),go(),yo(122,"br"),vo(123,"code"),No(124,''),go(),No(125," -> output is "),vo(126,"b"),No(127,"rgba"),go(),yo(128,"br"),vo(129,"code"),No(130,''),go(),No(131," -> output is "),vo(132,"b"),No(133,"hsl"),go(),yo(134,"br"),vo(135,"code"),No(136,''),go(),No(137," -> output is "),vo(138,"b"),No(139,"hex"),go(),go(),yo(140,"hr"),vo(141,"h6"),No(142,"[control] attribute"),go(),vo(143,"p"),No(144,"When binding over "),vo(145,"b"),No(146,"[control]"),go(),No(147," user have greater control over color output and all events"),yo(148,"br"),vo(149,"b"),No(150,"Examples:"),go(),yo(151,"br"),vo(152,"code"),No(153,''),go(),go(),yo(154,"hr"),vo(155,"h6"),No(156,"color indicator"),go(),vo(157,"p"),No(158,"Color indicator is not only indicator, but click also allows copying component color to clipboard."),yo(159,"br"),No(160," Text which is displayed on mouseover can be configured over NgModule configuration"),go(),vo(161,"pre",16),No(162,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public indicatorTitle: string = 'Copy color to clipboard';\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),go(),yo(163,"hr"),vo(164,"h6"),No(165,"color presets"),go(),vo(166,"p"),No(167,"color presets on click choose a color, if the child list is available user can show it by long press on certain colors"),yo(168,"br"),No(169," Text which is displayed on mouseover can be configured over NgModule configuration"),go(),vo(170,"pre",16),Ft.bindingsEnabled=!1,No(171,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public presetsTitle: string = '{0}. Long-click to show alternate shades.'; // {0} is the place where hex value will be placed\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),Ft.bindingsEnabled=!0,go(),yo(172,"hr"),vo(173,"h6"),No(174,"all color picker parts"),go(),vo(175,"p"),No(176,"Color picker library exports all parts to enable custom components builds"),yo(177,"br"),No(178," Here is a list of all available components and their attributes (optional attributes are marked with question mark) "),go(),vo(179,"pre",16),No(180,'\n\n\n\n\n\n\n\n\n\n'),go(),vo(181,"h6"),No(182,"attributes explanation"),go(),vo(183,"p"),vo(184,"b"),No(185,"color =>"),go(),No(186," currently selected color (output color)"),yo(187,"br"),vo(188,"b"),No(189,"hue =>"),go(),No(190," color used internally as current hue color"),yo(191,"br"),vo(192,"b"),No(193,"colorType =>"),go(),No(194," specify which type of color should be copied to the clipboard"),yo(195,"br"),vo(196,"b"),No(197,"vertical =>"),go(),No(198," should component be placed horizontally or vertically"),yo(199,"br"),vo(200,"b"),No(201,"alpha =>"),go(),No(202," should component display alpha channel"),yo(203,"br"),vo(204,"b"),No(205,"label =>"),go(),No(206," whether the label will be displayed or not (rgba, hsla, hex)"),yo(207,"br"),vo(208,"b"),No(209,"prefix =>"),go(),No(210," definition of label prefix"),yo(211,"br"),vo(212,"b"),No(213,"colorPresets =>"),go(),No(214," list of colors used as presets "),go(),go(),go(),yo(215,"br"),vo(216,"div",11),vo(217,"div",12),No(218,"Chrome color picker"),go(),vo(219,"div",13),vo(220,"div",3),vo(221,"div",18),vo(222,"div",19),vo(223,"code"),No(224),go(),vo(225,"code"),No(226),go(),vo(227,"code"),No(228),go(),vo(229,"code"),No(230),go(),vo(231,"code"),No(232),go(),vo(233,"code"),No(234),go(),vo(235,"code"),No(236),go(),vo(237,"code"),No(238),go(),vo(239,"code"),No(240),go(),go(),yo(241,"chrome-picker",20),go(),vo(242,"div",21),vo(243,"p"),No(244,"Component code"),go(),vo(245,"pre",16),No(246,"@Component({\n...\n})\nexport class AppComponent {\n\n public chromeControl = new ColorPickerControl()\n .setValueFrom(ColorsTable.aquamarine)\n .hidePresets()\n .hideAlphaChannel();\n\n constructor() { \n }\n}"),go(),vo(247,"p"),No(248,"Template code"),go(),vo(249,"pre",16),No(250,''),go(),go(),go(),vo(251,"div",22),vo(252,"button",23),Co("click",(function(){return t.chromeControl.isPresetVisible()?t.chromeControl.hidePresets():t.chromeControl.showPresets()})),No(253,"Toggle presets visibility"),go(),No(254," \xa0 "),vo(255,"button",23),Co("click",(function(){return t.chromeControl.reset()})),No(256,"Reset to initial"),go(),No(257," \xa0 "),vo(258,"button",23),Co("click",(function(){return t.chromeControl.isAlphaChannelEnabled()?t.chromeControl.hideAlphaChannel():t.chromeControl.showAlphaChannel()})),No(259,"Toggle alpha channel"),go(),go(),go(),go(),yo(260,"br"),vo(261,"div",11),vo(262,"div",12),No(263,"Sketch color picker"),go(),vo(264,"div",13),vo(265,"div",3),vo(266,"div",18),vo(267,"div",19),vo(268,"code"),No(269),go(),vo(270,"code"),No(271),go(),vo(272,"code"),No(273),go(),vo(274,"code"),No(275),go(),vo(276,"code"),No(277),go(),vo(278,"code"),No(279),go(),vo(280,"code"),No(281),go(),vo(282,"code"),No(283),go(),vo(284,"code"),No(285),go(),go(),yo(286,"sketch-picker",20),go(),vo(287,"div",21),vo(288,"p"),No(289,"Component code"),go(),vo(290,"pre",16),No(291,"@Component({\n...\n})\nexport class AppComponent {\n\n public sketchControl = new ColorPickerControl()\n .setValueFrom('#A6771C');\n\n constructor() { \n }\n}"),go(),vo(292,"p"),No(293,"Template code"),go(),vo(294,"pre",16),No(295,''),go(),go(),go(),vo(296,"div",22),vo(297,"button",23),Co("click",(function(){return t.sketchControl.isPresetVisible()?t.sketchControl.hidePresets():t.sketchControl.showPresets()})),No(298,"Toggle presets visibility"),go(),No(299," \xa0 "),vo(300,"button",23),Co("click",(function(){return t.sketchControl.reset()})),No(301,"Reset to initial"),go(),No(302," \xa0 "),vo(303,"button",23),Co("click",(function(){return t.sketchControl.isAlphaChannelEnabled()?t.sketchControl.hideAlphaChannel():t.sketchControl.showAlphaChannel()})),No(304,"Toggle alpha channel"),go(),go(),go(),go(),yo(305,"br"),vo(306,"div",11),vo(307,"div",12),No(308,"Compact color picker"),go(),vo(309,"div",13),vo(310,"div",3),vo(311,"div",18),vo(312,"div",19),vo(313,"code"),No(314),go(),vo(315,"code"),No(316),go(),vo(317,"code"),No(318),go(),vo(319,"code"),No(320),go(),vo(321,"code"),No(322),go(),vo(323,"code"),No(324),go(),vo(325,"code"),No(326),go(),vo(327,"code"),No(328),go(),vo(329,"code"),No(330),go(),go(),yo(331,"compact-picker",20),go(),vo(332,"div",21),vo(333,"p"),No(334,"Component code"),go(),vo(335,"pre",16),No(336,"@Component({\n...\n})\nexport class AppComponent {\n\n public compactControl = new ColorPickerControl();\n\n constructor() { \n }\n}"),go(),vo(337,"p"),No(338,"Template code"),go(),vo(339,"pre",16),No(340,''),go(),go(),go(),vo(341,"div",22),vo(342,"button",23),Co("click",(function(){return t.compactControl.isPresetVisible()?t.compactControl.hidePresets():t.compactControl.showPresets()})),No(343,"Toggle presets visibility"),go(),No(344," \xa0 "),vo(345,"button",23),Co("click",(function(){return t.compactControl.reset()})),No(346,"Reset to initial"),go(),go(),go(),go(),yo(347,"br"),vo(348,"div",11),vo(349,"div",12),No(350,"Github color picker"),go(),vo(351,"div",13),vo(352,"div",3),vo(353,"div",18),vo(354,"div",19),vo(355,"code"),No(356),go(),vo(357,"code"),No(358),go(),vo(359,"code"),No(360),go(),vo(361,"code"),No(362),go(),vo(363,"code"),No(364),go(),vo(365,"code"),No(366),go(),vo(367,"code"),No(368),go(),vo(369,"code"),No(370),go(),vo(371,"code"),No(372),go(),go(),yo(373,"github-picker",20),go(),vo(374,"div",21),vo(375,"p"),No(376,"Component code"),go(),vo(377,"pre",16),No(378,"@Component({\n...\n})\nexport class AppComponent {\n\n public githubControl = new ColorPickerControl()\n .setValueFrom('#1273DE');\n\n constructor() { \n }\n}"),go(),vo(379,"p"),No(380,"Template code"),go(),vo(381,"pre",16),No(382,''),go(),go(),go(),vo(383,"div",22),vo(384,"button",23),Co("click",(function(){return t.githubControl.reset()})),No(385,"Reset to initial"),go(),go(),go(),go(),yo(386,"br"),vo(387,"div",11),vo(388,"div",12),No(389,"Swatches color picker"),go(),vo(390,"div",13),vo(391,"div",3),vo(392,"div",18),vo(393,"p"),No(394,"Swatches component only supports binding over color attribute"),go(),vo(395,"div",19),vo(396,"code"),No(397),go(),yo(398,"br"),go(),vo(399,"swatches-picker",9),Co("colorChange",(function(e){return t.swatchesColor=e})),go(),go(),vo(400,"div",21),vo(401,"p"),No(402,"Component code"),go(),vo(403,"pre",16),No(404,"@Component({\n...\n})\nexport class AppComponent {\n\n public swatchesColor = '#F04A71'\n\n constructor() { \n }\n}"),go(),vo(405,"p"),No(406,"Template code"),go(),vo(407,"pre",16),No(408,''),go(),go(),go(),go(),go(),yo(409,"br"),vo(410,"div",24),vo(411,"div",12),No(412,"How to wrapp color picker"),go(),vo(413,"div",13),vo(414,"div",3),vo(415,"div",18),vo(416,"div",19),vo(417,"code"),No(418),go(),yo(419,"br"),go(),vo(420,"chrome-wrapper",9),Co("colorChange",(function(e){return t.wrapperColor=e})),go(),go(),vo(421,"div",21),vo(422,"p"),No(423,"Component code"),go(),vo(424,"pre",16),No(425,"@Component({\n...\nselector: 'chrome-wrapper',\ntemplate: '\n\n
\n'\n})\nexport class ChromeWrapperComponent {\n\n public colorControl = new ColorPickerControl();\n\n public isVisible: boolean = false;\n\n @Input()\n public set color(color: string) {\n this.colorControl.setValueFrom(color);\n }\n\n @Output()\n public colorChange: EventEmitter = new EventEmitter();\n\n @HostBinding('style.background-color')\n public get background(): string {\n return this.colorControl.value.toHexString();\n }\n\n public ngOnInit() {\n this.colorControl.valueChanges.subscribe((value: Color) => this.colorChange.emit(value.toHexString()));\n }\n\n @HostListener('click', ['$event'])\n public showColorPicker(event: MouseEvent) {\n if (this.isVisible === true) {\n return;\n }\n\n this.isVisible = !this.isVisible;\n }\n\n public overlayClick(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isVisible = false;\n }\n}"),go(),vo(426,"p"),No(427,"Use case"),go(),vo(428,"pre",16),No(429,''),go(),go(),go(),go(),go(),yo(430,"br"),vo(431,"div",11),vo(432,"div",12),No(433,"ColorPickerControl methods"),go(),vo(434,"div",13),vo(435,"table",25),vo(436,"thead"),vo(437,"tr"),vo(438,"th"),No(439,"Property"),go(),vo(440,"th"),No(441,"Type"),go(),vo(442,"th"),No(443,"Description"),go(),go(),go(),vo(444,"tbody"),vo(445,"tr"),vo(446,"td"),No(447,"setValueFrom"),go(),vo(448,"td"),vo(449,"code"),No(450,"Function"),go(),go(),vo(451,"td"),No(452,"Set value from Color, Rgba, Hsla, Hsva or ColorString"),go(),go(),vo(453,"tr"),vo(454,"td"),No(455,"value"),go(),vo(456,"td"),vo(457,"code"),No(458,"Getter.value"),go(),go(),vo(459,"td"),No(460,"get value as a Color object"),go(),go(),vo(461,"tr"),vo(462,"td"),No(463,"reset"),go(),vo(464,"td"),vo(465,"code"),No(466,"Function"),go(),go(),vo(467,"td"),No(468,"reset value to initial state"),go(),go(),vo(469,"tr"),vo(470,"td"),No(471,"valueChanges"),go(),vo(472,"td"),vo(473,"code"),No(474,"Observable"),go(),go(),vo(475,"td"),No(476,"Used to observe component value changes"),go(),go(),vo(477,"tr"),vo(478,"td"),No(479,"isAlphaChannelEnabled"),go(),vo(480,"td"),vo(481,"code"),No(482,"Function"),go(),go(),vo(483,"td"),No(484,"return is alpha changel enabled"),go(),go(),vo(485,"tr"),vo(486,"td"),No(487,"showAlphaChannel"),go(),vo(488,"td"),vo(489,"code"),No(490,"Function"),go(),go(),vo(491,"td"),No(492,"show alpha channel"),go(),go(),vo(493,"tr"),vo(494,"td"),No(495,"hideAlphaChannel"),go(),vo(496,"td"),vo(497,"code"),No(498,"Function"),go(),go(),vo(499,"td"),No(500,"hide alpha channel"),go(),go(),vo(501,"tr"),vo(502,"td"),No(503,"alphaChannelVisibilityChanges"),go(),vo(504,"td"),vo(505,"code"),No(506,"BehaviorSubject"),go(),go(),vo(507,"td"),No(508,"Used to observe alpha channel changes"),go(),go(),vo(509,"tr"),vo(510,"td"),No(511,"setColorPresets"),go(),vo(512,"td"),vo(513,"code"),No(514,"Function"),go(),go(),vo(515,"td"),No(516,"define color preset list"),go(),go(),vo(517,"tr"),vo(518,"td"),No(519,"presets");go(),vo(520,"td"),vo(521,"code"),No(522,"Getter.presets"),go(),go(),vo(523,"td"),No(524,"get color presets"),go(),go(),vo(525,"tr"),vo(526,"td"),No(527,"hasPresets"),go(),vo(528,"td"),vo(529,"code"),No(530,"Function"),go(),go(),vo(531,"td"),No(532,"return status of predefined color presets"),go(),go(),vo(533,"tr"),vo(534,"td"),No(535,"showPresets"),go(),vo(536,"td"),vo(537,"code"),No(538,"Function"),go(),go(),vo(539,"td"),No(540,"show predefined color presets"),go(),go(),vo(541,"tr"),vo(542,"td"),No(543,"hidePresets"),go(),vo(544,"td"),vo(545,"code"),No(546,"Function"),go(),go(),vo(547,"td"),No(548,"hide predefined color presets"),go(),go(),vo(549,"tr"),vo(550,"td"),No(551,"presetsVisibilityChanges"),go(),vo(552,"td"),vo(553,"code"),No(554,"BehaviorSubject"),go(),go(),vo(555,"td"),No(556,"Used to observe color preset visibility"),go(),go(),go(),go(),go(),go(),yo(557,"br"),vo(558,"div",11),vo(559,"div",12),No(560,"Color methods"),go(),vo(561,"div",13),vo(562,"table",25),vo(563,"thead"),vo(564,"tr"),vo(565,"th"),No(566,"Property"),go(),vo(567,"th"),No(568,"Type"),go(),vo(569,"th"),No(570,"Description"),go(),go(),go(),vo(571,"tbody"),vo(572,"tr"),vo(573,"td"),No(574,"Color.from"),go(),vo(575,"td"),vo(576,"code"),No(577,"static method"),go(),go(),vo(578,"td"),No(579,"create new Color object from Color, Rgba, Hsla, Hsva or ColorString"),go(),go(),vo(580,"tr"),vo(581,"td"),No(582,"clone"),go(),vo(583,"td"),vo(584,"code"),No(585,"Function"),go(),go(),vo(586,"td"),No(587,"create new Color object"),go(),go(),vo(588,"tr"),vo(589,"td"),No(590,"setFromString"),go(),vo(591,"td"),vo(592,"code"),No(593,"Function"),go(),go(),vo(594,"td"),No(595,"change the value by providing the string"),go(),go(),vo(596,"tr"),vo(597,"td"),No(598,"setHsva"),go(),vo(599,"td"),vo(600,"code"),No(601,"Function"),go(),go(),vo(602,"td"),No(603,"change the value by providing hsv values"),go(),go(),vo(604,"tr"),vo(605,"td"),No(606,"setRgba"),go(),vo(607,"td"),vo(608,"code"),No(609,"Function"),go(),go(),vo(610,"td"),No(611,"change the value by providing rgb values"),go(),go(),vo(612,"tr"),vo(613,"td"),No(614,"setHsla"),go(),vo(615,"td"),vo(616,"code"),No(617,"Function"),go(),go(),vo(618,"td"),No(619,"change the value by providing hsl values"),go(),go(),vo(620,"tr"),vo(621,"td"),No(622,"toHexString"),go(),vo(623,"td"),vo(624,"code"),No(625,"Function"),go(),go(),vo(626,"td"),No(627,"convert Color object to hex string"),go(),go(),vo(628,"tr"),vo(629,"td"),No(630,"toRgbString"),go(),vo(631,"td"),vo(632,"code"),No(633,"Function"),go(),go(),vo(634,"td"),No(635,"convert Color object to rgb string"),go(),go(),vo(636,"tr"),vo(637,"td"),No(638,"toRgbaString"),go(),vo(639,"td"),vo(640,"code"),No(641,"Function"),go(),go(),vo(642,"td"),No(643,"convert Color object to rgba string"),go(),go(),vo(644,"tr"),vo(645,"td"),No(646,"toHslString"),go(),vo(647,"td"),vo(648,"code"),No(649,"Function"),go(),go(),vo(650,"td"),No(651,"convert Color object to hsl string"),go(),go(),vo(652,"tr"),vo(653,"td"),No(654,"toHslaString"),go(),vo(655,"td"),vo(656,"code"),No(657,"Function"),go(),go(),vo(658,"td"),No(659,"convert Color object to hsla string"),go(),go(),vo(660,"tr"),vo(661,"td"),No(662,"toHsvString"),go(),vo(663,"td"),vo(664,"code"),No(665,"Function"),go(),go(),vo(666,"td"),No(667,"convert Color object to hsv string"),go(),go(),vo(668,"tr"),vo(669,"td"),No(670,"toHsvaString"),go(),vo(671,"td"),vo(672,"code"),No(673,"Function"),go(),go(),vo(674,"td"),No(675,"convert Color object to hsva string"),go(),go(),vo(676,"tr"),vo(677,"td"),No(678,"toCmykString"),go(),vo(679,"td"),vo(680,"code"),No(681,"Function"),go(),go(),vo(682,"td"),No(683,"convert Color object to cmyk string"),go(),go(),vo(684,"tr"),vo(685,"td"),No(686,"getHsva"),go(),vo(687,"td"),vo(688,"code"),No(689,"Function"),go(),go(),vo(690,"td"),No(691,"return Hsva object"),go(),go(),vo(692,"tr"),vo(693,"td"),No(694,"getRgba"),go(),vo(695,"td"),vo(696,"code"),No(697,"Function"),go(),go(),vo(698,"td"),No(699,"return Rgba object"),go(),go(),vo(700,"tr"),vo(701,"td"),No(702,"getHsla"),go(),vo(703,"td"),vo(704,"code"),No(705,"Function"),go(),go(),vo(706,"td"),No(707,"return Hsla object"),go(),go(),vo(708,"tr"),vo(709,"td"),No(710,"getCmyk"),go(),vo(711,"td"),vo(712,"code"),No(713,"Function"),go(),go(),vo(714,"td"),No(715,"return Cmyk object"),go(),go(),go(),go(),go(),go(),yo(716,"br"),vo(717,"div",11),vo(718,"div",12),No(719,"ColorsTable"),go(),vo(720,"div",13),vo(721,"p"),No(722,"ColorTable is class with static properties which represent Rgba colors defined by "),vo(723,"a",26),No(724,"list of the X11 colors"),go(),go(),go(),go(),yo(725,"br"),go()}2&e&&(cr(1),Eo("background-color",t.color),cr(11),fo("color",t.color),cr(2),fo("color",t.color),cr(210),Fo("selected hex: ",t.chromeControl.value.toHexString(),""),cr(2),Fo("selected hexa: ",t.chromeControl.value.toHexString(!0),""),cr(2),Fo("selected rgb: ",t.chromeControl.value.toRgbString(),""),cr(2),Fo("selected rgba: ",t.chromeControl.value.toRgbaString(),""),cr(2),Fo("selected hsl: ",t.chromeControl.value.toHslString(),""),cr(2),Fo("selected hsla: ",t.chromeControl.value.toHslaString(),""),cr(2),Fo("selected hsv: ",t.chromeControl.value.toHsvString(),""),cr(2),Fo("selected hsva: ",t.chromeControl.value.toHsvaString(),""),cr(2),Fo("selected cmyk: ",t.chromeControl.value.toCmykString(),""),cr(1),fo("control",t.chromeControl),cr(28),Fo("selected hex: ",t.sketchControl.value.toHexString(),""),cr(2),Fo("selected hexa: ",t.sketchControl.value.toHexString(!0),""),cr(2),Fo("selected rgb: ",t.sketchControl.value.toRgbString(),""),cr(2),Fo("selected rgba: ",t.sketchControl.value.toRgbaString(),""),cr(2),Fo("selected hsl: ",t.sketchControl.value.toHslString(),""),cr(2),Fo("selected hsla: ",t.sketchControl.value.toHslaString(),""),cr(2),Fo("selected hsv: ",t.sketchControl.value.toHsvString(),""),cr(2),Fo("selected hsva: ",t.sketchControl.value.toHsvaString(),""),cr(2),Fo("selected cmyk: ",t.sketchControl.value.toCmykString(),""),cr(1),fo("control",t.sketchControl),cr(28),Fo("selected hex: ",t.compactControl.value.toHexString(),""),cr(2),Fo("selected hexa: ",t.compactControl.value.toHexString(!0),""),cr(2),Fo("selected rgb: ",t.compactControl.value.toRgbString(),""),cr(2),Fo("selected rgba: ",t.compactControl.value.toRgbaString(),""),cr(2),Fo("selected hsl: ",t.compactControl.value.toHslString(),""),cr(2),Fo("selected hsla: ",t.compactControl.value.toHslaString(),""),cr(2),Fo("selected hsv: ",t.compactControl.value.toHsvString(),""),cr(2),Fo("selected hsva: ",t.compactControl.value.toHsvaString(),""),cr(2),Fo("selected cmyk: ",t.compactControl.value.toCmykString(),""),cr(1),fo("control",t.compactControl),cr(25),Fo("selected hex: ",t.githubControl.value.toHexString(),""),cr(2),Fo("selected hexa: ",t.githubControl.value.toHexString(!0),""),cr(2),Fo("selected rgb: ",t.githubControl.value.toRgbString(),""),cr(2),Fo("selected rgba: ",t.githubControl.value.toRgbaString(),""),cr(2),Fo("selected hsl: ",t.githubControl.value.toHslString(),""),cr(2),Fo("selected hsla: ",t.githubControl.value.toHslaString(),""),cr(2),Fo("selected hsv: ",t.githubControl.value.toHsvString(),""),cr(2),Fo("selected hsva: ",t.githubControl.value.toHsvaString(),""),cr(2),Fo("selected cmyk: ",t.githubControl.value.toCmykString(),""),cr(1),fo("control",t.githubControl),cr(24),Fo("selected color: ",t.swatchesColor,""),cr(2),fo("color",t.swatchesColor),cr(19),Fo("selected color: ",t.wrapperColor,""),cr(2),fo("color",t.wrapperColor))},directives:[kd,md,Ad,Ed,Id,qd],styles:["[_nghost-%COMP%]{display:block}.background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:500px;opacity:.5;z-index:0}.jumbotron[_ngcontent-%COMP%]{position:relative;background:none}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin-top:-30px;display:inline-block}.jumbotron[_ngcontent-%COMP%] sketch-picker[_ngcontent-%COMP%]{display:inline-block}.jumbotron[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{padding-top:20px}@media handheld,screen and (max-width:768px){.jumbotron[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .pickers-row[_ngcontent-%COMP%]{text-align:center!important}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin:0}}.info-row[_ngcontent-%COMP%]{padding:0 0 20px}.info-row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block}.col-lg-4[_ngcontent-%COMP%]{padding:0}.buttons-row[_ngcontent-%COMP%]{padding:20px 0}.btn[_ngcontent-%COMP%]{cursor:pointer;outline:none}"]}),jd),Ld=((Dd=function e(){_classCallCheck(this,e)}).\u0275mod=at({type:Dd}),Dd.\u0275inj=se({factory:function(e){return new(e||Dd)},imports:[[fu,Md]]}),Dd),zd=((Rd=function e(){_classCallCheck(this,e)}).\u0275mod=at({type:Rd,bootstrap:[Bd]}),Rd.\u0275inj=se({factory:function(e){return new(e||Rd)},providers:[],imports:[[fu,Md,Zh,Ld]]}),Rd);(function(){if(Gn)throw new Error("Cannot enable prod mode after platform setup.");Wn=!1})(),cu().bootstrapModule(zd).catch((function(e){return console.error(e)}))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file +function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=_unsupportedIterableToArray(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;)o[h.charAt(f)]=c;a.hasOwnProperty(h=""+(c=c[1]))||(s.push(c),a[h]=i)}s.push(/[\S\s]/),r=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=h[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function r(e){var r=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),i=(e=[],["["]);(o="^"===r[0])&&i.push("^");for(var o=o?1:0,s=r.length;o122||(a<65||l>90||e.push([32|Math.max(65,l),32|Math.min(a,90)]),a<97||l>122||e.push([-33&Math.max(97,l),-33&Math.min(a,122)]))}for(e.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]})),r=[],s=[],o=0;ol[0]&&(l[1]+1>l[0]&&i.push("-"),i.push(n(l[1])));return i.push("]"),i.join("")}function i(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),i=t.length,a=[],l=0,u=0;l=2&&"["===e?t[l]=r(c):"\\"!==e&&(t[l]=c.replace(/[A-Za-z]/g,(function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"})));return t.join("")}for(var o=0,s=!1,a=!1,l=0,u=e.length;l=5&&"lang-"===y.substring(0,5))||m&&"string"==typeof m[1]||(v=!1,y="src"),v||(f[g]=y)}if(_=u,u+=g.length,v){var C=g.indexOf(v=m[1]),b=C+v.length;m[2]&&(C=(b=g.length-m[2].length)-v.length),y=y.substring(5),n(a+_,g.substring(0,C),e,l),n(a+_+C,v,c(y,v),l),n(a+_+b,g.substring(b),e,l)}else l.push(a+_,y)}i.g=l}}function a(e){var t=[],n=[];t.push(e.tripleQuotedStrings?["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,i,"'\""]:e.multiLineStrings?["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,i,"'\"`"]:["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,i,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,i]);var r=e.hashComments;if(r&&(e.cStyleComments?(t.push(r>1?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,i,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,i,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,i])):t.push(["com",/^#[^\n\r]*/,i,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,i]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,i])),r=e.regexLiterals){var o=(r=r>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+r+"])(?:[^/\\x5B\\x5C"+r+"]|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+r+"]|\\x5C"+o+")*(?:\\x5D|$))+/)")])}return(r=e.types)&&n.push(["typ",r]),(r=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+r.replace(/[\s,]+/g,"|")+")\\b"),i]),t.push(["pln",/^\s+/,i," \r\n\t\xa0"]),r="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(r+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,i],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,i],["pln",/^[$_a-z][\w$@]*/i,i],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,i,"0123456789"],["pln",/^\\[\S\s]?/,i],["pun",RegExp(r),i]),s(t,n)}function l(e,t,n){function r(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&n){var l=e.nodeValue,u=l.match(s);u&&(t=l.substring(0,u.index),e.nodeValue=t,(l=l.substring(u.index+u[0].length))&&e.parentNode.insertBefore(a.createTextNode(l),e.nextSibling),i(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)i(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)r(e)}function i(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var r=n?t.cloneNode(!1):t;if(i=t.parentNode){var i=e(i,1),o=t.nextSibling;i.appendChild(r);for(var s=o;s;s=o)o=s.nextSibling,i.appendChild(s)}return r}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;u.push(e)}for(var o=/(?:^|\s)nocode(?:\s|$)/,s=/\r\n?|\n/,a=e.ownerDocument,l=a.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var u=[l],c=0;c=0;){var r=t[n];x.hasOwnProperty(r)?p.console&&console.warn("cannot override language handler %s",r):x[r]=e}}function c(e,t){return e&&x.hasOwnProperty(e)||(e=/^\s*=k&&(h+=2),n>=w&&(v+=2)}}finally{C&&(C.style.display=_)}}catch(T){p.console&&console.log(T&&T.stack||T)}}var f,d,p=window,v=[f=[[d=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],g=[f,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[g,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],m=[d,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],_=[d,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[d,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],b=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,k=/\S/,w=a({keywords:[v,y,f=[f,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",m,_,d=[d,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),x={};u(w,["default-code"]),u(s([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),u(s([["pln",/^\s+/,i," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,i,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),u(s([],[["atv",/^[\S\s]+/]]),["uq.val"]),u(a({keywords:v,hashComments:!0,cStyleComments:!0,types:b}),["c","cc","cpp","cxx","cyc","m"]),u(a({keywords:"null,true,false"}),["json"]),u(a({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:b}),["cs"]),u(a({keywords:g,cStyleComments:!0}),["java"]),u(a({keywords:d,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),u(a({keywords:m,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),u(a({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),u(a({keywords:_,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),u(a({keywords:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),u(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),u(a({keywords:C,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),u(s([],[["str",/^[\S\s]+/]]),["regex"]);var S=p.PR={createSimpleLexer:s,registerLangHandler:u,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:p.prettyPrintOne=function(e,t,n){var r=document.createElement("div");return r.innerHTML="
"+e+"
",r=r.firstChild,n&&l(r,n,!0),h({h:t,j:n,c:r,i:1}),r.innerHTML},prettyPrint:p.prettyPrint=function(e,t){for(var n=(r=t||document.body).ownerDocument||document,r=[r.getElementsByTagName("pre"),r.getElementsByTagName("code"),r.getElementsByTagName("xmp")],s=[],a=0;a4&&void 0!==arguments[4]?arguments[4]:new P(e,n,r);if(!i.closed)return t instanceof C?t.subscribe(i):M(t)(i)}var N=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(v);function F(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new R(e,t))}}var R=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new D(e,this.project,this.thisArg))}}]),e}(),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(v);function j(e,t){return new C((function(n){var r=new f,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}var H=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new q(e,this.project,this.concurrent))}}]),e}(),q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(N);function B(e){return e}function L(e,t){return t?j(e,t):new C(O(e))}function z(){return function(e){return e.lift(new Z(e))}}var K,Z=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new Q(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),Q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(v),W={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(K=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new f).add(this.source.subscribe(new G(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e}},{key:"refCount",value:function(){return z()(this)}}]),n}(C).prototype)._subscribe},_isComplete:{value:K._isComplete,writable:!0},getSubject:{value:K.getSubject},connect:{value:K.connect},refCount:{value:K.refCount}},G=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(S);function U(){return new A}function Y(e){return{toString:e}.toString()}function X(e,t,n){return Y((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:ne.Default;if(void 0===je)throw new Error("inject() must be called from an injection context");return null===je?ze(e,void 0,t):je.get(e,t&ne.Optional?null:void 0,t)}function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default;return(Ce||Be)(_e(e),t)}function ze(e,t,n){var r=ae(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ne.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(ve(e),"]"))}function Ke(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:Fe;if(t===Fe){var n=new Error("NullInjectorError: No provider for ".concat(ve(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Qe=function e(){_classCallCheck(this,e)};function We(e,t){e.forEach((function(e){return Array.isArray(e)?We(e,t):t(e)}))}function Ge(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ue(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ye(e,t){var n=Xe(e,t);if(n>=0)return e[1|n]}function Xe(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),s=e[o<<1];if(t===s)return o<<1;s>t?i=o:r=o+1}return~(i<<1)}(e,t)}var Je=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),$e=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),et={},tt=[],nt=0;function rt(e){return Y((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.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:e.changeDetection===Je.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||tt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||$e.Emulated,id:"c",styles:e.styles||tt,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,s=e.features,a=e.pipes;return i.id+=nt++,i.inputs=lt(e.inputs,r),i.outputs=lt(e.outputs),s&&s.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(it)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(ot)}:null,i}))}function it(e){return ht(e)||function(e){return e[Ee]||null}(e)}function ot(e){return function(e){return e[Te]||null}(e)}var st={};function at(e){var t={type:e.type,bootstrap:e.bootstrap||tt,declarations:e.declarations||tt,imports:e.imports||tt,exports:e.exports||tt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Y((function(){st[e.id]=e.type})),t}function lt(e,t){if(null==e)return et;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ut=rt;function ct(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ht(e){return e[Ae]||null}function ft(e,t){return e.hasOwnProperty(Ie)?e[Ie]:null}function dt(e,t){var n=e[Pe]||null;if(!n&&!0===t)throw new Error("Type ".concat(ve(e)," does not have '\u0275mod' property."));return n}function pt(e){return Array.isArray(e)&&"object"==typeof e[1]}function vt(e){return Array.isArray(e)&&!0===e[1]}function gt(e){return 0!=(8&e.flags)}function yt(e){return 2==(2&e.flags)}function mt(e){return 1==(1&e.flags)}function _t(e){return null!==e.template}function Ct(e){return 0!=(512&e[2])}var bt=void 0;function kt(e){return!!e.listen}var wt={createRenderer:function(e,t){return void 0!==bt?bt:"undefined"!=typeof document?document:void 0}};function xt(e){for(;Array.isArray(e);)e=e[0];return e}function St(e,t){return xt(t[e+19])}function At(e,t){return xt(t[e.index])}function Et(e,t){return e.data[t+19]}function Tt(e,t){return e[t+19]}function Pt(e,t){var n=t[e];return pt(n)?n:n[0]}function Ot(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function It(e){return 4==(4&e[2])}function Mt(e){return 128==(128&e[2])}function Vt(e,t){return null===e||null==t?null:e[t]}function Nt(e){e[18]=0}var Ft={lFrame:$t(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Rt(){return Ft.bindingsEnabled}function Dt(){return Ft.lFrame.lView}function jt(){return Ft.lFrame.tView}function Ht(e){Ft.lFrame.contextLView=e}function qt(){return Ft.lFrame.previousOrParentTNode}function Bt(e,t){Ft.lFrame.previousOrParentTNode=e,Ft.lFrame.isParent=t}function Lt(){return Ft.lFrame.isParent}function zt(){return Ft.checkNoChangesMode}function Kt(e){Ft.checkNoChangesMode=e}function Zt(){var e=Ft.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Qt(){return Ft.lFrame.bindingIndex++}function Wt(e,t){var n=Ft.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function Gt(){return Ft.lFrame.currentQueryIndex}function Ut(e){Ft.lFrame.currentQueryIndex=e}function Yt(e,t){var n=Jt();Ft.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Xt(e,t){var n=Jt(),r=e[1];Ft.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function Jt(){var e=Ft.lFrame,t=null===e?null:e.child;return null===t?$t(e):t}function $t(e){var t={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:e,child:null};return null!==e&&(e.child=t),t}function en(){var e=Ft.lFrame;return Ft.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var tn=en;function nn(){var e=en();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function rn(){return Ft.lFrame.selectedIndex}function on(e){Ft.lFrame.selectedIndex=e}function sn(){var e=Ft.lFrame;return Et(e.tView,e.selectedIndex)}function an(){Ft.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ln(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(s)):o.call(s)}var pn=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function vn(e,t,n){for(var r=kt(e),i=0;it){s=o-1;break}}}for(;o>16}function kn(e,t){for(var n=bn(e),r=t;n>0;)r=r[15],n--;return r}function wn(e){return"string"==typeof e?e:null==e?"":""+e}function xn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():wn(e)}var Sn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se);function An(e){return e instanceof Function?e():e}var En=!0;function Tn(e){var t=En;return En=e,t}var Pn=0;function On(e,t){var n=Mn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,In(r.data,e),In(t,null),In(r.blueprint,null));var i=Vn(e,t),o=e.injectorIndex;if(_n(i))for(var s=Cn(i),a=kn(i,t),l=a[1].data,u=0;u<8;u++)t[o+u]=a[s+u]|l[s+u];return t[o+8]=i,o}function In(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Vn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Nn(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[Me]:n.charCodeAt(0)||0;null==r&&(r=n[Me]=Pn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:ne.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[Me];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){Yt(t,e);try{var s=o();if(null!=s||r&ne.Optional)return s;throw new Error("No provider for ".concat(xn(n),"!"))}finally{tn()}}else if("number"==typeof o){if(-1===o)return new Ln(e,t);var a=null,l=Mn(e,t),u=-1,c=r&ne.Host?t[16][6]:null;for((-1===l||r&ne.SkipSelf)&&(u=-1===l?Vn(e,t):t[l+8],Bn(r,!1)?(a=t[1],l=Cn(u),t=kn(u,t)):l=-1);-1!==l;){u=t[l+8];var h=t[1];if(qn(o,l,h.data)){var f=Dn(l,t,n,a,r,c);if(f!==Rn)return f}Bn(r,t[1].data[l+8]===c)&&qn(o,l,t)?(a=h,l=Cn(u),t=kn(u,t)):l=-1}}}if(r&ne.Optional&&void 0===i&&(i=null),0==(r&(ne.Self|ne.Host))){var d=t[9],p=qe(void 0);try{return d?d.get(n,i,r&ne.Optional):ze(n,i,r&ne.Optional)}finally{qe(p)}}if(r&ne.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(xn(n),"]"))}var Rn={};function Dn(e,t,n,r,i,o){var s=t[1],a=s.data[e+8],l=jn(a,s,n,null==r?yt(a)&&En:r!=s&&3===a.type,i&ne.Host&&o===a);return null!==l?Hn(t,s,l,a):Rn}function jn(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,l=e.directiveStart,u=o>>16,c=i?a+u:e.directiveEnd,h=r?a:a+u;h=l&&f.type===n)return h}if(i){var d=s[l];if(d&&_t(d)&&d.type===n)return l}return null}function Hn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof pn){var s=i;if(s.resolving)throw new Error("Circular dep for ".concat(xn(o[n])));var a,l=Tn(s.canSeeViewProviders);s.resolving=!0,s.injectImpl&&(a=qe(s.injectImpl)),Yt(e,r);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{s.injectImpl&&qe(a),Tn(l),s.resolving=!1,tn()}}return i}function qn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;ro?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==$n(f,u,0)||2&r&&u!==h){if(rr(r))return!1;s=!0}}}}else{if(!s&&!rr(r)&&!rr(l))return!1;if(s&&rr(l))continue;s=!1,r=l|1&r}}return rr(r)||s}function rr(e){return 0==(1&e)}function ir(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||rr(s)||(t+=sr(o,i),i=""),r=s,o=o||!rr(r);n++}return""!==i&&(t+=sr(o,i)),t}var lr={};function ur(e){var t=e[3];return vt(t)?t[3]:t}function cr(e){hr(jt(),Dt(),rn()+e,zt())}function hr(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&un(t,i,n)}else{var o=e.preOrderHooks;null!==o&&cn(t,o,0,n)}on(n)}function fr(e,t){return e<<17|t<<2}function dr(e){return e>>17&32767}function pr(e){return 2|e}function vr(e){return(131068&e)>>2}function gr(e,t){return-131069&e|t<<2}function yr(e){return 1|e}function mr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r>1==-1){for(var r=9;r19&&hr(e,t,0,zt()),n(r,i)}finally{on(o)}}function Ar(e,t,n){Rt()&&(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||On(n,t),Yn(r,t);for(var s=n.initialInputs,a=i;a2&&void 0!==arguments[2]?arguments[2]:At,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&(e[n-1][4]=r[4]);var o=Ue(e,9+t);li(r[1],r,!1,null);var s=o[5];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function hi(e,t){if(!(256&t[2])){var n=t[11];kt(n)&&n.destroyNode&&bi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return di(e[1],e);for(;t;){var n=null;if(pt(t))n=t[13];else{var r=t[9];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)pt(t)&&di(t[1],t),t=fi(t,e);null===t&&(t=e),pt(t)&&di(t[1],t),n=t&&t[4]}t=n}}(t)}}function fi(e,t){var n;return pt(e)&&(n=e[6])&&2===n.type?oi(n,e):e[3]===t?null:e[3]}function di(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[l]():r[-l].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&kt(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&vt(t[3])){r!==t[3]&&ui(r,t);var i=t[5];null!==i&&i.detachView(e)}}}function pi(e,t,n,r){kt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function vi(e,t,n){kt(e)?e.appendChild(t,n):t.appendChild(n)}function gi(e,t,n,r){null!==r?pi(e,t,n,r):vi(e,t,n)}function yi(e,t){return kt(e)?e.parentNode(t):t.parentNode}function mi(e,t,n,r){var i=function(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?si(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return At(t,n).parentNode;if(2&r.flags){var o=e.data,s=o[o[r.index].directiveStart].encapsulation;if(s!==$e.ShadowDom&&s!==$e.Native)return null}return At(r,n)}(e,r,t);if(null!=i){var o=t[11],s=function(e,t){if(2===e.type){var n=oi(e,t);return null===n?null:_i(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?At(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}hi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,ti(n=this._lView).push(r),t.firstCreatePass&&ni(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){Yr(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Xr(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Kt(!0);try{Xr(e,t,n)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,bi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&i.push(xt(s)),vt(s))for(var a=9;a0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var s=o.get(Qe,null);s&&(i=s)}var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),vt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],s=new Ei(o,o[6],o[3]);s.detach(s.indexOf(e))}}var a=this._adjustIndex(t);return function(e,t,n,r){var i=9+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Oi(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Ln(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Vn(this._hostTNode,this._hostView),t=kn(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=bn(e),s=t,a=t[6];o>1;)a=(s=s[15])[6],o--;return a}(e,this._hostView,this._hostTNode);return _n(e)&&null!=n?new Ln(n,t):new Ln(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),r}(e));var o=r[n.index];if(vt(o))(function(e,t){e[2]=-2})(i=o);else{var s;if(4===n.type)s=xt(o);else if(s=r[11].createComment(""),Ct(r)){var a=r[11],l=At(n,r);pi(a,yi(a,l),s,function(e,t){return kt(e)?e.nextSibling(t):t.nextSibling}(a,l))}else mi(r[1],r,s,n);r[n.index]=i=Zr(o,r,s,n),Ur(r,i)}return new Ei(i,n,r)}function Vi(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&yt(e)){var r=Pt(e.index,t);return new Ti(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new Ti(t[16],t):null}(qt(),Dt(),e)}var Ni=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Fi()},e}(),Fi=Vi,Ri=new Ve("Set Injector scope."),Di={},ji={},Hi=[],qi=void 0;function Bi(){return void 0===qi&&(qi=new Ze),qi}function Li(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new zi(e,n,t||Bi(),r)}var zi=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&We(n,(function(e){return i.processProvider(e,t,n)})),We([t],(function(e){return i.processInjectorType(e,[],s)})),this.records.set(Ne,Zi(void 0,this));var a=this.records.get(Ri);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof t?null:ve(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;this.assertNotDestroyed();var r,i=He(this);try{if(!(n&ne.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Ve)&&ae(e);o=s&&this.injectableDefInScope(s)?Zi(Ki(e),Di):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&ne.Self?Bi():this.parent).get(e,t=n&ne.Optional&&t===Fe?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(ve(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=ve(t);if(Array.isArray(t))i=t.map(ve).join(" -> ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):ve(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Re,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{He(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(ve(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=_e(e)))return!1;var i=ue(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=ue(o)),null==i)return!1;if(null!=i.imports&&!a){var l;n.push(s);try{We(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))}))}finally{}if(void 0!==l)for(var u=function(e){var t=l[e],n=t.ngModule,i=t.providers;We(i,(function(e){return r.processProvider(e,n,i||Hi)}))},c=0;c0){var n=function(e,t){for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Qi(e){return null!==e&&"object"==typeof e&&De in e}function Wi(e){return"function"==typeof e}var Gi=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Li(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Ui=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Gi(e,t,""):Gi(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Fe,e.NULL=new Ze,e.\u0275prov=oe({token:e,providedIn:"any",factory:function(){return Le(Ne)}}),e.__NG_ELEMENT_ID__=-1,e}(),Yi=new Map,Xi=new Set;function Ji(e){return"string"==typeof e?e:e.text()}function $i(e,t){for(var n=e.styles,r=e.classes,i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:ne.Default,n=Dt();return null==n?Le(e,t):Fn(qt(),n,_e(e),t)}function fo(e,t,n){var r=Dt();return ao(r,Qt(),t)&&Mr(jt(),sn(),r,e,t,r[11],n,!1),fo}function po(e,t,n,r,i){var o=i?"class":"style";ii(e,n,t.inputs[o],o,r)}function vo(e,t,n,r){var i=Dt(),o=jt(),s=19+e,a=i[11],l=i[s]=_r(t,a,Ft.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,r,i,o,s){var a=t.consts,l=Vt(a,o),u=br(t,n[6],e,3,i,l);return Vr(t,n,u,Vt(a,s)),null!==u.mergedAttrs&&$i(u,u.mergedAttrs),null!==t.queries&&t.queries.elementStart(t,u),u}(e,o,i,0,t,n,r):o.data[s];Bt(u,!0);var c=u.mergedAttrs;null!==c&&vn(a,l,c);var h=u.classes;null!==h&&xi(a,l,h);var f=u.styles;null!==f&&wi(a,l,f),mi(o,i,l,u),0===Ft.lFrame.elementDepthCount&&Yn(l,i),Ft.lFrame.elementDepthCount++,mt(u)&&(Ar(o,i,u),function(e,t,n){if(gt(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Dt(),o=jt(),s=qt();return function(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,l=mt(r),u=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=ti(t),h=!0;if(3===r.type){var f=At(r,t),d=a?a(f):et,p=d.target||f,v=c.length,g=a?function(e){return a(xt(e[r.index])).target}:r.index;if(kt(n)){var y=null;if(!a&&l&&(y=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=ko(r,t,o,!1);var m=n.listen(d.name||p,i,o);c.push(o,m),u&&u.push(i,g,v,v+1)}}else o=ko(r,t,o,!0),p.addEventListener(i,o,s),c.push(o),u&&u.push(i,g,v,s)}var _,C=r.outputs;if(h&&null!==C&&(_=C[i])){var b=_.length;if(b)for(var k=0;k0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ft.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ft.lFrame.contextLView))[8]}(e)}var xo=[];function So(e,t,n,r,i){for(var o=e[n+1],s=null===t,a=r?dr(o):vr(o),l=!1;0!==a&&(!1===l||s);){var u=e[a+1];Ao(e[a],t)&&(l=!0,e[a+1]=r?yr(u):pr(u)),a=r?dr(u):vr(u)}l&&(e[n+1]=r?pr(o):yr(o))}function Ao(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xe(e,t)>=0}function Eo(e,t,n){return Po(e,t,n,!1),Eo}function To(e,t){return Po(e,t,null,!0),To}function Po(e,t,n,r){var i,o,s,a=Dt(),l=jt(),u=(i=Ft.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);(l.firstUpdatePass&&function(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[rn()+19],s=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Ft.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Io(n=Oo(null,e,t,n,r),t.attrs,r),o=null);else{var s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Oo(i,e,t,n,r),null===o){var a=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==vr(r))return e[dr(r)]}(e,t,r);void 0!==a&&Array.isArray(a)&&function(e,t,n,r){e[dr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,a=Io(a=Oo(null,e,t,a[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=n;if(i)if(0!==l){var f=dr(e[a+1]);e[r+1]=fr(f,a),0!==f&&(e[f+1]=gr(e[f+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=fr(a,0),0!==a&&(e[a+1]=gr(e[a+1],r)),a=r;else e[r+1]=fr(l,0),0===a?a=r:e[l+1]=gr(e[l+1],r),l=r;c&&(e[r+1]=pr(e[r+1])),So(e,u,r,!0),So(e,u,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Xe(o,t)>=0&&(n[r+1]=yr(n[r+1]))}(t,u,e,r,o),s=fr(a,l),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}(l,e,u,r),t!==lr&&ao(a,u,t))&&(null==n&&(s=function(){var e=Ft.lFrame;return null===e?null:e.currentSanitizer}())&&(n=s),function(e,t,n,r,i,o,s,a){if(3===t.type){var l=e.data,u=l[a+1];Vo(1==(1&u)?Mo(l,t,n,i,vr(u),s):void 0)||(Vo(o)||2==(2&u)&&(o=Mo(l,null,n,i,a,s)),function(e,t,n,r,i){var o=kt(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{var s=-1==r.indexOf("-")?void 0:2;null==i?o?e.removeStyle(n,r,s):n.style.removeProperty(r):o?e.setStyle(n,r,i,s):n.style.setProperty(r,i)}}(r,s,St(rn(),n),i,o))}}(l,l.data[rn()+19],a,a[11],e,a[u+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=ve(function(e){return e instanceof function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),e}()?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,u))}function Oo(e,t,n,r,i){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a=0?r[1|s]=o:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(r,s=~s,i,o))}return void 0===e?null:e}function Mo(e,t,n,r,i,o){for(var s=null===t,a=void 0;i>0;){var l=e[i],u=Array.isArray(l),c=u?l[1]:l,h=null===c,f=n[i+1];f===lr&&(f=h?xo:void 0);var d=h?Ye(f,r):c===r?f:void 0;if(u&&!Vo(d)&&(d=Ye(l,r)),Vo(d)&&(a=d,s))return a;var p=e[i+1];i=s?dr(p):vr(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=Ye(v,r))}return a}function Vo(e){return void 0!==e}function No(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Dt(),r=jt(),i=e+19,o=r.firstCreatePass?br(r,n[6],e,3,null,null):r.data[i],s=n[i]=function(e,t){return kt(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);mi(r,n,s,o),Bt(o,!1)}function Fo(e,t,n){var r=Dt(),i=function(e,t,n,r){return ao(e,Qt(),n)?t+wn(n)+r:lr}(r,e,t,n);return i!==lr&&function(e,t,n){var r=St(t,e),i=e[11];kt(i)?i.setValue(r,n):r.textContent=n}(r,rn(),i),Fo}function Ro(e,t,n){var r=Dt();return ao(r,Qt(),t)&&Mr(jt(),sn(),r,e,t,r[11],n,!0),Ro}function Do(e,t){var n=Ot(e)[1],r=n.data.length-1;ln(n,{directiveStart:r,directiveEnd:r+1})}function jo(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(_t(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=Ho(e.inputs),o.declaredInputs=Ho(e.declaredInputs),o.outputs=Ho(e.outputs);var s=i.hostBindings;s&&Lo(e,s);var a=i.viewQuery,l=i.contentQueries;if(a&&qo(e,a),l&&Bo(e,l),ie(e.inputs,i.inputs),ie(e.declaredInputs,i.declaredInputs),ie(e.outputs,i.outputs),_t(i)&&i.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}o.afterContentChecked=o.afterContentChecked||i.afterContentChecked,o.afterContentInit=e.afterContentInit||i.afterContentInit,o.afterViewChecked=e.afterViewChecked||i.afterViewChecked,o.afterViewInit=e.afterViewInit||i.afterViewInit,o.doCheck=e.doCheck||i.doCheck,o.onDestroy=e.onDestroy||i.onDestroy,o.onInit=e.onInit||i.onInit}var c=i.features;if(c)for(var h=0;h=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=yn(i.hostAttrs,n=yn(n,i.hostAttrs))}}(r)}function Ho(e){return e===et?{}:e===tt?[]:e}function qo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function Bo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function Lo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var zo=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ko(e){e.type.prototype.ngOnChanges&&(e.setInput=Zo,e.onChanges=function(){var e=Qo(this),t=e&&e.current;if(t){var n=e.previous;if(n===et)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function Zo(e,t,n,r){var i=Qo(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:et,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new zo(l&&l.currentValue,t,s===et),e[r]=t}function Qo(e){return e.__ngSimpleChanges__||null}Ko.ngInherit=!0;var Wo=function e(){_classCallCheck(this,e)},Go=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(ve(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),Uo=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Go,e}(),Yo=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return Xo(e)},e}(),Xo=function(e){return Oi(e,qt(),Dt())},Jo=function e(){_classCallCheck(this,e)},$o=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),es=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ts()},e}(),ts=function(){var e=Dt(),t=Pt(qt().index,e);return function(e){var t=e[11];if(kt(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(pt(t)?t:e)},ns=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=oe({token:e,providedIn:"root",factory:function(){return null}}),e}(),rs=new function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("9.0.7"),is=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return io(e)}},{key:"create",value:function(e){return new ss(e)}}]),e}(),os=function(e,t){return t},ss=function(){function e(t){_classCallCheck(this,e),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||os}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0&&xi(u,h,C.join(" "))}o=Et(g[1],0),t&&(o.projection=t.map((function(e){return Array.from(e)}))),i=function(e,t,n,r,i){var o=n[1],s=function(e,t,n){var r=qt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Dr(e,r,1),Br(e,t,n));var i=Hn(t,e,t.length-1,r);Yn(i,t);var o=At(r,t);return o&&Yn(o,t),i}(o,n,t);r.components.push(s),e[8]=s,i&&i.forEach((function(e){return e(s,t)})),t.contentQueries&&t.contentQueries(1,s,n.length-1);var a=qt();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){on(a.index-19);var l=n[1];Nr(l,t),Fr(l,n,t.hostVars),Rr(t,s)}return s}(y,this.componentDef,g,p,[Do]),kr(v,g,null)}finally{nn()}var b=new Ts(this.componentType,i,Oi(Yo,o,g),g,o);return n&&!d||(b.hostView._tViewNode.child=o),b}},{key:"inputs",get:function(){return Ss(this.componentDef.inputs)}},{key:"outputs",get:function(){return Ss(this.componentDef.outputs)}}]),n}(Wo),Ts=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,s){var a,l,u,c;return _classCallCheck(this,n),(a=t.call(this)).location=i,a._rootLView=o,a._tNode=s,a.destroyCbs=[],a.instance=r,a.hostView=a.changeDetectorRef=new Pi(o),a.hostView._tViewNode=(l=o[1],u=o,null==(c=l.node)&&(l.node=c=Or(0,null,2,-1,null,null)),u[6]=c),a.componentType=e,a}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new Ln(this._tNode,this._rootLView)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),Ps=void 0,Os=["en",[["a","p"],["AM","PM"],Ps],[["AM","PM"],Ps,Ps],[["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"]],Ps,[["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"]],Ps,[["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}",Ps,"{1} 'at' {0}",Ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Is={};function Ms(e){return e in Is||(Is[e]=Se.ng&&Se.ng.common&&Se.ng.common.locales&&Se.ng.common.locales[e]),Is[e]}var Vs=function(){var e={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,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();function Ns(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined")+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var Fs=new Map,Rs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new xs(_assertThisInitialized(i));var o=dt(e),s=e[Oe]||null;return s&&Ns(s),i._bootstrapComponents=An(o.bootstrap),i._r3Injector=Li(e,r,[{provide:Qe,useValue:_assertThisInitialized(i)},{provide:Uo,useValue:i.componentFactoryResolver}],ve(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ui.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;return e===Ui||e===Qe||e===Ne?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Qe),Ds=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==dt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(ve(t)," vs ").concat(ve(t.name)))})(n,Fs.get(n),t),Fs.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new Rs(this.moduleType,e)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function js(e,t,n,r,i){return Bs(Dt(),Zt(),e,t,n,r,i)}function Hs(e,t){var n=e[t];return n===lr?void 0:n}function qs(e,t,n,r,i,o){var s=t+n;return ao(e,s,i)?so(e,s+1,o?r.call(o,i):r(i)):Hs(e,s+1)}function Bs(e,t,n,r,i,o,s){var a=t+n;return function(e,t,n,r){var i=ao(e,t,n);return ao(e,t+1,r)||i}(e,a,i,o)?so(e,a+2,s?r.call(s,i,o):r(i,o)):Hs(e,a+2)}function Ls(e,t){var n,r=jt(),i=e+19;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=ft(n.type)),s=qe(ho),a=o();return qe(s),function(e,t,n,r){var i=n+19;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,Dt(),e,a),a}function zs(e,t,n){var r=Dt(),i=Tt(r,e);return Qs(r,Zs(r,e)?qs(r,Zt(),t,i.transform,n,i):i.transform(n))}function Ks(e,t,n,r){var i=Dt(),o=Tt(i,e);return Qs(i,Zs(i,e)?Bs(i,Zt(),t,o.transform,n,r,o):o.transform(n,r))}function Zs(e,t){return e[1].data[t+19].pure}function Qs(e,t){return ro.isWrapped(t)&&(t=ro.unwrap(t),e[Ft.lFrame.bindingIndex]=lr),t}var Ws=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,o,s);return e instanceof f&&e.add(a),a}}]),n}(A);function Gs(){return this._results[to()]()}var Us=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new Ws,this.length=0;var t=to(),n=e.prototype;n[t]||(n[t]=Gs)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},$s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)i.push(a[l/2]);else{for(var c=s[l+1],h=n[-u],f=9;f0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Le(Ia))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),Ba=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,La.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return La.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),La=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),za=function(e,t,n){var r=new Ds(n);if(0===Yi.size)return Promise.resolve(r);var i,o,s=(i=e.get(Ta,[]).concat(t).map((function(e){return e.providers})),o=[],i.forEach((function(e){return e&&o.push.apply(o,_toConsumableArray(e))})),o);if(0===s.length)return Promise.resolve(r);var a=function(){var e=Se.ng;if(!e||!e.\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 e.\u0275compilerFacade}(),l=Ui.create({providers:s}).get(a.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(l.get(e))}(e);n.set(e,t=r.then(Ji))}return t}return Yi.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var o=e.styleUrls,s=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach((function(t,n){s.push(""),i.push(r(t).then((function(r){s[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)})))}));var l=Promise.all(i).then((function(){return function(e){Xi.delete(e)}(n)}));t.push(l)})),Yi=new Map,Promise.all(t).then((function(){}))}().then((function(){return r}))},Ka=new Ve("AllowMultipleToken");function Za(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new Ve(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Qa();if(!o||o.injector.get(Ka,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0},{provide:Ri,useValue:"platform"});!function(e){if(ja&&!ja.destroyed&&!ja.injector.get(Ka,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ja=e.get(Wa);var t=e.get(pa,null);t&&t.forEach((function(e){return e()}))}(Ui.create({providers:s,name:r}))}return function(e){var t=Qa();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Qa(){return ja&&!ja.destroyed?ja:null}var Wa=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Ha:("zone.js"===n?void 0:n)||new Ia({enableLongStackTrace:Un(),shouldCoalesceEventChangeDetection:r})),s=[{provide:Ia,useValue:o}];return o.run((function(){var t=Ui.create({providers:s,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Qn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Xa(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((s=n.injector.get(ca)).runInitializers(),s.donePromise.then((function(){return Ns(n.injector.get(ma,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return _o(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var s}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Ga({},n);return za(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Ya);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(ve(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Le(Ui))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}();function Ga(e,t){return Array.isArray(t)?t.reduce(Ga,e):Object.assign(Object.assign({},e),t)}var Ua,Ya=((Ua=function(){function e(t,n,r,i,o,s){var a=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Un(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var l=new C((function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){e.next(a._stable),e.complete()}))})),u=new C((function(e){var t;a._zone.runOutsideAngular((function(){t=a._zone.onStable.subscribe((function(){Ia.assertNotInAngularZone(),Oa((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Ia.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===i&&1===t.length&&t[0]instanceof C?t[0]:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof n?function(i){return i.pipe(e((function(e,r){return(i=t(e,r),i instanceof C?i:new C(M(i))).pipe(F((function(t,i){return n(e,t,r,i)})));var i}),r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new H(t,r))})}(B,e)}(r)(L(t,i))}(l,u.pipe((function(e){return z()((t=U,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,W);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Wo?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(Qe),o=n.create(Ui.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var s=o.injector.get(qa,null);return s&&o.injector.get(Ba).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Un()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(s){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(s)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Xa(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ga,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Xa(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||Ua)(Le(Ia),Le(ya),Le(Ui),Le(Qn),Le(Uo),Le(ca))},Ua.\u0275prov=oe({token:Ua,factory:Ua.\u0275fac}),Ua);function Xa(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ja=Za(null,"core",[{provide:va,useValue:"unknown"},{provide:Wa,deps:[Ui]},{provide:Ba,deps:[]},{provide:ya,deps:[]}]),$a=[{provide:Ya,useClass:Ya,deps:[Ia,ya,Ui,Qn,Uo,ca]},{provide:As,deps:[Ia],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ca,useClass:ca,deps:[[new $,ua]]},{provide:Ea,useClass:Ea,deps:[]},fa,{provide:ps,useFactory:function(){return ys},deps:[]},{provide:vs,useFactory:function(){return ms},deps:[]},{provide:ma,useFactory:function(e){return Ns(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new J(ma),new $,new te]]},{provide:_a,useValue:"USD"}],el=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=at({type:e}),e.\u0275inj=se({factory:function(t){return new(t||e)(Le(Ya))},providers:$a}),e}(),tl=null;function nl(){return tl}var rl,il,ol,sl,al=new Ve("DocumentToken"),ll=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),ul=function e(){_classCallCheck(this,e)},cl=((il=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Ms(t);if(n)return n;var r=t.split("-")[0];if(n=Ms(r))return n;if("en"===r)return Os;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Vs.PluralCase]}(t||this.locale)(e)){case ll.Zero:return"zero";case ll.One:return"one";case ll.Two:return"two";case ll.Few:return"few";case ll.Many:return"many";default:return"other"}}}]),n}(ul)).\u0275fac=function(e){return new(e||il)(Le(ma))},il.\u0275prov=oe({token:il,factory:il.\u0275fac}),il),hl=((rl=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(ve(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(io(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||rl)(ho(ps),ho(vs),ho(Yo),ho(es))},rl.\u0275dir=ut({type:rl,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),rl),fl=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),dl=((ol=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new fl(null,t._ngForOf,-1,-1),null===i?void 0:i),s=new pl(e,o);n.push(s)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var a=t._viewContainer.get(r);t._viewContainer.move(a,i);var l=new pl(e,a);n.push(l)}}));for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:ne.Default,t=Vi(!0);if(null!=t||e&ne.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},kl.\u0275pipe=ct({name:"async",type:kl,pure:!1}),kl),Fl=((bl=function e(){_classCallCheck(this,e)}).\u0275mod=at({type:bl}),bl.\u0275inj=se({factory:function(e){return new(e||bl)},providers:[{provide:ul,useClass:cl}]}),bl),Rl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Dl||(Dl=document.querySelector("base"))?Dl.getAttribute("href"):null;return null==n?null:(t=n,wl||(wl=document.createElement("a")),wl.setAttribute("href",t),"/"===wl.pathname.charAt(0)?wl.pathname:"/"+wl.pathname)}},{key:"resetBaseElement",value:function(){Dl=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return function(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),s=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),a=s[0],l=s[1];if(a.trim()===t)return decodeURIComponent(l)}}catch(u){r.e(u)}finally{r.f()}return null}(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,tl||(tl=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),Dl=null,jl=new Ve("TRANSITION_ID"),Hl=[{provide:ua,useFactory:function(e,t,n){return function(){n.get(ca).donePromise.then((function(){var n=nl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[jl,al,Ui],multi:!0}],ql=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){Se.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Se.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Se.getAllAngularRootElements=function(){return e.getAllRootElements()},Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push((function(e){var t=Se.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?nl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,La=t}}]),e}(),Bl=new Ve("EventManagerPlugins"),Ll=((xl=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&au.hasOwnProperty(t)&&(t=au[t]))}return su[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ou.forEach((function(r){r!=n&&(0,lu[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(zl)).\u0275fac=function(e){return new(e||Jl)(Le(al))},Jl.\u0275prov=oe({token:Jl,factory:Jl.\u0275fac}),Jl),cu=Za(Ja,"browser",[{provide:va,useValue:"browser"},{provide:pa,useValue:function(){Rl.makeCurrent(),ql.init()},multi:!0},{provide:al,useFactory:function(){return function(e){bt=e}(document),document},deps:[]}]),hu=[[],{provide:Ri,useValue:"root"},{provide:Qn,useFactory:function(){return new Qn},deps:[]},{provide:Bl,useClass:iu,multi:!0,deps:[al,Ia,va]},{provide:Bl,useClass:uu,multi:!0,deps:[al]},[],{provide:eu,useClass:eu,deps:[Ll,Zl,ha]},{provide:Jo,useExisting:eu},{provide:Kl,useExisting:Zl},{provide:Zl,useClass:Zl,deps:[al]},{provide:qa,useClass:qa,deps:[Ia]},{provide:Ll,useClass:Ll,deps:[Bl,Ia]},[]],fu=(($l=function(){function e(t){if(_classCallCheck(this,e),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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:ha,useValue:t.appId},{provide:jl,useExisting:ha},Hl]}}}]),e}()).\u0275mod=at({type:$l}),$l.\u0275inj=se({factory:function(e){return new(e||$l)(Le($l,12))},providers:hu,imports:[Fl,el]}),$l);"undefined"!=typeof window&&window;var du=function e(){_classCallCheck(this,e)};function pu(e,t){return{type:7,name:e,definitions:t,options:{}}}function vu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function gu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function yu(e){return{type:6,styles:e,offset:null}}function mu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function _u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function Cu(e,t){return{type:12,timings:e,animation:t}}function bu(e){Promise.resolve(null).then(e)}var ku=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;bu((function(){return e._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}(),wu=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,i=0,o=0,s=this.players.length;0==s?bu((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++r==s&&n._onFinish()})),e.onDestroy((function(){++i==s&&n._onDestroy()})),e.onStart((function(){++o==s&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(e){return e.init()}))}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(e){return e.play()}))}},{key:"pause",value:function(){this.players.forEach((function(e){return e.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(e){return e.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(e){return e.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(e){return e.destroy()})),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(e){return e.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach((function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)}))}},{key:"getPosition",value:function(){var e=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{key:"beforeDestroy",value:function(){this.players.forEach((function(e){e.beforeDestroy&&e.beforeDestroy()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}]),e}();function xu(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Su(e){switch(e.length){case 0:return new ku;case 1:return e[0];default:return new wu(e)}}function Au(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],a=[],l=-1,u=null;if(r.forEach((function(e){var n=e.offset,r=n==l,c=r&&u||{};Object.keys(e).forEach((function(n){var r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,s),a){case"!":a=i[n];break;case"*":a=o[n];break;default:a=t.normalizeStyleValue(n,r,a,s)}c[r]=a})),r||a.push(c),u=c,l=n})),s.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(s.join(c)))}return a}function Eu(e,t,n,r){switch(t){case"start":e.onStart((function(){return r(n&&Tu(n,"start",e))}));break;case"done":e.onDone((function(){return r(n&&Tu(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return r(n&&Tu(n,"destroy",e))}))}}function Tu(e,t,n){var r=n.totalTime,i=Pu(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),o=e._data;return null!=o&&(i._data=o),i}function Pu(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Ou(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function Iu(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Mu=function(e,t){return!1},Vu=function(e,t){return!1},Nu=function(e,t,n){return[]},Fu=xu();(Fu||"undefined"!=typeof Element)&&(Mu=function(e,t){return e.contains(t)},Vu=function(){if(Fu||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Vu}(),Nu=function(e,t,n){var r=[];if(n)r.push.apply(r,_toConsumableArray(e.querySelectorAll(t)));else{var i=e.querySelector(t);i&&r.push(i)}return r});var Ru=null,Du=!1;function ju(e){Ru||(Ru=("undefined"!=typeof document?document.body:null)||{},Du=!!Ru.style&&"WebkitAppearance"in Ru.style);var t=!0;return Ru.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Ru.style)&&Du)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ru.style),t}var Hu=Vu,qu=Mu,Bu=Nu;function Lu(e){var t={};return Object.keys(e).forEach((function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]})),t}var zu,Ku=((zu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ju(e)}},{key:"matchesElement",value:function(e,t){return Hu(e,t)}},{key:"containsElement",value:function(e,t){return qu(e,t)}},{key:"query",value:function(e,t,n){return Bu(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,r,i){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new ku(n,r)}}]),e}()).\u0275fac=function(e){return new(e||zu)},zu.\u0275prov=oe({token:zu,factory:zu.\u0275fac}),zu),Zu=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new Ku,e}();function Qu(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Wu(parseFloat(t[1]),t[2])}function Wu(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Gu(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,i=0,o="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};r=Wu(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(i=Wu(parseFloat(a),s[4]));var l=s[5];l&&(o=l)}else r=e;if(!n){var u=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:r,delay:i,easing:o}}(e,t,n)}function Uu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}function Yu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else Uu(e,n);return n}function Xu(e,t,n){return n?t+":"+n+";":""}function Ju(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=i[1],s=i[2],a=i[3];t.push(pc(o,a)),"<"!=s[0]||"*"==o&&"*"==a||t.push(pc(a,o))}(e,i,r)})):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Cc(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return cc(n,e,t)})),options:Cc(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map((function(e){t.currentTime=r;var o=cc(n,e,t);return i=Math.max(i,t.currentTime),o}));return t.currentTime=i,{type:3,steps:o,options:Cc(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return bc(Gu(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var i=bc(0,0,"");return i.dynamic=!0,i.strValue=r,i}return bc((n=n||Gu(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:yu({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=yu(a)}t.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,t);l.isEmptyStep=s,n=l}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach((function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)})):n.push(e.styles);var r=!1,i=null;return n.forEach((function(e){if(_c(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach((function(e){"string"!=typeof e&&Object.keys(e).forEach((function(r){if(n._driver.validateStyleProperty(r)){var s,a,l,u,c,h=t.collectedStyles[t.currentQuerySelector],f=h[r],d=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),d=!1),o=f.startTime),d&&(h[r]={startTime:o,endTime:i}),t.options&&(s=e[r],a=t.options,l=t.errors,u=a.params||{},(c=rc(s)).length&&c.forEach((function(e){u.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,l=0,u=e.steps.map((function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach((function(e){if(_c(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(_c(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),a=a||c<0||c>1,s=s||c0&&i0?i==f?1:h*i:o[i],a=s*v;t.currentTime=d+p.delay+a,p.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)})),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:cc(this,tc(e.animation),t),options:Cc(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Cc(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Cc(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(vc,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(e){return".ng-trigger-"+e.substr(1)})).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],s=i[1];t.currentQuerySelector=n.length?n+" "+o:o,Ou(t.collectedStyles,t.currentQuerySelector,{});var a=cc(this,tc(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Cc(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Gu(e.timings,t.errors,!0);return{type:12,animation:cc(this,tc(e.animation),t),timings:n,options:null}}}]),e}(),mc=function e(t){_classCallCheck(this,e),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 _c(e){return!Array.isArray(e)&&"object"==typeof e}function Cc(e){var t;return e?(e=Uu(e)).params&&(e.params=(t=e.params)?Uu(t):null):e={},e}function bc(e,t,n){return{duration:e,delay:t,easing:n}}function kc(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var wc=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),xc=new RegExp(":enter","g"),Sc=new RegExp(":leave","g");function Ac(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},a=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Ec).buildKeyframes(e,t,n,r,i,o,s,a,l,u)}var Ec=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,o,s,a,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new wc;var c=new Pc(e,t,l,r,i,u,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),cc(this,n,c);var h=c.timelines.filter((function(e){return e.containsAnimation()}));if(h.length&&Object.keys(s).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([s],null,c.errors,a)}return h.length?h.map((function(e){return e.buildKeyframes()})):[kc(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?Qu(n.duration):null,o=null!=n.delay?Qu(n.delay):null;return 0!==i&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)})),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),cc(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Tc);var s=Qu(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach((function(e){return cc(n,e,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Qu(e.options.delay):0;e.steps.forEach((function(s){var a=t.createSubContext(e.options);o&&a.delayNextStep(o),cc(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)})),r.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Gu(t.params?ic(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach((function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?Qu(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Tc);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;var l=null;a.forEach((function(r,i){t.currentQueryIndex=i;var a=t.createSubContext(e.options,r);o&&a.delayNextStep(o),r===t.element&&(l=a.currentTimeline),cc(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),s=o*(t.currentQueryTotal-1),a=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var l=t.currentTimeline;a&&l.delayNextStep(a);var u=l.currentTime;cc(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}]),e}(),Tc={},Pc=function(){function e(t,n,r,i,o,s,a,l){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Tc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Oc(this._driver,n,0),a.push(this.currentTimeline)}return _createClass(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=Qu(r.duration)),null!=r.delay&&(i.delay=Qu(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach((function(e){t&&s.hasOwnProperty(e)||(s[e]=ic(o[e],s,n.errors))}))}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach((function(e){n[e]=t[e]}))}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Tc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Ic(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,o){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(xc,"."+this._enterClassName)).replace(Sc,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,_toConsumableArray(a))}return i||0!=s.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),e}(),Oc=function(){function e(t,n,r,i){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach((function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){r[e]="*"})):Yu(e,!1,r)})),r}(e,this._globalTimelineStyles);Object.keys(s).forEach((function(e){var t=ic(s[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:"*"),i._updateStyle(e,t)}))}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){e._currentKeyframe[n]=t[n]})),Object.keys(this._localTimelineStyles).forEach((function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])})))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach((function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach((function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)}))}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,s){var a=Yu(o,!0);Object.keys(a).forEach((function(e){var r=a[e];"!"==r?t.add(e):"*"==r&&n.add(e)})),r||(a.offset=s/e.duration),i.push(a)}));var o=t.size?oc(t.values()):[],s=n.size?oc(n.values()):[];if(r){var a=i[0],l=Uu(a);a.offset=0,l.offset=1,i=[a,l]}return kc(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),Ic=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,s,a){var l,u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(l=t.call(this,e,r,a.delay)).element=r,l.keyframes=i,l.preStyleProps=o,l.postStyleProps=s,l._stretchStartingKeyframe=u,l.timings={duration:a.duration,delay:a.delay,easing:a.easing},l}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,l=Yu(e[0],!1);l.offset=0,o.push(l);var u=Yu(e[0],!1);u.offset=Mc(a),o.push(u);for(var c=e.length-1,h=1;h<=c;h++){var f=Yu(e[h],!1);f.offset=Mc((n+f.offset*r)/s),o.push(f)}r=s,n=0,i="",e=o}return kc(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(Oc);function Mc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Vc=function e(){_classCallCheck(this,e)},Nc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return ac(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",o=n.toString().trim();if(Fc[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+i}}]),n}(Vc),Fc=function(e){var t={};return e.forEach((function(e){return t[e]=!0})),t}("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 Rc(e,t,n,r,i,o,s,a,l,u,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:f}}var Dc={},jc=function(){function e(t,n,r){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return _createClass(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some((function(e){return e(t,n,r,i)}))}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,r,i,o,s,a,l,u){var c=[],h=this.ast.options&&this.ast.options.params||Dc,f=this.buildStyles(n,s&&s.params||Dc,c),d=a&&a.params||Dc,p=this.buildStyles(r,d,c),v=new Set,g=new Map,y=new Map,m="void"===r,_={params:Object.assign(Object.assign({},h),d)},C=u?[]:Ac(e,t,this.ast.animation,i,o,f,p,_,l,c),b=0;if(C.forEach((function(e){b=Math.max(e.duration+e.delay,b)})),c.length)return Rc(t,this._triggerName,n,r,m,f,p,[],[],g,y,b,c);C.forEach((function(e){var n=e.element,r=Ou(g,n,{});e.preStyleProps.forEach((function(e){return r[e]=!0}));var i=Ou(y,n,{});e.postStyleProps.forEach((function(e){return i[e]=!0})),n!==t&&v.add(n)}));var k=oc(v.values());return Rc(t,this._triggerName,n,r,m,f,p,C,k,g,y,b)}}]),e}(),Hc=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},r=Uu(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(r[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach((function(e){var o=i[e];o.length>1&&(o=ic(o,r,t)),n[e]=o}))}})),n}}]),e}(),qc=function(){function e(t,n){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){r.states[e.name]=new Hc(e.style,e.options&&e.options.params||{})})),Bc(this.states,"true","1"),Bc(this.states,"false","0"),n.transitions.forEach((function(e){r.transitionFactories.push(new jc(t,e,r.states))})),this.fallbackTransition=new jc(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find((function(i){return i.match(e,t,n,r)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function Bc(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Lc=new wc,zc=function(){function e(t,n,r){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],r=gc(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=Au(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[e],a=new Map;if(s?(n=Ac(this._driver,t,s,"ng-enter","ng-leave",{},{},i,Lc,o)).forEach((function(e){var t=Ou(a,e.element,{});e.postStyleProps.forEach((function(e){return t[e]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));a.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=r._driver.computeStyle(t,n,"*")}))}));var l=Su(n.map((function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)})));return this._playersById[e]=l,l.onDestroy((function(){return r.destroy(e)})),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,r){var i=Pu(t,"","","");return Eu(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);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(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),Kc=[],Zc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Qc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var r,i=t&&t.hasOwnProperty("value");if(this.value=null!=(r=i?t.value:t)?r:null,i){var o=Uu(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach((function(e){null==n[e]&&(n[e]=t[e])}))}}},{key:"params",get:function(){return this.options.params}}]),e}(),Gc=new Wc("void"),Uc=function(){function e(t,n,r){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,nh(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var s=Ou(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var l=Ou(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(nh(e,"ng-trigger"),nh(e,"ng-trigger-"+t),l[t]=Gc),function(){o._engine.afterFlush((function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),o._triggers[t]||delete l[t]}))}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),s=new Xc(this.id,t,e),a=this._engine.statesByElement.get(e);a||(nh(e,"ng-trigger"),nh(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var l=a[t],u=new Wc(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[t]=u,l||(l=Gc),"void"===u.value||l.value!==u.value){var c=Ou(this._engine.playersByElement,e,[]);c.forEach((function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()}));var h=o.matchTransition(l.value,u.value,e,u.params),f=!1;if(!h){if(!i)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:f}),f||(nh(e,"ng-animate-queued"),s.onStart((function(){rh(e,"ng-animate-queued")}))),s.onDone((function(){var t=r.players.indexOf(s);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(s);i>=0&&n.splice(i,1)}})),this.players.push(s),c.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(t)}))}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),nh(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),rh(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,r){if(Jc(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return Jc(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach((function(e){return t.destroyActiveAnimationsForElement(e)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach((function(e){return t.finishActiveQueriedAnimationOnElement(e)}))}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach((function(e){e.queued?e.markedForDestroy=!0:e.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach((function(e){return e.finish()}))}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise((function(t){if(e.players.length)return Su(e.players).onDone((function(){return t()}));t()}))}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Zc,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach((function(e){t.markElementAsDisabled(e,!1)}))}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;A--)this._namespaceList[A].drainQueuedTransitions(t).forEach((function(e){var t=e.player,o=e.element;if(x.push(t),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,o),d=k.get(o),v=p.get(o),g=n._buildInstruction(e,r,v,d,f);if(!g.errors||!g.errors.length)return f?(t.onStart((function(){return ec(o,g.fromStyles)})),t.onDestroy((function(){return $u(o,g.toStyles)})),void i.push(t)):e.isFallbackTransition?(t.onStart((function(){return ec(o,g.fromStyles)})),t.onDestroy((function(){return $u(o,g.toStyles)})),void i.push(t)):(g.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),r.append(o,g.timelines),s.push({instruction:g,player:t,element:o}),g.queriedElements.forEach((function(e){return Ou(a,e,[]).push(t)})),g.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var r=l.get(t);r||l.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))}})),void g.postStyleProps.forEach((function(e,t){var n=Object.keys(e),r=u.get(t);r||u.set(t,r=new Set),n.forEach((function(e){return r.add(e)}))})));S.push(g)}));if(S.length){var E=[];S.forEach((function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return E.push("- ".concat(e,"\n"))}))})),x.forEach((function(e){return e.destroy()})),this.reportError(E)}var T=new Map,P=new Map;s.forEach((function(e){var t=e.element;r.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))})),i.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){Ou(T,t,[]).push(e),e.destroy()}))}));var O=g.filter((function(e){return oh(e,l,u)})),I=new Map;eh(I,this.driver,m,u,"*").forEach((function(e){oh(e,l,u)&&O.push(e)}));var M=new Map;d.forEach((function(e,t){eh(M,n.driver,new Set(e),l,"!")})),O.forEach((function(e){var t=I.get(e),n=M.get(e);I.set(e,Object.assign(Object.assign({},t),n))}));var V=[],N=[],F={};s.forEach((function(e){var t=e.element,s=e.player,a=e.instruction;if(r.has(t)){if(c.has(t))return s.onDestroy((function(){return $u(t,a.toStyles)})),s.disabled=!0,s.overrideTotalTime(a.totalTime),void i.push(s);var l=F;if(P.size>1){for(var u=t,h=[];u=u.parentNode;){var f=P.get(u);if(f){l=f;break}h.push(u)}h.forEach((function(e){return P.set(e,l)}))}var d=n._buildAnimation(s.namespaceId,a,T,o,M,I);if(s.setRealPlayer(d),l===F)V.push(s);else{var p=n.playersByElement.get(l);p&&p.length&&(s.parentPlayer=Su(p)),i.push(s)}}else ec(t,a.fromStyles),s.onDestroy((function(){return $u(t,a.toStyles)})),N.push(s),c.has(t)&&i.push(s)})),N.forEach((function(e){var t=o.get(e.element);if(t&&t.length){var n=Su(t);e.setRealPlayer(n)}})),i.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var R=0;R0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ku(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach((function(t){t.players.forEach((function(t){t.queued&&e.push(t)}))})),e}}]),e}(),Xc=function(){function e(t,n,r){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new ku,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return Eu(e,n,void 0,t)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart((function(){return n.triggerCallback("start")})),e.onDone((function(){return t.finish()})),e.onDestroy((function(){return t.destroy()}))}},{key:"_queueEvent",value:function(e,t){Ou(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Jc(e){return e&&1===e.nodeType}function $c(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function eh(e,t,n,r,i){var o=[];n.forEach((function(e){return o.push($c(e))}));var s=[];r.forEach((function(n,r){var o={};n.forEach((function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Qc,s.push(r))})),e.set(r,o)}));var a=0;return n.forEach((function(e){return $c(e,o[a++])})),s}function th(e,t){var n=new Map;if(e.forEach((function(e){return n.set(e,[])})),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var s=t.parentNode;return o=n.has(s)?s:r.has(s)?1:e(s),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)})),n}function nh(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function rh(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function ih(e,t,n){Su(n).onDone((function(){return e.processLeaveNode(t)}))}function oh(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach((function(e){return i.add(e)})):t.set(e,r),n.delete(e),!0}var sh=function(){function e(t,n,r){var i=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Yc(t,n,r),this._timelineEngine=new zc(t,n,r),this._transitionEngine.onRemovalComplete=function(e,t){return i.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,n,r,i){var o=e+"-"+r,s=this._triggerCache[o];if(!s){var a=[],l=gc(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(a.join("\n - ")));s=function(e,t){return new qc(e,t)}(r,l),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,r,s)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}},{key:"onRemove",value:function(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,r){if("@"==n.charAt(0)){var i=_slicedToArray(Iu(n),2),o=i[0],s=i[1];this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}},{key:"listen",value:function(e,t,n,r,i){if("@"==n.charAt(0)){var o=_slicedToArray(Iu(n),2),s=o[0],a=o[1];return this._timelineEngine.listen(s,t,a,i)}return this._transitionEngine.listen(e,t,n,r,i)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function ah(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=uh(t[0]),t.length>1&&(r=uh(t[t.length-1]))):t&&(n=uh(t)),n||r?new lh(e,n,r):null}var lh=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&$u(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&($u(this._element,this._initialStyles),this._endStyles&&($u(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ec(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ec(this._element,this._endStyles),this._endStyles=null),$u(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function uh(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vh(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=yh(e,"").split(","),(r=ph(n,t))>=0&&(n.splice(r,1),gh(e,"",n.join(","))))}}]),e}();function fh(e,t,n){gh(e,"PlayState",n,dh(e,t))}function dh(e,t){var n=yh(e,"");return n.indexOf(",")>0?ph(n.split(","),t):ph([n],t)}function ph(e,t){for(var n=0;n=0)return n;return-1}function vh(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function gh(e,t,n,r){var i="animation"+t;if(null!=r){var o=e.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}e.style[i]=n}function yh(e,t){return e.style["animation"+t]}var mh=function(){function e(t,n,r,i,o,s,a,l){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new hh(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return e.finish()}))}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:hc(e.element,r))}))}this.currentSnapshot=t}}]),e}(),_h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=Lu(r),i}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(ku),Ch=function(){function e(){_classCallCheck(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ju(e)}},{key:"matchesElement",value:function(e,t){return Hu(e,t)}},{key:"containsElement",value:function(e,t){return qu(e,t)}},{key:"query",value:function(e,t,n){return Bu(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map((function(e){return Lu(e)}));var r="@keyframes ".concat(t," {\n"),i="";n.forEach((function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}})),r+="".concat(i,"}\n")})),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6?arguments[6]:void 0;s&&this._notifyFaultyScrubber();var a=o.filter((function(e){return e instanceof mh})),l={};lc(n,r)&&a.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach((function(e){Object.keys(e).forEach((function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])}))})),t}(t=uc(e,t,l));if(0==n)return new _h(e,u);var c="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);var f=ah(e,t),d=new mh(e,t,c,n,r,i,u,f);return d.onDestroy((function(){var e;(e=h).parentNode.removeChild(e)})),d}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),e}(),bh=function(){function e(t,n,r,i){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return e._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(e){return e()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(e){return e()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:hc(e.element,n))})),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),kh=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wh().toString()),this._cssKeyframesDriver=new Ch}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return ju(e)}},{key:"matchesElement",value:function(e,t){return Hu(e,t)}},{key:"containsElement",value:function(e,t){return qu(e,t)}},{key:"query",value:function(e,t,n){return Bu(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6?arguments[6]:void 0;if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var l={},u=o.filter((function(e){return e instanceof bh}));lc(n,r)&&u.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var c=ah(e,t=uc(e,t=t.map((function(e){return Yu(e,!1)})),l));return new bh(e,t,a,c)}}]),e}();function wh(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var xh,Sh=((xh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:$e.None,styles:[],data:{animation:[]}}),i}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?gu(e):e;return Th(this._renderer,null,t,"register",[n]),new Ah(t,this._renderer)}}]),n}(du)).\u0275fac=function(e){return new(e||xh)(Le(Jo),Le(al))},xh.\u0275prov=oe({token:xh,factory:xh.\u0275fac}),xh),Ah=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return _createClass(n,[{key:"create",value:function(e,t){return new Eh(this._id,e,t||{},this._renderer)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),Eh=function(){function e(t,n,r,i){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e0&&void 0!==arguments[0])||arguments[0];return e?"hsla(".concat(this.getHue(),", ").concat(this.getSaturation(),"%, ").concat(this.getLightness(),"%, ").concat(this.getAlpha(),")"):"hsl(".concat(this.getHue(),", ").concat(this.getSaturation(),"%, ").concat(this.getLightness(),"%)")}},{key:"getHue",value:function(){return Math.round(this.hue)}},{key:"getSaturation",value:function(){return Math.round(this.saturation)}},{key:"getLightness",value:function(){return Math.round(this.lightness)}},{key:"getAlpha",value:function(){return Math.round(100*this.alpha)/100}}]),n}(Wh),Yh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;return _classCallCheck(this,n),(s=t.call(this)).hue=e,s.saturation=r,s.value=i,s.alpha=o,s}return _createClass(n,[{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?"hsva(".concat(this.getHue(),", ").concat(this.getSaturation(),"%, ").concat(this.getValue(),"%, ").concat(this.getAlpha(),")"):"hsv(".concat(this.getHue(),", ").concat(this.getSaturation(),"%, ").concat(this.getValue(),"%)")}},{key:"getHue",value:function(){return Math.round(this.hue)}},{key:"getSaturation",value:function(){return Math.round(this.saturation)}},{key:"getValue",value:function(){return Math.round(this.value)}},{key:"getAlpha",value:function(){return Math.round(100*this.alpha)/100}}]),n}(Wh),Xh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;return _classCallCheck(this,n),(s=t.call(this)).red=e,s.green=r,s.blue=i,s.alpha=o,s}return _createClass(n,[{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?"rgba(".concat(this.getRed(),", ").concat(this.getGreen(),", ").concat(this.getBlue(),", ").concat(this.getAlpha(),")"):"rgb(".concat(this.getRed(),", ").concat(this.getGreen(),", ").concat(this.getBlue(),")")}},{key:"getRed",value:function(){return Math.round(this.red)}},{key:"getGreen",value:function(){return Math.round(this.green)}},{key:"getBlue",value:function(){return Math.round(this.blue)}},{key:"getAlpha",value:function(){return Math.round(100*this.alpha)/100}}]),n}(Wh),Jh=((Vh=function e(){_classCallCheck(this,e)}).transparent=new Xh(0,0,0,0),Vh.aliceblue=new Xh(240,248,255,1),Vh.antiquewhite=new Xh(250,235,215,1),Vh.aqua=new Xh(0,255,255,1),Vh.aquamarine=new Xh(127,255,212,1),Vh.azure=new Xh(240,255,255,1),Vh.beige=new Xh(245,245,220,1),Vh.bisque=new Xh(255,228,196,1),Vh.black=new Xh(0,0,0,1),Vh.blanchedalmond=new Xh(255,235,205,1),Vh.blue=new Xh(0,0,255,1),Vh.blueviolet=new Xh(138,43,226,1),Vh.brown=new Xh(165,42,42,1),Vh.burlywood=new Xh(222,184,135,1),Vh.cadetblue=new Xh(95,158,160,1),Vh.chartreuse=new Xh(127,255,0,1),Vh.chocolate=new Xh(210,105,30,1),Vh.coral=new Xh(255,127,80,1),Vh.cornflowerblue=new Xh(100,149,237,1),Vh.cornsilk=new Xh(255,248,220,1),Vh.crimson=new Xh(220,20,60,1),Vh.cyan=new Xh(0,255,255,1),Vh.darkblue=new Xh(0,0,139,1),Vh.darkcyan=new Xh(0,139,139,1),Vh.darkgoldenrod=new Xh(184,134,11,1),Vh.darkgray=new Xh(169,169,169,1),Vh.darkgreen=new Xh(0,100,0,1),Vh.darkgrey=Vh.darkgray,Vh.darkkhaki=new Xh(189,183,107,1),Vh.darkmagenta=new Xh(139,0,139,1),Vh.darkolivegreen=new Xh(85,107,47,1),Vh.darkorange=new Xh(255,140,0,1),Vh.darkorchid=new Xh(153,50,204,1),Vh.darkred=new Xh(139,0,0,1),Vh.darksalmon=new Xh(233,150,122,1),Vh.darkseagreen=new Xh(143,188,143,1),Vh.darkslateblue=new Xh(72,61,139,1),Vh.darkslategray=new Xh(47,79,79,1),Vh.darkslategrey=Vh.darkslategray,Vh.darkturquoise=new Xh(0,206,209,1),Vh.darkviolet=new Xh(148,0,211,1),Vh.deeppink=new Xh(255,20,147,1),Vh.deepskyblue=new Xh(0,191,255,1),Vh.dimgray=new Xh(105,105,105,1),Vh.dimgrey=Vh.dimgray,Vh.dodgerblue=new Xh(30,144,255,1),Vh.firebrick=new Xh(178,34,34,1),Vh.floralwhite=new Xh(255,250,240,1),Vh.forestgreen=new Xh(34,139,34,1),Vh.fuchsia=new Xh(255,0,255,1),Vh.gainsboro=new Xh(220,220,220,1),Vh.ghostwhite=new Xh(248,248,255,1),Vh.gold=new Xh(255,215,0,1),Vh.goldenrod=new Xh(218,165,32,1),Vh.gray=new Xh(128,128,128,1),Vh.grey=Vh.gray,Vh.green=new Xh(0,128,0,1),Vh.greenyellow=new Xh(173,255,47,1),Vh.honeydew=new Xh(240,255,240,1),Vh.hotpink=new Xh(255,105,180,1),Vh.indianred=new Xh(205,92,92,1),Vh.indigo=new Xh(75,0,130,1),Vh.ivory=new Xh(255,255,240,1),Vh.khaki=new Xh(240,230,140,1),Vh.lavender=new Xh(230,230,250,1),Vh.lavenderblush=new Xh(255,240,245,1),Vh.lawngreen=new Xh(124,252,0,1),Vh.lemonchiffon=new Xh(255,250,205,1),Vh.lightblue=new Xh(173,216,230,1),Vh.lightcoral=new Xh(240,128,128,1),Vh.lightcyan=new Xh(224,255,255,1),Vh.lightgoldenrodyellow=new Xh(250,250,210,1),Vh.lightgray=new Xh(211,211,211,1),Vh.lightgreen=new Xh(144,238,144,1),Vh.lightgrey=Vh.lightgray,Vh.lightpink=new Xh(255,182,193,1),Vh.lightsalmon=new Xh(255,160,122,1),Vh.lightseagreen=new Xh(32,178,170,1),Vh.lightskyblue=new Xh(135,206,250,1),Vh.lightslategray=new Xh(119,136,153,1),Vh.lightslategrey=Vh.lightslategray,Vh.lightsteelblue=new Xh(176,196,222,1),Vh.lightyellow=new Xh(255,255,224,1),Vh.lime=new Xh(0,255,0,1),Vh.limegreen=new Xh(50,205,50,1),Vh.linen=new Xh(250,240,230,1),Vh.magenta=new Xh(255,0,255,1),Vh.maroon=new Xh(128,0,0,1),Vh.mediumaquamarine=new Xh(102,205,170,1),Vh.mediumblue=new Xh(0,0,205,1),Vh.mediumorchid=new Xh(186,85,211,1),Vh.mediumpurple=new Xh(147,112,219,1),Vh.mediumseagreen=new Xh(60,179,113,1),Vh.mediumslateblue=new Xh(123,104,238,1),Vh.mediumspringgreen=new Xh(0,250,154,1),Vh.mediumturquoise=new Xh(72,209,204,1),Vh.mediumvioletred=new Xh(199,21,133,1),Vh.midnightblue=new Xh(25,25,112,1),Vh.mintcream=new Xh(245,255,250,1),Vh.mistyrose=new Xh(255,228,225,1),Vh.moccasin=new Xh(255,228,181,1),Vh.navajowhite=new Xh(255,222,173,1),Vh.navy=new Xh(0,0,128,1),Vh.oldlace=new Xh(253,245,230,1),Vh.olive=new Xh(128,128,0,1),Vh.olivedrab=new Xh(107,142,35,1),Vh.orange=new Xh(255,165,0,1),Vh.orangered=new Xh(255,69,0,1),Vh.orchid=new Xh(218,112,214,1),Vh.palegoldenrod=new Xh(238,232,170,1),Vh.palegreen=new Xh(152,251,152,1),Vh.paleturquoise=new Xh(175,238,238,1),Vh.palevioletred=new Xh(219,112,147,1),Vh.papayawhip=new Xh(255,239,213,1),Vh.peachpuff=new Xh(255,218,185,1),Vh.peru=new Xh(205,133,63,1),Vh.pink=new Xh(255,192,203,1),Vh.plum=new Xh(221,160,221,1),Vh.powderblue=new Xh(176,224,230,1),Vh.purple=new Xh(128,0,128,1),Vh.red=new Xh(255,0,0,1),Vh.rosybrown=new Xh(188,143,143,1),Vh.royalblue=new Xh(65,105,225,1),Vh.saddlebrown=new Xh(139,69,19,1),Vh.salmon=new Xh(250,128,114,1),Vh.sandybrown=new Xh(244,164,96,1),Vh.seagreen=new Xh(46,139,87,1),Vh.seashell=new Xh(255,245,238,1),Vh.sienna=new Xh(160,82,45,1),Vh.silver=new Xh(192,192,192,1),Vh.skyblue=new Xh(135,206,235,1),Vh.slateblue=new Xh(106,90,205,1),Vh.slategray=new Xh(112,128,144,1),Vh.slategrey=Vh.slategray,Vh.snow=new Xh(255,250,250,1),Vh.springgreen=new Xh(0,255,127,1),Vh.steelblue=new Xh(70,130,180,1),Vh.tan=new Xh(210,180,140,1),Vh.teal=new Xh(0,128,128,1),Vh.thistle=new Xh(216,191,216,1),Vh.tomato=new Xh(255,99,71,1),Vh.turquoise=new Xh(64,224,208,1),Vh.violet=new Xh(238,130,238,1),Vh.wheat=new Xh(245,222,179,1),Vh.white=new Xh(255,255,255,1),Vh.whitesmoke=new Xh(245,245,245,1),Vh.yellow=new Xh(255,255,0,1),Vh.yellowgreen=new Xh(154,205,50,1),Vh),$h=function(){function e(t){_classCallCheck(this,e),this.hsva=new Yh(0,1,1,1),this.rgba=new Xh(255,0,0,1),t&&this.stringToColor(t)}return _createClass(e,[{key:"clone",value:function(){return e.from(this.getRgba())}},{key:"setFromString",value:function(e){return this.stringToColor(e)}},{key:"setHsva",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return null!=e&&(this.hsva.hue=e),null!=t&&(this.hsva.saturation=t),null!=n&&(this.hsva.value=n),null!=r&&(this.hsva.alpha=r=r>1?1:r<0?0:r),this.rgba=this.hsvaToRgba(this.hsva),this}},{key:"setRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return null!=e&&(this.rgba.red=e),null!=t&&(this.rgba.green=t),null!=n&&(this.rgba.blue=n),null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r),this.hsva=this.rgbaToHsva(this.rgba),this}},{key:"setHsla",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;null!=r&&(this.rgba.alpha=r=r>1?1:r<0?0:r);var i=new Uh(e,t,n,r);return this.rgba=this.hslaToRgba(i),this.hsva=this.rgbaToHsva(this.rgba),this}},{key:"toHexString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="#"+(1<<24|this.rgba.getRed()<<16|this.rgba.getGreen()<<8|this.rgba.getBlue()).toString(16).substr(1);return e&&(t+=(256|Math.round(255*this.rgba.alpha)).toString(16).substr(1)),t.toUpperCase()}},{key:"toRgbaString",value:function(){return this.rgba.toString()}},{key:"toRgbString",value:function(){return this.rgba.toString(!1)}},{key:"toHslaString",value:function(){return this.getHsla().toString()}},{key:"toHslString",value:function(){return this.getHsla().toString(!1)}},{key:"toHsvaString",value:function(){return this.hsva.toString()}},{key:"toHsvString",value:function(){return this.hsva.toString(!1)}},{key:"toCmykString",value:function(){return this.getCmyk().toString()}},{key:"getHsva",value:function(){return new Yh(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}},{key:"getRgba",value:function(){return new Xh(this.rgba.red,this.rgba.green,this.rgba.blue,this.rgba.alpha)}},{key:"getHsla",value:function(){return this.rgbaToHsla(this.rgba)}},{key:"getCmyk",value:function(){return this.rgbaToCmyk(this.rgba)}},{key:"hsvaToHsla",value:function(e){var t=e.saturation/100,n=(2-t)*e.value/2;return new Uh(e.hue,100*n,100*(t*(e.value/100)/(n<=1?n:2-n)||0),e.alpha)}},{key:"hslaToHsva",value:function(e){var t=e.lightness/100*2,n=e.saturation/100*(t<=1?t:2-t);return new Yh(e.hue,2*n/(t+n)||0,(t+n)/2,e.alpha)}},{key:"rgbaToHsva",value:function(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=e.alpha,o=Math.max(t,n,r),s=Math.min(t,n,r),a=o-s,l=0,u=0===o?0:a/o,c=o;if(o!==s){switch(o){case t:l=(n-r)/a+(n.5?c/(2-o-s):c/(o+s),o){case t:a=(n-r)/c+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}},{key:"cmykToRgba",value:function(e){var t=e.black/100,n=e.magenta/100,r=e.yellow/100,i=Math.min(1,(1-e.cyan/100)*(1-t)),o=Math.min(1,(1-n)*(1-t)),s=Math.min(1,(1-r)*(1-t));return new Xh(i*=255,o*=255,s*=255,1)}},{key:"rgbaToCmyk",value:function(e){var t=1-e.red/255,n=1-e.green/255,r=1-e.blue/255,i=Math.min(t,n,r);return 1===i?new Gh(0,0,0,1):(t=(t-i)/(1-i),n=(n-i)/(1-i),r=(r-i)/(1-i),new Gh(t*=100,n*=100,r*=100,i*=100))}},{key:"roundNumber",value:function(e){return Math.round(100*e)/100}},{key:"stringToColor",value:function(e){var t=e.replace(/ /g,"").toLowerCase(),n=Jh[t]||null;if("#"===t[0]){var r,i=t.substr(1),o=i.length,s=1;if(3===o)r=i.split("").map((function(e){return e+e}));else if(6===o)r=i.match(/.{2}/g);else if(8===o){var a=i.substr(-2);i=i.substr(0,o-2),s=this.roundNumber(parseInt(a||"FF",16)/255),r=i.match(/.{2}/g)}3===r.length&&(n=new Xh(parseInt(r[0],16),parseInt(r[1],16),parseInt(r[2],16),s))}var l=t.indexOf("("),u=t.indexOf(")");if(-1!==l&&u+1===t.length){var c=t.substr(0,l),h=t.substr(l+1,u-(l+1)).split(","),f=1;switch(c){case"rgba":f=parseFloat(h.pop());case"rgb":n=new Xh(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),f);break;case"hsla":f=parseFloat(h.pop());case"hsl":var d=new Uh(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),f);n=this.hslaToRgba(d);break;case"cmyk":var p=new Gh(parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10));n=this.cmykToRgba(p)}}return n&&(this.rgba=n,this.hsva=this.rgbaToHsva(n)),this}}],[{key:"from",value:function(t){return"string"==typeof t?new e(t):t instanceof e?t.clone():t instanceof Xh?(new e).setRgba(t.red,t.green,t.blue,t.alpha):t instanceof Yh?(new e).setHsva(t.hue,t.saturation,t.value,t.alpha):t instanceof Uh?(new e).setHsla(t.hue,t.saturation,t.lightness,t.alpha):null}}]),e}(),ef=((Nh=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.elementRef=n,this.renderer=r,this.eventHooks=[],this.window={pageXOffset:0,pageYOffset:0},this.window=t.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame()}return _createClass(e,[{key:"onEventChange",value:function(e){var t=this;this.calculate(e),this.eventHooks.push(this.renderer.listen(this.document,"mouseup",(function(){return t.removeListeners()}))),this.eventHooks.push(this.renderer.listen(this.document,"touchend",(function(){return t.removeListeners()}))),this.eventHooks.push(this.renderer.listen(this.document,"mousemove",(function(e){return t.calculate(e)}))),this.eventHooks.push(this.renderer.listen(this.document,"touchmove",(function(e){return t.calculate(e)})))}},{key:"calculateCoordinates",value:function(e){var t=this.elementRef.nativeElement.getBoundingClientRect(),n=t.width,r=t.height,i=t.top,o=t.left,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,a=Math.max(0,Math.min(("number"==typeof e.pageX?e.pageX:e.touches[0].pageX)-(o+this.window.pageXOffset),n)),l=Math.max(0,Math.min(s-(i+this.window.pageYOffset),r));this.movePointer({x:a,y:l,height:r,width:n})}},{key:"calculate",value:function(e){var t=this;if(e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame((function(){return t.calculateCoordinates(e)}))}},{key:"getRequestAnimationFrame",value:function(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}},{key:"removeListeners",value:function(){this.eventHooks.forEach((function(e){return e()})),this.eventHooks.length=0}},{key:"ngOnDestroy",value:function(){this.removeListeners()}}]),e}()).\u0275fac=function(e){!function(){throw new Error("invalid")}()},Nh.\u0275dir=ut({type:Nh}),Nh),tf=["pointer"],nf=((Rh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,r,i,e)).colorChange=new Ws(!1),o}return _createClass(n,[{key:"onClick",value:function(e){this.onEventChange(e)}},{key:"ngOnInit",value:function(){this.hue||(this.hue=$h.from(this.color.getHsva())),this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.backgroundColor)}},{key:"ngOnChanges",value:function(e){if(e.color&&e.color.previousValue!==e.color.currentValue){var t=this.color.getHsva();this.changePointerPosition(t.saturation,t.value)}}},{key:"movePointer",value:function(e){var t=e.x,n=e.y,r=e.height,i=100*t/e.width,o=-100*n/r+100;this.changePointerPosition(i,o);var s=this.hue.getHsva(),a=this.color.getHsva(),l=(new $h).setHsva(s.hue,i,o,a.alpha);this.colorChange.emit(l)}},{key:"changePointerPosition",value:function(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top","".concat(100-t,"%")),this.renderer.setStyle(this.pointer.nativeElement,"left","".concat(e,"%"))}},{key:"backgroundColor",get:function(){return this.hue?this.hue.toRgbaString():""}}]),n}(ef)).\u0275fac=function(e){return new(e||Rh)(ho(es),ho(al),ho(Yo))},Rh.\u0275cmp=rt({type:Rh,selectors:[["saturation-component"]],viewQuery:function(e,t){var n;1&e&&oa(tf,!0),2&e&&ia(n=sa())&&(t.pointer=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&Co("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)})),2&e&&Eo("background-color",t.backgroundColor)},inputs:{hue:"hue",color:"color"},outputs:{colorChange:"colorChange"},features:[jo,Ko],decls:2,vars:0,consts:[[1,"pointer"],["pointer",""]],template:function(e,t){1&e&&yo(0,"div",0,1)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnV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{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}'],changeDetection:0}),Rh),rf=((Fh=function(){function e(t,n,r,i){_classCallCheck(this,e),this.pickerConfig=t,this.renderer=n,this.elementRef=r,this.document=i,this.colorType="rgba"}return _createClass(e,[{key:"onClick",value:function(e){var t=this.renderer.createElement("input");switch(this.renderer.setStyle(t,"position","absolute"),this.renderer.setStyle(t,"top","-100%"),this.renderer.setStyle(t,"left","-100%"),this.colorType){case"hsla":t.value=this.color.toHslaString();break;case"hex":t.value=this.color.toHexString();break;default:t.value=this.backgroundColor}this.renderer.appendChild(this.elementRef.nativeElement,t),t.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,t)}},{key:"title",get:function(){return this.pickerConfig?this.pickerConfig.indicatorTitle:""}},{key:"backgroundColor",get:function(){return this.color.toRgbaString()}}]),e}()).\u0275fac=function(e){return new(e||Fh)(ho(Qh),ho(es),ho(Yo),ho(al))},Fh.\u0275cmp=rt({type:Fh,selectors:[["indicator-component"]],hostVars:1,hostBindings:function(e,t){1&e&&Co("click",(function(e){return t.onClick(e)})),2&e&&lo("title",t.title)},inputs:{color:"color",colorType:"colorType"},decls:4,vars:2,consts:[["viewBox","0 0 48 48"],["d","M0 0h48v48h-48z","fill","none"],["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"]],template:function(e,t){1&e&&(vo(0,"div"),an(),vo(1,"svg",0),yo(2,"path",1),yo(3,"path",2),go(),go()),2&e&&Eo("background-color",t.backgroundColor)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:rgba(0,0,0,0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC") repeat}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{z-index:1}[_nghost-%COMP%]:hover:after, [_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%}[_nghost-%COMP%]:hover:after{display:block;content:"\xa0";background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),Fh),of=["pointer"],sf=((Dh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,r,i,e)).hueChange=new Ws(!1),o.colorChange=new Ws(!1),o.isVertical=!1,o}return _createClass(n,[{key:"onClick",value:function(e){this.onEventChange(e)}},{key:"ngOnChanges",value:function(e){if(e.hue&&e.hue.previousValue!==e.hue.currentValue){var t=this.hue.getHsva();this.changePointerPosition(t.hue)}}},{key:"movePointer",value:function(e){var t=e.x,n=e.y,r=e.height,i=e.width,o=this.isVertical?n/r*360:t/i*360;this.changePointerPosition(o);var s=this.color.getHsva(),a=(new $h).setHsva(o,s.saturation,s.value,s.alpha),l=(new $h).setHsva(o,100,100,s.alpha);this.hueChange.emit(l),this.colorChange.emit(a)}},{key:"changePointerPosition",value:function(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left","".concat(e/360*100,"%"))}},{key:"vertical",set:function(e){this.isVertical=!0}}]),n}(ef)).\u0275fac=function(e){return new(e||Dh)(ho(es),ho(al),ho(Yo))},Dh.\u0275cmp=rt({type:Dh,selectors:[["hue-component"]],viewQuery:function(e,t){var n;1&e&&oa(of,!0),2&e&&ia(n=sa())&&(t.pointer=n.first)},hostBindings:function(e,t){1&e&&Co("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)}))},inputs:{hue:"hue",color:"color",vertical:"vertical"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},features:[jo,Ko],decls:2,vars:0,consts:[[1,"pointer"],["pointer",""]],template:function(e,t){1&e&&yo(0,"div",0,1)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC");background-size:100% 100%;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZ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YvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAJtJREFUeNrs2MEJBDEMQ1EZ5rTpv9TM1VuEBGbMTwFCfhdBqqWW8R79pOGAM95gQQCIIIIIYqhBdZvD8so8wQ644w0WBIAIIoggphqU3GGRuW2JgKPPnwAiiCCCuAWx1G0Oi7ltgYA73mBBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC");width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}'],changeDetection:0}),Dh),af=["pointer"],lf=function(e){return{background:e}},uf=((Hh=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,r,i,e)).colorChange=new Ws(!1),o.isVertical=!1,o}return _createClass(n,[{key:"onClick",value:function(e){this.onEventChange(e)}},{key:"ngOnChanges",value:function(e){if(e.color&&e.color.previousValue!==e.color.currentValue){var t=this.color.getHsva();this.changePointerPosition(t.alpha)}}},{key:"movePointer",value:function(e){var t=e.x,n=e.y,r=e.height,i=e.width,o=this.isVertical?n/r:t/i;this.changePointerPosition(o);var s=this.color.getHsva(),a=(new $h).setHsva(s.hue,s.saturation,s.value,o);this.colorChange.emit(a)}},{key:"changePointerPosition",value:function(e){this.renderer.setStyle(this.pointer.nativeElement,this.isVertical?"top":"left","".concat(100*e,"%"))}},{key:"vertical",set:function(e){this.isVertical=!0}},{key:"gradient",get:function(){var e=this.color.getRgba();return"linear-gradient(to ".concat(this.isVertical?"bottom":"right",", rgba(").concat(e.red,", ").concat(e.green,", ").concat(e.blue,", 0) 0%, rgb(").concat(e.red,", ").concat(e.green,", ").concat(e.blue,") 100%)")}}]),n}(ef)).\u0275fac=function(e){return new(e||Hh)(ho(es),ho(al),ho(Yo))},Hh.\u0275cmp=rt({type:Hh,selectors:[["alpha-component"]],viewQuery:function(e,t){var n;1&e&&oa(af,!0),2&e&&ia(n=sa())&&(t.pointer=n.first)},hostBindings:function(e,t){1&e&&Co("mousedown",(function(e){return t.onClick(e)}))("touchstart",(function(e){return t.onClick(e)}))},inputs:{color:"color",vertical:"vertical"},outputs:{colorChange:"colorChange"},features:[jo,Ko],decls:3,vars:3,consts:[[1,"pointer"],["pointer",""],[1,"gradient-color",3,"ngStyle"]],template:function(e,t){var n,r;1&e&&(yo(0,"div",0,1),yo(2,"div",2)),2&e&&(cr(2),fo("ngStyle",(n=lf,r=t.gradient,qs(Dt(),Zt(),1,n,r,void 0))))},directives:[Ol],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==");background-position:0;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}'],changeDetection:0}),Hh),cf=((jh=function(){function e(){_classCallCheck(this,e),this.inputChange=new Ws}return _createClass(e,[{key:"inputChanges",value:function(e){var t=parseFloat((e.target||e.srcElement).value);!isNaN(t)&&t>=parseInt(this.min,10)&&t<=parseInt(this.max,10)&&this.inputChange.emit(t)}}]),e}()).\u0275fac=function(e){return new(e||jh)},jh.\u0275dir=ut({type:jh,selectors:[["","inputChange",""]],hostBindings:function(e,t){1&e&&Co("input",(function(e){return t.inputChanges(e)}))},inputs:{min:"min",max:"max"},outputs:{inputChange:"inputChange"}}),jh);function hf(e,t){1&e&&(vo(0,"span"),No(1,"R"),go())}function ff(e,t){1&e&&(vo(0,"span"),No(1,"G"),go())}function df(e,t){1&e&&(vo(0,"span"),No(1,"B"),go())}function pf(e,t){1&e&&(vo(0,"span"),No(1,"A"),go())}function vf(e,t){if(1&e){var n=mo();vo(0,"div",0),vo(1,"input",4),Co("inputChange",(function(e){return Ht(n),wo().onInputChange(e,"A")})),go(),uo(2,pf,2,0,"span",2),go()}if(2&e){var r=wo();cr(1),fo("value",null==r.value?null:r.value.getAlpha().toString()),cr(1),fo("ngIf",r.labelVisible)}}var gf,yf=((gf=function(){function e(){_classCallCheck(this,e),this.hueChange=new Ws(!1),this.colorChange=new Ws(!1),this.isAlphaVisible=!0}return _createClass(e,[{key:"onInputChange",value:function(e,t){var n=this.value,r="R"===t?e:n.red,i="G"===t?e:n.green,o="B"===t?e:n.blue,s="A"===t?e:n.alpha,a=(new $h).setRgba(r,i,o,s),l=(new $h).setHsva(a.getHsva().hue);this.hueChange.emit(l),this.colorChange.emit(a)}},{key:"label",set:function(e){this.labelVisible=!0}},{key:"alpha",set:function(e){this.isAlphaVisible=e}},{key:"value",get:function(){return this.color?this.color.getRgba():null}}]),e}()).\u0275fac=function(e){return new(e||gf)},gf.\u0275cmp=rt({type:gf,selectors:[["rgba-input-component"]],inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","255",3,"value","inputChange"],[4,"ngIf"],["class","column",4,"ngIf"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"]],template:function(e,t){1&e&&(vo(0,"div",0),vo(1,"input",1),Co("inputChange",(function(e){return t.onInputChange(e,"R")})),go(),uo(2,hf,2,0,"span",2),go(),vo(3,"div",0),vo(4,"input",1),Co("inputChange",(function(e){return t.onInputChange(e,"G")})),go(),uo(5,ff,2,0,"span",2),go(),vo(6,"div",0),vo(7,"input",1),Co("inputChange",(function(e){return t.onInputChange(e,"B")})),go(),uo(8,df,2,0,"span",2),go(),uo(9,vf,3,2,"div",3)),2&e&&(cr(1),fo("value",null==t.value?null:t.value.getRed().toString()),cr(1),fo("ngIf",t.labelVisible),cr(2),fo("value",null==t.value?null:t.value.getGreen().toString()),cr(1),fo("ngIf",t.labelVisible),cr(2),fo("value",null==t.value?null:t.value.getBlue().toString()),cr(1),fo("ngIf",t.labelVisible),cr(1),fo("ngIf",t.isAlphaVisible))},directives:[cf,vl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),gf);function mf(e,t){1&e&&(vo(0,"span"),No(1,"H"),go())}function _f(e,t){1&e&&(vo(0,"span"),No(1,"S"),go())}function Cf(e,t){1&e&&(vo(0,"span"),No(1,"L"),go())}function bf(e,t){1&e&&(vo(0,"span"),No(1,"A"),go())}function kf(e,t){if(1&e){var n=mo();vo(0,"div",0),vo(1,"input",5),Co("inputChange",(function(e){return Ht(n),wo().onInputChange(e,"A")})),go(),uo(2,bf,2,0,"span",2),go()}if(2&e){var r=wo();cr(1),fo("value",null==r.value?null:r.value.getAlpha().toString()),cr(1),fo("ngIf",r.labelVisible)}}var wf,xf=((wf=function(){function e(){_classCallCheck(this,e),this.hueChange=new Ws(!1),this.colorChange=new Ws(!1),this.isAlphaVisible=!0}return _createClass(e,[{key:"onInputChange",value:function(e,t){var n=this.value,r="H"===t?e:n.hue,i="S"===t?e:n.saturation,o="L"===t?e:n.lightness,s="A"===t?e:n.alpha,a=(new $h).setHsla(r,i,o,s),l=(new $h).setHsva(a.getHsva().hue);this.hueChange.emit(l),this.colorChange.emit(a)}},{key:"label",set:function(e){this.labelVisible=!0}},{key:"alpha",set:function(e){this.isAlphaVisible=e}},{key:"value",get:function(){return this.color?this.color.getHsla():null}}]),e}()).\u0275fac=function(e){return new(e||wf)},wf.\u0275cmp=rt({type:wf,selectors:[["hsla-input-component"]],inputs:{hue:"hue",color:"color",label:"label",alpha:"alpha"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","360",3,"value","inputChange"],[4,"ngIf"],["type","text","pattern","[0-9]*","min","0","max","100",3,"value","inputChange"],["class","column",4,"ngIf"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"value","inputChange"]],template:function(e,t){1&e&&(vo(0,"div",0),vo(1,"input",1),Co("inputChange",(function(e){return t.onInputChange(e,"H")})),go(),uo(2,mf,2,0,"span",2),go(),vo(3,"div",0),vo(4,"input",3),Co("inputChange",(function(e){return t.onInputChange(e,"S")})),go(),uo(5,_f,2,0,"span",2),go(),vo(6,"div",0),vo(7,"input",3),Co("inputChange",(function(e){return t.onInputChange(e,"L")})),go(),uo(8,Cf,2,0,"span",2),go(),uo(9,kf,3,2,"div",4)),2&e&&(cr(1),fo("value",null==t.value?null:t.value.getHue().toString()),cr(1),fo("ngIf",t.labelVisible),cr(2),fo("value",(null==t.value?null:t.value.getSaturation())+"%"),cr(1),fo("ngIf",t.labelVisible),cr(2),fo("value",(null==t.value?null:t.value.getLightness())+"%"),cr(1),fo("ngIf",t.labelVisible),cr(1),fo("ngIf",t.isAlphaVisible))},directives:[cf,vl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),wf);function Sf(e,t){1&e&&(vo(0,"span"),No(1,"HEX"),go())}var Af,Ef,Tf=((Af=function(){function e(){_classCallCheck(this,e),this.hueChange=new Ws(!1),this.colorChange=new Ws(!1),this.prefixValue=""}return _createClass(e,[{key:"onInputChange",value:function(e){var t=e.toLowerCase().replace("#","");if((3===t.length||6===t.length||8===t.length)&&parseInt(t,16).toString(16).padStart(t.length,"0")===t&&this.value!==t){var n=new $h("#".concat(t)),r=(new $h).setHsva(n.getHsva().hue);this.hueChange.emit(r),this.colorChange.emit(n)}}},{key:"label",set:function(e){this.labelVisible=!0}},{key:"prefix",set:function(e){this.prefixValue=e}},{key:"value",get:function(){return this.prefixValue+(this.color?this.color.toHexString().replace("#",""):"")}}]),e}()).\u0275fac=function(e){return new(e||Af)},Af.\u0275cmp=rt({type:Af,selectors:[["hex-input-component"]],inputs:{hue:"hue",color:"color",label:"label",prefix:"prefix"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:4,vars:2,consts:[[1,"column"],["type","text",3,"value","keyup"],["elRef",""],[4,"ngIf"]],template:function(e,t){if(1&e){var n=mo();vo(0,"div",0),vo(1,"input",1,2),Co("keyup",(function(){Ht(n);var e=co(2);return t.onInputChange(e.value)})),go(),uo(3,Sf,2,0,"span",3),go()}2&e&&(cr(1),fo("value",t.value),cr(2),fo("ngIf",t.labelVisible))},directives:[vl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid #dadada;color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}",""],changeDetection:0}),Af),Pf=pu("opacityAnimation",[(Ef=yu({opacity:1}),{type:0,name:"true",styles:Ef,options:void 0}),mu("void => *",[yu({opacity:0}),vu(".08s ease-in")])]),Of=pu("listAnimation",[mu("* => up",[_u(":enter",[yu({opacity:0,height:0}),Cu(-10,[vu(".08s",yu({opacity:1,height:"*"}))])],{optional:!0})]),mu("* => right",[_u(":enter",[yu({opacity:0,height:0}),Cu(-10,[vu(".08s",yu({opacity:1,height:"*"}))])],{optional:!0})]),mu("* => down",[_u(":enter",[yu({opacity:0,height:0}),Cu(10,[vu(".08s",yu({opacity:1,height:"*"}))])],{optional:!0})]),mu("* => left",[_u(":enter",[yu({opacity:0,height:0}),Cu(10,[vu(".08s",yu({opacity:1,height:"*"}))])],{optional:!0})])]);function If(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(f)),Rf=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Df=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf.now;return _classCallCheck(this,n),(r=t.call(this,e,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():i()}))).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,r):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,r)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(Rf))(Ff),jf=new C((function(e){return e.complete()})),Hf=((Mf=function(){function e(t,n,r){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return If(this.value);case"E":return e=this.error,new C((function(t){return t.error(e)}));case"C":return jf}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}()).completeNotification=new Mf("C"),Mf.undefinedValueNotification=new Mf("N",void 0),Mf),qf=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Bf(e,this.delay,this.scheduler))}}]),e}(),Bf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).delay=r,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new Lf(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Hf.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Hf.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.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(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(v),Lf=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},zf=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new Kf(e),r=V(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}]),e}(),Kf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).seenValue=!1,r}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(N),Zf=((Nf=function(){function e(t){_classCallCheck(this,e),this.pickerConfig=t,this.selectionChange=new Ws(!1),this.longPress=new Ws(!1),this.mouseup=new A,this.showDepthText=!1}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.mouseup.next(),this.mouseup.complete()}},{key:"onTouch",value:function(e){var t,n=this;If(e).pipe(F((function(e){return e.timeStamp||(new Date).getTime()})),function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Df,r=(t=e)instanceof Date&&!isNaN(+t)?+e-n.now():Math.abs(e);return function(e){return e.lift(new qf(r,n))}}(350),(t=this.mouseup,function(e){return e.lift(new zf(t))})).subscribe((function(){return n.longPress.next(!0)})),this.selectionChange.emit(this.color)}},{key:"onTouchEnd",value:function(e){this.mouseup.next(e)}},{key:"depth",set:function(e){this.showDepthText=!!e}},{key:"bgColor",get:function(){return this.color.toRgbaString()}},{key:"title",get:function(){var e=this.color?this.color.toHexString():"";return this.showDepthText?this.pickerConfig.presetsTitle.replace(/\{\s*(.+?)\s*\}/g,(function(t,n){return e})):e}},{key:"className",get:function(){return!!this.activeColor&&this.color.toRgbaString()===this.activeColor.toRgbaString()}}]),e}()).\u0275fac=function(e){return new(e||Nf)(ho(Qh))},Nf.\u0275cmp=rt({type:Nf,selectors:[["color-preset"]],hostVars:5,hostBindings:function(e,t){1&e&&Co("mousedown",(function(e){return t.onTouch(e)}))("touchstart",(function(e){return t.onTouch(e)}))("mouseup",(function(e){return t.onTouchEnd(e)}))("touchend",(function(e){return t.onTouchEnd(e)})),2&e&&(lo("title",t.title),Eo("background-color",t.bgColor),To("selected",t.className))},inputs:{activeColor:"activeColor",color:"color",depth:["show-depth-title","depth"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},decls:0,vars:0,template:function(e,t){},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0}),Nf),Qf=((Vf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.slice().reverse():e}}]),e}()).\u0275fac=function(e){return new(e||Vf)},Vf.\u0275pipe=ct({name:"reverse",type:Vf,pure:!0}),Vf);function Wf(e,t){if(1&e){var n=mo();vo(0,"color-preset",5),Co("selectionChange",(function(e){return Ht(n),wo(2).onSelectionChange(e)})),go()}if(2&e){var r=t.$implicit,i=wo(2);fo("color",r)("activeColor",i.activeColor)}}function Gf(e,t){if(1&e&&(vo(0,"div",3),uo(1,Wf,1,2,"color-preset",4),Ls(2,"reverse"),go()),2&e){var n=wo();fo("@opacityAnimation",n.showChildren)("@listAnimation",n.direction),cr(1),fo("ngForOf",Ks(2,3,n.list,"up"==n.direction||"right"==n.direction))}}var Uf,Yf,Xf=((Yf=function(){function e(t,n,r){_classCallCheck(this,e),this.renderer=t,this.document=n,this.cdr=r,this.selectionChange=new Ws(!1),this.direction="up",this.showChildren=!1,this.hooks=[]}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.removeListeners(),this.cdr.detach()}},{key:"removeListeners",value:function(){this.hooks.forEach((function(e){return e()})),this.hooks.length=0}},{key:"onSelectionChange",value:function(e){this.selectionChange.next(e)}},{key:"onLongPress",value:function(){this.showChildren=!0,this.listenDocumentClick()}},{key:"listenDocumentClick",value:function(){var e=this;this.hooks.push(this.renderer.listen(this.document,"mousedown",(function(){return e.closeList()}))),this.hooks.push(this.renderer.listen(this.document,"touchstart",(function(){return e.closeList()})))}},{key:"closeList",value:function(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}},{key:"className",get:function(){return"direction-".concat(this.direction)}}]),e}()).\u0275fac=function(e){return new(e||Yf)(ho(es),ho(al),ho(Ni))},Yf.\u0275cmp=rt({type:Yf,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(e,t){2&e&&Ro("className",t.className)},inputs:{list:"list",direction:"direction",activeColor:"activeColor"},outputs:{selectionChange:"selectionChange"},decls:4,vars:8,consts:[[3,"show-depth-title","color","activeColor","longPress","selectionChange"],[1,"reflection"],["class","sublist",4,"ngIf"],[1,"sublist"],[3,"color","activeColor","selectionChange",4,"ngFor","ngForOf"],[3,"color","activeColor","selectionChange"]],template:function(e,t){1&e&&(vo(0,"color-preset",0),Co("longPress",(function(){return t.onLongPress()}))("selectionChange",(function(e){return t.onSelectionChange(e)})),go(),yo(1,"div",1),yo(2,"div",1),uo(3,Gf,3,6,"div",2)),2&e&&(fo("show-depth-title",t.list.length>1)("color",t.list[0])("activeColor",t.activeColor),cr(1),Eo("background-color",t.list[0].toRgbaString()),cr(1),Eo("background-color",t.list[0].toRgbaString()),cr(1),fo("ngIf",t.showChildren))},directives:[Zf,vl,dl],pipes:[Qf],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:0 0 2px rgba(0,0,0,.3),0 2px 4px rgba(0,0,0,.3);padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Pf,Of]},changeDetection:0}),Yf),Jf=((Uf=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){return e.reduce((function(n,r,i){return i%t?n:n.concat([e.slice(i,i+t)])}),[])}}]),e}()).\u0275fac=function(e){return new(e||Uf)},Uf.\u0275pipe=ct({name:"chunks",type:Uf,pure:!0}),Uf),$f=function(e,t){return{first:e,last:t}};function ed(e,t){if(1&e){var n=mo();vo(0,"color-preset-sublist",5),Co("selectionChange",(function(e){return Ht(n),wo(3).onSelectionChange(e)})),go()}if(2&e){var r=wo(),i=r.$implicit,o=r.first,s=r.last,a=wo(2);fo("list",i)("direction",a.direction)("activeColor",a.color)("ngClass",js(4,$f,o,s))}}function td(e,t){if(1&e){var n=mo();vo(0,"color-preset",6),Co("selectionChange",(function(e){return Ht(n),wo(3).onSelectionChange(e)})),go()}if(2&e){var r=wo(),i=r.first,o=r.last,s=r.$implicit,a=wo(2);fo("ngClass",js(3,$f,i,o))("color",s)("activeColor",a.color)}}function nd(e,t){if(1&e&&(uo(0,ed,1,7,"color-preset-sublist",3),uo(1,td,1,6,"ng-template",null,4,la)),2&e){var n=t.$implicit,r=co(2);fo("ngIf",wo(2).isList(n))("ngIfElse",r)}}function rd(e,t){if(1&e&&(vo(0,"div",1),uo(1,nd,3,2,"ng-template",2),go()),2&e){var n=t.$implicit;fo("ngClass",js(2,$f,t.first,t.last)),cr(1),fo("ngForOf",n)}}var id,od=((id=function(){function e(){_classCallCheck(this,e),this.columns=8,this.hueChange=new Ws(!1),this.colorChange=new Ws(!1),this.direction="up"}return _createClass(e,[{key:"onSelectionChange",value:function(e){var t=e.getRgba(),n=e.getHsva(),r=(new $h).setRgba(t.red,t.green,t.blue,t.alpha),i=(new $h).setHsva(n.hue);this.hueChange.emit(i),this.colorChange.emit(r)}},{key:"isList",value:function(e){return Array.isArray(e)}}]),e}()).\u0275fac=function(e){return new(e||id)},id.\u0275cmp=rt({type:id,selectors:[["color-presets-component"]],inputs:{columns:"columns",colorPresets:"colorPresets",hue:"hue",color:"color",direction:"direction"},outputs:{hueChange:"hueChange",colorChange:"colorChange"},decls:2,vars:4,consts:[["class","row",3,"ngClass",4,"ngFor","ngForOf"],[1,"row",3,"ngClass"],["ngFor","",3,"ngForOf"],[3,"list","direction","activeColor","ngClass","selectionChange",4,"ngIf","ngIfElse"],["colorPreset",""],[3,"list","direction","activeColor","ngClass","selectionChange"],[3,"ngClass","color","activeColor","selectionChange"]],template:function(e,t){1&e&&(uo(0,rd,2,5,"div",0),Ls(1,"chunks")),2&e&&fo("ngForOf",Ks(1,1,t.colorPresets,t.columns))},directives:[dl,hl,vl,Xf,Zf],pipes:[Jf],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0}),id),sd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._value=e,r}return _createClass(n,[{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new w;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(A),ad=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ld(e,this.compare,this.keySelector))}}]),e}(),ld=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}]),n}(v),ud=function(e){return e.hex="hex",e.hexa="hexa",e.rgba="rgba",e.rgb="rgb",e.hsla="hsla",e.hsl="hsl",e.cmyk="cmyk",e}({}),cd=function(){function e(){var t;_classCallCheck(this,e),this.modelValue=null,this.hueValue=null,this.initValue=null,this.valueChanged=new A,this.presetsVisibilityChanges=new sd(!0),this.initType=null,this.alphaChannelVisibilityChanges=new sd(!0),this.valueChanges=this.valueChanged.asObservable().pipe((t=function(e,t){return e.toRgbaString()==t.toRgbaString()},function(e){return e.lift(new ad(t,void 0))})),this.colorPresets=[];var n=$h.from(new Xh(255,0,0,1));this.setValue(n),this.setHueColor(n)}return _createClass(e,[{key:"setValueFrom",value:function(e){var t=$h.from(e);return this.initValue||(this.initValue=$h.from(e)),"string"==typeof e&&this.finOutInputType(e),this.setHueColor(t),this.setValue(t),this}},{key:"setHueColor",value:function(e){(this.hueValue&&e.getHsva().hue>0||!this.hueValue)&&(this.hueValue=(new $h).setHsva(e.getHsva().hue))}},{key:"setValue",value:function(e){return this.modelValue=e,this.valueChanged.next(e),this}},{key:"reset",value:function(){var e;return this.initValue?(e=this.initValue.clone(),this.setHueColor(e)):(e=$h.from(new Xh(255,0,0,1)),this.hueValue=(new $h).setHsva(e.getHsva().hue)),this.setValue(e),this}},{key:"isAlphaChannelEnabled",value:function(){return this.alphaChannelVisibilityChanges.value}},{key:"showAlphaChannel",value:function(){return this.alphaChannelVisibilityChanges.next(!0),this}},{key:"hideAlphaChannel",value:function(){return this.alphaChannelVisibilityChanges.next(!1),this}},{key:"finOutInputType",value:function(e){var t=e.replace(/ /g,"").toLowerCase();"#"===t[0]&&(this.initType=ud.hex,t.length>7&&(this.initType=ud.hexa));var n=t.indexOf("(");switch(t.substr(0,n)){case ud.rgba:this.initType=ud.rgba;break;case ud.rgb:this.initType=ud.rgb;break;case ud.hsla:this.initType=ud.hsla;break;case ud.hsl:this.initType=ud.hsl;break;case ud.cmyk:this.initType=ud.cmyk}}},{key:"setColorPresets",value:function(e){return this.colorPresets=this.setPresets(e),this}},{key:"setPresets",value:function(e){var t,n=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;Array.isArray(i)?n.push(this.setPresets(i)):n.push(new $h(i))}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"hasPresets",value:function(){return this.colorPresets.length>0}},{key:"isPresetVisible",value:function(){return this.presetsVisibilityChanges.value}},{key:"showPresets",value:function(){return this.presetsVisibilityChanges.next(!0),this}},{key:"hidePresets",value:function(){return this.presetsVisibilityChanges.next(!1),this}},{key:"hue",get:function(){return this.hueValue},set:function(e){this.hueValue=e}},{key:"value",get:function(){return this.modelValue},set:function(e){this.setValue(e)}},{key:"presets",get:function(){return this.colorPresets}}]),e}();function hd(e,t){switch(t){case ud.hex:return e.toHexString();case ud.hexa:return e.toHexString(!0);case ud.rgb:return e.toRgbString();case ud.rgba:return e.toRgbaString();case ud.hsl:return e.toHslString();case ud.hsla:return e.toHslaString();default:return e.toRgbaString()}}function fd(e,t){if(1&e){var n=mo();vo(0,"alpha-component",14),Co("colorChange",(function(e){return Ht(n),wo().control.value=e})),go()}2&e&&fo("color",wo().control.value)}function dd(e,t){if(1&e){var n=mo();vo(0,"rgba-input-component",15),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),Ls(1,"async"),go()}if(2&e){var r=wo();fo("alpha",zs(1,3,r.control.alphaChannelVisibilityChanges))("color",r.control.value)("hue",r.control.hue)}}function pd(e,t){if(1&e){var n=mo();vo(0,"hsla-input-component",15),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),Ls(1,"async"),go()}if(2&e){var r=wo();fo("alpha",zs(1,3,r.control.alphaChannelVisibilityChanges))("color",r.control.value)("hue",r.control.hue)}}function vd(e,t){if(1&e){var n=mo();vo(0,"hex-input-component",16),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),go()}if(2&e){var r=wo();fo("color",r.control.value)("hue",r.control.hue)}}function gd(e,t){if(1&e){var n=mo();vo(0,"color-presets-component",17),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),go()}if(2&e){var r=wo();fo("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var yd,md=((yd=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.colorChange=new Ws(!1),this.subscriptions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.control||(this.control=new cd),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck(),e.colorChange.emit(hd(t,e.control.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}},{key:"changePresentation",value:function(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}}]),e}()).\u0275fac=function(e){return new(e||yd)(ho(Ni))},yd.\u0275cmp=rt({type:yd,selectors:[["chrome-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ko],decls:18,vars:16,consts:[[3,"hue","color","colorChange"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"colorType","color"],[3,"hue","color","hueChange","colorChange"],[3,"color","colorChange",4,"ngIf"],[1,"controls-row","presentation"],[1,"column",3,"ngSwitch"],["label","",3,"alpha","color","hue","colorChange","hueChange",4,"ngSwitchCase"],["label","","prefix","#",3,"color","hue","colorChange","hueChange",4,"ngSwitchCase"],[1,"column","type-column"],[1,"type-btn",3,"click"],[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[3,"color","colorChange"],["label","",3,"alpha","color","hue","colorChange","hueChange"],["label","","prefix","#",3,"color","hue","colorChange","hueChange"],[3,"color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(vo(0,"saturation-component",0),Co("colorChange",(function(e){return t.control.value=e})),go(),vo(1,"div",1),vo(2,"div",2),vo(3,"div",3),yo(4,"indicator-component",4),go(),vo(5,"div",3),vo(6,"hue-component",5),Co("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),uo(7,fd,1,1,"alpha-component",6),Ls(8,"async"),go(),go(),vo(9,"div",7),vo(10,"div",8),uo(11,dd,2,5,"rgba-input-component",9),uo(12,pd,2,5,"hsla-input-component",9),uo(13,vd,1,2,"hex-input-component",10),go(),vo(14,"div",11),vo(15,"span",12),Co("click",(function(){return t.changePresentation()})),go(),go(),go(),go(),uo(16,gd,1,3,"color-presets-component",13),Ls(17,"async")),2&e&&(fo("hue",t.control.hue)("color",t.control.value),cr(4),fo("colorType",t.presentations[t.selectedPresentation])("color",t.control.value),cr(2),fo("hue",t.control.hue)("color",t.control.value),cr(1),fo("ngIf",zs(8,12,t.control.alphaChannelVisibilityChanges)),cr(3),fo("ngSwitch",t.presentations[t.selectedPresentation]),cr(1),fo("ngSwitchCase","rgba"),cr(1),fo("ngSwitchCase","hsla"),cr(1),fo("ngSwitchCase","hex"),cr(3),fo("ngIf",zs(17,14,t.control.presetsVisibilityChanges)))},directives:[nf,rf,sf,vl,Tl,Pl,uf,yf,xf,Tf,od],pipes:[Nl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}[_nghost-%COMP%] .controls .pointer{box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:rgba(0,0,0,0) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==") no-repeat 50%;background-size:6px 12px}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] color-preset{box-shadow:inset 0 0 2px rgba(0,0,0,.3)}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover{-ms-transform:scale(1.18);transform:scale(1.18)}'],changeDetection:0}),yd);function _d(e,t){if(1&e){var n=mo();vo(0,"alpha-component",12),Co("colorChange",(function(e){return Ht(n),wo().control.value=e})),go()}2&e&&fo("color",wo().control.value)}function Cd(e,t){if(1&e){var n=mo();vo(0,"color-presets-component",13),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),go()}if(2&e){var r=wo();fo("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var bd,kd=((bd=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.colorChange=new Ws(!1),this.subscriptions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.control||(this.control=new cd),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#d0041b","#8b572a","#f5a623","#f8e71c","#7ed321","#417506","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#030303","#4a4a4a","#9b9b9b","#fff"]),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck(),e.colorChange.emit(hd(t,e.control.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}]),e}()).\u0275fac=function(e){return new(e||bd)(ho(Ni))},bd.\u0275cmp=rt({type:bd,selectors:[["sketch-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ko],decls:17,vars:18,consts:[[3,"hue","color","colorChange"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"hue","color","hueChange","colorChange"],[3,"color","colorChange",4,"ngIf"],[1,"column","indicator-column"],["colorType","rgba",3,"color"],[1,"controls-row","presentation"],["label","",3,"color","hue","colorChange","hueChange"],["label","",3,"alpha","color","hue","colorChange","hueChange"],[3,"color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[3,"color","colorChange"],[3,"color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(vo(0,"saturation-component",0),Co("colorChange",(function(e){return t.control.value=e})),go(),vo(1,"div",1),vo(2,"div",2),vo(3,"div",3),vo(4,"hue-component",4),Co("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),uo(5,_d,1,1,"alpha-component",5),Ls(6,"async"),go(),vo(7,"div",6),yo(8,"indicator-component",7),go(),go(),vo(9,"div",8),vo(10,"div",3),vo(11,"hex-input-component",9),Co("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),go(),go(),vo(12,"div",3),vo(13,"rgba-input-component",10),Co("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),Ls(14,"async"),go(),go(),go(),go(),uo(15,Cd,1,3,"color-presets-component",11),Ls(16,"async")),2&e&&(fo("hue",t.control.hue)("color",t.control.value),cr(4),fo("hue",t.control.hue)("color",t.control.value),cr(1),fo("ngIf",zs(6,12,t.control.alphaChannelVisibilityChanges)),cr(3),fo("color",t.control.value),cr(3),fo("color",t.control.value)("hue",t.control.hue),cr(2),fo("alpha",zs(14,14,t.control.alphaChannelVisibilityChanges))("color",t.control.value)("hue",t.control.hue),cr(2),fo("ngIf",zs(16,16,t.control.presetsVisibilityChanges)))},directives:[nf,sf,vl,rf,Tf,yf,uf,od],pipes:[Nl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;padding:9px;width:220px;border-radius:4px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 1px 4px rgba(0,0,0,.3)}saturation-component[_ngcontent-%COMP%]{height:146px;border-radius:2px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:0 0 2px rgba(0,0,0,.6);width:10px;height:10px}.controls[_ngcontent-%COMP%]{padding:4px 0 0}alpha-component[_ngcontent-%COMP%], hue-component[_ngcontent-%COMP%]{height:10px;border-radius:2px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}hue-component[_ngcontent-%COMP%]{margin-bottom:4px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.indicator-column[_ngcontent-%COMP%]{width:25px}indicator-component[_ngcontent-%COMP%]{height:24px;width:100%;box-shadow:inset 0 0 2px rgba(0,0,0,.6);border-radius:2px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px 9px 0;margin:8px -9px 0}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:5%}.controls-row.hue-alpha[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{padding-right:5px}.hue-alpha[_ngcontent-%COMP%] .pointer{width:6px;margin:0 0 0 -3px;height:100%;top:0;border-radius:2px;border:1px solid #898989}.presentation[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:56px}.presentation[_ngcontent-%COMP%] input{height:20px;font-size:11px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{height:16px;width:16px;border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset 0 0 2px rgba(0,0,0,.4)}[_nghost-%COMP%] color-preset.selected{box-shadow:inset 0 1px 4px rgba(0,0,0,.4)}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 10px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}"],changeDetection:0}),bd);function wd(e,t){if(1&e){var n=mo();vo(0,"color-presets-component",12),Co("colorChange",(function(e){return Ht(n),wo().control.value=e}))("hueChange",(function(e){return Ht(n),wo().control.hue=e})),go()}if(2&e){var r=wo();fo("columns",9)("color",r.control.value)("colorPresets",r.control.presets)("hue",r.control.hue)}}var xd,Sd,Ad=((Sd=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.colorChange=new Ws(!1),this.subscriptions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.control||(this.control=new cd),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#6da6e8","#74c283","#f9d948","#f5943f","#f66c6c","#ef8ab8","#696cd4","#6c6c6c","#f6f5f5"]),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck(),e.colorChange.emit(hd(t,e.control.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}]),e}()).\u0275fac=function(e){return new(e||Sd)(ho(Ni))},Sd.\u0275cmp=rt({type:Sd,selectors:[["compact-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ko],decls:15,vars:10,consts:[["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange",4,"ngIf"],[1,"controls"],[1,"controls-row","saturation-hue"],[1,"column"],[3,"hue","color","colorChange"],[1,"column","hue-column"],["vertical","",3,"hue","color","hueChange","colorChange"],[1,"controls-row","presentation"],["viewBox","0 0 1024 1024",1,"pencil"],["d","M639.77,121.045l-48.598,84.2l112.215,64.8l48.6-84.205L639.77,121.045z M558.773,261.354\n L315.78,682.206l112.215,64.795L670.99,326.15L558.773,261.354z M690.816,75.691l74.922,43.286\n c41.682,24.045,55.52,76.564,31.725,117.784l-37.967,65.68l-32.398,56.11L451.706,835.594L282.452,947.303\n c-40.961,27.004-70.24,9.027-67.329-38.894l12.149-202.411l275.395-477.041l32.398-56.11l37.883-65.686\n C596.824,65.946,649.473,51.857,690.816,75.691z M274.689,883.015l120.908-79.818l-112.218-64.8L274.689,883.015z"],["prefix","#",3,"color","hue","colorChange","hueChange"],["colorType","hex",3,"color"],["direction","down",3,"columns","color","colorPresets","hue","colorChange","hueChange"]],template:function(e,t){1&e&&(uo(0,wd,1,4,"color-presets-component",0),Ls(1,"async"),vo(2,"div",1),vo(3,"div",2),vo(4,"div",3),vo(5,"saturation-component",4),Co("colorChange",(function(e){return t.control.value=e})),go(),go(),vo(6,"div",5),vo(7,"hue-component",6),Co("hueChange",(function(e){return t.control.hue=e}))("colorChange",(function(e){return t.control.value=e})),go(),go(),go(),vo(8,"div",7),vo(9,"div",3),an(),vo(10,"svg",8),yo(11,"path",9),go(),Ft.lFrame.currentNamespace=null,vo(12,"hex-input-component",10),Co("colorChange",(function(e){return t.control.value=e}))("hueChange",(function(e){return t.control.hue=e})),go(),go(),vo(13,"div",3),yo(14,"indicator-component",11),go(),go(),go()),2&e&&(fo("ngIf",zs(1,8,t.control.presetsVisibilityChanges)),cr(5),fo("hue",t.control.hue)("color",t.control.value),cr(2),fo("hue",t.control.hue)("color",t.control.value),cr(5),fo("color",t.control.value)("hue",t.control.hue),cr(2),fo("color",t.control.value))},directives:[vl,nf,sf,Tf,rf,od],pipes:[Nl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}","[_nghost-%COMP%]{display:block;width:240px;border-radius:3px;background:#fff;box-shadow:0 0 2px rgba(0,0,0,.3),0 0 4px rgba(0,0,0,.3)}color-presets-component[_ngcontent-%COMP%]{border-bottom:1px solid #e4e4e6;padding:9px 12px}color-presets-component[_ngcontent-%COMP%] .row{padding:10px 0 0}.controls[_ngcontent-%COMP%]{padding:10px 12px 12px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.controls-row.saturation-hue[_ngcontent-%COMP%]{padding-bottom:9px}.controls-row.saturation-hue[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:178px}saturation-component[_ngcontent-%COMP%]{height:178px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}saturation-component[_ngcontent-%COMP%] .pointer{border-width:2px;box-shadow:0 0 2px rgba(0,0,0,.6)}.hue-column[_ngcontent-%COMP%]{padding-left:14px}[_nghost-%COMP%] hue-component[_ngcontent-%COMP%]{width:100%;height:178px;box-shadow:inset 0 0 2px rgba(0,0,0,.6)}[_nghost-%COMP%] hue-component[vertical][_ngcontent-%COMP%] .pointer{width:auto;height:9px;left:-3px;right:-3px;margin:-4.5px 0 0;background:rgba(0,0,0,0);border:3px solid #fff;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.6)}.controls-row.presentation[_ngcontent-%COMP%]{border:1px solid #e4e4e6;border-radius:3px;padding:6px 6px 6px 26px;position:relative}indicator-component[_ngcontent-%COMP%]{height:18px;width:18px;box-shadow:inset 0 0 2px rgba(0,0,0,.6);border-radius:50%}[_nghost-%COMP%] indicator-component[_ngcontent-%COMP%] svg{vertical-align:25%}hex-input-component[_ngcontent-%COMP%] input{border:0;color:#817e81;margin:0;text-align:left;height:18px}.pencil[_ngcontent-%COMP%]{position:absolute;height:14px;width:14px;left:6px;top:50%;margin:-7px 0 0}.pencil[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%] .reflection{display:none}[_nghost-%COMP%] color-preset{height:18px;width:18px;border-radius:50%;box-shadow:inset 0 1px 1px rgba(0,0,0,.6)}[_nghost-%COMP%] .row>color-preset, [_nghost-%COMP%] .row>color-preset-sublist{margin:0 0 0 6px}[_nghost-%COMP%] .row>color-preset-sublist:first-child, [_nghost-%COMP%] .row>color-preset:first-child{margin:0}[_nghost-%COMP%] .row>color-preset:hover, [_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] color-preset.selected{box-shadow:inset 0 1px 6px rgba(0,0,0,.6)}"],changeDetection:0}),Sd),Ed=((xd=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.colorChange=new Ws(!1),this.subscriptions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.control||(this.control=new cd),this.color&&this.control.setValueFrom(this.color),this.control.hasPresets()||this.control.setColorPresets(["#b80000","#db3e00","#fccb00","#008b02","#006b76","#1273de","#004dcf","#5300eb","#eb9694","#fad0c3","#fef3bd","#c1e1c5","#bedadc","#c4def6","#bed3f3","#d4c4fb"]),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck(),e.colorChange.emit(hd(t,e.control.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.control.setValueFrom(this.color)}}]),e}()).\u0275fac=function(e){return new(e||xd)(ho(Ni))},xd.\u0275cmp=rt({type:xd,selectors:[["github-picker"]],inputs:{color:"color",control:"control"},outputs:{colorChange:"colorChange"},features:[Ko],decls:1,vars:2,consts:[["direction","down",3,"color","colorPresets","colorChange"]],template:function(e,t){1&e&&(vo(0,"color-presets-component",0),Co("colorChange",(function(e){return t.control.value=e})),go()),2&e&&fo("color",t.control.value)("colorPresets",t.control.presets)},directives:[od],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:212px;border:1px solid rgba(0,0,0,.2);box-shadow:0 3px 12px rgba(0,0,0,.15);border-radius:4px;padding:5px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:25px;height:25px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;z-index:10;border:2px solid #fff;box-shadow:0 0 5px 2px rgba(0,0,0,.2)}'],changeDetection:0}),xd);function Td(e,t){if(1&e){var n=mo();vo(0,"color-presets-component",2),Co("colorChange",(function(e){return Ht(n),wo().childControl.value=e})),go()}if(2&e){var r=wo();fo("columns",7)("color",r.childControl.value)("colorPresets",r.childControl.presets)}}var Pd,Od,Id=((Od=function(){function e(t){_classCallCheck(this,e),this.cdr=t,this.colorChange=new Ws(!1),this.control=new cd,this.childControl=new cd,this.subscriptions=[],this.mapColors={"#E6315B":["#fc8da7","#fa7d9a","#f56484","#f04a71","#e82c58","#e31746","#de0235","#d60234","#d10232","#c70230","#b8022c","#ab0229","#9c0225","#8f0122","#8c0122","#82011f","#78011b","#690117","#5c0012","#4f0010","#42000c"],"#793183":["#ef8dfc","#eb7dfa","#e664f5","#dc4af0","#d22ce8","#cb17e3","#c402de","#c002d9","#bb02d4","#b002c7","#a202b8","#9702ab","#8a029c","#7e018f","#7a018a","#730182","#6c0178","#5e0169","#54015c","#49014f","#3d0142"],"#009DE7":["#8dd9fc","#7dd2fa","#64c7f5","#4abbf0","#2cade8","#17a2e3","#0298de","#0295d9","#0291d4","#0289c7","#027eb8","#0275ab","#026b9c","#01628f","#015f8a","#015982","#015278","#014869","#013f5c","#01364f","#012e42"],"#00B59C":["#8dfeea","#7dfbe4","#63f4db","#4befd2","#2de7c6","#16e2be","#03deb7","#01ddb6","#01d4ae","#01c7a4","#01b897","#01aa8b","#019b80","#019076","#018c73","#01836c","#017763","#016857","#005c4e","#005044","#004239"],"#FFCE00":["#fce68d","#fae17d","#f5da64","#f0cf4a","#e8c22c","#e5bc17","#deb202","#deb100","#d4aa02","#c7a002","#b89302","#ab8902","#9c7d02","#8f7301","#8c7001","#826801","#786201","#695601","#5c4b00","#4f4100","#423700"],"#FF4A21":["#fca28d","#fa947d","#f57f64","#f0694a","#e84f2c","#e33c17","#de2a02","#d92a02","#d42902","#c72602","#b82302","#ab2102","#9c1e02","#8f1b01","#8a1a01","#821901","#781701","#691300","#5c1100","#4f0e00","#420c00"],"#D6D5D6":["#fff","#f2f2f2","#e5e5e5","#d9d9d9","#cccccc","#bfbfbf","#b3b3b3","#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#595959","#4d4d4d","#424242","#363636","#262626","#1a1a1a","#0f0f0f","#000"]}}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.color?this.childControl.setValueFrom(this.color):this.control.setValueFrom("#E6315B"),this.control.setColorPresets(["#e6315b","#793183","#009de7","#00b59c","#ffce00","#ff4a21","#d6d5d6"]),this.childControl.setColorPresets(this.mapColors["#E6315B"]),this.subscriptions.push(this.childControl.valueChanges.subscribe((function(t){e.colorChange.emit(hd(t,e.childControl.initType))}))),this.subscriptions.push(this.control.valueChanges.subscribe((function(t){e.cdr.markForCheck();var n=e.mapColors[t.toHexString()];n&&e.childControl.setColorPresets(n),e.colorChange.emit(hd(e.childControl.value,e.childControl.initType))})))}},{key:"ngOnDestroy",value:function(){this.cdr.detach(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.length=0}},{key:"ngOnChanges",value:function(e){this.color&&this.control&&hd(this.control.value,this.control.initType)!==this.color&&this.childControl.setValueFrom(this.color)}}]),e}()).\u0275fac=function(e){return new(e||Od)(ho(Ni))},Od.\u0275cmp=rt({type:Od,selectors:[["swatches-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},features:[Ko],decls:2,vars:4,consts:[["direction","down",3,"columns","color","colorPresets","colorChange"],["class","child-list","direction","down",3,"columns","color","colorPresets","colorChange",4,"ngIf"],["direction","down",1,"child-list",3,"columns","color","colorPresets","colorChange"]],template:function(e,t){1&e&&(vo(0,"color-presets-component",0),Co("colorChange",(function(e){return t.control.value=e})),go(),uo(1,Td,1,3,"color-presets-component",1)),2&e&&(fo("columns",7)("color",t.control.value)("colorPresets",t.control.presets),cr(1),fo("ngIf",t.childControl.presets.length))},directives:[od,vl],styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;box-sizing:border-box}",'@charset "UTF-8";[_nghost-%COMP%]{display:block;background:#fff;width:224px;border:1px solid rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.3);border-radius:4px;padding:6px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{width:30px;height:30px}[_nghost-%COMP%] color-preset.selected:after, [_nghost-%COMP%] color-preset:hover:after{display:block;content:"\xa0";position:absolute;left:3px;top:3px;bottom:3px;right:3px;z-index:10;border:3px solid #fff;box-shadow:0 0 5px 2px rgba(0,0,0,.2)}[_nghost-%COMP%] .row:first-child color-preset-sublist:first-child, [_nghost-%COMP%] .row:first-child color-preset:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .row.last color-preset-sublist.last, [_nghost-%COMP%] .row.last color-preset.last{border-radius:0 4px 4px 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.first color-preset.first{border-radius:4px 0 0 0}[_nghost-%COMP%] .child-list .row.first color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.first color-preset.last{border-radius:0 4px 0 0}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.first, [_nghost-%COMP%] .child-list .row.last color-preset.first{border-radius:0 0 0 4px}[_nghost-%COMP%] .child-list .row.last color-preset-sublist.last, [_nghost-%COMP%] .child-list .row.last color-preset.last{border-radius:0 0 4px 0}[_nghost-%COMP%] .child-list{margin-top:6px;border-top:1px solid #e5e5e5;padding:6px 0 0}[_nghost-%COMP%] .child-list color-preset.selected:after, [_nghost-%COMP%] .child-list color-preset:hover:after{content:"\u2714";font-size:18px;color:#fff;border:0;left:0;top:0;bottom:0;right:0;line-height:30px;box-shadow:none;text-align:center}'],changeDetection:0}),Od),Md=((Pd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[{provide:Qh,useValue:t||new Qh}]}}}]),e}()).\u0275mod=at({type:Pd}),Pd.\u0275inj=se({factory:function(e){return new(e||Pd)},providers:[Qh],imports:[[Fl]]}),Pd),Vd=n("Eh/9");function Nd(e,t){1&e&&yo(0,"chrome-picker",2),2&e&&fo("control",wo().colorControl)}function Fd(e,t){if(1&e){var n=mo();vo(0,"div",3),Co("click",(function(e){return Ht(n),wo().overlayClick(e)})),go()}}var Rd,Dd,jd,Hd,qd=((Hd=function(){function e(){_classCallCheck(this,e),this.colorControl=new cd,this.isVisible=!1,this.colorChange=new Ws}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.colorControl.valueChanges.subscribe((function(t){return e.colorChange.emit(t.toHexString())}))}},{key:"showColorPicker",value:function(e){!0!==this.isVisible&&(this.isVisible=!this.isVisible)}},{key:"overlayClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.isVisible=!1}},{key:"color",set:function(e){this.colorControl.setValueFrom(e)}},{key:"background",get:function(){return this.colorControl.value.toHexString()}}]),e}()).\u0275fac=function(e){return new(e||Hd)},Hd.\u0275cmp=rt({type:Hd,selectors:[["chrome-wrapper"]],hostVars:2,hostBindings:function(e,t){1&e&&Co("click",(function(e){return t.showColorPicker(e)})),2&e&&Eo("background-color",t.background)},inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:2,vars:2,consts:[[3,"control",4,"ngIf"],["class","overlay",3,"click",4,"ngIf"],[3,"control"],[1,"overlay",3,"click"]],template:function(e,t){1&e&&(uo(0,Nd,1,1,"chrome-picker",0),uo(1,Fd,1,0,"div",1)),2&e&&(fo("ngIf",t.isVisible),cr(1),fo("ngIf",t.isVisible))},directives:[vl,md],styles:["[_nghost-%COMP%]{border:1px solid #333;border-radius:35px;cursor:pointer;display:inline-block;height:35px;position:relative;width:35px}chrome-picker[_ngcontent-%COMP%]{left:100%;position:absolute;top:100%;z-index:2}.overlay[_ngcontent-%COMP%]{background:rgba(0,0,0,0);left:0;position:fixed;top:0;height:100%;width:100%;z-index:1}"]}),Hd),Bd=((jd=function(){function e(t){_classCallCheck(this,e),this.elRef=t,this.color="rgba(54, 86, 4, 1)",this.chromeControl=(new cd).setValueFrom(Jh.aquamarine).hidePresets().hideAlphaChannel(),this.sketchControl=(new cd).setValueFrom("#A6771C"),this.compactControl=new cd,this.githubControl=(new cd).setValueFrom("#1273DE"),this.swatchesColor="#F04A71",this.wrapperColor="#F04A71"}return _createClass(e,[{key:"ngAfterViewInit",value:function(){this.elRef.nativeElement.querySelectorAll(".prettify").forEach((function(e){return e.innerHTML=Vd.prettyPrintOne(e.innerHTML)}))}}]),e}()).\u0275fac=function(e){return new(e||jd)(ho(Yo))},jd.\u0275cmp=rt({type:jd,selectors:[["app-root"]],decls:726,vars:48,consts:[[1,"jumbotron"],[1,"background"],[1,"container"],[1,"row"],[1,"col"],[1,"display-4"],["href","https://github.com/pIvan/ngx-color-picker","role","button","aria-pressed","true",1,"btn","btn-primary","btn-lg","active"],[1,"row","pickers-row"],[1,"col","col-md-6","text-right"],[3,"color","colorChange"],[1,"col","col-md-6"],[1,"card"],[1,"card-header"],[1,"card-block"],[2,"padding","0 0 0 40px"],["id","installation",1,"card"],[1,"prettify"],["id","usage",1,"card"],[1,"col","col-lg-4"],[1,"info-row"],[3,"control"],[1,"col","col-lg-8"],[1,"buttons-row"],[1,"btn","btn-primary",3,"click"],["id","wrap-component",1,"card"],[1,"table","table-bordered","table-striped"],["target","_blank","href","https://www.w3.org/TR/css-color-3/#svg-color"]],template:function(e,t){if(1&e){vo(0,"div",0),yo(1,"div",1),vo(2,"div",2),vo(3,"div",3),vo(4,"div",4),vo(5,"h1",5),No(6,"@iplab/ngx-color-picker"),go(),yo(7,"br"),vo(8,"a",6),No(9,"GitHub"),go(),go(),go(),vo(10,"div",7),vo(11,"div",8),vo(12,"sketch-picker",9),Co("colorChange",(function(e){return t.color=e})),go(),go(),vo(13,"div",10),vo(14,"chrome-picker",9),Co("colorChange",(function(e){return t.color=e})),go(),go(),go(),go(),go(),vo(15,"div",2),vo(16,"div",11),vo(17,"div",12),No(18,"Getting started"),go(),vo(19,"div",13),vo(20,"ol"),vo(21,"li"),No(22,"Fork and clone this repo"),go(),vo(23,"li"),No(24,"npm install"),go(),vo(25,"li"),No(26,'Open a terminal and type "npm run start"'),go(),go(),vo(27,"p",14),vo(28,"b"),No(29,"or"),go(),go(),vo(30,"ol"),vo(31,"li"),No(32,"npm install @iplab/ngx-color-picker --save"),go(),vo(33,"li"),No(34,"ng serve --open"),go(),go(),go(),go(),yo(35,"br"),vo(36,"div",11),vo(37,"div",12),No(38,"Description"),go(),vo(39,"div",13),vo(40,"p"),No(41,"Pure Angular color picker library."),go(),vo(42,"ul"),vo(43,"li"),No(44,"It's an Angular color picker"),go(),vo(45,"li"),No(46,"Compatible with Angular 5+ versions"),go(),vo(47,"li"),No(48,"No external dependency"),go(),vo(49,"li"),No(50,"Simple to configure"),go(),vo(51,"li"),No(52,"Easy to use"),go(),go(),go(),go(),yo(53,"br"),vo(54,"div",15),vo(55,"div",12),No(56,"Installation"),go(),vo(57,"div",13),vo(58,"p"),No(59,"To install this component to an external project, follow the procedure:"),go(),vo(60,"ol"),vo(61,"li"),vo(62,"code"),No(63,"npm install @iplab/ngx-color-picker --save"),go(),go(),vo(64,"li"),vo(65,"pre",16),No(66,"import { ColorPickerModule } from '@iplab/ngx-color-picker';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n...\n...\n\n\n@NgModule({\n imports: [\n BrowserModule,\n ColorPickerModule,\n "),vo(67,"b"),No(68,"BrowserAnimationsModule"),go(),No(69," or "),vo(70,"b"),No(71,"NoopAnimationsModule"),go(),No(72," // need to be included\n ],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}"),go(),go(),vo(73,"li"),vo(74,"code"),No(75,''),go(),go(),go(),go(),go(),yo(76,"br"),vo(77,"div",17),vo(78,"div",12),No(79,"Usage"),go(),vo(80,"div",13),vo(81,"h6"),No(82,"predefined components"),go(),vo(83,"p"),No(84,"Color picker have 5 predefined components. Each component, except swatches-picker,"),yo(85,"br"),No(86," can be used with direct color binding "),vo(87,"b"),No(88,"or/and"),go(),No(89," with control which provides greater flexibility"),go(),vo(90,"p"),vo(91,"code"),No(92,''),go(),yo(93,"br"),vo(94,"code"),No(95,''),go(),yo(96,"br"),vo(97,"code"),No(98,''),go(),yo(99,"br"),vo(100,"code"),No(101,''),go(),yo(102,"br"),vo(103,"code"),No(104,''),go(),go(),yo(105,"hr"),vo(106,"h6"),No(107,"[color] attribute"),go(),vo(108,"p"),No(109,"When binding over attribute "),vo(110,"b"),No(111,"[color]"),go(),No(112," is used, component try to determine which value type is used so the output would be the same."),yo(113,"br"),vo(114,"b"),No(115,"Examples:"),go(),yo(116,"br"),vo(117,"code"),No(118,''),go(),No(119," -> output is "),vo(120,"b"),No(121,"rgb"),go(),yo(122,"br"),vo(123,"code"),No(124,''),go(),No(125," -> output is "),vo(126,"b"),No(127,"rgba"),go(),yo(128,"br"),vo(129,"code"),No(130,''),go(),No(131," -> output is "),vo(132,"b"),No(133,"hsl"),go(),yo(134,"br"),vo(135,"code"),No(136,''),go(),No(137," -> output is "),vo(138,"b"),No(139,"hex"),go(),go(),yo(140,"hr"),vo(141,"h6"),No(142,"[control] attribute"),go(),vo(143,"p"),No(144,"When binding over "),vo(145,"b"),No(146,"[control]"),go(),No(147," user have greater control over color output and all events"),yo(148,"br"),vo(149,"b"),No(150,"Examples:"),go(),yo(151,"br"),vo(152,"code"),No(153,''),go(),go(),yo(154,"hr"),vo(155,"h6"),No(156,"color indicator"),go(),vo(157,"p"),No(158,"Color indicator is not only indicator, but click also allows copying component color to clipboard."),yo(159,"br"),No(160," Text which is displayed on mouseover can be configured over NgModule configuration"),go(),vo(161,"pre",16),No(162,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public indicatorTitle: string = 'Copy color to clipboard';\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),go(),yo(163,"hr"),vo(164,"h6"),No(165,"color presets"),go(),vo(166,"p"),No(167,"color presets on click choose a color, if the child list is available user can show it by long press on certain colors"),yo(168,"br"),No(169," Text which is displayed on mouseover can be configured over NgModule configuration"),go(),vo(170,"pre",16),Ft.bindingsEnabled=!1,No(171,"import { IColorPickerConfig } from '@iplab/ngx-color-picker';\n...\n...\n@Injectable()\nclass ColorPickerConfiguration implements IColorPickerConfig {\n public presetsTitle: string = '{0}. Long-click to show alternate shades.'; // {0} is the place where hex value will be placed\n}\n \n@NgModule({\nimports: [\n BrowserModule,\n ColorPickerModule.forRoot(ColorPickerConfiguration)\n],\nbootstrap: [AppComponent]\n})"),Ft.bindingsEnabled=!0,go(),yo(172,"hr"),vo(173,"h6"),No(174,"all color picker parts"),go(),vo(175,"p"),No(176,"Color picker library exports all parts to enable custom components builds"),yo(177,"br"),No(178," Here is a list of all available components and their attributes (optional attributes are marked with question mark) "),go(),vo(179,"pre",16),No(180,'\n\n\n\n\n\n\n\n\n\n'),go(),vo(181,"h6"),No(182,"attributes explanation"),go(),vo(183,"p"),vo(184,"b"),No(185,"color =>"),go(),No(186," currently selected color (output color)"),yo(187,"br"),vo(188,"b"),No(189,"hue =>"),go(),No(190," color used internally as current hue color"),yo(191,"br"),vo(192,"b"),No(193,"colorType =>"),go(),No(194," specify which type of color should be copied to the clipboard"),yo(195,"br"),vo(196,"b"),No(197,"vertical =>"),go(),No(198," should component be placed horizontally or vertically"),yo(199,"br"),vo(200,"b"),No(201,"alpha =>"),go(),No(202," should component display alpha channel"),yo(203,"br"),vo(204,"b"),No(205,"label =>"),go(),No(206," whether the label will be displayed or not (rgba, hsla, hex)"),yo(207,"br"),vo(208,"b"),No(209,"prefix =>"),go(),No(210," definition of label prefix"),yo(211,"br"),vo(212,"b"),No(213,"colorPresets =>"),go(),No(214," list of colors used as presets "),go(),go(),go(),yo(215,"br"),vo(216,"div",11),vo(217,"div",12),No(218,"Chrome color picker"),go(),vo(219,"div",13),vo(220,"div",3),vo(221,"div",18),vo(222,"div",19),vo(223,"code"),No(224),go(),vo(225,"code"),No(226),go(),vo(227,"code"),No(228),go(),vo(229,"code"),No(230),go(),vo(231,"code"),No(232),go(),vo(233,"code"),No(234),go(),vo(235,"code"),No(236),go(),vo(237,"code"),No(238),go(),vo(239,"code"),No(240),go(),go(),yo(241,"chrome-picker",20),go(),vo(242,"div",21),vo(243,"p"),No(244,"Component code"),go(),vo(245,"pre",16),No(246,"@Component({\n...\n})\nexport class AppComponent {\n\n public chromeControl = new ColorPickerControl()\n .setValueFrom(ColorsTable.aquamarine)\n .hidePresets()\n .hideAlphaChannel();\n\n constructor() { \n }\n}"),go(),vo(247,"p"),No(248,"Template code"),go(),vo(249,"pre",16),No(250,''),go(),go(),go(),vo(251,"div",22),vo(252,"button",23),Co("click",(function(){return t.chromeControl.isPresetVisible()?t.chromeControl.hidePresets():t.chromeControl.showPresets()})),No(253,"Toggle presets visibility"),go(),No(254," \xa0 "),vo(255,"button",23),Co("click",(function(){return t.chromeControl.reset()})),No(256,"Reset to initial"),go(),No(257," \xa0 "),vo(258,"button",23),Co("click",(function(){return t.chromeControl.isAlphaChannelEnabled()?t.chromeControl.hideAlphaChannel():t.chromeControl.showAlphaChannel()})),No(259,"Toggle alpha channel"),go(),go(),go(),go(),yo(260,"br"),vo(261,"div",11),vo(262,"div",12),No(263,"Sketch color picker"),go(),vo(264,"div",13),vo(265,"div",3),vo(266,"div",18),vo(267,"div",19),vo(268,"code"),No(269),go(),vo(270,"code"),No(271),go(),vo(272,"code"),No(273),go(),vo(274,"code"),No(275),go(),vo(276,"code"),No(277),go(),vo(278,"code"),No(279),go(),vo(280,"code"),No(281),go(),vo(282,"code"),No(283),go(),vo(284,"code"),No(285),go(),go(),yo(286,"sketch-picker",20),go(),vo(287,"div",21),vo(288,"p"),No(289,"Component code"),go(),vo(290,"pre",16),No(291,"@Component({\n...\n})\nexport class AppComponent {\n\n public sketchControl = new ColorPickerControl()\n .setValueFrom('#A6771C');\n\n constructor() { \n }\n}"),go(),vo(292,"p"),No(293,"Template code"),go(),vo(294,"pre",16),No(295,''),go(),go(),go(),vo(296,"div",22),vo(297,"button",23),Co("click",(function(){return t.sketchControl.isPresetVisible()?t.sketchControl.hidePresets():t.sketchControl.showPresets()})),No(298,"Toggle presets visibility"),go(),No(299," \xa0 "),vo(300,"button",23),Co("click",(function(){return t.sketchControl.reset()})),No(301,"Reset to initial"),go(),No(302," \xa0 "),vo(303,"button",23),Co("click",(function(){return t.sketchControl.isAlphaChannelEnabled()?t.sketchControl.hideAlphaChannel():t.sketchControl.showAlphaChannel()})),No(304,"Toggle alpha channel"),go(),go(),go(),go(),yo(305,"br"),vo(306,"div",11),vo(307,"div",12),No(308,"Compact color picker"),go(),vo(309,"div",13),vo(310,"div",3),vo(311,"div",18),vo(312,"div",19),vo(313,"code"),No(314),go(),vo(315,"code"),No(316),go(),vo(317,"code"),No(318),go(),vo(319,"code"),No(320),go(),vo(321,"code"),No(322),go(),vo(323,"code"),No(324),go(),vo(325,"code"),No(326),go(),vo(327,"code"),No(328),go(),vo(329,"code"),No(330),go(),go(),yo(331,"compact-picker",20),go(),vo(332,"div",21),vo(333,"p"),No(334,"Component code"),go(),vo(335,"pre",16),No(336,"@Component({\n...\n})\nexport class AppComponent {\n\n public compactControl = new ColorPickerControl();\n\n constructor() { \n }\n}"),go(),vo(337,"p"),No(338,"Template code"),go(),vo(339,"pre",16),No(340,''),go(),go(),go(),vo(341,"div",22),vo(342,"button",23),Co("click",(function(){return t.compactControl.isPresetVisible()?t.compactControl.hidePresets():t.compactControl.showPresets()})),No(343,"Toggle presets visibility"),go(),No(344," \xa0 "),vo(345,"button",23),Co("click",(function(){return t.compactControl.reset()})),No(346,"Reset to initial"),go(),go(),go(),go(),yo(347,"br"),vo(348,"div",11),vo(349,"div",12),No(350,"Github color picker"),go(),vo(351,"div",13),vo(352,"div",3),vo(353,"div",18),vo(354,"div",19),vo(355,"code"),No(356),go(),vo(357,"code"),No(358),go(),vo(359,"code"),No(360),go(),vo(361,"code"),No(362),go(),vo(363,"code"),No(364),go(),vo(365,"code"),No(366),go(),vo(367,"code"),No(368),go(),vo(369,"code"),No(370),go(),vo(371,"code"),No(372),go(),go(),yo(373,"github-picker",20),go(),vo(374,"div",21),vo(375,"p"),No(376,"Component code"),go(),vo(377,"pre",16),No(378,"@Component({\n...\n})\nexport class AppComponent {\n\n public githubControl = new ColorPickerControl()\n .setValueFrom('#1273DE');\n\n constructor() { \n }\n}"),go(),vo(379,"p"),No(380,"Template code"),go(),vo(381,"pre",16),No(382,''),go(),go(),go(),vo(383,"div",22),vo(384,"button",23),Co("click",(function(){return t.githubControl.reset()})),No(385,"Reset to initial"),go(),go(),go(),go(),yo(386,"br"),vo(387,"div",11),vo(388,"div",12),No(389,"Swatches color picker"),go(),vo(390,"div",13),vo(391,"div",3),vo(392,"div",18),vo(393,"p"),No(394,"Swatches component only supports binding over color attribute"),go(),vo(395,"div",19),vo(396,"code"),No(397),go(),yo(398,"br"),go(),vo(399,"swatches-picker",9),Co("colorChange",(function(e){return t.swatchesColor=e})),go(),go(),vo(400,"div",21),vo(401,"p"),No(402,"Component code"),go(),vo(403,"pre",16),No(404,"@Component({\n...\n})\nexport class AppComponent {\n\n public swatchesColor = '#F04A71'\n\n constructor() { \n }\n}"),go(),vo(405,"p"),No(406,"Template code"),go(),vo(407,"pre",16),No(408,''),go(),go(),go(),go(),go(),yo(409,"br"),vo(410,"div",24),vo(411,"div",12),No(412,"How to wrapp color picker"),go(),vo(413,"div",13),vo(414,"div",3),vo(415,"div",18),vo(416,"div",19),vo(417,"code"),No(418),go(),yo(419,"br"),go(),vo(420,"chrome-wrapper",9),Co("colorChange",(function(e){return t.wrapperColor=e})),go(),go(),vo(421,"div",21),vo(422,"p"),No(423,"Component code"),go(),vo(424,"pre",16),No(425,"@Component({\n...\nselector: 'chrome-wrapper',\ntemplate: '\n\n
\n'\n})\nexport class ChromeWrapperComponent {\n\n public colorControl = new ColorPickerControl();\n\n public isVisible: boolean = false;\n\n @Input()\n public set color(color: string) {\n this.colorControl.setValueFrom(color);\n }\n\n @Output()\n public colorChange: EventEmitter = new EventEmitter();\n\n @HostBinding('style.background-color')\n public get background(): string {\n return this.colorControl.value.toHexString();\n }\n\n public ngOnInit() {\n this.colorControl.valueChanges.subscribe((value: Color) => this.colorChange.emit(value.toHexString()));\n }\n\n @HostListener('click', ['$event'])\n public showColorPicker(event: MouseEvent) {\n if (this.isVisible === true) {\n return;\n }\n\n this.isVisible = !this.isVisible;\n }\n\n public overlayClick(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.isVisible = false;\n }\n}"),go(),vo(426,"p"),No(427,"Use case"),go(),vo(428,"pre",16),No(429,''),go(),go(),go(),go(),go(),yo(430,"br"),vo(431,"div",11),vo(432,"div",12),No(433,"ColorPickerControl methods"),go(),vo(434,"div",13),vo(435,"table",25),vo(436,"thead"),vo(437,"tr"),vo(438,"th"),No(439,"Property"),go(),vo(440,"th"),No(441,"Type"),go(),vo(442,"th"),No(443,"Description"),go(),go(),go(),vo(444,"tbody"),vo(445,"tr"),vo(446,"td"),No(447,"setValueFrom"),go(),vo(448,"td"),vo(449,"code"),No(450,"Function"),go(),go(),vo(451,"td"),No(452,"Set value from Color, Rgba, Hsla, Hsva or ColorString"),go(),go(),vo(453,"tr"),vo(454,"td"),No(455,"value"),go(),vo(456,"td"),vo(457,"code"),No(458,"Getter.value"),go(),go(),vo(459,"td"),No(460,"get value as a Color object"),go(),go(),vo(461,"tr"),vo(462,"td"),No(463,"reset"),go(),vo(464,"td"),vo(465,"code"),No(466,"Function"),go(),go(),vo(467,"td"),No(468,"reset value to initial state"),go(),go(),vo(469,"tr"),vo(470,"td"),No(471,"valueChanges"),go(),vo(472,"td"),vo(473,"code"),No(474,"Observable"),go(),go(),vo(475,"td"),No(476,"Used to observe component value changes"),go(),go(),vo(477,"tr"),vo(478,"td"),No(479,"isAlphaChannelEnabled"),go(),vo(480,"td"),vo(481,"code"),No(482,"Function"),go(),go(),vo(483,"td"),No(484,"return is alpha changel enabled"),go(),go(),vo(485,"tr"),vo(486,"td"),No(487,"showAlphaChannel"),go(),vo(488,"td"),vo(489,"code"),No(490,"Function"),go(),go(),vo(491,"td"),No(492,"show alpha channel"),go(),go(),vo(493,"tr"),vo(494,"td"),No(495,"hideAlphaChannel"),go(),vo(496,"td"),vo(497,"code"),No(498,"Function"),go(),go(),vo(499,"td"),No(500,"hide alpha channel"),go(),go(),vo(501,"tr"),vo(502,"td"),No(503,"alphaChannelVisibilityChanges"),go(),vo(504,"td"),vo(505,"code"),No(506,"BehaviorSubject"),go(),go(),vo(507,"td"),No(508,"Used to observe alpha channel changes"),go(),go(),vo(509,"tr"),vo(510,"td"),No(511,"setColorPresets"),go(),vo(512,"td"),vo(513,"code"),No(514,"Function"),go(),go(),vo(515,"td"),No(516,"define color preset list"),go(),go(),vo(517,"tr"),vo(518,"td"),No(519,"presets");go(),vo(520,"td"),vo(521,"code"),No(522,"Getter.presets"),go(),go(),vo(523,"td"),No(524,"get color presets"),go(),go(),vo(525,"tr"),vo(526,"td"),No(527,"hasPresets"),go(),vo(528,"td"),vo(529,"code"),No(530,"Function"),go(),go(),vo(531,"td"),No(532,"return status of predefined color presets"),go(),go(),vo(533,"tr"),vo(534,"td"),No(535,"showPresets"),go(),vo(536,"td"),vo(537,"code"),No(538,"Function"),go(),go(),vo(539,"td"),No(540,"show predefined color presets"),go(),go(),vo(541,"tr"),vo(542,"td"),No(543,"hidePresets"),go(),vo(544,"td"),vo(545,"code"),No(546,"Function"),go(),go(),vo(547,"td"),No(548,"hide predefined color presets"),go(),go(),vo(549,"tr"),vo(550,"td"),No(551,"presetsVisibilityChanges"),go(),vo(552,"td"),vo(553,"code"),No(554,"BehaviorSubject"),go(),go(),vo(555,"td"),No(556,"Used to observe color preset visibility"),go(),go(),go(),go(),go(),go(),yo(557,"br"),vo(558,"div",11),vo(559,"div",12),No(560,"Color methods"),go(),vo(561,"div",13),vo(562,"table",25),vo(563,"thead"),vo(564,"tr"),vo(565,"th"),No(566,"Property"),go(),vo(567,"th"),No(568,"Type"),go(),vo(569,"th"),No(570,"Description"),go(),go(),go(),vo(571,"tbody"),vo(572,"tr"),vo(573,"td"),No(574,"Color.from"),go(),vo(575,"td"),vo(576,"code"),No(577,"static method"),go(),go(),vo(578,"td"),No(579,"create new Color object from Color, Rgba, Hsla, Hsva or ColorString"),go(),go(),vo(580,"tr"),vo(581,"td"),No(582,"clone"),go(),vo(583,"td"),vo(584,"code"),No(585,"Function"),go(),go(),vo(586,"td"),No(587,"create new Color object"),go(),go(),vo(588,"tr"),vo(589,"td"),No(590,"setFromString"),go(),vo(591,"td"),vo(592,"code"),No(593,"Function"),go(),go(),vo(594,"td"),No(595,"change the value by providing the string"),go(),go(),vo(596,"tr"),vo(597,"td"),No(598,"setHsva"),go(),vo(599,"td"),vo(600,"code"),No(601,"Function"),go(),go(),vo(602,"td"),No(603,"change the value by providing hsv values"),go(),go(),vo(604,"tr"),vo(605,"td"),No(606,"setRgba"),go(),vo(607,"td"),vo(608,"code"),No(609,"Function"),go(),go(),vo(610,"td"),No(611,"change the value by providing rgb values"),go(),go(),vo(612,"tr"),vo(613,"td"),No(614,"setHsla"),go(),vo(615,"td"),vo(616,"code"),No(617,"Function"),go(),go(),vo(618,"td"),No(619,"change the value by providing hsl values"),go(),go(),vo(620,"tr"),vo(621,"td"),No(622,"toHexString"),go(),vo(623,"td"),vo(624,"code"),No(625,"Function"),go(),go(),vo(626,"td"),No(627,"convert Color object to hex string"),go(),go(),vo(628,"tr"),vo(629,"td"),No(630,"toRgbString"),go(),vo(631,"td"),vo(632,"code"),No(633,"Function"),go(),go(),vo(634,"td"),No(635,"convert Color object to rgb string"),go(),go(),vo(636,"tr"),vo(637,"td"),No(638,"toRgbaString"),go(),vo(639,"td"),vo(640,"code"),No(641,"Function"),go(),go(),vo(642,"td"),No(643,"convert Color object to rgba string"),go(),go(),vo(644,"tr"),vo(645,"td"),No(646,"toHslString"),go(),vo(647,"td"),vo(648,"code"),No(649,"Function"),go(),go(),vo(650,"td"),No(651,"convert Color object to hsl string"),go(),go(),vo(652,"tr"),vo(653,"td"),No(654,"toHslaString"),go(),vo(655,"td"),vo(656,"code"),No(657,"Function"),go(),go(),vo(658,"td"),No(659,"convert Color object to hsla string"),go(),go(),vo(660,"tr"),vo(661,"td"),No(662,"toHsvString"),go(),vo(663,"td"),vo(664,"code"),No(665,"Function"),go(),go(),vo(666,"td"),No(667,"convert Color object to hsv string"),go(),go(),vo(668,"tr"),vo(669,"td"),No(670,"toHsvaString"),go(),vo(671,"td"),vo(672,"code"),No(673,"Function"),go(),go(),vo(674,"td"),No(675,"convert Color object to hsva string"),go(),go(),vo(676,"tr"),vo(677,"td"),No(678,"toCmykString"),go(),vo(679,"td"),vo(680,"code"),No(681,"Function"),go(),go(),vo(682,"td"),No(683,"convert Color object to cmyk string"),go(),go(),vo(684,"tr"),vo(685,"td"),No(686,"getHsva"),go(),vo(687,"td"),vo(688,"code"),No(689,"Function"),go(),go(),vo(690,"td"),No(691,"return Hsva object"),go(),go(),vo(692,"tr"),vo(693,"td"),No(694,"getRgba"),go(),vo(695,"td"),vo(696,"code"),No(697,"Function"),go(),go(),vo(698,"td"),No(699,"return Rgba object"),go(),go(),vo(700,"tr"),vo(701,"td"),No(702,"getHsla"),go(),vo(703,"td"),vo(704,"code"),No(705,"Function"),go(),go(),vo(706,"td"),No(707,"return Hsla object"),go(),go(),vo(708,"tr"),vo(709,"td"),No(710,"getCmyk"),go(),vo(711,"td"),vo(712,"code"),No(713,"Function"),go(),go(),vo(714,"td"),No(715,"return Cmyk object"),go(),go(),go(),go(),go(),go(),yo(716,"br"),vo(717,"div",11),vo(718,"div",12),No(719,"ColorsTable"),go(),vo(720,"div",13),vo(721,"p"),No(722,"ColorTable is class with static properties which represent Rgba colors defined by "),vo(723,"a",26),No(724,"list of the X11 colors"),go(),go(),go(),go(),yo(725,"br"),go()}2&e&&(cr(1),Eo("background-color",t.color),cr(11),fo("color",t.color),cr(2),fo("color",t.color),cr(210),Fo("selected hex: ",t.chromeControl.value.toHexString(),""),cr(2),Fo("selected hexa: ",t.chromeControl.value.toHexString(!0),""),cr(2),Fo("selected rgb: ",t.chromeControl.value.toRgbString(),""),cr(2),Fo("selected rgba: ",t.chromeControl.value.toRgbaString(),""),cr(2),Fo("selected hsl: ",t.chromeControl.value.toHslString(),""),cr(2),Fo("selected hsla: ",t.chromeControl.value.toHslaString(),""),cr(2),Fo("selected hsv: ",t.chromeControl.value.toHsvString(),""),cr(2),Fo("selected hsva: ",t.chromeControl.value.toHsvaString(),""),cr(2),Fo("selected cmyk: ",t.chromeControl.value.toCmykString(),""),cr(1),fo("control",t.chromeControl),cr(28),Fo("selected hex: ",t.sketchControl.value.toHexString(),""),cr(2),Fo("selected hexa: ",t.sketchControl.value.toHexString(!0),""),cr(2),Fo("selected rgb: ",t.sketchControl.value.toRgbString(),""),cr(2),Fo("selected rgba: ",t.sketchControl.value.toRgbaString(),""),cr(2),Fo("selected hsl: ",t.sketchControl.value.toHslString(),""),cr(2),Fo("selected hsla: ",t.sketchControl.value.toHslaString(),""),cr(2),Fo("selected hsv: ",t.sketchControl.value.toHsvString(),""),cr(2),Fo("selected hsva: ",t.sketchControl.value.toHsvaString(),""),cr(2),Fo("selected cmyk: ",t.sketchControl.value.toCmykString(),""),cr(1),fo("control",t.sketchControl),cr(28),Fo("selected hex: ",t.compactControl.value.toHexString(),""),cr(2),Fo("selected hexa: ",t.compactControl.value.toHexString(!0),""),cr(2),Fo("selected rgb: ",t.compactControl.value.toRgbString(),""),cr(2),Fo("selected rgba: ",t.compactControl.value.toRgbaString(),""),cr(2),Fo("selected hsl: ",t.compactControl.value.toHslString(),""),cr(2),Fo("selected hsla: ",t.compactControl.value.toHslaString(),""),cr(2),Fo("selected hsv: ",t.compactControl.value.toHsvString(),""),cr(2),Fo("selected hsva: ",t.compactControl.value.toHsvaString(),""),cr(2),Fo("selected cmyk: ",t.compactControl.value.toCmykString(),""),cr(1),fo("control",t.compactControl),cr(25),Fo("selected hex: ",t.githubControl.value.toHexString(),""),cr(2),Fo("selected hexa: ",t.githubControl.value.toHexString(!0),""),cr(2),Fo("selected rgb: ",t.githubControl.value.toRgbString(),""),cr(2),Fo("selected rgba: ",t.githubControl.value.toRgbaString(),""),cr(2),Fo("selected hsl: ",t.githubControl.value.toHslString(),""),cr(2),Fo("selected hsla: ",t.githubControl.value.toHslaString(),""),cr(2),Fo("selected hsv: ",t.githubControl.value.toHsvString(),""),cr(2),Fo("selected hsva: ",t.githubControl.value.toHsvaString(),""),cr(2),Fo("selected cmyk: ",t.githubControl.value.toCmykString(),""),cr(1),fo("control",t.githubControl),cr(24),Fo("selected color: ",t.swatchesColor,""),cr(2),fo("color",t.swatchesColor),cr(19),Fo("selected color: ",t.wrapperColor,""),cr(2),fo("color",t.wrapperColor))},directives:[kd,md,Ad,Ed,Id,qd],styles:["[_nghost-%COMP%]{display:block}.background[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:500px;opacity:.5;z-index:0}.jumbotron[_ngcontent-%COMP%]{position:relative;background:none}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding-top:20px}.jumbotron[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:first-child{padding:0}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin-top:-30px;display:inline-block}.jumbotron[_ngcontent-%COMP%] sketch-picker[_ngcontent-%COMP%]{display:inline-block}.jumbotron[_ngcontent-%COMP%] .col-md-6[_ngcontent-%COMP%]{padding-top:20px}@media handheld,screen and (max-width:768px){.jumbotron[_ngcontent-%COMP%] .text-right[_ngcontent-%COMP%], .pickers-row[_ngcontent-%COMP%]{text-align:center!important}.jumbotron[_ngcontent-%COMP%] chrome-picker[_ngcontent-%COMP%]{margin:0}}.info-row[_ngcontent-%COMP%]{padding:0 0 20px}.info-row[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{display:block}.col-lg-4[_ngcontent-%COMP%]{padding:0}.buttons-row[_ngcontent-%COMP%]{padding:20px 0}.btn[_ngcontent-%COMP%]{cursor:pointer;outline:none}"]}),jd),Ld=((Dd=function e(){_classCallCheck(this,e)}).\u0275mod=at({type:Dd}),Dd.\u0275inj=se({factory:function(e){return new(e||Dd)},imports:[[fu,Md]]}),Dd),zd=((Rd=function e(){_classCallCheck(this,e)}).\u0275mod=at({type:Rd,bootstrap:[Bd]}),Rd.\u0275inj=se({factory:function(e){return new(e||Rd)},providers:[],imports:[[fu,Md,Zh,Ld]]}),Rd);(function(){if(Gn)throw new Error("Cannot enable prod mode after platform setup.");Wn=!1})(),cu().bootstrapModule(zd).catch((function(e){return console.error(e)}))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]); \ No newline at end of file diff --git a/projects/iplab/ngx-color-picker/package.json b/projects/iplab/ngx-color-picker/package.json index 4318a86..9189a8e 100644 --- a/projects/iplab/ngx-color-picker/package.json +++ b/projects/iplab/ngx-color-picker/package.json @@ -3,7 +3,7 @@ "description": "", "homepage": "https://github.com/pIvan/ngx-color-picker", "bugs": "https://github.com/pIvan/ngx-color-picker/issues", - "version": "2.0.0", + "version": "2.0.1", "author": "Ivan Pintar", "license": "MIT", "readmeFilename": "README.md", diff --git a/projects/iplab/ngx-color-picker/src/lib/components/parts/inputs/hex-input/hex-input.component.ts b/projects/iplab/ngx-color-picker/src/lib/components/parts/inputs/hex-input/hex-input.component.ts index aa5daac..88652d0 100644 --- a/projects/iplab/ngx-color-picker/src/lib/components/parts/inputs/hex-input/hex-input.component.ts +++ b/projects/iplab/ngx-color-picker/src/lib/components/parts/inputs/hex-input/hex-input.component.ts @@ -47,12 +47,15 @@ export class HexComponent { const value = inputValue.toLowerCase().replace('#', ''); if (value.length === 3 || value.length === 6 || value.length === 8) { const hex = parseInt(value, 16); + const hexStr = hex.toString(16); /** * if value is valid * change color else do nothing + * after parsing number leading 0 is removed, + * compare length and add leading 0 before comparing two values */ - if (hex.toString(16) === value && this.value !== value) { + if (hexStr.padStart(value.length, '0') === value && this.value !== value) { const newColor = new Color(`#${value}`); const hue = new Color().setHsva(newColor.getHsva().hue); this.hueChange.emit(hue);