All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.vendor.altair.main-es2018.js Maven / Gradle / Ivy

(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+/fp":function(e,t){e.exports=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}},"+Wds":function(e,t,n){"use strict";var i=String.prototype.indexOf;e.exports=function(e){return i.call(this,e,arguments[1])>-1}},"+XMV":function(e,t,n){"use strict";e.exports=n("GOzd")()?String.prototype.contains:n("+Wds")},"+YfQ":function(e,t,n){"use strict";var i,r=(i=n("VrN/"))&&i.__esModule?i:{default:i},o=n("JCIs");function s(e,t){const n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}r.default.defineMode("graphql-variables",e=>{const t=(0,o.onlineParser)({eatWhitespace:e=>e.eatSpace(),lexRules:a,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const a={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,o.p)("{"),(0,o.list)("Variable",(0,o.opt)((0,o.p)(","))),(0,o.p)("}")],Variable:[l("variable"),(0,o.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.list)("Value",(0,o.opt)((0,o.p)(","))),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.list)("ObjectField",(0,o.opt)((0,o.p)(","))),(0,o.p)("}")],ObjectField:[l("attribute"),(0,o.p)(":"),"Value"]};function l(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}},"+dQi":function(e,t,n){!function(e){"use strict";e.defineMode("javascript",function(t,n){var i,r,o=t.indentUnit,s=n.statementIndent,a=n.jsonld,c=n.json||a,l=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,h=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),i=e("keyword c"),r=e("keyword d"),o=e("operator"),s={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:i,void:i,throw:i,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:e("this"),class:e("class"),super:e("atom"),yield:i,export:e("export"),import:e("import"),extends:i,await:i}}(),d=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function f(e,t,n){return i=e,r=n,t}function g(e,t){var n,i=e.next();if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){var i,r=!1;if(a&&"@"==e.peek()&&e.match(p))return t.tokenize=g,f("jsonld-keyword","meta");for(;null!=(i=e.next())&&(i!=n||r);)r=!r&&"\\"==i;return r||(t.tokenize=g),f("string","string")}),t.tokenize(e,t);if("."==i&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return f("number","number");if("."==i&&e.match(".."))return f("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(i))return f(i);if("="==i&&e.eat(">"))return f("=>","operator");if("0"==i&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return f("number","number");if(/\d/.test(i))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),f("number","number");if("/"==i)return e.eat("*")?(t.tokenize=m,m(e,t)):e.eat("/")?(e.skipToEnd(),f("comment","comment")):Qe(e,t,1)?(function(e){for(var t,n=!1,i=!1;null!=(t=e.next());){if(!n){if("/"==t&&!i)return;"["==t?i=!0:i&&"]"==t&&(i=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f("regexp","string-2")):(e.eat("="),f("operator","operator",e.current()));if("`"==i)return t.tokenize=b,b(e,t);if("#"==i&&"!"==e.peek())return e.skipToEnd(),f("meta","meta");if("#"==i&&e.eatWhile(u))return f("variable","property");if("<"==i&&e.match("!--")||"-"==i&&e.match("->"))return e.skipToEnd(),f("comment","comment");if(d.test(i))return">"==i&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=i&&"="!=i||e.eat("="):/[<>*+\-]/.test(i)&&(e.eat(i),">"==i&&e.eat(i))),"?"==i&&e.eat(".")?f("."):f("operator","operator",e.current());if(u.test(i)){e.eatWhile(u);var r=e.current();if("."!=t.lastType){if(h.propertyIsEnumerable(r)){var o=h[r];return f(o.type,o.style,r)}if("async"==r&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return f("async","keyword",r)}return f("variable","variable",r)}}function m(e,t){for(var n,i=!1;n=e.next();){if("/"==n&&i){t.tokenize=g;break}i="*"==n}return f("comment","comment")}function b(e,t){for(var n,i=!1;null!=(n=e.next());){if(!i&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}i=!i&&"\\"==n}return f("quasi","string-2",e.current())}function v(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(l){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));i&&(n=i.index)}for(var r=0,o=!1,s=n-1;s>=0;--s){var a=e.string.charAt(s),c="([{}])".indexOf(a);if(c>=0&&c<3){if(!r){++s;break}if(0==--r){"("==a&&(o=!0);break}}else if(c>=3&&c<6)++r;else if(u.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--s){if(0==s)return;if(e.string.charAt(s-1)==a&&"\\"!=e.string.charAt(s-2)){s--;break}}else if(o&&!r){++s;break}}o&&!r&&(t.fatArrowAt=s)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(e,t,n,i,r,o){this.indented=e,this.column=t,this.type=n,this.prev=r,this.info=o,null!=i&&(this.align=i)}function _(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var i=e.context;i;i=i.prev)for(n=i.vars;n;n=n.next)if(n.name==t)return!0}var O={state:null,column:null,marked:null,cc:null};function C(){for(var e=arguments.length-1;e>=0;e--)O.cc.push(arguments[e])}function E(){return C.apply(null,arguments),!0}function S(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function T(e){var t=O.state;if(O.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var i=x(e,t.context);if(null!=i)return void(t.context=i)}else if(!S(e,t.localVars))return void(t.localVars=new D(e,t.localVars));n.globalVars&&!S(e,t.globalVars)&&(t.globalVars=new D(e,t.globalVars))}function x(e,t){if(t){if(t.block){var n=x(e,t.prev);return n?n==t.prev?t:new I(n,t.vars,!0):null}return S(e,t.vars)?t:new I(t.prev,new D(e,t.vars),!1)}return null}function k(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function I(e,t,n){this.prev=e,this.vars=t,this.block=n}function D(e,t){this.name=e,this.next=t}var z=new D("this",new D("arguments",null));function j(){O.state.context=new I(O.state.context,O.state.localVars,!1),O.state.localVars=z}function A(){O.state.context=new I(O.state.context,O.state.localVars,!0),O.state.localVars=null}function R(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}function N(e,t){var n=function(){var n=O.state,i=n.indented;if("stat"==n.lexical.type)i=n.lexical.indented;else for(var r=n.lexical;r&&")"==r.type&&r.align;r=r.prev)i=r.indented;n.lexical=new w(i,O.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function L(){var e=O.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function M(e){return function t(n){return n==e?E():";"==e||"}"==n||")"==n||"]"==n?C():E(t)}}function F(e,t){return"var"==e?E(N("vardef",t),ye,M(";"),L):"keyword a"==e?E(N("form"),B,F,L):"keyword b"==e?E(N("form"),F,L):"keyword d"==e?O.stream.match(/^\s*$/,!1)?E():E(N("stat"),$,M(";"),L):"debugger"==e?E(M(";")):"{"==e?E(N("}"),A,se,L,R):";"==e?E():"if"==e?("else"==O.state.lexical.info&&O.state.cc[O.state.cc.length-1]==L&&O.state.cc.pop()(),E(N("form"),B,F,L,Se)):"function"==e?E(Ie):"for"==e?E(N("form"),Te,F,L):"class"==e||l&&"interface"==t?(O.marked="keyword",E(N("form","class"==e?e:t),Re,L)):"variable"==e?l&&"declare"==t?(O.marked="keyword",E(F)):l&&("module"==t||"enum"==t||"type"==t)&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword","enum"==t?E(He):"type"==t?E(ze,M("operator"),he,M(";")):E(N("form"),we,M("{"),N("}"),se,L,L)):l&&"namespace"==t?(O.marked="keyword",E(N("form"),V,F,L)):l&&"abstract"==t?(O.marked="keyword",E(F)):E(N("stat"),Z):"switch"==e?E(N("form"),B,M("{"),N("}","switch"),A,se,L,L,R):"case"==e?E(V,M(":")):"default"==e?E(M(":")):"catch"==e?E(N("form"),j,P,F,L,R):"export"==e?E(N("stat"),Fe,L):"import"==e?E(N("stat"),Ve,L):"async"==e?E(F):"@"==t?E(V,F):C(N("stat"),V,M(";"),L)}function P(e){if("("==e)return E(je,M(")"))}function V(e,t){return W(e,t,!1)}function G(e,t){return W(e,t,!0)}function B(e){return"("!=e?C():E(N(")"),$,M(")"),L)}function W(e,t,n){if(O.state.fatArrowAt==O.stream.start){var i=n?X:K;if("("==e)return E(j,N(")"),re(je,")"),L,M("=>"),i,R);if("variable"==e)return C(j,we,M("=>"),i,R)}var r=n?H:U;return y.hasOwnProperty(e)?E(r):"function"==e?E(Ie,r):"class"==e||l&&"interface"==t?(O.marked="keyword",E(N("form"),Ae,L)):"keyword c"==e||"async"==e?E(n?G:V):"("==e?E(N(")"),$,M(")"),L,r):"operator"==e||"spread"==e?E(n?G:V):"["==e?E(N("]"),Ue,L,r):"{"==e?oe(te,"}",null,r):"quasi"==e?C(q,r):"new"==e?E(function(e){return function(t){return"."==t?E(e?J:Y):"variable"==t&&l?E(me,e?H:U):C(e?G:V)}}(n)):"import"==e?E(V):E()}function $(e){return e.match(/[;\}\)\],]/)?C():C(V)}function U(e,t){return","==e?E($):H(e,t,!1)}function H(e,t,n){var i=0==n?U:H,r=0==n?V:G;return"=>"==e?E(j,n?X:K,R):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?E(i):l&&"<"==t&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?E(N(">"),re(he,">"),L,i):"?"==t?E(V,M(":"),r):E(r):"quasi"==e?C(q,i):";"!=e?"("==e?oe(G,")","call",i):"."==e?E(ee,i):"["==e?E(N("]"),$,M("]"),L,i):l&&"as"==t?(O.marked="keyword",E(he,i)):"regexp"==e?(O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),E(r)):void 0:void 0}function q(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?E(q):E(V,Q)}function Q(e){if("}"==e)return O.marked="string-2",O.state.tokenize=b,E(q)}function K(e){return v(O.stream,O.state),C("{"==e?F:V)}function X(e){return v(O.stream,O.state),C("{"==e?F:G)}function Y(e,t){if("target"==t)return O.marked="keyword",E(U)}function J(e,t){if("target"==t)return O.marked="keyword",E(H)}function Z(e){return":"==e?E(L,F):C(U,M(";"),L)}function ee(e){if("variable"==e)return O.marked="property",E()}function te(e,t){return"async"==e?(O.marked="property",E(te)):"variable"==e||"keyword"==O.style?(O.marked="property","get"==t||"set"==t?E(ne):(l&&O.state.fatArrowAt==O.stream.start&&(n=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+n[0].length),E(ie))):"number"==e||"string"==e?(O.marked=a?"property":O.style+" property",E(ie)):"jsonld-keyword"==e?E(ie):l&&k(t)?(O.marked="keyword",E(te)):"["==e?E(V,ae,M("]"),ie):"spread"==e?E(G,ie):"*"==t?(O.marked="keyword",E(te)):":"==e?C(ie):void 0;var n}function ne(e){return"variable"!=e?C(ie):(O.marked="property",E(Ie))}function ie(e){return":"==e?E(G):"("==e?C(Ie):void 0}function re(e,t,n){function i(r,o){if(n?n.indexOf(r)>-1:","==r){var s=O.state.lexical;return"call"==s.info&&(s.pos=(s.pos||0)+1),E(function(n,i){return n==t||i==t?C():C(e)},i)}return r==t||o==t?E():n&&n.indexOf(";")>-1?C(e):E(M(t))}return function(n,r){return n==t||r==t?E():C(e,i)}}function oe(e,t,n){for(var i=3;i"),he):void 0}function de(e){if("=>"==e)return E(he)}function pe(e,t){return"variable"==e||"keyword"==O.style?(O.marked="property",E(pe)):"?"==t||"number"==e||"string"==e?E(pe):":"==e?E(he):"["==e?E(M("variable"),ce,M("]"),pe):"("==e?C(De,pe):void 0}function fe(e,t){return"variable"==e&&O.stream.match(/^\s*[?:]/,!1)||"?"==t?E(fe):":"==e?E(he):"spread"==e?E(fe):C(he)}function ge(e,t){return"<"==t?E(N(">"),re(he,">"),L,ge):"|"==t||"."==e||"&"==t?E(he):"["==e?E(he,M("]"),ge):"extends"==t||"implements"==t?(O.marked="keyword",E(he)):"?"==t?E(he,M(":"),he):void 0}function me(e,t){if("<"==t)return E(N(">"),re(he,">"),L,ge)}function be(){return C(he,ve)}function ve(e,t){if("="==t)return E(he)}function ye(e,t){return"enum"==t?(O.marked="keyword",E(He)):C(we,ae,Ce,Ee)}function we(e,t){return l&&k(t)?(O.marked="keyword",E(we)):"variable"==e?(T(t),E()):"spread"==e?E(we):"["==e?oe(Oe,"]"):"{"==e?oe(_e,"}"):void 0}function _e(e,t){return"variable"!=e||O.stream.match(/^\s*:/,!1)?("variable"==e&&(O.marked="property"),"spread"==e?E(we):"}"==e?C():"["==e?E(V,M("]"),M(":"),_e):E(M(":"),we,Ce)):(T(t),E(Ce))}function Oe(){return C(we,Ce)}function Ce(e,t){if("="==t)return E(G)}function Ee(e){if(","==e)return E(ye)}function Se(e,t){if("keyword b"==e&&"else"==t)return E(N("form","else"),F,L)}function Te(e,t){return"await"==t?E(Te):"("==e?E(N(")"),xe,L):void 0}function xe(e){return"var"==e?E(ye,ke):"variable"==e?E(ke):C(ke)}function ke(e,t){return")"==e?E():";"==e?E(ke):"in"==t||"of"==t?(O.marked="keyword",E(V,ke)):C(V,ke)}function Ie(e,t){return"*"==t?(O.marked="keyword",E(Ie)):"variable"==e?(T(t),E(Ie)):"("==e?E(j,N(")"),re(je,")"),L,le,F,R):l&&"<"==t?E(N(">"),re(be,">"),L,Ie):void 0}function De(e,t){return"*"==t?(O.marked="keyword",E(De)):"variable"==e?(T(t),E(De)):"("==e?E(j,N(")"),re(je,")"),L,le,R):l&&"<"==t?E(N(">"),re(be,">"),L,De):void 0}function ze(e,t){return"keyword"==e||"variable"==e?(O.marked="type",E(ze)):"<"==t?E(N(">"),re(be,">"),L):void 0}function je(e,t){return"@"==t&&E(V,je),"spread"==e?E(je):l&&k(t)?(O.marked="keyword",E(je)):l&&"this"==e?E(ae,Ce):C(we,ae,Ce)}function Ae(e,t){return"variable"==e?Re(e,t):Ne(e,t)}function Re(e,t){if("variable"==e)return T(t),E(Ne)}function Ne(e,t){return"<"==t?E(N(">"),re(be,">"),L,Ne):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(O.marked="keyword"),E(l?he:V,Ne)):"{"==e?E(N("}"),Le,L):void 0}function Le(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&k(t))&&O.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(O.marked="keyword",E(Le)):"variable"==e||"keyword"==O.style?(O.marked="property",E(Me,Le)):"number"==e||"string"==e?E(Me,Le):"["==e?E(V,ae,M("]"),Me,Le):"*"==t?(O.marked="keyword",E(Le)):l&&"("==e?C(De,Le):";"==e||","==e?E(Le):"}"==e?E():"@"==t?E(V,Le):void 0}function Me(e,t){if("?"==t)return E(Me);if(":"==e)return E(he,Ce);if("="==t)return E(G);var n=O.state.lexical.prev;return C(n&&"interface"==n.info?De:Ie)}function Fe(e,t){return"*"==t?(O.marked="keyword",E($e,M(";"))):"default"==t?(O.marked="keyword",E(V,M(";"))):"{"==e?E(re(Pe,"}"),$e,M(";")):C(F)}function Pe(e,t){return"as"==t?(O.marked="keyword",E(M("variable"))):"variable"==e?C(G,Pe):void 0}function Ve(e){return"string"==e?E():"("==e?C(V):C(Ge,Be,$e)}function Ge(e,t){return"{"==e?oe(Ge,"}"):("variable"==e&&T(t),"*"==t&&(O.marked="keyword"),E(We))}function Be(e){if(","==e)return E(Ge,Be)}function We(e,t){if("as"==t)return O.marked="keyword",E(Ge)}function $e(e,t){if("from"==t)return O.marked="keyword",E(V)}function Ue(e){return"]"==e?E():C(re(G,"]"))}function He(){return C(N("form"),we,M("{"),N("}"),re(qe,"}"),L,L)}function qe(){return C(we,Ce)}function Qe(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return R.lex=!0,L.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new w((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new I(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),v(e,t)),t.tokenize!=m&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==i?n:(t.lastType="operator"!=i||"++"!=r&&"--"!=r?i:"incdec",function(e,t,n,i,r){var o=e.cc;for(O.state=e,O.stream=r,O.marked=null,O.cc=o,O.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():c?V:F)(n,i)){for(;o.length&&o[o.length-1].lex;)o.pop()();return O.marked?O.marked:"variable"==n&&_(e,i)?"variable-2":t}}(t,n,i,r,e))},indent:function(t,i){if(t.tokenize==m)return e.Pass;if(t.tokenize!=g)return 0;var r,a=i&&i.charAt(0),c=t.lexical;if(!/^\s*else\b/.test(i))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==L)c=c.prev;else if(u!=Se)break}for(;("stat"==c.type||"form"==c.type)&&("}"==a||(r=t.cc[t.cc.length-1])&&(r==U||r==H)&&!/^[,\.=+\-*:?[\(]/.test(i));)c=c.prev;s&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var h=c.type,p=a==h;return"vardef"==h?c.indented+("operator"==t.lastType||","==t.lastType?c.info.length+1:0):"form"==h&&"{"==a?c.indented:"form"==h?c.indented+o:"stat"==h?c.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,i)?s||o:0):"switch"!=c.info||p||0==n.doubleIndentSwitch?c.align?c.column+(p?0:1):c.indented+(p?0:o):c.indented+(/^(?:case|default)\b/.test(i)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:a,jsonMode:c,expressionAllowed:Qe,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=V&&t!=G||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("VrN/"))},"+klR":function(e,t,n){"use strict";e.exports=2147483647},"+rOU":function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return a});var i=n("fXoL"),r=n("ofXK");class o{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class s extends o{constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=i}}class a extends o{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class c extends o{constructor(e){super(),this.element=e instanceof i.l?e.nativeElement:e}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof s?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof a?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof c?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends l{constructor(e,t,n,i,r){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);return n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),n.detectChanges(),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let h=(()=>{class e extends l{constructor(e,t,n){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.n,this.attachDomPortal=e=>{const t=e.element,n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(n,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.j),i.Qb(i.S),i.Qb(r.d))},e.\u0275dir=i.Lb({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Bb]}),e})(),d=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)}}),e})()},"+zUi":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("dWS+");function r(e){return"There can be only one ".concat(e," type in schema.")}function o(e){return"Type for ".concat(e," already defined in the schema. It cannot be redefined.")}function s(e){var t=e.getSchema(),n=Object.create(null),s=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:a,SchemaExtension:a};function a(t){if(t.operationTypes)for(var a=0,c=t.operationTypes||[];af(t,e))}function y(e){if(!e.getClientRects().length)return{top:0,left:0};const t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}}function w(e){return e.type.startsWith("touch")}function _(e){return w(e)?e.touches[0]||e.changedTouches[0]:e}function O(e){return!!e&&"function"==typeof e.then&&"function"==typeof e.catch}function C(e){return"number"==typeof e&&isFinite(e)}function E(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}function S(e,t=0){return e.reduce((e,t)=>e+t,t)}function T(e){e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView&&e.scrollIntoView(!1)}let x,k;"undefined"!=typeof window&&window;const I={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function D(e="vertical",t="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const n="vertical"===e;if(n&&x)return x;if(!n&&k)return k;const i=document.createElement("div");Object.keys(I).forEach(e=>{i.style[e]=I[e]}),i.className=`${t}-hide-scrollbar scroll-div-append-to-body`,n?i.style.overflowY="scroll":i.style.overflowX="scroll",document.body.appendChild(i);let r=0;return n?(r=i.offsetWidth-i.clientWidth,x=r):(r=i.offsetHeight-i.clientHeight,k=r),document.body.removeChild(i),r}function z(){const e=new o.a;return Promise.resolve().then(()=>e.next()),e.pipe(Object(l.a)(1))}function j(e){return Object(s.a)(e)?e:O(e)?Object(a.a)(Promise.resolve(e)):Object(c.a)(e)}},"/bpi":function(e,t,n){"use strict";n.d(t,"a",function(){return b});var i=n("7o/Q"),r=n("D0XW");n("zx2A");const o={leading:!0,trailing:!1};function s(e,t=r.a,n=o){return i=>i.lift(new a(e,t,n.leading,n.trailing))}class a{constructor(e,t,n,i){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=i}call(e,t){return t.subscribe(new c(e,this.duration,this.scheduler,this.leading,this.trailing))}}class c extends i.a{constructor(e,t,n,i,r){super(e),this.duration=t,this.scheduler=n,this.leading=i,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(l,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function l(e){const{subscriber:t}=e;t.clearThrottle()}var u=n("fXoL"),h=n("xgIS"),d=n("6EqW"),p=n("ofXK"),f=n("VfN6"),g=n("fpqv"),m=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let b=(()=>{let e=class{constructor(e,t,n){this.el=e,this.document=t,this.zone=n,this.resizeDirection="left",this.resizeChange=new u.n,this.isRight=!1,this.draggingMode=!1,this.siblingGrowthFactor=2,this.throttleMs=100,this.documentMouseUp$=Object(h.a)(this.document,"mouseup"),this.documentMouseMove$=Object(h.a)(this.document,"mousemove").pipe(s(this.throttleMs)),this.elMouseMove$=Object(h.a)(this.el.nativeElement,"mousemove").pipe(s(this.throttleMs)),this.elMouseDown$=Object(h.a)(this.el.nativeElement,"mousedown"),this.resizeElement=this.el.nativeElement.parentElement,this.resizeContainer=this.getResizeContainer()}ngOnInit(){"right"===this.resizeDirection&&(this.isRight=!0),this.zone.runOutsideAngular(()=>{this.documentMouseUp$.subscribe(e=>this.onMouseUp()),this.documentMouseMove$.subscribe(e=>this.onResizerMove(e)),this.elMouseMove$.subscribe(e=>this.onResizerMove(e)),this.elMouseDown$.subscribe(e=>this.onResizerPress(e))})}onResizerPress(e){this.draggingMode=!0,this.originalWidth=this.resizeElement.clientWidth,this.originalX=e.clientX,this.resizeElement.parentElement&&(this.siblingGrowthFactor=Array.from(this.resizeElement.parentElement.children).filter(e=>this.resizeElement!==e).reduce((e,t)=>+getComputedStyle(t).getPropertyValue("flex-grow")+e,0))}onResizerMove(e){if(!this.draggingMode||!this.resizeContainer)return!0;e.stopPropagation(),e.preventDefault(),this.diffX=e.clientX-this.originalX;const t=this.isRight?this.originalWidth+this.diffX:this.originalWidth-this.diffX,n=t/this.resizeContainer.clientWidth,i=n*this.siblingGrowthFactor/(1-n);this.zone.run(()=>{this.resizeChange.next(i),d.a.log("mouse moved resizer",t,i)})}onMouseUp(){if(!this.draggingMode)return!0;this.draggingMode=!1,d.a.log("mouse up.",this.originalWidth,this.diffX)}getResizeContainer(){let e=this.resizeElement;for(;e&&!e.hasAttribute("data-resize-container");)e=e.parentElement;return e}};return e.\u0275fac=function(t){return new(t||e)(u.Qb(u.l),u.Qb(p.d),u.Qb(u.B))},e.\u0275cmp=u.Kb({type:e,selectors:[["app-flex-resizer"]],hostVars:2,hostBindings:function(e,t){2&e&&u.Ib("is-right",t.isRight)},inputs:{resizeDirection:"resizeDirection"},outputs:{resizeChange:"resizeChange"},decls:1,vars:0,consts:[["name","more-vertical"]],template:function(e,t){1&e&&u.Rb(0,"app-icon",0)},directives:[g.a],styles:[""]}),e=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Object(f.a)({checkProperties:!0}),m("design:paramtypes",[u.l,Document,u.B])],e),e})()},"/fzJ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=Object.create(null);return t.definitions.forEach(t=>{if("OperationDefinition"===t.kind){const r=t.variableDefinitions;r&&r.forEach(({variable:t,type:r})=>{const o=(0,i.typeFromAST)(e,r);o&&(n[t.name.value]=o)})}}),n};var i=n("Tzvz")},"/jXB":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},"/kEc":function(e,t,n){"use strict";function i(e){return void 0===e||e!=e}n.d(t,"a",function(){return i})},"/uUt":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return n=>n.lift(new o(e,t))}class o{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new s(e,this.compare,this.keySelector))}}class s extends i.a{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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}},0:function(e,t,n){e.exports=n("zUnb")},"0MjU":function(e,t,n){"use strict";t.a=e=>[e.getQueryType(),e.getMutationType(),e.getSubscriptionType()].filter(Boolean)},"0ZyQ":function(e,t,n){"use strict";var i=n("TOvx"),r=/[\n\r\u2028\u2029]/g;e.exports=function(e){var t=i(e);return t.length>100&&(t=t.slice(0,99)+"\u2026"),t.replace(r,function(e){return JSON.stringify(e).slice(1,-1)})}},"0dpv":function(e,t,n){"use strict";var i=n("1TtK"),r=n("nC3q"),o=n("ZI+j");o.max=function(e,t,n){var s,a,c;(e=i(e))&&(a=r(e),t.on("set"+(s=n.async&&o.async||n.promise&&o.promise?"async":""),c=function(e){void 0!==(e=a.hit(e))&&t.delete(e)}),t.on("get"+s,c),t.on("delete"+s,a.delete),t.on("clear"+s,a.clear))}},"0t4y":function(e,t,n){!function(e){"use strict";e.registerHelper("lint","json",function(t){var n=[];if(!window.jsonlint)return window.console&&window.console.error("Error: window.jsonlint not defined, CodeMirror JSON linting cannot run."),n;var i=window.jsonlint.parser||window.jsonlint;i.parseError=function(t,i){var r=i.loc;n.push({from:e.Pos(r.first_line-1,r.first_column),to:e.Pos(r.last_line-1,r.last_column),message:t})};try{i.parse(t)}catch(r){}return n})}(n("VrN/"))},"0waZ":function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(e){"use strict";var t,n,i={template:"[%t] %l:",levelFormatter:function(e){return e.toUpperCase()},nameFormatter:function(e){return e||"root"},timestampFormatter:function(e){return e.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},r={},o={reg:function(e){if(!e||!e.getLogger)throw new TypeError("Argument is not a root logger");t=e},apply:function(e,n){if(!e||!e.setLevel)throw new TypeError("Argument is not a logger");var o=e.methodFactory,s=e.name||"",a=r[s]||r[""]||i;return r[s]||(e.methodFactory=function(e,t,n){var i=o(e,t,n),a=r[n]||r[""],c=-1!==a.template.indexOf("%t"),l=-1!==a.template.indexOf("%l"),u=-1!==a.template.indexOf("%n");return function(){for(var t="",o=arguments.length,h=Array(o),d=0;d2147483647||t<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(o.a)(e)));return t},parseValue:function(e){if(!r(e))throw new TypeError("Int cannot represent non-integer value: ".concat(Object(o.a)(e)));if(e>2147483647||e<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind===a.a.INT){var t=parseInt(e.value,10);if(t<=2147483647&&t>=-2147483648)return t}}}),u=new c.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){if("boolean"==typeof e)return e?1:0;var t=e;if("string"==typeof e&&""!==e&&(t=Number(e)),!i(t))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return t},parseValue:function(e){if(!i(e))throw new TypeError("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===a.a.FLOAT||e.kind===a.a.INT?parseFloat(e.value):void 0}});function h(e){if(Object(s.a)(e)){if("function"==typeof e.valueOf){var t=e.valueOf();if(!Object(s.a)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var d=new c.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=h(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if(i(t))return t.toString();throw new TypeError("String cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===a.a.STRING?e.value:void 0}}),p=new c.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if(i(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){return e.kind===a.a.BOOLEAN?e.value:void 0}}),f=new c.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=h(e);if("string"==typeof t)return t;if(r(t))return String(t);throw new TypeError("ID cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"==typeof e)return e;if(r(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat(Object(o.a)(e)))},parseLiteral:function(e){return e.kind===a.a.STRING||e.kind===a.a.INT?e.value:void 0}}),g=Object.freeze([d,l,u,p,f]);function m(e){return Object(c.R)(e)&&g.some(function(t){return e.name===t.name})}},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return t=>t.lift(new o(e))}class o{constructor(e){this.notifier=e}call(e,t){const n=new s(e),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class s extends i.b{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1QEH":function(e,t,n){"use strict";t.a=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})}},"1TtK":function(e,t,n){"use strict";var i=n("xfTp"),r=Math.max;e.exports=function(e){return r(0,i(e))}},"1tsg":function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i=n("HaE+"),r=n("fXoL");const o="websocket";let s=(()=>{class e{constructor(){var e,t,r,s;this.list=[],this.addProviderData({id:o,getProviderClass:(e=Object(i.a)(function*(){return(yield Promise.all([n.e(0),n.e(9)]).then(n.bind(null,"eiGN"))).WebsocketSubscriptionProvider}),function(){return e.apply(this,arguments)}),copyTag:"SUBSCRIPTION_PROVIDER_WEBSOCKET"}),this.addProviderData({id:"graphql-ws",getProviderClass:(t=Object(i.a)(function*(){return(yield Promise.all([n.e(0),n.e(10)]).then(n.bind(null,"1DrF"))).GraphQLWsSubscriptionProvider}),function(){return t.apply(this,arguments)}),copyTag:"SUBSCRIPTION_PROVIDER_GRAPHQL_WS"}),this.addProviderData({id:"app-sync",getProviderClass:(r=Object(i.a)(function*(){return(yield Promise.all([n.e(0),n.e(7)]).then(n.bind(null,"KcVD"))).AppSyncSubscriptionProvider}),function(){return r.apply(this,arguments)}),copyTag:"SUBSCRIPTION_PROVIDER_APP_SYNC"}),this.addProviderData({id:"action-cable",getProviderClass:(s=Object(i.a)(function*(){return(yield Promise.all([n.e(0),n.e(11)]).then(n.bind(null,"+R79"))).ActionCableSubscriptionProvider}),function(){return s.apply(this,arguments)}),copyTag:"SUBSCRIPTION_PROVIDER_ACTION_CABLE"})}addProviderData(e){this.list.push(e)}getProviderData(e){const t=this.list.find(t=>t.id===e);if(!t)throw new Error(`No subscription provider found for "${e}"`);return t}getAllProviderData(){return this.list}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})()},"1uah":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("yCtX"),r=n("DH7j"),o=n("7o/Q"),s=n("Lhse"),a=n("zx2A");function c(...e){const t=e[e.length-1];return"function"==typeof t&&e.pop(),Object(i.a)(e,void 0).lift(new l(t))}class l{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new u(e,this.resultSelector))}}class u extends o.a{constructor(e,t,n=Object.create(null)){super(e),this.resultSelector=t,this.iterators=[],this.active=0,this.resultSelector="function"==typeof t?t:void 0}_next(e){const t=this.iterators;Object(r.a)(e)?t.push(new d(e)):t.push("function"==typeof e[s.a]?new h(e[s.a]()):new p(this.destination,this,e))}_complete(){const e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class p extends a.b{constructor(e,t,n){super(e),this.parent=t,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[s.a](){return this}next(){const e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(e){this.buffer.push(e),this.parent.checkIterators()}subscribe(){return Object(a.c)(this.observable,new a.a(this))}}},"2/d+":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("rWdj"),r=n("dWS+"),o=n("axIb");function s(e){return{Field:function(t){var n=e.getType(),s=t.selectionSet;n&&(Object(o.I)(Object(o.A)(n))?s&&e.reportError(new r.a(function(e,t){return'Field "'.concat(e,'" must not have a selection since type "').concat(t,'" has no subfields.')}(t.name.value,Object(i.a)(n)),s)):s||e.reportError(new r.a(function(e,t){return'Field "'.concat(e,'" of type "').concat(t,'" must have a selection of subfields. Did you mean "').concat(e,' { ... }"?')}(t.name.value,Object(i.a)(n)),t)))}}}},"2C6G":function(e,t,n){"use strict";function i(e,t){if(!Boolean(e))throw new Error(t||"Unexpected invariant triggered")}n.d(t,"a",function(){return i})},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Rkc":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("dWS+"),r=n("dQau"),o=n("axIb"),s=n("umOc");function a(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var a=Object(s.a)(e.getSchema(),n);a&&!Object(o.D)(a)&&e.reportError(new i.a(function(e){return'Fragment cannot condition on non composite type "'.concat(e,'".')}(Object(r.print)(n)),n))}},FragmentDefinition:function(t){var n=Object(s.a)(e.getSchema(),t.typeCondition);n&&!Object(o.D)(n)&&e.reportError(new i.a(function(e,t){return'Fragment "'.concat(e,'" cannot condition on non composite type "').concat(t,'".')}(t.name.value,Object(r.print)(t.typeCondition)),t.typeCondition))}}}},"2Suw":function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u});var i=n("fXoL"),r=n("XNiG"),o=n("pLZG"),s=n("CqXF");const a=new i.s("nz-config"),c=function(e){return void 0!==e};let l=(()=>{class e{constructor(e){this.configUpdated$=new r.a,this.config=e||{}}getConfigForComponent(e){return this.config[e]}getConfigChangeEventForComponent(e){return this.configUpdated$.pipe(Object(o.a)(t=>t===e),Object(s.a)(void 0))}set(e,t){this.config[e]=Object.assign(Object.assign({},this.config[e]),t),this.configUpdated$.next(e)}}return e.\u0275fac=function(t){return new(t||e)(i.ac(a,8))},e.\u0275prov=Object(i.Mb)({factory:function(){return new e(Object(i.ac)(a,8))},token:e,providedIn:"root"}),e})();function u(){return function(e,t,n){const i=`$$__assignedValue__${t}`;return Object.defineProperty(e,i,{configurable:!0,writable:!0,enumerable:!1}),{get(){const e=(null==n?void 0:n.get)?n.get.bind(this)():this[i];if(((this.assignmentCount||{})[t]||0)>1&&c(e))return e;const r=(this.nzConfigService.getConfigForComponent(this._nzModuleName)||{})[t];return c(r)?r:e},set(e){this.assignmentCount=this.assignmentCount||{},this.assignmentCount[t]=(this.assignmentCount[t]||0)+1,(null==n?void 0:n.set)?n.set.bind(this)(e):this[i]=e},configurable:!0,enumerable:!0}}}},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("XNiG"),r=n("9ppp");class o extends i.a{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 r.a;return this._value}next(e){super.next(this._value=e)}}},"2ZJU":function(e,t,n){"use strict";var i=n("1TtK"),r=n("+klR");e.exports=function(e){if((e=i(e))>r)throw new TypeError(e+" exceeds maximum possible timeout");return e}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return r});let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},"306n":function(e,t,n){"use strict";e.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else{if(!e.user||!e.repo)throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");t=`https://github.com/${e.user}/${e.repo}`}const n=new URL(`${t}/issues/new`),i=["body","title","labels","template","milestone","assignee","projects"];for(const r of i){let t=e[r];if(void 0!==t){if("labels"===r||"projects"===r){if(!Array.isArray(t))throw new TypeError(`The \`${r}\` option should be an array`);t=t.join(",")}n.searchParams.set(r,t)}}return n.toString()},e.exports.default=e.exports},"31Lz":function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s});var i=n("fXoL");class r{get electron(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}get isElectronApp(){return!!window.navigator.userAgent.match(/Electron/)}get isMacOS(){return this.isElectronApp&&"darwin"===process.platform}get isWindows(){return this.isElectronApp&&"win32"===process.platform}get isLinux(){return this.isElectronApp&&"linux"===process.platform}get isX86(){return this.isElectronApp&&"ia32"===process.arch}get isX64(){return this.isElectronApp&&"x64"===process.arch}get isArm(){return this.isElectronApp&&"arm"===process.arch}get desktopCapturer(){return this.electron?this.electron.desktopCapturer:null}get ipcRenderer(){return this.electron?this.electron.ipcRenderer:null}get remote(){return this.electron?this.electron.remote:null}get webFrame(){return this.electron?this.electron.webFrame:null}get clipboard(){return this.electron?this.electron.clipboard:null}get crashReporter(){return this.electron?this.electron.crashReporter:null}get process(){return this.remote?this.remote.process:null}get nativeImage(){return this.electron?this.electron.nativeImage:null}get screen(){return this.electron?this.remote.screen:null}get shell(){return this.electron?this.electron.shell:null}}let o=(()=>{class e extends r{constructor(){super()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),s=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},providers:[{provide:r,useClass:o}]}),e})()},"39k0":function(e,t,n){"use strict";n.d(t,"g",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"h",function(){return a}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"d",function(){return u});const i="TOGGLE_DOCS_VIEW",r="START_LOADING_DOCS",o="STOP_LOADING_DOCS",s="SET_DOC_VIEW";class a{constructor(e){this.windowId=e,this.type=i}}class c{constructor(e){this.windowId=e,this.type=r}}class l{constructor(e){this.windowId=e,this.type=o}}class u{constructor(e,t){this.windowId=e,this.payload=t,this.type=s}}},"3HNt":function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n("EkS5"),r=n("1QEH"),o=n("rWdj"),s=n("2C6G"),a=n("das/"),c=n("/kEc"),l=n("zpYP"),u=n("/jXB"),h=n("19Hc"),d=n("axIb");function p(e,t){if(Object(d.L)(t)){var n=p(e,t.ofType);return n&&n.kind===u.a.NULL?null:n}if(null===e)return{kind:u.a.NULL};if(Object(c.a)(e))return null;if(Object(d.J)(t)){var g=t.ofType;if(Object(i.e)(e)){var m=[];return Object(i.b)(e,function(e){var t=p(e,g);t&&m.push(t)}),{kind:u.a.LIST,values:m}}return p(e,g)}if(Object(d.F)(t)){if(!Object(l.a)(e))return null;for(var b=[],v=0,y=Object(r.a)(t.getFields());vu),multi:!0};let u=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.G),i.Qb(i.l))},e.\u0275dir=i.Lb({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&i.dc("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[i.Db([l])]}),e})();const h={provide:c,useExisting:Object(i.W)(()=>p),multi:!0},d=new i.s("CompositionEventMode");let p=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(r.F)()?Object(r.F)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.G),i.Qb(i.l),i.Qb(d,8))},e.\u0275dir=i.Lb({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&i.dc("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[i.Db([h])]}),e})();function f(e){return null==e||0===e.length}function g(e){return null!=e&&"number"==typeof e.length}const m=new i.s("NgValidators"),b=new i.s("NgAsyncValidators"),v=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class y{static min(e){return t=>{if(f(t.value)||f(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(f(t.value)||f(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return f(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return f(e.value)||v.test(e.value)?null:{email:!0}}static minLength(e){return t=>f(t.value)||!g(t.value)?null:t.value.lengthg(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}static pattern(e){if(!e)return y.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(f(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(w);return 0==t.length?null:function(e){return O(C(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(w);return 0==t.length?null:function(e){const n=C(e,t).map(_);return Object(o.a)(n).pipe(Object(a.a)(O))}}}function w(e){return null!=e}function _(e){const t=Object(i.vb)(e)?Object(s.a)(e):e;return Object(i.ub)(t),t}function O(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function C(e,t){return t.map(t=>t(e))}function E(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function S(e){return null!=e?y.compose(E(e)):null}function T(e){return null!=e?y.composeAsync(E(e)):null}function x(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function k(e){return e._rawValidators}function I(e){return e._rawAsyncValidators}let D=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=S(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=T(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Lb({type:e}),e})(),z=(()=>{class e extends D{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return j(t||e)},e.\u0275dir=i.Lb({type:e,features:[i.Bb]}),e})();const j=i.Yb(z);class A extends D{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class R{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}let N=(()=>{class e extends R{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(A,2))},e.\u0275dir=i.Lb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Ib("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.Bb]}),e})(),L=(()=>{class e extends R{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(z,10))},e.\u0275dir=i.Lb({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.Ib("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.Bb]}),e})();const M={provide:c,useExisting:Object(i.W)(()=>F),multi:!0};let F=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.G),i.Qb(i.l))},e.\u0275dir=i.Lb({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.dc("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[i.Db([M])]}),e})();const P={provide:c,useExisting:Object(i.W)(()=>G),multi:!0};let V=(()=>{class e{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),G=(()=>{class e{constructor(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(A),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.G),i.Qb(i.l),i.Qb(V),i.Qb(i.t))},e.\u0275dir=i.Lb({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&i.dc("change",function(){return t.onChange()})("blur",function(){return t.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Db([P])]}),e})();const B={provide:c,useExisting:Object(i.W)(()=>W),multi:!0};let W=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.G),i.Qb(i.l))},e.\u0275dir=i.Lb({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&i.dc("change",function(e){return t.onChange(e.target.value)})("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[i.Db([B])]}),e})();const $={provide:c,useExisting:Object(i.W)(()=>U),multi:!0};let U=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.G),i.Qb(i.l))},e.\u0275dir=i.Lb({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&i.dc("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Db([$])]}),e})();const H={provide:c,useExisting:Object(i.W)(()=>q),multi:!0};let q=(()=>{class e{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ee(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ee(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function X(e,t,n=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Z(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Y(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function J(e,t,n){const i=k(e);null!==t.validator?e.setValidators(x(i,t.validator)):"function"==typeof i&&e.setValidators([i]);const r=I(e);if(null!==t.asyncValidator?e.setAsyncValidators(x(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){const n=()=>e.updateValueAndValidity();Y(t._rawValidators,n),Y(t._rawAsyncValidators,n)}}function Z(e,t,n){let i=!1;if(null!==e){if(null!==t.validator){const n=k(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.validator);r.length!==n.length&&(i=!0,e.setValidators(r))}}if(null!==t.asyncValidator){const n=I(e);if(Array.isArray(n)&&n.length>0){const r=n.filter(e=>e!==t.asyncValidator);r.length!==n.length&&(i=!0,e.setAsyncValidators(r))}}}if(n){const e=()=>{};Y(t._rawValidators,e),Y(t._rawAsyncValidators,e)}return i}function ee(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function te(e,t){J(e,t,!1)}function ne(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}const ie=[u,W,F,U,q,G];function re(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function oe(e,t){if(!t)return null;let n,i,r;return Array.isArray(t),t.forEach(e=>{var t;e.constructor===p?n=e:(t=e,ie.some(e=>t.constructor===e)?i=e:r=e)}),r||i||n||null}function se(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ae(e){return(he(e)?e.validators:e)||null}function ce(e){return Array.isArray(e)?S(e):e||null}function le(e,t){return(he(t)?t.asyncValidators:e)||null}function ue(e){return Array.isArray(e)?T(e):e||null}function he(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class de{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=ce(this._rawValidators),this._composedAsyncValidatorFn=ue(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=ce(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=ue(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const t=_(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;let i=e;return t.forEach(e=>{i=i instanceof fe?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof ge&&i.at(e)||null}),i}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new i.n,this.statusChanges=new i.n}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){he(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class pe extends de{constructor(e=null,t,n){super(ae(t),le(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){se(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){se(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class fe extends de{constructor(e,t,n){super(ae(t),le(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof pe?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class ge extends de{constructor(e,t,n){super(ae(t),le(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof pe?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const me={provide:z,useExisting:Object(i.W)(()=>ve)},be=(()=>Promise.resolve(null))();let ve=(()=>{class e extends z{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.n,this.form=new fe({},S(e),T(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){be.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),K(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){be.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),se(this._directives,e)})}addFormGroup(e){be.then(()=>{const t=this._findContainer(e.path),n=new fe({});te(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){be.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){be.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,re(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(m,10),i.Qb(b,10))},e.\u0275dir=i.Lb({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.dc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Db([me]),i.Bb]}),e})(),ye=(()=>{class e extends z{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return e.\u0275fac=function(t){return we(t||e)},e.\u0275dir=i.Lb({type:e,features:[i.Bb]}),e})();const we=i.Yb(ye),_e={provide:A,useExisting:Object(i.W)(()=>Ce)},Oe=(()=>Promise.resolve(null))();let Ce=(()=>{class e extends A{constructor(e,t,n,r){super(),this.control=new pe,this._registered=!1,this.update=new i.n,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=oe(0,r)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),ne(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Q(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){K(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Oe.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Oe.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(z,9),i.Qb(m,10),i.Qb(b,10),i.Qb(c,10))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Db([_e]),i.Bb,i.Cb]}),e})(),Ee=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Lb({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const Se=new i.s("NgModelWithFormControlWarning"),Te={provide:A,useExisting:Object(i.W)(()=>xe)};let xe=(()=>{class e extends A{constructor(e,t,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.n,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=oe(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&X(t,this,!1),K(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ne(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&X(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(m,10),i.Qb(b,10),i.Qb(c,10),i.Qb(Se,8))},e.\u0275dir=i.Lb({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Db([Te]),i.Bb,i.Cb]}),e._ngModelWarningSentOnce=!1,e})();const ke={provide:z,useExisting:Object(i.W)(()=>Ie)};let Ie=(()=>{class e extends z{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.n,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return K(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){X(e.control||null,e,!1),se(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,re(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(X(e.control||null,e),t&&K(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);te(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return Z(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){J(this.form,this,!1),this._oldForm&&Z(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(m,10),i.Qb(b,10))},e.\u0275dir=i.Lb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.dc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Db([ke]),i.Bb,i.Cb]}),e})();const De={provide:z,useExisting:Object(i.W)(()=>ze)};let ze=(()=>{class e extends ye{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Re(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(z,13),i.Qb(m,10),i.Qb(b,10))},e.\u0275dir=i.Lb({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.Db([De]),i.Bb]}),e})();const je={provide:z,useExisting:Object(i.W)(()=>Ae)};let Ae=(()=>{class e extends z{constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Re(this._parent)}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(z,13),i.Qb(m,10),i.Qb(b,10))},e.\u0275dir=i.Lb({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.Db([je]),i.Bb]}),e})();function Re(e){return!(e instanceof ze||e instanceof Ie||e instanceof Ae)}const Ne={provide:A,useExisting:Object(i.W)(()=>Le)};let Le=(()=>{class e extends A{constructor(e,t,n,r,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new i.n,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=oe(0,r)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),ne(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(z,13),i.Qb(m,10),i.Qb(b,10),i.Qb(c,10),i.Qb(Se,8))},e.\u0275dir=i.Lb({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Db([Ne]),i.Bb,i.Cb]}),e._ngModelWarningSentOnce=!1,e})(),Me=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)}}),e})(),Fe=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},providers:[V],imports:[Me]}),e})()},"3UWI":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("D0XW"),r=n("zx2A");class o{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new s(e,this.durationSelector))}}class s extends r.b{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const i=Object(r.c)(n,new r.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("PqYM");function c(e,t=i.a){return n=()=>Object(a.a)(e,t),function(e){return e.lift(new o(n))};var n}},"4D8k":function(e,t,n){"use strict";var i=n("9Qh4"),r=n("fEpb").Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:i("",r&&r.hasInstance||e("hasInstance")),isConcatSpreadable:i("",r&&r.isConcatSpreadable||e("isConcatSpreadable")),iterator:i("",r&&r.iterator||e("iterator")),match:i("",r&&r.match||e("match")),replace:i("",r&&r.replace||e("replace")),search:i("",r&&r.search||e("search")),species:i("",r&&r.species||e("species")),split:i("",r&&r.split||e("split")),toPrimitive:i("",r&&r.toPrimitive||e("toPrimitive")),toStringTag:i("",r&&r.toStringTag||e("toStringTag")),unscopables:i("",r&&r.unscopables||e("unscopables"))})}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},"4MG8":function(e,t,n){const i=n("T9Ld"),r=n("66f7"),o=n("SbYC"),s=n("+/fp"),a=n("hyX7"),c=n("J7Ao"),{merge:l,checkSanitizeDeprecation:u,escape:h}=n("rUJ1"),{getDefaults:d,changeDefaults:p,defaults:f}=n("vbtb");function g(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),t=l({},g.defaults,t||{}),u(t);const s=t.highlight;let a,c,h=0;try{a=i.lex(e,t)}catch(o){return n(o)}c=a.length;const d=function(e){if(e)return t.highlight=s,n(e);let i;try{i=r.parse(a,t)}catch(o){e=o}return t.highlight=s,e?n(e):n(null,i)};if(!s||s.length<3)return d();if(delete t.highlight,!c)return d();for(;hAn error occurred:

"+h(o.message+"",!0)+"
";throw o}}g.options=g.setOptions=function(e){return l(g.defaults,e),p(g.defaults),g},g.getDefaults=d,g.defaults=f,g.Parser=r,g.parser=r.parse,g.Renderer=o,g.TextRenderer=s,g.Lexer=i,g.lexer=i.lex,g.InlineLexer=a,g.inlineLexer=a.output,g.Slugger=c,g.parse=g,e.exports=g},"4RMZ":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("1/U3"),r=n("/jXB"),o=n("axIb"),s=n("LViu"),a=n("umOc"),c=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t||l,n&&(Object(o.G)(n)&&this._inputTypeStack.push(n),Object(o.D)(n)&&this._parentTypeStack.push(n),Object(o.O)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case r.a.SELECTION_SET:var n=Object(o.A)(this.getType());this._parentTypeStack.push(Object(o.D)(n)?n:void 0);break;case r.a.FIELD:var s,c,l=this.getParentType();l&&(s=this._getFieldDef(t,l,e))&&(c=s.type),this._fieldDefStack.push(s),this._typeStack.push(Object(o.O)(c)?c:void 0);break;case r.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case r.a.OPERATION_DEFINITION:var u;"query"===e.operation?u=t.getQueryType():"mutation"===e.operation?u=t.getMutationType():"subscription"===e.operation&&(u=t.getSubscriptionType()),this._typeStack.push(Object(o.N)(u)?u:void 0);break;case r.a.INLINE_FRAGMENT:case r.a.FRAGMENT_DEFINITION:var h=e.typeCondition,d=h?Object(a.a)(t,h):Object(o.A)(this.getType());this._typeStack.push(Object(o.O)(d)?d:void 0);break;case r.a.VARIABLE_DEFINITION:var p=Object(a.a)(t,e.type);this._inputTypeStack.push(Object(o.G)(p)?p:void 0);break;case r.a.ARGUMENT:var f,g,m=this.getDirective()||this.getFieldDef();m&&(f=Object(i.a)(m.args,function(t){return t.name===e.name.value}))&&(g=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(Object(o.G)(g)?g:void 0);break;case r.a.LIST:var b=Object(o.B)(this.getInputType()),v=Object(o.J)(b)?b.ofType:b;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(o.G)(v)?v:void 0);break;case r.a.OBJECT_FIELD:var y,w,_=Object(o.A)(this.getInputType());Object(o.F)(_)&&(w=_.getFields()[e.name.value])&&(y=w.type),this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push(Object(o.G)(y)?y:void 0);break;case r.a.ENUM:var O,C=Object(o.A)(this.getInputType());Object(o.E)(C)&&(O=C.getValue(e.value)),this._enumValue=O}},t.leave=function(e){switch(e.kind){case r.a.SELECTION_SET:this._parentTypeStack.pop();break;case r.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case r.a.DIRECTIVE:this._directive=null;break;case r.a.OPERATION_DEFINITION:case r.a.INLINE_FRAGMENT:case r.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case r.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case r.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.a.LIST:case r.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.a.ENUM:this._enumValue=null}},e}();function l(e,t,n){var i=n.name.value;return i===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:i===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:i===s.TypeNameMetaFieldDef.name&&Object(o.D)(t)?s.TypeNameMetaFieldDef:Object(o.N)(t)||Object(o.H)(t)?t.getFields()[i]:void 0}},"4fRq":function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);e.exports=function(){return n(i),i}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},"4suF":function(e,t,n){"use strict";n.d(t,"g",function(){return f}),n.d(t,"f",function(){return g}),n.d(t,"c",function(){return m}),n.d(t,"d",function(){return b}),n.d(t,"e",function(){return v}),n.d(t,"a",function(){return y}),n.d(t,"b",function(){return w}),n.d(t,"i",function(){return _}),n.d(t,"h",function(){return O});var i=n("Y/la"),r=n("rWdj"),o=n("E9SJ"),s=n("t3R0"),a=n("Mw0p"),c=n("vJkw"),l=n("zpYP"),u=n("ZZnB"),h=n("F8X2"),d=n("19Hc"),p=n("axIb");function f(e){return Object(a.a)(e,m)}function g(e){if(!f(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL directive."));return e}var m=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=e.isRepeatable&&e.isRepeatable,this.extensions=e.extensions&&Object(o.a)(e.extensions),this.astNode=e.astNode,e.name||Object(s.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(s.a)(0,"@".concat(e.name," locations must be an Array."));var t=e.args||{};Object(l.a)(t)&&!Array.isArray(t)||Object(s.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(i.a)(t).map(function(e){var t=e[1];return{name:e[0],description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(o.a)(t.extensions),astNode:t.astNode}})}var t=e.prototype;return t.toString=function(){return"@"+this.name},t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Object(p.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e}();Object(u.a)(m),Object(c.a)(m);var b=new m({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[h.a.FIELD,h.a.FRAGMENT_SPREAD,h.a.INLINE_FRAGMENT],args:{if:{type:Object(p.e)(d.a),description:"Included when true."}}}),v=new m({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[h.a.FIELD,h.a.FRAGMENT_SPREAD,h.a.INLINE_FRAGMENT],args:{if:{type:Object(p.e)(d.a),description:"Skipped when true."}}}),y="No longer supported",w=new m({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[h.a.FIELD_DEFINITION,h.a.ENUM_VALUE],args:{reason:{type:d.e,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:y}}}),_=Object.freeze([b,v,w]);function O(e){return f(e)&&_.some(function(t){return t.name===e.name})}},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("lJxs"),r=n("Cfvw"),o=n("zx2A");function s(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?o=>o.pipe(s((n,o)=>Object(r.a)(e(n,o)).pipe(Object(i.a)((e,i)=>t(n,e,o,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}class c extends o.b{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(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51nL":function(e,t,n){"use strict";n.d(t,"c",function(){return f}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return m});var i=n("1/U3"),r=n("1QEH"),o=n("rWdj"),s=n("E9SJ"),a=n("t3R0"),c=n("Mw0p"),l=n("zpYP"),u=n("ZZnB"),h=n("LViu"),d=n("4suF"),p=n("axIb");function f(e){return Object(c.a)(e,m)}function g(e){if(!f(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL schema."));return e}var m=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,Object(l.a)(e)||Object(a.a)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(a.a)(0,'"types" must be Array if provided but got: '.concat(Object(o.a)(e.types),".")),!e.directives||Array.isArray(e.directives)||Object(a.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(o.a)(e.directives),".")),!e.allowedLegacyNames||Array.isArray(e.allowedLegacyNames)||Object(a.a)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat(Object(o.a)(e.allowedLegacyNames),"."))),this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||d.i;var t=[this._queryType,this._mutationType,this._subscriptionType,h.__Schema].concat(e.types),n=Object.create(null);n=t.reduce(b,n),n=this._directives.reduce(v,n),this._typeMap=n,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);for(var i=0,c=Object(r.a)(this._typeMap);i1&&"_"===e[0]&&"_"===e[1]?new r.a('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'),t):o.test(e)?void 0:new r.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),t)}},"5XwX":function(e,t,n){"use strict";n.d(t,"c",function(){return f}),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return m});var i=n("1/U3"),r=n("kBjl"),o=n("rWdj"),s=n("tzQD"),a=n("dWS+"),c=n("/jXB"),l=n("dQau"),u=n("axIb"),h=n("umOc"),d=n("Mbdf"),p=n("67eP");function f(e,t,n,i){var r=i&&i.maxErrors,c=[];try{var f=function(e,t,n,i){for(var r={},c=function(c){var f=t[c],g=f.variable.name.value,m=Object(h.a)(e,f.type);if(!Object(u.G)(m)){var v=Object(l.print)(f.type);return i(new a.a('Variable "$'.concat(g,'" expected value of type "').concat(v,'" which cannot be used as an input type.'),f.type)),"continue"}if(!b(n,g)){if(f.defaultValue)r[g]=Object(d.a)(f.defaultValue,m);else if(Object(u.L)(m)){var y=Object(o.a)(m);i(new a.a('Variable "$'.concat(g,'" of required type "').concat(y,'" was not provided.'),f))}return"continue"}var w=n[g];if(null===w&&Object(u.L)(m)){var _=Object(o.a)(m);return i(new a.a('Variable "$'.concat(g,'" of non-null type "').concat(_,'" must not be null.'),f)),"continue"}r[g]=Object(p.a)(w,m,function(e,t,n){var r='Variable "$'.concat(g,'" got invalid value ')+Object(o.a)(t);e.length>0&&(r+=' at "'.concat(g).concat(Object(s.a)(e),'"')),i(new a.a(r+"; "+n.message,f,void 0,void 0,void 0,n.originalError))})},f=0;f=r)throw new a.a("Too many errors processing variables, error limit reached. Execution aborted.");c.push(e)});if(0===c.length)return{coerced:f}}catch(g){c.push(g)}return{errors:c}}function g(e,t,n){for(var i={},s=Object(r.a)(t.arguments||[],function(e){return e.name.value}),h=0,p=e.args;h{if(n.timeRemaining()){try{return window.cancelIdleCallback(this.setItemHandles[e]),this.setItemHandles[e]=void 0,this.storage.setItem(e,t)}catch(i){["QuotaExceededError","NS_ERROR_DOM_QUOTA_REACHED"].includes(i.name)}return this.storage.setItem(e,t)}})}}const o={keys:["windows","windowsMeta","settings","environments"],rehydrate:!0,storage:new r,restoreDates:!1,storageKeySerializer:e=>`${Object(i.b)().initialData.instanceStorageNamespace||"altair_"}${e}`}},"66f7":function(e,t,n){const i=n("SbYC"),r=n("J7Ao"),o=n("hyX7"),s=n("+/fp"),{defaults:a}=n("vbtb"),{merge:c,unescape:l}=n("rUJ1");e.exports=class e{constructor(e){this.tokens=[],this.token=null,this.options=e||a,this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new r}static parse(t,n){return new e(n).parse(t)}parse(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,c({},this.options,{renderer:new s})),this.tokens=e.reverse();let t="";for(;this.next();)t+=this.tok();return t}next(){return this.token=this.tokens.pop(),this.token}peek(){return this.tokens[this.tokens.length-1]||0}parseText(){let e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)}tok(){let e="";switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,l(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{let t,n,i,r,o="";for(i="",t=0;t2&&void 0!==arguments[2]?arguments[2]:g;return m(e,t,n)}function g(e,t,n){var i="Invalid value "+Object(o.a)(t);throw e.length>0&&(i+=' at "value'.concat(Object(u.a)(e),'": ')),n.message=i+": "+n.message,n}function m(e,t,n,u){if(Object(p.L)(t))return null!=e?m(e,t.ofType,n,u):void n(Object(h.b)(u),e,new d.a("Expected non-nullable type ".concat(Object(o.a)(t)," not to be null.")));if(null==e)return null;if(Object(p.J)(t)){var f=t.ofType;if(Object(i.e)(e)){var g=[];return Object(i.b)(e,function(e,t){g.push(m(e,f,n,Object(h.a)(u,t)))}),g}return[m(e,f,n,u)]}if(Object(p.F)(t)){if(!Object(c.a)(e))return void n(Object(h.b)(u),e,new d.a("Expected type ".concat(t.name," to be an object.")));for(var b={},v=t.getFields(),y=0,w=Object(r.a)(v);ylocalStorage.getItem("altair__debug_current_version");c()&&c()!==a.a.version?(localStorage.setItem("altair__debug_previous_version",c()),localStorage.setItem("altair__debug_current_version",a.a.version)):localStorage.setItem("altair__debug_current_version",c()),Object.defineProperty(window,"__ENABLE_DEBUG_MODE__",{get:()=>window._ALTAIR__ENABLE_DEBUG_MODE__,set(e){e&&(console.group("\u2699\ufe0f\ud83d\udee0Altair Debug Information"),console.log("Previous version:",localStorage.getItem("altair__debug_previous_version")),console.log("Current version:",c()),console.groupEnd(),r.a.setLevel("TRACE")),window._ALTAIR__ENABLE_DEBUG_MODE__=e}}),Object.defineProperty({log:(...e)=>console.log(...e),error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e)},"log",{get:()=>!a.a.production||window.__ENABLE_DEBUG_MODE__?console.log.bind(console):()=>{}})},"6VjI":function(e,t,n){var i={"./Range.js":"VWUu","./file.js":"8O83","./getASTNodeAtPosition.js":"gI7C","./index.js":"HmyC","./validateWithCustomRules.js":"qvY7"};function r(e){return Promise.resolve().then(function(){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(i[e])})}r.keys=function(){return Object.keys(i)},r.id="6VjI",e.exports=r},"6b34":function(e,t,n){"use strict";var i=Object.prototype.toString,r=i.call(function(){return arguments}());e.exports=function(e){return i.call(e)===r}},"6neD":function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});const i="\n# Welcome to Altair GraphQL Client.\n# You can send your request using CmdOrCtrl + Enter.\n\n# Enter your graphQL query here.\n".trimStart();var r=n("U7fl"),o=n("nTiS"),s=n("BGZm"),a=n("1tsg");const c=()=>{const e=Object(o.b)();return{url:Object(s.e)(e.initialData.url?""+e.initialData.url:""),subscriptionUrl:e.initialData.subscriptionsEndpoint?""+e.initialData.subscriptionsEndpoint:"",query:e.initialData.query?""+e.initialData.query:i,selectedOperation:null,operations:[],httpVerb:"POST",response:null,responseTime:0,responseStatus:0,responseStatusText:"",responseHeaders:{},showUrlAlert:!1,urlAlertMessage:"URL has been set",urlAlertSuccess:!0,showEditorAlert:!1,editorAlertMessage:"Query is set",editorAlertSuccess:!0,subscriptionClient:null,subscriptionConnectionParams:"{}",subscriptionProviderId:a.b,isSubscribed:!1,subscriptionResponseList:[],autoscrollSubscriptionResponse:!1,queryEditorState:{isFocused:!1}}};function l(e=c(),t){switch(t.type){case r.t:case r.v:return Object.assign({},e,{query:t.payload||""});case r.G:case r.H:return Object.assign({},e,{url:t.payload.url});case r.F:return Object.assign({},e,{subscriptionUrl:t.payload.subscriptionUrl});case r.x:return Object.assign({},e,{response:t.payload});case r.y:return{...e,responseHeaders:t.payload.headers};case r.A:return Object.assign({},e,{selectedOperation:t.payload.selectedOperation});case r.z:return Object.assign({},e,{responseTime:t.payload.responseTime,responseStatus:t.payload.responseStatus,responseStatusText:t.payload.responseStatusText});case r.I:return Object.assign({},e,{isSubscribed:!0});case r.J:return Object.assign({},e,{isSubscribed:!1});case r.C:return{...e,subscriptionConnectionParams:t.payload.connectionParams};case r.D:return{...e,subscriptionProviderId:t.payload.providerId};case r.B:return Object.assign({},e,{subscriptionClient:t.payload.subscriptionClient});case r.a:return Object.assign({},e,{subscriptionResponseList:[...e.subscriptionResponseList,{response:t.payload.response,responseTime:t.payload.responseTime,responseObj:t.payload.responseObj}]});case r.E:return Object.assign({},e,{subscriptionResponseList:t.payload.list});case r.cb:return{...e,autoscrollSubscriptionResponse:!e.autoscrollSubscriptionResponse};case r.s:return Object.assign({},e,{httpVerb:t.payload.httpVerb});case r.w:return Object.assign({},e,{operations:t.payload.operations});case r.u:return{...e,queryEditorState:t.payload};default:return e}}},"7+OI":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},"73r6":function(e,t,n){"use strict";e.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},"79xS":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return l});var i=n("fXoL"),r=n("OySI");const o={},s="[NG-ZORRO]:";function a(e,...t){(r.a.isTestMode||Object(i.Y)()&&function(...e){const t=e.reduce((e,t)=>e+t.toString(),"");return!o[t]&&(o[t]=!0,!0)}(...t))&&e(...t)}const c=(...e)=>a((...e)=>console.warn(s,...e),...e),l=(...e)=>{if(r.a.isTestMode)return()=>{};{const t=(new Error).stack;return a((...e)=>console.warn(s,"deprecated:",...e,t),...e)}}},"7Hc7":function(e,t,n){"use strict";n.d(t,"a",function(){return d});let i=1;const r=(()=>Promise.resolve())(),o={};function s(e){return e in o&&(delete o[e],!0)}const a={setImmediate(e){const t=i++;return o[t]=!0,r.then(()=>s(t)&&e()),t},clearImmediate(e){s(e)}};var c=n("3N8a");class l extends c.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=a.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(a.clearImmediate(t),e.scheduled=void 0)}}var u=n("IjjT");class h extends u.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++ithis._complete.call(this._context);a.a.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(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(c.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"86bp":function(e,t,n){"use strict";var i=n("YsTz"),r=Array.prototype.forEach,o=Object.create,s=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=o(null);return r.call(arguments,function(e){i(e)&&s(Object(e),t)}),t}},"8LU1":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return o});var i=n("fXoL");function r(e){return null!=e&&"false"!=`${e}`}function o(e,t=0){return s(e)?Number(e):t}function s(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function a(e){return Array.isArray(e)?e:[e]}function c(e){return null==e?"":"string"==typeof e?e:`${e}px`}function l(e){return e instanceof i.l?e.nativeElement:e}},"8O83":function(e,t,n){"use strict";function i(e){const t=/^.+\.([^.]+)$/.exec(e);return t&&t.length>1?t[1]:null}function r(e,t){let n=e;return t&&(n=e.substr(0,e.length-(t.length+1))),n}function o(e){if(e)throw Error(`cannot import() module with extension '${e}'`)}n.r(t),n.d(t,"getFileExtension",function(){return i}),n.d(t,"getPathWithoutExtension",function(){return r}),n.d(t,"resolveFile",function(){return u}),n.d(t,"requireFile",function(){return h});const s=e=>n("Lxz9").resolve(e+".js"),a=e=>n("FBZJ").resolve(e+".json"),c=e=>n("6VjI")(e+".js"),l=e=>n("3PdN")(e+".json");function u(e){const t=i(e),n=r(e,t);switch(t){case"js":return s(n);case"json":return a(n);default:try{return s(e)}catch(o){return a(e)}}}function h(e){const t=i(e),n=r(e,t);switch(t){case"js":return u(n+".js")?c(n):null;case"json":return u(n+".json")?l(n):null;default:try{if(u(e+".js"))return c(e)}catch(s){o(t)}if(u(e+".json"))return l(e);o(t)}}},"8Ur0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue,type:(0,i.getNamedType)(e.inputType)}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}};var i=n("Tzvz");function r(e){return"__"===e.name.slice(0,2)}},"8j7D":function(e,t,n){"use strict";var i=n("9Qh4"),r=n("ZI+j"),o=Object.create,s=Object.defineProperties;r.refCounter=function(e,t,n){var a,c;a=o(null),t.on("set"+(c=n.async&&r.async||n.promise&&r.promise?"async":""),function(e,t){a[e]=t||1}),t.on("get"+c,function(e){++a[e]}),t.on("delete"+c,function(e){delete a[e]}),t.on("clear"+c,function(){a={}}),s(t.memoized,{deleteRef:i(function(){var e=t.get(arguments);return null===e?null:a[e]?!--a[e]&&(t.delete(e),!0):null}),getRefCount:i(function(){var e=t.get(arguments);return null===e?0:a[e]?a[e]:0})})}},"8mtn":function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return l});var i=n("mrSG"),r=n("fXoL");const o=["*"];class s{constructor(e){this.icons=e}}let a=(()=>{let e=class{constructor(e,t,n){this.elem=e,this.changeDetector=t,this.icons=n}ngOnChanges(e){const t=Object.assign({},...this.icons)[(n=e.name.currentValue,n.toLowerCase().replace(/(?:^\w|[A-Z]|\b\w)/g,e=>e.toUpperCase()).replace(/[-_]/g,""))]||"";var n;t||console.warn(`Icon not found: ${e.name.currentValue}\nRefer to documentation on https://github.com/michaelbazos/angular-feather`),this.elem.nativeElement.innerHTML=t,this.changeDetector.markForCheck()}};return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.h),r.Qb(s))},e.\u0275cmp=r.Kb({type:e,selectors:[["i-feather"],["feather-icon"]],inputs:{name:"name"},features:[r.Cb],ngContentSelectors:o,decls:2,vars:0,template:function(e,t){1&e&&(r.lc(),r.kc(0),r.Gc(1,"\n"))},styles:["[_nghost-%COMP%]{display:inline-block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}"]}),e=Object(i.b)([Object(i.d)(0,Object(r.q)(r.l)),Object(i.d)(1,Object(r.q)(r.h)),Object(i.d)(2,Object(r.q)(s))],e),e})();var c;let l=(()=>{let e=c=class{constructor(e){if(this.icons=e,!this.icons)throw new Error("No icon provided. Make sure to use 'FeatherModule.pick({ ... })' when importing the module\nRefer to documentation on https://github.com/michaelbazos/angular-feather")}static pick(e){return{ngModule:c,providers:[{provide:s,multi:!0,useValue:e}]}}};return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)(r.ac(s,8))}}),e=c=Object(i.b)([Object(i.d)(0,Object(r.C)())],e),e})()},"93gR":function(e,t,n){"use strict";n.d(t,"b",function(){return g}),n.d(t,"a",function(){return m});var i=n("1/U3"),r=n("PXbX"),o=n("1QEH"),s=n("Y/la"),a=n("rWdj"),c=n("dWS+"),l=n("5PMP"),u=n("sJV+"),h=n("4suF"),d=n("LViu"),p=n("51nL"),f=n("axIb");function g(e){if(Object(p.b)(e),e.__validationErrors)return e.__validationErrors;var t=new b(e);!function(e){var t=e.schema,n=t.getQueryType();n?Object(f.N)(n)||e.reportError("Query root type must be Object type, it cannot be ".concat(Object(a.a)(n),"."),v(t,n,"query")):e.reportError("Query root type must be provided.",t.astNode);var i=t.getMutationType();i&&!Object(f.N)(i)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(Object(a.a)(i),"."),v(t,i,"mutation"));var r=t.getSubscriptionType();r&&!Object(f.N)(r)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(Object(a.a)(r),"."),v(t,r,"subscription"))}(t),function(e){for(var t=0,n=e.schema.getDirectives();t{const n=e.getCursor(),a=e.getTokenAt(n),c=function(e,t,n){const i="Invalid"===t.state.kind?t.state.prevState:t.state,a=i.kind,c=i.step;if("Document"===a&&0===c)return(0,s.default)(e,t,[{text:"{"}]);const l=n.variableToType;if(!l)return;const u=function(e,t){const n={type:null,fields:null};return(0,o.default)(t,t=>{if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){const e=(0,r.getNullableType)(n.type);n.type=e instanceof r.GraphQLList?e.ofType:null}else if("ObjectValue"===t.kind){const e=(0,r.getNamedType)(n.type);n.fields=e instanceof r.GraphQLInputObjectType?e.getFields():null}else if("ObjectField"===t.kind){const e=t.name&&n.fields?n.fields[t.name]:null;n.type=e&&e.type}}),n}(l,t.state);if("Document"===a||"Variable"===a&&0===c){const n=Object.keys(l);return(0,s.default)(e,t,n.map(e=>({text:`"${e}": `,type:l[e]})))}if(("ObjectValue"===a||"ObjectField"===a&&0===c)&&u.fields){const n=Object.keys(u.fields).map(e=>u.fields[e]);return(0,s.default)(e,t,n.map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})))}if("StringValue"===a||"NumberValue"===a||"BooleanValue"===a||"NullValue"===a||"ListValue"===a&&1===c||"ObjectField"===a&&2===c||"Variable"===a&&2===c){const n=(0,r.getNamedType)(u.type);if(n instanceof r.GraphQLInputObjectType)return(0,s.default)(e,t,[{text:"{"}]);if(n instanceof r.GraphQLEnumType){const i=n.getValues(),r=Object.keys(i).map(e=>i[e]);return(0,s.default)(e,t,r.map(e=>({text:`"${e.name}"`,type:n,description:e.description})))}if(n===r.GraphQLBoolean)return(0,s.default)(e,t,[{text:"true",type:r.GraphQLBoolean,description:"Not false."},{text:"false",type:r.GraphQLBoolean,description:"Not true."}])}}(n,a,t);return c&&c.list&&c.list.length>0&&(c.from=i.default.Pos(c.from.line,c.from.column),c.to=i.default.Pos(c.to.line,c.to.column),i.default.signal(e,"hasCompletion",e,c,a)),c})},"9Oho":function(e,t,n){"use strict";n.d(t,"h",function(){return i}),n.d(t,"g",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"p",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"o",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"l",function(){return h}),n.d(t,"j",function(){return d}),n.d(t,"i",function(){return p}),n.d(t,"d",function(){return f}),n.d(t,"e",function(){return g}),n.d(t,"m",function(){return m}),n.d(t,"q",function(){return b}),n.d(t,"f",function(){return v}),n.d(t,"n",function(){return y});const i="PUSH_CLOSED_WINDOW_TO_LOCAL",r="POP_FROM_CLOSED_WINDOWS",o="ADD_INSTALLED_PLUGIN_ENTRY",s="SET_PLUGIN_ACTIVE",a="ADD_PANEL",c="REMOVE_PANEL",l="SET_PANEL_ACTIVE",u="ADD_UI_ACTION",h="REMOVE_UI_ACTION";class d{constructor(e){this.payload=e,this.type=i}}class p{constructor(){this.type=r}}class f{constructor(e){this.payload=e,this.type=o}}class g{constructor(e){this.payload=e,this.type=a}}class m{constructor(e){this.payload=e,this.type=c}}class b{constructor(e){this.payload=e,this.type=l}}class v{constructor(e){this.payload=e,this.type=u}}class y{constructor(e){this.payload=e,this.type=h}}},"9Qh4":function(e,t,n){"use strict";var i=n("k2qM"),r=n("F5Mc"),o=n("IDEf"),s=n("86bp"),a=n("+XMV");(e.exports=function(e,t){var n,r,c,l,u;return arguments.length<2||"string"!=typeof e?(l=t,t=e,e=null):l=arguments[2],i(e)?(n=a.call(e,"c"),r=a.call(e,"e"),c=a.call(e,"w")):(n=c=!0,r=!1),u={value:t,configurable:n,enumerable:r,writable:c},l?o(s(l),u):u}).gs=function(e,t,n){var c,l,u,h;return"string"!=typeof e?(u=n,n=t,t=e,e=null):u=arguments[3],i(t)?r(t)?i(n)?r(n)||(u=n,n=void 0):n=void 0:(u=t,t=n=void 0):t=void 0,i(e)?(c=a.call(e,"c"),l=a.call(e,"e")):(c=!0,l=!1),h={get:t,set:n,configurable:c,enumerable:l},u?o(s(u),h):h}},"9g66":function(e,t,n){"use strict";var i=n("e989"),r=n("lq5y"),o=Math.max;e.exports=function(e,t){var n,s,a,c=o(arguments.length,2);for(e=Object(r(e)),a=function(i){try{e[i]=t[i]}catch(r){n||(n=r)}},s=1;sr.lift(new v(e,t,n,i))}class v{constructor(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}call(e,t){return t.subscribe(new y(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class y extends c.a{constructor(e,t,n,i,r){super(e),this.keySelector=t,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(e){let t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}_group(e,t){let n=this.groups;n||(n=this.groups=new Map);let i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(o){this.error(o)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new s.a,n.set(t,r);const e=new _(t,r,this);if(this.destination.next(e),this.durationSelector){let e;try{e=this.durationSelector(new _(t,r))}catch(o){return void this.error(o)}this.add(e.subscribe(new w(t,r,this)))}}r.closed||r.next(i)}_error(e){const t=this.groups;t&&(t.forEach((t,n)=>{t.error(e)}),t.clear()),this.destination.error(e)}_complete(){const e=this.groups;e&&(e.forEach((e,t)=>{e.complete()}),e.clear()),this.destination.complete()}removeGroup(e){this.groups.delete(e)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class w extends c.a{constructor(e,t,n){super(t),this.key=e,this.group=t,this.parent=n}_next(e){this.complete()}_unsubscribe(){const{parent:e,key:t}=this;this.key=this.parent=null,e&&e.removeGroup(t)}}class _ extends o.a{constructor(e,t,n){super(),this.key=e,this.groupSubject=t,this.refCountSubscription=n}_subscribe(e){const t=new m.a,{refCountSubscription:n,groupSubject:i}=this;return n&&!n.closed&&t.add(new O(n)),t.add(i.subscribe(e)),t}}class O extends m.a{constructor(e){super(),this.parent=e,e.count++}unsubscribe(){const e=this.parent;e.closed||this.closed||(super.unsubscribe(),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}var C=n("5+tZ"),E=n("Cfvw"),S=n("zx2A");function T(e,t){return t?n=>n.pipe(T((n,i)=>Object(E.a)(e(n,i)).pipe(Object(p.a)((e,r)=>t(n,e,i,r))))):t=>t.lift(new x(e))}class x{constructor(e){this.project=e}call(e,t){return t.subscribe(new k(e,this.project))}}class k extends S.b{constructor(e,t){super(e),this.project=t,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(e){this.hasSubscription||this.tryNext(e)}tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}_innerSub(e){const t=new S.a(this),n=this.destination;n.add(t);const i=Object(S.c)(e,t);i!==t&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}class I{call(e,t){return t.subscribe(new D(e))}}class D extends c.a{constructor(e){super(e)}_next(e){e.observe(this.destination)}}var z=n("IzEk"),j=(n("bOdf"),n("nYR2"),n("zp1y"),n("fXoL"));const A={dispatch:!0,useEffectsErrorHandler:!0};function R(e,t){const n=e(),i=Object.assign(Object.assign({},A),t);return Object.defineProperty(n,"__@ngrx/effects_create__",{value:i}),n}function N(e){return Object.getOwnPropertyNames(e).filter(t=>e[t]&&e[t].hasOwnProperty("__@ngrx/effects_create__")).map(t=>Object.assign({propertyName:t},e[t]["__@ngrx/effects_create__"]))}function L(e){return Object.getPrototypeOf(e)}function M(e){return Object(i.n)(F,L)(e)}function F(e){return function(e){return e.constructor.hasOwnProperty("__@ngrx/effects__")}(e)?e.constructor["__@ngrx/effects__"]:[]}function P(e,t,n=10){return e.pipe(Object(f.a)(i=>(t&&t.handleError(i),n<=1?e:P(e,t,n-1))))}let V=(()=>{class e extends o.a{constructor(e){super(),e&&(this.source=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}}return e.\u0275fac=function(t){return new(t||e)(j.ac(i.f))},e.\u0275prov=j.Mb({token:e,factory:e.\u0275fac}),e})();function G(...e){return Object(g.a)(t=>e.some(e=>"string"==typeof e?e===t.type:e.type===t.type))}function B(e){return W(e,"ngrxOnInitEffects")}function W(e,t){return e&&t in e&&"function"==typeof e[t]}const $=new j.s("@ngrx/effects Internal Root Guard"),U=new j.s("@ngrx/effects User Provided Effects"),H=new j.s("@ngrx/effects Internal Root Effects"),q=new j.s("@ngrx/effects Root Effects"),Q=new j.s("@ngrx/effects Internal Feature Effects"),K=new j.s("@ngrx/effects Feature Effects"),X=new j.s("@ngrx/effects Effects Error Handler");let Y=(()=>{class e extends s.a{constructor(e,t){super(),this.errorHandler=e,this.effectsErrorHandler=t}addEffects(e){this.next(e)}toActions(){return this.pipe(b(L),Object(C.a)(e=>e.pipe(b(J))),Object(C.a)(e=>{const t=e.pipe(T(e=>{return(t=this.errorHandler,n=this.effectsErrorHandler,e=>{const i=function(e,t,n){const i=L(e).constructor.name,o=(s=e,[M,N].reduce((e,t)=>e.concat(t(s)),[])).map(({propertyName:r,dispatch:o,useEffectsErrorHandler:s})=>{const a="function"==typeof e[r]?e[r]():e[r],c=s?n(a,t):a;return!1===o?c.pipe(function(e){return e.lift(new l)}):c.pipe(function(e){return e.lift(new h)}).pipe(Object(p.a)(t=>({effect:e[r],notification:t,propertyName:r,sourceName:i,sourceInstance:e})))});var s;return Object(r.a)(...o)}(e,t,n);return W(e,"ngrxOnRunEffects")?e.ngrxOnRunEffects(i):i})(e);var t,n}),Object(p.a)(e=>(function(e,t){if("N"===e.notification.kind){const n=e.notification.value;!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(n)&&t.handleError(new Error(`Effect ${function({propertyName:e,sourceInstance:t,sourceName:n}){const i="function"==typeof t[e];return`"${n}.${String(e)}${i?"()":""}"`}(e)} dispatched an invalid action: ${function(e){try{return JSON.stringify(e)}catch(t){return e}}(n)}`))}}(e,this.errorHandler),e.notification)),Object(g.a)(e=>"N"===e.kind&&null!=e.value),function(e){return e.lift(new I)}),n=e.pipe(Object(z.a)(1),Object(g.a)(B),Object(p.a)(e=>e.ngrxOnInitEffects()));return Object(r.a)(t,n)}))}}return e.\u0275fac=function(t){return new(t||e)(j.ac(j.m),j.ac(X))},e.\u0275prov=j.Mb({token:e,factory:e.\u0275fac}),e})();function J(e){return W(e,"ngrxOnIdentifyEffects")?e.ngrxOnIdentifyEffects():""}let Z=(()=>{class e{constructor(e,t){this.effectSources=e,this.store=t,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(j.ac(Y),j.ac(i.h))},e.\u0275prov=j.Mb({token:e,factory:e.\u0275fac}),e})();const ee="@ngrx/effects/init";Object(i.o)(ee);let te=(()=>{class e{constructor(e,t,n,i,r,o,s){this.sources=e,t.start(),i.forEach(t=>e.addEffects(t)),n.dispatch({type:ee})}addEffects(e){this.sources.addEffects(e)}}return e.\u0275mod=j.Ob({type:e}),e.\u0275inj=j.Nb({factory:function(t){return new(t||e)(j.ac(Y),j.ac(Z),j.ac(i.h),j.ac(q),j.ac(i.k,8),j.ac(i.i,8),j.ac($,8))}}),e})(),ne=(()=>{class e{constructor(e,t,n,i){t.forEach(t=>t.forEach(t=>e.addEffects(t)))}}return e.\u0275mod=j.Ob({type:e}),e.\u0275inj=j.Nb({factory:function(t){return new(t||e)(j.ac(te),j.ac(K),j.ac(i.k,8),j.ac(i.i,8))}}),e})(),ie=(()=>{class e{static forFeature(e=[]){return{ngModule:ne,providers:[e,{provide:Q,multi:!0,useValue:e},{provide:U,multi:!0,useValue:[]},{provide:K,multi:!0,useFactory:re,deps:[j.t,Q,U]}]}}static forRoot(e=[]){return{ngModule:te,providers:[{provide:X,useValue:P},Z,Y,V,e,{provide:H,useValue:[e]},{provide:$,useFactory:oe,deps:[[Z,new j.C,new j.M],[H,new j.L]]},{provide:U,multi:!0,useValue:[]},{provide:q,useFactory:re,deps:[j.t,H,U]}]}}}return e.\u0275mod=j.Ob({type:e}),e.\u0275inj=j.Nb({factory:function(t){return new(t||e)}}),e})();function re(e,t,n){const i=[];for(let r of t)i.push(...r);for(let r of n)i.push(...r);return function(e,t){return t.map(t=>e.get(t))}(e,i)}function oe(e,t){if((1!==t.length||0!==t[0].length)&&e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},"9lTW":function(e,t,n){"use strict";var i=n("MgzW");function r(e,t){if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r=0;l--)if(u[l]!==h[l])return!1;for(l=u.length-1;l>=0;l--)if(!y(e[a=u[l]],t[a],n,i))return!1;return!0}(e,t,n,i))}return n?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e,t,n,i){var r;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(i=n,n=null),r=function(e){var t;try{e()}catch(n){t=n}return t}(t),i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!r&&b(r,n,"Missing expected exception"+i);var o="string"==typeof i,a=!e&&r&&!n;if((!e&&s.isError(r)&&o&&_(r,n)||a)&&b(r,n,"Got unwanted exception"+i),e&&r&&n&&!_(r,n)||!e&&r)throw r}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return g(m(e.actual),128)+" "+e.operator+" "+g(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var i=n.stack,r=f(t),o=i.indexOf("\n"+r);if(o>=0){var s=i.indexOf("\n",o+1);i=i.substring(s+1)}this.stack=i}}},s.inherits(d.AssertionError,Error),d.fail=b,d.ok=v,d.equal=function(e,t,n){e!=t&&b(e,t,n,"==",d.equal)},d.notEqual=function(e,t,n){e==t&&b(e,t,n,"!=",d.notEqual)},d.deepEqual=function(e,t,n){y(e,t,!1)||b(e,t,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,n){y(e,t,!0)||b(e,t,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,n){y(e,t,!1)&&b(e,t,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,n,i){y(t,n,!0)&&b(t,n,i,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,n){e!==t&&b(e,t,n,"===",d.strictEqual)},d.notStrictEqual=function(e,t,n){e===t&&b(e,t,n,"!==",d.notStrictEqual)},d.throws=function(e,t,n){O(!0,e,t,n)},d.doesNotThrow=function(e,t,n){O(!1,e,t,n)},d.ifError=function(e){if(e)throw e},d.strict=i(function e(t,n){t||b(t,!0,n,"==",e)},d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var C=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},"9tIO":function(e,t,n){"use strict";n.d(t,"a",function(){return E});var i=n("SxV6"),r=n("lJxs"),o=n("vkgz"),s=n("xk4V"),a=n.n(s),c=n("6neD"),l=n("U7fl"),u=n("dtjE"),h=n("GNEV"),d=n("Gjh+"),p=n("oE/m"),f=n("bQ7u"),g=n("g9RT"),m=n("9Oho"),b=n("lgLN"),v=n("BGZm"),y=n("W2+O"),w=n("6EqW"),_=n("Yhw5"),O=n("fXoL"),C=n("l7P3");let E=(()=>{class e{constructor(e,t){this.store=e,this.gqlService=t}newWindow(e={}){return this.store.pipe(Object(i.a)(),Object(r.a)(t=>{var n;const i=e.url||c.a().url||t.windowsMeta.activeWindowId&&(null===(n=t.windows[t.windowsMeta.activeWindowId])||void 0===n?void 0:n.query.url),r={windowId:a()(),title:e.title||`Window ${Object.keys(t.windows).length+1}`,url:i,collectionId:e.collectionId,windowIdInCollection:e.windowIdInCollection,fixedTitle:e.fixedTitle};return this.store.dispatch(new d.b(r)),this.setupWindow(r.windowId),r}))}removeWindow(e){return this.cleanupWindow(e),this.store.pipe(Object(i.a)(),Object(o.a)(t=>{const n=t.windows[e];n&&this.store.dispatch(new m.j({window:n})),this.store.dispatch(new d.k({windowId:e}))}))}duplicateWindow(e){return this.store.pipe(Object(i.a)()).subscribe(t=>{const n={...t.windows[e]};if(n)return this.importWindowData({version:1,type:"window",query:n.query.query||"",apiUrl:n.query.url,variables:n.variables.variables,subscriptionUrl:n.query.subscriptionUrl,subscriptionConnectionParams:n.query.subscriptionConnectionParams,headers:n.headers,windowName:`${n.layout.title} (Copy)`,preRequestScript:n.preRequest.script,preRequestScriptEnabled:n.preRequest.enabled,gqlSchema:n.schema.schema})})}getWindowExportData(e){return this.store.pipe(Object(i.a)(),Object(r.a)(t=>{const n={...t.windows[e]};return{version:1,type:"window",query:n.query.query||"",apiUrl:n.query.url,variables:n.variables.variables,subscriptionUrl:n.query.subscriptionUrl,subscriptionConnectionParams:n.query.subscriptionConnectionParams,headers:n.headers,windowName:n.layout.title,preRequestScript:n.preRequest.script,preRequestScriptEnabled:n.preRequest.enabled}}))}importWindowDataFromJson(e){if(!e)throw new Error("String is empty.");try{return this.importWindowData(JSON.parse(e),{fixedTitle:!0})}catch(t){try{return w.a.log("(Second attempt) Trying to decode JSON data..."),this.importWindowData(JSON.parse(decodeURIComponent(e)),{fixedTitle:!0})}catch(t){}w.a.log("The file is invalid.",t)}}importWindowDataFromCurl(e){if(!e)throw new Error("String is empty.");try{const t=Object(y.b)(e),n={version:1,type:"window",query:t.body?JSON.parse(t.body).query:"",apiUrl:t.url,variables:t.body?JSON.stringify(JSON.parse(t.body).variables):"",subscriptionUrl:"",subscriptionConnectionParams:"",headers:t.headers?Object.keys(t.headers).map(e=>({key:e,value:t.headers[e]})):[],windowName:`cURL-${Date.now()}`,preRequestScript:"",preRequestScriptEnabled:!1};return this.importWindowData(n)}catch(t){w.a.log("The file is invalid.",t)}}importWindowData(e,t={}){try{if(!e)throw new Error("Object is empty.");if(!e.version||!e.type||"window"!==e.type)throw new Error("File is not a valid Altair query file.");this.newWindow({title:e.windowName,url:e.apiUrl,collectionId:e.collectionId,windowIdInCollection:e.windowIdInCollection,fixedTitle:t.fixedTitle}).subscribe(t=>{const n=t.windowId;e.apiUrl&&(this.store.dispatch(new l.Z({url:e.apiUrl},n)),this.store.dispatch(new l.K(n))),e.query&&this.store.dispatch(new l.N(e.query,n)),e.headers.length&&this.store.dispatch(new u.l({headers:e.headers},n)),e.variables&&this.store.dispatch(new h.l(e.variables,n)),e.subscriptionUrl&&this.store.dispatch(new l.Y({subscriptionUrl:e.subscriptionUrl},n)),e.subscriptionConnectionParams&&this.store.dispatch(new l.V(n,{connectionParams:e.subscriptionConnectionParams})),e.preRequestScriptEnabled&&this.store.dispatch(new f.c(n,{enabled:e.preRequestScriptEnabled})),e.preRequestScript&&this.store.dispatch(new f.d(n,{script:e.preRequestScript})),e.gqlSchema&&this.store.dispatch(new b.n(n,e.gqlSchema)),this.store.dispatch(new p.l({windowId:n}))})}catch(n){w.a.log("Something went wrong while importing the data.",n)}}importStringData(e){const t=new Error("Invalid Altair window file."),n={version:1,type:"window",apiUrl:"",headers:[],preRequestScript:"",preRequestScriptEnabled:!1,query:"",subscriptionUrl:"",subscriptionConnectionParams:"",variables:"{}",windowName:""};try{let n;try{n=JSON.parse(e)}catch(i){n=JSON.parse(decodeURIComponent(e))}if("window"===n.type&&1===n.version)return this.importWindowData(n,{fixedTitle:!0});throw t}catch(i){w.a.log("Invalid Altair window file.",i);try{const i=this.gqlService.sdlToSchema(e);if(i)return this.importWindowData({...n,version:1,type:"window",gqlSchema:i});throw t}catch(r){w.a.log("Invalid SDL file.",r);try{const i=this.gqlService.getOperations(e);if(w.a.log(i),i&&i.length)return this.importWindowData({...n,version:1,type:"window",query:e});throw t}catch(o){throw o}}}}handleImportedFile(e){return Object(v.d)(e).then(e=>{try{this.importStringData(e)}catch(t){w.a.log("There was an issue importing the file.",t)}})}setupWindow(e){this.store.dispatch(new l.X(e,{list:[]})),this.store.dispatch(new l.bb(e)),this.store.dispatch(new g.l(e)),this.store.dispatch(new g.k(e)),this.store.pipe(Object(i.a)(),Object(r.a)(e=>e.settings["schema.reloadOnStart"])).subscribe(t=>{t&&this.store.dispatch(new l.K(e))})}cleanupWindow(e){this.store.dispatch(new l.bb(e)),this.store.dispatch(new g.l(e))}}return e.\u0275fac=function(t){return new(t||e)(O.ac(C.h),O.ac(_.a))},e.\u0275prov=O.Mb({token:e,factory:e.\u0275fac}),e})()},A67W:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("dWS+");function r(e,t){return t?'Variable "$'.concat(e,'" is never used in operation "').concat(t,'".'):'Variable "$'.concat(e,'" is never used.')}function o(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var o=Object.create(null),s=e.getRecursiveVariableUsages(n),a=n.name?n.name.value:null,c=0;c0&&e.reportError(new i.a("Must provide only one schema definition.",t)),++r)}}}},"AW/X":function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("1QEH"),r=n("kBjl"),o=n("rWdj"),s=n("/kEc"),a=n("pv/G"),c=n("T95z"),l=n("dWS+"),u=n("dQau"),h=n("axIb");function d(e,t,n){return"Expected type ".concat(e,", found ").concat(t)+(n?"; ".concat(n):".")}function p(e,t,n){return"Expected type ".concat(e,", found ").concat(t,".")+Object(a.a)("the enum value",n)}function f(e){return{NullValue:function(t){var n=e.getInputType();Object(h.L)(n)&&e.reportError(new l.a(d(Object(o.a)(n),Object(u.print)(t)),t))},ListValue:function(t){var n=Object(h.B)(e.getParentInputType());if(!Object(h.J)(n))return g(e,t),!1},ObjectValue:function(t){var n=Object(h.A)(e.getInputType());if(!Object(h.F)(n))return g(e,t),!1;for(var s,a,c=Object(r.a)(t.fields,function(e){return e.name.value}),u=0,d=Object(i.a)(n.getFields());u{const s=`${l(t)}.${r}`,a=new Blob([e],{type:i});o.a.saveAs(a,s)},p=(e,t="response",n)=>{let i={mimeType:"text/json",dataUriAttr:"text/json;charset=utf-8",fileType:"json"};n&&(i={...i,...n});const r=JSON.stringify(e);d(r,t,i)},f=e=>new Promise((t,n)=>{const i=new FileReader;i.onload=function(e){t(e.target.result)},i.readAsText(e[0])}),g=function(){var e=Object(i.a)(function*(e={}){try{const t=yield c()(e);return f(t)}catch(t){s.a.log("There was an issue while opening the file: ",t)}});return function(){return e.apply(this,arguments)}}(),m=!!(window.chrome&&window.chrome.runtime&&window.chrome.runtime.id),b=(!window.chrome||window,e=>(e=(e=e.trim()).replace(u(),""))?JSON.parse(e):{}),v=e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);const n=document.getSelection(),i=!!(n&&n.rangeCount>0)&&n.getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),i&&n&&(n.removeAllRanges(),n.addRange(i))},y=e=>e?h.isUri(e)?e:"*"===e.trim()?location.href:("/"===e.substr(0,1)&&(e=e.substr(1)),location.origin+"/"+e):e;function w(e){const t=parseInt(e,10);return t.toString()===e?t:e}function _(e,t,n){if("number"==typeof t&&(t=[t]),!t||0===t.length)return;if("string"==typeof t)return _(e,t.split(".").map(w),n);const i=t[0],r=e[i];return 1===t.length?(e[i]=n,r):(void 0===r&&(e[i]="number"==typeof t[1]?[]:{}),_(e[i],t.slice(1),n))}function O(e,t=70){let n=!1;return e.length>t&&(n=!0),e.substring(0,t)+(n?"...":"")}},BLR7:function(e,t,n){"use strict";function i(e){var t=e.split(/\r\n|[\n\r]/g),n=r(t);if(0!==n)for(var i=1;i0&&s(t[0]);)t.shift();for(;t.length>0&&s(t[t.length-1]);)t.pop();return t.join("\n")}function r(e){for(var t=null,n=1;n1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],s=!i||o||n,a="";return!s||i&&r||(a+="\n"+t),a+=t?e.replace(/\n/g,"\n"+t):e,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return a})},BTCl:function(e,t,n){"use strict";n.d(t,"b",function(){return G}),n.d(t,"c",function(){return B}),n.d(t,"a",function(){return W});var i=n("HaE+"),r=n("l7P3"),o=n("9jGm"),s=n("PE4B"),a=n.n(s),c=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},l="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,h=l||u||Function("return this")(),d=function(){return h.Date.now()},p=/\s/,f=/^\s+/,g=h.Symbol,m=Object.prototype,b=m.hasOwnProperty,v=m.toString,y=g?g.toStringTag:void 0,w=Object.prototype.toString,_=g?g.toStringTag:void 0,O=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,E=/^0o[0-7]+$/i,S=parseInt,T=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?function(e){var t=b.call(e,y),n=e[y];try{e[y]=void 0;var i=!0}catch(o){}var r=v.call(e);return i&&(t?e[y]=n:delete e[y]),r}(e):function(e){return w.call(e)}(e)}(e)}(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,function(e){for(var t=e.length;t--&&p.test(e.charAt(t)););return t}(n)+1).replace(f,""):n;var i=C.test(e);return i||E.test(e)?S(e.slice(2),i?2:8):O.test(e)?NaN:+e},x=Math.max,k=Math.min,I=n("U/X8"),D=n("D08x"),z=n("E6Fa"),j=n("6EqW"),A=n("65Dl"),R=n("nTiS");const N=(e,t,n)=>{const i={};return t.forEach(t=>{"windows"===t&&e[t]?Object.keys(e[t]).forEach(r=>{i[`[${n}]::${t}::${r}`]=e[t][r]}):i[`[${n}]::${t}`]=e[t]}),i};let L=null,M=[];const F=(e,t,n,i)=>{const r=((e,t,n,i)=>{const r=[],o=N(e,n,i),s=N(t,n,i);return Object.keys(o).filter(e=>!Object.keys(s).includes(e)).forEach(e=>{r.push({operation:"delete",key:e})}),Object.keys(s).map(e=>{s[e]!==o[e]&&r.push({operation:"put",key:e,value:JSON.stringify(s[e])})}),r})(e,t,n,i);M=M.filter(e=>!r.find(t=>t.key===e.key)).concat(r)},P=()=>{const e=new z.a;return L&&(L.abort(),L=null),j.a.log("updating state..."),e.transaction("rw",e.appState,function(){var t=Object(i.a)(function*(t){L=t;const n=[];return M.forEach(t=>{switch(t.operation){case"put":n.push(e.appState.put({key:t.key,value:t.value}));break;case"delete":n.push(e.appState.delete(t.key))}}),M=[],Promise.all(n)});return function(e){return t.apply(this,arguments)}}())},V=function(e,t,n){var i,r,o,s,a,l,u=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=i,o=r;return i=r=void 0,u=t,s=e.apply(o,n)}function m(e){return u=e,a=setTimeout(v,t),h?g(e):s}function b(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-u>=o}function v(){var e=d();if(b(e))return y(e);a=setTimeout(v,function(e){var n=t-(e-l);return p?k(n,o-(e-u)):n}(e))}function y(e){return a=void 0,f&&i?g(e):(i=r=void 0,s)}function w(){var e=d(),n=b(e);if(i=arguments,r=this,l=e,n){if(void 0===a)return m(l);if(p)return clearTimeout(a),a=setTimeout(v,t),g(l)}return void 0===a&&(a=setTimeout(v,t)),s}return t=T(t)||0,c(undefined)&&(h=!!undefined.leading,o=(p="maxWait"in undefined)?x(T(undefined.maxWait)||0,t):o,f="trailing"in undefined?!!undefined.trailing:f),w.cancel=function(){void 0!==a&&clearTimeout(a),u=0,i=l=r=a=void 0},w.flush=function(){return void 0===a?s:y(d())},w}(P,1e3),G=function(){var e=Object(i.a)(function*({updateFromLocalStorage:e=!1,forceUpdateFromProvidedData:t=!1,storage:n}){const i=new z.a;let r=yield i.appState.toArray();const o=Object(R.b)().initialData.instanceStorageNamespace,s={windows:{}};if(t||!r.length){if(!e)return;const t=Object(I.rehydrateApplicationState)(A.a.keys,n||A.a.storage,A.a.storageKeySerializer,A.a.restoreDates);if(j.a.log("pulling state from localStorage since async storage is empty.."),F({},t,A.a.keys,o),yield P(),r=yield i.appState.toArray(),!r.length)return}return r.forEach(e=>{if(!e.key.startsWith(`[${o}]::`))return;const t=e.key.replace(`[${o}]::`,"");t.includes("windows::")?s.windows[t.replace("windows::","")]=JSON.parse(e.value):s[t]=JSON.parse(e.value)}),s});return function(t){return e.apply(this,arguments)}}(),B=e=>{const t=new z.a;return t.transaction("rw",t.appState,Object(i.a)(function*(){const n=[];return e.forEach(e=>{n.push(t.appState.put({key:e.key,value:e.value}))}),Promise.all(n)}))},W=e=>t=>{const n=Object(R.b)().initialData.instanceStorageNamespace;return function(i,s){var c;let l;return l=s.type!==r.b||i?{...i}:t(i,s),s.type===D.a&&(null===(c=s.payload)||void 0===c?void 0:c.initialState)&&(l=((e,t,n)=>{if(n.type===D.a&&t){const n={arrayMerge:(e,t)=>t};e=a()(e,t,n)}return e})(l,s.payload.initialState,s)),l=t(l,s),[r.b,o.c,D.a].includes(s.type)||(j.a.log("debouncing update.."),F(i,l,e.keys,n),V()),l}}},C2AL:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s});var i=n("nLfN"),r=n("fXoL");let o=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){!0===this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden",""):!1===this.hidden||null===this.hidden?this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden"):"string"==typeof this.hidden&&this.renderer.setAttribute(this.elementRef.nativeElement,"hidden",this.hidden)}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G))},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[r.Cb]}),e})(),s=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[i.b]]}),e})()},C2zF:function(e,t,n){!function(e){"use strict";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function r(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function o(e,t,n,i,r){e.openDialog?e.openDialog(t,r,{value:i,selectValueOnOpen:!0}):r(prompt(n,i))}function s(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function a(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(n){}else e=s(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function c(e,t,n){t.queryText=n,t.query=a(n),e.removeOverlay(t.overlay,i(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,i(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,i(t.query)))}function l(t,i,r,s){var a=n(t);if(a.query)return u(t,i);var l=t.getSelection()||a.lastQuery;if(l instanceof RegExp&&"x^"==l.source&&(l=null),r&&t.openDialog){var p=null,f=function(n,i){e.e_stop(i),n&&(n!=a.queryText&&(c(t,a,n),a.posFrom=a.posTo=t.getCursor()),p&&(p.style.opacity=1),u(t,i.shiftKey,function(e,n){var i;n.line<3&&document.querySelector&&(i=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&i.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((p=i).style.opacity=.4)}))};(function(e,t,n,i,r){e.openDialog(t,i,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){h(e)},onKeyDown:r})})(t,d(t),l,f,function(i,r){var o=e.keyName(i),s=t.getOption("extraKeys"),a=s&&s[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==a||"findPrev"==a||"findPersistentNext"==a||"findPersistentPrev"==a?(e.e_stop(i),c(t,n(t),r),t.execCommand(a)):"find"!=a&&"findPersistent"!=a||(e.e_stop(i),f(r,i))}),s&&l&&(c(t,a,l),u(t,i))}else o(t,d(t),"Search for:",l,function(e){e&&!a.query&&t.operation(function(){c(t,a,e),a.posFrom=a.posTo=t.getCursor(),u(t,i)})})}function u(t,i,o){t.operation(function(){var s=n(t),a=r(t,s.query,i?s.posFrom:s.posTo);(a.find(i)||(a=r(t,s.query,i?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(i))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()},20),s.posFrom=a.from(),s.posTo=a.to(),o&&o(a.from(),a.to()))})}function h(e){e.operation(function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function d(e){return''+e.phrase("Search:")+' '+e.phrase("(Use /re/ syntax for regexp search)")+""}function p(e,t,n){e.operation(function(){for(var i=r(e,t);i.findNext();)if("string"!=typeof t){var o=e.getRange(i.from(),i.to()).match(t);i.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else i.replace(n)})}function f(e,t){if(!e.getOption("readOnly")){var i=e.getSelection()||n(e).lastQuery,c=''+e.phrase(t?"Replace all:":"Replace:")+"";o(e,c+function(e){return' '+e.phrase("(Use /re/ syntax for regexp search)")+""}(e),c,i,function(n){n&&(n=a(n),o(e,function(e){return''+e.phrase("With:")+' '}(e),e.phrase("Replace with:"),"",function(i){if(i=s(i),t)p(e,n,i);else{h(e);var o=r(e,n,e.getCursor("from")),a=function(){var t,s=o.from();!(t=o.findNext())&&(o=r(e,n),!(t=o.findNext())||s&&o.from().line==s.line&&o.from().ch==s.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,i){e.openConfirm?e.openConfirm(t,i):confirm(n)&&i[0]()}(e,function(e){return''+e.phrase("Replace?")+" "}(e),e.phrase("Replace?"),[function(){c(t)},a,function(){p(e,n,i)}]))},c=function(e){o.replace("string"==typeof n?i:i.replace(/\$(\d)/g,function(t,n){return e[n]})),a()};a()}}))})}}e.commands.find=function(e){h(e),l(e)},e.commands.findPersistent=function(e){h(e),l(e,!1,!0)},e.commands.findPersistentNext=function(e){l(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){l(e,!0,!0,!0)},e.commands.findNext=l,e.commands.findPrev=function(e){l(e,!0)},e.commands.clearSearch=h,e.commands.replace=f,e.commands.replaceAll=function(e){f(e,!0)}}(n("VrN/"),n("uTOq"),n("Ku0u"))},CRiN:function(e,t,n){"use strict";var i,r=(i=n("VrN/"))&&i.__esModule?i:{default:i};function o(e,t){const n=e.state.info,i=t.target||t.srcElement;if("SPAN"!==i.nodeName||void 0!==n.hoverTimeout)return;const o=i.getBoundingClientRect(),s=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(c,l)},a=function(){r.default.off(document,"mousemove",s),r.default.off(e.getWrapperElement(),"mouseout",a),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},c=function(){r.default.off(document,"mousemove",s),r.default.off(e.getWrapperElement(),"mouseout",a),n.hoverTimeout=void 0,function(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info.options,o=i.render||e.getHelper(n,"info");if(o){const s=e.getTokenAt(n,!0);if(s){const a=o(s,i,e,n);a&&function(e,t,n){const i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);const o=i.getBoundingClientRect(),s=i.currentStyle||window.getComputedStyle(i),a=o.right-o.left+parseFloat(s.marginLeft)+parseFloat(s.marginRight),c=o.bottom-o.top+parseFloat(s.marginTop)+parseFloat(s.marginBottom);let l=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(l=t.top-c),l<0&&(l=t.bottom);let u,h=Math.max(0,window.innerWidth-a-15);h>t.left&&(h=t.left),i.style.opacity=1,i.style.top=l+"px",i.style.left=h+"px";const d=function(){clearTimeout(u)},p=function(){clearTimeout(u),u=setTimeout(f,200)},f=function(){r.default.off(i,"mouseover",d),r.default.off(i,"mouseout",p),r.default.off(e.getWrapperElement(),"mouseout",p),i.style.opacity?(i.style.opacity=0,setTimeout(()=>{i.parentNode&&i.parentNode.removeChild(i)},600)):i.parentNode&&i.parentNode.removeChild(i)};r.default.on(i,"mouseover",d),r.default.on(i,"mouseout",p),r.default.on(e.getWrapperElement(),"mouseout",p)}(e,t,a)}}}(e,o)},l=function(e){const t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(c,l),r.default.on(document,"mousemove",s),r.default.on(e.getWrapperElement(),"mouseout",a)}r.default.defineOption("info",!1,(e,t,n)=>{if(n&&n!==r.default.Init){const t=e.state.info.onMouseOver;r.default.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);n.onMouseOver=o.bind(null,e),r.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})},CbW8:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u});var i=n("vJkw"),r=n("oycr"),o=n("BLR7"),s=n("JvOi");function a(e,t){var n=new h(s.a.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:c,lookahead:l}}function c(){return this.lastToken=this.token,this.token=this.lookahead()}function l(){var e=this.token;if(e.kind!==s.a.EOF)do{e=e.next||(e.next=p(this,e))}while(e.kind===s.a.COMMENT);return e}function u(e){var t=e.kind;return t===s.a.BANG||t===s.a.DOLLAR||t===s.a.AMP||t===s.a.PAREN_L||t===s.a.PAREN_R||t===s.a.SPREAD||t===s.a.COLON||t===s.a.EQUALS||t===s.a.AT||t===s.a.BRACKET_L||t===s.a.BRACKET_R||t===s.a.BRACE_L||t===s.a.PIPE||t===s.a.BRACE_R}function h(e,t,n,i,r,o,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=o,this.next=null}function d(e){return isNaN(e)?s.a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function p(e,t){var n=e.source,i=n.body,a=i.length,c=function(e,t,n){for(var i=e.length,r=t;r=a)return new h(s.a.EOF,a,a,l,u,t);var p=i.charCodeAt(c);switch(p){case 33:return new h(s.a.BANG,c,c+1,l,u,t);case 35:return function(e,t,n,i,r){var o,a=e.body,c=t;do{o=a.charCodeAt(++c)}while(!isNaN(o)&&(o>31||9===o));return new h(s.a.COMMENT,t,c,n,i,r,a.slice(t+1,c))}(n,c,l,u,t);case 36:return new h(s.a.DOLLAR,c,c+1,l,u,t);case 38:return new h(s.a.AMP,c,c+1,l,u,t);case 40:return new h(s.a.PAREN_L,c,c+1,l,u,t);case 41:return new h(s.a.PAREN_R,c,c+1,l,u,t);case 46:if(46===i.charCodeAt(c+1)&&46===i.charCodeAt(c+2))return new h(s.a.SPREAD,c,c+3,l,u,t);break;case 58:return new h(s.a.COLON,c,c+1,l,u,t);case 61:return new h(s.a.EQUALS,c,c+1,l,u,t);case 64:return new h(s.a.AT,c,c+1,l,u,t);case 91:return new h(s.a.BRACKET_L,c,c+1,l,u,t);case 93:return new h(s.a.BRACKET_R,c,c+1,l,u,t);case 123:return new h(s.a.BRACE_L,c,c+1,l,u,t);case 124:return new h(s.a.PIPE,c,c+1,l,u,t);case 125:return new h(s.a.BRACE_R,c,c+1,l,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,i,r){for(var o=e.body,a=o.length,c=t+1,l=0;c!==a&&!isNaN(l=o.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new h(s.a.NAME,t,c,n,i,r,o.slice(t,c))}(n,c,l,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,i,o,a){var c=e.body,l=n,u=t,p=!1;if(45===l&&(l=c.charCodeAt(++u)),48===l){if((l=c.charCodeAt(++u))>=48&&l<=57)throw Object(r.a)(e,u,"Invalid number, unexpected digit after 0: ".concat(d(l),"."))}else u=f(e,u,l),l=c.charCodeAt(u);if(46===l&&(p=!0,l=c.charCodeAt(++u),u=f(e,u,l),l=c.charCodeAt(u)),69!==l&&101!==l||(p=!0,43!==(l=c.charCodeAt(++u))&&45!==l||(l=c.charCodeAt(++u)),u=f(e,u,l),l=c.charCodeAt(u)),46===l||69===l||101===l)throw Object(r.a)(e,u,"Invalid number, expected digit but got: ".concat(d(l),"."));return new h(p?s.a.FLOAT:s.a.INT,t,u,i,o,a,c.slice(t,u))}(n,c,p,l,u,t);case 34:return 34===i.charCodeAt(c+1)&&34===i.charCodeAt(c+2)?function(e,t,n,i,a,c){for(var l=e.body,u=t+3,p=u,f=0,g="";u=48&&s<=57){do{s=i.charCodeAt(++o)}while(s>=48&&s<=57);return o}throw Object(r.a)(e,o,"Invalid number, expected digit but got: ".concat(d(s),"."))}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Object(i.a)(h,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}})},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("HDdC"),r=n("SeVD"),o=n("quSY"),s=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),u=n("I55L");function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[s.a]}(e))return function(e,t){return new i.a(n=>{const i=new o.a;return i.add(t.schedule(()=>{const r=e[s.a]();i.add(r.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i})}(e,t);if(Object(l.a)(e))return function(e,t){return new i.a(n=>{const i=new o.a;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i})}(e,t);if(Object(u.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new o.a;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=e[c.a](),i.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},CqXF:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e){return t=>t.lift(new o(e))}class o{constructor(e){this.value=e}call(e,t){return t.subscribe(new s(e,this.value))}}class s extends i.a{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}},D08x:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});const i="___INIT_WINDOW___",r="APP_INIT_ACTION";class o{constructor(e){this.payload=e,this.type=r}}},D0XW:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("3N8a");const r=new(n("IjjT").a)(i.a)},DAag:function(e,t,n){"use strict";var i=n("IDEf"),r=n("IWB/"),o=n("YsTz"),s=Error.captureStackTrace;e.exports=function(t){var n=new Error(t),a=arguments[1],c=arguments[2];return o(c)||r(a)&&(c=a,a=null),o(c)&&i(n,c),o(a)&&(n.code=a),s&&s(n,e.exports),n}},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},DOSD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n=[];let i=e;for(;i&&i.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}},"E++1":function(e,t,n){"use strict";n.r(t),n.d(t,"unknownFragmentMessage",function(){return r}),n.d(t,"KnownFragmentNames",function(){return o});var i=n("dWS+");function r(e){return'Unknown fragment "'.concat(e,'".')}function o(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new i.a(r(n),t.name))}}}},E6Fa:function(e,t,n){"use strict";n.d(t,"a",function(){return Rn});var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0)t=e;else for(var r in t=e.constructor?Object.create(e.constructor.prototype):{},e)h(e,r)&&(t[r]=A(e[r]));return t}var R={}.toString;function N(e){return R.call(e).slice(8,-1)}var L=function(e,t){return"Array"===t?""+e.map(function(e){return L(e,N(e))}):"ArrayBuffer"===t?""+new Uint8Array(e):"Date"===t?e.getTime():ArrayBuffer.isView(e)?""+new Uint8Array(e.buffer):e};function M(e,t,n,i){return n=n||{},i=i||"",o(e).forEach(function(r){if(h(t,r)){var o=e[r],s=t[r];if("object"==typeof o&&"object"==typeof s&&o&&s){var a=N(o),c=N(s);a===c?j[a]?L(o,a)!==L(s,c)&&(n[i+r]=t[r]):M(o,s,n,i+r+"."):n[i+r]=t[r]}else o!==s&&(n[i+r]=t[r])}else n[i+r]=void 0}),o(t).forEach(function(r){h(e,r)||(n[i+r]=t[r])}),n}var F="undefined"!=typeof Symbol&&Symbol.iterator,P=F?function(e){var t;return null!=e&&(t=e[F])&&t.apply(e)}:function(){return null},V={};function G(e){var t,n,i,r;if(1===arguments.length){if(s(e))return e.slice();if(this===V&&"string"==typeof e)return[e];if(r=P(e)){for(n=[];!(i=r.next()).done;)n.push(i.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var B="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},W="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function $(e,t){W=e,U=t}var U=function(){return!0},H=!new Error("").stack;function q(){if(H)try{throw new Error}catch(e){return e}return new Error}function Q(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(U).map(function(e){return"\n"+e}).join("")):""}var K=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],X=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(K),Y={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function J(e,t){this._e=q(),this.name=e,this.message=t}function Z(e,t){return e+". Errors: "+Object.keys(t).map(function(e){return t[e].toString()}).filter(function(e,t,n){return n.indexOf(e)===t}).join("\n")}function ee(e,t,n,i){this._e=q(),this.failures=t,this.failedKeys=i,this.successCount=n,this.message=Z(e,t)}function te(e,t){this._e=q(),this.name="BulkError",this.failures=t,this.message=Z(e,t)}g(J).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Q(this._e,2))}},toString:function(){return this.name+": "+this.message}}),g(ee).from(J),g(te).from(J);var ne=X.reduce(function(e,t){return e[t]=t+"Error",e},{}),ie=J,re=X.reduce(function(e,t){var n=t+"Error";function i(e,i){this._e=q(),this.name=n,e?"string"==typeof e?(this.message=e+(i?"\n "+i:""),this.inner=i||null):"object"==typeof e&&(this.message=e.name+" "+e.message,this.inner=e):(this.message=Y[t]||n,this.inner=null)}return g(i).from(ie),e[t]=i,e},{});re.Syntax=SyntaxError,re.Type=TypeError,re.Range=RangeError;var oe=K.reduce(function(e,t){return e[t+"Error"]=re[t],e},{}),se=X.reduce(function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=re[t]),e},{});function ae(){}function ce(e){return e}function le(e,t){return null==e||e===ce?t:function(n){return t(e(n))}}function ue(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function he(e,t){return e===ae?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var i=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?ue(i,this.onsuccess):i),r&&(this.onerror=this.onerror?ue(r,this.onerror):r),void 0!==o?o:n}}function de(e,t){return e===ae?t:function(){e.apply(this,arguments);var n=this.onsuccess,i=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?ue(n,this.onsuccess):n),i&&(this.onerror=this.onerror?ue(i,this.onerror):i)}}function pe(e,t){return e===ae?t:function(n){var i=e.apply(this,arguments);c(n,i);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?ue(r,this.onsuccess):r),o&&(this.onerror=this.onerror?ue(o,this.onerror):o),void 0===i?void 0===s?void 0:s:c(i,s)}}function fe(e,t){return e===ae?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function ge(e,t){return e===ae?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var i=this,r=arguments.length,o=new Array(r);r--;)o[r]=arguments[r];return n.then(function(){return t.apply(i,o)})}return t.apply(this,arguments)}}se.ModifyError=ee,se.DexieError=J,se.BulkError=te;var me={},be="undefined"==typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,e.__proto__,e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,t.__proto__,e]}(),ve=be[0],ye=be[1],we=be[2],_e=ye&&ye.then,Oe=ve&&ve.constructor,Ce=!!we,Ee=!1,Se=we?function(){we.then(Qe)}:a.setImmediate?setImmediate.bind(null,Qe):a.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){Qe(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(Qe,0)},Te=function(e,t){Ne.push([e,t]),ke&&(Se(),ke=!1)},xe=!0,ke=!0,Ie=[],De=[],ze=null,je=ce,Ae={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:vt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{vt(e[0],e[1])}catch(t){}})}},Re=Ae,Ne=[],Le=0,Me=[];function Fe(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ae,this._lib=!1;var t=this._PSD=Re;if(W&&(this._stackHolder=q(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==me)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Be(this,this._value))}this._state=null,this._value=null,++t.ref,Ge(this,e)}var Pe={get:function(){var e=Re,t=rt;function n(n,i){var r=this,o=!e.global&&(e!==Re||t!==rt),s=o&&!ct(),a=new Fe(function(t,a){$e(r,new Ve(mt(n,e,o,s),mt(i,e,o,s),t,a,e))});return W&&qe(a,this),a}return n.prototype=me,n},set:function(e){f(this,"then",e&&e.prototype===me?Pe:{get:function(){return e},set:Pe.set})}};function Ve(e,t,n,i,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=i,this.psd=r}function Ge(e,t){try{t(function(t){if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Ke();t&&"function"==typeof t.then?Ge(e,function(e,n){t instanceof Fe?t._then(e,n):t.then(e,n)}):(e._state=!0,e._value=t,We(e)),n&&Xe()}},Be.bind(null,e))}catch(n){Be(e,n)}}function Be(e,t){if(De.push(t),null===e._state){var n=e._lib&&Ke();t=je(t),e._state=!1,e._value=t,W&&null!==t&&"object"==typeof t&&!t._promise&&function(n,i,r){try{(function(){var n=b(t,"stack");t._promise=e,f(t,"stack",{get:function(){return Ee?n&&(n.get?n.get.apply(t):n.value):e.stack}})}).apply(null,void 0)}catch(o){}}(),function(e){Ie.some(function(t){return t._value===e._value})||Ie.push(e)}(e),We(e),n&&Xe()}}function We(e){var t=e._listeners;e._listeners=[];for(var n=0,i=t.length;n0;)for(e=Ne,Ne=[],n=e.length,t=0;t0);xe=!0,ke=!0}function Ye(){var e=Ie;Ie=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)});for(var t=Me.slice(0),n=t.length;n;)t[--n]()}function Je(e){return new Fe(me,!1,e)}function Ze(e,t){var n=Re;return function(){var i=Ke(),r=Re;try{return dt(n,!0),e.apply(this,arguments)}catch(o){t&&t(o)}finally{dt(r,!1),i&&Xe()}}}d(Fe.prototype,{then:Pe,_then:function(e,t){$e(this,new Ve(null,null,e,t,Re))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return this.then(null,"function"==typeof t?function(e){return e instanceof t?n(e):Je(e)}:function(e){return e&&e.name===t?n(e):Je(e)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),Je(t)})},stack:{get:function(){if(this._stack)return this._stack;try{Ee=!0;var e=He(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Ee=!1}}},timeout:function(e,t){var n=this;return e<1/0?new Fe(function(i,r){var o=setTimeout(function(){return r(new re.Timeout(t))},e);n.then(i,r).finally(clearTimeout.bind(null,o))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&f(Fe.prototype,Symbol.toStringTag,"Dexie.Promise"),Ae.env=pt(),d(Fe,{all:function(){var e=G.apply(null,arguments).map(lt);return new Fe(function(t,n){0===e.length&&t([]);var i=e.length;e.forEach(function(r,o){return Fe.resolve(r).then(function(n){e[o]=n,--i||t(e)},n)})})},resolve:function(e){if(e instanceof Fe)return e;if(e&&"function"==typeof e.then)return new Fe(function(t,n){e.then(t,n)});var t=new Fe(me,!0,e);return qe(t,ze),t},reject:Je,race:function(){var e=G.apply(null,arguments).map(lt);return new Fe(function(t,n){e.map(function(e){return Fe.resolve(e).then(t,n)})})},PSD:{get:function(){return Re},set:function(e){return Re=e}},totalEchoes:{get:function(){return rt}},newPSD:st,usePSD:ft,scheduler:{get:function(){return Te},set:function(e){Te=e}},rejectionMapper:{get:function(){return je},set:function(e){je=e}},follow:function(e,t){return new Fe(function(n,i){return st(function(t,n){var i=Re;i.unhandleds=[],i.onunhandled=n,i.finalize=ue(function(){var e=this;Me.push(function i(){0===e.unhandleds.length?t():n(e.unhandleds[0]),Me.splice(Me.indexOf(i),1)}),++Le,Te(function(){0==--Le&&Ye()},[])},i.finalize),e()},t,n,i)})}}),Oe&&(Oe.allSettled&&f(Fe,"allSettled",function(){var e=G.apply(null,arguments).map(lt);return new Fe(function(t){0===e.length&&t([]);var n=e.length,i=new Array(n);e.forEach(function(e,r){return Fe.resolve(e).then(function(e){return i[r]={status:"fulfilled",value:e}},function(e){return i[r]={status:"rejected",reason:e}}).then(function(){return--n||t(i)})})})}),Oe.any&&"undefined"!=typeof AggregateError&&f(Fe,"any",function(){var e=G.apply(null,arguments).map(lt);return new Fe(function(t,n){0===e.length&&n(new AggregateError([]));var i=e.length,r=new Array(i);e.forEach(function(e,o){return Fe.resolve(e).then(function(e){return t(e)},function(e){r[o]=e,--i||n(new AggregateError(r))})})})}));var et={awaits:0,echoes:0,id:0},tt=0,nt=[],it=0,rt=0,ot=0;function st(e,t,n,i){var r=Re,o=Object.create(r);o.parent=r,o.ref=0,o.global=!1,o.id=++ot;var s=Ae.env;o.env=Ce?{Promise:Fe,PromiseProp:{value:Fe,configurable:!0,writable:!0},all:Fe.all,race:Fe.race,allSettled:Fe.allSettled,any:Fe.any,resolve:Fe.resolve,reject:Fe.reject,nthen:bt(s.nthen,o),gthen:bt(s.gthen,o)}:{},t&&c(o,t),++r.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=ft(o,e,n,i);return 0===o.ref&&o.finalize(),a}function at(){return et.id||(et.id=++tt),++et.awaits,et.echoes+=100,et.id}function ct(){return!!et.awaits&&(0==--et.awaits&&(et.id=0),et.echoes=100*et.awaits,!0)}function lt(e){return et.echoes&&e&&e.constructor===Oe?(at(),e.then(function(e){return ct(),e},function(e){return ct(),yt(e)})):e}function ut(e){++rt,et.echoes&&0!=--et.echoes||(et.echoes=et.id=0),nt.push(Re),dt(e,!0)}function ht(){var e=nt[nt.length-1];nt.pop(),dt(e,!1)}function dt(e,t){var n=Re;if((t?!et.echoes||it++&&e===Re:!it||--it&&e===Re)||gt(t?ut.bind(null,e):ht),e!==Re&&(Re=e,n===Ae&&(Ae.env=pt()),Ce)){var i=Ae.env.Promise,r=e.env;ye.then=r.nthen,i.prototype.then=r.gthen,(n.global||e.global)&&(Object.defineProperty(a,"Promise",r.PromiseProp),i.all=r.all,i.race=r.race,i.resolve=r.resolve,i.reject=r.reject,r.allSettled&&(i.allSettled=r.allSettled),r.any&&(i.any=r.any))}}function pt(){var e=a.Promise;return Ce?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:ye.then,gthen:e.prototype.then}:{}}function ft(e,t,n,i,r){var o=Re;try{return dt(e,!0),t(n,i,r)}finally{dt(o,!1)}}function gt(e){_e.call(ve,e)}function mt(e,t,n,i){return"function"!=typeof e?e:function(){var r=Re;n&&at(),dt(t,!0);try{return e.apply(this,arguments)}finally{dt(r,!1),i&>(ct)}}}function bt(e,t){return function(n,i){return e.call(this,mt(n,t),mt(i,t))}}function vt(e,t){var n;try{n=t.onuncatched(e)}catch(o){}if(!1!==n)try{var i,r={promise:t,reason:e};if(a.document&&document.createEvent?((i=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),c(i,r)):a.CustomEvent&&c(i=new CustomEvent("unhandledrejection",{detail:r}),r),i&&a.dispatchEvent&&(dispatchEvent(i),!a.PromiseRejectionEvent&&a.onunhandledrejection))try{a.onunhandledrejection(i)}catch(s){}W&&i&&!i.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch(o){}}-1===(""+_e).indexOf("[native code]")&&(at=ct=ae);var yt=Fe.reject;function wt(e,t,n,i){if(e._state.openComplete||Re.letThrough){var r=e._createTransaction(t,n,e._dbSchema);try{r.create()}catch(o){return yt(o)}return r._promise(t,function(e,t){return st(function(){return Re.trans=r,i(e,t,r)})}).then(function(e){return r._completion.then(function(){return e})})}if(!e._state.isBeingOpened){if(!e._options.autoOpen)return yt(new re.DatabaseClosed);e.open().catch(ae)}return e._state.dbReadyPromise.then(function(){return wt(e,t,n,i)})}var _t=String.fromCharCode(65535),Ot="Invalid key provided. Keys must be of type string, number, Date or Array.",Ct=[],Et="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),St=Et,Tt=Et,xt=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)};function kt(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var It={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Dt(e){return function(t){return void 0===E(t,e)&&T(t=A(t),e),t}}var zt=function(){function e(){}return e.prototype._trans=function(e,t,n){var i=this._tx||Re.trans,r=this.name;function o(e,n,i){if(!i.schema[r])throw new re.NotFound("Table "+r+" not part of transaction");return t(i.idbtrans,i)}var s=Ke();try{return i&&i.db===this.db?i===Re.trans?i._promise(e,o,n):st(function(){return i._promise(e,o,n)},{trans:i,transless:Re.transless||Re}):wt(this.db,e,[this.name],o)}finally{s&&Xe()}},e.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",function(t){return n.core.get({trans:t,key:e}).then(function(e){return n.hook.reading.fire(e)})}).then(t)},e.prototype.where=function(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(s(e))return new this.db.WhereClause(this,"["+e.join("+")+"]");var t=o(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter(function(e){return e.compound&&t.every(function(t){return e.keyPath.indexOf(t)>=0})&&e.keyPath.every(function(e){return t.indexOf(e)>=0})})[0];if(n&&this.db._maxKey!==_t)return this.where(n.name).equals(n.keyPath.map(function(t){return e[t]}));!n&&W&&console.warn("The query "+JSON.stringify(e)+" on "+this.name+" would benefit of a compound index ["+t.join("+")+"]");var i=this.schema.idxByName,r=this.db._deps.indexedDB;function a(e,t){try{return 0===r.cmp(e,t)}catch(n){return!1}}var c=t.reduce(function(t,n){var r=t[0],o=t[1],c=i[n],l=e[n];return[r||c,r||!c?kt(o,c&&c.multi?function(e){var t=E(e,n);return s(t)&&t.some(function(e){return a(l,e)})}:function(e){return a(l,E(e,n))}):o]},[null,null]),l=c[0],u=c[1];return l?this.where(l.name).equals(e[l.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")},e.prototype.filter=function(e){return this.toCollection().and(e)},e.prototype.count=function(e){return this.toCollection().count(e)},e.prototype.offset=function(e){return this.toCollection().offset(e)},e.prototype.limit=function(e){return this.toCollection().limit(e)},e.prototype.each=function(e){return this.toCollection().each(e)},e.prototype.toArray=function(e){return this.toCollection().toArray(e)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,s(e)?"["+e.join("+")+"]":e))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(e){this.schema.mappedClass=e;var t=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var i in t)if(h(t,i))try{n[i]=t[i]}catch(r){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e},e.prototype.defineClass=function(){return this.mapToClass(function(e){c(this,e)})},e.prototype.add=function(e,t){var n=this,i=this.schema.primKey,r=i.keyPath,o=e;return r&&i.auto&&(o=Dt(r)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[o]})}).then(function(e){return e.numFailures?Fe.reject(e.failures[0]):e.lastResult}).then(function(t){if(r)try{S(e,r,t)}catch(n){}return t})},e.prototype.update=function(e,t){if("object"!=typeof t||s(t))throw new re.InvalidArgument("Modifications must be an object.");if("object"!=typeof e||s(e))return this.where(":id").equals(e).modify(t);o(t).forEach(function(n){S(e,n,t[n])});var n=E(e,this.schema.primKey.keyPath);return void 0===n?yt(new re.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(n).modify(t)},e.prototype.put=function(e,t){var n=this,i=this.schema.primKey,r=i.keyPath,o=e;return r&&i.auto&&(o=Dt(r)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"put",values:[o],keys:null!=t?[t]:null})}).then(function(e){return e.numFailures?Fe.reject(e.failures[0]):e.lastResult}).then(function(t){if(r)try{S(e,r,t)}catch(n){}return t})},e.prototype.delete=function(e){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})}).then(function(e){return e.numFailures?Fe.reject(e.failures[0]):void 0})},e.prototype.clear=function(){var e=this;return this._trans("readwrite",function(t){return e.core.mutate({trans:t,type:"deleteRange",range:It})}).then(function(e){return e.numFailures?Fe.reject(e.failures[0]):void 0})},e.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",function(n){return t.core.getMany({keys:e,trans:n}).then(function(e){return e.map(function(e){return t.hook.reading.fire(e)})})})},e.prototype.bulkAdd=function(e,t,n){var i=this,r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=i.schema.primKey,s=n.auto,a=n.keyPath;if(a&&r)throw new re.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new re.InvalidArgument("Arguments objects and keys must have the same length");var c=e.length,l=a&&s?e.map(Dt(a)):e;return i.core.mutate({trans:t,type:"add",keys:r,values:l,wantResults:o}).then(function(e){var t=e.numFailures,n=e.failures;if(0===t)return o?e.results:e.lastResult;throw new te(i.name+".bulkAdd(): "+t+" of "+c+" operations failed",Object.keys(n).map(function(e){return n[e]}))})})},e.prototype.bulkPut=function(e,t,n){var i=this,r=Array.isArray(t)?t:void 0,o=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=i.schema.primKey,s=n.auto,a=n.keyPath;if(a&&r)throw new re.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new re.InvalidArgument("Arguments objects and keys must have the same length");var c=e.length,l=a&&s?e.map(Dt(a)):e;return i.core.mutate({trans:t,type:"put",keys:r,values:l,wantResults:o}).then(function(e){var t=e.numFailures,n=e.failures;if(0===t)return o?e.results:e.lastResult;throw new te(i.name+".bulkPut(): "+t+" of "+c+" operations failed",Object.keys(n).map(function(e){return n[e]}))})})},e.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:e})}).then(function(e){var i=e.numFailures;if(0===i)return e.lastResult;throw new te(t.name+".bulkDelete(): "+i+" of "+n+" operations failed",e.failures)})},e}();function jt(e){var t={},n=function(n,i){if(i){for(var r=arguments.length,o=new Array(r-1);--r;)o[r-1]=arguments[r];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=a;for(var i=1,r=arguments.length;ii?s:0}return this.toArray(function(e){return e.sort(a)}).then(t)},e.prototype.toArray=function(e){var t=this;return this._read(function(e){var n=t._ctx;if("next"===n.dir&&Rt(n,!0)&&n.limit>0){var i=n.valueMapper,r=Mt(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:r,range:n.range}}).then(function(e){var t=e.result;return i?t.map(i):t})}var o=[];return Pt(n,function(e){return o.push(e)},e,n.table.core).then(function(){return o})},e)},e.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,Rt(t)?Lt(t,function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n(function(){e.advance(t),t=0}),!1))}}):Lt(t,function(){var t=e;return function(){return--t<0}})),this},e.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Lt(this._ctx,function(){var t=e;return function(e,n,i){return--t<=0&&n(i),t>=0}},!0),this},e.prototype.until=function(e,t){return Nt(this._ctx,function(n,i,r){return!e(n.value)||(i(r),t)}),this},e.prototype.first=function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},e.prototype.last=function(e){return this.reverse().first(e)},e.prototype.filter=function(e){var t;return Nt(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=kt(t.isMatch,e),this},e.prototype.and=function(e){return this.filter(e)},e.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},e.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})},e.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},e.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})},e.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},e.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&Rt(t,!0)&&t.limit>0)return this._read(function(e){var n=Mt(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(function(e){return e.result}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)},e.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},e.prototype.firstKey=function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},e.prototype.lastKey=function(e){return this.reverse().firstKey(e)},e.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Nt(this._ctx,function(e){var t=e.primaryKey.toString(),i=h(n,t);return n[t]=!0,!i}),this},e.prototype.modify=function(e){var t=this,n=this._ctx;return this._write(function(i){var r;if("function"==typeof e)r=e;else{var s=o(e),a=s.length;r=function(t){for(var n=!1,i=0;i0&&c.mutate({trans:i,type:"add",values:a}).then(function(e){for(var t in e.failures)g.splice(parseInt(t),1);b(a.length,e)})).then(function(e){return l.length>0&&c.mutate({trans:i,type:"put",keys:f,values:l}).then(function(e){return b(l.length,e)})}).then(function(){return g.length>0&&c.mutate({trans:i,type:"delete",keys:g}).then(function(e){return b(g.length,e)})}).then(function(){return e.length>n+o&&t(n+d)})})};return t(0).then(function(){if(f.length>0)throw new ee("Error modifying one or more objects",f,g,m);return e.length})})})},e.prototype.delete=function(){var e=this._ctx,t=e.range;return Rt(e)&&(e.isPrimKey&&!Tt||3===t.type)?this._write(function(n){var i=t;return e.table.core.count({trans:n,query:{index:e.table.core.schema.primaryKey,range:i}}).then(function(t){return e.table.core.mutate({trans:n,type:"deleteRange",range:i}).then(function(e){var n=e.failures,i=e.numFailures;if(i)throw new ee("Could not delete some values",Object.keys(n).map(function(e){return n[e]}),t-i);return t-i})})}):this.modify(function(e,t){return t.value=null})},e}();function Bt(e,t){return et?-1:e===t?0:1}function $t(e,t,n){var i=e instanceof Xt?new e.Collection(e):e;return i._ctx.error=n?new n(t):new TypeError(t),i}function Ut(e){return new e.Collection(e,function(){return Kt("")}).limit(0)}function Ht(e,t,n,i,r,o){for(var s=Math.min(e.length,i.length),a=-1,c=0;c=0?e.substr(0,a)+t[a]+n.substr(a+1):null;r(e[c],l)<0&&(a=c)}return s0)&&(p=m)}return n(null!==p?function(){e.continue(p+u)}:i),!1}),p}function Qt(e,t,n,i){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:i}}function Kt(e){return{type:1,lower:e,upper:e}}var Xt=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!0,configurable:!0}),e.prototype.between=function(e,t,n,i){n=!1!==n,i=!0===i;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||i)&&(!n||!i)?Ut(this):new this.Collection(this,function(){return Qt(e,t,!n,!i)})}catch(r){return $t(this,Ot)}},e.prototype.equals=function(e){return null==e?$t(this,Ot):new this.Collection(this,function(){return Kt(e)})},e.prototype.above=function(e){return null==e?$t(this,Ot):new this.Collection(this,function(){return Qt(e,void 0,!0)})},e.prototype.aboveOrEqual=function(e){return null==e?$t(this,Ot):new this.Collection(this,function(){return Qt(e,void 0,!1)})},e.prototype.below=function(e){return null==e?$t(this,Ot):new this.Collection(this,function(){return Qt(void 0,e,!1,!0)})},e.prototype.belowOrEqual=function(e){return null==e?$t(this,Ot):new this.Collection(this,function(){return Qt(void 0,e)})},e.prototype.startsWith=function(e){return"string"!=typeof e?$t(this,"String expected."):this.between(e,e+_t,!0,!0)},e.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):qt(this,function(e,t){return 0===e.indexOf(t[0])},[e],_t)},e.prototype.equalsIgnoreCase=function(e){return qt(this,function(e,t){return e===t[0]},[e],"")},e.prototype.anyOfIgnoreCase=function(){var e=G.apply(V,arguments);return 0===e.length?Ut(this):qt(this,function(e,t){return-1!==t.indexOf(e)},e,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var e=G.apply(V,arguments);return 0===e.length?Ut(this):qt(this,function(e,t){return t.some(function(t){return 0===e.indexOf(t)})},e,_t)},e.prototype.anyOf=function(){var e=this,t=G.apply(V,arguments),n=this._cmp;try{t.sort(n)}catch(o){return $t(this,Ot)}if(0===t.length)return Ut(this);var i=new this.Collection(this,function(){return Qt(t[0],t[t.length-1])});i._ondirectionchange=function(i){t.sort(n="next"===i?e._ascending:e._descending)};var r=0;return i._addAlgorithm(function(e,i,o){for(var s=e.key;n(s,t[r])>0;)if(++r===t.length)return i(o),!1;return 0===n(s,t[r])||(i(function(){e.continue(t[r])}),!1)}),i},e.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var e=G.apply(V,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(n){return $t(this,Ot)}var t=e.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(e,t){var n=this,i=this._cmp,r=this._ascending,o=this._descending,s=this._min,a=this._max;if(0===e.length)return Ut(this);if(!e.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0}))return $t(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",re.InvalidArgument);var c,l=!t||!1!==t.includeLowers,u=t&&!0===t.includeUppers,h=r;function d(e,t){return h(e[0],t[0])}try{(c=e.reduce(function(e,t){for(var n=0,r=e.length;n0){o[0]=s(o[0],t[0]),o[1]=a(o[1],t[1]);break}}return n===r&&e.push(t),e},[])).sort(d)}catch(v){return $t(this,Ot)}var p=0,f=u?function(e){return r(e,c[p][1])>0}:function(e){return r(e,c[p][1])>=0},g=l?function(e){return o(e,c[p][0])>0}:function(e){return o(e,c[p][0])>=0},m=f,b=new this.Collection(this,function(){return Qt(c[0][0],c[c.length-1][1],!l,!u)});return b._ondirectionchange=function(e){"next"===e?(m=f,h=r):(m=g,h=o),c.sort(d)},b._addAlgorithm(function(e,t,i){for(var o=e.key;m(o);)if(++p===c.length)return t(i),!1;return!!function(e){return!f(e)&&!g(e)}(o)||(0===n._cmp(o,c[p][1])||0===n._cmp(o,c[p][0])||t(function(){e.continue(h===r?c[p][0]:c[p][1])}),!1)}),b},e.prototype.startsWithAnyOf=function(){var e=G.apply(V,arguments);return e.every(function(e){return"string"==typeof e})?0===e.length?Ut(this):this.inAnyRange(e.map(function(e){return[e,e+_t]})):$t(this,"startsWithAnyOf() only works with strings")},e}();function Yt(e){return 1===e.length?e[0]:e}function Jt(e){try{return e.only([[]]),[[]]}catch(t){return _t}}function Zt(e){return Ze(function(t){return en(t),e(t.target.error),!1})}function en(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var tn=function(){function e(){}return e.prototype._lock=function(){return _(!Re.global),++this._reculock,1!==this._reculock||Re.global||(Re.lockOwnerFor=this),this},e.prototype._unlock=function(){if(_(!Re.global),0==--this._reculock)for(Re.global||(Re.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ft(e[1],e[0])}catch(t){}}return this},e.prototype._locked=function(){return this._reculock&&Re.lockOwnerFor!==this},e.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,i=this.db._state.dbOpenError;if(_(!this.idbtrans),!e&&!n)switch(i&&i.name){case"DatabaseClosedError":throw new re.DatabaseClosed(i);case"MissingAPIError":throw new re.MissingAPI(i.message,i);default:throw new re.OpenFailed(i)}if(!this.active)throw new re.TransactionInactive;return _(null===this._completion._state),(e=this.idbtrans=e||n.transaction(Yt(this.storeNames),this.mode)).onerror=Ze(function(n){en(n),t._reject(e.error)}),e.onabort=Ze(function(n){en(n),t.active&&t._reject(new re.Abort(e.error)),t.active=!1,t.on("abort").fire(n)}),e.oncomplete=Ze(function(){t.active=!1,t._resolve()}),this},e.prototype._promise=function(e,t,n){var i=this;if("readwrite"===e&&"readwrite"!==this.mode)return yt(new re.ReadOnly("Transaction is readonly"));if(!this.active)return yt(new re.TransactionInactive);if(this._locked())return new Fe(function(r,o){i._blockedFuncs.push([function(){i._promise(e,t,n).then(r,o)},Re])});if(n)return st(function(){var e=new Fe(function(e,n){i._lock();var r=t(e,n,i);r&&r.then&&r.then(e,n)});return e.finally(function(){return i._unlock()}),e._lib=!0,e});var r=new Fe(function(e,n){var r=t(e,n,i);r&&r.then&&r.then(e,n)});return r._lib=!0,r},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(e){var t=this._root(),n=Fe.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(function(){return n});else{t._waitingFor=n,t._waitingQueue=[];var i=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(i.get(-1/0).onsuccess=e)}()}var r=t._waitingFor;return new Fe(function(e,i){n.then(function(n){return t._waitingQueue.push(Ze(e.bind(null,n)))},function(e){return t._waitingQueue.push(Ze(i.bind(null,e)))}).finally(function(){t._waitingFor===r&&(t._waitingFor=null)})})},e.prototype.abort=function(){this.active&&this._reject(new re.Abort),this.active=!1},e.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(h(t,e))return t[e];var n=this.schema[e];if(!n)throw new re.NotFound("Table "+e+" not part of transaction");var i=new this.db.Table(e,n,this);return i.core=this.db.core.table(e),t[e]=i,i},e}();function nn(e,t,n,i,r,o,s){return{name:e,keyPath:t,unique:n,multi:i,auto:r,compound:o,src:(n&&!s?"&":"")+(i?"*":"")+(r?"++":"")+rn(t)}}function rn(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function on(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:C(n,function(e){return[e.name,e]})}}function sn(e){return null==e?function(){}:"string"==typeof e?function(e){return 1===e.split(".").length?function(t){return t[e]}:function(t){return E(t,e)}}(e):function(t){return E(t,e)}}function an(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}function cn(e){return[].slice.call(e)}var ln=0;function un(e){return null==e?":id":"string"==typeof e?e:"["+e.join("+")+"]"}function hn(e,t,n,i){var o=t.cmp.bind(t);function a(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var t=e.lower,i=e.upper,r=e.lowerOpen,o=e.upperOpen;return void 0===t?void 0===i?null:n.upperBound(i,!!o):void 0===i?n.lowerBound(t,!!r):n.bound(t,i,!!r,!!o)}var c=function(e,t){var n=cn(e.objectStoreNames);return{schema:{name:e.name,tables:n.map(function(e){return t.objectStore(e)}).map(function(e){var t=e.keyPath,n=e.autoIncrement,i=s(t),r={},o={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==t,compound:i,keyPath:t,autoIncrement:n,unique:!0,extractKey:sn(t)},indexes:cn(e.indexNames).map(function(t){return e.index(t)}).map(function(e){var t=e.unique,n=e.multiEntry,i=e.keyPath,o={name:e.name,compound:s(i),keyPath:i,unique:t,multiEntry:n,extractKey:sn(i)};return r[un(i)]=o,o}),getIndexByKeyPath:function(e){return r[un(e)]}};return r[":id"]=o.primaryKey,null!=t&&(r[un(t)]=o.primaryKey),o})},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,i),l=c.schema,u=c.hasGetAll,h=l.tables.map(function(e){return function(e){var t=e.name;return{name:t,schema:e,mutate:function(n){var i=n.trans,o=n.type,s=n.keys,c=n.values,l=n.range,u=n.wantResults;return new Promise(function(n,h){n=Ze(n);var d=i.objectStore(t),p=null==d.keyPath,f="put"===o||"add"===o;if(!f&&"delete"!==o&&"deleteRange"!==o)throw new Error("Invalid operation type: "+o);var g=(s||c||{length:1}).length;if(s&&c&&s.length!==c.length)throw new Error("Given keys array must have same length as given values array.");if(0===g)return n({numFailures:0,failures:{},results:[],lastResult:void 0});var m,b=u&&r(s||an(e.primaryKey,{type:o,keys:s,values:c})),v=[],y=0,w=function(e){++y,en(e),b&&(b[e.target._reqno]=void 0),v[e.target._reqno]=e.target.error},_=function(e){var t=e.target;b[t._reqno]=t.result};if("deleteRange"===o){if(4===l.type)return n({numFailures:y,failures:v,results:b,lastResult:void 0});m=3===l.type?d.clear():d.delete(a(l))}else{var O=f?p?[c,s]:[c,null]:[s,null],C=O[0],E=O[1];if(f)for(var S=0;S0||s.add.length>0||s.change.length>0)&&i.change.push(s)}}else i.add.push([n,o])}return i}function bn(e,t,n,i){var r=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return i.forEach(function(e){return vn(r,e)}),r}function vn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function yn(e,t,n){var i={};return y(t.objectStoreNames,0).forEach(function(e){for(var t=n.objectStore(e),r=t.keyPath,o=nn(rn(r),r||"",!1,!1,!!t.autoIncrement,r&&"string"!=typeof r,!0),s=[],a=0;a0,h=i(i({},n),{isVirtual:u,isPrimaryKey:!u&&n.isPrimaryKey,keyTail:t,keyLength:l,extractKey:sn(e),unique:!u&&n.unique});return c.push(h),h.isPrimaryKey||s.push(h),l>1&&a(2===l?e[0]:e.slice(0,l-1),t+1,n),c.sort(function(e,t){return e.keyTail-t.keyTail}),h}var c=a(r.primaryKey.keyPath,0,r.primaryKey);o[":id"]=[c];for(var l=0,u=r.indexes;l0?Promise.reject(n.failures[0]):o.length0?e:t},this._min=function(e,t){return r.cmp(e,t)<0?e:t},this._IDBKeyRange=e._deps.IDBKeyRange})}(this),this.on("versionchange",function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()}),this.on("blocked",function(e){!e.newVersion||e.newVersionMath.pow(2,62)?0:i.oldVersion;e.idbdb=c.result,function(e,t,n,i){var r=e._dbSchema,s=e._createTransaction("readwrite",e._storeNames,r);s.create(n),s._completion.catch(i);var a=s._reject.bind(s),c=Re.transless||Re;st(function(){Re.trans=s,Re.transless=c,0===t?(o(r).forEach(function(e){bn(n,e,r[e].primKey,r[e].indexes)}),dn(e,n),Fe.follow(function(){return e.on.populate.fire(s)}).catch(a)):function(e,t,n,i){var r=[],s=e._versions,a=e._dbSchema=yn(0,e.idbdb,i),c=!1;return s.filter(function(e){return e._cfg.version>=t}).forEach(function(s){r.push(function(){var r=a,l=s._cfg.dbschema;wn(e,r,i),wn(e,l,i),a=e._dbSchema=l;var u=mn(r,l);u.add.forEach(function(e){bn(i,e[0],e[1].primKey,e[1].indexes)}),u.change.forEach(function(e){if(e.recreate)throw new re.Upgrade("Not yet support for changing primary key");var t=i.objectStore(e.name);e.add.forEach(function(e){return vn(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),vn(t,e)}),e.del.forEach(function(e){return t.deleteIndex(e)})});var h=s._cfg.contentUpgrade;if(h&&s._cfg.version>t){dn(e,i),n._memoizedTables={},c=!0;var d=x(l);u.del.forEach(function(e){d[e]=r[e]}),fn(e,[e.Transaction.prototype]),pn(e,[e.Transaction.prototype],o(d),d),n.schema=d;var p,f=B(h);f&&at();var g=Fe.follow(function(){if((p=h(n))&&f){var e=ct.bind(null,null);p.then(e,e)}});return p&&"function"==typeof p.then?Fe.resolve(p):g.then(function(){return p})}}),r.push(function(t){c&&St||function(e,t){for(var n=0;n0)try{var l=n.transaction(Yt(s),"readonly");t.autoSchema?function(e,t,n){e.verno=t.version/10;var i=e._dbSchema=yn(0,t,n);e._storeNames=y(t.objectStoreNames,0),pn(e,[e._allTables],o(i),i)}(e,n,l):(wn(e,e._dbSchema,l),function(e,t){var n=mn(yn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some(function(e){return e.add.length||e.change.length}))}(e,l)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),dn(e,l)}catch(u){}Ct.push(e),n.onversionchange=Ze(function(n){t.vcFired=!0,e.on("versionchange").fire(n)}),_n.add(a),i()},s)})]).then(function(){return t.onReadyBeingFired=[],Fe.resolve(Cn(e.on.ready.fire)).then(function e(){if(t.onReadyBeingFired.length>0){var n=t.onReadyBeingFired.reduce(ge,ae);return t.onReadyBeingFired=[],Fe.resolve(Cn(n)).then(e)}})}).finally(function(){t.onReadyBeingFired=null}).then(function(){return t.isBeingOpened=!1,e}).catch(function(n){try{r&&r.abort()}catch(i){}return t.isBeingOpened=!1,e.close(),t.dbOpenError=n,yt(t.dbOpenError)}).finally(function(){t.openComplete=!0,i()})}(this)},e.prototype.close=function(){var e=Ct.indexOf(this),t=this._state;if(e>=0&&Ct.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(n){}this.idbdb=null}this._options.autoOpen=!1,t.dbOpenError=new re.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError),t.dbReadyPromise=new Fe(function(e){t.dbReadyResolve=e}),t.openCanceller=new Fe(function(e,n){t.cancelOpen=n})},e.prototype.delete=function(){var e=this,t=arguments.length>0,n=this._state;return new Fe(function(i,r){var o=function(){e.close();var t=e._deps.indexedDB.deleteDatabase(e.name);t.onsuccess=Ze(function(){_n.remove(e.name),i()}),t.onerror=Zt(r),t.onblocked=e._fireOnBlocked};if(t)throw new re.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(o):o()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return o(this._allTables).map(function(t){return e._allTables[t]})},enumerable:!0,configurable:!0}),e.prototype.transaction=function(){var e=Sn.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var i=this,r=Re.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);var o,s,a=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(s=t.map(function(e){var t=e instanceof i.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||"readonly"===e)o="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new re.InvalidArgument("Invalid transaction mode: "+e);o="readwrite"}if(r){if("readonly"===r.mode&&"readwrite"===o){if(!a)throw new re.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&s.forEach(function(e){if(r&&-1===r.storeNames.indexOf(e)){if(!a)throw new re.SubTransaction("Table "+e+" not included in parent transaction.");r=null}}),a&&r&&!r.active&&(r=null)}}catch(l){return r?r._promise(null,function(e,t){t(l)}):yt(l)}var c=Tn.bind(null,this,o,s,r,n);return r?r._promise(o,c,"lock"):Re.trans?ft(Re.transless,function(){return i._whenReady(c)}):this._whenReady(c)},e.prototype.table=function(e){if(!h(this._allTables,e))throw new re.InvalidTable("Table "+e+" does not exist");return this._allTables[e]},e}(),zn=Dn;d(zn,i(i({},se),{delete:function(e){return new zn(e).delete()},exists:function(e){return new zn(e,{addons:[]}).open().then(function(e){return e.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){return _n?_n.getDatabaseNames().then(e):Fe.resolve([])},defineClass:function(){return function(e){c(this,e)}},ignoreTransaction:function(e){return Re.trans?ft(Re.transless,e):e()},vip:Cn,async:function(e){return function(){try{var t=En(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Fe.resolve(t)}catch(n){return yt(n)}}},spawn:function(e,t,n){try{var i=En(e.apply(n,t||[]));return i&&"function"==typeof i.then?i:Fe.resolve(i)}catch(r){return yt(r)}},currentTransaction:{get:function(){return Re.trans||null}},waitFor:function(e,t){var n=Fe.resolve("function"==typeof e?zn.ignoreTransaction(e):e).timeout(t||6e4);return Re.trans?Re.trans.waitFor(n):n},Promise:Fe,debug:{get:function(){return W},set:function(e){$(e,"dexie"===e?function(){return!0}:xt)}},derive:g,extend:c,props:d,override:w,Events:jt,getByKeyPath:E,setByKeyPath:S,delByKeyPath:T,shallowClone:x,deepClone:A,getObjectDiff:M,asap:O,minKey:-1/0,addons:[],connections:Ct,errnames:ne,dependencies:function(){try{return{indexedDB:a.indexedDB||a.mozIndexedDB||a.webkitIndexedDB||a.msIndexedDB,IDBKeyRange:a.IDBKeyRange||a.webkitIDBKeyRange}}catch(e){return{indexedDB:null,IDBKeyRange:null}}}(),semVer:"3.0.3",version:"3.0.3".split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,2*n)}),default:zn,Dexie:zn})),zn.maxKey=Jt(zn.dependencies.IDBKeyRange),function(e){try{_n=function(e){var t,n=e&&"function"==typeof e.databases;if(!n){var i=new Dn("__dbnames",{addons:[]});i.version(1).stores({dbnames:"name"}),t=i.table("dbnames")}return{getDatabaseNames:function(){return n?Fe.resolve(e.databases()).then(function(e){return e.map(function(e){return e.name}).filter(function(e){return"__dbnames"!==e})}):t.toCollection().primaryKeys()},add:function(e){return!n&&"__dbnames"!==e&&t.put({name:e}).catch(ae)},remove:function(e){return!n&&"__dbnames"!==e&&t.delete(e).catch(ae)}}}(e)}catch(t){}}(Dn.dependencies.indexedDB),Fe.rejectionMapper=function(e,t){if(!e||e instanceof J||e instanceof TypeError||e instanceof SyntaxError||!e.name||!oe[e.name])return e;var n=new oe[e.name](t||e.message,e);return"stack"in e&&f(n,"stack",{get:function(){return this.inner.stack}}),n},$(W,xt);var jn=Dn,An=n("fXoL");let Rn=(()=>{class e extends jn{constructor(){super("AltairDB"),this.schema()}schema(){this.version(2).stores({queryCollections:"++id, title",appState:"key"})}now(){return+new Date}clearAllLocalData(){jn.getDatabaseNames().then(e=>{e.forEach(e=>{new jn(e).delete().catch(()=>{})})}),localStorage.clear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=An.Mb({token:e,factory:e.\u0275fac}),e})()},E9SJ:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("Y/la");function r(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=Object(i.a)(e);n",triples:"",explode:"[]{}"},n=e.Pos;function i(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,s){s&&s!=e.Init&&(t.removeKeyMap(r),t.state.closeBrackets=null),n&&(o(i(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(r))});var r={Backspace:function(t){var r=a(t);if(!r||t.getOption("disableInput"))return e.Pass;for(var o=i(r,"pairs"),s=t.listSelections(),l=0;l=0;l--){var h=s[l].head;t.replaceRange("",n(h.line,h.ch-1),n(h.line,h.ch+1),"+delete")}},Enter:function(t){var n=a(t),r=n&&i(n,"explode");if(!r||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),s=0;s1&&d.indexOf(r)>=0&&t.getRange(n(y.line,y.ch-2),y)==r+r){if(y.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(y.line,y.ch-2))))return e.Pass;b="addFour"}else if(p){var _=0==y.ch?" ":t.getRange(n(y.line,y.ch-1),y);if(e.isWordChar(w)||_==r||e.isWordChar(_))return e.Pass;b="both"}else{if(!g||!(0===w.length||/\s/.test(w)||h.indexOf(w)>-1))return e.Pass;b="both"}else b=p&&l(t,y)?"both":d.indexOf(r)>=0&&t.getRange(y,n(y.line,y.ch+3))==r+r+r?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var O=c%2?s.charAt(c-1):r,C=c%2?r:s.charAt(c+1);t.operation(function(){if("skip"==u)t.execCommand("goCharRight");else if("skipThree"==u)for(var i=0;i<3;i++)t.execCommand("goCharRight");else if("surround"==u){var r=t.getSelections();for(i=0;i0,{anchor:new n(o.anchor.line,o.anchor.ch+(s?-1:1)),head:new n(o.head.line,o.head.ch+(s?1:-1))});t.setSelections(r)}else"both"==u?(t.replaceSelection(O+C,null),t.triggerElectric(O+C),t.execCommand("goCharLeft")):"addFour"==u&&(t.replaceSelection(O+O+O+O,"before"),t.execCommand("goCharRight"));var o,s})}(r,t)}}function a(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function c(e,t){var i=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==i.length?i:null}function l(e,t){var i=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(i.type)&&i.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n("VrN/"))},EMzn:function(e,t,n){"use strict";n.r(t),n.d(t,"parse",function(){return d}),n.d(t,"parseValue",function(){return p}),n.d(t,"parseType",function(){return f});var i=n("rWdj"),r=n("t3R0"),o=n("vJkw"),s=n("oycr"),a=n("/jXB"),c=n("neE4"),l=n("CbW8"),u=n("F8X2"),h=n("JvOi");function d(e,t){return new g(e,t).parseDocument()}function p(e,t){var n=new g(e,t);n.expectToken(h.a.SOF);var i=n.parseValueLiteral(!1);return n.expectToken(h.a.EOF),i}function f(e,t){var n=new g(e,t);n.expectToken(h.a.SOF);var i=n.parseTypeReference();return n.expectToken(h.a.EOF),i}var g=function(){function e(e,t){var n="string"==typeof e?new c.a(e):e;n instanceof c.a||Object(r.a)(0,"Must provide Source. Received: ".concat(Object(i.a)(n))),this._lexer=Object(l.a)(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(h.a.NAME);return{kind:a.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:a.a.DOCUMENT,definitions:this.many(h.a.SOF,this.parseDefinition,h.a.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(h.a.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(h.a.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(h.a.BRACE_L))return{kind:a.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(h.a.NAME)&&(t=this.parseName()),{kind:a.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(h.a.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(h.a.PAREN_L,this.parseVariableDefinition,h.a.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:a.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.a.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(h.a.DOLLAR),{kind:a.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:a.a.SELECTION_SET,selections:this.many(h.a.BRACE_L,this.parseSelection,h.a.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(h.a.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(h.a.COLON)?(e=i,t=this.parseName()):t=i,{kind:a.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.a.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){return this.optionalMany(h.a.PAREN_L,e?this.parseConstArgument:this.parseArgument,h.a.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(h.a.COLON),{kind:a.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:a.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(h.a.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(h.a.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(h.a.NAME)?{kind:a.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:a.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:a.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:a.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case h.a.BRACKET_L:return this.parseList(e);case h.a.BRACE_L:return this.parseObject(e);case h.a.INT:return this._lexer.advance(),{kind:a.a.INT,value:t.value,loc:this.loc(t)};case h.a.FLOAT:return this._lexer.advance(),{kind:a.a.FLOAT,value:t.value,loc:this.loc(t)};case h.a.STRING:case h.a.BLOCK_STRING:return this.parseStringLiteral();case h.a.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:a.a.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:a.a.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:a.a.ENUM,value:t.value,loc:this.loc(t)});case h.a.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:a.a.STRING,value:e.value,block:e.kind===h.a.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:a.a.LIST,values:this.any(h.a.BRACKET_L,function(){return t.parseValueLiteral(e)},h.a.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:a.a.OBJECT,fields:this.any(h.a.BRACE_L,function(){return t.parseObjectField(e)},h.a.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(h.a.COLON),{kind:a.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(h.a.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(h.a.AT),{kind:a.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(h.a.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(h.a.BRACKET_R),e={kind:a.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(h.a.BANG)?{kind:a.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:a.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===h.a.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(h.a.STRING)||this.peek(h.a.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.many(h.a.BRACE_L,this.parseOperationTypeDefinition,h.a.BRACE_R);return{kind:a.a.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.a.COLON);var n=this.parseNamedType();return{kind:a.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:a.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:a.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(h.a.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(h.a.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(h.a.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(h.a.BRACE_L)&&this._lexer.lookahead().kind===h.a.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(h.a.BRACE_L,this.parseFieldDefinition,h.a.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(h.a.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:a.a.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(h.a.PAREN_L,this.parseInputValueDef,h.a.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(h.a.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(h.a.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:a.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();return{kind:a.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:a.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(h.a.EQUALS)){this.expectOptionalToken(h.a.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(h.a.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:a.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(h.a.BRACE_L,this.parseEnumValueDefinition,h.a.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:a.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:a.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(h.a.BRACE_L,this.parseInputValueDef,h.a.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===h.a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(h.a.BRACE_L,this.parseOperationTypeDefinition,h.a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:a.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:a.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:a.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:a.a.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:a.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:a.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:a.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(h.a.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:a.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(h.a.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(h.a.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==u.a[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new m(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Object(s.a)(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(b(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==h.a.NAME||t.value!==e)throw Object(s.a)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(b(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===h.a.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return Object(s.a)(this._lexer.source,t.start,"Unexpected ".concat(b(t)))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},e}();function m(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function b(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}Object(o.a)(m,function(){return{start:this.start,end:this.end}})},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return c});var i=n("XNiG"),r=n("HDdC"),o=(n("7o/Q"),n("quSY")),s=n("x+ZX");class a extends r.a{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 o.a,e.add(this.source.subscribe(new l(this.getSubject(),this))),e.closed&&(this._connection=null,e=o.a.EMPTY)),e}refCount(){return Object(s.a)()(this)}}const c=(()=>{const e=a.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 l extends i.b{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()}}}},ESbf:function(e,t,n){"use strict";e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i=n("HDdC");const r=new i.a(e=>e.complete());function o(e){return e?function(e){return new i.a(t=>e.schedule(()=>t.complete()))}(e):r}},EkME:function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p});var i=n("t3R0"),r=n("dWS+"),o=n("L2ys"),s=n("93gR"),a=n("4RMZ"),c=n("FQ53"),l=n("jOXf");function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new a.a(e),h=arguments.length>4?arguments[4]:void 0;t||Object(i.a)(0,"Must provide document"),Object(s.a)(e);var d=Object.freeze({}),p=[],f=h&&h.maxErrors,g=new l.b(e,t,u,function(e){if(null!=f&&p.length>=f)throw p.push(new r.a("Too many validation errors, error limit reached. Validation aborted.")),d;p.push(e)}),m=Object(o.d)(n.map(function(e){return e(g)}));try{Object(o.c)(t,Object(o.e)(u,m))}catch(b){if(b!==d)throw b}return p}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.b,i=[],r=new l.a(e,t,function(e){i.push(e)}),s=n.map(function(e){return e(r)});return Object(o.c)(e,Object(o.d)(s)),i}function d(e){var t=h(e);if(0!==t.length)throw new Error(t.map(function(e){return e.message}).join("\n\n"))}function p(e,t){var n=h(e,t);if(0!==n.length)throw new Error(n.map(function(e){return e.message}).join("\n\n"))}Object.freeze({})},EkS5:function(e,t,n){"use strict";n.d(t,"e",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return h}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return p});var i="function"==typeof Symbol?Symbol:void 0,r=i&&i.iterator;function o(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function s(e){return Object(e)===e&&(o(e)||function(e){return!!a(e)}(e))}function a(e){if(null!=e){var t=r&&e[r]||e["@@iterator"];if("function"==typeof t)return t}}function c(e){this._o=e,this._i=0}function l(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var i=0,r=function(e){var t=a(e);if(t)return t.call(e)}(e);if(r){for(var s;!(s=r.next()).done;)if(t.call(n,s.value,i++,e),i>9999999)throw new TypeError("Near-infinite iteration.")}else if(o(e))for(;i=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}};var u=i&&i.asyncIterator,h=u||"@@asyncIterator";function d(e){return!!f(e)}function p(e){var t=f(e);if(t)return t.call(e)}function f(e){if(null!=e){var t=u&&e[u]||e["@@asyncIterator"];if("function"==typeof t)return t}}function g(e){this._i=e}function m(e,t,n){var i;return new Promise(function(r){r((i=e[t](n)).value)}).then(function(e){return{value:e,done:i.done}})}g.prototype[h]=function(){return this},g.prototype.next=function(e){return m(this._i,"next",e)},g.prototype.return=function(e){return this._i.return?m(this._i,"return",e):Promise.resolve({value:e,done:!0})},g.prototype.throw=function(e){return this._i.throw?m(this._i,"throw",e):Promise.reject(e)}},EzuI:function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"b",function(){return C});var i=n("mrSG"),r=n("fXoL"),o=n("tk/3"),s=n("lJxs"),a=n("3Pt+"),c=n("ofXK");const l=["autoCompleteInput"],u=["autoCompleteContainer"];function h(e,t){if(1&e){const e=r.Xb();r.Wb(0,"input",4,5),r.dc("focus",function(t){return r.wc(e),r.gc().showDropdownList(t)})("blur",function(t){return r.wc(e),r.gc().blurHandler(t)})("keydown",function(t){return r.wc(e),r.gc().inputElKeyHandler(t)})("input",function(t){return r.wc(e),r.gc().reloadListInDelay(t)})("ngModelChange",function(t){return r.wc(e),r.gc().keyword=t}),r.Vb()}if(2&e){const e=r.gc();r.nc("placeholder",e.placeholder),r.mc("ngModel",e.keyword),r.Fb("autocomplete",e.autocomplete?"null":"off")}}function d(e,t){if(1&e&&r.Rb(0,"li",12),2&e){const e=r.gc(2);r.mc("innerHTML",e.loadingTemplate,r.xc)}}function p(e,t){if(1&e&&(r.Wb(0,"li",13),r.Gc(1),r.Vb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.loadingText)}}function f(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",14),r.dc("mousedown",function(){return r.wc(e),r.gc(2).selectOne("")}),r.Gc(1),r.Vb()}if(2&e){const e=r.gc(2);r.Eb(1),r.Ic("",e.noMatchFoundText||"No Result Found","\n ")}}function g(e,t){if(1&e&&r.Rb(0,"li",15),2&e){const e=r.gc(2);r.mc("innerHTML",e.headerItemTemplate,r.xc)}}function m(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",16),r.dc("mousedown",function(){return r.wc(e),r.gc(2).selectOne("")}),r.Gc(1),r.Vb()}if(2&e){const e=r.gc(2);r.Eb(1),r.Ic("",e.blankOptionText,"\n ")}}const b=function(e){return{selected:e}};function v(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",17),r.dc("mousedown",function(){r.wc(e);const n=t.$implicit;return r.gc(2).selectOne(n)}),r.Gc(1,"\n "),r.Vb()}if(2&e){const e=t.$implicit,n=t.index,i=r.gc(2);r.mc("ngClass",r.pc(2,b,n===i.itemIndex))("innerHtml",i.autoComplete.getFormattedListItem(e),r.xc)}}function y(e,t){if(1&e&&(r.Wb(0,"ul"),r.Gc(1,"\n "),r.Ec(2,d,1,1,"li",6),r.Gc(3,"\n "),r.Ec(4,p,2,1,"li",7),r.Gc(5,"\n "),r.Ec(6,f,2,1,"li",8),r.Gc(7,"\n "),r.Ec(8,g,1,1,"li",9),r.Gc(9,"\n "),r.Ec(10,m,2,1,"li",10),r.Gc(11,"\n "),r.Ec(12,v,2,4,"li",11),r.Gc(13,"\n "),r.Vb()),2&e){const e=r.gc();r.Ib("empty",e.emptyList),r.Eb(2),r.mc("ngIf",e.isLoading&&e.loadingTemplate),r.Eb(2),r.mc("ngIf",e.isLoading&&!e.loadingTemplate),r.Eb(2),r.mc("ngIf",e.minCharsEntered&&!e.isLoading&&!e.filteredList.length),r.Eb(2),r.mc("ngIf",e.headerItemTemplate&&e.filteredList.length),r.Eb(2),r.mc("ngIf",e.blankOptionText&&e.filteredList.length),r.Eb(2),r.mc("ngForOf",e.filteredList)("ngForTrackBy",e.trackByIndex)}}let w=(()=>{let e=class{constructor(e){this.http=e}filter(e,t,n,i){return e.filter(i?e=>{const i=n?this.getFormattedListItem(e).toLowerCase():JSON.stringify(e).toLowerCase();return t=t.toLowerCase(),-1!==i.normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(t.normalize("NFD").replace(/[\u0300-\u036f]/g,""))}:e=>{const i=n?this.getFormattedListItem(e).toLowerCase():JSON.stringify(e).toLowerCase();return t=t.toLowerCase(),-1!==i.indexOf(t)})}getFormattedListItem(e){let t;const n=this.listFormatter||"(id) value";if("function"==typeof n)t=n.apply(this,[e]);else if("object"!=typeof e)t=e;else if("string"==typeof n){t=n;const i=n.match(/[a-zA-Z0-9_\$]+/g);i&&"string"!=typeof e&&i.forEach(n=>{t=t.replace(n,e[n])})}return t}getRemoteData(e){if("string"!=typeof this.source)throw new TypeError("Invalid type of source, must be a string. e.g. http://www.google.com?q=:my_keyword");if(!this.http)throw new Error("Http is required.");const t=this.source.match(/:[a-zA-Z_]+/);if(null===t)throw new Error("Replacement word is missing.");const n=this.source.replace(t[0],e);return this.http.get(n).pipe(Object(s.a)(e=>(this.pathToData&&this.pathToData.split(".").forEach(t=>e=e[t]),e)))}};return e.\u0275fac=function(t){return new(t||e)(r.ac(o.c,8))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(o.c,8))},token:e,providedIn:"root"}),e=Object(i.b)([Object(i.d)(0,Object(r.C)())],e),e})(),_=(()=>{let e=class{constructor(e,t){this.autoComplete=t,this.autocomplete=!1,this.minChars=0,this.acceptUserInput=!0,this.loadingText="Loading",this.loadingTemplate=null,this.showInputTag=!0,this.showDropdownOnInit=!1,this.tabToSelect=!0,this.matchFormatted=!1,this.autoSelectFirstItem=!1,this.selectOnBlur=!1,this.reFocusAfterSelect=!0,this.headerItemTemplate=null,this.ignoreAccents=!0,this.valueSelected=new r.n,this.customSelected=new r.n,this.textEntered=new r.n,this.dropdownVisible=!1,this.isLoading=!1,this.filteredList=[],this.minCharsEntered=!1,this.itemIndex=null,this.timer=0,this.delay=(()=>{let e=null;return(t,n)=>{clearTimeout(e),e=setTimeout(t,n)}})(),this.selectOnEnter=!1,this.reloadListInDelay=e=>{const t=this.isSrcArr()?10:500,n=e.target.value;this.delay(()=>this.reloadList(n),t)},this.inputElKeyHandler=e=>{const t=this.filteredList.length;switch(!this.selectOnEnter&&this.autoSelectFirstItem&&0!==t&&(this.selectOnEnter=!0),e.keyCode){case 27:this.selectOnEnter=!1,this.selectOne(void 0);break;case 38:if(0===t)return;this.selectOnEnter=!0,this.itemIndex=(t+this.itemIndex-1)%t,this.scrollToView(this.itemIndex);break;case 40:if(0===t)return;this.selectOnEnter=!0,this.dropdownVisible=!0;let n=this.itemIndex;n=null===this.itemIndex?0:n+1,this.itemIndex=(t+n)%t,this.scrollToView(this.itemIndex);break;case 13:this.selectOnEnter&&this.selectOne(this.filteredList[this.itemIndex]),e.preventDefault();break;case 9:this.tabToSelect&&this.selectOne(this.filteredList[this.itemIndex])}},this.el=e.nativeElement}ngOnInit(){this.autoComplete.source=this.source,this.autoComplete.pathToData=this.pathToData,this.autoComplete.listFormatter=this.listFormatter,this.autoSelectFirstItem&&(this.itemIndex=0),setTimeout(()=>{this.autoCompleteInput&&this.reFocusAfterSelect&&this.autoCompleteInput.nativeElement.focus(),this.showDropdownOnInit&&this.showDropdownList({target:{value:""}})})}isSrcArr(){return Array.isArray(this.source)}showDropdownList(e){this.dropdownVisible=!0,this.reloadList(e.target.value)}hideDropdownList(){this.selectOnEnter=!1,this.dropdownVisible=!1}findItemFromSelectValue(e){const t=this.filteredList.filter(t=>""+t===e);return t.length?t[0]:null}reloadList(e){this.filteredList=[],e.length<(this.minChars||0)?this.minCharsEntered=!1:(this.minCharsEntered=!0,this.isSrcArr()?(this.isLoading=!1,this.filteredList=this.autoComplete.filter(this.source,e,this.matchFormatted,this.ignoreAccents),this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))):(this.isLoading=!0,"function"==typeof this.source?this.source(e).subscribe(e=>{this.pathToData&&this.pathToData.split(".").forEach(t=>e=e[t]),this.filteredList=e,this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))},e=>null,()=>this.isLoading=!1):this.autoComplete.getRemoteData(e).subscribe(e=>{this.filteredList=e||[],this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))},e=>null,()=>this.isLoading=!1)))}selectOne(e){e||""===e?this.valueSelected.emit(e):this.customSelected.emit(this.keyword)}enterText(e){this.textEntered.emit(e)}blurHandler(e){this.selectOnBlur&&this.selectOne(this.filteredList[this.itemIndex]),this.hideDropdownList()}scrollToView(e){const t=this.autoCompleteContainer.nativeElement.querySelector("ul"),n=t.querySelector("li").offsetHeight,i=t.scrollTop,r=n*e;(ri+t.offsetHeight)&&(t.scrollTop=r)}trackByIndex(e,t){return e}get emptyList(){return!(this.isLoading||this.minCharsEntered&&!this.isLoading&&!this.filteredList.length||this.filteredList.length)}};return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(w))},e.\u0275cmp=r.Kb({type:e,selectors:[["ngui-auto-complete"]],viewQuery:function(e,t){if(1&e&&(r.Kc(l,1),r.Kc(u,1)),2&e){let e;r.sc(e=r.ec())&&(t.autoCompleteInput=e.first),r.sc(e=r.ec())&&(t.autoCompleteContainer=e.first)}},inputs:{autocomplete:"autocomplete",minChars:["min-chars","minChars"],acceptUserInput:["accept-user-input","acceptUserInput"],loadingText:["loading-text","loadingText"],loadingTemplate:["loading-template","loadingTemplate"],showInputTag:["show-input-tag","showInputTag"],showDropdownOnInit:["show-dropdown-on-init","showDropdownOnInit"],tabToSelect:["tab-to-select","tabToSelect"],matchFormatted:["match-formatted","matchFormatted"],autoSelectFirstItem:["auto-select-first-item","autoSelectFirstItem"],selectOnBlur:["select-on-blur","selectOnBlur"],reFocusAfterSelect:["re-focus-after-select","reFocusAfterSelect"],headerItemTemplate:["header-item-template","headerItemTemplate"],ignoreAccents:["ignore-accents","ignoreAccents"],listFormatter:["list-formatter","listFormatter"],source:"source",pathToData:["path-to-data","pathToData"],placeholder:"placeholder",blankOptionText:["blank-option-text","blankOptionText"],noMatchFoundText:["no-match-found-text","noMatchFoundText"],maxNumList:["max-num-list","maxNumList"]},outputs:{valueSelected:"valueSelected",customSelected:"customSelected",textEntered:"textEntered"},decls:11,vars:2,consts:[[1,"ngui-auto-complete"],["autoCompleteContainer",""],["class","keyword",3,"placeholder","ngModel","focus","blur","keydown","input","ngModelChange",4,"ngIf"],[3,"empty",4,"ngIf"],[1,"keyword",3,"placeholder","ngModel","focus","blur","keydown","input","ngModelChange"],["autoCompleteInput",""],["class","loading",3,"innerHTML",4,"ngIf"],["class","loading",4,"ngIf"],["class","no-match-found",3,"mousedown",4,"ngIf"],["class","header-item",3,"innerHTML",4,"ngIf"],["class","blank-item",3,"mousedown",4,"ngIf"],["class","item",3,"ngClass","innerHtml","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[1,"loading",3,"innerHTML"],[1,"loading"],[1,"no-match-found",3,"mousedown"],[1,"header-item",3,"innerHTML"],[1,"blank-item",3,"mousedown"],[1,"item",3,"ngClass","innerHtml","mousedown"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0,1),r.Gc(3,"\n "),r.Gc(4,"\n "),r.Ec(5,h,2,3,"input",2),r.Gc(6,"\n\n "),r.Gc(7,"\n "),r.Ec(8,y,14,9,"ul",3),r.Gc(9,"\n\n "),r.Vb(),r.Gc(10,"\n ")),2&e&&(r.Eb(5),r.mc("ngIf",t.showInputTag),r.Eb(3),r.mc("ngIf",t.dropdownVisible))},directives:[c.o,a.e,a.l,a.o,c.n,c.l],styles:["\n @keyframes slideDown {\n 0% {\n transform: translateY(-10px);\n }\n 100% {\n transform: translateY(0px);\n }\n }\n\n .ngui-auto-complete {\n background-color: transparent;\n }\n\n .ngui-auto-complete > input {\n outline: none;\n border: 0;\n padding: 2px;\n box-sizing: border-box;\n background-clip: content-box;\n }\n\n .ngui-auto-complete > ul {\n background-color: #fff;\n margin: 0;\n width: 100%;\n overflow-y: auto;\n list-style-type: none;\n padding: 0;\n border: 1px solid #ccc;\n box-sizing: border-box;\n animation: slideDown 0.1s;\n }\n\n .ngui-auto-complete > ul.empty {\n display: none;\n }\n\n .ngui-auto-complete > ul li {\n padding: 2px 5px;\n border-bottom: 1px solid #eee;\n }\n\n .ngui-auto-complete > ul li.selected {\n background-color: #ccc;\n }\n\n .ngui-auto-complete > ul li:last-child {\n border-bottom: none;\n }\n\n .ngui-auto-complete > ul li:not(.header-item):hover {\n background-color: #ccc;\n }"],encapsulation:2}),e})(),O=(()=>{let e=class{constructor(e,t,n){this.resolver=e,this.viewContainerRef=t,this.parentForm=n,this.autocomplete=!1,this.acceptUserInput=!0,this.loadingTemplate=null,this.loadingText="Loading",this.tabToSelect=!0,this.selectOnBlur=!1,this.matchFormatted=!1,this.autoSelectFirstItem=!1,this.openOnFocus=!0,this.closeOnFocusOut=!0,this.reFocusAfterSelect=!0,this.headerItemTemplate=null,this.ignoreAccents=!0,this.zIndex="1",this.isRtl=!1,this.ngModelChange=new r.n,this.valueChanged=new r.n,this.customSelected=new r.n,this.showAutoCompleteDropdown=e=>{if(this.dropdownJustHidden)return;this.hideAutoCompleteDropdown(),this.scheduledBlurHandler=null;const t=this.resolver.resolveComponentFactory(_);this.componentRef=this.viewContainerRef.createComponent(t);const n=this.componentRef.instance;n.keyword=this.inputEl.value,n.showInputTag=!1,n.pathToData=this.pathToData,n.minChars=this.minChars,n.source=this.source,n.placeholder=this.autoCompletePlaceholder,n.acceptUserInput=this.acceptUserInput,n.maxNumList=parseInt(this.maxNumList,10),n.loadingText=this.loadingText,n.loadingTemplate=this.loadingTemplate,n.listFormatter=this.listFormatter,n.blankOptionText=this.blankOptionText,n.noMatchFoundText=this.noMatchFoundText,n.tabToSelect=this.tabToSelect,n.selectOnBlur=this.selectOnBlur,n.matchFormatted=this.matchFormatted,n.autoSelectFirstItem=this.autoSelectFirstItem,n.headerItemTemplate=this.headerItemTemplate,n.ignoreAccents=this.ignoreAccents,n.valueSelected.subscribe(this.selectNewValue),n.textEntered.subscribe(this.enterNewText),n.customSelected.subscribe(this.selectCustomValue),this.acDropdownEl=this.componentRef.location.nativeElement,this.acDropdownEl.style.display="none",this.inputEl.parentElement.insertBefore(this.acDropdownEl,this.inputEl.nextSibling),this.revertValue=void 0!==this.ngModel?this.ngModel:this.inputEl.value,setTimeout(()=>{n.reloadList(this.inputEl.value),this.styleAutoCompleteDropdown(),n.dropdownVisible=!0})},this.hideAutoCompleteDropdown=e=>{if(this.componentRef){let t;const n=void 0!==this.revertValue;this.inputEl&&n&&!1===this.acceptUserInput&&(t=this.componentRef.instance.findItemFromSelectValue(this.inputEl.value)),this.componentRef.destroy(),this.componentRef=void 0,this.inputEl&&n&&!1===this.acceptUserInput&&null===t?this.selectNewValue(this.revertValue):this.inputEl&&!0===this.acceptUserInput&&void 0===t&&e&&e.target.value&&this.enterNewText(e.target.value)}this.dropdownJustHidden=!0,setTimeout(()=>this.dropdownJustHidden=!1,100)},this.styleAutoCompleteDropdown=()=>{if(this.componentRef){this.el.getBoundingClientRect();const e=this.inputEl.getBoundingClientRect(),t=e.bottom+100>window.innerHeight,n=this.isRtl?"right":"left";this.acDropdownEl.style.width=e.width+"px",this.acDropdownEl.style.position="absolute",this.acDropdownEl.style.zIndex=this.zIndex,this.acDropdownEl.style[n]="0",this.acDropdownEl.style.display="inline-block",t?this.acDropdownEl.style.bottom=`${e.height}px`:this.acDropdownEl.style.top=`${e.height}px`}},this.selectNewValue=e=>{e&&"object"==typeof e&&(e=this.setToStringFunction(e)),this.renderValue(e);let t=e;this.selectValueOf&&e[this.selectValueOf]&&(t=e[this.selectValueOf]),(this.parentForm&&this.formControlName||this.extFormControl)&&t&&this.formControl.patchValue(t),t!==this.ngModel&&this.ngModelChange.emit(t),this.valueChanged.emit(t),this.hideAutoCompleteDropdown(),setTimeout(()=>(this.reFocusAfterSelect&&this.inputEl.focus(),this.inputEl))},this.selectCustomValue=e=>{this.customSelected.emit(e),this.hideAutoCompleteDropdown(),setTimeout(()=>(this.reFocusAfterSelect&&this.inputEl.focus(),this.inputEl))},this.enterNewText=e=>{this.renderValue(e),this.ngModelChange.emit(e),this.valueChanged.emit(e),this.hideAutoCompleteDropdown()},this.keydownEventHandler=e=>{this.componentRef&&this.componentRef.instance.inputElKeyHandler(e)},this.inputEventHandler=e=>{if(this.componentRef){const t=this.componentRef.instance;t.dropdownVisible=!0,t.keyword=e.target.value,t.reloadListInDelay(e)}else this.showAutoCompleteDropdown()},this.el=this.viewContainerRef.element.nativeElement}ngOnInit(){this.documentClickListener=e=>{this.scheduledBlurHandler&&(this.scheduledBlurHandler(),this.scheduledBlurHandler=null)},document.addEventListener("click",this.documentClickListener),this.wrapperEl=document.createElement("div"),this.wrapperEl.className="ngui-auto-complete-wrapper",this.wrapperEl.style.position="relative",this.el.parentElement.insertBefore(this.wrapperEl,this.el.nextSibling),this.wrapperEl.appendChild(this.el),this.parentForm&&this.formControlName?this.parentForm.form?this.formControl=this.parentForm.form.get(this.formControlName):this.parentForm instanceof a.h&&(this.formControl=this.parentForm.control.controls[this.formControlName]):this.extFormControl&&(this.formControl=this.extFormControl),this.ngModel?this.selectNewValue(this.ngModel):this.formControl&&this.formControl.value&&this.selectNewValue(this.formControl.value)}ngAfterViewInit(){this.inputEl="INPUT"===this.el.tagName?this.el:this.el.querySelector("input"),this.openOnFocus&&this.inputEl.addEventListener("focus",e=>this.showAutoCompleteDropdown(e)),this.closeOnFocusOut&&this.inputEl.addEventListener("focusout",e=>this.hideAutoCompleteDropdown(e)),this.autocomplete||this.inputEl.setAttribute("autocomplete","off"),this.inputEl.addEventListener("blur",e=>{this.scheduledBlurHandler=()=>this.blurHandler(e)}),this.inputEl.addEventListener("keydown",e=>this.keydownEventHandler(e)),this.inputEl.addEventListener("input",e=>this.inputEventHandler(e))}ngOnDestroy(){this.componentRef&&(this.componentRef.instance.valueSelected.unsubscribe(),this.componentRef.instance.textEntered.unsubscribe()),this.documentClickListener&&document.removeEventListener("click",this.documentClickListener)}ngOnChanges(e){e.ngModel&&(this.ngModel=this.setToStringFunction(e.ngModel.currentValue),this.renderValue(this.ngModel))}blurHandler(e){if(this.componentRef){const t=this.componentRef.instance;this.selectOnBlur&&t.selectOne(t.filteredList[t.itemIndex]),this.closeOnFocusOut&&this.hideAutoCompleteDropdown(e)}}setToStringFunction(e){if(e&&"object"==typeof e){let t;if("string"==typeof this.valueFormatter){const n=this.valueFormatter.match(/[a-zA-Z0-9_\$]+/g);let i=this.valueFormatter;n&&"string"!=typeof e&&n.forEach(t=>{i=i.replace(t,e[t])}),t=i}else t="function"==typeof this.valueFormatter?this.valueFormatter(e):this.displayPropertyName?e[this.displayPropertyName]:"string"==typeof this.listFormatter&&this.listFormatter.match(/^\w+$/)?e[this.listFormatter]:e.value;e.toString=()=>t}return e}renderValue(e){this.inputEl&&(this.inputEl.value=""+e)}};return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.j),r.Qb(r.S),r.Qb(a.d,13))},e.\u0275dir=r.Lb({type:e,selectors:[["","auto-complete",""],["","ngui-auto-complete",""]],inputs:{autocomplete:"autocomplete",acceptUserInput:["accept-user-input","acceptUserInput"],loadingTemplate:["loading-template","loadingTemplate"],loadingText:["loading-text","loadingText"],tabToSelect:["tab-to-select","tabToSelect"],selectOnBlur:["select-on-blur","selectOnBlur"],matchFormatted:["match-formatted","matchFormatted"],autoSelectFirstItem:["auto-select-first-item","autoSelectFirstItem"],openOnFocus:["open-on-focus","openOnFocus"],closeOnFocusOut:["close-on-focusout","closeOnFocusOut"],reFocusAfterSelect:["re-focus-after-select","reFocusAfterSelect"],headerItemTemplate:["header-item-template","headerItemTemplate"],ignoreAccents:["ignore-accents","ignoreAccents"],zIndex:["z-index","zIndex"],isRtl:["is-rtl","isRtl"],ngModel:"ngModel",autoCompletePlaceholder:["auto-complete-placeholder","autoCompletePlaceholder"],source:"source",pathToData:["path-to-data","pathToData"],minChars:["min-chars","minChars"],displayPropertyName:["display-property-name","displayPropertyName"],maxNumList:["max-num-list","maxNumList"],selectValueOf:["select-value-of","selectValueOf"],listFormatter:["list-formatter","listFormatter"],blankOptionText:["blank-option-text","blankOptionText"],noMatchFoundText:["no-match-found-text","noMatchFoundText"],valueFormatter:["value-formatter","valueFormatter"],formControlName:"formControlName",extFormControl:["formControl","extFormControl"]},outputs:{ngModelChange:"ngModelChange",valueChanged:"valueChanged",customSelected:"customSelected"},features:[r.Cb]}),e=Object(i.b)([Object(i.d)(2,Object(r.C)()),Object(i.d)(2,Object(r.o)()),Object(i.d)(2,Object(r.M)())],e),e})(),C=(()=>{let e=class{};return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[c.c,a.i]]}),e})()},F5Mc:function(e,t,n){"use strict";var i=n("YyF0"),r=/^\s*class[\s{/}]/,o=Function.prototype.toString;e.exports=function(e){return!!i(e)&&!r.test(o.call(e))}},F8X2:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},FBZJ:function(e,t){function n(e){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="FBZJ"},FKvE:function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},"FM/B":function(e,t,n){"use strict";e.exports=function(){var e,t,n=Array.from;return"function"==typeof n&&(t=n(e=["raz","dwa"]),Boolean(t&&t!==e&&"dwa"===t[1]))}},FQ53:function(e,t,n){"use strict";n.d(t,"a",function(){return L}),n.d(t,"b",function(){return M});var i=n("ZfCc"),r=n("v96Q"),o=n("g4S7"),s=n("gggk"),a=n("10sW"),c=n("2Rkc"),l=n("0xor"),u=n("2/d+"),h=n("sdW/"),d=n("lORA"),p=n("E++1"),f=n("ZBm+"),g=n("FduV"),m=n("AeAO"),b=n("U4FY"),v=n("PmNC"),y=n("A67W"),w=n("VlWk"),_=n("sA7U"),O=n("y8IY"),C=n("/C/i"),E=n("AW/X"),S=n("Vuqn"),T=n("cfc+"),x=n("r60r"),k=n("dwPZ"),I=n("AF4T"),D=n("+zUi"),z=n("pLY/"),j=n("wpgB"),A=n("iyJ7"),R=n("herJ"),N=n("OO9G"),L=Object.freeze([i.ExecutableDefinitions,r.a,o.a,s.a,a.a,c.a,l.a,u.a,h.a,d.a,p.KnownFragmentNames,f.NoUnusedFragments,g.a,m.a,b.a,v.a,y.a,w.a,_.a,O.a,C.a,E.a,S.a,T.a,x.a,k.a]),M=Object.freeze([I.a,D.a,z.a,j.a,A.a,R.a,a.a,w.a,_.a,N.a,O.b,C.a,k.a,S.b])},FXUI:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return $});var i=n("HaE+"),r=n("fXoL"),o=n("Cfvw"),s=n("nTiS"),a=n("6EqW"),c=n("jhN1"),l=n("VfN6"),u=n("Nzc1"),h=n("PRU4"),d=n("S1AF"),p=n("0MjU"),f=n("ofXK"),g=n("/bpi"),m=n("Nqz0"),b=n("fpqv"),v=n("Q8cG"),y=n("C2AL"),w=n("3Pt+"),_=n("EzuI"),O=n("ssiq"),C=n("wp29"),E=n("x859"),S=n("sYmb"),T=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const x=["docViewer"],k=function(e){return{"anim-rotate":e}};function I(e,t){if(1&e&&(r.Wb(0,"div",25),r.Gc(1,"\n "),r.Wb(2,"div",26),r.Gc(3,"\n "),r.Rb(4,"img",27),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Vb()),2&e){const e=r.gc(2);r.mc("@fadeInOutAnimation",void 0),r.Eb(4),r.mc("ngClass",r.pc(5,k,e.isLoading)),r.Eb(1),r.Ic("\n ",r.ic(6,3,"LOADING_INDICATOR_TEXT"),"\n ")}}function D(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",28),r.dc("click",function(){return r.wc(e),r.gc(2).goBack()}),r.Gc(1,"\n "),r.Rb(2,"app-icon",29),r.Gc(3,"\n "),r.Wb(4,"span"),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Vb()}2&e&&(r.Eb(5),r.Hc(r.ic(6,1,"DOCS_GO_BACK_TEXT")))}function z(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",19),r.dc("click",function(){return r.wc(e),r.gc(2).goHome()}),r.Gc(1,"\n "),r.Rb(2,"app-icon",30),r.Gc(3,"\n "),r.Vb()}}function j(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",18),r.dc("click",function(){return r.wc(e),r.gc(2).exportSDL()}),r.Gc(1),r.hc(2,"translate"),r.Vb()}2&e&&(r.Eb(1),r.Ic("\n ",r.ic(2,1,"DOCS_EXPORT_SDL"),"\n "))}function A(e,t){if(1&e){const e=r.Xb();r.Wb(0,"span",36),r.dc("click",function(){r.wc(e);const t=r.gc().$implicit;return r.gc(4).goToType(t.name)}),r.Gc(1),r.Vb()}if(2&e){const e=r.gc().$implicit;r.Eb(1),r.Hc(e.name)}}function R(e,t){if(1&e&&(r.Wb(0,"div",34),r.Gc(1,"\n "),r.Ec(2,A,2,1,"span",35),r.Gc(3,"\n "),r.Vb()),2&e){const e=t.$implicit;r.Eb(2),r.mc("ngIf",e)}}function N(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,R,4,1,"div",33),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc(3);r.Eb(2),r.mc("ngForOf",e.rootTypes)("ngForTrackBy",e.rootTypeTrackBy)}}function L(e,t){if(1&e){const e=r.Xb();r.Wb(0,"app-doc-viewer-type",38),r.dc("goToFieldChange",function(t){return r.wc(e),r.gc(4).goToField(t.name,t.parentType)})("goToTypeChange",function(t){return r.wc(e),r.gc(4).goToType(t.name)})("addToEditorChange",function(t){return r.wc(e),r.gc(4).addToEditor(t.name,t.parentType)}),r.Vb()}if(2&e){const e=r.gc(4);r.mc("data",e.gqlSchema.getType(e.docView.name))("gqlSchema",e.gqlSchema)}}function M(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,L,1,2,"app-doc-viewer-type",37),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc(3);r.Eb(2),r.mc("ngIf",e.gqlSchema.getType(e.docView.name))}}function F(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"app-doc-viewer-field",39),r.dc("goToFieldChange",function(t){return r.wc(e),r.gc(3).goToField(t.name,t.parentType)})("goToTypeChange",function(t){return r.wc(e),r.gc(3).goToType(t.name)})("addToEditorChange",function(t){return r.wc(e),r.gc(3).addToEditor(t.name,t.parentType)}),r.Vb(),r.Gc(3,"\n "),r.Tb()}if(2&e){const e=r.gc(3);r.Eb(2),r.mc("data",e.gqlSchema.getType(e.docView.parentType)&&e.gqlSchema.getType(e.docView.parentType).getFields()[e.docView.name])("gqlSchema",e.gqlSchema)("parentType",e.docView.parentType)}}function P(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"app-doc-viewer-search-results",40),r.dc("goToFieldChange",function(t){return r.wc(e),r.gc(3).goToField(t.name,t.parentType)})("goToTypeChange",function(t){return r.wc(e),r.gc(3).goToType(t.name)}),r.Vb(),r.Gc(3,"\n "),r.Tb()}if(2&e){const e=r.gc(3);r.Eb(2),r.mc("results",e.searchResult)}}function V(e,t){if(1&e&&(r.Wb(0,"div",31),r.Gc(1,"\n "),r.Ec(2,N,4,2,"ng-container",32),r.Gc(3,"\n "),r.Ec(4,M,4,1,"ng-container",32),r.Gc(5,"\n "),r.Ec(6,F,4,3,"ng-container",32),r.Gc(7,"\n "),r.Ec(8,P,4,1,"ng-container",32),r.Gc(9,"\n "),r.Vb()),2&e){const e=r.gc(2);r.mc("ngSwitch",e.docView.view),r.Eb(2),r.mc("ngSwitchCase","root"),r.Eb(2),r.mc("ngSwitchCase","type"),r.Eb(2),r.mc("ngSwitchCase","field"),r.Eb(2),r.mc("ngSwitchCase","search")}}function G(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",4,5),r.Gc(2,"\n "),r.Ec(3,I,8,7,"div",6),r.Gc(4,"\n "),r.Wb(5,"div",7),r.Gc(6,"\n "),r.Wb(7,"div",8),r.Gc(8,"\n "),r.Wb(9,"div",9),r.Gc(10,"\n "),r.Ec(11,D,8,3,"div",10),r.Gc(12,"\n "),r.Ec(13,z,4,0,"div",11),r.Gc(14,"\n "),r.Vb(),r.Gc(15,"\n "),r.Wb(16,"div",12),r.Gc(17,"\n "),r.Wb(18,"div",13),r.Gc(19,"\n "),r.Rb(20,"app-icon",14),r.Gc(21,"\n "),r.Vb(),r.Gc(22,"\n "),r.Wb(23,"nz-dropdown-menu",null,15),r.Gc(25,"\n "),r.Wb(26,"ul",16),r.Gc(27,"\n "),r.Ec(28,j,3,3,"li",17),r.Gc(29,"\n "),r.Wb(30,"li",18),r.dc("click",function(){return r.wc(e),r.gc().loadSchemaChange.next()}),r.Gc(31),r.hc(32,"translate"),r.Vb(),r.Gc(33,"\n "),r.Vb(),r.Gc(34,"\n "),r.Vb(),r.Gc(35,"\n "),r.Wb(36,"div",19),r.dc("click",function(){return r.wc(e),r.gc().toggleDocsChange.next()}),r.Gc(37,"\n "),r.Rb(38,"app-icon",20),r.Gc(39,"\n "),r.Vb(),r.Gc(40,"\n "),r.Vb(),r.Gc(41,"\n "),r.Vb(),r.Gc(42,"\n "),r.Vb(),r.Gc(43,"\n "),r.Wb(44,"div",21),r.Gc(45,"\n "),r.Wb(46,"input",22),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().searchTerm=t})("keyup",function(t){r.wc(e);const n=r.gc();return n.searchInputKeyUp(n.searchTerm,t)})("valueChanged",function(t){r.wc(e);const n=r.gc();return t&&n.searchDocs(t)}),r.hc(47,"translate"),r.Vb(),r.Gc(48,"\n "),r.Vb(),r.Gc(49,"\n "),r.Wb(50,"div",23),r.Gc(51,"\n "),r.Ec(52,V,10,5,"div",24),r.Gc(53,"\n "),r.Vb(),r.Gc(54,"\n"),r.Vb()}if(2&e){const e=r.tc(24),t=r.gc();r.Eb(3),r.mc("ngIf",t.isLoading),r.Eb(8),r.mc("ngIf","root"!==t.docView.view&&t.docHistory.length),r.Eb(2),r.mc("ngIf","root"!==t.docView.view),r.Eb(5),r.mc("nzDropdownMenu",e),r.Eb(10),r.mc("ngIf",t.gqlSchema),r.Eb(3),r.Ic("\n ",r.ic(32,12,"DOCS_LOAD_SCHEMA"),"...\n "),r.Eb(15),r.mc("ngModel",t.searchTerm)("source",t.autocompleteSource)("min-chars",2)("list-formatter",t.autocompleteListFormatter)("placeholder",r.ic(47,14,"DOCS_SEARCH_INPUT_PLACEHOLDER_TEXT")),r.Eb(6),r.mc("ngIf",t.gqlSchema)}}function B(e,t){if(1&e&&(r.Wb(0,"div",41),r.Gc(1),r.hc(2,"translate"),r.hc(3,"date"),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.Jc("",r.ic(2,2,"DOCS_LAST_UPDATED"),": ",r.jc(3,4,e.lastUpdatedAt,"medium"),"")}}function W(e,t){1&e&&(r.Wb(0,"div",42),r.Gc(1),r.hc(2,"translate"),r.Vb()),2&e&&(r.Eb(1),r.Ic("\n ",r.ic(2,1,"SERVER_NO_INTROSPECTION_SUPPORT"),"\n"))}let $=(()=>{let t=class{constructor(e,t,n){this.gqlService=e,this._sanitizer=t,this.altairConfig=n,this.allowIntrospection=!0,this.isLoading=!1,this.addQueryDepthLimit=this.altairConfig.add_query_depth_limit,this.tabSize=this.altairConfig.tab_size,this.docView={view:"root",parentType:"Query",name:"FieldName"},this.toggleDocsChange=new r.n,this.setDocViewChange=new r.n,this.addQueryToEditorChange=new r.n,this.exportSDLChange=new r.n,this.loadSchemaChange=new r.n,this.rootTypes=[],this.index=[],this.searchInputPlaceholder="Search docs...",this.hasSearchIndex=!1,this.docHistory=[],this.searchResult=[],this.searchTerm="",this.autocompleteSource=e=>Object(o.a)(this.getDocUtilsWorker().then(t=>t.searchDocs(e))),this.autocompleteListFormatter=e=>this._sanitizer.bypassSecurityTrustHtml(`\n
\n ${e.search}\n ${e.cat}\n ${e.description}\n
`)}ngOnChanges(e){e.gqlSchema&&e.gqlSchema.currentValue&&(this.gqlSchema=e.gqlSchema.currentValue,this.updateDocs(e.gqlSchema.currentValue))}updateDocs(e){var t=this;return Object(i.a)(function*(){a.a.log(e),t.rootTypes=Object(p.a)(e);try{const n=yield t.getDocUtilsWorker(),i=yield t.gqlService.getSDL(e);yield n.updateSchema(i),t.index=yield t.docUtilWorker.generateSearchIndex(),a.a.log("Worker index:",t.index),t.hasSearchIndex=!0}catch(n){a.a.log("Error while generating index.",n),t.hasSearchIndex=!1}})()}searchInputKeyUp(e,t){t&&13!==t.keyCode||this.searchDocs(e)}setDocView(e){this.setDocViewChange.next(e),this.docViewerRef.nativeElement.scrollTop=0}searchDocs(e){var t=this;return Object(i.a)(function*(){if("string"!=typeof e&&(e=e.name),!t.hasSearchIndex)return!1;t.updateDocHistory(),t.setDocView({view:"search"});const n=yield t.getDocUtilsWorker();t.searchResult=yield n.searchDocs(e),a.a.log(t.searchResult)})()}cleanName(e){return e.replace(/[\[\]!]/g,"")}goBack(){this.docHistory.length&&this.setDocView(this.docHistory.pop())}goHome(){this.setDocView({view:"root"}),this.docHistory=[]}updateDocHistory(){this.docView&&"search"!==this.docView.view&&this.docHistory.push({...this.docView})}goToType(e){this.updateDocHistory(),this.setDocView({view:"type",name:e.replace(/[\[\]!]/g,"")})}goToField(e,t){this.updateDocHistory(),this.setDocView({view:"field",name:e.replace(/[\[\]!]/g,""),parentType:t.replace(/[\[\]!]/g,"")})}addToEditor(e,t){var n=this;return Object(i.a)(function*(){if(!n.hasSearchIndex)return!1;const i=yield n.getDocUtilsWorker(),r=yield i.generateQuery(e,t,{tabSize:n.tabSize,addQueryDepthLimit:n.addQueryDepthLimit});r&&n.addQueryToEditorChange.next(r)})()}exportSDL(){this.exportSDLChange.next()}getDocUtilsWorker(){var t=this;return Object(i.a)(function*(){if(!t.docUtilWorker)try{const n=h.a(new Worker(e,void 0));t.docUtilWorker=yield new n}catch(i){a.a.error("Could not load doc utilsweb worker"),a.a.error(i);const{DocUtils:e}=yield n.e(13).then(n.bind(null,"zeOt"));t.docUtilWorker=new e}return t.docUtilWorker})()}onResize(e){this.resizeFactor=e}rootTypeTrackBy(e,t){return t.name}};return t.\u0275fac=function(e){return new(e||t)(r.Qb(d.GqlService),r.Qb(c.b),r.Qb(s.a))},t.\u0275cmp=r.Kb({type:t,selectors:[["app-doc-viewer"]],viewQuery:function(e,t){if(1&e&&r.Kc(x,1),2&e){let e;r.sc(e=r.ec())&&(t.docViewerRef=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&r.Bc("flex-grow",t.resizeFactor)},inputs:{gqlSchema:"gqlSchema",allowIntrospection:"allowIntrospection",isLoading:"isLoading",addQueryDepthLimit:"addQueryDepthLimit",tabSize:"tabSize",docView:"docView",lastUpdatedAt:"lastUpdatedAt"},outputs:{toggleDocsChange:"toggleDocsChange",setDocViewChange:"setDocViewChange",addQueryToEditorChange:"addQueryToEditorChange",exportSDLChange:"exportSDLChange",loadSchemaChange:"loadSchemaChange"},features:[r.Cb],decls:8,vars:3,consts:[["class","app-doc-viewer",4,"ngIf"],["class","doc-viewer__last-updated",4,"ngIf"],["class","app-doc-notice",4,"ngIf"],[3,"resizeChange"],[1,"app-doc-viewer"],["docViewer",""],["class","app-doc-loader",4,"ngIf"],[1,"doc-viewer-header"],[1,"doc-viewer-navigation"],[1,"doc-viewer-navigation--left"],["class","doc-viewer-navigation__option","track-id","go_back_docs",3,"click",4,"ngIf"],["class","doc-viewer-navigation__option",3,"click",4,"ngIf"],[1,"doc-viewer-navigation--right"],["nz-dropdown","","nzTrigger","click",1,"doc-viewer-navigation__option",3,"nzDropdownMenu"],["name","more-horizontal"],["docViewerMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click",4,"ngIf"],["nz-menu-item","",3,"click"],[1,"doc-viewer-navigation__option",3,"click"],["name","x"],[1,"doc-viewer-search-wrapper"],["ngui-auto-complete","","value-property-name","search","display-property-name","search",1,"doc-viewer-search-input",3,"ngModel","source","min-chars","list-formatter","placeholder","ngModelChange","keyup","valueChanged"],[1,"doc-viewer-items"],[3,"ngSwitch",4,"ngIf"],[1,"app-doc-loader"],[1,"app-doc-loader-content"],["src","assets/img/logo.svg","alt","",1,"anim",3,"ngClass"],["track-id","go_back_docs",1,"doc-viewer-navigation__option",3,"click"],["name","arrow-left"],["name","home"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","doc-viewer-item",4,"ngFor","ngForOf","ngForTrackBy"],[1,"doc-viewer-item"],["class","no-link-link",3,"click",4,"ngIf"],[1,"no-link-link",3,"click"],[3,"data","gqlSchema","goToFieldChange","goToTypeChange","addToEditorChange",4,"ngIf"],[3,"data","gqlSchema","goToFieldChange","goToTypeChange","addToEditorChange"],[3,"data","gqlSchema","parentType","goToFieldChange","goToTypeChange","addToEditorChange"],[3,"results","goToFieldChange","goToTypeChange"],[1,"doc-viewer__last-updated"],[1,"app-doc-notice"]],template:function(e,t){1&e&&(r.Ec(0,G,55,16,"div",0),r.Gc(1,"\n"),r.Ec(2,B,4,7,"div",1),r.Gc(3,"\n"),r.Ec(4,W,3,3,"div",2),r.Gc(5,"\n"),r.Wb(6,"app-flex-resizer",3),r.dc("resizeChange",function(e){return t.onResize(e)}),r.Vb(),r.Gc(7,"\n")),2&e&&(r.mc("ngIf",t.allowIntrospection),r.Eb(2),r.mc("ngIf",t.gqlSchema&&t.lastUpdatedAt),r.Eb(2),r.mc("ngIf",!t.allowIntrospection))},directives:[f.o,g.a,m.a,b.a,m.c,v.c,y.a,v.e,w.e,_.a,w.l,w.o,f.l,f.q,f.r,f.n,O.a,C.a,E.a],pipes:[S.c,f.e],encapsulation:2,data:{animation:[u.a]},changeDetection:0}),t=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Object(l.a)(),T("design:paramtypes",[d.GqlService,c.b,s.a])],t),t})()}).call(this,n("R9jo"))},FduV:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("rWdj"),r=n("dWS+"),o=n("axIb"),s=n("umOc"),a=n("sJV+");function c(e){return{InlineFragment:function(t){var n=e.getType(),s=e.getParentType();Object(o.D)(n)&&Object(o.D)(s)&&!Object(a.a)(e.getSchema(),n,s)&&e.reportError(new r.a(function(e,t){return'Fragment cannot be spread here as objects of type "'.concat(e,'" can never be of type "').concat(t,'".')}(Object(i.a)(s),Object(i.a)(n)),t))},FragmentSpread:function(t){var n=t.name.value,c=function(e,t){var n=e.getFragment(t);if(n){var i=Object(s.a)(e.getSchema(),n.typeCondition);if(Object(o.D)(i))return i}}(e,n),l=e.getParentType();c&&l&&!Object(a.a)(e.getSchema(),c,l)&&e.reportError(new r.a(function(e,t,n){return'Fragment "'.concat(e,'" cannot be spread here as objects of type "').concat(t,'" can never be of type "').concat(n,'".')}(n,Object(i.a)(l),Object(i.a)(c)),t))}}}},FtGj:function(e,t,n){"use strict";n.d(t,"a",function(){return m}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"g",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return g}),n.d(t,"j",function(){return d}),n.d(t,"k",function(){return a}),n.d(t,"l",function(){return r}),n.d(t,"m",function(){return h}),n.d(t,"n",function(){return b}),n.d(t,"o",function(){return f}),n.d(t,"p",function(){return v});const i=8,r=9,o=13,s=27,a=32,c=35,l=36,u=37,h=38,d=39,p=40,f=48,g=57,m=65,b=90;function v(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}},FwiY:function(e,t,n){"use strict";n.d(t,"a",function(){return ce}),n.d(t,"b",function(){return le});var i=n("nLfN"),r=n("fXoL"),o=n("mrSG"),s=n("ofXK");function a(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function c(e){return Math.min(1,Math.max(0,e))}function l(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function u(e){return e<=1?100*Number(e)+"%":e}function h(e){return 1===e.length?"0"+e:String(e)}function d(e,t,n){e=a(e,255),t=a(t,255),n=a(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=0,s=0,c=(i+r)/2;if(i===r)s=0,o=0;else{var l=i-r;switch(s=c>.5?l/(2-i-r):l/(i+r),i){case e:o=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){e=a(e,255),t=a(t,255),n=a(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=0,s=i,c=i-r,l=0===i?0:c/i;if(i===r)o=0;else{switch(i){case e:o=(t-n)/c+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=function(e){var t,n,i={r:0,g:0,b:0},r=1,o=null,s=null,c=null,h=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(v[e])e=v[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=O.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=O.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=O.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=O.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=O.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=O.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=O.hex8.exec(e))?{r:b(n[1]),g:b(n[2]),b:b(n[3]),a:m(n[4]),format:t?"name":"hex8"}:(n=O.hex6.exec(e))?{r:b(n[1]),g:b(n[2]),b:b(n[3]),format:t?"name":"hex"}:(n=O.hex4.exec(e))?{r:b(n[1]+n[1]),g:b(n[2]+n[2]),b:b(n[3]+n[3]),a:m(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=O.hex3.exec(e))&&{r:b(n[1]+n[1]),g:b(n[2]+n[2]),b:b(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(C(e.r)&&C(e.g)&&C(e.b)?(t=e.g,n=e.b,i={r:255*a(e.r,255),g:255*a(t,255),b:255*a(n,255)},h=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):C(e.h)&&C(e.s)&&C(e.v)?(o=u(e.s),s=u(e.v),i=function(e,t,n){e=6*a(e,360),t=a(t,100),n=a(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),s=n*(1-r*t),c=n*(1-(1-r)*t),l=i%6;return{r:255*[n,s,o,o,c,n][l],g:255*[c,n,n,s,o,o][l],b:255*[o,o,c,n,n,s][l]}}(e.h,o,s),h=!0,d="hsv"):C(e.h)&&C(e.s)&&C(e.l)&&(o=u(e.s),c=u(e.l),i=function(e,t,n){var i,r,o;if(e=a(e,360),t=a(t,100),n=a(n,100),0===t)r=n,o=n,i=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;i=p(c,s,e+1/3),r=p(c,s,e),o=p(c,s,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,o,c),h=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=l(r),{ok:h,format:e.format||d,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:r}}(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,i=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=l(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=f(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=f(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=d(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=d(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),g(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,i,r){var o,s=[h(Math.round(e).toString(16)),h(Math.round(t).toString(16)),h(Math.round(n).toString(16)),h((o=i,Math.round(255*parseFloat(o)).toString(16)))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb("+e+", "+t+", "+n+")":"rgba("+e+", "+t+", "+n+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*a(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*a(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+g(this.r,this.g,this.b,!1),t=0,n=Object.entries(v);t=0)||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=c(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=c(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=c(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=c(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var i=this.toRgb(),r=new e(t).toRgb(),o=n/100;return new e({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var i=this.toHsl(),r=360/n,o=[this];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(new e(i));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),i=n.h,r=n.s,o=n.v,s=[],a=1/t;t--;)s.push(new e({h:i,s:r,v:o})),o=(o+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(n.r-i.r)*n.a,g:i.g+(n.g-i.g)*n.a,b:i.b+(n.b-i.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),i=n.h,r=[this],o=360/t,s=1;s=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?i+=360:i>=360&&(i-=360),i}function x(e,t,n){return 0===e.h&&0===e.s?e.s:((i=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(i=1),n&&5===t&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function k(e,t,n){var i;return(i=n?e.v+.05*t:e.v-.15*t)>1&&(i=1),Number(i.toFixed(2))}function I(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=new E(e),r=5;r>0;r-=1){var o=i.toHsv(),s=new E({h:T(o,r,!0),s:x(o,r,!0),v:k(o,r,!0)}).toHexString();n.push(s)}n.push(i.toHexString());for(var a=1;a<=4;a+=1){var c=i.toHsv(),l=new E({h:T(c,a),s:x(c,a),v:k(c,a)}).toHexString();n.push(l)}return"dark"===t.theme?S.map(function(e){var i=e.index,r=e.opacity;return new E(t.backgroundColor||"#141414").mix(n[i],100*r).toHexString()}):n}var D={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},z={},j={};Object.keys(D).forEach(function(e){z[e]=I(D[e]),z[e].primary=z[e][5],j[e]=I(D[e],{theme:"dark",backgroundColor:"#141414"}),j[e].primary=j[e][5]});var A=n("tk/3"),R=n("XNiG"),N=n("LRne"),L=n("HDdC"),M=n("lJxs"),F=n("vkgz"),P=n("nYR2"),V=n("JIr8"),G=n("w1tV"),B=n("pLZG"),W=n("IzEk"),$=n("jhN1");function U(e){Object(r.Y)()&&console.warn(`[@ant-design/icons-angular]: ${e}.`)}function H(e){return I(e)[0]}function q(e,t){switch(t){case"fill":return`${e}-fill`;case"outline":return`${e}-o`;case"twotone":return`${e}-twotone`;case void 0:return e;default:throw new Error(`[@ant-design/icons-angular]:Theme "${t}" is not a recognized theme!`)}}function Q(e){return"object"==typeof e&&"string"==typeof e.name&&("string"==typeof e.theme||void 0===e.theme)&&"string"==typeof e.icon}function K(e){const t=e.split(":");switch(t.length){case 1:return[e,""];case 2:return[t[1],t[0]];default:throw new Error(`[@ant-design/icons-angular]:The icon type ${e} is not valid!`)}}function X(){return new Error("[@ant-design/icons-angular]: tag not found.")}let Y=(()=>{class e{constructor(e,t,n,i){this._rendererFactory=e,this._handler=t,this._document=n,this.sanitizer=i,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new R.a,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new A.c(this._handler))}set twoToneColor({primaryColor:e,secondaryColor:t}){this._twoToneColorPalette.primaryColor=e,this._twoToneColorPalette.secondaryColor=t||H(e)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?U("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=e=>{this._jsonpIconLoad$.next(e)})}changeAssetsSource(e){this._assetsUrlRoot=e.endsWith("/")?e:e+"/"}addIcon(...e){e.forEach(e=>{this._svgDefinitions.set(q(e.name,e.theme),e)})}addIconLiteral(e,t){const[n,i]=K(e);if(!i)throw new Error(`[@ant-design/icons-angular]:Type should have a namespace. Try "namespace:${name}".`);this.addIcon({name:e,icon:t})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(e,t){const n=Q(e)?e:this._svgDefinitions.get(e)||null;return(n?Object(N.a)(n):this._loadIconDynamically(e)).pipe(Object(M.a)(n=>{if(!n)throw function(e){return new Error(`[@ant-design/icons-angular]:the icon ${e} does not exist or is not registered.`)}(e);return this._loadSVGFromCacheOrCreateNew(n,t)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(e){if(!this._http&&!this._enableJsonpLoading)return Object(N.a)((console.error('[@ant-design/icons-angular]: you need to import "HttpClientModule" to use dynamic importing..'),null));let t=this._inProgressFetches.get(e);if(!t){const[n,i]=K(e),o=i?{name:e,icon:""}:function(e){const t=e.split("-"),n="o"===(i=t.splice(t.length-1,1)[0])?"outline":i;var i;return{name:t.join("-"),theme:n,icon:""}}(n),s=(i?`${this._assetsUrlRoot}assets/${i}/${n}`:`${this._assetsUrlRoot}assets/${o.theme}/${o.name}`)+(this._enableJsonpLoading?".js":".svg"),a=this.sanitizer.sanitize(r.K.URL,s);if(!a)throw function(e){return new Error(`[@ant-design/icons-angular]:The url "${e}" is unsafe.`)}(s);t=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(o,a):this._http.get(a,{responseType:"text"}).pipe(Object(M.a)(e=>Object.assign(Object.assign({},o),{icon:e})))).pipe(Object(F.a)(e=>this.addIcon(e)),Object(P.a)(()=>this._inProgressFetches.delete(e)),Object(V.a)(()=>Object(N.a)(null)),Object(G.a)()),this._inProgressFetches.set(e,t)}return t}_loadIconDynamicallyWithJsonp(e,t){return new L.a(n=>{const i=this._document.createElement("script"),r=setTimeout(()=>{o(),n.error(new Error("[@ant-design/icons-angular]:Importing timeout error."))},6e3);function o(){i.parentNode.removeChild(i),clearTimeout(r)}i.src=t,this._document.body.appendChild(i),this._jsonpIconLoad$.pipe(Object(B.a)(t=>t.name===e.name&&t.theme===e.theme),Object(W.a)(1)).subscribe(e=>{n.next(e),o()})})}_loadSVGFromCacheOrCreateNew(e,t){let n;const i=t||this._twoToneColorPalette.primaryColor,r=H(i)||this._twoToneColorPalette.secondaryColor,o="twotone"===e.theme?function(e,t,n,i){return`${q(e,t)}-${n}-${i}`}(e.name,e.theme,i,r):void 0===e.theme?e.name:q(e.name,e.theme),s=this._svgRenderedDefinitions.get(o);return s?n=s.icon:(n=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(""!==K(e.name)[1]?e.icon:e.icon.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')),"twotone"===e.theme,i,r)),this._svgRenderedDefinitions.set(o,Object.assign(Object.assign({},e),{icon:n}))),function(e){return e.cloneNode(!0)}(n)}_createSVGElementFromString(e){const t=this._document.createElement("div");t.innerHTML=e;const n=t.querySelector("svg");if(!n)throw X;return n}_setSVGAttribute(e){return this._renderer.setAttribute(e,"width","1em"),this._renderer.setAttribute(e,"height","1em"),e}_colorizeSVGIcon(e,t,n,i){if(t){const t=e.childNodes,r=t.length;for(let e=0;e{class e{constructor(e,t,n){this._iconService=e,this._elementRef=t,this._renderer=n}ngOnChanges(e){(e.type||e.theme||e.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(e=>{if(this.type){const t=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(n=>{var i,r;i=t,r=this._getSelfRenderMeta(),i.type===r.type&&i.theme===r.theme&&i.twoToneColor===r.twoToneColor?(this._setSVGElement(n),e(n)):e(null)})}else this._clearSVGElement(),e(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(e,t){if(Q(e))return e;{const[n,i]=K(e);return i?e:function(e){return e.endsWith("-fill")||e.endsWith("-o")||e.endsWith("-twotone")}(n)?(t&&U(`'type' ${n} already gets a theme inside so 'theme' ${t} would be ignored`),n):q(n,t||this._iconService.defaultTheme)}}_setSVGElement(e){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,e)}_clearSVGElement(){var e;const t=this._elementRef.nativeElement,n=t.childNodes;for(let i=n.length-1;i>=0;i--){const r=n[i];"svg"===(null===(e=r.tagName)||void 0===e?void 0:e.toLowerCase())&&this._renderer.removeChild(t,r)}}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Y),r.Qb(r.l),r.Qb(r.G))},e.\u0275dir=r.Lb({type:e,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[r.Cb]}),e})();var Z=n("/KA4"),ee=n("2Suw"),te=n("79xS");const ne={name:"star",theme:"fill",icon:''},ie=[{name:"bars",theme:"outline",icon:''},{name:"calendar",theme:"outline",icon:''},{name:"caret-up",theme:"fill",icon:''},{name:"caret-up",theme:"outline",icon:''},{name:"caret-down",theme:"fill",icon:''},{name:"caret-down",theme:"outline",icon:''},{name:"check-circle",theme:"fill",icon:''},{name:"check-circle",theme:"outline",icon:''},{name:"check",theme:"outline",icon:''},{name:"clock-circle",theme:"outline",icon:''},{name:"close-circle",theme:"outline",icon:''},{name:"close-circle",theme:"fill",icon:''},{name:"close",theme:"outline",icon:''},{name:"copy",theme:"outline",icon:''},{name:"double-left",theme:"outline",icon:''},{name:"double-right",theme:"outline",icon:''},{name:"down",theme:"outline",icon:''},{name:"edit",theme:"outline",icon:''},{name:"ellipsis",theme:"outline",icon:''},{name:"exclamation-circle",theme:"fill",icon:''},{name:"exclamation-circle",theme:"outline",icon:''},{name:"eye",theme:"outline",icon:''},{name:"file",theme:"fill",icon:''},{name:"file",theme:"outline",icon:''},{name:"filter",theme:"fill",icon:''},{name:"info-circle",theme:"fill",icon:''},{name:"info-circle",theme:"outline",icon:''},{name:"left",theme:"outline",icon:''},{name:"loading",theme:"outline",icon:''},{name:"paper-clip",theme:"outline",icon:''},{name:"question-circle",theme:"outline",icon:''},{name:"right",theme:"outline",icon:''},{name:"rotate-right",theme:"outline",icon:''},{name:"rotate-left",theme:"outline",icon:''},ne,{name:"search",theme:"outline",icon:''},ne,{name:"upload",theme:"outline",icon:''},{name:"vertical-align-top",theme:"outline",icon:''},{name:"up",theme:"outline",icon:''},{name:"swap-right",theme:"outline",icon:''},{name:"zoom-in",theme:"outline",icon:''},{name:"zoom-out",theme:"outline",icon:''}],re=new r.s("nz_icons");new r.s("nz_icon_default_twotone_color");let oe=(()=>{class e extends Y{constructor(e,t,n,i,r,o){super(e,i,r,t),this.nzConfigService=n,this.configUpdated$=new R.a,this.iconfontCache=new Set,this.onConfigChange(),this.addIcon(...ie,...o||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}normalizeSvgElement(e){e.getAttribute("viewBox")||this._renderer.setAttribute(e,"viewBox","0 0 1024 1024"),e.getAttribute("width")&&e.getAttribute("height")||(this._renderer.setAttribute(e,"width","1em"),this._renderer.setAttribute(e,"height","1em")),e.getAttribute("fill")||this._renderer.setAttribute(e,"fill","currentColor")}fetchFromIconfont(e){const{scriptUrl:t}=e;if(this._document&&!this.iconfontCache.has(t)){const e=this._renderer.createElement("script");this._renderer.setAttribute(e,"src",t),this._renderer.setAttribute(e,"data-namespace",t.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,e),this.iconfontCache.add(t)}}createIconfontIcon(e){return this._createSVGElementFromString(``)}onConfigChange(){this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const e=this.getConfig();this.defaultTheme=e.nzTheme||"outline"}configDefaultTwotoneColor(){const e=this.getConfig().nzTwotoneColor||"#1890ff";let t="#1890ff";e&&(e.startsWith("#")?t=e:Object(te.b)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:t}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return e.\u0275fac=function(t){return new(t||e)(r.ac(r.H),r.ac($.b),r.ac(ee.a),r.ac(A.b,8),r.ac(s.d,8),r.ac(re,8))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(r.H),Object(r.ac)($.b),Object(r.ac)(ee.a),Object(r.ac)(A.b,8),Object(r.ac)(s.d,8),Object(r.ac)(re,8))},token:e,providedIn:"root"}),e})();const se=new r.s("nz_icons_patch");let ae=(()=>{class e{constructor(e,t){this.extraIcons=e,this.rootIconService=t,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(e=>this.rootIconService.addIcon(e)),this.patched=!0)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(se,2),r.ac(oe))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),ce=(()=>{class e extends J{constructor(e,t,n,i){super(t,e,n),this.iconService=t,this.renderer=n,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,i&&i.doPatch(),this.el=e.nativeElement}set nzSpin(e){this.spin=e}set nzType(e){this.type=e}set nzTheme(e){this.theme=e}set nzTwotoneColor(e){this.twoToneColor=e}set nzIconfont(e){this.iconfont=e}ngOnChanges(e){const{nzType:t,nzTwotoneColor:n,nzSpin:i,nzTheme:r,nzRotate:o}=e;t||n||i||r?this.changeIcon2():o?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const e=this.el.children;let t=e.length;if(!this.type&&e.length)for(;t--;){const n=e[t];"svg"===n.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(n)}}}changeIcon2(){this.setClassName(),this._changeIcon().then(e=>{e&&(this.setSVGData(e),this.handleSpin(e),this.handleRotate(e))})}handleSpin(e){this.spin||"loading"===this.type?this.renderer.addClass(e,"anticon-spin"):this.renderer.removeClass(e,"anticon-spin")}handleRotate(e){this.nzRotate?this.renderer.setAttribute(e,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(e,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(e){this.renderer.setAttribute(e,"data-icon",this.type),this.renderer.setAttribute(e,"aria-hidden","true")}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(oe),r.Qb(r.G),r.Qb(ae,8))},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("anticon",!0)},inputs:{nzRotate:"nzRotate",nzSpin:"nzSpin",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[r.Bb,r.Cb]}),Object(o.b)([Object(Z.a)(),Object(o.c)("design:type",Boolean),Object(o.c)("design:paramtypes",[Boolean])],e.prototype,"nzSpin",null),e})(),le=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:re,useValue:t}]}}static forChild(t){return{ngModule:e,providers:[ae,{provide:se,useValue:t}]}}}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[i.b]]}),e})()},GNEV:function(e,t,n){"use strict";n.d(t,"h",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"g",function(){return s}),n.d(t,"f",function(){return a}),n.d(t,"e",function(){return c}),n.d(t,"l",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"j",function(){return p}),n.d(t,"i",function(){return f});const i="UPDATE_VARIABLES",r="ADD_FILE_VARIABLE",o="DELETE_FILE_VARIABLE",s="UPDATE_FILE_VARIABLE_NAME",a="UPDATE_FILE_VARIABLE_IS_MULTIPLE",c="UPDATE_FILE_VARIABLE_DATA";class l{constructor(e,t){this.payload=e,this.windowId=t,this.type=i}}class u{constructor(e,t){this.windowId=e,this.payload=t,this.type=r}}class h{constructor(e,t){this.windowId=e,this.payload=t,this.type=o}}class d{constructor(e,t){this.windowId=e,this.payload=t,this.type=s}}class p{constructor(e,t){this.windowId=e,this.payload=t,this.type=a}}class f{constructor(e,t){this.windowId=e,this.payload=t,this.type=c}}},GOzd:function(e,t,n){"use strict";var i="razdwatrzy";e.exports=function(){return"function"==typeof i.contains&&!0===i.contains("dwa")&&!1===i.contains("foo")}},GP5n:function(e,t,n){!function(e){"use strict";function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,i,r){e.openDialog?e.openDialog(t,r,{value:i,selectValueOnOpen:!0}):r(prompt(n,i))}(e,function(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,function(i){var r;if(i)if(r=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(i))e.setCursor(t(e,r[1]),Number(r[2]));else if(r=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(i)){var o=Math.round(e.lineCount()*Number(r[1])/100);/^[-+]/.test(r[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(r=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(i))&&e.setCursor(t(e,r[1]),n.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"}(n("VrN/"),n("Ku0u"))},GR68:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return d});var i=n("R0Ic");let r=(()=>{class e{}return e.SLOW="0.3s",e.BASE="0.2s",e.FAST="0.1s",e})(),o=(()=>{class e{}return e.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",e.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",e.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",e.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",e.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",e.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",e.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",e.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",e.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",e.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",e.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",e.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",e.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",e.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",e})();const s=Object(i.l)("collapseMotion",[Object(i.i)("expanded",Object(i.j)({height:"*"})),Object(i.i)("collapsed",Object(i.j)({height:0,overflow:"hidden"})),Object(i.i)("hidden",Object(i.j)({height:0,overflow:"hidden",borderTopWidth:"0"})),Object(i.k)("expanded => collapsed",Object(i.e)(`150ms ${o.EASE_IN_OUT}`)),Object(i.k)("expanded => hidden",Object(i.e)(`150ms ${o.EASE_IN_OUT}`)),Object(i.k)("collapsed => expanded",Object(i.e)(`150ms ${o.EASE_IN_OUT}`)),Object(i.k)("hidden => expanded",Object(i.e)(`150ms ${o.EASE_IN_OUT}`))]),a=(Object(i.l)("treeCollapseMotion",[Object(i.k)("* => *",[Object(i.f)("nz-tree-node:leave,nz-tree-builtin-node:leave",[Object(i.j)({overflow:"hidden"}),Object(i.h)(0,[Object(i.e)(`150ms ${o.EASE_IN_OUT}`,Object(i.j)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),Object(i.f)("nz-tree-node:enter,nz-tree-builtin-node:enter",[Object(i.j)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),Object(i.h)(0,[Object(i.e)(`150ms ${o.EASE_IN_OUT}`,Object(i.j)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),Object(i.l)("fadeMotion",[Object(i.k)(":enter",[Object(i.j)({opacity:0}),Object(i.e)(`${r.BASE}`,Object(i.j)({opacity:1}))]),Object(i.k)(":leave",[Object(i.j)({opacity:1}),Object(i.e)(`${r.BASE}`,Object(i.j)({opacity:0}))])]),Object(i.l)("helpMotion",[Object(i.k)(":enter",[Object(i.j)({opacity:0,transform:"translateY(-5px)"}),Object(i.e)(`${r.SLOW} ${o.EASE_IN_OUT}`,Object(i.j)({opacity:1,transform:"translateY(0)"}))]),Object(i.k)(":leave",[Object(i.j)({opacity:1,transform:"translateY(0)"}),Object(i.e)(`${r.SLOW} ${o.EASE_IN_OUT}`,Object(i.j)({opacity:0,transform:"translateY(-5px)"}))])])),c=(Object(i.l)("moveUpMotion",[Object(i.k)("* => enter",[Object(i.j)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),Object(i.e)(`${r.BASE}`,Object(i.j)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),Object(i.k)("* => leave",[Object(i.j)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),Object(i.e)(`${r.BASE}`,Object(i.j)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),Object(i.l)("notificationMotion",[Object(i.i)("enterRight",Object(i.j)({opacity:1,transform:"translateX(0)"})),Object(i.k)("* => enterRight",[Object(i.j)({opacity:0,transform:"translateX(5%)"}),Object(i.e)("100ms linear")]),Object(i.i)("enterLeft",Object(i.j)({opacity:1,transform:"translateX(0)"})),Object(i.k)("* => enterLeft",[Object(i.j)({opacity:0,transform:"translateX(-5%)"}),Object(i.e)("100ms linear")]),Object(i.i)("leave",Object(i.j)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),Object(i.k)("* => leave",[Object(i.j)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),Object(i.e)("100ms linear")])]),`${r.BASE} ${o.EASE_OUT_QUINT}`),l=`${r.BASE} ${o.EASE_IN_QUINT}`,u=Object(i.l)("slideMotion",[Object(i.i)("void",Object(i.j)({opacity:0,transform:"scaleY(0.8)"})),Object(i.i)("enter",Object(i.j)({opacity:1,transform:"scaleY(1)"})),Object(i.k)("void => *",[Object(i.e)(c)]),Object(i.k)("* => void",[Object(i.e)(l)])]),h=Object(i.l)("slideAlertMotion",[Object(i.k)(":leave",[Object(i.j)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),Object(i.e)(`${r.SLOW} ${o.EASE_IN_OUT_CIRC}`,Object(i.j)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),d=Object(i.l)("zoomBigMotion",[Object(i.k)("void => active",[Object(i.j)({opacity:0,transform:"scale(0.8)"}),Object(i.e)(`${r.BASE} ${o.EASE_OUT_CIRC}`,Object(i.j)({opacity:1,transform:"scale(1)"}))]),Object(i.k)("active => void",[Object(i.j)({opacity:1,transform:"scale(1)"}),Object(i.e)(`${r.BASE} ${o.EASE_IN_OUT_CIRC}`,Object(i.j)({opacity:0,transform:"scale(0.8)"}))])]);Object(i.l)("zoomBadgeMotion",[Object(i.k)(":enter",[Object(i.j)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),Object(i.e)(`${r.SLOW} ${o.EASE_OUT_BACK}`,Object(i.j)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),Object(i.k)(":leave",[Object(i.j)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),Object(i.e)(`${r.SLOW} ${o.EASE_IN_BACK}`,Object(i.j)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},"Gjh+":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"m",function(){return r}),n.d(t,"i",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return c}),n.d(t,"j",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"n",function(){return h}),n.d(t,"k",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"g",function(){return f}),n.d(t,"h",function(){return g}),n.d(t,"l",function(){return m});const i="ADD_WINDOW",r="SET_WINDOWS",o="REMOVE_WINDOW",s="EXPORT_WINDOW",a="IMPORT_WINDOW",c="IMPORT_WINDOW_FROM_CURL",l="REOPEN_CLOSED_WINDOW";class u{constructor(e){this.payload=e,this.type=i}}class h{constructor(e){this.payload=e,this.type=r}}class d{constructor(e){this.payload=e,this.type=o}}class p{constructor(e){this.payload=e,this.type=s}}class f{constructor(e){this.payload=e,this.type=a}}class g{constructor(e){this.payload=e,this.type=c}}class m{constructor(){this.type=l}}},GpRL:function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},Gxun:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return c}),n.d(t,"a",function(){return l});var i=n("PE4B"),r=n.n(i);const o={easing:"ease",colors:{black:"#33363b",darkGray:"#a6a6a6",gray:"#eaeaea",lightGray:"#f0f0f0",white:"#ffffff",green:"#7ebc59",blue:"#368cbf",cerise:"#f00faa",red:"#ed6a5a",orange:"#edae49",yellow:"#e4ce44",lightRed:"#cc998d",darkPurple:"#303965"},type:{fontSize:{base:24,remBase:24,body:14},fontFamily:{default:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'}}},s=r()(o,{isSystem:!1,colors:{primary:o.colors.green,secondary:o.colors.blue,bg:o.colors.white,offBg:o.colors.lightGray,font:o.colors.black,offFont:o.colors.darkGray,border:o.colors.gray,offBorder:o.colors.lightGray,headerBg:o.colors.white},shadow:{color:o.colors.black,opacity:.1},editor:{fontFamily:{default:"JetBrains Mono"},fontSize:o.type.fontSize.body,colors:{comment:o.colors.darkGray,string:o.colors.orange,number:o.colors.orange,variable:o.colors.black,keyword:o.colors.blue,atom:o.colors.black,attribute:o.colors.green,property:o.colors.blue,punctuation:o.colors.blue,definition:o.colors.orange,builtin:o.colors.orange,cursor:o.colors.blue}}}),a=e=>{if(!e)return"";const t=(e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:void 0})(e);if(!t)return"";const{r:n,g:i,b:r}=t;return`${n}, ${i}, ${r}`},c=(...e)=>r.a.all(e),l=(e,t={})=>r.a.all([s,e,t])},GyhO:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("LRne"),r=n("bHdf");function o(...e){return Object(r.a)(1)(Object(i.a)(...e))}},H6OF:function(e,t,n){"use strict";var i=n("GpRL"),r=n("aFjk"),o=n("ZI+j"),s=n("e0LD"),a=n("Zq5j");e.exports=function e(t){var n,c,l;if(i(t),(n=Object(arguments[1])).async&&n.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!n.force?t:(c=a(n.length,t.length,n.async&&o.async),l=s(t,c,n),r(o,function(e,t){n[t]&&e(n[t],l,n)}),e.__profiler__&&e.__profiler__(l),l.updateEnv(),l.memoized)}},HBFN:function(e,t,n){"use strict";var i=n("Tzvz"),r=a(n("VrN/")),o=a(n("i1zs")),s=n("8Ur0");function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){const i=t.fieldDef.name;"__"!==i.slice(0,2)&&(h(e,t,n,t.parentType),p(e,".")),p(e,i,"field-name",n,(0,s.getFieldReference)(t))}function l(e,t,n){p(e,"@"+t.directiveDef.name,"directive-name",n,(0,s.getDirectiveReference)(t))}function u(e,t,n,i){p(e,": "),h(e,t,n,i)}function h(e,t,n,r){r instanceof i.GraphQLNonNull?(h(e,t,n,r.ofType),p(e,"!")):r instanceof i.GraphQLList?(p(e,"["),h(e,t,n,r.ofType),p(e,"]")):p(e,r.name,"type-name",n,(0,s.getTypeReference)(t,r))}function d(e,t,n){const i=n.description;if(i){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(i):n.appendChild(document.createTextNode(i)),e.appendChild(n)}!function(e,t,n){const i=n.deprecationReason;if(i){const n=document.createElement("div");n.className="info-deprecation",t.renderDescription?n.innerHTML=t.renderDescription(i):n.appendChild(document.createTextNode(i));const r=document.createElement("span");r.className="info-deprecation-label",r.appendChild(document.createTextNode("Deprecated: ")),n.insertBefore(r,n.firstChild),e.appendChild(n)}}(e,t,n)}function p(e,t,n,i={onClick:null},r){if(n){const o=i.onClick;let s;o?(s=document.createElement("a"),s.href="javascript:void 0",s.addEventListener("click",e=>{o(r,e)})):s=document.createElement("span"),s.className=n,s.appendChild(document.createTextNode(t)),e.appendChild(s)}else e.appendChild(document.createTextNode(t))}n("CRiN"),r.default.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const n=e.state,i=n.kind,r=n.step,a=(0,o.default)(t.schema,e.state);if("Field"===i&&0===r&&a.fieldDef||"AliasedField"===i&&2===r&&a.fieldDef){const e=document.createElement("div");return function(e,t,n){c(e,t,n),u(e,t,n,t.type)}(e,a,t),d(e,t,a.fieldDef),e}if("Directive"===i&&1===r&&a.directiveDef){const e=document.createElement("div");return l(e,a,t),d(e,t,a.directiveDef),e}if("Argument"===i&&0===r&&a.argDef){const e=document.createElement("div");return function(e,t,n){t.directiveDef?l(e,t,n):t.fieldDef&&c(e,t,n);const i=t.argDef.name;p(e,"("),p(e,i,"arg-name",n,(0,s.getArgumentReference)(t)),u(e,t,n,t.inputType),p(e,")")}(e,a,t),d(e,t,a.argDef),e}if("EnumValue"===i&&a.enumValue&&a.enumValue.description){const e=document.createElement("div");return function(e,t,n){const i=t.enumValue.name;h(e,t,n,t.inputType),p(e,"."),p(e,i,"enum-value",n,(0,s.getEnumValueReference)(t))}(e,a,t),d(e,t,a.enumValue),e}if("NamedType"===i&&a.type&&a.type.description){const e=document.createElement("div");return h(e,a,t,a.type),d(e,t,a.type),e}})},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("7o/Q"),r=n("2QA8"),o=n("gRHU"),s=n("kJWO"),a=n("mCNh"),c=n("2fFW");let l=(()=>{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,a=function(e,t,n){if(e){if(e instanceof i.a)return e;if(e[r.a])return e[r.a]()}return e||t||n?new i.a(e,t,n):new i.a(o.a)}(e,t,n);if(a.add(s?s.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof i.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=u(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(r){n(r),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[s.a](){return this}pipe(...e){return 0===e.length?this:Object(a.b)(e)(this)}toPromise(e){return new(e=u(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function u(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},HEXU:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("XNiG"),r=n("pLZG"),o=n("fXoL");let s=(()=>{class e{constructor(e){this.errorHandler=e,this.eventStream=new i.a}group(){return new a(this)}emit(e,t){return this.eventStream.next({event:e,payload:t})}on(e,t){return this.eventStream.pipe(Object(r.a)(t=>t.event===e)).subscribe(e=>{try{t(e.payload)}catch(n){this.errorHandler.handleError(n)}})}}return e.\u0275fac=function(t){return new(t||e)(o.ac(o.m))},e.\u0275prov=o.Mb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class a{constructor(e){this.pluginEventService=e,this.subscriptions=[]}emit(e,t){return this.pluginEventService.emit(e,t)}on(e,t){const n=this.pluginEventService.on(e,t);return this.subscriptions.push(n),{unsubscribe:()=>(this.subscriptions=this.subscriptions.filter(e=>e!==n),n.unsubscribe())}}unsubscribe(){for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=[]}}},HEoz:function(e,t,n){"use strict";e.exports=n("umFS")()?n("fEpb").Symbol:n("lO5s")},"HaE+":function(e,t,n){"use strict";function i(e,t,n,i,r,o,s){try{var a=e[o](s),c=a.value}catch(l){return void n(l)}a.done?t(c):Promise.resolve(c).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,c,"next",e)}function c(e){i(s,r,o,a,c,"throw",e)}a(void 0)})}}n.d(t,"a",function(){return r})},HkoP:function(e,t,n){"use strict";var i,r=(i=n("VrN/"))&&i.__esModule?i:{default:i},o=n("JCIs");function s(e,t){const n=e.levels;return(n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel)*this.config.indentUnit}r.default.defineMode("graphql",e=>{const t=(0,o.onlineParser)({eatWhitespace:e=>e.eatWhile(o.isIgnored),lexRules:o.LexRules,parseRules:o.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},HmyC:function(e,t,n){"use strict";n.r(t);var i=n("gI7C");n.d(t,"getASTNodeAtPosition",function(){return i.getASTNodeAtPosition}),n.d(t,"pointToOffset",function(){return i.pointToOffset});var r=n("VWUu");n.d(t,"Position",function(){return r.Position}),n.d(t,"Range",function(){return r.Range}),n.d(t,"locToRange",function(){return r.locToRange}),n.d(t,"offsetToPosition",function(){return r.offsetToPosition});var o=n("qvY7");n.d(t,"validateWithCustomRules",function(){return o.validateWithCustomRules});var s=n("8O83");n.d(t,"requireFile",function(){return s.requireFile}),n.d(t,"resolveFile",function(){return s.resolveFile})},I2ZF:function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IDEf:function(e,t,n){"use strict";e.exports=n("FKvE")()?Object.assign:n("9g66")},IQOa:function(e,t,n){"use strict";n.r(t),n.d(t,"getDefinitionState",function(){return o}),n.d(t,"getFieldDef",function(){return s}),n.d(t,"forEachState",function(){return a}),n.d(t,"objectValues",function(){return c}),n.d(t,"hintList",function(){return l}),n.d(t,"getAutocompleteSuggestions",function(){return m}),n.d(t,"LANGUAGE",function(){return E}),n.d(t,"getDefinitionQueryResultForFragmentSpread",function(){return k}),n.d(t,"getDefinitionQueryResultForDefinitionNode",function(){return D}),n.d(t,"getDiagnostics",function(){return N}),n.d(t,"validateQuery",function(){return L}),n.d(t,"getOutline",function(){return $}),n.d(t,"getHoverInformation",function(){return H}),n.d(t,"GraphQLLanguageService",function(){return be});var i=n("axIb"),r=n("LViu");function o(e){let t;return a(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}function s(e,t,n){return n===r.SchemaMetaFieldDef.name&&e.getQueryType()===t?r.SchemaMetaFieldDef:n===r.TypeMetaFieldDef.name&&e.getQueryType()===t?r.TypeMetaFieldDef:n===r.TypeNameMetaFieldDef.name&&Object(i.D)(t)?r.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function a(e,t){const n=[];let i=e;for(;i&&i.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}function c(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r({proximity:d(h(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):u(e,e=>!e.isDeprecated)}(t,h(e.string))}function u(e,t){const n=e.filter(t);return 0===n.length?e:n}function h(e){return e.toLowerCase().replace(/\W/g,"")}function d(e,t){let n=function(e,t){let n,i;const r=[],o=e.length,s=t.length;for(n=0;n<=o;n++)r[n]=[n];for(i=1;i<=s;i++)r[0][i]=i;for(n=1;n<=o;n++)for(i=1;i<=s;i++){const o=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+o),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+o))}return r[o][s]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var p=n("19Hc"),f=n("sJV+"),g=n("JCIs");function m(e,t,n,s){const a=s||b(t,n),u="Invalid"===a.state.kind?a.state.prevState:a.state;if(!u)return[];const h=u.kind,d=u.step,g=y(e,a.state);if("Document"===h)return l(a,[{label:"query"},{label:"mutation"},{label:"subscription"},{label:"fragment"},{label:"{"}]);if("SelectionSet"===h||"Field"===h||"AliasedField"===h)return function(e,t,n){if(t.parentType){const o=t.parentType,s="getFields"in o?c(o.getFields()):[];return Object(i.D)(o)&&s.push(r.TypeNameMetaFieldDef),o===n.getQueryType()&&s.push(r.SchemaMetaFieldDef,r.TypeMetaFieldDef),l(e,s.map((e,t)=>({sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason})))}return[]}(a,g,e);if("Arguments"===h||"Argument"===h&&0===d){const e=g.argDefs;if(e)return l(a,e.map(e=>({label:e.name,detail:String(e.type),documentation:e.description})))}return("ObjectValue"===h||"ObjectField"===h&&0===d)&&g.objectFieldDefs?l(a,c(g.objectFieldDefs).map(e=>({label:e.name,detail:String(e.type),documentation:e.description}))):"EnumValue"===h||"ListValue"===h&&1===d||"ObjectField"===h&&2===d||"Argument"===h&&2===d?function(e,t){const n=Object(i.A)(t.inputType);return n instanceof i.a?l(e,n.getValues().map(e=>({label:e.name,detail:String(n),documentation:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}))):n===p.a?l(e,[{label:"true",detail:String(p.a),documentation:"Not false."},{label:"false",detail:String(p.a),documentation:"Not true."}]):[]}(a,g):"TypeCondition"===h&&1===d||"NamedType"===h&&null!=u.prevState&&"TypeCondition"===u.prevState.kind?function(e,t,n){let r;if(t.parentType)if(Object(i.C)(t.parentType)){const e=Object(i.j)(t.parentType),o=n.getPossibleTypes(e),s=Object.create(null);o.forEach(e=>{e.getInterfaces().forEach(e=>{s[e.name]=e})}),r=o.concat(c(s))}else r=[t.parentType];else r=c(n.getTypeMap()).filter(i.D);return l(e,r.map(e=>{const t=Object(i.A)(e);return{label:String(e),documentation:t&&t.description||""}}))}(a,g,e):"FragmentSpread"===h&&1===d?function(e,t,n,r){const s=n.getTypeMap(),a=o(e.state);return l(e,function(e){const t=[];return v(e,(e,n)=>{"FragmentDefinition"===n.kind&&n.name&&n.type&&t.push({kind:"FragmentDefinition",name:{kind:"Name",value:n.name},selectionSet:{kind:"SelectionSet",selections:[]},typeCondition:{kind:"NamedType",name:{kind:"Name",value:n.type}}})}),t}(r).filter(e=>s[e.typeCondition.name.value]&&!(a&&"FragmentDefinition"===a.kind&&a.name===e.name.value)&&Object(i.D)(t.parentType)&&Object(i.D)(s[e.typeCondition.name.value])&&Object(f.a)(n,t.parentType,s[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(s[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`})))}(a,g,e,t):"VariableDefinition"===h&&2===d||"ListType"===h&&1===d||"NamedType"===h&&u.prevState&&("VariableDefinition"===u.prevState.kind||"ListType"===u.prevState.kind)?function(e,t){return l(e,c(t.getTypeMap()).filter(i.G).map(e=>({label:e.name,documentation:e.description})))}(a,e):"Directive"===h?function(e,t,n){return t.prevState&&t.prevState.kind?l(e,n.getDirectives().filter(e=>function(e,t){if(!e||!e.kind)return!1;const n=t.locations;switch(e.kind){case"Query":return-1!==n.indexOf("QUERY");case"Mutation":return-1!==n.indexOf("MUTATION");case"Subscription":return-1!==n.indexOf("SUBSCRIPTION");case"Field":case"AliasedField":return-1!==n.indexOf("FIELD");case"FragmentDefinition":return-1!==n.indexOf("FRAGMENT_DEFINITION");case"FragmentSpread":return-1!==n.indexOf("FRAGMENT_SPREAD");case"InlineFragment":return-1!==n.indexOf("INLINE_FRAGMENT");case"SchemaDef":return-1!==n.indexOf("SCHEMA");case"ScalarDef":return-1!==n.indexOf("SCALAR");case"ObjectTypeDef":return-1!==n.indexOf("OBJECT");case"FieldDef":return-1!==n.indexOf("FIELD_DEFINITION");case"InterfaceDef":return-1!==n.indexOf("INTERFACE");case"UnionDef":return-1!==n.indexOf("UNION");case"EnumDef":return-1!==n.indexOf("ENUM");case"EnumValue":return-1!==n.indexOf("ENUM_VALUE");case"InputDef":return-1!==n.indexOf("INPUT_OBJECT");case"InputValueDef":switch(e.prevState&&e.prevState.kind){case"ArgumentsDef":return-1!==n.indexOf("ARGUMENT_DEFINITION");case"InputDef":return-1!==n.indexOf("INPUT_FIELD_DEFINITION")}}return!1}(t.prevState,e)).map(e=>({label:e.name,documentation:e.description||""}))):[]}(a,u,e):[]}function b(e,t){let n=null,i=null,r=null;const o=v(e,(e,o,s,a)=>{if(a===t.line&&e.getCurrentPosition()>=t.character)return n=s,i={...o},r=e.current(),"BREAK"});return{start:o.start,end:o.end,string:r||o.string,state:i||o.state,style:n||o.style}}function v(e,t){const n=e.split("\n"),i=Object(g.onlineParser)();let r=i.startState(),o="",s=new g.CharacterStream("");for(let a=0;a{switch(t.kind){case"Query":case"ShortQuery":p=e.getQueryType();break;case"Mutation":p=e.getMutationType();break;case"Subscription":p=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(p=e.getType(t.type));break;case"Field":case"AliasedField":p&&t.name?(l=d?s(e,d,t.name):null,p=l?l.type:null):l=null;break;case"SelectionSet":d=Object(i.A)(p);break;case"Directive":o=t.name?e.getDirective(t.name):null;break;case"Arguments":if(t.prevState)switch(t.prevState.kind){case"Field":r=l&&l.args;break;case"Directive":r=o&&o.args;break;case"AliasedField":const n=t.prevState&&t.prevState.name;if(!n){r=null;break}const i=d?s(e,d,n):null;if(!i){r=null;break}r=i.args;break;default:r=null}else r=null;break;case"Argument":if(r)for(let e=0;ee.name&&e.name.value===i);if(0===r.length)return process.stderr.write(`Definition not found for GraphQL type ${i}`),{queryRange:[],definitions:[]};const o=r.map(({filePath:e,content:t,definition:n})=>j(e||"",t,n));return{definitions:o,queryRange:o.map(n=>S(e,t))}})).apply(this,arguments)}function k(e,t,n){return I.apply(this,arguments)}function I(){return(I=Object(w.a)(function*(e,t,n){const i=t.name.value,r=n.filter(({definition:e})=>e.name.value===i);if(0===r.length)return process.stderr.write(`Definition not found for GraphQL fragment ${i}`),{queryRange:[],definitions:[]};const o=r.map(({filePath:e,content:t,definition:n})=>z(e||"",t,n));return{definitions:o,queryRange:o.map(n=>S(e,t))}})).apply(this,arguments)}function D(e,t,n){return{definitions:[z(e,t,n)],queryRange:n.name?[S(t,n.name)]:[]}}function z(e,t,n){const i=n.name;return C()(i,"Expected ASTNode to have a Name."),{path:e,position:T(t,n),range:S(t,n),name:i.value||"",language:E,projectRoot:e}}function j(e,t,n){const i=n.name;return C()(i,"Expected ASTNode to have a Name."),{path:e,position:T(t,n),range:S(t,n),name:i.value||"",language:E,projectRoot:e}}var A=n("EMzn"),R=n("hliF");function N(e,t=null,n,i){let r=null;try{r=Object(A.parse)(e)}catch(o){const t=P(o.locations[0],e);return[{severity:1,message:o.message,source:"GraphQL: Syntax",range:t}]}return L(r,t,n,i)}function L(e,t=null,n,i){if(!t)return[];const r=M(Object(_.validateWithCustomRules)(t,e,n,i),e=>F(e,1,"Validation")),o=R.a?M(Object(R.a)(t,e),e=>F(e,2,"Deprecation")):[];return r.concat(o)}function M(e,t){return Array.prototype.concat.apply([],e.map(t))}function F(e,t,n){return e.nodes?e.nodes.map(i=>{const r="Variable"!==i.kind&&"name"in i?i.name:"variable"in i?i.variable:i;C()(e.locations,"GraphQL validation error requires locations.");const o=e.locations[0],s=function(e){const t=e.loc;return C()(t,"Expected ASTNode to have a location."),t}(r),a=o.column+(s.end-s.start);return{source:`GraphQL: ${n}`,message:e.message,severity:t,range:new _.Range(new _.Position(o.line-1,o.column-1),new _.Position(o.line-1,a))}}):[]}function P(e,t){const n=Object(g.onlineParser)(),i=n.startState(),r=t.split("\n");C()(r.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let l=0;l({representativeName:t.name,startPosition:Object(_.offsetToPosition)(e,t.loc.start),endPosition:Object(_.offsetToPosition)(e,t.loc.end),children:t.selectionSet||[]});return{Field:e=>{const n=e.alias?[U("plain",e.alias),U("plain",": ")]:[];return n.push(U("plain",e.name)),{tokenizedText:n,...t(e)}},OperationDefinition:e=>({tokenizedText:[U("keyword",e.operation),U("whitespace"," "),U("class-name",e.name)],...t(e)}),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let r=0;re.value,FragmentDefinition:e=>({tokenizedText:[U("keyword","fragment"),U("whitespace"," "),U("class-name",e.name)],...t(e)}),FragmentSpread:e=>({tokenizedText:[U("plain","..."),U("class-name",e.name)],...t(e)}),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:Object(G.c)(t,{leave:e=>W.hasOwnProperty(e.kind)&&n[e.kind]?n[e.kind](e):null})}}function U(e,t){return{kind:e,value:t}}function H(e,t,n,i){const r=i||b(t,n);if(!e||!r||!r.state)return"";const o=r.state,s=o.kind,a=o.step,c=y(e,r.state),l={schema:e};if("Field"===s&&0===a&&c.fieldDef||"AliasedField"===s&&2===a&&c.fieldDef){const e=[];return function(e,t,n){q(e,t,n),K(e,t,n,t.type)}(e,c,l),Y(e,0,c.fieldDef),e.join("").trim()}if("Directive"===s&&1===a&&c.directiveDef){const e=[];return Q(e,c),Y(e,0,c.directiveDef),e.join("").trim()}if("Argument"===s&&0===a&&c.argDef){const e=[];return function(e,t,n){if(t.directiveDef?Q(e,t):t.fieldDef&&q(e,t,n),!t.argDef)return;const i=t.argDef.name;J(e,"("),J(e,i),K(e,t,n,t.inputType),J(e,")")}(e,c,l),Y(e,0,c.argDef),e.join("").trim()}if("EnumValue"===s&&c.enumValue&&"description"in c.enumValue){const e=[];return function(e,t,n){if(!t.enumValue)return;const i=t.enumValue.name;X(e,t,n,t.inputType),J(e,"."),J(e,i)}(e,c,l),Y(e,0,c.enumValue),e.join("").trim()}if("NamedType"===s&&c.type&&"description"in c.type){const e=[];return X(e,c,l,c.type),Y(e,0,c.type),e.join("").trim()}return""}function q(e,t,n){if(!t.fieldDef)return;const i=t.fieldDef.name;"__"!==i.slice(0,2)&&(X(e,t,n,t.parentType),J(e,".")),J(e,i)}function Q(e,t,n){t.directiveDef&&J(e,"@"+t.directiveDef.name)}function K(e,t,n,i){J(e,": "),X(e,t,n,i)}function X(e,t,n,r){r&&(r instanceof i.e?(X(e,t,n,r.ofType),J(e,"!")):r instanceof i.d?(J(e,"["),X(e,t,n,r.ofType),J(e,"]")):J(e,r.name))}function Y(e,t,n){if(!n)return;const i="string"==typeof n.description?n.description:null;i&&(J(e,"\n\n"),J(e,i)),function(e,t,n){if(!n)return;const i=n.deprecationReason?n.deprecationReason:null;i&&(J(e,"\n\n"),J(e,"Deprecated: "),J(e,i))}(e,0,n)}function J(e,t){e.push(t)}var Z=n("dQau");const{FRAGMENT_DEFINITION:ee,OBJECT_TYPE_DEFINITION:te,INTERFACE_TYPE_DEFINITION:ne,ENUM_TYPE_DEFINITION:ie,UNION_TYPE_DEFINITION:re,SCALAR_TYPE_DEFINITION:oe,INPUT_OBJECT_TYPE_DEFINITION:se,SCALAR_TYPE_EXTENSION:ae,OBJECT_TYPE_EXTENSION:ce,INTERFACE_TYPE_EXTENSION:le,UNION_TYPE_EXTENSION:ue,ENUM_TYPE_EXTENSION:he,INPUT_OBJECT_TYPE_EXTENSION:de,DIRECTIVE_DEFINITION:pe,FRAGMENT_SPREAD:fe,OPERATION_DEFINITION:ge,NAMED_TYPE:me}=V.a;class be{constructor(e){this._graphQLCache=e,this._graphQLConfig=e.getGraphQLConfig()}getConfigForURI(e){const t=this._graphQLConfig.getConfigForFile(e);if(t)return t;throw Error(`No config found for uri: ${e}`)}getDiagnostics(e,t,n){var i=this;return Object(w.a)(function*(){let r=!1;const o=i.getConfigForURI(t),{schemaPath:s,projectName:a,extensions:c}=o;try{const n=Object(A.parse)(e);s&&t===s||(r=n.definitions.some(e=>{switch(e.kind){case te:case ne:case ie:case re:case oe:case se:case ae:case ce:case le:case ue:case he:case de:case pe:return!0}return!1}))}catch(g){const t=P(g.locations[0],e);return[{severity:1,message:g.message,source:"GraphQL: Syntax",range:t}]}let l=e;const u=yield i._graphQLCache.getFragmentDefinitions(o);l=`${l} ${(yield i._graphQLCache.getFragmentDependencies(e,u)).reduce((e,t)=>`${e} ${Object(Z.print)(t.definition)}`,"")}`;let h,d=null;try{d=Object(A.parse)(l)}catch(g){return[]}const p=c.customValidationRules;if(p){const e=Object(_.resolveFile)(p);if(e){const t=yield Object(_.requireFile)(e);t&&(h=t(i._graphQLConfig))}}const f=yield i._graphQLCache.getSchema(a,r).catch(()=>null);return f?L(d,f,h,n):[]})()}getAutocompleteSuggestions(e,t,n){var i=this;return Object(w.a)(function*(){const r=i.getConfigForURI(n),o=yield i._graphQLCache.getSchema(r.projectName).catch(()=>null);return o?m(o,e,t):[]})()}getHoverInformation(e,t,n){var i=this;return Object(w.a)(function*(){const r=i.getConfigForURI(n),o=yield i._graphQLCache.getSchema(r.projectName).catch(()=>null);return o?H(o,e,t):""})()}getDefinition(e,t,n){var i=this;return Object(w.a)(function*(){const r=i.getConfigForURI(n);let o;try{o=Object(A.parse)(e)}catch(a){return null}const s=Object(_.getASTNodeAtPosition)(e,o,t);if(s)switch(s.kind){case fe:return i._getDefinitionForFragmentSpread(e,o,s,n,r);case ee:case ge:return D(n,e,s);case me:return i._getDefinitionForNamedType(e,o,s,n,r)}return null})()}_getDefinitionForNamedType(e,t,n,i,r){var o=this;return Object(w.a)(function*(){const s=yield o._graphQLCache.getObjectTypeDefinitions(r),a=yield o._graphQLCache.getObjectTypeDependenciesForAST(t,s),c=t.definitions.filter(e=>e.kind===te||e.kind===se||e.kind===ie).map(t=>({filePath:i,content:e,definition:t}));return yield function(e,t,n){return x.apply(this,arguments)}(e,n,a.concat(c))})()}_getDefinitionForFragmentSpread(e,t,n,i,r){var o=this;return Object(w.a)(function*(){const s=yield o._graphQLCache.getFragmentDefinitions(r),a=yield o._graphQLCache.getFragmentDependenciesForAST(t,s),c=t.definitions.filter(e=>e.kind===ee).map(t=>({filePath:i,content:e,definition:t}));return yield k(e,n,a.concat(c))})()}}},"IWB/":function(e,t,n){"use strict";var i=n("YsTz"),r={function:!0,object:!0};e.exports=function(e){return i(e)&&r[typeof e]||!1}},Iab2:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function t(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){o(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(e,o,s){var a=r.URL||r.webkitURL,c=document.createElement("a");c.download=o=o||e.name||"download",c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?i(c):n(c.href)?t(e,o,s):i(c,c.target="_blank")):(c.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(c.href)},4e4),setTimeout(function(){i(c)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,o){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),r);else if(n(e))t(e,r,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout(function(){i(s)})}}:function(e,n,i,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,i);var s="application/octet-stream"===e.type,a=/constructor/i.test(r.HTMLElement)||r.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&a)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var u=r.URL||r.webkitURL,h=u.createObjectURL(e);o?o.location=h:location.href=h,o=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});r.saveAs=o.saveAs=o,e.exports=o})?i.apply(t,[]):i)||(e.exports=r)},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return r});let i=(()=>{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 r extends i{constructor(e,t=i.now){super(e,()=>r.delegate&&r.delegate!==this?r.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return r.delegate&&r.delegate!==this?r.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}}}},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("7o/Q"),r=n("4I5i"),o=n("EY2u");function s(e){return t=>0===e?Object(o.b)():t.lift(new a(e))}class a{constructor(e){if(this.total=e,this.total<0)throw new r.a}call(e,t){return t.subscribe(new c(e,this.total))}}class c extends i.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},J7Ao:function(e,t){e.exports=class{constructor(){this.seen={}}slug(e){let t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){const e=t;do{this.seen[e]++,t=e+"-"+this.seen[e]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t}}},JCIs:function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterStream",function(){return i}),n.d(t,"LexRules",function(){return u}),n.d(t,"ParseRules",function(){return h}),n.d(t,"isIgnored",function(){return l}),n.d(t,"butNot",function(){return s}),n.d(t,"list",function(){return o}),n.d(t,"opt",function(){return r}),n.d(t,"p",function(){return c}),n.d(t,"t",function(){return a}),n.d(t,"onlineParser",function(){return f});class i{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let i=null,r=null;return"string"==typeof e?(r=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),i=e):e instanceof RegExp&&(r=this._sourceText.slice(this._pos).match(e),i=r&&r[0]),!(null==r||!("string"==typeof e||r instanceof Array&&this._sourceText.startsWith(r[0],this._pos)))&&(t&&(this._start=this._pos,i&&i.length&&(this._pos+=i.length)),r)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0===e.length){const n=e[0];let i=0;for(;n.length>i;)9===n.charCodeAt(i)?t+=2:t++,i++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function r(e){return{ofRule:e}}function o(e,t){return{ofRule:e,isList:!0,separator:t}}function s(e,t){const n=e.match;return e.match=e=>{let i=!1;return n&&(i=n(e)),i&&t.every(t=>t.match&&!t.match(e))},e}function a(e,t){return{style:t,match:t=>t.kind===e}}function c(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const l=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e,u={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},h={Document:[o("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[d("query"),r(p("def")),r("VariableDefinitions"),o("Directive"),"SelectionSet"],Mutation:[d("mutation"),r(p("def")),r("VariableDefinitions"),o("Directive"),"SelectionSet"],Subscription:[d("subscription"),r(p("def")),r("VariableDefinitions"),o("Directive"),"SelectionSet"],VariableDefinitions:[c("("),o("VariableDefinition"),c(")")],VariableDefinition:["Variable",c(":"),"Type",r("DefaultValue")],Variable:[c("$","variable"),p("variable")],DefaultValue:[c("="),"Value"],SelectionSet:[c("{"),o("Selection"),c("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[p("property"),c(":"),p("qualifier"),r("Arguments"),o("Directive"),r("SelectionSet")],Field:[p("property"),r("Arguments"),o("Directive"),r("SelectionSet")],Arguments:[c("("),o("Argument"),c(")")],Argument:[p("attribute"),c(":"),"Value"],FragmentSpread:[c("..."),p("def"),o("Directive")],InlineFragment:[c("..."),r("TypeCondition"),o("Directive"),"SelectionSet"],FragmentDefinition:[d("fragment"),r(s(p("def"),[d("on")])),"TypeCondition",o("Directive"),"SelectionSet"],TypeCondition:[d("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[a("Number","number")],StringValue:[a("String","string")],BooleanValue:[a("Name","builtin")],NullValue:[a("Name","keyword")],EnumValue:[p("string-2")],ListValue:[c("["),o("Value"),c("]")],ObjectValue:[c("{"),o("ObjectField"),c("}")],ObjectField:[p("attribute"),c(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[c("["),"Type",c("]"),r(c("!"))],NonNullType:["NamedType",r(c("!"))],NamedType:[{style:"atom",match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}}],Directive:[c("@","meta"),p("meta"),r("Arguments")],SchemaDef:[d("schema"),o("Directive"),c("{"),o("OperationTypeDef"),c("}")],OperationTypeDef:[p("keyword"),c(":"),p("atom")],ScalarDef:[d("scalar"),p("atom"),o("Directive")],ObjectTypeDef:[d("type"),p("atom"),r("Implements"),o("Directive"),c("{"),o("FieldDef"),c("}")],Implements:[d("implements"),o("NamedType")],FieldDef:[p("property"),r("ArgumentsDef"),c(":"),"Type",o("Directive")],ArgumentsDef:[c("("),o("InputValueDef"),c(")")],InputValueDef:[p("attribute"),c(":"),"Type",r("DefaultValue"),o("Directive")],InterfaceDef:[d("interface"),p("atom"),o("Directive"),c("{"),o("FieldDef"),c("}")],UnionDef:[d("union"),p("atom"),o("Directive"),c("="),o("UnionMember",c("|"))],UnionMember:["NamedType"],EnumDef:[d("enum"),p("atom"),o("Directive"),c("{"),o("EnumValueDef"),c("}")],EnumValueDef:[p("string-2"),o("Directive")],InputDef:[d("input"),p("atom"),o("Directive"),c("{"),o("InputValueDef"),c("}")],ExtendDef:[d("extend"),"ObjectTypeDef"],DirectiveDef:[d("directive"),c("@","meta"),p("meta"),r("ArgumentsDef"),d("on"),o("DirectiveLocation",c("|"))],DirectiveLocation:[p("string-2")]};function d(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function p(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function f(e={eatWhitespace:e=>e.eatWhile(l),lexRules:u,parseRules:h,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return b(e.parseRules,t,"Document"),t},token:(t,n)=>function(e,t,n){const{lexRules:i,parseRules:r,eatWhitespace:o,editorConfig:s}=n;if(t.rule&&0===t.rule.length?v(t):t.needsAdvance&&(t.needsAdvance=!1,y(t,!0)),e.sol()){const n=s&&s.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return"ws";const a=function(e,t){const n=Object.keys(e);for(let i=0;i0&&e[e.length-1]Object(i.a)(e,n,t)):t=>Object(i.a)(e,t)}},Jb7g:function(e,t,n){"use strict";var i=n("9Qh4"),r=n("s4AO"),o=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:i(function(t){return o[t]?o[t]:o[t]=e(String(t))}),keyFor:i(function(e){var t;for(t in r(e),o)if(o[t]===e)return t})})}},JgHy:function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return l});var i=n("rDax"),r=n("fXoL");let o=(()=>{class e{constructor(e){this.cdkConnectedOverlay=e,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop"}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(i.a))},e.\u0275dir=r.Lb({type:e,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],exportAs:["nzConnectedOverlay"]}),e})(),s=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)}}),e})();const a={top:new i.c({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new i.c({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new i.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new i.c({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new i.c({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new i.c({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new i.c({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new i.c({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new i.c({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new i.c({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new i.c({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new i.c({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new i.c({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new i.c({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},c=[a.top,a.right,a.bottom,a.left];function l(e){for(const t in a)if(e.connectionPair.originX===a[t].originX&&e.connectionPair.originY===a[t].originY&&e.connectionPair.overlayX===a[t].overlayX&&e.connectionPair.overlayY===a[t].overlayY)return t}new i.c({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new i.c({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),new i.c({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})},JlUD:function(e,t){function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=n,e.exports.default=n},JvOi:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},KbBO:function(e,t,n){"use strict";e.exports=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}},Kj3r:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("D0XW");function o(e,t=r.a){return n=>n.lift(new s(e,t))}class s{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new a(e,this.dueTime,this.scheduler))}}class a extends i.a{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function c(e){e.debouncedNext()}},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new o(e,t,n))}}class o{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new s(e,this.accumulator,this.seed,this.hasSeed))}}class s extends i.a{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}},Ku0u:function(e,t,n){!function(e){function t(t,n,i){var r,o=t.getWrapperElement();return(r=o.appendChild(document.createElement("div"))).className=i?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?r.innerHTML=n:r.appendChild(n),e.addClass(o,"dialog-opened"),r}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(i,r,o){o||(o={}),n(this,null);var s=t(this,i,o.bottom),a=!1,c=this;function l(t){if("string"==typeof t)h.value=t;else{if(a)return;a=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),c.focus(),o.onClose&&o.onClose(s)}}var u,h=s.getElementsByTagName("input")[0];return h?(h.focus(),o.value&&(h.value=o.value,!1!==o.selectValueOnOpen&&h.select()),o.onInput&&e.on(h,"input",function(e){o.onInput(e,h.value,l)}),o.onKeyUp&&e.on(h,"keyup",function(e){o.onKeyUp(e,h.value,l)}),e.on(h,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,h.value,l)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(h.blur(),e.e_stop(t),l()),13==t.keyCode&&r(h.value,t))}),!1!==o.closeOnBlur&&e.on(s,"focusout",function(e){null!==e.relatedTarget&&l()})):(u=s.getElementsByTagName("button")[0])&&(e.on(u,"click",function(){l(),c.focus()}),!1!==o.closeOnBlur&&e.on(u,"blur",l),u.focus()),l}),e.defineExtension("openConfirm",function(i,r,o){n(this,null);var s=t(this,i,o&&o.bottom),a=s.getElementsByTagName("button"),c=!1,l=this,u=1;function h(){c||(c=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),l.focus())}a[0].focus();for(var d=0;d2&&void 0!==arguments[2]?arguments[2]:r,s=void 0,c=Array.isArray(e),l=[e],h=-1,d=[],p=void 0,f=void 0,g=void 0,m=[],b=[],v=e;do{var y=++h===l.length,w=y&&0!==d.length;if(y){if(f=0===b.length?void 0:m[m.length-1],p=g,g=b.pop(),w){if(c)p=p.slice();else{for(var _={},O=0,C=Object.keys(p);O{const e=Object(r.b)();return{variables:e.initialData.variables?""+e.initialData.variables:"{}",files:[]}};function a(e=s(),t){switch(t.type){case i.h:return{...e,variables:t.payload};case i.a:return e.files=e.files||[],{...e,files:[...e.files,{...o}]};case i.c:return{...e,files:e.files.filter((e,n)=>n!==t.payload.index)};case i.g:return{...e,files:e.files.map((e,n)=>n===t.payload.index?{...e,name:t.payload.name}:e)};case i.e:return{...e,files:e.files.map((e,n)=>n===t.payload.index?{...e,data:t.payload.fileData}:e)};case i.f:return{...e,files:e.files.map((e,n)=>n===t.payload.index?{...e,isMultiple:t.payload.isMultiple}:e)};default:return e}}},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("z+Ro"),r=n("yCtX"),o=n("jZKg");function s(...e){let t=e[e.length-1];return Object(i.a)(t)?(e.pop(),Object(o.a)(e,t)):Object(r.a)(e)}},LViu:function(e,t,n){"use strict";n.r(t),n.d(t,"__Schema",function(){return h}),n.d(t,"__Directive",function(){return d}),n.d(t,"__DirectiveLocation",function(){return p}),n.d(t,"__Type",function(){return f}),n.d(t,"__Field",function(){return g}),n.d(t,"__InputValue",function(){return m}),n.d(t,"__EnumValue",function(){return b}),n.d(t,"TypeKind",function(){return v}),n.d(t,"__TypeKind",function(){return y}),n.d(t,"SchemaMetaFieldDef",function(){return w}),n.d(t,"TypeMetaFieldDef",function(){return _}),n.d(t,"TypeNameMetaFieldDef",function(){return O}),n.d(t,"introspectionTypes",function(){return C}),n.d(t,"isIntrospectionType",function(){return E});var i=n("1QEH"),r=n("rWdj"),o=n("2C6G"),s=n("dQau"),a=n("F8X2"),c=n("3HNt"),l=n("19Hc"),u=n("axIb"),h=new u.f({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{types:{description:"A list of all types supported by this server.",type:Object(u.e)(Object(u.d)(Object(u.e)(f))),resolve:function(e){return Object(i.a)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:Object(u.e)(f),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:Object(u.e)(Object(u.d)(Object(u.e)(d))),resolve:function(e){return e.getDirectives()}}}}}),d=new u.f({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:Object(u.e)(l.e),resolve:function(e){return e.name}},description:{type:l.e,resolve:function(e){return e.description}},locations:{type:Object(u.e)(Object(u.d)(Object(u.e)(p))),resolve:function(e){return e.locations}},args:{type:Object(u.e)(Object(u.d)(Object(u.e)(m))),resolve:function(e){return e.args}}}}}),p=new u.a({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:a.a.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:a.a.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:a.a.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:a.a.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:a.a.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:a.a.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:a.a.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:a.a.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:a.a.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:a.a.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:a.a.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:a.a.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:a.a.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:a.a.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:a.a.UNION,description:"Location adjacent to a union definition."},ENUM:{value:a.a.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:a.a.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:a.a.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:a.a.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),f=new u.f({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:Object(u.e)(y),resolve:function(e){return Object(u.R)(e)?v.SCALAR:Object(u.N)(e)?v.OBJECT:Object(u.H)(e)?v.INTERFACE:Object(u.T)(e)?v.UNION:Object(u.E)(e)?v.ENUM:Object(u.F)(e)?v.INPUT_OBJECT:Object(u.J)(e)?v.LIST:Object(u.L)(e)?v.NON_NULL:void Object(o.a)(!1,'Unexpected type: "'.concat(Object(r.a)(e),'".'))}},name:{type:l.e,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:l.e,resolve:function(e){return void 0!==e.description?e.description:void 0}},fields:{type:Object(u.d)(Object(u.e)(g)),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(u.N)(e)||Object(u.H)(e)){var r=Object(i.a)(e.getFields());return n||(r=r.filter(function(e){return!e.deprecationReason})),r}return null}},interfaces:{type:Object(u.d)(Object(u.e)(f)),resolve:function(e){if(Object(u.N)(e))return e.getInterfaces()}},possibleTypes:{type:Object(u.d)(Object(u.e)(f)),resolve:function(e,t,n,i){var r=i.schema;if(Object(u.C)(e))return r.getPossibleTypes(e)}},enumValues:{type:Object(u.d)(Object(u.e)(b)),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(u.E)(e)){var i=e.getValues();return n||(i=i.filter(function(e){return!e.deprecationReason})),i}}},inputFields:{type:Object(u.d)(Object(u.e)(m)),resolve:function(e){if(Object(u.F)(e))return Object(i.a)(e.getFields())}},ofType:{type:f,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),g=new u.f({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:Object(u.e)(l.e),resolve:function(e){return e.name}},description:{type:l.e,resolve:function(e){return e.description}},args:{type:Object(u.e)(Object(u.d)(Object(u.e)(m))),resolve:function(e){return e.args}},type:{type:Object(u.e)(f),resolve:function(e){return e.type}},isDeprecated:{type:Object(u.e)(l.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:l.e,resolve:function(e){return e.deprecationReason}}}}}),m=new u.f({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:Object(u.e)(l.e),resolve:function(e){return e.name}},description:{type:l.e,resolve:function(e){return e.description}},type:{type:Object(u.e)(f),resolve:function(e){return e.type}},defaultValue:{type:l.e,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=Object(c.a)(e.defaultValue,e.type);return t?Object(s.print)(t):null}}}}}),b=new u.f({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:Object(u.e)(l.e),resolve:function(e){return e.name}},description:{type:l.e,resolve:function(e){return e.description}},isDeprecated:{type:Object(u.e)(l.a),resolve:function(e){return e.isDeprecated}},deprecationReason:{type:l.e,resolve:function(e){return e.deprecationReason}}}}}),v=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),y=new u.a({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:v.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:v.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:v.INTERFACE,description:"Indicates this type is an interface. `fields` and `possibleTypes` are valid fields."},UNION:{value:v.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:v.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:v.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:v.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:v.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),w={name:"__schema",type:Object(u.e)(h),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,i){return i.schema},deprecationReason:void 0,extensions:void 0,astNode:void 0},_={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:Object(u.e)(l.e),defaultValue:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,i){return i.schema.getType(t.name)},deprecationReason:void 0,extensions:void 0,astNode:void 0},O={name:"__typename",type:Object(u.e)(l.e),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,i){return i.parentType.name},deprecationReason:void 0,extensions:void 0,astNode:void 0},C=Object.freeze([h,d,p,f,g,m,b,y]);function E(e){return Object(u.K)(e)&&C.some(function(t){return e.name===t.name})}},Lhse:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return r});const r=i()},Lxz9:function(e,t,n){var i={"./Range.js":"VWUu","./file.js":"8O83","./getASTNodeAtPosition.js":"gI7C","./index.js":"HmyC","./validateWithCustomRules.js":"qvY7"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Lxz9"},MFua:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("/D3x"),r=n("nTiS"),o=n("BGZm");Object(r.b)();const s=()=>{const e=Object(r.b)();return{theme:e.defaultTheme,language:e.default_language,addQueryDepthLimit:e.add_query_depth_limit,tabSize:e.tab_size,...e.initialData.settings||{}}};function a(e=s(),t){switch(t.type){case i.a:return{...s(),...Object(o.g)(t.payload.value)};default:return e}}},Mbdf:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("1QEH"),r=n("kBjl"),o=n("rWdj"),s=n("2C6G"),a=n("/kEc"),c=n("/jXB"),l=n("axIb");function u(e,t,n){if(e){if(Object(l.L)(t)){if(e.kind===c.a.NULL)return;return u(e,t.ofType,n)}if(e.kind===c.a.NULL)return null;if(e.kind===c.a.VARIABLE){var d=e.name.value;if(!n||Object(a.a)(n[d]))return;var p=n[d];if(null===p&&Object(l.L)(t))return;return p}if(Object(l.J)(t)){var f=t.ofType;if(e.kind===c.a.LIST){for(var g=[],m=0,b=e.values;m{throw e},0)}n.d(t,"a",function(){return i})},NSes:function(e,t,n){"use strict";var i=n("ck6w"),r=n("1TtK"),o=n("lq5y"),s=Array.prototype.indexOf,a=Object.prototype.hasOwnProperty,c=Math.abs,l=Math.floor;e.exports=function(e){var t,n,u;if(!i(e))return s.apply(this,arguments);for(n=r(o(this).length),u=arguments[1],t=u=isNaN(u)?0:u>=0?l(u):r(this.length)-l(c(u));t{let n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(r.a)(n):Object(o.b)()).subscribe(t)})}},Nqz0:function(e,t,n){"use strict";n.d(t,"a",function(){return M}),n.d(t,"b",function(){return V}),n.d(t,"c",function(){return P});var i=n("mrSG"),r=n("FtGj"),o=n("rDax"),s=n("nLfN"),a=n("+rOU"),c=n("fXoL"),l=n("79xS"),u=n("JgHy"),h=n("/KA4"),d=n("XNiG"),p=n("2Vo4"),f=n("VRyK"),g=n("xgIS"),m=n("EY2u"),b=n("itXk"),v=(n("quSY"),n("CqXF")),y=n("lJxs"),w=n("eIep"),_=n("pLZG"),O=n("3UWI"),C=n("/uUt"),E=n("1G5W"),S=(n("IzEk"),n("cH1L")),T=n("ofXK"),x=n("3Pt+"),k=n("OzZK"),I=n("YF2q"),D=n("pdGh"),z=n("FwiY"),j=n("Q8cG"),A=n("GR68");function R(e,t){if(1&e){const e=c.Xb();c.Wb(0,"div",0),c.dc("mouseenter",function(){return c.wc(e),c.gc().setMouseState(!0)})("mouseleave",function(){return c.wc(e),c.gc().setMouseState(!1)}),c.kc(1),c.Vb()}if(2&e){const e=c.gc();c.Ib("ant-dropdown-rtl","rtl"===e.dir),c.mc("ngClass",e.nzOverlayClassName)("ngStyle",e.nzOverlayStyle)("@slideMotion","enter")("@.disabled",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("nzNoAnimation",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)}}const N=["*"],L=[u.d.bottomLeft,u.d.bottomRight,u.d.topRight,u.d.topLeft];let M=(()=>{class e{constructor(e,t,n,i,r){this.elementRef=e,this.overlay=t,this.renderer=n,this.viewContainerRef=i,this.platform=r,this.overlayRef=null,this.destroy$=new d.a,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new p.a(!1),this.nzTrigger$=new p.a("hover"),this.overlayClose$=new d.a,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzHasBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new c.n,this.elementRef.nativeElement.classList.add("ant-dropdown-trigger")}setDropdownMenuValue(e,t){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(e,t)}ngOnInit(){}ngAfterViewInit(){if(this.nzDropdownMenu){const e=this.elementRef.nativeElement,t=Object(f.a)(Object(g.a)(e,"mouseenter").pipe(Object(v.a)(!0)),Object(g.a)(e,"mouseleave").pipe(Object(v.a)(!1))),n=this.nzDropdownMenu.mouseState$,i=Object(f.a)(n,t),o=Object(g.a)(e,"click").pipe(Object(y.a)(()=>!this.nzVisible)),s=this.nzTrigger$.pipe(Object(w.a)(e=>"hover"===e?i:"click"===e?o:m.a)),c=this.nzDropdownMenu.descendantMenuItemClick$.pipe(Object(_.a)(()=>this.nzClickHide),Object(v.a)(!1)),l=Object(f.a)(s,c,this.overlayClose$).pipe(Object(_.a)(()=>!this.nzDisabled)),h=Object(f.a)(this.inputVisible$,l);Object(b.a)([h,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(Object(y.a)(([e,t])=>e||t),Object(O.a)(150),Object(C.a)(),Object(_.a)(()=>this.platform.isBrowser),Object(E.a)(this.destroy$)).subscribe(t=>{const n=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:e).getBoundingClientRect().width;this.nzVisible!==t&&this.nzVisibleChange.emit(t),this.nzVisible=t,t?(this.overlayRef?this.overlayRef.getConfig().minWidth=n:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:n,disposeOnNavigation:!0,hasBackdrop:(this.nzHasBackdrop||this.nzBackdrop)&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),Object(f.a)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe(Object(_.a)(e=>!this.elementRef.nativeElement.contains(e.target))),this.overlayRef.keydownEvents().pipe(Object(_.a)(e=>e.keyCode===r.f&&!Object(r.p)(e)))).pipe(Object(v.a)(!1),Object(E.a)(this.destroy$)).subscribe(this.overlayClose$)),this.positionStrategy.withPositions([u.d[this.nzPlacement],...L]),this.portal&&this.portal.templateRef===this.nzDropdownMenu.templateRef||(this.portal=new a.f(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(e){const{nzVisible:t,nzDisabled:n,nzOverlayClassName:i,nzOverlayStyle:r,nzTrigger:o,nzBackdrop:s}=e;if(o&&this.nzTrigger$.next(this.nzTrigger),t&&this.inputVisible$.next(this.nzVisible),n){const e=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(e,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(e,"disabled")}i&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),r&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle),s&&Object(l.c)("`nzBackdrop` in dropdown component will be removed in 12.0.0, please use `nzHasBackdrop` instead.")}}return e.\u0275fac=function(t){return new(t||e)(c.Qb(c.l),c.Qb(o.e),c.Qb(c.G),c.Qb(c.S),c.Qb(s.a))},e.\u0275dir=c.Lb({type:e,selectors:[["","nz-dropdown",""]],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzHasBackdrop:"nzHasBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[c.Cb]}),Object(i.b)([Object(h.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzBackdrop",void 0),Object(i.b)([Object(h.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzHasBackdrop",void 0),Object(i.b)([Object(h.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzClickHide",void 0),Object(i.b)([Object(h.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(i.b)([Object(h.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzVisible",void 0),e})(),F=(()=>{class e{}return e.\u0275mod=c.Ob({type:e}),e.\u0275inj=c.Nb({factory:function(t){return new(t||e)}}),e})(),P=(()=>{class e{constructor(e,t,n,i,r,o,s){this.cdr=e,this.elementRef=t,this.renderer=n,this.viewContainerRef=i,this.nzMenuService=r,this.directionality=o,this.noAnimation=s,this.mouseState$=new p.a(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new d.a}setMouseState(e){this.mouseState$.next(e)}setValue(e,t){this[e]=t,this.cdr.markForCheck()}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(E.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(c.Qb(c.h),c.Qb(c.l),c.Qb(c.G),c.Qb(c.S),c.Qb(j.a),c.Qb(S.b,8),c.Qb(I.a,9))},e.\u0275cmp=c.Kb({type:e,selectors:[["nz-dropdown-menu"]],viewQuery:function(e,t){if(1&e&&c.Kc(c.O,3),2&e){let e;c.sc(e=c.ec())&&(t.templateRef=e.first)}},exportAs:["nzDropdownMenu"],features:[c.Db([j.a,{provide:j.b,useValue:!0}])],ngContentSelectors:N,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(e,t){1&e&&(c.lc(),c.Ec(0,R,2,7,"ng-template"))},directives:[T.l,T.p,I.a],encapsulation:2,data:{animation:[A.d]},changeDetection:0}),e})(),V=(()=>{class e{}return e.\u0275mod=c.Ob({type:e}),e.\u0275inj=c.Nb({factory:function(t){return new(t||e)},imports:[[S.a,T.c,o.h,x.i,k.c,j.f,z.b,I.b,s.b,u.c,F,D.a],j.f]}),e})();new o.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new o.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new o.c({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new o.c({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},NtLt:function(e,t,n){var i=n("3IO0");e.exports=function(e){return i(e).replace(/[\W_]+(.|$)/g,function(e,t){return t?" "+t:""}).trim()}},NtW8:function(e,t,n){"use strict";var i,r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r=function(){for(var e=arguments.length,t=Array(e),n=0;n(0,o.getDiagnostics)(e,t.schema).map(e=>({message:e.message,severity:s[e.severity-1],type:a[e.source],from:r.default.Pos(e.range.start.line,e.range.start.character),to:r.default.Pos(e.range.end.line,e.range.end.character)})))},OO9G:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i,r=n("pv/G"),o=n("T95z"),s=n("dWS+"),a=n("/jXB"),c=n("Xizt"),l=n("axIb");function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return"Cannot extend non-".concat(t,' type "').concat(e,'".')}function d(e){for(var t=e.getSchema(),n=Object.create(null),i=0,u=e.getDocument().definitions;ie.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(i=e[Symbol.iterator]()).next.bind(i)}var i=function(e){var t={exports:{}};return function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:t,changeDefaults:function(t){e.exports.defaults=t}}}(t),t.exports}(),r=/[&<>"']/,o=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(e){return c[e]},u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(u,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var d=/(^|[^\[])\^/g,p=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},m=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r=0&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:E(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e}).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=E(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:S(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,o,s,a,c,l,u,h=t[0],d=t[2],p=d.length>1,f={type:"list",raw:h,ordered:p,start:p?+d.slice(0,-1):"",loose:!1,items:[]},g=t[0].match(this.rules.block.item),m=!1,b=g.length;r=this.rules.block.listItemStart.exec(g[0]);for(var v=0;vr[1].length:o[1].length>=r[0].length||o[1].length>3){g.splice(v,2,g[v]+(!this.options.pedantic&&o[1].length/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):T(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var i=E(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var s=t[2],a="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);c&&(s=c[1],a=c[3])}else a=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^$/.test(n)?s.slice(1):s.slice(1,-1)),x(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return x(n,i,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,s,a=i[0].length-1,c=a,l=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);null!=(i=u.exec(t));)if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(s=o.length,i[3]||i[4])c+=s;else if(!((i[5]||i[6])&&a%3)||(a+s)%3){if(!((c-=s)>0)){if(c+l-s<=0&&!t.slice(u.lastIndex).match(u)&&(s=Math.min(s,s+c+l)),Math.min(a,s)%2)return{type:"em",raw:e.slice(0,a+i.index+s+1),text:e.slice(1,a+i.index+s)};if(Math.min(a,s)%2==0)return{type:"strong",raw:e.slice(0,a+i.index+s+1),text:e.slice(2,a+i.index+s-1)}}}else l+=s}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=T(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=T(this.options.mangle?t(r[1]):r[1])):n=T(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=T(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=T(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):T(r[0]):r[0]:T(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),I={exec:function(){}},D=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(d,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n},z=O,j={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:I,table:I,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};j.def=D(j.def).replace("label",j._label).replace("title",j._title).getRegex(),j.bullet=/(?:[*+-]|\d{1,9}[.)])/,j.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,j.item=D(j.item,"gm").replace(/bull/g,j.bullet).getRegex(),j.listItemStart=D(/^( *)(bull) */).replace("bull",j.bullet).getRegex(),j.list=D(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex(),j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j._comment=/|$)/,j.html=D(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j.paragraph=D(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.blockquote=D(j.blockquote).replace("paragraph",j.paragraph).getRegex(),j.normal=z({},j),j.gfm=z({},j.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),j.gfm.nptable=D(j.gfm.nptable).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.gfm.table=D(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",j._tag).getRegex(),j.pedantic=z({},j.normal,{html:D("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:I,paragraph:D(j.normal._paragraph).replace("hr",j.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var A={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};A.punctuation=D(A.punctuation).replace(/punctuation/g,A._punctuation).getRegex(),A.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,A.escapedEmSt=/\\\*|\\_/g,A._comment=D(j._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),A.emStrong.lDelim=D(A.emStrong.lDelim).replace(/punct/g,A._punctuation).getRegex(),A.emStrong.rDelimAst=D(A.emStrong.rDelimAst,"g").replace(/punct/g,A._punctuation).getRegex(),A.emStrong.rDelimUnd=D(A.emStrong.rDelimUnd,"g").replace(/punct/g,A._punctuation).getRegex(),A._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,A._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,A._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,A.autolink=D(A.autolink).replace("scheme",A._scheme).replace("email",A._email).getRegex(),A._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,A.tag=D(A.tag).replace("comment",A._comment).replace("attribute",A._attribute).getRegex(),A._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,A._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,A._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,A.link=D(A.link).replace("label",A._label).replace("href",A._href).replace("title",A._title).getRegex(),A.reflink=D(A.reflink).replace("label",A._label).getRegex(),A.reflinkSearch=D(A.reflinkSearch,"g").replace("reflink",A.reflink).replace("nolink",A.nolink).getRegex(),A.normal=z({},A),A.pedantic=z({},A.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:D(/^!?\[(label)\]\((.*?)\)/).replace("label",A._label).getRegex(),reflink:D(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",A._label).getRegex()}),A.gfm=z({},A.normal,{escape:D(A.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\1;)1&t&&(n+=e),t>>=1,e+=e;return n+e};function P(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function V(e){var t,n,i="",r=e.length;for(t=0;t.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var G=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||N,this.options.tokenizer=this.options.tokenizer||new k,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:L.normal,inline:M.normal};this.options.pedantic?(t.block=L.pedantic,t.inline=M.pedantic):this.options.gfm&&(t.block=L.gfm,t.inline=this.options.breaks?M.breaks:M.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,i,r=t.prototype;return r.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},r.blockTokens=function(e,t,n){var i,r,o,s;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),(s=t[t.length-1])&&"paragraph"===s.type?(s.raw+="\n"+i.raw,s.text+="\n"+i.text):t.push(i);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),o=i.items.length,r=0;r0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+F("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+F("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,s.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(c=""),a=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i)){e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var h=t[t.length-1];h&&"text"===r.type&&"text"===h.type?(h.raw+=r.raw,h.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);var d=t[t.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),t.push(r)):d&&"text"===r.type&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):t.push(r)}else if(r=this.tokenizer.emStrong(e,l,c))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,V))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,V))){if(r=this.tokenizer.inlineText(e,i,P))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),a=!0,(o=t[t.length-1])&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):t.push(r);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,i=[{key:"rules",get:function(){return{block:L,inline:M}}}],null&&e(n.prototype,null),i&&e(n,i),t}(),B=i.defaults,W=function(e,t,n){if(e){var i;try{i=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!f.test(n)&&(n=function(e,t){g[" "+e]||(g[" "+e]=m.test(e)?e+"/":y(e,"/",!0));var n=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(b,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(v,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n},$=w,U=function(){function e(e){this.options=e||B}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'
'+(n?e:$(e,!0))+"
\n":"
"+(n?e:$(e,!0))+"
\n"},t.blockquote=function(e){return"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=W(this.options.sanitize,this.options.baseUrl,e)))return n;var i='"+n+""},t.image=function(e,t,n){if(null===(e=W(this.options.sanitize,this.options.baseUrl,e)))return n;var i=''+n+'":">")},t.text=function(e){return e},e}(),H=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),q=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),Q=i.defaults,K=_,X=function(){function e(e){this.options=e||Q,this.options.renderer=this.options.renderer||new U,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new H,this.slugger=new q}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,o,s,a,c,l,u,h,d,p,f,g,m,b,v,y,w="",_=e.length;for(n=0;n<_;n++)switch((h=e[n]).type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(h.tokens),h.depth,K(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(l="",c="",o=h.header.length,i=0;i0&&"text"===m.tokens[0].type?(m.tokens[0].text=y+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=y+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:y}):g+=y),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,v,b);w+=this.renderer.list(u,d,p);continue;case"html":w+=this.renderer.html(h.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(u=h.tokens?this.parseInline(h.tokens):h.text;n+1<_&&"text"===e[n+1].type;)u+="\n"+((h=e[++n]).tokens?this.parseInline(h.tokens):h.text);w+=t?this.renderer.paragraph(u):u;continue;default:var O='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(O);throw new Error(O)}return w},t.parseInline=function(e,t){t=t||this.renderer;var n,i,r="",o=e.length;for(n=0;nAn error occurred:

    "+Z(c.message+"",!0)+"
    ";throw c}}return ie.options=ie.setOptions=function(e){return Y(ie.defaults,e),te(ie.defaults),ie},ie.getDefaults=ee,ie.defaults=ne,ie.use=function(e){var t=Y({},e);if(e.renderer&&function(){var n=ie.defaults.renderer||new U,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),s=0;sAn error occurred:

    "+Z(i.message+"",!0)+"
    ";throw i}},ie.Parser=X,ie.parser=X.parse,ie.Renderer=U,ie.TextRenderer=H,ie.Lexer=G,ie.lexer=G.lex,ie.Tokenizer=k,ie.Slugger=q,ie.parse=ie,ie}()},OufF:function(e,t,n){"use strict";let i,r,o,s,a,c,l;function u(){const e=o,t=[];if(f("{"),!m("}")){do{t.push(h())}while(m(","));f("}")}return{kind:"Object",start:e,end:a,members:t}}function h(){const e=o,t="String"===l?p():null;f("String"),f(":");const n=d();return{kind:"Member",start:e,end:a,key:t,value:n}}function d(){switch(l){case"[":return function(){const e=o,t=[];if(f("["),!m("]")){do{t.push(d())}while(m(","));f("]")}return{kind:"Array",start:e,end:a,values:t}}();case"{":return u();case"String":case"Number":case"Boolean":case"Null":const e=p();return v(),e}return f("Value")}function p(){return{kind:l,start:o,end:s,value:JSON.parse(i.slice(o,s))}}function f(e){if(l===e)return void v();let t;if("EOF"===l)t="[end of file]";else if(s-o>1)t="`"+i.slice(o,s)+"`";else{const e=i.slice(o).match(/^.+?\b/);t="`"+(e?e[0]:i[o])+"`"}throw g(`Expected ${e} but found ${t}.`)}function g(e){return{message:e,start:o,end:s}}function m(e){if(l===e)return v(),!0}function b(){s31;)if(92===c)switch(b(),c){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:b();break;case 117:b(),y(),y(),y(),y();break;default:throw g("Bad character escape sequence.")}else{if(s===r)throw g("Unterminated string.");b()}if(34!==c)throw g("Unterminated string.");b()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return l="Number",45===c&&b(),48===c?b():w(),46===c&&(b(),w()),void(69!==c&&101!==c||(b(),43!==c&&45!==c||b(),w()));case 102:if("false"!==i.slice(o,o+5))break;return s+=4,b(),void(l="Boolean");case 110:if("null"!==i.slice(o,o+4))break;return s+=3,b(),void(l="Null");case 116:if("true"!==i.slice(o,o+4))break;return s+=3,b(),void(l="Boolean")}l=i[o],b()}else l="EOF"}function y(){if(c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102)return b();throw g("Expected hexadecimal digit.")}function w(){if(c<48||c>57)throw g("Expected decimal digit.");do{b()}while(c>=48&&c<=57)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){i=e,r=e.length,o=s=a=-1,b(),v();const t=u();return f("EOF"),t}},OySI:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i={isTestMode:!1}},OzZK:function(e,t,n){"use strict";n.d(t,"a",function(){return w}),n.d(t,"b",function(){return _}),n.d(t,"c",function(){return O});var i=n("mrSG"),r=n("cH1L"),o=n("fXoL"),s=n("2Suw"),a=n("79xS"),c=n("/KA4"),l=n("FwiY"),u=n("XNiG"),h=n("1G5W"),d=n("JX91"),p=n("pLZG"),f=n("ofXK"),g=n("C2AL"),m=n("RwU8");const b=["nz-button",""];function v(e,t){1&e&&o.Rb(0,"i",1)}const y=["*"];let w=(()=>{class e{constructor(e,t,n,i,r){this.elementRef=e,this.cdr=t,this.renderer=n,this.nzConfigService=i,this.directionality=r,this._nzModuleName="button",this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new u.a,this.loading$=new u.a,this.elementRef.nativeElement.classList.add("ant-btn"),this.nzConfigService.getConfigChangeEventForComponent("button").pipe(Object(h.a)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(e,t){e.forEach(e=>{if("#text"===e.nodeName){const n=t.createElement("span"),i=t.parentNode(e);t.insertBefore(i,n,e),t.appendChild(n,e)}})}assertIconOnly(e,t){const n=Array.from(e.childNodes),i=n.filter(e=>"I"===e.nodeName).length,r=n.every(e=>"#text"!==e.nodeName);n.every(e=>"SPAN"!==e.nodeName)&&r&&i>=1&&t.addClass(e,"ant-btn-icon-only")}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(h.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzLoading:t,nzType:n}=e;t&&this.loading$.next(this.nzLoading),"danger"===(null==n?void 0:n.currentValue)&&Object(a.c)("'danger' value of 'nzType' in Button is going to be removed in 12.0.0. Please use 'nzDanger' instead.")}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe(Object(d.a)(this.nzLoading),Object(p.a)(()=>!!this.nzIconDirectiveElement),Object(h.a)(this.destroy$)).subscribe(e=>{const t=this.nzIconDirectiveElement.nativeElement;e?this.renderer.setStyle(t,"display","none"):this.renderer.removeStyle(t,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(o.l),o.Qb(o.h),o.Qb(o.G),o.Qb(s.a),o.Qb(r.b,8))},e.\u0275cmp=o.Kb({type:e,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(e,t,n){if(1&e&&o.Jb(n,l.a,1,o.l),2&e){let e;o.sc(e=o.ec())&&(t.nzIconDirectiveElement=e.first)}},hostVars:32,hostBindings:function(e,t){2&e&&(o.Fb("tabindex",t.disabled?-1:null===t.tabIndex?null:t.tabIndex)("disabled",t.disabled||null),o.Ib("ant-btn-primary","primary"===t.nzType)("ant-btn-dashed","dashed"===t.nzType)("ant-btn-link","link"===t.nzType)("ant-btn-text","text"===t.nzType)("ant-btn-danger","danger"===t.nzType)("ant-btn-circle","circle"===t.nzShape)("ant-btn-round","round"===t.nzShape)("ant-btn-lg","large"===t.nzSize)("ant-btn-sm","small"===t.nzSize)("ant-btn-dangerous",t.nzDanger)("ant-btn-loading",t.nzLoading)("ant-btn-background-ghost",t.nzGhost)("ant-btn-block",t.nzBlock)("ant-input-search-button",t.nzSearch)("ant-btn-rtl","rtl"===t.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[o.Cb],attrs:b,ngContentSelectors:y,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(e,t){1&e&&(o.lc(),o.Ec(0,v,1,0,"i",0),o.kc(1)),2&e&&o.mc("ngIf",t.nzLoading)},directives:[f.o,l.a,g.a],encapsulation:2,changeDetection:0}),Object(i.b)([Object(c.a)(),Object(i.c)("design:type",Boolean)],e.prototype,"nzBlock",void 0),Object(i.b)([Object(c.a)(),Object(i.c)("design:type",Boolean)],e.prototype,"nzGhost",void 0),Object(i.b)([Object(c.a)(),Object(i.c)("design:type",Boolean)],e.prototype,"nzSearch",void 0),Object(i.b)([Object(c.a)(),Object(i.c)("design:type",Boolean)],e.prototype,"nzLoading",void 0),Object(i.b)([Object(c.a)(),Object(i.c)("design:type",Boolean)],e.prototype,"nzDanger",void 0),Object(i.b)([Object(c.a)(),Object(i.c)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.b)([Object(s.b)(),Object(i.c)("design:type",String)],e.prototype,"nzSize",void 0),e})(),_=(()=>{class e{constructor(e,t){this.elementRef=e,this.directionality=t,this.nzSize="default",this.dir="ltr",this.destroy$=new u.a,this.elementRef.nativeElement.classList.add("ant-btn-group")}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(h.a)(this.destroy$)).subscribe(e=>{this.dir=e})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(o.l),o.Qb(r.b,8))},e.\u0275cmp=o.Kb({type:e,selectors:[["nz-button-group"]],hostVars:6,hostBindings:function(e,t){2&e&&o.Ib("ant-btn-group-lg","large"===t.nzSize)("ant-btn-group-sm","small"===t.nzSize)("ant-btn-group-rtl","rtl"===t.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:y,decls:1,vars:0,template:function(e,t){1&e&&(o.lc(),o.kc(0))},encapsulation:2,changeDetection:0}),e})(),O=(()=>{class e{}return e.\u0275mod=o.Ob({type:e}),e.\u0275inj=o.Nb({factory:function(t){return new(t||e)},imports:[[r.a,f.c,m.b,l.b,g.b],g.b,m.b]}),e})()},P57A:function(e,t,n){"use strict";var i,r=(i=n("VrN/"))&&i.__esModule?i:{default:i};function o(e,t){const n=t.target||t.srcElement;if("SPAN"!==n.nodeName)return;const i=n.getBoundingClientRect();e.state.jump.cursor={left:(i.left+i.right)/2,top:(i.top+i.bottom)/2},e.state.jump.isHoldingModifier&&l(e)}function s(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&u(e):e.state.jump.cursor=null}function a(e,t){if(e.state.jump.isHoldingModifier||t.key!==(c?"Meta":"Control"))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&l(e);const n=s=>{s.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&u(e),r.default.off(document,"keyup",n),r.default.off(document,"click",i),e.off("mousedown",o))},i=t=>{const n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},o=(t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)};r.default.on(document,"keyup",n),r.default.on(document,"click",i),e.on("mousedown",o)}r.default.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==r.default.Init){const t=e.state.jump.onMouseOver;r.default.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;r.default.off(e.getWrapperElement(),"mouseout",n),r.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:s.bind(null,e),onKeyDown:a.bind(null,e)};r.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver),r.default.on(e.getWrapperElement(),"mouseout",n.onMouseOut),r.default.on(document,"keydown",n.onKeyDown)}});const c="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function l(e){if(e.state.jump.marker)return;const t=e.coordsChar(e.state.jump.cursor),n=e.getTokenAt(t,!0),i=e.state.jump.options,r=i.getDestination||e.getHelper(t,"jump");if(r){const o=r(n,i,e);if(o){const i=e.markText({line:t.line,ch:n.start},{line:t.line,ch:n.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=i,e.state.jump.destination=o}}}function u(e){const t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},P9dZ:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"c",function(){return r}),n.d(t,"i",function(){return o}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return a}),n.d(t,"g",function(){return c}),n.d(t,"e",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return h}),n.d(t,"l",function(){return d}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return f}),n.d(t,"h",function(){return g}),n.d(t,"f",function(){return m});const i="ADD_SUB_ENVIRONMENT",r="DELETE_SUB_ENVIRONMENT",o="UPDATE_BASE_ENVIRONMENT_JSON",s="UPDATE_SUB_ENVIRONMENT_JSON",a="UPDATE_SUB_ENVIRONMENT_TITLE",c="SELECT_ACTIVE_SUB_ENVIRONMENT",l="REPOSITION_SUB_ENVIRONMENT";class u{constructor(e){this.payload=e,this.type=i}}class h{constructor(e){this.payload=e,this.type=r}}class d{constructor(e){this.payload=e,this.type=o}}class p{constructor(e){this.payload=e,this.type=s}}class f{constructor(e){this.payload=e,this.type=a}}class g{constructor(e){this.payload=e,this.type=c}}class m{constructor(e){this.payload=e,this.type=l}}},PDj5:function(e,t,n){"use strict";function i(e){var t=!(e&&!1===e.descriptions);return"\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ".concat(t?"description":"","\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(t?"description":"","\n fields(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(t?"description":"","\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(t?"description":"","\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var r=i()},PE4B:function(e,t,n){"use strict";var i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function s(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}(e))}function c(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=o;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var i={};return n.isMergeableObject(e)&&a(e).forEach(function(t){i[t]=o(e[t],n)}),a(t).forEach(function(r){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(i[r]=c(e,r)&&n.isMergeableObject(t[r])?function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(r,n)(e[r],t[r],n):o(t[r],n))}),i}(e,t,n):o(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})},e.exports=l},PJhV:function(e,t,n){!function(e){var t=e.Pos;function n(e,t){for(var n=0,i=e.length;ns.ch&&(a.end=s.ch,a.string=a.string.slice(0,s.ch-a.start)):a={start:s.ch,end:s.ch,string:"",state:a.state,type:"."==a.string?"property":null};for(var l=a;"property"==l.type;){if("."!=(l=r(n,t(s.line,l.start))).string)return;if(l=r(n,t(s.line,l.start)),!h)var h=[];h.push(l)}return{list:u(a,h,i,o),from:t(s.line,a.start),to:t(s.line,a.end)}}}}function r(e,t){var n=e.getTokenAt(t);return t.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}e.registerHelper("hint","javascript",function(e,t){return i(e,c,function(e,t){return e.getTokenAt(t)},t)}),e.registerHelper("hint","coffeescript",function(e,t){return i(e,l,r,t)});var o="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),s="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),a="prototype apply call bind".split(" "),c="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),l="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function u(e,t,i,r){var c=[],l=e.string,u=r&&r.globalScope||window;function h(e){0!=e.lastIndexOf(l,0)||function(e,t){if(!Array.prototype.indexOf){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1}return-1!=e.indexOf(t)}(c,e)||c.push(e)}function d(e){"string"==typeof e?n(o,h):e instanceof Array?n(s,h):e instanceof Function&&n(a,h),function(e,t){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=e;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(t);else for(var i in e)t(i)}(e,h)}if(t&&t.length){var p,f=t.pop();for(f.type&&0===f.type.indexOf("variable")?(r&&r.additionalContext&&(p=r.additionalContext[f.string]),r&&!1===r.useGlobalScope||(p=p||u[f.string])):"string"==f.type?p="":"atom"==f.type?p=1:"function"==f.type&&(null==u.jQuery||"$"!=f.string&&"jQuery"!=f.string||"function"!=typeof u.jQuery?null!=u._&&"_"==f.string&&"function"==typeof u._&&(p=u._()):p=u.jQuery());null!=p&&t.length;)p=p[t.pop().string];null!=p&&d(p)}else{for(var g=e.state.localVars;g;g=g.next)h(g.name);for(var m=e.state.context;m;m=m.prev)for(g=m.vars;g;g=g.next)h(g.name);for(g=e.state.globalVars;g;g=g.next)h(g.name);if(r&&null!=r.additionalContext)for(var b in r.additionalContext)h(b);r&&!1===r.useGlobalScope||d(u),n(i,h)}return c}}(n("VrN/"))},PRU4:function(e,t,n){"use strict";n.d(t,"a",function(){return h});const i=Symbol("Comlink.proxy"),r=Symbol("Comlink.endpoint"),o=Symbol("Comlink.releaseProxy"),s=Symbol("Comlink.thrown"),a=e=>"object"==typeof e&&null!==e||"function"==typeof e,c=new Map([["proxy",{canHandle:e=>a(e)&&e[i],serialize(e){const{port1:t,port2:n}=new MessageChannel;return l(e,t),[n,[n]]},deserialize:e=>(e.start(),h(e))}],["throw",{canHandle:e=>a(e)&&s in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function l(e,t=self){t.addEventListener("message",function n(r){if(!r||!r.data)return;const{id:o,type:a,path:c}=Object.assign({path:[]},r.data),h=(r.data.argumentList||[]).map(b);let d;try{const t=c.slice(0,-1).reduce((e,t)=>e[t],e),n=c.reduce((e,t)=>e[t],e);switch(a){case 0:d=n;break;case 1:t[c.slice(-1)[0]]=b(r.data.value),d=!0;break;case 2:d=n.apply(t,h);break;case 3:d=function(e){return Object.assign(e,{[i]:!0})}(new n(...h));break;case 4:{const{port1:t,port2:n}=new MessageChannel;l(e,n),d=function(e,t){return g.set(e,t),e}(t,[t])}break;case 5:d=void 0}}catch(p){d={value:p,[s]:0}}Promise.resolve(d).catch(e=>({value:e,[s]:0})).then(e=>{const[i,r]=m(e);t.postMessage(Object.assign(Object.assign({},i),{id:o}),r),5===a&&(t.removeEventListener("message",n),u(t))})}),t.start&&t.start()}function u(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function h(e,t){return p(e,[],t)}function d(e){if(e)throw new Error("Proxy has been released and is not useable")}function p(e,t=[],n=function(){}){let i=!1;const s=new Proxy(n,{get(n,r){if(d(i),r===o)return()=>v(e,{type:5,path:t.map(e=>e.toString())}).then(()=>{u(e),i=!0});if("then"===r){if(0===t.length)return{then:()=>s};const n=v(e,{type:0,path:t.map(e=>e.toString())}).then(b);return n.then.bind(n)}return p(e,[...t,r])},set(n,r,o){d(i);const[s,a]=m(o);return v(e,{type:1,path:[...t,r].map(e=>e.toString()),value:s},a).then(b)},apply(n,o,s){d(i);const a=t[t.length-1];if(a===r)return v(e,{type:4}).then(b);if("bind"===a)return p(e,t.slice(0,-1));const[c,l]=f(s);return v(e,{type:2,path:t.map(e=>e.toString()),argumentList:c},l).then(b)},construct(n,r){d(i);const[o,s]=f(r);return v(e,{type:3,path:t.map(e=>e.toString()),argumentList:o},s).then(b)}});return s}function f(e){const t=e.map(m);return[t.map(e=>e[0]),(n=t.map(e=>e[1]),Array.prototype.concat.apply([],n))];var n}const g=new WeakMap;function m(e){for(const[t,n]of c)if(n.canHandle(e)){const[i,r]=n.serialize(e);return[{type:3,name:t,value:i},r]}return[{type:0,value:e},g.get(e)||[]]}function b(e){switch(e.type){case 3:return c.get(e.name).deserialize(e.value);case 0:return e.value}}function v(e,t,n){return new Promise(i=>{const r=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.addEventListener("message",function t(n){n.data&&n.data.id&&n.data.id===r&&(e.removeEventListener("message",t),i(n.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:r},t),n)})}},PXbX:function(e,t,n){"use strict";var i=Array.prototype.flatMap;t.a=i?function(e,t){return i.call(e,t)}:function(e,t){for(var n=[],i=0;i=0}var a=n("z+Ro");function c(e=0,t,n){let o=-1;return s(t)?o=Number(t)<1?1:Number(t):Object(a.a)(t)&&(n=t),Object(a.a)(n)||(n=r.a),new i.a(t=>{const i=s(e)?e:+e-n.now();return n.schedule(l,i,{index:0,period:o,subscriber:t})})}function l(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}},Q41Y:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"f",function(){return r}),n.d(t,"e",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"d",function(){return c}),n.d(t,"h",function(){return l}),n.d(t,"l",function(){return u}),n.d(t,"k",function(){return h}),n.d(t,"i",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"j",function(){return f});const i="TOGGLE_HEADER_DIALOG",r="TOGGLE_VARIABLE_DIALOG",o="TOGGLE_SUBSCRIPTION_URL_DIALOG",s="TOGGLE_HISTORY_DIALOG",a="TOGGLE_ADD_TO_COLLECTION_DIALOG",c="TOGGLE_PRE_REQUEST_DIALOG";class l{constructor(e){this.windowId=e,this.type=i}}class u{constructor(e){this.windowId=e,this.type=r}}class h{constructor(e){this.windowId=e,this.type=o}}class d{constructor(e){this.windowId=e,this.type=s}}class p{constructor(e){this.windowId=e,this.type=a}}class f{constructor(e){this.windowId=e,this.type=c}}},Q5MM:function(e,t,n){"use strict";var i=n("NSes");e.exports=function(){var e=0,t=[],n=[];return{get:function(e){var r=i.call(t,e[0]);return-1===r?null:n[r]},set:function(i){return t.push(i[0]),n.push(++e),e},delete:function(e){var r=i.call(n,e);-1!==r&&(t.splice(r,1),n.splice(r,1))},clear:function(){t=[],n=[]}}}},Q8cG:function(e,t,n){"use strict";n.d(t,"a",function(){return K}),n.d(t,"b",function(){return X}),n.d(t,"c",function(){return oe}),n.d(t,"d",function(){return se}),n.d(t,"e",function(){return Z}),n.d(t,"f",function(){return ue}),n.d(t,"g",function(){return ne});var i=n("mrSG"),r=n("cH1L"),o=n("fXoL"),s=n("/KA4"),a=n("XNiG"),c=n("2Vo4"),l=n("VRyK"),u=n("itXk"),h=n("lJxs"),d=n("5+tZ"),p=n("pLZG"),f=n("CqXF"),g=n("3UWI"),m=n("/uUt"),b=n("1G5W"),v=n("JX91"),y=n("eIep"),w=n("tyNb"),_=n("rDax"),O=n("nLfN"),C=n("YF2q"),E=n("JgHy"),S=n("GR68"),T=n("ofXK"),x=n("pdGh"),k=n("FwiY");const I=["nz-submenu",""];function D(e,t){1&e&&o.kc(0,0,["*ngIf","!nzTitle"])}function z(e,t){if(1&e&&o.Rb(0,"div",6),2&e){const e=o.gc(),t=o.tc(7);o.mc("mode",e.mode)("nzOpen",e.nzOpen)("@.disabled",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("nzNoAnimation",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("menuClass",e.nzMenuClassName)("templateOutlet",t)}}function j(e,t){if(1&e){const e=o.Xb();o.Wb(0,"div",8),o.dc("subMenuMouseState",function(t){return o.wc(e),o.gc(2).setMouseEnterState(t)}),o.Vb()}if(2&e){const e=o.gc(2),t=o.tc(7);o.mc("theme",e.theme)("mode",e.mode)("nzOpen",e.nzOpen)("position",e.position)("nzDisabled",e.nzDisabled)("isMenuInsideDropDown",e.isMenuInsideDropDown)("templateOutlet",t)("menuClass",e.nzMenuClassName)("@.disabled",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("nzNoAnimation",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)}}function A(e,t){if(1&e){const e=o.Xb();o.Ec(0,j,1,10,"ng-template",7),o.dc("positionChange",function(t){return o.wc(e),o.gc().onPositionChange(t)})}if(2&e){const e=o.gc(),t=o.tc(1);o.mc("cdkConnectedOverlayPositions",e.overlayPositions)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayWidth",e.triggerWidth)("cdkConnectedOverlayOpen",e.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function R(e,t){1&e&&o.kc(0,1)}const N=[[["","title",""]],"*"],L=["[title]","*"],M=["nz-submenu-title",""];function F(e,t){if(1&e&&o.Rb(0,"i",4),2&e){const e=o.gc();o.mc("nzType",e.nzIcon)}}function P(e,t){if(1&e&&(o.Ub(0),o.Gc(1,"\n "),o.Wb(2,"span"),o.Gc(3),o.Vb(),o.Gc(4,"\n "),o.Tb()),2&e){const e=o.gc();o.Eb(3),o.Hc(e.nzTitle)}}function V(e,t){1&e&&o.Rb(0,"i",8)}function G(e,t){1&e&&o.Rb(0,"i",9)}function B(e,t){if(1&e&&(o.Wb(0,"span",5),o.Gc(1,"\n "),o.Ec(2,V,1,0,"i",6),o.Gc(3,"\n "),o.Ec(4,G,1,0,"i",7),o.Gc(5,"\n "),o.Vb()),2&e){const e=o.gc();o.mc("ngSwitch",e.dir),o.Eb(2),o.mc("ngSwitchCase","rtl")}}function W(e,t){1&e&&(o.Gc(0,"\n "),o.Rb(1,"i",10),o.Gc(2,"\n "))}const $=["*"],U=["nz-submenu-inline-child",""];function H(e,t){}const q=["nz-submenu-none-inline-child",""];function Q(e,t){}let K=(()=>{class e{constructor(){this.descendantMenuItemClick$=new a.a,this.childMenuItemClick$=new a.a,this.theme$=new c.a("light"),this.mode$=new c.a("vertical"),this.inlineIndent$=new c.a(24),this.isChildSubMenuOpen$=new c.a(!1)}onDescendantMenuItemClick(e){this.descendantMenuItemClick$.next(e)}onChildMenuItemClick(e){this.childMenuItemClick$.next(e)}setMode(e){this.mode$.next(e)}setTheme(e){this.theme$.next(e)}setInlineIndent(e){this.inlineIndent$.next(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.Mb({token:e,factory:e.\u0275fac}),e})();const X=new o.s("NzIsInDropDownMenuToken"),Y=new o.s("NzMenuServiceLocalToken");let J=(()=>{class e{constructor(e,t,n){this.nzHostSubmenuService=e,this.nzMenuService=t,this.isMenuInsideDropDown=n,this.mode$=this.nzMenuService.mode$.pipe(Object(h.a)(e=>"inline"===e?"inline":"vertical"===e||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new c.a(!1),this.isChildSubMenuOpen$=new c.a(!1),this.isMouseEnterTitleOrOverlay$=new a.a,this.childMenuItemClick$=new a.a,this.destroy$=new a.a,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const i=this.childMenuItemClick$.pipe(Object(d.a)(()=>this.mode$),Object(p.a)(e=>"inline"!==e||this.isMenuInsideDropDown),Object(f.a)(!1)),r=Object(l.a)(this.isMouseEnterTitleOrOverlay$,i);Object(u.a)([this.isChildSubMenuOpen$,r]).pipe(Object(h.a)(([e,t])=>e||t),Object(g.a)(150),Object(m.a)(),Object(b.a)(this.destroy$)).pipe(Object(m.a)()).subscribe(e=>{this.setOpenStateWithoutDebounce(e),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(e):this.nzMenuService.isChildSubMenuOpen$.next(e)})}onChildMenuItemClick(e){this.childMenuItemClick$.next(e)}setOpenStateWithoutDebounce(e){this.isCurrentSubMenuOpen$.next(e)}setMouseEnterTitleOrOverlayState(e){this.isMouseEnterTitleOrOverlay$.next(e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(o.ac(e,12),o.ac(K),o.ac(X))},e.\u0275prov=o.Mb({token:e,factory:e.\u0275fac}),e})(),Z=(()=>{class e{constructor(e,t,n,i,r,o,s,c){this.nzMenuService=e,this.cdr=t,this.nzSubmenuService=n,this.isMenuInsideDropDown=i,this.directionality=r,this.routerLink=o,this.routerLinkWithHref=s,this.router=c,this.destroy$=new a.a,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new a.a,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,c&&this.router.events.pipe(Object(b.a)(this.destroy$),Object(p.a)(e=>e instanceof w.a)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(e){this.nzDisabled?(e.preventDefault(),e.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(e){this.nzSelected=e,this.selected$.next(e)}updateRouterActive(){this.listOfRouterLink&&this.listOfRouterLinkWithHref&&this.router&&this.router.navigated&&this.nzMatchRouter&&Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.nzSelected!==e&&(this.nzSelected=e,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.routerLink&&e(this.routerLink)||this.routerLinkWithHref&&e(this.routerLinkWithHref)||this.listOfRouterLink.some(e)||this.listOfRouterLinkWithHref.some(e)}isLinkActive(e){return t=>e.isActive(t.urlTree,this.nzMatchRouterExact)}ngOnInit(){var e;Object(u.a)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(Object(b.a)(this.destroy$)).subscribe(([e,t])=>{this.inlinePaddingLeft="inline"===e?this.level*t:null}),this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.dir=e})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe(Object(b.a)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe(Object(b.a)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(e){e.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(K),o.Qb(o.h),o.Qb(J,8),o.Qb(X),o.Qb(r.b,8),o.Qb(w.c,8),o.Qb(w.d,8),o.Qb(w.b,8))},e.\u0275dir=o.Lb({type:e,selectors:[["","nz-menu-item",""]],contentQueries:function(e,t,n){if(1&e&&(o.Jb(n,w.c,1),o.Jb(n,w.d,1)),2&e){let e;o.sc(e=o.ec())&&(t.listOfRouterLink=e),o.sc(e=o.ec())&&(t.listOfRouterLinkWithHref=e)}},hostVars:20,hostBindings:function(e,t){1&e&&o.dc("click",function(e){return t.clickMenuItem(e)}),2&e&&(o.Bc("padding-left","rtl"===t.dir?null:t.nzPaddingLeft||t.inlinePaddingLeft,"px")("padding-right","rtl"===t.dir?t.nzPaddingLeft||t.inlinePaddingLeft:null,"px"),o.Ib("ant-dropdown-menu-item",t.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",t.isMenuInsideDropDown&&t.nzSelected)("ant-dropdown-menu-item-danger",t.isMenuInsideDropDown&&t.nzDanger)("ant-dropdown-menu-item-disabled",t.isMenuInsideDropDown&&t.nzDisabled)("ant-menu-item",!t.isMenuInsideDropDown)("ant-menu-item-selected",!t.isMenuInsideDropDown&&t.nzSelected)("ant-menu-item-danger",!t.isMenuInsideDropDown&&t.nzDanger)("ant-menu-item-disabled",!t.isMenuInsideDropDown&&t.nzDisabled))},inputs:{nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter",nzPaddingLeft:"nzPaddingLeft"},exportAs:["nzMenuItem"],features:[o.Cb]}),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzSelected",void 0),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzDanger",void 0),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzMatchRouterExact",void 0),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzMatchRouter",void 0),e})();const ee=[E.d.rightTop,E.d.right,E.d.rightBottom,E.d.leftTop,E.d.left,E.d.leftBottom],te=[E.d.bottomLeft];let ne=(()=>{class e{constructor(e,t,n,i,r,s,c){this.nzMenuService=e,this.cdr=t,this.nzSubmenuService=n,this.platform=i,this.isMenuInsideDropDown=r,this.directionality=s,this.noAnimation=c,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new o.n,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new a.a,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=ee,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(e){this.nzSubmenuService.setOpenStateWithoutDebounce(e)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(e){this.isActive=e,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(e)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(e){const t=Object(E.e)(e);"rightTop"===t||"rightBottom"===t||"right"===t?this.position="right":"leftTop"!==t&&"leftBottom"!==t&&"left"!==t||(this.position="left"),this.cdr.markForCheck()}ngOnInit(){var e;this.nzMenuService.theme$.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.theme=e,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.mode=e,"horizontal"===e?this.overlayPositions=te:"vertical"===e&&(this.overlayPositions=ee),this.cdr.markForCheck()}),Object(u.a)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe(Object(b.a)(this.destroy$)).subscribe(([e,t])=>{this.inlinePaddingLeft="inline"===e?this.level*t:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.isActive=e,e!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=e,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const e=this.listOfNzMenuItemDirective,t=e.changes,n=Object(l.a)(t,...e.map(e=>e.selected$));t.pipe(Object(v.a)(e),Object(y.a)(()=>n),Object(v.a)(!0),Object(h.a)(()=>e.some(e=>e.nzSelected)),Object(b.a)(this.destroy$)).subscribe(e=>{this.isSelected=e,this.cdr.markForCheck()})}ngOnChanges(e){const{nzOpen:t}=e;t&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(K),o.Qb(o.h),o.Qb(J),o.Qb(O.a),o.Qb(X),o.Qb(r.b,8),o.Qb(C.a,9))},e.\u0275cmp=o.Kb({type:e,selectors:[["","nz-submenu",""]],contentQueries:function(t,n,i){if(1&t&&(o.Jb(i,e,1),o.Jb(i,Z,1)),2&t){let e;o.sc(e=o.ec())&&(n.listOfNzSubMenuComponent=e),o.sc(e=o.ec())&&(n.listOfNzMenuItemDirective=e)}},viewQuery:function(e,t){if(1&e&&o.Kc(_.b,3,o.l),2&e){let e;o.sc(e=o.ec())&&(t.cdkOverlayOrigin=e.first)}},hostVars:34,hostBindings:function(e,t){2&e&&o.Ib("ant-dropdown-menu-submenu",t.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",t.isMenuInsideDropDown&&t.nzDisabled)("ant-dropdown-menu-submenu-open",t.isMenuInsideDropDown&&t.nzOpen)("ant-dropdown-menu-submenu-selected",t.isMenuInsideDropDown&&t.isSelected)("ant-dropdown-menu-submenu-vertical",t.isMenuInsideDropDown&&"vertical"===t.mode)("ant-dropdown-menu-submenu-horizontal",t.isMenuInsideDropDown&&"horizontal"===t.mode)("ant-dropdown-menu-submenu-inline",t.isMenuInsideDropDown&&"inline"===t.mode)("ant-dropdown-menu-submenu-active",t.isMenuInsideDropDown&&t.isActive)("ant-menu-submenu",!t.isMenuInsideDropDown)("ant-menu-submenu-disabled",!t.isMenuInsideDropDown&&t.nzDisabled)("ant-menu-submenu-open",!t.isMenuInsideDropDown&&t.nzOpen)("ant-menu-submenu-selected",!t.isMenuInsideDropDown&&t.isSelected)("ant-menu-submenu-vertical",!t.isMenuInsideDropDown&&"vertical"===t.mode)("ant-menu-submenu-horizontal",!t.isMenuInsideDropDown&&"horizontal"===t.mode)("ant-menu-submenu-inline",!t.isMenuInsideDropDown&&"inline"===t.mode)("ant-menu-submenu-active",!t.isMenuInsideDropDown&&t.isActive)("ant-menu-submenu-rtl","rtl"===t.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[o.Db([J]),o.Cb],attrs:I,ngContentSelectors:L,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(e,t){if(1&e&&(o.lc(N),o.Wb(0,"div",0,1),o.dc("subMenuMouseState",function(e){return t.setMouseEnterState(e)})("toggleSubMenu",function(){return t.toggleSubMenu()}),o.Ec(2,D,1,0,"ng-content",2),o.Vb(),o.Ec(3,z,1,6,"div",3),o.Ec(4,A,1,5,"ng-template",null,4,o.Fc),o.Ec(6,R,1,0,"ng-template",null,5,o.Fc)),2&e){const e=o.tc(5);o.mc("nzIcon",t.nzIcon)("nzTitle",t.nzTitle)("mode",t.mode)("nzDisabled",t.nzDisabled)("isMenuInsideDropDown",t.isMenuInsideDropDown)("paddingLeft",t.nzPaddingLeft||t.inlinePaddingLeft),o.Eb(2),o.mc("ngIf",!t.nzTitle),o.Eb(1),o.mc("ngIf","inline"===t.mode)("ngIfElse",e)}},directives:function(){return[ae,_.b,T.o,ce,C.a,_.a,le]},encapsulation:2,changeDetection:0}),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzOpen",void 0),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),e})();function ie(e,t){return e||t}function re(e){return e||!1}let oe=(()=>{class e{constructor(e,t,n,i){this.nzMenuService=e,this.isMenuInsideDropDown=t,this.cdr=n,this.directionality=i,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new o.n,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new c.a(this.nzInlineCollapsed),this.mode$=new c.a(this.nzMode),this.destroy$=new a.a,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(e){this.nzInlineCollapsed=e,this.inlineCollapsed$.next(e)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(e=>e.nzOpen),this.listOfNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var e;Object(u.a)([this.inlineCollapsed$,this.mode$]).pipe(Object(b.a)(this.destroy$)).subscribe(([e,t])=>{this.actualMode=e?"vertical":t,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.nzClick.emit(e),this.nzSelectable&&!e.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(t=>t.setSelectedState(t===e))}),this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe(Object(b.a)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(e){const{nzInlineCollapsed:t,nzInlineIndent:n,nzTheme:i,nzMode:r}=e;t&&this.inlineCollapsed$.next(this.nzInlineCollapsed),n&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),i&&this.nzMenuService.setTheme(this.nzTheme),r&&(this.mode$.next(this.nzMode),!e.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(e=>e.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(K),o.Qb(X),o.Qb(o.h),o.Qb(r.b,8))},e.\u0275dir=o.Lb({type:e,selectors:[["","nz-menu",""]],contentQueries:function(e,t,n){if(1&e&&(o.Jb(n,Z,1),o.Jb(n,ne,1)),2&e){let e;o.sc(e=o.ec())&&(t.listOfNzMenuItemDirective=e),o.sc(e=o.ec())&&(t.listOfNzSubMenuComponent=e)}},hostVars:34,hostBindings:function(e,t){2&e&&o.Ib("ant-dropdown-menu",t.isMenuInsideDropDown)("ant-dropdown-menu-root",t.isMenuInsideDropDown)("ant-dropdown-menu-light",t.isMenuInsideDropDown&&"light"===t.nzTheme)("ant-dropdown-menu-dark",t.isMenuInsideDropDown&&"dark"===t.nzTheme)("ant-dropdown-menu-vertical",t.isMenuInsideDropDown&&"vertical"===t.actualMode)("ant-dropdown-menu-horizontal",t.isMenuInsideDropDown&&"horizontal"===t.actualMode)("ant-dropdown-menu-inline",t.isMenuInsideDropDown&&"inline"===t.actualMode)("ant-dropdown-menu-inline-collapsed",t.isMenuInsideDropDown&&t.nzInlineCollapsed)("ant-menu",!t.isMenuInsideDropDown)("ant-menu-root",!t.isMenuInsideDropDown)("ant-menu-light",!t.isMenuInsideDropDown&&"light"===t.nzTheme)("ant-menu-dark",!t.isMenuInsideDropDown&&"dark"===t.nzTheme)("ant-menu-vertical",!t.isMenuInsideDropDown&&"vertical"===t.actualMode)("ant-menu-horizontal",!t.isMenuInsideDropDown&&"horizontal"===t.actualMode)("ant-menu-inline",!t.isMenuInsideDropDown&&"inline"===t.actualMode)("ant-menu-inline-collapsed",!t.isMenuInsideDropDown&&t.nzInlineCollapsed)("ant-menu-rtl","rtl"===t.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[o.Db([{provide:Y,useClass:K},{provide:K,useFactory:ie,deps:[[new o.M,new o.C,K],Y]},{provide:X,useFactory:re,deps:[[new o.M,new o.C,X]]}]),o.Cb]}),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzInlineCollapsed",void 0),Object(i.b)([Object(s.a)(),Object(i.c)("design:type",Object)],e.prototype,"nzSelectable",void 0),e})(),se=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t,this.renderer.addClass(e.nativeElement,"ant-dropdown-menu-item-divider")}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(o.l),o.Qb(o.G))},e.\u0275dir=o.Lb({type:e,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),e})(),ae=(()=>{class e{constructor(e,t){this.cdr=e,this.directionality=t,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new o.n,this.subMenuMouseState=new o.n,this.dir="ltr",this.destroy$=new a.a}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(e){this.nzDisabled||this.subMenuMouseState.next(e)}clickTitle(){"inline"!==this.mode||this.nzDisabled||this.toggleSubMenu.emit()}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(o.h),o.Qb(r.b,8))},e.\u0275cmp=o.Kb({type:e,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(e,t){1&e&&o.dc("click",function(){return t.clickTitle()})("mouseenter",function(){return t.setMouseState(!0)})("mouseleave",function(){return t.setMouseState(!1)}),2&e&&(o.Bc("padding-left","rtl"===t.dir?null:t.paddingLeft,"px")("padding-right","rtl"===t.dir?t.paddingLeft:null,"px"),o.Ib("ant-dropdown-menu-submenu-title",t.isMenuInsideDropDown)("ant-menu-submenu-title",!t.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:M,ngContentSelectors:$,decls:12,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(e,t){if(1&e&&(o.lc(),o.Gc(0,"\n "),o.Ec(1,F,1,1,"i",0),o.Gc(2,"\n "),o.Ec(3,P,5,1,"ng-container",1),o.Gc(4,"\n "),o.kc(5),o.Gc(6,"\n "),o.Ec(7,B,6,2,"span",2),o.Gc(8,"\n "),o.Ec(9,W,3,0,"ng-template",null,3,o.Fc),o.Gc(11,"\n ")),2&e){const e=o.tc(10);o.Eb(1),o.mc("ngIf",t.nzIcon),o.Eb(2),o.mc("nzStringTemplateOutlet",t.nzTitle),o.Eb(4),o.mc("ngIf",t.isMenuInsideDropDown)("ngIfElse",e)}},directives:[T.o,x.b,k.a,T.q,T.r,T.s],encapsulation:2,changeDetection:0}),e})(),ce=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.renderer=t,this.directionality=n,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new a.a,this.elementRef.nativeElement.classList.add("ant-menu","ant-menu-inline","ant-menu-sub")}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var e;this.calcMotionState(),this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.dir=e})}ngOnChanges(e){const{mode:t,nzOpen:n,menuClass:i}=e;(t||n)&&this.calcMotionState(),i&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(e=>!!e).forEach(e=>{this.renderer.removeClass(this.elementRef.nativeElement,e)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(e=>!!e).forEach(e=>{this.renderer.addClass(this.elementRef.nativeElement,e)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(o.l),o.Qb(o.G),o.Qb(r.b,8))},e.\u0275cmp=o.Kb({type:e,selectors:[["","nz-submenu-inline-child",""]],hostVars:3,hostBindings:function(e,t){2&e&&(o.Dc("@collapseMotion",t.expandState),o.Ib("ant-menu-rtl","rtl"===t.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[o.Cb],attrs:U,decls:3,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(o.Gc(0,"\n "),o.Ec(1,H,0,0,"ng-template",0),o.Gc(2,"\n ")),2&e&&(o.Eb(1),o.mc("ngTemplateOutlet",t.templateOutlet))},directives:[T.t],encapsulation:2,data:{animation:[S.a]},changeDetection:0}),e})(),le=(()=>{class e{constructor(e,t){this.elementRef=e,this.directionality=t,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new o.n,this.expandState="collapsed",this.dir="ltr",this.destroy$=new a.a,this.elementRef.nativeElement.classList.add("ant-menu-submenu","ant-menu-submenu-popup")}setMouseState(e){this.nzDisabled||this.subMenuMouseState.next(e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var e;this.calcMotionState(),this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(b.a)(this.destroy$)).subscribe(e=>{this.dir=e})}ngOnChanges(e){const{mode:t,nzOpen:n}=e;(t||n)&&this.calcMotionState()}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(o.l),o.Qb(r.b,8))},e.\u0275cmp=o.Kb({type:e,selectors:[["","nz-submenu-none-inline-child",""]],hostVars:14,hostBindings:function(e,t){1&e&&o.dc("mouseenter",function(){return t.setMouseState(!0)})("mouseleave",function(){return t.setMouseState(!1)}),2&e&&(o.Dc("@slideMotion",t.expandState)("@zoomBigMotion",t.expandState),o.Ib("ant-menu-light","light"===t.theme)("ant-menu-dark","dark"===t.theme)("ant-menu-submenu-placement-bottom","horizontal"===t.mode)("ant-menu-submenu-placement-right","vertical"===t.mode&&"right"===t.position)("ant-menu-submenu-placement-left","vertical"===t.mode&&"left"===t.position)("ant-menu-submenu-rtl","rtl"===t.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[o.Cb],attrs:q,decls:6,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(o.Gc(0,"\n "),o.Wb(1,"div",0),o.Gc(2,"\n "),o.Ec(3,Q,0,0,"ng-template",1),o.Gc(4,"\n "),o.Vb(),o.Gc(5,"\n ")),2&e&&(o.Eb(1),o.Ib("ant-dropdown-menu",t.isMenuInsideDropDown)("ant-menu",!t.isMenuInsideDropDown)("ant-dropdown-menu-vertical",t.isMenuInsideDropDown)("ant-menu-vertical",!t.isMenuInsideDropDown)("ant-dropdown-menu-sub",t.isMenuInsideDropDown)("ant-menu-sub",!t.isMenuInsideDropDown)("ant-menu-rtl","rtl"===t.dir),o.mc("ngClass",t.menuClass),o.Eb(2),o.mc("ngTemplateOutlet",t.templateOutlet))},directives:[T.l,T.t],encapsulation:2,data:{animation:[S.e,S.d]},changeDetection:0}),e})(),ue=(()=>{class e{}return e.\u0275mod=o.Ob({type:e}),e.\u0275inj=o.Nb({factory:function(t){return new(t||e)},imports:[[r.a,T.c,O.b,_.h,k.b,C.b,x.a]]}),e})()},QaEO:function(e,t,n){"use strict";var i=n("nA++");e.exports=function(e){try{return e&&i(e.toString)?e.toString():String(e)}catch(t){throw new TypeError("Passed argument cannot be stringifed")}}},QlJJ:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n("xk4V"),r=n.n(i),o=n("nTiS"),s=n("P9dZ");const a=()=>{const{initialData:{environments:e}}=Object(o.b)();return{title:e.base&&e.base.title||"Environment",variablesJson:JSON.stringify(e.base&&e.base.variables||{})}},c=()=>{const{initialData:{environments:e}}=Object(o.b)();return(e.subEnvironments||[]).map((e,t)=>({id:e.id||r()(),title:e.title||`Environment ${t+1}`,variablesJson:JSON.stringify(e.variables||{})}))},l=()=>({base:a(),subEnvironments:c()});function u(e=l(),t){switch(t.type){case s.a:return{...e,subEnvironments:[...e.subEnvironments,{...a(),id:t.payload.id,title:`Environment ${e.subEnvironments.length+1}`}]};case s.c:return{...e,subEnvironments:e.subEnvironments.filter(e=>e.id!==t.payload.id)};case s.i:const n=e.base;return n.variablesJson=t.payload.value,{...e,base:n};case s.j:{const n=e.subEnvironments.map(e=>(e.id===t.payload.id&&(e.variablesJson=t.payload.value),e));return{...e,subEnvironments:n}}case s.k:{const n=e.subEnvironments.map(e=>(e.id===t.payload.id&&(e.title=t.payload.value),e));return{...e,subEnvironments:n}}case s.g:return{...e,activeSubEnvironment:t.payload.id};case s.e:{const n=t.payload.currentPosition,i=t.payload.newPosition;if(n>-1&&n-1&&ie()),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(){f(()=>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){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class m{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,i=0;const r=this.players.length;0==r?f(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++i==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(){const e=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=e?e.getPosition():0}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}}const b="!"},R1ws:function(e,t,n){"use strict";n.d(t,"a",function(){return mt}),n.d(t,"b",function(){return vt});var i=n("fXoL"),r=n("jhN1"),o=n("R0Ic");function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(e){switch(e.length){case 0:return new o.d;case 1:return e[0];default:return new o.m(e)}}function c(e,t,n,i,r={},s={}){const a=[],c=[];let l=-1,u=null;if(i.forEach(e=>{const n=e.offset,i=n==l,h=i&&u||{};Object.keys(e).forEach(n=>{let i=n,c=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),c){case o.n:c=r[n];break;case o.a:c=s[n];break;default:c=t.normalizeStyleValue(n,i,c,a)}h[i]=c}),i||c.push(h),u=h,l=n}),a.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${a.join(e)}`)}return c}function l(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&u(n,"start",e)));break;case"done":e.onDone(()=>i(n&&u(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&u(n,"destroy",e)))}}function u(e,t,n){const i=n.totalTime,r=h(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function h(e,t,n,i,r="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function d(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function p(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let f=(e,t)=>!1,g=(e,t)=>!1,m=(e,t,n)=>[];const b=s();(b||"undefined"!=typeof Element)&&(f=(e,t)=>e.contains(t),g=(()=>{if(b||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]):g}})(),m=(e,t,n)=>{let i=[];if(n){const n=e.querySelectorAll(t);for(let e=0;e{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let S=(()=>{class e{validateStyleProperty(e){return w(e)}matchesElement(e,t){return _(e,t)}containsElement(e,t){return O(e,t)}query(e,t,n){return C(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,r,s=[],a){return new o.d(n,i)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),T=(()=>{class e{}return e.NOOP=new S,e})();function x(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:k(parseFloat(t[1]),t[2])}function k(e,t){switch(t){case"s":return 1e3*e;default:return e}}function I(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,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:""};i=k(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(r=k(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else i=e;if(!n){let n=!1,o=t.length;i<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:i,delay:r,easing:o}}(e,t,n)}function D(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function z(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else D(e,n);return n}function j(e,t,n){return n?t+":"+n+";":""}function A(e){let t="";for(let n=0;n{const r=B(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),s()&&A(e))}function N(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=B(t);e.style[n]=""}),s()&&A(e))}function L(e){return Array.isArray(e)?1==e.length?e[0]:Object(o.g)(e):e}const M=new RegExp("{{\\s*(.+?)\\s*}}","g");function F(e){let t=[];if("string"==typeof e){let n;for(;n=M.exec(e);)t.push(n[1]);M.lastIndex=0}return t}function P(e,t,n){const i=e.toString(),r=i.replace(M,(e,i)=>{let r=t[i];return t.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?e:r}function V(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const G=/-+([a-z0-9])/g;function B(e){return e.replace(G,(...e)=>e[1].toUpperCase())}function W(e,t){return 0===e||0===t}function $(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let o=t[0],s=[];if(i.forEach(e=>{o.hasOwnProperty(e)||s.push(e),o[e]=n[e]}),s.length)for(var r=1;rfunction(e,t,n){if(":"==e[0]){const i=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 i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=i[1],o=i[2],s=i[3];t.push(X(r,s)),"<"!=o[0]||"*"==r&&"*"==s||t.push(X(s,r))}(e,n,t)):n.push(e),n}const Q=new Set(["true","1"]),K=new Set(["false","0"]);function X(e,t){const n=Q.has(e)||K.has(e),i=Q.has(t)||K.has(t);return(r,o)=>{let s="*"==e||e==r,a="*"==t||t==o;return!s&&n&&"boolean"==typeof r&&(s=r?Q.has(e):K.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?Q.has(t):K.has(t)),s&&a}}const Y=new RegExp("s*:selfs*,?","g");function J(e,t,n){return new Z(e).build(t,n)}class Z{constructor(e){this._driver=e}build(e,t){const n=new ee(t);return this._resetContextStyleTimingState(n),U(this,L(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=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,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,i+=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:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,o=i||{};if(n.styles.forEach(e=>{if(te(e)){const t=e;Object.keys(t).forEach(e=>{F(t[e]).forEach(e=>{o.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=V(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:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=U(this,L(e.animation),t);return{type:1,matchers:q(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:ne(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>U(this,e,t)),options:ne(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const r=e.steps.map(e=>{t.currentTime=n;const r=U(this,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:ne(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 ie(I(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=ie(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||I(i,t),ie(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let r=e.styles?e.styles:Object(o.j)({});if(5==r.type)i=this.visitKeyframes(r,t);else{let r=e.styles,s=!1;if(!r){s=!0;const e={};n.easing&&(e.easing=n.easing),r=Object(o.j)(e)}t.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,t);a.isEmptyStep=s,i=a}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,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==o.a?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,r=null;return n.forEach(e=>{if(te(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=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],s=o[n];let a=!0;s&&(r!=i&&r>=s.startTime&&i<=s.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=s.startTime),a&&(o[n]={startTime:r,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},r=F(e);r.length&&r.forEach(e=>{i.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 i=0;const r=[];let o=!1,s=!1,a=0;const c=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let c=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(te(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(te(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),l=0;return null!=c&&(i++,l=n.offset=c),s=s||l<0||l>1,o=o||l0&&i{const o=u>0?i==h?1:u*i:r[i],s=o*f;t.currentTime=d+p.delay+s,p.duration=s,this._validateStyleAst(e,t),e.offset=o,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:U(this,L(e.animation),t),options:ne(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ne(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ne(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=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(Y,"")),[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,d(t.collectedStyles,t.currentQuerySelector,{});const s=U(this,L(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:ne(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"}:I(e.timings,t.errors,!0);return{type:12,animation:U(this,L(e.animation),t),timings:n,options:null}}}class ee{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 te(e){return!Array.isArray(e)&&"object"==typeof e}function ne(e){var t;return e?(e=D(e)).params&&(e.params=(t=e.params)?D(t):null):e={},e}function ie(e,t,n){return{duration:e,delay:t,easing:n}}function re(e,t,n,i,r,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class oe{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 se=new RegExp(":enter","g"),ae=new RegExp(":leave","g");function ce(e,t,n,i,r,o={},s={},a,c,l=[]){return(new le).buildKeyframes(e,t,n,i,r,o,s,a,c,l)}class le{buildKeyframes(e,t,n,i,r,o,s,a,c,l=[]){c=c||new oe;const u=new he(e,t,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),U(this,n,u);const h=u.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(s).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([s],null,u.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[re(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 i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.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 i=t.currentTimeline.currentTime;const r=null!=n.duration?x(n.duration):null,o=null!=n.delay?x(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),U(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ue);const e=x(r.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>U(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?x(e.options.delay):0;e.steps.forEach(o=>{const s=t.createSubContext(e.options);r&&s.delayNextStep(r),U(this,o,s),i=Math.max(i,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return I(t.params?P(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),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.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,i=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(i+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?x(i.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ue);let o=n;const s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;let a=null;s.forEach((n,i)=>{t.currentQueryIndex=i;const s=t.createSubContext(e.options,n);r&&s.delayNextStep(r),n===t.element&&(a=s.currentTimeline),U(this,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),s=o*(t.currentQueryTotal-1);let a=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const c=t.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;U(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const ue={};class he{constructor(e,t,n,i,r,o,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ue,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new de(this._driver,t,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=x(n.duration)),null!=n.delay&&(i.delay=x(n.delay));const r=n.params;if(r){let e=i.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=P(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 i=t||this.element,r=new he(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,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=ue,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new pe(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,r,o){let s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(se,"."+this._enterClassName)).replace(ae,"."+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)),s.push(...t)}return r||0!=s.length||o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),s}}class de{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,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(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 de(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]||o.a,this._currentKeyframe[e]=o.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const r=i&&i.params||{},s=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]=o.a})):z(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=P(s[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:o.a),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],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const a=z(r,!0);Object.keys(a).forEach(n=>{const i=a[n];i==o.n?e.add(n):i==o.a&&t.add(n)}),n||(a.offset=s/this.duration),i.push(a)});const r=e.size?V(e.values()):[],s=t.size?V(t.values()):[];if(n){const e=i[0],t=D(e);e.offset=0,t.offset=1,i=[e,t]}return re(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class pe extends de{constructor(e,t,n,i,r,o,s=!1){super(e,t,o.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=s,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:i}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],o=n+t,s=t/o,a=z(e[0],!1);a.offset=0,r.push(a);const c=z(e[0],!1);c.offset=fe(s),r.push(c);const l=e.length-1;for(let i=1;i<=l;i++){let s=z(e[i],!1);s.offset=fe((t+s.offset*n)/o),r.push(s)}n=o,t=0,i="",e=r}return re(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function fe(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class ge{}class me extends ge{normalizePropertyName(e,t){return B(e)}normalizeStyleValue(e,t,n,i){let r="";const o=n.toString().trim();if(be[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return o+r}}const be=(()=>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 ve(e,t,n,i,r,o,s,a,c,l,u,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const ye={};class we{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,r){return e.some(e=>e(t,n,i,r))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}build(e,t,n,i,r,o,s,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||ye,p=this.buildStyles(n,s&&s.params||ye,u),f=a&&a.params||ye,g=this.buildStyles(i,f,u),m=new Set,b=new Map,v=new Map,y="void"===i,w={params:Object.assign(Object.assign({},h),f)},_=l?[]:ce(e,t,this.ast.animation,r,o,p,g,w,c,u);let O=0;if(_.forEach(e=>{O=Math.max(e.duration+e.delay,O)}),u.length)return ve(t,this._triggerName,n,i,y,p,g,[],[],b,v,O,u);_.forEach(e=>{const n=e.element,i=d(b,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const r=d(v,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const C=V(m.values());return ve(t,this._triggerName,n,i,y,p,g,_,C,b,v,O)}}class _e{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=D(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[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=P(o,i,t)),n[e]=o})}}),n}}class Oe{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new _e(e.style,e.options&&e.options.params||{})}),Ce(this.states,"true","1"),Ce(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new we(e,t,this.states))}),this.fallbackTransition=new we(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,i){return this.transitionFactories.find(r=>r.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Ce(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Ee=new oe;class Se{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=J(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]=i}_buildPlayer(e,t,n){const i=e.element,r=c(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],r=this._animations[e];let s;const c=new Map;if(r?(s=ce(this._driver,t,r,"ng-enter","ng-leave",{},{},n,Ee,i),s.forEach(e=>{const t=d(c,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);c.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,o.a)})});const l=a(s.map(e=>{const t=c.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,i){const r=h(t,"","","");return l(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[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(i[0]));break;case"destroy":this.destroy(e)}}}const Te=[],xe={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ke={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ie{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=D(e);delete t.value,this.options=t}else this.options={};var i;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 De=new Ie("void");class ze{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,Fe(t,this._hostClassName)}listen(e,t,n,i){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=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);const a=d(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Fe(e,"ng-trigger"),Fe(e,"ng-trigger-"+t),a[t]=De),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(s);e>=0&&o.splice(e,1),this._triggers[t]||delete a[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,i=!0){const r=this._getTrigger(t),o=new Ae(this.id,t,e);let s=this._engine.statesByElement.get(e);s||(Fe(e,"ng-trigger"),Fe(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));let a=s[t];const c=new Ie(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s[t]=c,a||(a=De),"void"!==c.value&&a.value===c.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r=0;r{N(e,n),R(e,i)})}return}const l=d(this._engine.playersByElement,e,[]);l.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let u=r.matchTransition(a.value,c.value,e,c.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:u,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(Fe(e,"ng-animate-queued"),o.onStart(()=>{Pe(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),l.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,i){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",i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&a(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){const i=new Set;t.forEach(t=>{const r=t.name;if(i.has(r))return;i.add(r);const o=this._triggers[r].fallbackTransition,s=n[r]||De,a=new Ie("void"),c=new Ae(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:o,fromState:s,toState:a,player:c,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{const i=e.__ng_removed;i&&i!==xe||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Fe(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,o=this._elementListeners.get(r);o&&o.forEach(t=>{if(t.name==n.triggerName){const i=h(r,n.triggerName,n.fromState.value,n.toState.value);i._data=e,l(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i: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 je{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 ze(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 i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||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 i=this._namespaceLookup[e];i&&i.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 i=0;i=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Fe(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Pe(e,"ng-animate-disabled"))}removeNode(e,t,n,i){if(Re(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,r){return Re(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,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 a(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=xe,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?a(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 oe,i=[],r=new Map,s=[],c=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(e=>{h.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n{const n="ng-enter"+b++;m.set(t,n),e.forEach(e=>Fe(e,n))});const v=[],y=new Set,w=new Set;for(let o=0;oy.add(e)):w.add(e))}const _=new Map,O=Me(f,Array.from(y));O.forEach((e,t)=>{const n="ng-leave"+b++;_.set(t,n),e.forEach(e=>Fe(e,n))}),e.push(()=>{g.forEach((e,t)=>{const n=m.get(t);e.forEach(e=>Pe(e,n))}),O.forEach((e,t)=>{const n=_.get(t);e.forEach(e=>Pe(e,n))}),v.forEach(e=>{this.processLeaveNode(e)})});const C=[],E=[];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(C.push(t),this.collectedEnterElements.length){const e=r.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const o=!p||!this.driver.containsElement(p,r),a=_.get(r),h=m.get(r),f=this._buildInstruction(e,n,h,a,o);if(f.errors&&f.errors.length)E.push(f);else{if(o)return t.onStart(()=>N(r,f.fromStyles)),t.onDestroy(()=>R(r,f.toStyles)),void i.push(t);if(e.isFallbackTransition)return t.onStart(()=>N(r,f.fromStyles)),t.onDestroy(()=>R(r,f.toStyles)),void i.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines),s.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(e=>d(c,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))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=u.get(t);i||u.set(t,i=new Set),n.forEach(e=>i.add(e))})}});if(E.length){const e=[];E.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),C.forEach(e=>e.destroy()),this.reportError(e)}const S=new Map,T=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(T.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{d(S,t,[]).push(e),e.destroy()})});const x=v.filter(e=>Be(e,l,u)),k=new Map;Le(k,this.driver,w,u,o.a).forEach(e=>{Be(e,l,u)&&x.push(e)});const I=new Map;g.forEach((e,t)=>{Le(I,this.driver,new Set(e),l,o.n)}),x.forEach(e=>{const t=k.get(e),n=I.get(e);k.set(e,Object.assign(Object.assign({},t),n))});const D=[],z=[],j={};s.forEach(e=>{const{element:t,player:o,instruction:s}=e;if(n.has(t)){if(h.has(t))return o.onDestroy(()=>R(t,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void i.push(o);let e=j;if(T.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=T.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>T.set(t,e))}const n=this._buildAnimation(o.namespaceId,s,S,r,I,k);if(o.setRealPlayer(n),e===j)D.push(o);else{const t=this.playersByElement.get(e);t&&t.length&&(o.parentPlayer=a(t)),i.push(o)}}else N(t,s.fromStyles),o.onDestroy(()=>R(t,s.toStyles)),z.push(o),h.has(t)&&i.push(o)}),z.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=a(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let o=0;o!e.destroyed);i.length?Ve(this,e,i):this.processLeaveNode(e)}return v.length=0,D.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),D}elementContainsData(e,t){let n=!1;const i=t.__ng_removed;return i&&i.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,i,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==i)&&o.push(t)})}}return(n||i)&&(o=o.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),o}_beforeAnimationBuild(e,t,n){const i=t.element,r=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:t.triggerName;for(const s of t.timelines){const e=s.element,a=e!==i,c=d(n,e,[]);this._getPreviousPlayers(e,a,r,o,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})}N(i,t.fromStyles)}_buildAnimation(e,t,n,i,r,s){const l=t.triggerName,u=t.element,h=[],p=new Set,f=new Set,g=t.timelines.map(t=>{const a=t.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new o.d(t.duration,t.delay);const g=a!==u,m=function(e){const t=[];return Ge(e,t),t}((n.get(a)||Te).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===a),b=r.get(a),v=s.get(a),y=c(0,this._normalizer,0,t.keyframes,b,v),w=this._buildPlayer(t,y,m);if(t.subTimeline&&i&&f.add(a),g){const t=new Ae(e,l,a);t.setRealPlayer(w),h.push(t)}return w});h.forEach(e=>{d(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i}(this.playersByQueriedElement,e.element,e))}),p.forEach(e=>Fe(e,"ng-animating"));const m=a(g);return m.onDestroy(()=>{p.forEach(e=>Pe(e,"ng-animating")),R(u,t.toStyles)}),f.forEach(e=>{d(i,e,[]).push(m)}),m}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.d(e.duration,e.delay)}}class Ae{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new o.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>l(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){d(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 Re(e){return e&&1===e.nodeType}function Ne(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Le(e,t,n,i,r){const o=[];n.forEach(e=>o.push(Ne(e)));const s=[];i.forEach((n,i)=>{const o={};n.forEach(e=>{const n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=ke,s.push(i))}),e.set(i,o)});let a=0;return n.forEach(e=>Ne(e,o[a++])),s}function Me(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),r=new Map;function o(e){if(!e)return 1;let t=r.get(e);if(t)return t;const s=e.parentNode;return t=n.has(s)?s:i.has(s)?1:o(s),r.set(e,t),t}return t.forEach(e=>{const t=o(e);1!==t&&n.get(t).push(e)}),n}function Fe(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Pe(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function Ve(e,t,n){a(n).onDone(()=>e.processLeaveNode(t))}function Ge(e,t){for(let n=0;nr.add(e)):t.set(e,i),n.delete(e),!0}class We{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new je(e,t,n),this._timelineEngine=new Se(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,r){const o=e+"-"+i;let s=this._triggerCache[o];if(!s){const e=[],t=J(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);s=function(e,t){return new Oe(e,t)}(i,t),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,i,s)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,r]=p(n);this._timelineEngine.command(e,t,r,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,r){if("@"==n.charAt(0)){const[e,i]=p(n);return this._timelineEngine.listen(e,t,i,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function $e(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=He(t[0]),t.length>1&&(i=He(t[t.length-1]))):t&&(n=He(t)),n||i?new Ue(e,n,i):null}let Ue=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&R(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(R(this._element,this._initialStyles),this._endStyles&&(R(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),R(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function He(e){let t=null;const n=Object.keys(e);for(let i=0;ithis._handleCallback(e)}apply(){!function(e,t){const n=et(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Je(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=et(e,"").split(","),i=Ye(n,t);i>=0&&(n.splice(i,1),Ze(e,"",n.join(",")))}(this._element,this._name))}}function Ke(e,t,n){Ze(e,"PlayState",n,Xe(e,t))}function Xe(e,t){const n=et(e,"");return n.indexOf(",")>0?Ye(n.split(","),t):Ye([n],t)}function Ye(e,t){for(let n=0;n=0)return n;return-1}function Je(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function Ze(e,t,n,i){const r="animation"+t;if(null!=i){const t=e.style[r];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[r]=n}function et(e,t){return e.style["animation"+t]||""}class tt{constructor(e,t,n,i,r,o,s,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+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 Qe(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]:H(this.element,n))})}this.currentSnapshot=e}}class nt extends o.d{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=E(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 it{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(e){return w(e)}matchesElement(e,t){return _(e,t)}containsElement(e,t){return O(e,t)}query(e,t,n){return C(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>E(e));let i=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=" ";const t=parseFloat(e.offset);i+=`${r}${100*t}% {\n`,r+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${t}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(e,t,n,i,r,o=[],s){const a=o.filter(e=>e instanceof tt),c={};W(n,i)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const l=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=$(e,t,c));if(0==n)return new nt(e,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(h);const d=$e(e,t),p=new tt(e,t,u,n,i,r,l,d);return p.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),p}}class rt{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,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=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){void 0===this.domPlayer&&this.init(),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]:H(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class ot{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(st().toString()),this._cssKeyframesDriver=new it}validateStyleProperty(e){return w(e)}matchesElement(e,t){return _(e,t)}containsElement(e,t){return O(e,t)}query(e,t,n){return C(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,r,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=o.filter(e=>e instanceof rt);W(n,i)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const u=$e(e,t=$(e,t=t.map(e=>z(e,!1)),c));return new rt(e,t,a,u)}}function st(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var at=n("ofXK");let ct=(()=>{class e extends o.b{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.T.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Object(o.g)(e):e;return ht(this._renderer,null,t,"register",[n]),new lt(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(i.ac(i.H),i.ac(at.d))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();class lt extends o.c{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new ut(this._id,e,t||{},this._renderer)}}class ut{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,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 ht(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(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function ht(e,t,n,i,r){return e.setProperty(t,`@@${n}:${i}`,r)}let dt=(()=>{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 pt("",n,this.engine),this._rendererCache.set(n,e)),e}const i=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(i,r,e,t.name,t)};return t.data.animation.forEach(o),new ft(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)(i.ac(i.H),i.ac(We),i.ac(i.B))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();class pt{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,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}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,i){this.delegate.setAttribute(e,t,n,i)}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,i){this.delegate.setStyle(e,t,n,i)}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 ft extends pt{constructor(e,t,n,i){super(t,n,i),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 i=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,i,r,o,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let gt=(()=>{class e extends We{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(i.ac(at.d),i.ac(T),i.ac(ge))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const mt=new i.s("AnimationModuleType"),bt=[{provide:T,useFactory:function(){return"function"==typeof st()?new ot:new it}},{provide:mt,useValue:"BrowserAnimations"},{provide:o.b,useClass:ct},{provide:ge,useFactory:function(){return new me}},{provide:We,useClass:gt},{provide:i.H,useFactory:function(e,t,n){return new dt(e,t,n)},deps:[r.e,We,i.B]}];let vt=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},providers:bt,imports:[r.a]}),e})()},R9jo:function(e,t,n){e.exports=n.p+"0-es2018.worker.js"},RKIb:function(e,t,n){"use strict";var i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=i},ReVU:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("fXoL"),r=n("ofXK");let o=(()=>{class e{constructor(e,t){this.document=e,this.platformId=t,this.documentIsAccessible=Object(r.A)(this.platformId)}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),this.getCookieRegExp(e).test(this.document.cookie))}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);const t=this.getCookieRegExp(e).exec(this.document.cookie);return decodeURIComponent(t[1])}return""}getAll(){if(!this.documentIsAccessible)return{};const e={},t=this.document;if(t.cookie&&""!==t.cookie){const n=t.cookie.split(";");for(let t=0;t{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===e.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new i.a(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const e=this.triggerElement,t=this.getWaveColor(e);e.setAttribute(this.waveAttributeName,"true"),Date.now(){e.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(e){return!!e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&this.isNotGrey(e)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(e)&&"transparent"!==e}isNotGrey(e){const t=e.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}getWaveColor(e){const t=getComputedStyle(e);return t.getPropertyValue("border-top-color")||t.getPropertyValue("border-color")||t.getPropertyValue("background-color")}runTimeoutOutsideZone(e,t){this.ngZone.runOutsideAngular(()=>setTimeout(e,t))}}const a={disabled:!1},c=new r.s("nz-wave-global-options",{providedIn:"root",factory:function(){return a}});let l=(()=>{class e{constructor(e,t,n,i,r){this.ngZone=e,this.elementRef=t,this.config=n,this.animationType=i,this.platformId=r,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let e=!1;return this.config&&"boolean"==typeof this.config.disabled&&(e=this.config.disabled),"NoopAnimations"===this.animationType&&(e=!0),e}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new s(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.B),r.Qb(r.l),r.Qb(c,8),r.Qb(o.a,8),r.Qb(r.D))},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),e})(),u=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[i.b]]}),e})()},S1AF:function(e,t,n){"use strict";n.r(t),n.d(t,"ApiService",function(){return l}),n.d(t,"GqlService",function(){return u.a}),n.d(t,"DbService",function(){return p}),n.d(t,"WindowService",function(){return f.a}),n.d(t,"NotifyService",function(){return g.a}),n.d(t,"DonationService",function(){return y}),n.d(t,"ElectronAppService",function(){return A}),n.d(t,"KeybinderService",function(){return L}),n.d(t,"StorageService",function(){return I.a}),n.d(t,"QueryCollectionService",function(){return V}),n.d(t,"EnvironmentService",function(){return G.a}),n.d(t,"PluginRegistryService",function(){return te}),n.d(t,"PluginEventService",function(){return Q.a}),n.d(t,"PreRequestService",function(){return ne.a}),n.d(t,"ThemeRegistryService",function(){return Z}),n.d(t,"SubscriptionProviderRegistryService",function(){return ie.a}),n.d(t,"PluginContextService",function(){return ee}),n.d(t,"BackupService",function(){return D});var i=n("z6cu"),r=n("lJxs"),o=n("JIr8"),s=n("tk/3"),a=n("6EqW"),c=n("fXoL");let l=(()=>{class e{constructor(e){this.http=e,this.headers=new s.f({"Content-Type":"application/json",Accept:"application/json"}),this.api_url=""}get(e){return this.http.get(`${this.api_url}${e}`,{headers:this.headers}).pipe(Object(r.a)(this.checkForError),Object(o.a)(e=>Object(i.a)(e)))}post(e,t){return this.http.post(`${this.api_url}${e}`,JSON.stringify(t),{headers:this.headers}).pipe(Object(r.a)(this.checkForError),Object(o.a)(e=>Object(i.a)(e)))}delete(e){return this.http.delete(`${this.api_url}${e}`,{headers:this.headers}).pipe(Object(r.a)(this.checkForError),Object(o.a)(e=>Object(i.a)(e)))}setHeaders(e){Object.keys(e).forEach(t=>this.headers.set(t,e[t]))}setUrl(e){this.api_url=e}checkForError(e){if(e.status>=200&&e.status<300)return e;{const t=new Error(e.statusText);throw t.response=e,a.a.error(t),t}}}return e.\u0275fac=function(t){return new(t||e)(c.ac(s.c))},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac}),e})();var u=n("Yhw5"),h=n("HDdC"),d=n("LRne");let p=(()=>{class e{constructor(){this.storagePrefix="altair:",this.servicePrefix="db:"}getItemByExactKey(e){const t=localStorage.getItem(e);return h.a.create(e=>{if(t)try{const n=JSON.parse(t);e.next(n.value)}catch(n){e.next(t)}else e.next(null)})}getItem(e){return this.getItemByExactKey(this.getItemName(e))}setItem(e,t){const n={value:null};return e&&t&&(n.value=t),localStorage.setItem(this.getItemName(e),JSON.stringify(n)),new h.a(e=>e.next(null))}removeItemByExactKey(e){return localStorage.removeItem(e),new h.a(e=>e.next(null))}removeItem(e){return this.removeItemByExactKey(this.getItemName(e))}getAllKeys(){const e=Object.keys(localStorage).filter(e=>e.includes(this.storagePrefix));return Object(d.a)(e)}getItemName(e){return`${this.storagePrefix}${this.servicePrefix}${e}`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac}),e})();var f=n("9tIO"),g=n("V5dU"),m=n("1uah"),b=n("nTiS");function v(e){return(e=>{let t,n,i=1,r=0;if(e)for(i=0,t=e.length-1;t>=0;t--)n=e.charCodeAt(t),i=(i<<6&268435455)+n+(n<<14),r=266338304&i,i=0!==r?i^r>>21:i;return String(i)})(`${navigator.userAgent}:${e}`)}let y=(()=>{class e{constructor(e,t){this.dbService=e,this.altairConfig=t,this.actionCountKey="dac",this.seedKey="ds",this.hashKey="dh",this.seedBuff=1e5}donated(){const e=Math.random()*this.seedBuff;this.dbService.setItem(this.seedKey,e),this.dbService.setItem(this.hashKey,v(e.toString())),this.dbService.setItem(this.actionCountKey,0)}trackAndCheckIfEligible(){const e=this.dbService.getItem(this.actionCountKey),t=this.dbService.getItem(this.seedKey),n=this.dbService.getItem(this.hashKey);return Object(m.a)(e,t,n).pipe(Object(r.a)(([e,t,n])=>e&&e>=this.altairConfig.donation.action_count_threshold?(this.dbService.setItem(this.actionCountKey,0),!t||v(t)!==n):(this.dbService.setItem(this.actionCountKey,e+1),!1)))}}return e.\u0275fac=function(t){return new(t||e)(c.ac(p),c.ac(b.a))},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac}),e})();var w=n("SxV6"),_=n("U7fl"),O=n("39k0"),C=n("oE/m"),E=n("Gjh+"),S=n("HaE+"),T=n("BTCl"),x=n("BGZm");class k{constructor(e){this.data=e}get length(){return Object.keys(this.data).length}clear(){return this.data={}}getItem(e){return this.data[e]}key(e){return Object.keys(this.data)[e]}removeItem(e){Reflect.deleteProperty(this.data,e)}setItem(e,t){this.data[e]=t}*[Symbol.iterator](){for(const[e,t]of Object.entries(this.data))yield[e,t]}}var I=n("E6Fa");let D=(()=>{class e{constructor(e){this.notifyService=e}importBackupData(){var e=this;return Object(S.a)(function*(){console.log("TEST: opening file..");const t=yield Object(x.h)({accept:".agbkp"});if(console.log("TEST: opened."),!t)return e.notifyService.error("Invalid file");const n=JSON.parse(t);if(1===n.version&&n.localstore){const e=new k(n.localstore);return yield Object(T.b)({updateFromLocalStorage:!0,forceUpdateFromProvidedData:!0,storage:e}),location.reload()}return 2===n.version&&n.indexedrecords?(yield Object(T.c)(n.indexedrecords),location.reload()):e.notifyService.error("Invalid file content.")})()}exportBackupData(){return Object(S.a)(function*(){const e=new I.a,t={version:2,indexedrecords:yield e.appState.toArray()};Object(x.b)(JSON.stringify(t),"altair_backup",{fileType:"agbkp"})})()}}return e.\u0275fac=function(t){return new(t||e)(c.ac(g.a))},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var z=n("31Lz"),j=n("l7P3");let A=(()=>{class e{constructor(e,t,n,i,r,o){this.electron=e,this.store=t,this.windowService=n,this.notifyService=i,this.backupService=r,this.zone=o,this.activeWindowId="",this.ipc=window.ipc,this.store.subscribe(e=>{this.windowIds=Object.keys(e.windows),this.activeWindowId=e.windowsMeta.activeWindowId})}connect(){this.electron.isElectronApp&&(this.ipc.on("file-opened",(e,t)=>{this.zone.run(()=>this.windowService.importStringData(t))}),this.ipc.on("certificate-error",(e,t)=>{this.zone.run(()=>this.notifyService.warning("\n Your request has an invalid certificate.\n You should check that your request is coming from a trusted source.\n "))}),this.ipc.on("import-app-data",()=>{this.zone.run(()=>this.backupService.importBackupData())}),this.ipc.on("export-app-data",()=>{this.zone.run(()=>this.backupService.exportBackupData())}),this.ipc.on("create-tab",()=>{this.zone.run(()=>this.windowService.newWindow().pipe(Object(w.a)()).subscribe())}),this.ipc.on("close-tab",()=>{this.zone.run(()=>{this.windowIds.length>1&&this.windowService.removeWindow(this.activeWindowId).subscribe()})}),this.ipc.on("next-tab",()=>{this.zone.run(()=>this.store.dispatch(new C.m))}),this.ipc.on("previous-tab",()=>{this.zone.run(()=>this.store.dispatch(new C.n))}),this.ipc.on("reopen-closed-tab",()=>{this.zone.run(()=>this.store.dispatch(new E.l))}),this.ipc.on("send-request",()=>{this.zone.run(()=>this.store.dispatch(new _.L(this.activeWindowId)))}),this.ipc.on("reload-docs",()=>{this.zone.run(()=>this.store.dispatch(new _.K(this.activeWindowId)))}),this.ipc.on("show-docs",()=>{this.zone.run(()=>this.store.dispatch(new O.h(this.activeWindowId)))}),this.ipc.on("show-settings",()=>{this.zone.run(()=>this.store.dispatch(new C.t({value:!0})))}),a.a.log("Electron app connected."),this.ipc.send("get-file-opened"))}setHeaders(e){this.electron.isElectronApp&&this.ipc.sendSync("set-headers-sync",e)}isElectronApp(){return this.electron.isElectronApp}}return e.\u0275fac=function(t){return new(t||e)(c.ac(z.a),c.ac(j.h),c.ac(f.a),c.ac(g.a),c.ac(D),c.ac(c.B))},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac}),e})();var R=n("imBb"),N=(n("XcA1"),n("Q41Y"));let L=(()=>{class e{constructor(e,t,n,i){this.store=e,this.windowService=t,this.electronService=n,this.zone=i,this.activeWindowId="",this.shortcuts=[],this.store.subscribe(e=>{this.windowIds=Object.keys(e.windows),this.activeWindowId=e.windowsMeta.activeWindowId})}connect(){this.bindShortcut(["Ctrl+Shift+V"],()=>this.store.dispatch(new N.l(this.activeWindowId)),"Toggle Variable Pane"),this.bindShortcut(["Ctrl+Shift+H"],()=>this.store.dispatch(new N.h(this.activeWindowId)),"Toggle Header Pane"),this.bindShortcut(["Ctrl+Shift+R"],()=>this.store.dispatch(new _.K(this.activeWindowId)),"Reload Docs"),this.bindShortcut(["Ctrl+Shift+D"],()=>this.store.dispatch(new O.h(this.activeWindowId)),"Toggle Docs"),this.bindShortcut(["Ctrl+Shift+P"],()=>this.store.dispatch(new _.n(this.activeWindowId)),"Prettify Query"),this.bindShortcut(["Command+Enter","Ctrl+Enter"],()=>this.store.dispatch(new _.L(this.activeWindowId)),"Send Request")}bindShortcut(e,t,n=""){return this.shortcuts.push({keys:e,description:n}),R.bindGlobal(e.map(e=>e.toLowerCase()),()=>this.zone.run(t))}getShortcuts(){const e=[{title:"General",shortcuts:this.shortcuts},{title:"Editor",shortcuts:[{keys:["Ctrl+D"],description:"Jump to docs"},{keys:["Ctrl+F","Alt+F"],description:"Search in context"},{keys:["Ctrl+/","Command+/"],description:"Toggle comment"},{keys:["Ctrl+Shift+Enter"],description:"Fill all fields"}]}];return this.electronService.isElectronApp()&&e.push({title:"Electron Shortcuts",shortcuts:[]}),e}}return e.\u0275fac=function(t){return new(t||e)(c.ac(j.h),c.ac(f.a),c.ac(A),c.ac(c.B))},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac}),e})();var M=n("Cfvw"),F=n("xk4V"),P=n.n(F);let V=(()=>{class e{constructor(e){this.storage=e}create(e){const t=this.storage.now();return e.queries=e.queries.map(e=>({...e,id:P()(),created_at:t,updated_at:t})),Object(M.a)(this.storage.queryCollections.add({...e,created_at:t,updated_at:t}))}addQuery(e,t){const n=this.storage.now();return Object(M.a)(this.storage.queryCollections.where("id").equals(e).modify(e=>{const i={...t,id:P()(),created_at:n,updated_at:n};e.queries.push(i),e.updated_at=n}))}updateQuery(e,t,n){const i=this.storage.now();return Object(M.a)(this.storage.queryCollections.where("id").equals(e).modify(e=>{const r={...n,id:t,updated_at:i};e.queries=e.queries.map(e=>(e.id===t&&(e=r),e)),e.updated_at=i}))}deleteQuery(e,t){return Object(M.a)(this.storage.queryCollections.where("id").equals(e).modify(e=>{e.queries=e.queries.filter(e=>{if(t.id){if(t.id===e.id)return!1}else if(t.windowName===e.windowName)return!1;return!0}),e.updated_at=this.storage.now()}))}deleteCollection(e){return Object(M.a)(this.storage.queryCollections.delete(e))}updateCollection(e,t){return Object(M.a)(this.storage.queryCollections.where("id").equals(e).modify((e,n)=>{a.a.log("We update."),n.value=t,n.value.updated_at=this.storage.now()}))}getExportCollectionData(e){return Object(M.a)(this.storage.queryCollections.get({id:e}).then(e=>({version:1,type:"collection",...e})))}importCollectionDataFromJson(e){if(!e)return Object(i.a)(new Error("String is empty."));try{return this.importCollectionData(JSON.parse(e))}catch(t){return a.a.log("The file is invalid.",t),Object(i.a)(t)}}importCollectionData(e){try{return e?e.version&&e.type&&"collection"===e.type?this.create({title:e.title,collections:e.collections,description:e.description,queries:e.queries}):Object(i.a)(new Error("File is not a valid Altair collection file.")):Object(i.a)(new Error("Object is empty."))}catch(t){return a.a.log("Something went wrong while importing the data.",t),Object(i.a)(t)}}handleImportedFile(e){return Object(x.d)(e).then(e=>{try{this.importCollectionDataFromJson(e)}catch(t){a.a.log("There was an issue importing the file.",t)}})}getAll(){return Object(M.a)(this.storage.queryCollections.toArray())}}return e.\u0275fac=function(t){return new(t||e)(c.ac(I.a))},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac}),e})();var G=n("XhxL"),B=n("kvTO"),W=n("9Oho"),$=n("e9W3"),U=n("GNEV"),H=n("/D3x"),q=n("w7D7"),Q=n("HEXU"),K=n("Gxun"),X={},Y={colors:{bg:K.b.colors.black,offBg:"#3f4349",font:K.b.colors.white,offFont:K.b.colors.lightGray,border:"#565c64",offBorder:"#565656",headerBg:"#3f4349"},shadow:{opacity:.3},editor:{colors:{comment:K.b.colors.darkGray,string:K.b.colors.orange,number:K.b.colors.orange,variable:K.b.colors.white,attribute:K.b.colors.green,keyword:K.b.colors.blue,atom:K.b.colors.white,property:K.b.colors.blue,definition:K.b.colors.orange,punctuation:K.b.colors.blue,cursor:K.b.colors.blue}}},J={colors:{bg:"#282a36",offBg:"#303240",font:"#f8f8f2",offFont:"#f8f8f2",border:"#40414d",offBorder:"#383942",headerBg:"#303240"},editor:{colors:{comment:"#6272a4",string:"#f1fa8c",number:"#bd93f9",variable:"#50fa7b",attribute:"#ff79c6",keyword:"#ff79c6",atom:"#bd93f9",property:"#bd93f9",punctuation:"#f8f8f2",cursor:"#f8f8f2"}}};let Z=(()=>{class e{constructor(){this.registry=new Map,this.addDefaults()}addDefaults(){this.registry.set("light",X),this.registry.set("dark",Y),this.registry.set("dracula",J)}getTheme(e){return this.registry.get(e)}addTheme(e,t){if(this.registry.has(e))throw new Error(`"${e}" theme already exists`);this.registry.set(e,t)}mergeThemes(...e){return Object(K.d)(...e)}getAllThemes(){return Array.from(this.registry.keys())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ee=(()=>{class e{constructor(e,t,n,i,r){this.store=e,this.windowService=t,this.pluginEventService=n,this.themeRegistryService=i,this.notifyService=r}createContext(e,t){const n=this,i=t=>a.a.log(`PLUGIN[${e}]: ${t}`),r=this.pluginEventService.group();return i("creating context.."),{app:{getWindowState:e=>Object(S.a)(function*(){return n.getWindowState(e)})(),getCurrentWindowState:()=>Object(S.a)(function*(){return n.getCurrentWindowState()})(),createPanel(e,{location:r=B.b.SIDEBAR,title:o=t.display_name}={}){i(`Creating panel<${o}>`);const s=new B.a(o,e,r);return n.store.dispatch(new W.e(s)),s},destroyPanel(e){i(`Destroying panel<${e.title}:[${e.id}]>`),e instanceof B.a&&(e.destroy(),n.store.dispatch(new W.m({panelId:e.id})))},createAction({title:e,location:t=B.d.RESULT_PANE,execute:r}){i(`Creating ui action<${e}>`);const o=new B.c(e,t,Object(S.a)(function*(){const e=yield n.getCurrentWindowState();r(e)}));return n.store.dispatch(new W.f(o)),o},destroyAction(e){i(`Destroying ui action<${e.title}:[${e.id}]>`),e instanceof B.c&&n.store.dispatch(new W.n({actionId:e.id}))},isElectron:()=>q.a,createWindow:e=>(i("creating window"),n.windowService.importWindowData(e)),setQuery(e,t){i("setting query"),n.store.dispatch(new _.N(t,e))},setVariables(e,t){i("setting variables"),n.store.dispatch(new U.l(t,e))},setEndpoint(e,t){i("setting endpoint"),n.store.dispatch(new _.Z({url:t},e)),n.store.dispatch(new _.K(e))},executeCommand(){}},events:{on:(e,t)=>r.on(e,t),off:()=>(i("unsubscribing from all events"),r.unsubscribe())},theme:{add:(e,t)=>n.themeRegistryService.addTheme(`plugin:${e}`,t),enable:t=>Object(S.a)(function*(){const i={...yield n.store.select("settings").pipe(Object(w.a)()).toPromise()};i.theme=`plugin:${t}`,n.store.dispatch(new H.b({value:JSON.stringify(i)})),n.notifyService.info(`Plugin "${e}" has enabled the "${t}" theme`)})()}}}getWindowState(e){var t=this;return Object(S.a)(function*(){const n=yield t.store.select($.E(e)).pipe(Object(w.a)()).toPromise();return{version:1,type:"window",windowId:e,query:n.query.query||"",apiUrl:n.query.url,variables:n.variables.variables,subscriptionUrl:n.query.subscriptionUrl,headers:n.headers,windowName:n.layout.title,preRequestScript:n.preRequest.script,preRequestScriptEnabled:n.preRequest.enabled,sdl:n.schema.sdl,queryResult:n.query.response}})()}getCurrentWindowState(){var e=this;return Object(S.a)(function*(){const t=yield e.store.select("windowsMeta").pipe(Object(w.a)()).toPromise();return e.getWindowState(t.activeWindowId)})()}}return e.\u0275fac=function(t){return new(t||e)(c.ac(j.h),c.ac(f.a),c.ac(Q.a),c.ac(Z),c.ac(g.a))},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),te=(()=>{class e{constructor(e,t,n){this.http=e,this.pluginContextService=t,this.store=n,this.fetchedPlugins=[]}add(e,t){var n=this;return Object(S.a)(function*(){const i=n.pluginContextService.createContext(e,t),r=n.getPluginClass(t),o={name:e,context:i,instance:r?new r:void 0,plugin:t};o.instance&&o.instance.initialize(i),n.store.dispatch(new W.d(o))})()}getRemotePluginList(){return this.http.get("https://altair-plugin-server.sirmuel.workers.dev/list?v=2")}fetchPlugin(e,t={}){e&&this.fetchedPlugins.push(this.fetchPluginAssets(e,t))}installedPlugins(){return this.store.select(e=>e.local.installedPlugins)}getPluginInfoFromString(e){const t=e.match(/(([A-Za-z_]*)\:)?(.[A-Za-z0-9\-]*)(@([^#\:\[\]]*))?(\:\:\[(.*)\]->\[(.*)\])?/);if(t&&t.length){const[,,e=B.e.NPM,n,,i="latest",,r,o]=t;if(n&&i){if(!n.startsWith("altair-graphql-plugin-"))throw new Error("Plugin name must start with altair-graphql-plugin-");return{name:n,version:i,pluginSource:e,...r&&o&&{[r]:o}}}}return null}pluginsReady(){return Promise.all(this.fetchedPlugins)}fetchPluginAssets(e,{pluginSource:t=B.e.NPM,version:n="latest",...i}={}){var r=this;return Object(S.a)(function*(){a.a.log("PLUGIN: ",e,t,n);let o="";switch(t){case B.e.NPM:o=r.getNPMPluginBaseURL(e,{version:n});break;case B.e.URL:o=r.getURLPluginBaseURL(e,{version:n,...i})}const s=r.resolveURL(o,"manifest.json");try{const t=yield r.http.get(s).toPromise();if(a.a.log("PLUGIN",t),t){t.styles&&t.styles.length&&(a.a.log("PLUGIN styles",t.styles),yield Promise.all(t.styles.map(e=>r.injectPluginStylesheet(r.resolveURL(o,e))))),t.scripts&&t.scripts.length&&(a.a.log("PLUGIN scripts",t.scripts),yield Promise.all(t.scripts.map(e=>r.injectPluginScript(r.resolveURL(o,e)))));const n=Object(B.f)(e,t);return yield r.add(e,n),a.a.log("PLUGIN","plugin scripts and styles injected and loaded."),n}}catch(c){a.a.error("Error fetching plugin assets",c)}})()}injectPluginScript(e){return new Promise((t,n)=>{const i=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=()=>t(),r.onerror=e=>n(e),i.appendChild(r)})}injectPluginStylesheet(e){return new Promise((t,n)=>{const i=document.getElementsByTagName("head")[0],r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,r.onload=()=>t(),r.onerror=e=>n(e),i.appendChild(r)})}getNPMPluginBaseURL(e,{version:t="latest"}){return`https://cdn.jsdelivr.net/npm/${e}@${t}/`}getURLPluginBaseURL(e,t){return t.url}resolveURL(e,t){return e.replace(/\/$/,"")+"/"+t.replace(/^\//,"")}getPluginClass(e){if(e.plugin_class)return window.AltairGraphQL.plugins[e.plugin_class]}}return e.\u0275fac=function(t){return new(t||e)(c.ac(s.c),c.ac(ee),c.ac(j.h))},e.\u0275prov=c.Mb({token:e,factory:e.\u0275fac}),e})();var ne=n("nQNJ"),ie=n("1tsg")},SJVZ:function(e,t,n){!function(e){"use strict";function t(t,n,r,o){if(r&&r.call){var s=r;r=null}else s=i(t,r,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var a=i(t,r,"minFoldSize");function c(e){var i=s(t,n);if(!i||i.to.line-i.from.linet.firstLine();)n=e.Pos(n.line-1,0),l=c(!1);if(l&&!l.cleared&&"unfold"!==o){var u=function(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);(r=document.createElement("span")).appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}(t,r,l);e.on(u,"mousedown",function(t){h.clear(),e.e_preventDefault(t)});var h=t.markText(l.from,l.to,{replacedWith:u,clearOnEnter:i(t,r,"clearOnEnter"),__isFold:!0});h.on("clear",function(n,i){e.signal(t,"unfold",t,n,i)}),e.signal(t,"fold",t,l.from,l.to)}}e.newFoldFunction=function(e,n){return function(i,r){t(i,r,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,i){t(this,e,n,i)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n'+(n?e:o(e,!0))+"
    \n":"
    "+(n?e:o(e,!0))+"
    "}blockquote(e){return"
    \n"+e+"
    \n"}html(e){return e}heading(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(e,t,n){const i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • "+e+"
  • \n"}checkbox(e){return" "}paragraph(e){return"

    "+e+"

    \n"}table(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n"+e+"\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+""}br(){return this.options.xhtml?"
    ":"
    "}del(e){return""+e+""}link(e,t,n){if(null===(e=r(this.options.sanitize,this.options.baseUrl,e)))return n;let i='",i}image(e,t,n){if(null===(e=r(this.options.sanitize,this.options.baseUrl,e)))return n;let i=''+n+'":">",i}text(e){return e}}},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("ngJS"),r=n("NJ4a"),o=n("Lhse"),s=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=e=>{if(e&&"function"==typeof e[s.a])return u=e,e=>{const t=u[s.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(i.a)(e);if(Object(c.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,r.a),e);if(e&&"function"==typeof e[o.a])return t=e,e=>{const n=t[o.a]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(l.a)(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.`)}var t,n,u}},SpAZ:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",function(){return i})},SxV6:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("sVev"),r=n("pLZG"),o=n("IzEk"),s=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(e,t){const n=arguments.length>=2;return l=>l.pipe(e?Object(r.a)((t,n)=>e(t,n,l)):c.a,Object(o.a)(1),n?Object(s.a)(t):Object(a.a)(()=>new i.a))}},T95z:function(e,t,n){"use strict";function i(e,t){for(var n=Object.create(null),i=e.length/2,o=0;o1&&u>1&&i[l-1]===r[u-2]&&i[l-2]===r[u-1]&&(n[l][u]=Math.min(n[l][u],n[l-2][u-2]+h))}return n[o][s]}n.d(t,"a",function(){return i})},T9Ld:function(e,t,n){const{defaults:i}=n("vbtb"),{block:r}=n("e56X"),{rtrim:o,splitCells:s,escape:a}=n("rUJ1");e.exports=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.rules=r.normal,this.options.pedantic?this.rules=r.pedantic:this.options.gfm&&(this.rules=r.gfm)}static get rules(){return r}static lex(t,n){return new e(n).lex(t)}lex(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.token(e,!0)}token(e,t){let n,i,c,l,u,h,d,p,f,g,m,b,v,y,w,_;for(e=e.replace(/^ +$/gm,"");e;)if((c=this.rules.newline.exec(e))&&(e=e.substring(c[0].length),c[0].length>1&&this.tokens.push({type:"space"})),c=this.rules.code.exec(e)){const t=this.tokens[this.tokens.length-1];e=e.substring(c[0].length),t&&"paragraph"===t.type?t.text+="\n"+c[0].trimRight():(c=c[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?c:o(c,"\n")}))}else if(c=this.rules.fences.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"code",lang:c[2]?c[2].trim():c[2],text:c[3]||""});else if(c=this.rules.heading.exec(e))e=e.substring(c[0].length),this.tokens.push({type:"heading",depth:c[1].length,text:c[2]});else if((c=this.rules.nptable.exec(e))&&(h={type:"table",header:s(c[1].replace(/^ *| *\| *$/g,"")),align:c[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:c[3]?c[3].replace(/\n$/,"").split("\n"):[]},h.header.length===h.align.length)){for(e=e.substring(c[0].length),m=0;m ?/gm,""),this.token(c,t),this.tokens.push({type:"blockquote_end"});else if(c=this.rules.list.exec(e)){for(e=e.substring(c[0].length),l=c[2],y=l.length>1,d={type:"list_start",ordered:y,start:y?+l:"",loose:!1},this.tokens.push(d),c=c[0].match(this.rules.item),p=[],n=!1,v=c.length,m=0;m1?1===u.length:u.length>1||this.options.smartLists&&u!==l)&&(e=c.slice(m+1).join("\n")+e,m=v-1)),i=n||/\n\n(?!\s*$)/.test(h),m!==v-1&&(n="\n"===h.charAt(h.length-1),i||(i=n)),i&&(d.loose=!0),w=/^\[[ xX]\] /.test(h),_=void 0,w&&(_=" "!==h[1],h=h.replace(/^\[[ xX]\] +/,"")),f={type:"list_item_start",task:w,checked:_,loose:i},p.push(f),this.tokens.push(f),this.token(h,!1),this.tokens.push({type:"list_item_end"});if(d.loose)for(v=p.length,m=0;m"}}},TirB:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n("1QEH"),r=n("rWdj"),o=n("t3R0"),s=n("WXJZ"),a=n("zpYP"),c=n("EMzn"),l=n("4suF"),u=n("19Hc"),h=n("LViu"),d=n("51nL"),p=n("axIb"),f=n("Mbdf");function g(e,t){Object(a.a)(e)&&Object(a.a)(e.__schema)||Object(o.a)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '+Object(r.a)(e));for(var n=e.__schema,g=Object(s.a)(n.types,function(e){return e.name},function(e){return function(e){if(e&&e.name&&e.kind)switch(e.kind){case h.TypeKind.SCALAR:return new p.g({name:(n=e).name,description:n.description});case h.TypeKind.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+Object(r.a)(e));return new p.f({name:e.name,description:e.description,interfaces:function(){return e.interfaces.map(T)},fields:function(){return x(e)}})}(e);case h.TypeKind.INTERFACE:return new p.c({name:(t=e).name,description:t.description,fields:function(){return x(t)}});case h.TypeKind.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+Object(r.a)(e));return new p.h({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(S)}})}(e);case h.TypeKind.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+Object(r.a)(e));return new p.a({name:e.name,description:e.description,values:Object(s.a)(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}(e);case h.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+Object(r.a)(e));return new p.b({name:e.name,description:e.description,fields:function(){return k(e.inputFields)}})}(e)}var t,n;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+Object(r.a)(e))}(e)}),m=0,b=[].concat(u.g,h.introspectionTypes);m0)return{errors:p};try{t=Object(s.parse)(i)}catch(Ze){return{errors:[Ze]}}var f=Object(a.c)(n,t);return f.length>0?{errors:f}:T({schema:n,document:t,rootValue:r,contextValue:o,variableValues:l,operationName:u,fieldResolver:h,typeResolver:d})}var te=n("51nL"),ne=n("19Hc"),ie=n("neE4"),re=n("y4cC"),oe=n("zsKT"),se=n("CbW8"),ae=n("JvOi"),ce=n("dQau"),le=n("L2ys"),ue=n("F8X2"),he=n("Xizt");function de(e,t){return new Promise(function(n){return n(t(e))})}function pe(e){return{value:e,done:!1}}function fe(e,t,n,i,r,o,s,a){return me(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:i,variableValues:r,operationName:o,fieldResolver:s,subscribeFieldResolver:a})}function ge(e){if(e instanceof b.a)return{errors:[e]};throw e}function me(e){var t=e.schema,n=e.document,i=e.contextValue,r=e.variableValues,o=e.operationName,s=e.fieldResolver,a=be(t,n,e.rootValue,i,r,o,e.subscribeFieldResolver),c=function(e){return T(t,n,e,i,r,o,s)};return a.then(function(e){return Object(l.d)(e)?function(e,t,n){var i,r,o,s,a,c,u=Object(l.c)(e);function h(e){return e.done?e:de(e.value,t).then(pe,r)}if("function"==typeof u.return&&(i=u.return,r=function(e){var t=function(){return Promise.reject(e)};return i.call(u).then(t,t)}),n){var d=n;o=function(e){return de(e,d).then(pe,r)}}return c=function(){return this},(a=l.a)in(s={next:function(){return u.next().then(h,o)},return:function(){return i?i.call(u).then(h,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"==typeof u.throw?u.throw(e).then(h,o):Promise.reject(e).catch(r)}})?Object.defineProperty(s,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[a]=c,s}(e,c,ge):e})}function be(e,t,n,i,r,o,s){I(e,t,r);try{var a=D(e,t,n,i,r,o,s);if(Array.isArray(a))return Promise.resolve({errors:a});var c=E(e,a.operation),h=j(a,c,a.operation.selectionSet,Object.create(null),Object.create(null)),d=Object.keys(h)[0],p=h[d],f=p[0].name.value,g=Y(e,c,f);if(!g)throw new b.a('The subscription field "'.concat(f,'" is not defined.'),p);var y=g.subscribe||a.fieldResolver,w=Object(m.a)(void 0,d),_=L(a,g,p,c,w),O=M(a,g,p,y,n,_);return Promise.resolve(O).then(function(e){if(e instanceof Error)return{errors:[v(e,p,Object(m.b)(w))]};if(Object(l.d)(e))return e;throw new Error("Subscription field must return Async Iterable. Received: "+Object(u.a)(e))})}catch(C){return C instanceof b.a?Promise.resolve({errors:[C]}):Promise.reject(C)}}var ve=n("jOXf"),ye=n("FQ53"),we=n("ZfCc"),_e=n("sdW/"),Oe=n("2Rkc"),Ce=n("y8IY"),Ee=n("VlWk"),Se=n("E++1"),Te=n("10sW"),xe=n("g4S7"),ke=n("AeAO"),Ie=n("PmNC"),De=n("ZBm+"),ze=n("A67W"),je=n("r60r"),Ae=n("FduV"),Re=n("Vuqn"),Ne=n("2/d+"),Le=n("gggk"),Me=n("/C/i"),Fe=n("sA7U"),Pe=n("lORA"),Ve=n("dwPZ"),Ge=n("v96Q"),Be=n("U4FY"),We=n("AW/X"),$e=n("0xor"),Ue=n("cfc+"),He=n("AF4T"),qe=n("+zUi"),Qe=n("pLY/"),Ke=n("wpgB"),Xe=n("iyJ7"),Ye=n("herJ"),Je=n("OO9G"),Ze=n("oycr");function et(e){e||Object(d.a)(0,"Received null or undefined error.");var t=e.message||"An unknown error occurred.",n=e.locations,i=e.path,r=e.extensions;return r?{message:t,locations:n,path:i,extensions:r}:{message:t,locations:n,path:i}}var tt=n("PDj5"),nt=n("SYjR");function it(e,t){var n=T(e,Object(s.parse)(Object(tt.a)(t)));return!o(n)&&!n.errors&&n.data||Object(h.a)(0),n.data}var rt=n("TirB"),ot=n("Yen0"),st=n("PXbX"),at=n("1QEH"),ct=n("Wzjs"),lt=n("WXJZ");function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ht(e){for(var t=1;t0&&(s+=' at "value'.concat(Object(xt.a)(a),'"')),r.push(new b.a(s+": "+o.message,n,void 0,void 0,void 0,o.originalError))});return r.length>0?{errors:r,value:void 0}:{errors:void 0,value:o}}function It(e,t){var n=kt(e,t).errors;return n?n.map(function(e){return e.message}):[]}function Dt(e,t){var n=new te.a({}),i={kind:y.a.DOCUMENT,definitions:[]},r=new St.a(n,void 0,e),o=new ve.b(n,i,r),s=Object(We.a)(o);return Object(le.c)(t,Object(le.e)(r,s)),o.getErrors()}function zt(e){return{kind:"Document",definitions:Object(st.a)(e,function(e){return e.definitions})}}function jt(e){var t,n=[],i=Object.create(null),r=new Map,o=Object.create(null),s=0;Object(le.c)(e,{OperationDefinition:function(e){t=At(e),n.push(e),r.set(e,s++)},FragmentDefinition:function(e){i[t=e.name.value]=e,r.set(e,s++)},FragmentSpread:function(e){var n=e.name.value;(o[t]||(o[t]=Object.create(null)))[n]=!0}});for(var a=Object.create(null),c=0;c0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}var Ft=n("sJV+"),Pt=n("5PMP"),Vt=n("kBjl");function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",INTERFACE_REMOVED_FROM_OBJECT:"INTERFACE_REMOVED_FROM_OBJECT",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),$t=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",INTERFACE_ADDED_TO_OBJECT:"INTERFACE_ADDED_TO_OBJECT",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Ut(e,t){return qt(e,t).filter(function(e){return e.type in Wt})}function Ht(e,t){return qt(e,t).filter(function(e){return e.type in $t})}function qt(e,t){return[].concat(function(e,t){for(var n=[],i=on(Object(at.a)(e.getTypeMap()),Object(at.a)(t.getTypeMap())),r=0,o=i.removed;re.lift(function({bufferSize:e=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let o,s,a=0,c=!1,l=!1;return function(u){let h;a++,!o||c?(c=!1,o=new i.a(e,t,r),h=o.subscribe(this),s=u.subscribe({next(e){o.next(e)},error(e){c=!0,o.error(e)},complete(){l=!0,s=void 0,o.complete()}}),l&&(s=void 0)):h=o.subscribe(this),this.add(()=>{a--,h.unsubscribe(),h=void 0,s&&!l&&n&&0===a&&(s.unsubscribe(),s=void 0,o=void 0)})}}(r))}},V5dU:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("BGZm"),r=n("SxV6"),o=n("fXoL"),s=n("dPL8"),a=n("l7P3");let c=(()=>{class e{constructor(e,t){this.toast=e,this.store=t,this.extensionNotifications={},this.manageExtensionNotifications()}success(e,t="Altair",n={}){this.exec("success",e,t,n)}error(e,t="",n={}){this.exec("error",e,t,n)}warning(e,t="",n={}){this.store.select(e=>e.settings["alert.disableWarnings"]).pipe(Object(r.a)()).subscribe(i=>{if(!i)return this.exec("warning",e,t,n)})}info(e,t="",n={}){this.exec("show",e,t,n)}exec(e,t,n,i={}){var r;let o=t;return n&&(o=`
    ${n}
    ${o}`),(null===(r=i.data)||void 0===r?void 0:r.url)&&(o=`${o}
    Link`),this.toast[e](t,{id:t,autoClose:!i.disableTimeOut})}pushNotify(e,t="Altair",n={}){return i.f?this.extensionPushNotify(e,t,n):this.electronPushNotify(e,t,n)}electronPushNotify(e,t="Altair",n={}){this.store.select(e=>e.settings.disablePushNotification).pipe(Object(r.a)()).toPromise().then(i=>{if(i)return;const r=new Notification(t,{body:e});return n&&(r.onclick=n.onclick),r})}extensionPushNotify(e,t="Altair",n={}){this.store.select(e=>e.settings.disablePushNotification).pipe(Object(r.a)()).toPromise().then(i=>{i||window.chrome.notifications.create({type:"basic",iconUrl:"assets/img/logo.png",title:t,message:e},e=>{n&&(this.extensionNotifications[e]={},n.onclick&&(this.extensionNotifications[e].onclick=n.onclick))})})}manageExtensionNotifications(){i.f&&(window.chrome.notifications.onClicked.addListener(e=>{this.extensionNotifications[e]&&this.extensionNotifications[e].onclick&&this.extensionNotifications[e].onclick()}),window.chrome.notifications.onClosed.addListener(e=>{this.extensionNotifications[e]&&delete this.extensionNotifications[e]}))}}return e.\u0275fac=function(t){return new(t||e)(o.ac(s.b),o.ac(a.h))},e.\u0275prov=o.Mb({token:e,factory:e.\u0275fac}),e})()},VNB6:function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("z+Ro"),o=n("bHdf"),s=n("yCtX");function a(...e){let t=Number.POSITIVE_INFINITY,n=null,a=e[e.length-1];return Object(r.a)(a)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof i.a?e[0]:Object(o.a)(t)(Object(s.a)(e,n))}},VUBy:function(e,t,n){"use strict";var i=n("lq5y"),r=n("QaEO");e.exports=function(e){return r(i(e))}},VWUu:function(e,t,n){"use strict";n.r(t),n.d(t,"Range",function(){return i}),n.d(t,"Position",function(){return r}),n.d(t,"offsetToPosition",function(){return o}),n.d(t,"locToRange",function(){return s});class i{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new r(e,t)}setEnd(e,t){this.end=new r(e,t)}}class r{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{t[s]?function(e,t){const n=e.\u0275pipe;n.onDestroy=f(n.onDestroy,t)}(t,e):function(e,t){e.prototype.ngOnDestroy=f(e.prototype.ngOnDestroy,t)}(t,e),function(e){e.prototype[l]=!0}(t)}}function m(e,t){return n=>{const i=u(t);return"string"==typeof t?function(e,t,n){const i=e[t];if(!1===a(i))throw new Error(`${e.constructor.name} is using untilDestroyed but doesn't implement ${t}`);h(e,n),e[t]=function(){a(i)&&i.apply(this,arguments),d(this,n),e[t]=i}}(e,t,i):(function(e){if(!(l in e.constructor.prototype))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(e),h(e,i)),n.pipe(Object(o.a)(e[i]))}}},VlWk:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("dWS+"),r=n("/jXB"),o=n("F8X2"),s=n("4suF");function a(e){for(var t=Object.create(null),n=e.getSchema(),a=n?n.getDirectives():s.i,c=0;c=15&&(h=!1,c=!0);var O=v&&(l||h&&(null==_||_<12.11)),C=n||s&&a>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,T=function(e,t){var n=e.className,i=E(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function x(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function k(e,t){return x(e).appendChild(t)}function I(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return s+(t-o);s+=a-o,s+=n-s%n,o=a+1}}g?N=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:s&&(N=function(e){try{e.select()}catch(t){}});var P=function(){this.id=null,this.f=null,this.time=0,this.handler=L(this.onTimeout,this)};function V(e,t){for(var n=0;n=t)return i+Math.min(s,t-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=t)return i}}var H=[""];function q(e){for(;H.length<=e;)H.push(Q(H)+" ");return H[e]}function Q(e){return e[e.length-1]}function K(e,t){for(var n=[],i=0;i"\x80"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ie(e){return e.charCodeAt(0)>=768&&ne.test(e)}function re(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var r=(t+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+i}}var se=null;function ae(e,t,n){var i;se=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:se=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:se=r)}return null!=i?i:se}var ce=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,i=/[Lb1n]/,r=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,a){var c,l="ltr"==a?"L":"R";if(0==s.length||"ltr"==a&&!e.test(s))return!1;for(var u=s.length,h=[],d=0;d-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function fe(e,t){var n=de(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function ve(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function ye(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function we(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){ye(e),we(e)}function Ce(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var Se,Te,xe=function(){if(s&&a<9)return!1;var e=I("div");return"draggable"in e||"dragDrop"in e}();function ke(e){if(null==Se){var t=I("span","\u200b");k(e,I("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(s&&a<8))}var n=Se?I("span","\u200b"):I("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Te)return Te;var t=k(e,document.createTextNode("A\u062eA")),n=S(t,0,1).getBoundingClientRect(),i=S(t,1,2).getBoundingClientRect();return x(e),!(!n||n.left==n.right)&&(Te=i.right-n.right<3)}var De,ze=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var o=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),t+=s+1):(n.push(o),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(De){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(De){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ae="oncopy"in(De=I("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Re=null,Ne={},Le={};function Me(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function Fe(e){if("string"==typeof e&&Le.hasOwnProperty(e))e=Le[e];else if(e&&"string"==typeof e.name&&Le.hasOwnProperty(e.name)){var t=Le[e.name];"string"==typeof t&&(t={name:t}),(e=Y(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Fe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Fe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Pe(e,t){t=Fe(t);var n=Ne[t.name];if(!n)return Pe(e,"text/plain");var i=n(e,t);if(Ve.hasOwnProperty(t.name)){var r=Ve[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var s in t.modeProps)i[s]=t.modeProps[s];return i}var Ve={};function Ge(e,t){M(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})}function Be(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function We(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}var Ue=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function He(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?et(n,He(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,He(e,t.line).text.length)}function ct(e,t){for(var n=[],i=0;i=this.string.length},Ue.prototype.sol=function(){return this.pos==this.lineStart},Ue.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ue.prototype.next=function(){if(this.post},Ue.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ue.prototype.skipToEnd=function(){this.pos=this.string.length},Ue.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ue.prototype.backUp=function(e){this.pos-=e},Ue.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Ue.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ue.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ue.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ue.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var lt=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,i){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function ht(e,t,n,i){var r=[e.state.modeGen],o={};wt(e,t.text,e.doc.mode,n,function(e,t){return r.push(e,t)},o,i);for(var s=n.state,a=function(i){n.baseTokens=r;var a=e.state.overlays[i],c=1,l=0;n.state=!0,wt(e,t.text,a.mode,n,function(e,t){for(var n=c;le&&r.splice(c,1,e,r[c+1],i),c+=2,l=Math.min(e,i)}if(t)if(a.opaque)r.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;ne.options.maxHighlightLength&&Be(e.doc.mode,i.state),o=ht(e,t,i);r&&(i.state=r),t.stateAfter=i.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pt(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return new ut(i,!0,t);var o=function(e,t,n){for(var i,r,o=e.doc,s=n?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>s;--a){if(a<=o.first)return o.first;var c=He(o,a-1),l=c.stateAfter;if(l&&(!n||a+(l instanceof lt?l.lookAhead:0)<=o.modeFrontier))return a;var u=F(c.text,null,e.options.tabSize);(null==r||i>u)&&(r=a-1,i=u)}return r}(e,t,n),s=o>i.first&&He(i,o-1).stateAfter,a=s?ut.fromSaved(i,s,o):new ut(i,$e(i.mode),o);return i.iter(o,t,function(n){ft(e,n.text,a);var i=a.line;n.stateAfter=i==t-1||i%5==0||i>=r.viewFrom&&it.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof lt?new ut(e,Be(e.mode,t.state),n,t.lookAhead):new ut(e,Be(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?Be(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lt(t,this.maxLookAhead):t};var bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function vt(e,t,n,i){var r,o,s=e.doc,a=s.mode,c=He(s,(t=at(s,t)).line),l=pt(e,t.line,n),u=new Ue(c.text,e.options.tabSize,l);for(i&&(o=[]);(i||u.pose.options.maxHighlightLength?(a=!1,s&&ft(e,t,i,h.pos),h.pos=t.length,c=null):c=yt(mt(n,h,i.state,d),o),d){var p=d[0].name;p&&(c="m-"+(c?p+" "+c:p))}if(!a||u!=c){for(;l=t:o.to>t)?null:o.to))}return i}(n,r,s),c=function(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t)||o.from==t&&"bookmark"==s.type&&(!n||o.marker.insertLeft))&&(i||(i=[])).push(new Ct(s,null==o.from||(s.inclusiveLeft?o.from<=t:o.from0&&a)for(var y=0;yt)&&(!n||jt(n,o.marker)<0)&&(n=o.marker)}return n}function Mt(e,t,n,i,r){var o=He(e,t),s=Ot&&o.markedSpans;if(s)for(var a=0;a=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(c.marker.inclusiveRight&&r.inclusiveLeft?tt(l.to,n)>=0:tt(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&r.inclusiveLeft?tt(l.from,i)<=0:tt(l.from,i)<0)))return!0}}}function Ft(e){for(var t;t=Rt(e);)e=t.find(-1,!0).line;return e}function Pt(e,t){var n=He(e,t),i=Ft(n);return n==i?t:Xe(i)}function Vt(e,t){if(t>e.lastLine())return t;var n,i=He(e,t);if(!Gt(e,i))return t;for(;n=Nt(i);)i=n.find(1,!0).line;return Xe(i)+1}function Gt(e,t){var n=Ot&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Ht=function(e,t,n){this.text=e,It(this,t),this.height=n?n(this):1};function qt(e){e.parent=null,kt(e)}Ht.prototype.lineNo=function(){return Xe(this)},ve(Ht);var Qt={},Kt={};function Xt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Kt:Qt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Yt(e,t){var n=D("span",null,null,c?"padding-right: .1px":null),i={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,s=void 0;i.pos=0,i.addToken=Zt,Ie(e.display.measure)&&(s=le(o,e.doc.direction))&&(i.addToken=en(i.addToken,s)),i.map=[],nn(o,i,dt(e,o,t!=e.display.externalMeasured&&Xe(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=R(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=R(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(ke(e.display.measure))),0==r?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var a=i.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return fe(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=R(i.pre.className,i.textClass||"")),i}function Jt(e){var t=I("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,i,r,o,c){if(t){var l,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;rl&&h.from<=l);d++);if(h.to>=u)return e(n,i,r,o,s,a,c);e(n,i.slice(0,h.to-l),r,o,null,a,c),o=null,i=i.slice(h.to-l),l=h.to}}}function tn(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var s,a,c,l,u,h,d,p=r.length,f=0,g=1,m="",b=0;;){if(b==f){c=l=u=a="",d=null,h=null,b=1/0;for(var v=[],y=void 0,w=0;wf||O.collapsed&&_.to==f&&_.from==f)){if(null!=_.to&&_.to!=f&&b>_.to&&(b=_.to,l=""),O.className&&(c+=" "+O.className),O.css&&(a=(a?a+";":"")+O.css),O.startStyle&&_.from==f&&(u+=" "+O.startStyle),O.endStyle&&_.to==b&&(y||(y=[])).push(O.endStyle,_.to),O.title&&((d||(d={})).title=O.title),O.attributes)for(var C in O.attributes)(d||(d={}))[C]=O.attributes[C];O.collapsed&&(!h||jt(h.marker,O)<0)&&(h=_)}else _.from>f&&b>_.from&&(b=_.from)}if(y)for(var E=0;E=p)break;for(var T=Math.min(p,b);;){if(m){var x=f+m.length;if(!h){var k=x>T?m.slice(0,T-f):m;t.addToken(t,k,s?s+c:c,u,f+k.length==b?l:"",a,d)}if(x>=T){m=m.slice(T-f),f=T;break}f=x,u=""}m=r.slice(o,o=n[g++]),s=Xt(n[g++],t.cm.options)}}else for(var I=1;In)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Dn(e,t,n,i){return An(e,jn(e,t),n,i)}function zn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((c.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,i){var r,o=Ln(t.map,n,i),c=o.node,l=o.start,u=o.end,h=o.collapse;if(3==c.nodeType){for(var d=0;d<4;d++){for(;l&&ie(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+u1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*i,bottom:t.bottom*i}}(e.display.measure,r))}else{var p;l>0&&(h=i="right"),r=e.options.lineWrapping&&(p=c.getClientRects()).length>1?p["right"==i?p.length-1:0]:c.getBoundingClientRect()}if(s&&a<9&&!l&&(!r||!r.left&&!r.right)){var f=c.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+ri(e.display),top:f.top,bottom:f.bottom}:Nn}for(var g=r.top-t.rect.top,m=r.bottom-t.rect.top,b=(g+m)/2,v=t.view.measure.heights,y=0;yt)&&(r=(o=c-a)-1,t>=c&&(s="right")),null!=r){if(i=e[l+2],a==c&&n==(i.insertLeft?"left":"right")&&(s=n),"left"==n&&0==r)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)i=e[2+(l-=3)],s="left";if("right"==n&&r==c-a)for(;l=0&&(n=e[r]).left==n.right;r--);return n}function Fn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=i.text.length?(c=i.text.length,l="before"):c<=0&&(c=0,l="after"),!a)return s("before"==l?c-1:c,"before"==l);function u(e,t,n){return s(n?e-1:e,1==a[t].level!=n)}var h=ae(a,c,l),d=se,p=u(c,h,"before"==l);return null!=d&&(p.other=u(c,d,"before"!=l)),p}function Qn(e,t){var n=0;t=at(e.doc,t),e.options.lineWrapping||(n=ri(e.display)*t.ch);var i=He(e.doc,t.line),r=Wt(i)+Cn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Kn(e,t,n,i,r){var o=et(e,t,n);return o.xRel=r,i&&(o.outside=i),o}function Xn(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return Kn(i.first,0,null,-1,-1);var r=Ye(i,n),o=i.first+i.size-1;if(r>o)return Kn(i.first+i.size-1,He(i,o).text.length,null,1,1);t<0&&(t=0);for(var s=He(i,r);;){var a=ei(e,s,r,t,n),c=Lt(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!c)return a;var l=c.find(1);if(l.line==r)return l;s=He(i,r=l.line)}}function Yn(e,t,n,i){i-=Wn(t);var r=t.text.length,o=oe(function(t){return An(e,n,t-1).bottom<=i},r,0);return{begin:o,end:r=oe(function(t){return An(e,n,t).top>i},o,r)}}function Jn(e,t,n,i){return n||(n=jn(e,t)),Yn(e,t,n,$n(e,t,An(e,n,i),"line").top)}function Zn(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function ei(e,t,n,i,r){r-=Wt(t);var o=jn(e,t),s=Wn(t),a=0,c=t.text.length,l=!0,u=le(t,e.doc.direction);if(u){var h=(e.options.lineWrapping?ni:ti)(e,t,n,o,u,i,r);a=(l=1!=h.level)?h.from:h.to-1,c=l?h.to:h.from-1}var d,p,f=null,g=null,m=oe(function(t){var n=An(e,o,t);return n.top+=s,n.bottom+=s,!!Zn(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=t,g=n),!0)},a,c),b=!1;if(g){var v=i-g.left=w.bottom?1:0}return Kn(n,m=re(t.text,m,1),p,b,i-d)}function ti(e,t,n,i,r,o,s){var a=oe(function(a){var c=r[a],l=1!=c.level;return Zn(qn(e,et(n,l?c.to:c.from,l?"before":"after"),"line",t,i),o,s,!0)},0,r.length-1),c=r[a];if(a>0){var l=1!=c.level,u=qn(e,et(n,l?c.from:c.to,l?"after":"before"),"line",t,i);Zn(u,o,s,!0)&&u.top>s&&(c=r[a-1])}return c}function ni(e,t,n,i,r,o,s){var a=Yn(e,t,i,s),c=a.begin,l=a.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,h=null,d=0;d=l||p.to<=c)){var f=An(e,i,1!=p.level?Math.min(l,p.to)-1:Math.max(c,p.from)).right,g=fg)&&(u=p,h=g)}}return u||(u=r[r.length-1]),u.froml&&(u={from:u.from,to:l,level:u.level}),u}function ii(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=I("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(I("br"));Rn.appendChild(document.createTextNode("x"))}k(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),x(e.measure),n||1}function ri(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=I("span","xxxxxxxxxx"),n=I("pre",[t],"CodeMirror-line-like");k(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function oi(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=e.display.gutterSpecs[s].className;n[a]=o.offsetLeft+o.clientLeft+r,i[a]=o.clientWidth}return{fixedPos:si(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function si(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ai(e){var t=ii(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/ri(e.display)-3);return function(r){if(Gt(e.doc,r))return 0;var o=0;if(r.widgets)for(var s=0;s0&&(c=He(e.doc,l.line).text).length==l.ch){var u=F(c,c.length,e.options.tabSize)-c.length;l=et(l.line,Math.max(0,Math.round((o-Sn(e.display).left)/ri(e.display))-u))}return l}function ui(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;it)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Ot&&Pt(e.doc,t)r.viewFrom?pi(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)pi(e);else if(t<=r.viewFrom){var o=fi(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):pi(e)}else if(n>=r.viewTo){var s=fi(e,t,t,-1);s?(r.view=r.view.slice(0,s.index),r.viewTo=s.lineN):pi(e)}else{var a=fi(e,t,t,-1),c=fi(e,n,n+i,1);a&&c?(r.view=r.view.slice(0,a.index).concat(on(e,a.lineN,c.lineN)).concat(r.view.slice(c.index)),r.viewTo+=i):pi(e)}var l=r.externalMeasured;l&&(n=r.lineN&&t=i.viewTo)){var o=i.view[ui(e,t)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==V(s,n)&&s.push(n)}}}function pi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function fi(e,t,n,i){var r,o=ui(e,t),s=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var a=e.display.viewFrom,c=0;c0){if(o==s.length-1)return null;r=a+s[o].size-t,o++}else r=a-t;t+=r,n+=r}for(;Pt(e.doc,n)!=n;){if(o==(i<0?0:s.length-1))return null;n+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function gi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo||a.to().linet||t==n&&s.to==t)&&(i(Math.max(s.from,t),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),r=!0)}r||i(t,n,"ltr")}(g,n||0,null==i?d:i,function(e,t,r,h){var m="ltr"==r,b=p(e,m?"left":"right"),v=p(t-1,m?"right":"left"),y=null==n&&0==e,w=null==i&&t==d,_=0==h,O=!g||h==g.length-1;if(v.top-b.top<=3){var C=(l?y:w)&&_?a:(m?b:v).left;u(C,b.top,((l?w:y)&&O?c:(m?v:b).right)-C,b.bottom)}else{var E,S,T,x;m?(E=l&&y&&_?a:b.left,S=l?c:f(e,r,"before"),T=l?a:f(t,r,"after"),x=l&&w&&O?c:v.right):(E=l?f(e,r,"before"):a,S=!l&&y&&_?c:b.right,T=!l&&w&&O?a:v.left,x=l?f(t,r,"after"):c),u(E,b.top,S-E,b.bottom),b.bottom0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Oi(e){e.state.focused||(e.display.input.focus(),Ei(e))}function Ci(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Si(e))},100)}function Ei(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(fe(e,"focus",e,t),e.state.focused=!0,A(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),_i(e))}function Si(e,t){e.state.delayingBlurEvent||(e.state.focused&&(fe(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ti(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=0;i.005||d<-.005)&&(Ke(r.line,c),xi(r.line),r.rest))for(var p=0;pe.display.sizerWidth){var f=Math.ceil(l/ri(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}}function xi(e){if(e.widgets)for(var t=0;t=s&&(o=Ye(t,Wt(He(t,c))-e.wrapper.clientHeight),s=c)}return{from:o,to:Math.max(s,o+1)}}function Ii(e,t){var n=e.display,i=ii(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=kn(e),s={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+En(n),c=t.bottom>a-i;if(t.topr+o){var l=Math.min(t.top,(c?a:t.bottom)-o);l!=r&&(s.scrollTop=l)}var u=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=xn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?s.scrollLeft=0:t.lefth+u-3&&(s.scrollLeft=t.right+(d?0:10)-h),s}function Di(e,t){null!=t&&(Ai(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function zi(e){Ai(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ji(e,t,n){null==t&&null==n||Ai(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ai(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Ri(e,Qn(e,t.from),Qn(e,t.to),t.margin))}function Ri(e,t,n,i){var r=Ii(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});ji(e,r.scrollLeft,r.scrollTop)}function Ni(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||cr(e,{top:t}),Li(e,t,!0),n&&cr(e),ir(e,100))}function Li(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Mi(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,hr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Fi(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+En(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Tn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Pi=function(e,t,n){this.cm=n;var i=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,e(i),e(r),he(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),he(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;return n?(this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0",this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+(e.viewHeight-(t?i:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),t?(this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+(e.viewWidth-e.barLeft-(n?i:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},Pi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Pi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Pi.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=v&&!p?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new P,this.disableVert=new P},Pi.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,i)})},Pi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Vi=function(){};function Gi(e,t){t||(t=Fi(e));var n=e.display.barWidth,i=e.display.barHeight;Bi(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&Ti(e),Bi(e,Fi(e)),n=e.display.barWidth,i=e.display.barHeight}function Bi(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Vi.prototype.update=function(){return{bottom:0,right:0}},Vi.prototype.setScrollLeft=function(){},Vi.prototype.setScrollTop=function(){},Vi.prototype.clear=function(){};var Wi={native:Pi,null:Vi};function $i(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Wi[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Mi(e,t):Ni(e,t)},e),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)}var Ui=0;function Hi(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ui},t=e.curOp,sn?sn.ops.push(t):t.ownsGroup=sn={ops:[t],delayedCallbacks:[]}}function qi(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new or(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ki(e){e.updatedDisplay=e.mustUpdate&&sr(e.cm,e.update)}function Xi(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ti(t),e.barMeasure=Fi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Dn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Tn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Yi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var o=I("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Cn(e.display))+"px;\n height: "+(t.bottom-t.top+Tn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,i){var r;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var s=!1,a=qn(e,t),c=n&&n!=t?qn(e,n):a,l=Ii(e,r={left:Math.min(a.left,c.left),top:Math.min(a.top,c.top)-i,right:Math.max(a.left,c.left),bottom:Math.max(a.bottom,c.bottom)+i}),u=e.doc.scrollTop,h=e.doc.scrollLeft;if(null!=l.scrollTop&&(Ni(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(s=!0)),null!=l.scrollLeft&&(Mi(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(s=!0)),!s)break}return r}(t,at(i,e.scrollToPos.from),at(i,e.scrollToPos.to),e.scrollToPos.margin));var r=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(r)for(var s=0;s=e.display.viewTo)){var n=+new Date+e.options.workTime,i=pt(e,t.highlightFrontier),r=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(i.line>=e.display.viewFrom){var s=o.styles,a=o.text.length>e.options.maxHighlightLength?Be(t.mode,i.state):null,c=ht(e,o,i,!0);a&&(i.state=a),o.styles=c.styles;var l=o.styleClasses,u=c.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var h=!s||s.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),d=0;!h&&dn)return ir(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),r.length&&Zi(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==gi(e))return!1;dr(e)&&(pi(e),t.dims=oi(e));var r=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),s=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFroms&&n.viewTo-s<20&&(s=Math.min(r,n.viewTo)),Ot&&(o=Pt(e.doc,o),s=Vt(e.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=on(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=on(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,ui(e,n)))),i.viewTo=n})(e,o,s),n.viewOffset=Wt(He(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=gi(e);if(!a&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=j();if(!t||!z(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&z(e.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}(e);return l>4&&(n.lineDiv.style.display="none"),function(e,t,n){var i=e.display,r=e.options.lineNumbers,o=i.lineDiv,s=o.firstChild;function a(t){var n=t.nextSibling;return c&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=i.view,u=i.viewFrom,h=0;h-1&&(p=!1),un(e,d,u,n)),p&&(x(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(Ze(e.options,u)))),s=d.node.nextSibling}else{var f=bn(e,d,u,n);o.insertBefore(f,s)}u+=d.size}for(;s;)s=a(s)}(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=j()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&z(document.body,e.anchorNode)&&z(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),x(n.cursorDiv),x(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ir(e,400)),n.updateLineNumbers=null,!0}function ar(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=xn(e))i&&(t.visible=ki(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+En(e.display)-kn(e),n.top)}),t.visible=ki(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!sr(e,t))break;Ti(e);var r=Fi(e);mi(e),Gi(e,r),ur(e,r),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function cr(e,t){var n=new or(e,t);if(sr(e,n)){Ti(e),ar(e,n);var i=Fi(e);mi(e),Gi(e,i),ur(e,i),n.finish()}}function lr(e){e.sizer.style.marginLeft=e.gutters.offsetWidth+"px"}function ur(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Tn(e)+"px"}function hr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=si(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",s=0;sa.clientHeight;if(r&&a.scrollWidth>a.clientWidth||o&&l){if(o&&v&&c)e:for(var u=t.target,d=s.view;u!=a;u=u.parentNode)for(var p=0;p=0&&tt(e,i.to())<=0)return n}return-1};var Cr=function(e,t){this.anchor=e,this.head=t};function Er(e,t,n){var i=e&&e.options.selectionsMayTouch,r=t[n];t.sort(function(e,t){return tt(e.from(),t.from())}),n=V(t,r);for(var o=1;o0:c>=0){var l=ot(a.from(),s.from()),u=rt(a.to(),s.to()),h=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new Cr(h?u:l,h?l:u))}}return new Or(t,n)}function Sr(e,t){return new Or([new Cr(e,t||e)],0)}function Tr(e){return e.text?et(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function xr(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Tr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=Tr(t).ch-t.to.ch),et(n,i)}function kr(e,t){for(var n=[],i=0;i1&&e.remove(a.line+1,f-1),e.insert(a.line+1,b)}cn(e,"change",e,t)}function Rr(e,t,n){!function e(i,r,o){if(i.linked)for(var s=0;sa-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Pr(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}(r,r.lastOp==i)))s=Q(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,s.to)?s.to=Tr(t):o.changes.push(Fr(e,t));else{var c=Q(r.done);for(c&&c.ranges||Gr(e.sel,r.done),o={changes:[Fr(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=a,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,s||fe(e,"historyAdded")}function Gr(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Br(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Wr(e){if(!e)return null;for(var t,n=0;n-1&&(Q(a)[h]=l[h],delete l[h])}}}return i}function Hr(e,t,n,i){if(i){var r=e.anchor;if(n){var o=tt(t,r)<0;o!=tt(n,r)<0?(r=t,t=n):o!=tt(t,n)<0&&(t=n)}return new Cr(r,t)}return new Cr(n||t,t)}function qr(e,t,n,i,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),Jr(e,new Or([Hr(e.sel.primary(),t,n,r)],0),i)}function Qr(e,t,n){for(var i=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(r&&(fe(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!c.atomic)continue;if(n){var h=c.find(i<0?1:-1),d=void 0;if((i<0?u:l)&&(h=oo(e,h,-i,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(d=tt(h,n))&&(i<0?d<0:d>0))return io(e,h,t,i,r)}var p=c.find(i<0?-1:1);return(i<0?l:u)&&(p=oo(e,p,i,p.line==t.line?o:null)),p?io(e,p,t,i,r):null}}return t}function ro(e,t,n,i,r){var o=i||1;return io(e,t,n,o,r)||!r&&io(e,t,n,o,!0)||io(e,t,n,-o,r)||!r&&io(e,t,n,-o,!0)||(e.cantEdit=!0,et(e.first,0))}function oo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?at(e,et(t.line-1)):null:n>0&&t.ch==(i||He(e,t.line)).text.length?t.line0)){var u=[c,1],h=tt(l.from,a.from),d=tt(l.to,a.to);(h<0||!s.inclusiveLeft&&!h)&&u.push({from:l.from,to:a.from}),(d>0||!s.inclusiveRight&&!d)&&u.push({from:a.to,to:l.to}),r.splice.apply(r,u),c+=u.length-3}}return r}(e,t.from,t.to);if(i)for(var r=i.length-1;r>=0;--r)lo(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else lo(e,t)}}function lo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=kr(e,t);Vr(e,t,n,e.cm?e.cm.curOp.id:NaN),po(e,t,n,Tt(e,t));var i=[];Rr(e,function(e,n){n||-1!=V(i,e.history)||(bo(e.history,t),i.push(e.history)),po(e,t,null,Tt(e,t))})}}function uo(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var r,o=e.history,s=e.sel,a="undo"==t?o.done:o.undone,c="undo"==t?o.undone:o.done,l=0;l=0;--p){var f=d(p);if(f)return f.v}}}}function ho(e,t){if(0!=t&&(e.first+=t,e.sel=new Or(K(e.sel.ranges,function(e){return new Cr(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){hi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,He(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=qe(e,t.from,t.to),n||(n=kr(e,t)),e.cm?function(e,t,n){var i=e.doc,r=e.display,o=t.from,s=t.to,a=!1,c=o.line;e.options.lineWrapping||(c=Xe(Ft(He(i,o.line))),i.iter(c,s.line+1,function(e){if(e==r.maxLine)return a=!0,!0})),i.sel.contains(t.from,t.to)>-1&&me(e),Ar(i,t,n,ai(e)),e.options.lineWrapping||(i.iter(c,o.line+t.text.length,function(e){var t=$t(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;i--){var r=He(e,i).stateAfter;if(r&&(!(r instanceof lt)||i+r.lookAhead1||!(this.children[0]instanceof yo))){var a=[];this.collapse(a),this.children=[new yo(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var s=r.lines.length%25+25,a=s;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Mt(e,t.line,t,n,o)||t.line!=n.line&&Mt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ot=!0}o.addToHistory&&Vr(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a,c=t.line,l=e.cm;if(e.iter(c,n.line+1,function(e){l&&o.collapsed&&!l.options.lineWrapping&&Ft(e)==l.display.maxLine&&(a=!0),o.collapsed&&c!=t.line&&Ke(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Ct(o,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Gt(e,t)&&Ke(t,0)}),o.clearOnEnter&&he(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(_t=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Co,o.atomic=!0),l){if(a&&(l.curOp.updateMaxLine=!0),o.collapsed)hi(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)di(l,u,"text");o.atomic&&to(l.doc),cn(l,"markerAdded",l,o)}return o}Eo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Hi(e),be(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&hi(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&to(e.doc)),e&&cn(e,"markerCleared",e,this,i,r),t&&qi(e),this.parent&&this.parent.clear()}},Eo.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r=0;c--)co(this,i[c]);a?Yr(this,a):this.cm&&zi(this.cm)}),undo:nr(function(){uo(this,"undo")}),redo:nr(function(){uo(this,"redo")}),undoSelection:nr(function(){uo(this,"undo",!0)}),redoSelection:nr(function(){uo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=at(this,e),t=at(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a=c.to||null==c.from&&r!=e.line||null!=c.from&&r==t.line&&c.from>=t.ch||n&&!n(c.marker)||i.push(c.marker.parent||c.marker)}++r}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;ie)return t=e,!0;e-=o,++n}),at(this,et(n,t))},indexFromPos:function(e){var t=(e=at(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var h=e.dataTransfer.getData("Text");if(h){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Zr(t.doc,Sr(n,n)),d)for(var p=0;p=0;t--)fo(e.doc,"",i[t].from,i[t].to,"+delete");zi(e)})}function Xo(e,t,n){var i=re(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Yo(e,t,n){var i=Xo(e,t.ch,n);return null==i?null:new et(t.line,i,n<0?"after":"before")}function Jo(e,t,n,i,r){if(e){"rtl"==t.doc.direction&&(r=-r);var o=le(n,t.doc.direction);if(o){var s,a=r<0?Q(o):o[0],c=r<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var l=jn(t,n),u=An(t,l,s=r<0?n.text.length-1:0).top;s=oe(function(e){return An(t,l,e).top==u},r<0==(1==a.level)?a.from:a.to-1,s),"before"==c&&(s=Xo(n,s,1))}else s=r<0?a.to:a.from;return new et(i,s,c)}}return new et(i,r<0?n.text.length:0,r<0?"before":"after")}Go.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Go.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Go.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Go.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Go.default=v?Go.macDefault:Go.pcDefault;var Zo={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),B)},killLine:function(e){return Ko(e,function(t){if(t.empty()){var n=He(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)r=new et(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),et(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var s=He(e.doc,r.line-1).text;s&&(r=new et(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+s.charAt(s.length-1),et(r.line-1,s.length-1),r,"+transpose"))}n.push(new Cr(r,r))}e.setSelections(n)})},newlineAndIndent:function(e){return Zi(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i-1&&(tt((r=l.ranges[r]).from(),t)<0||t.xRel>0)&&(tt(r.to(),t)>0||t.xRel<0)?function(e,t,n,i){var r=e.display,o=!1,l=er(e,function(t){c&&(r.scroller.draggable=!1),e.state.draggingText=!1,pe(r.wrapper.ownerDocument,"mouseup",l),pe(r.wrapper.ownerDocument,"mousemove",u),pe(r.scroller,"dragstart",h),pe(r.scroller,"drop",l),o||(ye(t),i.addNew||qr(e.doc,n,null,null,i.extend),c&&!d||s&&9==a?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},h=function(){return o=!0};c&&(r.scroller.draggable=!0),e.state.draggingText=l,l.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),he(r.wrapper.ownerDocument,"mouseup",l),he(r.wrapper.ownerDocument,"mousemove",u),he(r.scroller,"dragstart",h),he(r.scroller,"drop",l),Ci(e),setTimeout(function(){return r.input.focus()},20)}(e,i,t,o):function(e,t,n,i){var r=e.display,o=e.doc;ye(t);var s,a,c=o.sel,l=c.ranges;if(i.addNew&&!i.extend?(a=o.sel.contains(n),s=a>-1?l[a]:new Cr(n,n)):(s=o.sel.primary(),a=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(s=new Cr(n,n)),n=li(e,t,!0,!0),a=-1;else{var u=gs(e,n,i.unit);s=i.extend?Hr(s,u.anchor,u.head,i.extend):u}i.addNew?-1==a?(a=l.length,Jr(o,Er(e,l.concat([s]),a),{scroll:!1,origin:"*mouse"})):l.length>1&&l[a].empty()&&"char"==i.unit&&!i.extend?(Jr(o,Er(e,l.slice(0,a).concat(l.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Kr(o,a,s,W):(a=0,Jr(o,new Or([s],0),W),c=o.sel);var h=n;var d=r.wrapper.getBoundingClientRect(),p=0;function f(t){var l=++p,u=li(e,t,!0,"rectangle"==i.unit);if(u)if(0!=tt(u,h)){e.curOp.focus=j(),function(t){if(0!=tt(h,t))if(h=t,"rectangle"==i.unit){for(var r=[],l=e.options.tabSize,u=F(He(o,n.line).text,n.ch,l),d=F(He(o,t.line).text,t.ch,l),p=Math.min(u,d),f=Math.max(u,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var b=He(o,g).text,v=U(b,p,l);p==f?r.push(new Cr(et(g,v),et(g,v))):b.length>v&&r.push(new Cr(et(g,v),et(g,U(b,f,l))))}r.length||r.push(new Cr(n,n)),Jr(o,Er(e,c.ranges.slice(0,a).concat(r),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,w=s,_=gs(e,t,i.unit),O=w.anchor;tt(_.anchor,O)>0?(y=_.head,O=ot(w.from(),_.anchor)):(y=_.anchor,O=rt(w.to(),_.head));var C=c.ranges.slice(0);C[a]=function(e,t){var n=t.anchor,i=t.head,r=He(e.doc,n.line);if(0==tt(n,i)&&n.sticky==i.sticky)return t;var o=le(r);if(!o)return t;var s=ae(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return t;var c,l=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==l||l==o.length)return t;if(i.line!=n.line)c=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ae(o,i.ch,i.sticky),h=u-s||(i.ch-n.ch)*(1==a.level?-1:1);c=u==l-1||u==l?h<0:h>0}var d=o[l+(c?-1:0)],p=c==(1==d.level),f=p?d.from:d.to,g=p?"after":"before";return n.ch==f&&n.sticky==g?t:new Cr(new et(n.line,f,g),i)}(e,new Cr(at(o,O),y)),Jr(o,Er(e,C,a),W)}}(u);var g=ki(r,o);(u.line>=g.to||u.lined.bottom?20:0;m&&setTimeout(er(e,function(){p==l&&(r.scroller.scrollTop+=m,f(t))}),50)}}function g(t){e.state.selectingText=!1,p=1/0,t&&(ye(t),r.input.focus()),pe(r.wrapper.ownerDocument,"mousemove",m),pe(r.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var m=er(e,function(e){0!==e.buttons&&Ee(e)?f(e):g(e)}),b=er(e,g);e.state.selectingText=b,he(r.wrapper.ownerDocument,"mousemove",m),he(r.wrapper.ownerDocument,"mouseup",b)}(e,i,t,o)}(t,i,o,e):Ce(e)==n.scroller&&ye(e):2==r?(i&&qr(t.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(C?t.display.input.onContextMenu(e):Ci(t)))}}function gs(e,t,n){if("char"==n)return new Cr(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Cr(et(t.line,0),at(e.doc,et(t.line+1,0)));var i=n(e,t);return new Cr(i.from,i.to)}function ms(e,t,n,i){var r,o;if(t.touches)r=t.touches[0].clientX,o=t.touches[0].clientY;else try{r=t.clientX,o=t.clientY}catch(t){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&ye(t);var s=e.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!be(e,n))return _e(t);o-=a.top-s.viewOffset;for(var c=0;c=r)return fe(e,n,e,Ye(e.doc,o),e.display.gutterSpecs[c].className,t),_e(t)}}function bs(e,t){return ms(e,t,"gutterClick",!0)}function vs(e,t){On(e.display,t)||function(e,t){return!!be(e,"gutterContextMenu")&&ms(e,t,"gutterContextMenu",!1)}(e,t)||ge(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function ys(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Vn(e)}ps.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var ws={toString:function(){return"CodeMirror.Init"}},_s={},Os={};function Cs(e,t,n){if(!t!=!(n&&n!=ws)){var i=e.display.dragFunctions,r=t?he:pe;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function Es(e){e.options.lineWrapping?(A(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),Ut(e)),ci(e),hi(e),Vn(e),setTimeout(function(){return Gi(e)},100)}function Ss(e,t){var n=this;if(!(this instanceof Ss))return new Ss(e,t);this.options=t=t?M(t):{},M(_s,t,!1);var i=t.value;"string"==typeof i?i=new Do(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var r=new Ss.inputStyles[t.inputStyle](this),o=this.display=new mr(e,i,r,t);for(var l in o.wrapper.CodeMirror=this,ys(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),$i(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new P,keySeq:null,specialChars:null},t.autofocus&&!b&&o.input.focus(),s&&a<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;he(t.scroller,"mousedown",er(e,fs)),he(t.scroller,"dblclick",s&&a<11?er(e,function(t){if(!ge(e,t)){var n=li(e,t);if(n&&!bs(e,t)&&!On(e.display,t)){ye(t);var i=e.findWordAt(n);qr(e.doc,i.anchor,i.head)}}}):function(t){return ge(e,t)||ye(t)}),he(t.scroller,"contextmenu",function(t){return vs(e,t)}),he(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||vs(e,n)});var n,i={end:0};function r(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(i=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,i=t.top-e.top;return n*n+i*i>400}he(t.scroller,"touchstart",function(r){if(!ge(e,r)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(r)&&!bs(e,r)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}}),he(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),he(t.scroller,"touchend",function(n){var i=t.activeTouch;if(i&&!On(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var s,a=e.coordsChar(t.activeTouch,"page");s=!i.prev||o(i,i.prev)?new Cr(a,a):!i.prev.prev||o(i,i.prev.prev)?e.findWordAt(a):new Cr(et(a.line,0),at(e.doc,et(a.line+1,0))),e.setSelection(s.anchor,s.head),e.focus(),ye(n)}r()}),he(t.scroller,"touchcancel",r),he(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ni(e,t.scroller.scrollTop),Mi(e,t.scroller.scrollLeft,!0),fe(e,"scroll",e))}),he(t.scroller,"mousewheel",function(t){return _r(e,t)}),he(t.scroller,"DOMMouseScroll",function(t){return _r(e,t)}),he(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){ge(e,t)||Oe(t)},over:function(t){ge(e,t)||(function(e,t){var n=li(e,t);if(n){var i=document.createDocumentFragment();vi(e,n,i),e.display.dragCursor||(e.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),k(e.display.dragCursor,i)}}(e,t),Oe(t))},start:function(t){return function(e,t){if(s&&(!e.state.draggingText||+new Date-zo<100))Oe(t);else if(!ge(e,t)&&!On(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=I("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}(e,t)},drop:er(e,jo),leave:function(t){ge(e,t)||Ao(e)}};var c=t.input.getField();he(c,"keyup",function(t){return ls.call(e,t)}),he(c,"keydown",er(e,cs)),he(c,"keypress",er(e,us)),he(c,"focus",function(t){return Ei(e,t)}),he(c,"blur",function(t){return Si(e,t)})}(this),function(){var e;No||(he(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Ro(Lo)},100))}),he(window,"blur",function(){return Ro(Si)}),No=!0)}(),Hi(this),this.curOp.forceUpdate=!0,Nr(this,i),t.autofocus&&!b||this.hasFocus()?setTimeout(L(Ei,this),20):Si(this),Os)Os.hasOwnProperty(l)&&Os[l](this,t[l],ws);dr(this),t.finishInit&&t.finishInit(this);for(var u=0;u150)){if(!i)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?F(He(o,t-1).text,null,s):0:"add"==n?l=c+e.options.indentUnit:"subtract"==n?l=c-e.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var h="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(l/s);p;--p)d+=s,h+="\t";if(ds,c=ze(t),l=null;if(a&&i.ranges.length>1)if(ks&&ks.text.join("\n")==t){if(i.ranges.length%ks.text.length==0){l=[];for(var u=0;u=0;d--){var p=i.ranges[d],f=p.from(),g=p.to();p.empty()&&(n&&n>0?f=et(f.line,f.ch-n):e.state.overwrite&&!a?g=et(g.line,Math.min(He(o,g.line).text.length,g.ch+Q(c).length)):a&&ks&&ks.lineWise&&ks.text.join("\n")==t&&(f=g=et(f.line,0)));var m={from:f,to:g,text:l?l[d%l.length]:c,origin:r||(a?"paste":e.state.cutIncoming>s?"cut":"+input")};co(e.doc,m),cn(e,"inputRead",e,m)}t&&!a&&js(e,t),zi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function zs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zi(t,function(){return Ds(t,n,0,null,"paste")}),!0}function js(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),s=!1;if(o.electricChars){for(var a=0;a-1){s=xs(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(He(e.doc,r.head.line).text.slice(0,r.head.ch))&&(s=xs(e,r.head.line,"smart"));s&&cn(e,"electricInput",e,r.head.line)}}}function As(e){for(var t=[],n=[],i=0;i=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ae(r,n.ch,n.sticky),s=r[o];if("ltr"==e.doc.direction&&s.level%2==0&&(i>0?s.to>n.ch:s.from=s.from&&d>=u.begin))return new et(n.line,d,h?"before":"after")}var p=function(e,t,i){for(var o=function(e,t){return t?new et(n.line,c(e,1),"before"):new et(n.line,e,"after")};e>=0&&e0==(1!=s.level),l=a?i.begin:c(i.end,-1);if(s.from<=l&&l0?u.end:c(u.begin,-1);return null==g||i>0&&g==t.text.length||!(f=p(i>0?0:r.length-1,i,l(g)))?null:f}(e.cm,a,t,n):Yo(a,t,n))){if(i||(s=t.line+c)=e.first+e.size||(t=new et(s,t.ch,t.sticky),!(a=He(e,s))))return!1;t=Jo(r,e.cm,a,t.line,c)}else t=o;return!0}if("char"==i)l();else if("column"==i)l(!0);else if("word"==i||"group"==i)for(var u=null,h="group"==i,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||l(!p);p=!1){var f=a.text.charAt(t.ch)||"\n",g=ee(f,d)?"w":h&&"\n"==f?"n":!h||/\s/.test(f)?null:"p";if(!h||p||g||(g="s"),u&&u!=g){n<0&&(n=1,l(),t.sticky="after");break}if(g&&(u=g),n>0&&!l(!p))break}var m=ro(e,t,o,s,!0);return nt(o,m)&&(m.hitSide=!0),m}function Ms(e,t,n,i){var r,o,s=e.doc,a=t.left;if("page"==i){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*ii(e.display),3);r=(n>0?t.bottom:t.top)+n*l}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(;(o=Xn(e,a,r)).outside;){if(n<0?r<=0:r>=s.height){o.hitSide=!0;break}r+=5*n}return o}var Fs=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new P,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ps(e,t){var n=zn(e,t.line);if(!n||n.hidden)return null;var i=He(e.doc,t.line),r=In(n,i,t.line),o=le(i,e.doc.direction),s="left";o&&(s=ae(o,t.ch)%2?"right":"left");var a=Ln(r.map,t.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Vs(e,t){return t&&(e.bad=!0),e}function Gs(e,t,n){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[n]))return Vs(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var r=0;r=t.display.viewTo||o.line=t.display.viewFrom&&Ps(t,r)||{node:c[0].measure.map[2],offset:0},u=o.linei.firstLine()&&(s=et(s.line-1,He(i.doc,s.line-1).length)),a.ch==He(i.doc,a.line).text.length&&a.liner.viewTo-1)return!1;s.line==r.viewFrom||0==(e=ui(i,s.line))?(t=Xe(r.view[0].line),n=r.view[0].node):(t=Xe(r.view[e].line),n=r.view[e-1].node.nextSibling);var c,l,u=ui(i,a.line);if(u==r.view.length-1?(c=r.viewTo-1,l=r.lineDiv.lastChild):(c=Xe(r.view[u+1].line)-1,l=r.view[u+1].node.previousSibling),!n)return!1;for(var h=i.doc.splitLines(function(e,t,n,i,r){var o="",s=!1,a=e.doc.lineSeparator(),c=!1;function l(){s&&(o+=a,c&&(o+=a),s=c=!1)}function u(e){e&&(l(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(et(i,0),et(r+1,0),(m=+d,function(e){return e.id==m}));return void(p.length&&(o=p[0].find(0))&&u(qe(e.doc,o.from,o.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;f&&l();for(var g=0;g1&&d.length>1;)if(Q(h)==Q(d))h.pop(),d.pop(),c--;else{if(h[0]!=d[0])break;h.shift(),d.shift(),t++}for(var p=0,f=0,g=h[0],m=d[0],b=Math.min(g.length,m.length);ps.ch&&v.charCodeAt(v.length-f-1)==y.charCodeAt(y.length-f-1);)p--,f++;h[h.length-1]=v.slice(0,v.length-f).replace(/^\u200b+/,""),h[0]=h[0].slice(p).replace(/\u200b+$/,"");var _=et(t,p),O=et(c,d.length?Q(d).length-f:0);return h.length>1||h[0]||tt(_,O)?(fo(i.doc,h,_,O,"+input"),!0):void 0},Fs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fs.prototype.reset=function(){this.forceCompositionEnd()},Fs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Fs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Zi(this.cm,function(){return hi(e.cm)})},Fs.prototype.setUneditable=function(e){e.contentEditable="false"},Fs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||er(this.cm,Ds)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Fs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Fs.prototype.onContextMenu=function(){},Fs.prototype.resetPosition=function(){},Fs.prototype.needsContentAttribute=!0;var Ws=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new P,this.hasSelection=!1,this.composing=null};Ws.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var r=this.textarea;function o(e){if(!ge(i,e)){if(i.somethingSelected())Is({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=As(i);Is({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,B):(n.prevInput="",r.value=t.text.join("\n"),N(r))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(r.style.width="0px"),he(r,"input",function(){s&&a>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),he(r,"paste",function(e){ge(i,e)||zs(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())}),he(r,"cut",o),he(r,"copy",o),he(e.scroller,"paste",function(t){if(!On(e,t)&&!ge(i,t)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,r.dispatchEvent(o)}}),he(e.lineSpace,"selectstart",function(t){On(e,t)||ye(t)}),he(r,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),he(r,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ws.prototype.createField=function(e){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},Ws.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ws.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=bi(e);if(e.options.moveInputWithCursor){var r=qn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),s=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+s.left-o.left))}return i},Ws.prototype.showSelection=function(e){var t=this.cm.display;k(t.cursorDiv,e.cursors),k(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ws.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&N(this.textarea),s&&a>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},Ws.prototype.getField=function(){return this.textarea},Ws.prototype.supportsTouch=function(){return!1},Ws.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||j()!=this.textarea))try{this.textarea.focus()}catch(De){}},Ws.prototype.blur=function(){this.textarea.blur()},Ws.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ws.prototype.receivedFocus=function(){this.slowPoll()},Ws.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ws.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Ws.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===r||v&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(i.length,r.length);c1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ws.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ws.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},Ws.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=li(n,e),l=i.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&er(n,Jr)(n.doc,Sr(o),B);var u,d=r.style.cssText,p=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),i.input.focus(),c&&window.scrollTo(null,u),i.input.reset(),n.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=b,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),s&&a>=9&&m(),C){Oe(e);var g=function(){pe(window,"mouseup",g),setTimeout(b,20)};he(window,"mouseup",g)}else setTimeout(b,50)}function m(){if(null!=r.selectionStart){var e=n.somethingSelected(),o="\u200b"+(e?r.value:"");r.value="\u21da",r.value=o,t.prevInput=e?"":"\u200b",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function b(){if(t.contextMenuPending==b&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,r.style.cssText=d,s&&a<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=l),null!=r.selectionStart)){(!s||s&&a<9)&&m();var e=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"\u200b"==t.prevInput?er(n,so)(n):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},Ws.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ws.prototype.setUneditable=function(){},Ws.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,i,r,o){e.defaults[n]=i,r&&(t[n]=o?function(e,t,n){n!=ws&&r(e,t,n)}:r)}e.defineOption=n,e.Init=ws,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Dr(e)},!0),n("indentUnit",2,Dr,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){zr(e),Vn(e),hi(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(et(i,o))}i++});for(var r=n.length-1;r>=0;r--)fo(e.doc,t,n[r],et(n[r].line,n[r].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=ws&&e.refresh()}),n("specialCharPlaceholder",Jt,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",b?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ys(e),gr(e)},!0),n("keyMap","default",function(e,t,n){var i=Qo(t),r=n!=ws&&Qo(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Es,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=pr(t,e.options.lineNumbers),gr(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?si(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Gi(e)},!0),n("scrollbarStyle","native",function(e){$i(e),Gi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=pr(e.options.gutters,t),gr(e)},!0),n("firstLineNumber",1,gr,!0),n("lineNumberFormatter",function(e){return e},gr,!0),n("showCursorWhenSelecting",!1,mi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Si(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){e.display.input.screenReaderLabelChanged(t=""===t?null:t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Cs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,mi,!0),n("singleCursorHeightPerLine",!0,mi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,zr,!0),n("addModeClass",!1,zr,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,zr,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Ss),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var i=this.options,r=i[e];i[e]==n&&"mode"!=e||(i[e]=n,t.hasOwnProperty(e)&&er(this,t[e])(this,n,r),fe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Qo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(xs(this,r.head.line,e,!0),n=r.head.line,i==this.doc.sel.primIndex&&zi(this));else{var o=r.from(),s=r.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var c=a;c0&&Kr(this.doc,i,new Cr(o,l[i].to()),B)}}}),getTokenAt:function(e,t){return vt(this,e,t)},getLineTokens:function(e,t){return vt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=at(this.doc,e);var t,n=dt(this,He(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var s=i+r>>1;if((s?n[2*s-1]:0)>=o)r=s;else{if(!(n[2*s+1]o&&(e=o,r=!0),i=He(this.doc,e)}else i=e;return $n(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-Wt(i):0)},defaultTextHeight:function(){return ii(this.display)},defaultCharWidth:function(){return ri(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o,s=this.display,a=(e=qn(this,at(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var l=Math.max(s.wrapper.clientHeight,this.doc.height),u=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),c+t.offsetWidth>u&&(c=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(c=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?c=0:"middle"==r&&(c=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(null!=(o=Ii(this,{left:c,top:a,right:c+t.offsetWidth,bottom:a+t.offsetHeight})).scrollTop&&Ni(this,o.scrollTop),null!=o.scrollLeft&&Mi(this,o.scrollLeft))},triggerOnKeyDown:tr(cs),triggerOnKeyPress:tr(us),triggerOnKeyUp:ls,triggerOnMouseDown:tr(fs),execCommand:function(e){if(Zo.hasOwnProperty(e))return Zo[e].call(null,this)},triggerElectric:tr(function(e){js(this,e)}),findPosH:function(e,t,n,i){var r=1;t<0&&(r=-1,t=-t);for(var o=at(this.doc,e),s=0;s0&&s(t.charAt(n-1));)--n;for(;i.5||this.options.lineWrapping)&&ci(this),fe(this,"refresh",this)}),swapDoc:tr(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Nr(this,e),Vn(this),this.display.input.reset(),ji(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ve(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}(Ss);var $s="iter insert remove copy getEditor constructor".split(" ");for(var Us in Do.prototype)Do.prototype.hasOwnProperty(Us)&&V($s,Us)<0&&(Ss.prototype[Us]=function(e){return function(){return e.apply(this.doc,arguments)}}(Do.prototype[Us]));return ve(Do),Ss.inputStyles={textarea:Ws,contenteditable:Fs},Ss.defineMode=function(e){Ss.defaults.mode||"null"==e||(Ss.defaults.mode=e),Me.apply(this,arguments)},Ss.defineMIME=function(e,t){Le[e]=t},Ss.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ss.defineMIME("text/plain","null"),Ss.defineExtension=function(e,t){Ss.prototype[e]=t},Ss.defineDocExtension=function(e,t){Do.prototype[e]=t},Ss.fromTextArea=function(e,t){if((t=t?M(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=j();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=a.getValue()}var r;if(e.form&&(he(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var s=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=s}}catch(De){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var a=Ss(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},function(e){e.off=pe,e.on=he,e.wheelEventPixels=wr,e.Doc=Do,e.splitLines=ze,e.countColumn=F,e.findColumn=U,e.isWordChar=Z,e.Pass=G,e.signal=fe,e.Line=Ht,e.changeEnd=Tr,e.scrollbarModel=Wi,e.Pos=et,e.cmpPos=tt,e.modes=Ne,e.mimeModes=Le,e.resolveMode=Fe,e.getMode=Pe,e.modeExtensions=Ve,e.extendMode=Ge,e.copyState=Be,e.startState=$e,e.innerMode=We,e.commands=Zo,e.keyMap=Go,e.keyName=qo,e.isModifierKey=Uo,e.lookupKey=$o,e.normalizeKeyMap=Wo,e.StringStream=Ue,e.SharedTextMarker=To,e.TextMarker=Eo,e.LineWidget=_o,e.e_preventDefault=ye,e.e_stopPropagation=we,e.e_stop=Oe,e.addClass=A,e.contains=z,e.rmClass=T,e.keyNames=Mo}(Ss),Ss.version="5.54.0",Ss}()},VsQa:function(e,t,n){"use strict";e.exports=function(e){return e!=e}},Vuqn:function(e,t,n){"use strict";n.d(t,"a",function(){return p}),n.d(t,"b",function(){return f});var i=n("rWdj"),r=n("kBjl"),o=n("dWS+"),s=n("/jXB"),a=n("dQau"),c=n("4suF"),l=n("axIb");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t,n){return'Directive "@'.concat(e,'" argument "').concat(t,'" of type "').concat(n,'" is required, but it was not provided.')}function p(e){return function(e){for(var t=1;ti.parseCurl(...e),o=e=>`-H '${e.key}: ${e.value}'`,s=e=>{const t={"Accept-Encoding":"gzip, deflate, br","Content-Type":"application/json",Accept:"application/json",Connection:"keep-alive",Origin:location.origin},n=e.method||"POST",i={...t,...e.headers},r=Object.keys(i).filter(e=>!!e).map(e=>({key:e,value:i[e]})).map(o).join(" "),s=[`'${"GET"===n?((e,t)=>{const n=encodeURIComponent;if(t){const i=Object.keys(t).map(e=>n(e)+"="+n("string"==typeof t[e]?t[e]:JSON.stringify(t[e]))).join("&");return e.includes("?")?`${e}&${i}`:`${e}?${i}`}return e})(e.url,e.data):e.url}'`];if(["GET","POST"].includes(n)||s.push(`-X ${n}`),s.push(`${r}`),"GET"!==n){const t=`--data-binary '${JSON.stringify(e.data)}'`;s.push(t)}return`curl ${s.join(" ")} --compressed`}},WMd4:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("EY2u"),r=n("LRne"),o=n("z6cu");let s=(()=>{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 Object(r.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(i.b)()}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})()},WXJZ:function(e,t,n){"use strict";function i(e,t,n){return e.reduce(function(e,i){return e[t(i)]=n(i),e},Object.create(null))}n.d(t,"a",function(){return i})},Wbsq:function(e,t,n){"use strict";var i=n("86bp"),r=n("Zq5j"),o=n("H6OF");e.exports=function(e){var t,s=i(arguments[1]);return s.normalizer||0!==(t=s.length=r(s.length,e.length,s.async))&&(s.primitive?!1===t?s.normalizer=n("xeyX"):t>1&&(s.normalizer=n("YTm4")(t)):s.normalizer=!1===t?n("zdgv")():1===t?n("Q5MM")():n("ftEH")(t)),s.async&&n("SbUo"),s.promise&&n("96uS"),s.dispose&&n("Rk3w"),s.maxAge&&n("qhZs"),s.max&&n("0dpv"),s.refCounter&&n("8j7D"),o(e,s)}},Wlyd:function(e,t,n){"use strict";var i=Array.prototype.forEach,r=Object.create;e.exports=function(e){var t=r(null);return i.call(arguments,function(e){t[e]=!0}),t}},Wzjs:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("Y/la");function r(e,t){for(var n=Object.create(null),r=0,o=Object(i.a)(e);rt.lift(new s(e))}class s{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new a(e,this.errorFactory))}}class a extends r.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function c(){return new i.a}},XH0y:function(e,t,n){var i,r;!function(o,s){"use strict";void 0===(r="function"==typeof(i=function(){var e=function(){},t="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function i(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(i){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(n){return"debug"===n&&(n="log"),"undefined"!=typeof console&&("trace"===n&&t?r:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):e)}function s(t,i){for(var r=0;r=0&&t<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(r=t,!1!==i&&function(e){var t=(n[e]||"silent").toUpperCase();if("undefined"!=typeof window&&a){try{return void(window.localStorage[a]=t)}catch(i){}try{window.document.cookie=encodeURIComponent(a)+"="+t+";"}catch(i){}}}(t),s.call(o,t,e),"undefined"==typeof console&&t{class e extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(e){const t=new h(this,this);return t.operator=e,t}next(e){if(this.closed)throw new s.a;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let r=0;rnew h(e,t),e})();class h extends u{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):o.a.EMPTY}}},XYXw:function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return y});var i=n("PXbX"),r=n("1QEH"),o=n("rWdj"),s=n("2C6G"),a=n("dQau"),c=n("BLR7"),l=n("LViu"),u=n("19Hc"),h=n("4suF"),d=n("axIb"),p=n("3HNt");function f(e,t){return b(e,function(e){return!Object(h.h)(e)},m,t)}function g(e,t){return b(e,h.h,l.isIntrospectionType,t)}function m(e){return!Object(u.f)(e)&&!Object(l.isIntrospectionType)(e)}function b(e,t,n,i){var o=e.getDirectives().filter(t),s=e.getTypeMap(),a=Object(r.a)(s).sort(function(e,t){return e.name.localeCompare(t.name)}).filter(n);return[v(e)].concat(o.map(function(e){return function(e,t){return S(t,e)+"directive @"+e.name+O(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,i)}),a.map(function(e){return y(e,i)})).filter(Boolean).join("\n\n")+"\n"}function v(e){if(!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var i=e.getSubscriptionType();return!i||"Subscription"===i.name}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var i=e.getMutationType();i&&t.push(" mutation: ".concat(i.name));var r=e.getSubscriptionType();return r&&t.push(" subscription: ".concat(r.name)),"schema {\n".concat(t.join("\n"),"\n}")}}function y(e,t){return Object(d.R)(e)?function(e,t){return S(t,e)+"scalar ".concat(e.name)}(e,t):Object(d.N)(e)?function(e,t){var n=e.getInterfaces(),i=n.length?" implements "+n.map(function(e){return e.name}).join(" & "):"";return S(t,e)+"type ".concat(e.name).concat(i)+w(t,e)}(e,t):Object(d.H)(e)?function(e,t){return S(t,e)+"interface ".concat(e.name)+w(t,e)}(e,t):Object(d.T)(e)?function(e,t){var n=e.getTypes(),i=n.length?" = "+n.join(" | "):"";return S(t,e)+"union "+e.name+i}(e,t):Object(d.E)(e)?function(e,t){var n=e.getValues().map(function(e,n){return S(t,e," ",!n)+" "+e.name+E(e)});return S(t,e)+"enum ".concat(e.name)+_(n)}(e,t):Object(d.F)(e)?function(e,t){var n=Object(r.a)(e.getFields()).map(function(e,n){return S(t,e," ",!n)+" "+C(e)});return S(t,e)+"input ".concat(e.name)+_(n)}(e,t):void Object(s.a)(!1,"Unexpected type: "+Object(o.a)(e))}function w(e,t){return _(Object(r.a)(t.getFields()).map(function(t,n){return S(e,t," ",!n)+" "+t.name+O(e,t.args," ")+": "+String(t.type)+E(t)}))}function _(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every(function(e){return!e.description})?"("+t.map(C).join(", ")+")":"(\n"+t.map(function(t,i){return S(e,t," "+n,!i)+" "+n+C(t)}).join("\n")+"\n"+n+")"}function C(e){var t=Object(p.a)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Object(a.print)(t))),n}function E(e){if(!e.isDeprecated)return"";var t=e.deprecationReason,n=Object(p.a)(t,u.e);return n&&""!==t&&t!==h.a?" @deprecated(reason: "+Object(a.print)(n)+")":" @deprecated"}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.description)return"";var r=x(t.description,120-n.length);if(e&&e.commentDescriptions)return T(r,n,i);var o=r.join("\n"),s=o.length>70,a=Object(c.c)(o,"",s),l=n&&!i?"\n"+n:n;return l+a.replace(/\n/g,"\n"+n)+"\n"}function T(e,t,n){for(var i=t&&!n?"\n":"",r=0;r{class e{constructor(e){this.store=e,this.store.subscribe({next:e=>{this.environmentsState=e.environments}})}getActiveEnvironment(){let e={},t={};try{e=JSON.parse(this.environmentsState.base.variablesJson)}catch(n){}if(this.environmentsState.activeSubEnvironment){const e=this.environmentsState.subEnvironments.find(e=>e.id===this.environmentsState.activeSubEnvironment);if(e)try{t=JSON.parse(e.variablesJson)}catch(n){}}return{...e,...t}}hydrate(e,t={}){if(!e)return e;const n=t.activeEnvironment?t.activeEnvironment:this.getActiveEnvironment(),i={};return e=(e=e.replace(/\\{{\s*[\w\.]+\s*}}/g,e=>{const t=r()();return i[t]=e.replace(/^\\/,""),`[[${t}]]`})).replace(/{{\s*[\w\.]+\s*}}/g,e=>{const t=e.match(/[\w\.]+/);return t?n[t[0]]||"":e}),Object.keys(i).forEach(t=>{e=e.split(`[[${t}]]`).join(i[t])}),e}hydrateHeaders(e,t={}){const n=e.map(e=>({key:this.hydrate(e.key,t),value:this.hydrate(e.value,t),enabled:e.enabled})),i=(t.activeEnvironment?t.activeEnvironment:this.getActiveEnvironment()).headers;return i?[...Object.keys(i).map(e=>({key:this.hydrate(e,t),value:this.hydrate(i[e],t),enabled:!0})),...n]:n}}return e.\u0275fac=function(t){return new(t||e)(o.ac(s.h))},e.\u0275prov=o.Mb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},Xizt:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"i",function(){return a}),n.d(t,"f",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"h",function(){return h}),n.d(t,"e",function(){return d});var i=n("/jXB");function r(e){return o(e)||l(e)||h(e)}function o(e){return e.kind===i.a.OPERATION_DEFINITION||e.kind===i.a.FRAGMENT_DEFINITION}function s(e){return e.kind===i.a.FIELD||e.kind===i.a.FRAGMENT_SPREAD||e.kind===i.a.INLINE_FRAGMENT}function a(e){return e.kind===i.a.VARIABLE||e.kind===i.a.INT||e.kind===i.a.FLOAT||e.kind===i.a.STRING||e.kind===i.a.BOOLEAN||e.kind===i.a.NULL||e.kind===i.a.ENUM||e.kind===i.a.LIST||e.kind===i.a.OBJECT}function c(e){return e.kind===i.a.NAMED_TYPE||e.kind===i.a.LIST_TYPE||e.kind===i.a.NON_NULL_TYPE}function l(e){return e.kind===i.a.SCHEMA_DEFINITION||u(e)||e.kind===i.a.DIRECTIVE_DEFINITION}function u(e){return e.kind===i.a.SCALAR_TYPE_DEFINITION||e.kind===i.a.OBJECT_TYPE_DEFINITION||e.kind===i.a.INTERFACE_TYPE_DEFINITION||e.kind===i.a.UNION_TYPE_DEFINITION||e.kind===i.a.ENUM_TYPE_DEFINITION||e.kind===i.a.INPUT_OBJECT_TYPE_DEFINITION}function h(e){return e.kind===i.a.SCHEMA_EXTENSION||d(e)}function d(e){return e.kind===i.a.SCALAR_TYPE_EXTENSION||e.kind===i.a.OBJECT_TYPE_EXTENSION||e.kind===i.a.INTERFACE_TYPE_EXTENSION||e.kind===i.a.UNION_TYPE_EXTENSION||e.kind===i.a.ENUM_TYPE_EXTENSION||e.kind===i.a.INPUT_OBJECT_TYPE_EXTENSION}},Xkdu:function(e,t,n){"use strict";var i=s(n("VrN/")),r=s(n("i1zs")),o=n("8Ur0");function s(e){return e&&e.__esModule?e:{default:e}}n("P57A"),i.default.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const n=e.state,i=n.kind,s=n.step,a=(0,r.default)(t.schema,n);return"Field"===i&&0===s&&a.fieldDef||"AliasedField"===i&&2===s&&a.fieldDef?(0,o.getFieldReference)(a):"Directive"===i&&1===s&&a.directiveDef?(0,o.getDirectiveReference)(a):"Argument"===i&&0===s&&a.argDef?(0,o.getArgumentReference)(a):"EnumValue"===i&&a.enumValue?(0,o.getEnumValueReference)(a):"NamedType"===i&&a.type?(0,o.getTypeReference)(a):void 0})},XoHu:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return i})},Xt1Y:function(e,t,n){"use strict";var i=n("k2qM"),r={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!i(e)&&hasOwnProperty.call(r,typeof e)}},"Y/la":function(e,t,n){"use strict";t.a=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})}},YF2q:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u});var i=n("ofXK"),r=n("mrSG"),o=n("8LU1"),s=n("R1ws"),a=n("/KA4"),c=n("fXoL");let l=(()=>{class e{constructor(e,t,n){this.element=e,this.renderer=t,this.animationType=n,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const e=Object(o.e)(this.element);e&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(e,"nz-animate-disabled"):this.renderer.removeClass(e,"nz-animate-disabled"))}}return e.\u0275fac=function(t){return new(t||e)(c.Qb(c.l),c.Qb(c.G),c.Qb(s.a,8))},e.\u0275dir=c.Lb({type:e,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[c.Cb]}),Object(r.b)([Object(a.a)(),Object(r.c)("design:type",Boolean)],e.prototype,"nzNoAnimation",void 0),e})(),u=(()=>{class e{}return e.\u0275mod=c.Ob({type:e}),e.\u0275inj=c.Nb({factory:function(t){return new(t||e)},imports:[[i.c]]}),e})()},YTm4:function(e,t,n){"use strict";e.exports=function(e){return e?function(t){for(var n=String(t[0]),i=0,r=e;--r;)n+="\x01"+t[++i];return n}:function(){return""}}},Yen0:function(e,t,n){"use strict";n.d(t,"b",function(){return O}),n.d(t,"a",function(){return E}),n.d(t,"d",function(){return x}),n.d(t,"c",function(){return k});var i=n("1QEH"),r=n("kBjl"),o=n("rWdj"),s=n("2C6G"),a=n("t3R0"),c=n("WXJZ"),l=n("/jXB"),u=n("JvOi"),h=n("EMzn"),d=n("Xizt"),p=n("BLR7"),f=n("EkME"),g=n("5XwX"),m=n("19Hc"),b=n("LViu"),v=n("51nL"),y=n("4suF"),w=n("axIb"),_=n("Mbdf");function O(e,t){var n;e&&e.kind===l.a.DOCUMENT||Object(a.a)(0,"Must provide valid Document AST"),t&&(t.assumeValid||t.assumeValidSDL)||Object(f.a)(e);for(var r=[],o=[],s=0,c=e.definitions;s0?function(){return n.map(function(e){return t.getNamedType(e)})}:[],o=i&&i.length>0?function(){return S(i,function(e){return t.buildField(e)})}:Object.create(null);return new w.f({name:e.name.value,description:x(e,this._options),interfaces:r,fields:o,astNode:e})},t._makeInterfaceDef=function(e){var t=this,n=e.fields,i=n&&n.length>0?function(){return S(n,function(e){return t.buildField(e)})}:Object.create(null);return new w.c({name:e.name.value,description:x(e,this._options),fields:i,astNode:e})},t._makeEnumDef=function(e){var t=this,n=e.values||[];return new w.a({name:e.name.value,description:x(e,this._options),values:S(n,function(e){return t.buildEnumValue(e)}),astNode:e})},t._makeUnionDef=function(e){var t=this,n=e.types,i=n&&n.length>0?function(){return n.map(function(e){return t.getNamedType(e)})}:[];return new w.h({name:e.name.value,description:x(e,this._options),types:i,astNode:e})},t._makeScalarDef=function(e){return new w.g({name:e.name.value,description:x(e,this._options),astNode:e})},t._makeInputObjectDef=function(e){var t=this,n=e.fields;return new w.b({name:e.name.value,description:x(e,this._options),fields:n?function(){return S(n,function(e){return t.buildInputField(e)})}:Object.create(null),astNode:e})},e}();function S(e,t){return Object(c.a)(e,function(e){return e.name.value},t)}function T(e){var t=Object(g.b)(y.b,e);return t&&t.reason}function x(e,t){if(e.description)return e.description.value;if(t&&t.commentDescriptions){var n=function(e){var t=e.loc;if(t){for(var n=[],i=t.startToken.prev;i&&i.kind===u.a.COMMENT&&i.next&&i.prev&&i.line+1===i.next.line&&i.line!==i.prev.line;){var r=String(i.value);n.push(r),i=i.prev}return n.reverse().join("\n")}}(e);if(void 0!==n)return Object(p.a)("\n"+n)}}function k(e,t){return O(Object(h.parse)(e,t),t)}},Yhw5:function(e,t,n){"use strict";n.d(t,"a",function(){return U});var i=n("HaE+"),r=n("z6cu"),o=n("LRne"),s=n("lJxs"),a=n("JIr8"),c=n("tk/3"),l=n("PDj5"),u=n("TirB"),h=n("EMzn"),d=n("51nL"),p=n("L2ys"),f=n("dQau"),g=n("XYXw"),m=n("Yen0"),b=n("93gR"),v=n("yu+w"),y=n.n(v),w=n("V5dU"),_=n("2C6G"),O=n("kBjl"),C=n("WXJZ"),E=n("Mbdf"),S=n("F8X2"),T=n("axIb"),x=n("4suF"),k=n("LViu"),I=n("19Hc"),D=n("6EqW"),z=n("4RMZ"),j=n("i1zs"),A=n.n(j);const R=(e,{maxDepth:t=1,currentDepth:n=0}={})=>{if(!e)return;const i=Object(T.A)(e);if(Object(T.I)(e)||!i||!i.getFields)return;if(n>=t)return;const r=i&&i.getFields();return{kind:"SelectionSet",selections:Object.keys(r).map(e=>{const i=r[e];return{kind:"Field",name:{kind:"Name",value:e},selectionSet:R(i?i.type:null,{maxDepth:t,currentDepth:n+1})}})}},N=(e,t)=>{if(0===t.length)return e;let n="",i=0;return t.forEach(({index:t,string:r})=>{n+=e.slice(i,t)+r,i=t}),n+=e.slice(i),n};var L=n("BGZm"),M=n("/jXB"),F=n("ADFt");const P=e=>e.trim().replace(/[^A-Za-z0-9]/g,"_").replace(/_+/g,"_").substr(0,20)+(1e3*Math.random()).toFixed(0),V=e=>`${e}Fields`,G=e=>({kind:M.a.FRAGMENT_SPREAD,name:{kind:M.a.NAME,value:e}}),B=(e,t)=>Object.keys(e).map(n=>{const i=t.getType(n),r=i&&i.getFields();return{kind:M.a.FRAGMENT_DEFINITION,name:{kind:M.a.NAME,value:V(n)},typeCondition:{kind:M.a.NAMED_TYPE,name:{kind:M.a.NAME,value:n}},selectionSet:{kind:M.a.SELECTION_SET,selections:e[n].map(e=>{const t=r&&r[e];return{kind:M.a.FIELD,name:{kind:M.a.NAME,value:e},type:t?t.type.inspect():""}})}}}),W=(e,t)=>((e,t)=>Object(F.a)(e,t))(e.value,t);var $=n("fXoL");let U=(()=>{class e{constructor(e,t){this.http=e,this.notifyService=t,this.defaultHeaders={"Content-Type":"application/json",Accept:"application/json"},this.introspectionData={},this.api_url=localStorage.getItem("altair:url"),this.method="POST",this.setHeaders()}sendRequest(e,t){const{resolvedFiles:n}=this.normalizeFiles(t.files);this.setUrl(e).setHTTPMethod(t.method).setHeaders(t.headers,{skipDefaults:this.isGETRequest(t.method)||!!n.length});const i=(new Date).getTime();return this._send({query:t.query,variables:t.variables,selectedOperation:t.selectedOperation,files:t.files,withCredentials:t.withCredentials}).pipe(Object(s.a)(e=>{const t=(new Date).getTime();return{response:e,meta:{responseTime:t-i,headers:e.headers.keys().reduce((t,n)=>({...t,[n]:e.headers.get(n)}),{})}}}))}isGETRequest(e=this.method){return"get"===e.toLowerCase()}setHeaders(e=[],t={skipDefaults:!1}){let n=new c.f;t.skipDefaults||(n=new c.f(this.defaultHeaders));const i=["Origin"];return e&&e.length&&e.forEach(e=>{!i.includes(e.key)&&e.enabled&&e.key&&e.value&&(n=n.set(e.key,e.value))}),this.headers=n,this}getParamsFromData(e){return Object.keys(e).reduce((t,n)=>e[n]?t.set(n,"object"==typeof e[n]?JSON.stringify(e[n]):e[n]):t,new c.g)}setUrl(e){return this.api_url=e,this}setHTTPMethod(e){return this.method=e,this}getIntrospectionRequest(e,t){const n={query:Object(l.a)(),headers:t.headers,method:t.method,withCredentials:t.withCredentials,variables:"{}",selectedOperation:"IntrospectionQuery"};return this.sendRequest(e,n).pipe(Object(s.a)(e=>{if(D.a.log("introspection",e.response),!e.response.ok)throw new Error(`Introspection request failed with: ${e.response.status}`);return e}),Object(a.a)(t=>(D.a.log("Error from first introspection query.",t),this.sendRequest(e,{...n,query:"\n\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n description\n args {\n ...InputValue\n }\n onOperation\n onFragment\n onField\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n description\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n"}).pipe(Object(s.a)(e=>{if(D.a.log("old introspection",e),!e.response.ok)throw new Error(`Introspection request failed with: ${e.response.status}`);return e})))))}getIntrospectionSchema(e){if(!e||!e.__schema)return null;try{return Object(u.a)(e)}catch(t){D.a.log("Trying old buildClientSchema.",t);try{const t=function(e,t){const n=e.__schema,i=Object(O.a)(n.types,e=>e.name),r=Object(O.a)(I.g.concat(k.introspectionTypes),e=>e.name);function o(e){if(e.kind===k.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return Object(T.d)(o(t))}if(e.kind===k.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=o(t);return Object(T.e)(Object(T.t)(n))}if(!e.name)throw new Error("Unknown type reference: "+JSON.stringify(e));return s(e.name)}function s(e){if(r[e])return r[e];const t=i[e];if(!t)throw new Error(`Invalid or incomplete schema, unknown type: ${e}. Ensure that a full introspection query is used in order to build a client schema.`);const n=function(e){if(e&&e.name&&e.kind)switch(e.kind){case k.TypeKind.SCALAR:return new T.g({name:(n=e).name,description:n.description,serialize:e=>e});case k.TypeKind.OBJECT:return function(e){if(!e.interfaces)throw new Error("Introspection result missing interfaces: "+JSON.stringify(e));return new T.f({name:e.name,description:e.description,interfaces:e.interfaces.map(l),fields:()=>u(e)})}(e);case k.TypeKind.INTERFACE:return new T.c({name:(t=e).name,description:t.description,fields:()=>u(t)});case k.TypeKind.UNION:return function(e){if(!e.possibleTypes)throw new Error("Introspection result missing possibleTypes: "+JSON.stringify(e));return new T.h({name:e.name,description:e.description,types:e.possibleTypes.map(c)})}(e);case k.TypeKind.ENUM:return function(e){if(!e.enumValues)throw new Error("Introspection result missing enumValues: "+JSON.stringify(e));return new T.a({name:e.name,description:e.description,values:Object(C.a)(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case k.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields)throw new Error("Introspection result missing inputFields: "+JSON.stringify(e));return new T.b({name:e.name,description:e.description,fields:()=>p(e.inputFields)})}(e)}var t,n;throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema:"+JSON.stringify(e))}(t);return r[e]=n,n}function a(e){const t=o(e);return Object(_.a)(Object(T.O)(t),"Introspection must provide output type for fields."),t}function c(e){const t=o(e);return Object(T.u)(t)}function l(e){const t=o(e);return Object(T.o)(t)}function u(e){if(!e.fields)throw new Error("Introspection result missing fields: "+JSON.stringify(e));return Object(C.a)(e.fields,e=>e.name,e=>{if(!e.args)throw new Error("Introspection result missing field args: "+JSON.stringify(e));return{description:e.description,deprecationReason:e.deprecationReason,type:a(e.type),args:p(e.args)}})}function p(e){return Object(C.a)(e,e=>e.name,f)}function f(e){const t=function(e){const t=o(e);return Object(_.a)(Object(T.G)(t),"Introspection must provide input type for arguments."),t}(e.type),n=e.defaultValue?Object(E.a)(Object(h.parseValue)(e.defaultValue),t):void 0;return{name:e.name,description:e.description,type:t,defaultValue:n}}const g=n.types.map(e=>s(e.name)),m=n.queryType?c(n.queryType):null,b=n.mutationType?c(n.mutationType):null,v=n.subscriptionType?c(n.subscriptionType):null,y=n.directives?n.directives.map(function(e){const t=e.locations?e.locations.slice():[].concat(e.onField?[S.a.FIELD]:[],e.onOperation?[S.a.QUERY,S.a.MUTATION,S.a.SUBSCRIPTION]:[],e.onFragment?[S.a.FRAGMENT_DEFINITION,S.a.FRAGMENT_SPREAD,S.a.INLINE_FRAGMENT]:[]);if(!e.args)throw new Error("Introspection result missing directive args: "+JSON.stringify(e));return new x.c({name:e.name,description:e.description,locations:t,args:p(e.args)})}):[];return new d.a({query:m,mutation:b,subscription:v,types:g,directives:y,assumeValid:undefined,allowedLegacyNames:undefined})}(e);return this.notifyService.info("\n Looks like your server is still using an old version of GraphQL (older than v0.5.0).\n You should upgrade to avoid broken implementations.\n "),t}catch(t){D.a.log("Bad introspection data.",t);const e=t.message?t.message:t.toString();this.notifyService.error(`\n Looks like the GraphQL schema is invalid.\n Please check that your schema in your GraphQL server conforms to the latest GraphQL spec.\n Error message: ${e}.\n `)}return null}}hasInvalidFileVariable(e){const{erroneousFiles:t}=this.normalizeFiles(e);return Boolean(t.length)}fillAllFields(e,t,n,i,r){return((e,t,n,i,{maxDepth:r=1}={})=>{const o=[];if(!e)return{insertions:o,result:t};let s=i.state;"SelectionSet"===s.kind&&(s.wasSelectionSet=!0,s={...s,...s.prevState});const a=A()(e,i.state).type,c=(e=>{if(!e)return null;try{return Object(h.parse)(e)}catch(t){return D.a.error("Something wrong with your query",t),null}})(t=t.replace(/{\s*}/g,""));if(!a||!c)return{insertions:o,result:t};const l=new z.a(e);return Object(p.c)(c,{leave(e){D.a.log(e)},enter(e){if(l.enter(e),"Field"===e.kind&&e.name.value===s.name&&e.loc&&(s.wasSelectionSet||e.loc.startToken.line-1===n.line)){D.a.log(e,l,l.getType(),n,i,r);const s=R(a,{maxDepth:r}),c=((e,t)=>{let n=t,i=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(i=n)}return e.substring(n,i)})(t,e.loc.start);return s&&o.push({index:e.loc.end,string:" "+Object(f.print)(s).replace(/\n/g,"\n"+c)}),{...e,selectionSet:s}}}}),{insertions:o,result:N(t,o)}})(e,t,n,i,r)}parseQuery(e){const t={definitions:[],kind:"Document"};if(!e)return t;try{return Object(h.parse)(e)}catch(n){return D.a.error("Something wrong with your query",n),t}}isSchema(e){return e instanceof d.a}isSubscriptionQuery(e){const t=this.parseQuery(e);return!!t.definitions&&t.definitions.reduce((e,t)=>e||"OperationDefinition"===t.kind&&"subscription"===t.operation,!1)}getOperations(e){const t=this.parseQuery(e);return t.definitions?t.definitions.filter(e=>!("OperationDefinition"!==e.kind||!e.name||!e.name.value)):[]}getOperationAtIndex(e,t){return this.getOperations(e).find(e=>Boolean(e.loc&&e.loc.start<=t&&e.loc.end>=t))}getOperationNameAtIndex(e,t){const n=this.getOperationAtIndex(e,t);return n&&n.name&&n.name.value?n.name.value:""}getSelectedOperationData({query:e="",queryCursorIndex:t,selectedOperation:n="",selectIfOneOperation:i=!1}){let r=null;const o=this.getOperations(e);let s=!1;if(o){const a=o.map(e=>e.name&&"Name"===e.name.kind&&e.name.value).filter(Boolean);if(a.length>1){let i="";void 0!==t&&(i=this.getOperationNameAtIndex(e,t)),n&&!a.includes(n)||!n?i?r=i:(r=null,s=!0):r=n}else r=i&&a[0]||null}else r=null;return{selectedOperation:r,operations:o,requestSelectedOperationFromUser:s}}prettify(e,t=2){return Object(i.a)(function*(){const i=yield n.e(15).then(n.t.bind(null,"MlsZ",7)),r=yield n.e(14).then(n.t.bind(null,"azY9",7));return i.format(e,{parser:"graphql",plugins:[r],tabWidth:t})})()}compress(e){var t=this;return Object(i.a)(function*(){return y()(yield t.prettify(e))})()}nameQuery(e){if(!e)return;const t=this.parseQuery(e),n=Object(p.c)(t,{OperationDefinition(t){D.a.log(t);const n=t.name||{kind:"Name",value:P(e)};return{...t,name:n}}});return Object(f.print)(n)}refactorQuery(e,t){if(!e||!t)return;const n=this.parseQuery(e),i=(e=>{const t={};return Object.values(e.map).forEach(e=>{e.count>=2&&e.fields.length&&e.fields[0].forEach(n=>{e.fields.slice(1).every(e=>e.includes(n))&&(t[e.name]=t[e.name]||[],t[e.name].push(n))})}),t})(((e,t)=>{const n=new z.a(t),i={name:"root",count:0,fields:[],children:{}},r={root:i};function o(e){const t=Object(T.A)(e),n=t.toString();return r[n]=r[n]||{name:n,count:0,type:t,fields:[],children:{}},r[n]}const s={enter(e){n.enter(e);const t=n.getType();if(e.type=t,t&&!Object(T.I)(Object(T.A)(t))){const r=o(t);if(r.count++,e.selectionSet&&e.selectionSet.selections){const t=e.selectionSet.selections.filter(e=>!e.selectionSet||!e.selectionSet.selections).filter(e=>e.kind===M.a.FIELD).filter(e=>e.name&&e.name.value).map(e=>e.name&&e.name.value).filter(Boolean);r.fields.push(t)}const s=n.getParentType();s?o(s).children[r.name]=r:i.children[r.name]=r}return e},leave(e){n.leave(e)}},a={OperationDefinition:s,Field:s};return Object(p.c)(e,Object(p.e)(n,a)),{map:r,tree:i}})(n,t)),r=((e,t,n)=>{const i={};let r=[];const o=new z.a(t);return{document:Object(p.c)(e,{enter(e){switch(o.enter(e),e.kind){case M.a.ARGUMENT:{const t=o.getFieldDef();if(e.value.kind!==M.a.VARIABLE&&t&&t.args){const n=t.args.find(t=>t.name===e.name.value);if(n){const t=P(n.name),o={name:t,value:W(e,void 0),type:n.type.inspect()};return i[t]=o,r.push(o),{...e,value:{kind:M.a.VARIABLE,name:{kind:M.a.NAME,value:t}}}}}}}},leave(e){switch(o.leave(e),e.kind){case M.a.OPERATION_DEFINITION:{const t={...e,variableDefinitions:(e.variableDefinitions||[]).concat(r.map(e=>({kind:M.a.VARIABLE_DEFINITION,variable:{kind:M.a.VARIABLE,name:{kind:M.a.NAME,value:e.name}},type:{kind:M.a.NAMED_TYPE,name:{kind:M.a.NAME,value:e.type}}})))},n=e.name||{kind:M.a.NAME,value:P("refactored")};return t.name=n,r=[],t}}}}),variables:Object.keys(i).reduce((e,t)=>(e[t]=i[t].value,e),{})}})(((e,t,n)=>Object(p.c)(e,{Document:e=>({...e,definitions:e.definitions.concat(B(t,n))})}))(((e,t,n)=>{const i=new z.a(n);return Object(p.c)(e,Object(p.e)(i,{Field:{enter(e){i.enter(e);const n=i.getType();if(n){const i=(e=>Object(T.A)(e).toString())(n),r=t[i];if(r&&e.selectionSet&&r.every(t=>!!e.selectionSet.selections.find(e=>e.name.value===t)))return{...e,selectionSet:{...e.selectionSet,selections:[...e.selectionSet.selections.filter(e=>!r.includes(e.name.value)),G(V(i))]}}}},leave(e){i.leave(e)}}}))})(n,i,t),i,t),t);return{query:Object(f.print)(r.document),variables:r.variables}}getSDLSync(e){return this.isSchema(e)?Object(g.b)(e):""}getSDL(e){var t=this;return Object(i.a)(function*(){return t.isSchema(e)?t.prettify(Object(g.b)(e)):""})()}sdlToSchema(e){return Object(m.c)(e)}validateSchema(e){return Object(b.b)(e)}createStreamClient(e){return new EventSource(e)}closeStreamClient(e){e&&e.close&&e.close()}normalizeFiles(e){if(!e||!e.length)return{resolvedFiles:[],erroneousFiles:e||[]};let t=[],n=[];return e.forEach(e=>{if(e.name)if(e.data){if(e.isMultiple)return Array.isArray(e.data)?void e.data.forEach((i,r)=>{const o=this.normalizeFiles([{name:`${e.name}.${r}`,data:i}]);t=t.concat(o.resolvedFiles),n=n.concat(o.erroneousFiles)}):void n.push(e);if(Array.isArray(e.data)){const i=this.normalizeFiles([{name:e.name,data:e.data[0]}]);return t=t.concat(i.resolvedFiles),void(n=n.concat(i.erroneousFiles))}e.data instanceof File?t.push(e):n.push(e)}else n.push(e);else n.push(e)}),{resolvedFiles:t,erroneousFiles:n}}_send({query:e,variables:t,selectedOperation:n,files:i,withCredentials:s}){const l={query:e,variables:{},operationName:null};let u,h;const d=this.headers;if(n&&(l.operationName=n),t)try{l.variables=JSON.parse(t)}catch(p){return D.a.error(p),Object(r.a)(p)}if(this.isGETRequest())h=this.getParamsFromData(l);else{const{resolvedFiles:e}=this.normalizeFiles(i);if(e&&e.length){const t={};l.variables=l.variables||{},e.forEach((e,n)=>{Object(L.i)(l.variables,e.name,null),t[n]=[`variables.${e.name}`]});const n=new FormData;n.append("operations",JSON.stringify(l)),n.append("map",JSON.stringify(t)),e.forEach((e,t)=>{n.append(`${t}`,e.data||"")}),u=n}else u=JSON.stringify(l)}if(!this.api_url)throw new Error("You need to have a URL for the request!");return this.http.request(this.method,this.api_url,{...!this.isGETRequest()&&{body:u},params:h,headers:d,observe:"response",withCredentials:s}).pipe(Object(a.a)(e=>{if(D.a.error(e),e.error instanceof ErrorEvent)D.a.error("An error occurred:",e.error.message);else{if(!(e.error instanceof ProgressEvent))return D.a.error(e.error),D.a.error(`Backend returned code ${e.status}, body was: ${e.error}`),Object(o.a)(new c.h({body:e.error||e.message,headers:e.headers,status:e.status,statusText:e.statusText,url:e.url||void 0}));D.a.error("Progress event error",e.error)}return Object(r.a)(e)}))}}return e.\u0275fac=function(t){return new(t||e)($.ac(c.c),$.ac(w.a))},e.\u0275prov=$.Mb({token:e,factory:e.\u0275fac}),e})()},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("quSY");class r extends i.a{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)}}},YsTz:function(e,t,n){"use strict";var i=n("52x2")();e.exports=function(e){return e!==i&&null!==e}},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},YyF0:function(e,t,n){"use strict";var i=n("kBPl");e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!i(e)}},"ZBm+":function(e,t,n){"use strict";n.r(t),n.d(t,"unusedFragMessage",function(){return r}),n.d(t,"NoUnusedFragments",function(){return o});var i=n("dWS+");function r(e){return'Fragment "'.concat(e,'" is never used.')}function o(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var o=Object.create(null),s=0;s=0?n&&r?r-1:r:1:!1!==e&&i(e)}},a88y:function(e,t,n){"use strict";var i=n("lq5y"),r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols;e.exports=function(e,t){var n,c=Object(i(t));if(e=Object(i(e)),s(c).forEach(function(i){try{r(e,i,o(t,i))}catch(s){n=s}}),"function"==typeof a&&a(c).forEach(function(i){try{r(e,i,o(t,i))}catch(s){n=s}}),void 0!==n)throw n;return e}},aEDk:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return a});var i=n("fXoL");function r(e){return null!==e&&"object"==typeof e}let o=(()=>{let e=class{};return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},imports:[[]]}),e})(),s=(()=>{let e=class{transform(e){return Array.isArray(e)||!r(e)?e:Object.keys(e)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Pb({name:"keys",type:e,pure:!0}),e})(),a=(()=>{let e=class{transform(e){return Array.isArray(e)||!r(e)?e:Object.keys(e).map(t=>e[t])}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Pb({name:"values",type:e,pure:!0}),e})(),c=(()=>{let e=class{};return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},imports:[[]]}),e})(),l=(()=>{let e=class{};return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},imports:[[]]}),e})(),u=(()=>{let e=class{};return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},imports:[[]]}),e})(),h=(()=>{let e=class{};return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},imports:[[]]}),e})(),d=(()=>{let e=class{};return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},imports:[[]]}),e})(),p=(()=>{let e=class{};return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},imports:[o,l,u,h,c,d]}),e})()},aFjk:function(e,t,n){"use strict";e.exports=n("zs8F")("forEach")},aSse:function(e,t,n){"use strict";var i=Object.prototype.toString,r=i.call("");e.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||i.call(e)===r)||!1}},agSv:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("fXoL"),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("l7P3"),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("EY2u"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("HDdC"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("VRyK"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("qgXg"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("jtHE"),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("w1tV"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("bOdf"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("tS1D"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("Kj3r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("JIr8"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("1G5W"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("eIep"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("zP0r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("pxpQ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("zp1y"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("Kqap");function DevToolsFeatureOptions(){}class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(e){const t={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}};let n="function"==typeof e?e():e;const i=Object.assign({},t,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||t.features},n);if(i.maxAge&&i.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${i.maxAge}`);return i}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(e,t){if(this.action=e,this.timestamp=t,this.type=PERFORM_ACTION,void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(e){this.timestamp=e,this.type=RESET}}class Rollback{constructor(e){this.timestamp=e,this.type=ROLLBACK}}class Commit{constructor(e){this.timestamp=e,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(e){this.id=e,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(e,t,n=!0){this.start=e,this.end=t,this.active=n,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(e){this.index=e,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(e){this.actionId=e,this.type=JUMP_TO_ACTION}}class ImportState{constructor(e){this.nextLiftedState=e,this.type=IMPORT_STATE}}class LockChanges{constructor(e){this.status=e,this.type=LOCK_CHANGES}}class PauseRecording{constructor(e){this.status=e,this.type=PAUSE_RECORDING}}let DevtoolsDispatcher=(()=>{class e extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.a{}return e.\u0275fac=function(t){return \u0275DevtoolsDispatcher_BaseFactory(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Mb({token:e,factory:e.\u0275fac}),e})();const \u0275DevtoolsDispatcher_BaseFactory=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(DevtoolsDispatcher);function difference(e,t){return e.filter(e=>t.indexOf(e)<0)}function unliftState(e){const{computedStates:t,currentStateIndex:n}=e;if(n>=t.length){const{state:e}=t[t.length-1];return e}const{state:i}=t[n];return i}function unliftAction(e){return e.actionsById[e.nextActionId-1]}function liftAction(e){return new PerformAction(e,+Date.now())}function sanitizeActions(e,t){return Object.keys(t).reduce((n,i)=>{const r=Number(i);return n[r]=sanitizeAction(e,t[r],r),n},{})}function sanitizeAction(e,t,n){return Object.assign(Object.assign({},t),{action:e(t.action,n)})}function sanitizeStates(e,t){return t.map((t,n)=>({state:sanitizeState(e,t.state,n),error:t.error}))}function sanitizeState(e,t,n){return e(t,n)}function shouldFilterActions(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function filterLiftedState(e,t,n,i){const r=[],o={},s=[];return e.stagedActionIds.forEach((a,c)=>{const l=e.actionsById[a];l&&(c&&isActionFiltered(e.computedStates[c],l,t,n,i)||(o[a]=l,r.push(a),s.push(e.computedStates[c])))}),Object.assign(Object.assign({},e),{stagedActionIds:r,actionsById:o,computedStates:s})}function isActionFiltered(e,t,n,i,r){const o=n&&!n(e,t.action),s=i&&!t.action.type.match(i.map(e=>escapeRegExp(e)).join("|")),a=r&&t.action.type.match(r.map(e=>escapeRegExp(e)).join("|"));return o||s||a}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Redux Devtools Extension");function ReduxDevtoolsExtensionConnection(){}function ReduxDevtoolsExtensionConfig(){}function ReduxDevtoolsExtension(){}let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(e,t,n){this.config=t,this.dispatcher=n,this.devtoolsExtension=e,this.createActionStreams()}notify(e,t){if(this.devtoolsExtension)if(e.type===PERFORM_ACTION){if(t.isLocked||t.isPaused)return;const n=unliftState(t);if(shouldFilterActions(this.config)&&isActionFiltered(n,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const i=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,n,t.currentStateIndex):n,r=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,e,t.nextActionId):e;this.sendToReduxDevtools(()=>this.extensionConnection.send(r,i))}else{const e=Object.assign(Object.assign({},t),{stagedActionIds:t.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,t.actionsById):t.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,t.computedStates):t.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,e,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.a(e=>{const t=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=t,t.init(),t.subscribe(t=>e.next(t)),t.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.a}createActionStreams(){const e=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)()),t=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(e=>e.type===ExtensionActionTypes.START)),n=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(e=>e.type===ExtensionActionTypes.STOP)),i=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(e=>e.type===ExtensionActionTypes.DISPATCH),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(e=>this.unwrapAction(e.payload)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(e=>e.type===IMPORT_STATE?this.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(e=>e.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.l),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(()=>e),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(()=>Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(e)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(e))),r=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(e=>e.type===ExtensionActionTypes.ACTION),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(e=>this.unwrapAction(e.payload))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n)),o=i.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n));this.start$=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(()=>r)),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(()=>o))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(e){const t={name:e.name,features:e.features,serialize:e.serialize};return!1!==e.maxAge&&(t.maxAge=e.maxAge),t}sendToReduxDevtools(e){try{e()}catch(t){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",t)}}}return DevtoolsExtension.\u0275fac=function(e){return new(e||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Mb({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.b},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function ComputedState(){}function LiftedAction(){}function LiftedActions(){}function LiftedState(){}function computeNextEntry(e,t,n,i,r){if(i)return{state:n,error:"Interrupted by an error up the chain"};let o,s=n;try{s=e(n,t)}catch(a){o=a.toString(),r.handleError(a)}return{state:s,error:o}}function recomputeStates(e,t,n,i,r,o,s,a,c){if(t>=e.length&&e.length===o.length)return e;const l=e.slice(0,t),u=o.length-(c?1:0);for(let h=t;h-1?c:computeNextEntry(n,t,u,d,a);l.push(p)}return c&&l.push(e[e.length-1]),l}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(e,t,n,i,r={}){return o=>(s,a)=>{let{monitorState:c,actionsById:l,nextActionId:u,stagedActionIds:h,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:g,isLocked:m,isPaused:b}=s||t;function v(e){let t=e,n=h.slice(1,t+1);for(let i=0;i-1===n.indexOf(e)),h=[0,...h.slice(t+1)],p=g[t].state,g=g.slice(t),f=f>t?f-t:0}function y(){l={0:liftAction(INIT_ACTION)},u=1,h=[0],d=[],p=g[f].state,f=0,g=[]}s||(l=Object.create(l));let w=0;switch(a.type){case LOCK_CHANGES:m=a.status,w=1/0;break;case PAUSE_RECORDING:b=a.status,b?(h=[...h,u],l[u]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),u++,w=h.length-1,g=g.concat(g[g.length-1]),f===h.length-2&&f++,w=1/0):y();break;case RESET:l={0:liftAction(INIT_ACTION)},u=1,h=[0],d=[],p=e,f=0,g=[];break;case COMMIT:y();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},u=1,h=[0],d=[],f=0,g=[];break;case TOGGLE_ACTION:{const{id:e}=a,t=d.indexOf(e);d=-1===t?[e,...d]:d.filter(t=>t!==e),w=h.indexOf(e);break}case SET_ACTIONS_ACTIVE:{const{start:e,end:t,active:n}=a,i=[];for(let r=e;rr.maxAge&&(g=recomputeStates(g,w,o,p,l,h,d,n,b),v(h.length-r.maxAge),w=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.l:if(g.filter(e=>e.error).length>0)w=0,r.maxAge&&h.length>r.maxAge&&(g=recomputeStates(g,w,o,p,l,h,d,n,b),v(h.length-r.maxAge),w=1/0);else{if(!b&&!m){f===h.length-1&&f++;const e=u++;l[e]=new PerformAction(a,+Date.now()),h=[...h,e],w=h.length-1,g=recomputeStates(g,w,o,p,l,h,d,n,b)}g=g.map(e=>Object.assign(Object.assign({},e),{state:o(e.state,RECOMPUTE_ACTION)})),f=h.length-1,r.maxAge&&h.length>r.maxAge&&v(h.length-r.maxAge),w=1/0}break;default:w=1/0}return g=recomputeStates(g,w,o,p,l,h,d,n,b),c=i(c,a),{monitorState:c,actionsById:l,nextActionId:u,stagedActionIds:h,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:g,isLocked:m,isPaused:b}}}let StoreDevtools=(()=>{class e{constructor(e,t,n,i,r,o,s,a){const c=liftInitialState(s,a.monitor),l=liftReducerWith(s,c,o,a.monitor,a),u=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(1)),i.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(liftAction)),e,i.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.b)(rxjs__WEBPACK_IMPORTED_MODULE_6__.b)),h=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(l)),d=new rxjs__WEBPACK_IMPORTED_MODULE_7__.a(1),p=u.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a)(h),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(({state:e},[t,n])=>{let r=n(e,t);return t.type!==PERFORM_ACTION&&shouldFilterActions(a)&&(r=filterLiftedState(r,a.predicate,a.actionsSafelist,a.actionsBlocklist)),i.notify(t,r),{state:r,action:t}},{state:c,action:null})).subscribe(({state:e,action:t})=>{d.next(e),t.type===PERFORM_ACTION&&r.next(t.action)}),f=i.start$.subscribe(()=>{this.refresh()}),g=d.asObservable(),m=g.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(unliftState));this.extensionStartSubscription=f,this.stateSubscription=p,this.dispatcher=e,this.liftedState=g,this.state=m}dispatch(e){this.dispatcher.next(e)}next(e){this.dispatcher.next(e)}error(e){}complete(){}performAction(e){this.dispatch(new PerformAction(e,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(e){this.dispatch(new ToggleAction(e))}jumpToAction(e){this.dispatch(new JumpToAction(e))}jumpToState(e){this.dispatch(new JumpToState(e))}importState(e){this.dispatch(new ImportState(e))}lockChanges(e){this.dispatch(new LockChanges(e))}pauseRecording(e){this.dispatch(new PauseRecording(e))}}return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.a),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.e),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.f),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(_angular_core__WEBPACK_IMPORTED_MODULE_0__.m),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.c),_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac(STORE_DEVTOOLS_CONFIG))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Mb({token:e,factory:e.\u0275fac}),e})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}let StoreDevtoolsModule=(()=>{class e{static instrument(t={}){return{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.g,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.d,useExisting:DevtoolsDispatcher}]}}}return e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ob({type:e}),e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Nb({factory:function(t){return new(t||e)}}),e})()},axIb:function(e,t,n){"use strict";n.d(t,"S",function(){return w}),n.d(t,"x",function(){return _}),n.d(t,"R",function(){return O}),n.d(t,"w",function(){return C}),n.d(t,"N",function(){return E}),n.d(t,"u",function(){return S}),n.d(t,"H",function(){return T}),n.d(t,"o",function(){return x}),n.d(t,"T",function(){return k}),n.d(t,"y",function(){return I}),n.d(t,"E",function(){return D}),n.d(t,"l",function(){return z}),n.d(t,"F",function(){return j}),n.d(t,"m",function(){return A}),n.d(t,"J",function(){return R}),n.d(t,"q",function(){return N}),n.d(t,"L",function(){return L}),n.d(t,"s",function(){return M}),n.d(t,"G",function(){return F}),n.d(t,"n",function(){return P}),n.d(t,"O",function(){return V}),n.d(t,"v",function(){return G}),n.d(t,"I",function(){return B}),n.d(t,"p",function(){return W}),n.d(t,"D",function(){return $}),n.d(t,"k",function(){return U}),n.d(t,"C",function(){return H}),n.d(t,"j",function(){return q}),n.d(t,"d",function(){return Q}),n.d(t,"e",function(){return K}),n.d(t,"U",function(){return X}),n.d(t,"z",function(){return Y}),n.d(t,"M",function(){return J}),n.d(t,"t",function(){return Z}),n.d(t,"B",function(){return ee}),n.d(t,"K",function(){return te}),n.d(t,"r",function(){return ne}),n.d(t,"A",function(){return ie}),n.d(t,"g",function(){return se}),n.d(t,"f",function(){return ae}),n.d(t,"i",function(){return de}),n.d(t,"P",function(){return pe}),n.d(t,"c",function(){return fe}),n.d(t,"h",function(){return ge}),n.d(t,"a",function(){return be}),n.d(t,"b",function(){return ve}),n.d(t,"Q",function(){return we});var i=n("Y/la"),r=n("rWdj"),o=n("kBjl"),s=n("Wzjs"),a=n("E9SJ"),c=n("t3R0"),l=n("WXJZ"),u=n("Mw0p"),h=n("zpYP");function d(e){return e}var p=n("vJkw"),f=n("ZZnB"),g=n("/jXB"),m=n("ADFt");function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function v(e){for(var t=1;t0?e:void 0}Q.prototype.toString=function(){return"["+String(this.ofType)+"]"},Object(f.a)(Q),Object(p.a)(Q),K.prototype.toString=function(){return String(this.ofType)+"!"},Object(f.a)(K),Object(p.a)(K);var se=function(){function e(e){var t=e.parseValue||d;this.name=e.name,this.description=e.description,this.serialize=e.serialize||d,this.parseValue=t,this.parseLiteral=e.parseLiteral||function(e){return t(Object(m.a)(e))},this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.serialize||"function"==typeof e.serialize||Object(c.a)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||Object(c.a)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){return{name:this.name,description:this.description,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(f.a)(se),Object(p.a)(se);var ae=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=le.bind(void 0,e),this._interfaces=ce.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||Object(c.a)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(r.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function ce(e){var t=re(e.interfaces)||[];return Array.isArray(t)||Object(c.a)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function le(e){var t=re(e.fields)||{};return ue(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(s.a)(t,function(t,n){ue(t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field config must be an object")),!("isDeprecated"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"==typeof t.resolve||Object(c.a)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(r.a)(t.resolve),"."));var o=t.args||{};ue(o)||Object(c.a)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=Object(i.a)(o).map(function(e){var t=e[1];return{name:e[0],description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(a.a)(t.extensions),astNode:t.astNode}});return v({},t,{name:n,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(a.a)(t.extensions),astNode:t.astNode})})}function ue(e){return Object(h.a)(e)&&!Array.isArray(e)}function he(e){return Object(s.a)(e,function(e){return{description:e.description,type:e.type,args:de(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function de(e){return Object(l.a)(e,function(e){return e.name},function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}})}function pe(e){return L(e.type)&&void 0===e.defaultValue}Object(f.a)(ae),Object(p.a)(ae);var fe=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=le.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(r.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){return{name:this.name,description:this.description,fields:he(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(f.a)(fe),Object(p.a)(fe);var ge=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._types=me.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(r.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function me(e){var t=re(e.types)||[];return Array.isArray(t)||Object(c.a)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(f.a)(ge),Object(p.a)(ge);var be=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._values=(t=this.name,ue(n=e.values)||Object(c.a)(0,"".concat(t," values must be an object with value names as keys.")),Object(i.a)(n).map(function(e){var n=e[0],i=e[1];return ue(i)||Object(c.a)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(r.a)(i),".")),!("isDeprecated"in i)||Object(c.a)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:i.description,value:"value"in i?i.value:n,isDeprecated:Boolean(i.deprecationReason),deprecationReason:i.deprecationReason,extensions:i.extensions&&Object(a.a)(i.extensions),astNode:i.astNode}})),this._valueLookup=new Map(this._values.map(function(e){return[e.value,e]})),this._nameLookup=Object(o.a)(this._values,function(e){return e.name}),"string"==typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(t)return t.name},t.parseValue=function(e){if("string"==typeof e){var t=this.getValue(e);if(t)return t.value}},t.parseLiteral=function(e,t){if(e.kind===g.a.ENUM){var n=this.getValue(e.value);if(n)return n.value}},t.toConfig=function(){var e=Object(l.a)(this.getValues(),function(e){return e.name},function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();Object(f.a)(be),Object(p.a)(be);var ve=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=oe(e.extensionASTNodes),this._fields=ye.bind(void 0,e),"string"==typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e=Object(s.a)(this.getFields(),function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}});return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},e}();function ye(e){var t=re(e.fields)||{};return ue(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(s.a)(t,function(t,n){return!("resolve"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),v({},t,{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(a.a)(t.extensions),astNode:t.astNode})})}function we(e){return L(e.type)&&void 0===e.defaultValue}Object(f.a)(ve),Object(p.a)(ve)},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("5+tZ"),r=n("SpAZ");function o(e=Number.POSITIVE_INFINITY){return Object(i.a)(r.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("5+tZ");function r(e,t){return Object(i.a)(e,t,1)}},bQ7u:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"c",function(){return s});const i="SET_PREREQUEST_SCRIPT",r="SET_PREREQUEST_ENABLED";class o{constructor(e,t){this.windowId=e,this.payload=t,this.type=i}}class s{constructor(e,t){this.windowId=e,this.payload=t,this.type=r}}},c2HN:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return i})},c3ME:function(e,t,n){"use strict";var i=n("YsTz"),r=Object.keys;e.exports=function(e){return r(i(e)?Object(e):e)}},cEWz:function(e,t,n){"use strict";var i=Object.prototype.toString,r=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(e){return"function"==typeof e&&r(i.call(e))}},cH1L:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s});var i=n("fXoL"),r=n("ofXK");const o=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.X)(r.d)}});let s=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new i.n,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.ac(o,8))},e.\u0275prov=Object(i.Mb)({factory:function(){return new e(Object(i.ac)(o,8))},token:e,providedIn:"root"}),e})(),a=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)}}),e})()},cV09:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){this.cm=e,this.options=i;var r={listenForChanges:!1};for(var o in i)r[o]=i[o];r.className||(r.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(r),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var s=this;e.on("change",this.changeHandler=function(e,t){s.onChange(t)})}function n(e,t,n){return e<=t?e:Math.max(t,e+n)}e.defineExtension("showMatchesOnScrollbar",function(e,n,i){return"string"==typeof i&&(i={className:i}),i||(i={}),new t(this,e,n,i)}),t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to);t++)r.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var n=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||1e3;n.findNext();){var r;if((r={from:n.from(),to:n.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,r),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var i=t.from.line,r=e.changeEnd(t).line,o=r-t.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,i,o),t.from.line),this.gap.to=Math.max(n(this.gap.to,i,o),t.from.line)):this.gap={from:t.from.line,to:r+1},o)for(var s=0;s=0;s--){var a=r[s].from(),c=r[s].to();a.line>=n||(c.line>=n&&(c=i(n,0)),n=a.line,null==o?this.uncomment(a,c,e)?o="un":(this.lineComment(a,c,e),o="line"):"un"==o?this.uncomment(a,c,e):this.lineComment(a,c,e))}}),e.defineExtension("lineComment",function(e,s,a){a||(a=t);var c,l=this,u=o(l,e),h=l.getLine(e.line);if(null!=h&&(c=h,!/\bstring\b/.test(l.getTokenTypeAt(i(e.line,0)))||/^[\'\"\`]/.test(c))){var d=a.lineComment||u.lineComment;if(d){var p=Math.min(0!=s.ch||s.line==e.line?s.line+1:s.line,l.lastLine()+1),f=null==a.padding?" ":a.padding,g=a.commentBlankLines||e.line==s.line;l.operation(function(){if(a.indent){for(var t=null,o=e.line;os.length)&&(t=s)}for(o=e.line;oh||a.operation(function(){if(0!=s.fullLines){var t=n.test(a.getLine(h));a.replaceRange(d+u,i(h)),a.replaceRange(l+d,i(e.line,0));var o=s.blockCommentLead||c.blockCommentLead;if(null!=o)for(var p=e.line+1;p<=h;++p)(p!=h||t)&&a.replaceRange(o+d,i(p,0))}else a.replaceRange(u,r),a.replaceRange(l,e)})}}else(s.lineComment||c.lineComment)&&0!=s.fullLines&&a.lineComment(e,r,s)}),e.defineExtension("uncomment",function(e,r,s){s||(s=t);var a,c=this,l=o(c,e),u=Math.min(0!=r.ch||r.line==e.line?r.line:r.line-1,c.lastLine()),h=Math.min(e.line,u),d=s.lineComment||l.lineComment,p=[],f=null==s.padding?" ":s.padding;e:if(d){for(var g=h;g<=u;++g){var m=c.getLine(g),b=m.indexOf(d);if(b>-1&&!/comment/.test(c.getTokenTypeAt(i(g,b+1)))&&(b=-1),-1==b&&n.test(m))break e;if(b>-1&&n.test(m.slice(0,b)))break e;p.push(m)}if(c.operation(function(){for(var e=h;e<=u;++e){var t=p[e-h],n=t.indexOf(d),r=n+d.length;n<0||(t.slice(r,r+f.length)==f&&(r+=f.length),a=!0,c.replaceRange("",i(e,n),i(e,r)))}}),a)return!0}var v=s.blockCommentStart||l.blockCommentStart,y=s.blockCommentEnd||l.blockCommentEnd;if(!v||!y)return!1;var w=s.blockCommentLead||l.blockCommentLead,_=c.getLine(h),O=_.indexOf(v);if(-1==O)return!1;var C=u==h?_:c.getLine(u),E=C.indexOf(y,u==h?O+v.length:0),S=i(h,O+1),T=i(u,E+1);if(-1==E||!/comment/.test(c.getTokenTypeAt(S))||!/comment/.test(c.getTokenTypeAt(T))||c.getRange(S,T,"\n").indexOf(y)>-1)return!1;var x=_.lastIndexOf(v,e.ch),k=-1==x?-1:_.slice(0,e.ch).indexOf(y,x+v.length);if(-1!=x&&-1!=k&&k+y.length!=e.ch)return!1;k=C.indexOf(y,r.ch);var I=C.slice(r.ch).lastIndexOf(v,k-r.ch);return x=-1==k||-1==I?-1:r.ch+I,(-1==k||-1==x||x==r.ch)&&(c.operation(function(){c.replaceRange("",i(u,E-(f&&C.slice(E-f.length,E)==f?f.length:0)),i(u,E+y.length));var e=O+v.length;if(f&&_.slice(e,e+f.length)==f&&(e+=f.length),c.replaceRange("",i(h,O),i(h,e)),w)for(var t=h+1;t<=u;++t){var r=c.getLine(t),o=r.indexOf(w);if(-1!=o&&!n.test(r.slice(0,o))){var s=o+w.length;f&&r.slice(s,s+f.length)==f&&(s+=f.length),c.replaceRange("",i(t,o),i(t,s))}}}),!0)})}(n("VrN/"))},cp0P:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("HDdC"),r=n("DH7j"),o=n("lJxs"),s=n("XoHu"),a=n("Cfvw");function c(...e){if(1===e.length){const t=e[0];if(Object(r.a)(t))return l(t,null);if(Object(s.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return l(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return l(e=1===e.length&&Object(r.a)(e[0])?e[0]:e,null).pipe(Object(o.a)(e=>t(...e)))}return l(e,null)}function l(e,t){return new i.a(n=>{const i=e.length;if(0===i)return void n.complete();const r=new Array(i);let o=0,s=0;for(let c=0;c{u||(u=!0,s++),r[c]=e},error:e=>n.error(e),complete:()=>{o++,o!==i&&u||(s===i&&n.next(t?t.reduce((e,t,n)=>(e[t]=r[n],e),{}):r),n.complete())}}))}})}},dPL8:function(e,t,n){"use strict";n.d(t,"a",function(){return ne}),n.d(t,"b",function(){return K});var i=n("mrSG"),r=n("ofXK"),o=n("fXoL"),s=(n("2Vo4"),n("pLZG"));function a(e,t){if(1&e&&o.Rb(0,"div",3),2&e){const e=o.gc();o.mc("innerHTML",e.content,o.xc)}}function c(e,t){1&e&&o.Sb(0)}function l(e,t){if(1&e&&(o.Ub(0),o.Gc(1,"\n "),o.Ec(2,c,1,0,"ng-container",4),o.Gc(3,"\n "),o.Tb()),2&e){const e=o.gc();o.Eb(2),o.mc("ngTemplateOutlet",e.content)("ngTemplateOutletContext",e.context)}}function u(e,t){1&e&&o.Sb(0)}function h(e,t){if(1&e&&(o.Ub(0),o.Gc(1,"\n "),o.Ec(2,u,1,0,"ng-container",5),o.Gc(3,"\n "),o.Tb()),2&e){const e=o.gc();o.Eb(2),o.mc("ngComponentOutlet",e.content)("ngComponentOutletInjector",e.injector)}}n("lJxs");var d=function(e){return e[e.String=0]="String",e[e.Template=1]="Template",e[e.Component=2]="Component",e}({});let p=(()=>{class e{constructor(){this.ContentType=d,this.contentType=d.String}set content(e){this._content=e,this.resolveContentType()}get content(){return this._content}resolveContentType(){this.contentType="string"==typeof this.content?d.String:this.content instanceof o.O?d.Template:d.Component}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["dynamic-content"]],inputs:{content:"content",context:"context",injector:"injector"},decls:10,vars:4,consts:[[3,"ngSwitch"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"innerHTML"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(e,t){1&e&&(o.Gc(0,"\n "),o.Ub(1,0),o.Gc(2,"\n "),o.Ec(3,a,1,1,"div",1),o.Gc(4,"\n\n "),o.Ec(5,l,4,2,"ng-container",2),o.Gc(6,"\n\n "),o.Ec(7,h,4,2,"ng-container",2),o.Gc(8,"\n "),o.Tb(),o.Gc(9,"\n ")),2&e&&(o.Eb(1),o.mc("ngSwitch",t.contentType),o.Eb(2),o.mc("ngSwitchCase",t.ContentType.String),o.Eb(2),o.mc("ngSwitchCase",t.ContentType.Template),o.Eb(2),o.mc("ngSwitchCase",t.ContentType.Component))},directives:[r.q,r.r,r.t,r.m],styles:["[_nghost-%COMP%] {\n display: block;\n }"],changeDetection:0}),e})(),f=(()=>{class e{}return e.\u0275mod=o.Ob({type:e}),e.\u0275inj=o.Nb({factory:function(t){return new(t||e)},imports:[[r.c]]}),e})();class g{constructor(e){this.value=e}getElement(){return this.value}detectChanges(){}destroy(){}}class m{constructor(e){this.args=e;const t=this.args.resolver.resolveComponentFactory(this.args.component);this.args.vcr?this.compRef=this.args.vcr.createComponent(t,this.args.vcr.length,e.injector||this.args.vcr.injector):(this.compRef=t.create(this.args.injector),this.args.appRef.attachView(this.compRef.hostView))}get ref(){return this.compRef}setInput(e,t){return this.compRef.instance[e]=t,this}setInputs(e){return Object.keys(e).forEach(t=>{this.compRef.instance[t]=e[t]}),this}detectChanges(){return this.compRef.hostView.detectChanges(),this}appendTo(e){return e.appendChild(this.getElement()),this}removeFrom(e){return e.removeChild(this.getElement()),this}getRawContent(){return this.getElement().outerHTML}getElement(){return this.compRef.location.nativeElement}destroy(){this.compRef.destroy(),!this.args.vcr&&this.args.appRef.detachView(this.compRef.hostView),this.compRef=null}}class b{constructor(e){this.args=e,this.wrapper=null,this.args.vcr?(this.viewRef=this.args.vcr.createEmbeddedView(this.args.tpl,this.args.context||{}),this.viewRef.detectChanges()):(this.viewRef=this.args.tpl.createEmbeddedView(this.args.context||{}),this.viewRef.detectChanges(),this.args.appRef.attachView(this.viewRef))}detectChanges(){this.viewRef.detectChanges()}getElement(){const e=this.viewRef.rootNodes;return 1===e.length&&e[0]===Node.ELEMENT_NODE?this.element=e[0]:(this.element=document.createElement("div"),this.element.append(...e)),this.element}destroy(){1!==this.viewRef.rootNodes[0]&&(this.element.parentNode.removeChild(this.element),this.element=null),this.args.vcr||this.args.appRef.detachView(this.viewRef),this.viewRef.destroy(),this.viewRef=null}}function v(e){return e instanceof o.O}function y(e){return"function"==typeof e}let w=(()=>{class e{constructor(e,t,n){this.resolver=e,this.injector=t,this.appRef=n}createComponent(e,t={}){return new m({component:e,vcr:t.vcr,injector:t.injector||this.injector,appRef:this.appRef,resolver:this.resolver})}createTemplate(e,t={}){return new b({vcr:t.vcr,appRef:this.appRef,tpl:e,context:t.context})}createView(e,t={}){if(v(e))return this.createTemplate(e,t);if(y(e))return this.createComponent(e,t);if("string"==typeof e)return new g(e);throw"Type of content is not supported"}}return e.\u0275fac=function(t){return new(t||e)(o.ac(o.j),o.ac(o.t),o.ac(o.g))},e.\u0275prov=Object(o.Mb)({factory:function(){return new e(Object(o.ac)(o.j),Object(o.ac)(o.p),Object(o.ac)(o.g))},token:e,providedIn:"root"}),e})();var _=n("vkgz"),O=n("XNiG"),C=n("DH7j"),E=n("yCtX"),S=n("l7GE"),T=n("ZUHj");class x{call(e,t){return t.subscribe(new k(e))}}class k extends S.a{constructor(e){super(e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(e){this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(let n=0;n{class e{constructor(e){this.injector=e,this.offset=0,this.height=new o.n,this.beforeClosed=new o.n,this.afterClosed=new o.n,this.isManualClose=!1}ngOnInit(){v(this.toast.message)&&(this.context={$implicit:this.toastRef}),y(this.toast.message)&&(this.toastComponentInjector=o.t.create({providers:[{provide:$,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))}ngAfterViewInit(){const e=this.toastBarBase.nativeElement;this.height.emit(e.offsetHeight),e.addEventListener("animationstart",e=>{this.isExitAnimation(e)&&this.beforeClosed.emit()}),e.addEventListener("animationend",e=>{this.isExitAnimation(e)&&this.afterClosed.emit({dismissedByAction:this.isManualClose,id:this.toast.id})})}get containerPositionStyle(){const e=this.toast.position.includes("top"),t=e?{top:0}:{bottom:0},n=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return Object.assign(Object.assign({transform:`translateY(${this.offset*(e?1:-1)}px)`},t),n)}get toastBarBaseStyles(){const e=this.toast.position.includes("top"),t=`hotToastEnterAnimation${e?"Negative":"Positive"} 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards`,n=this.toast.autoClose?`${t}, hotToastExitAnimation${e?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) ${this.toast.duration}ms`:t;return Object.assign(Object.assign({},this.toast.style),{animation:n})}get isIconString(){return"string"==typeof this.toast.icon}close(){this.isManualClose=!0;const e=`hotToastExitAnimation${this.toast.position.includes("top")?"Negative":"Positive"} 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)`;this.toastBarBase.nativeElement.style.animation=e}ngOnDestroy(){this.close()}isExitAnimation(e){return e.animationName.includes("hotToastExitAnimation")}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(o.t))},e.\u0275cmp=o.Kb({type:e,selectors:[["hot-toast"]],viewQuery:function(e,t){if(1&e&&o.Kc(I,1),2&e){let e;o.sc(e=o.ec())&&(t.toastBarBase=e.first)}},inputs:{offset:"offset",toast:"toast",defaultConfig:"defaultConfig",toastRef:"toastRef"},outputs:{height:"height",beforeClosed:"beforeClosed",afterClosed:"afterClosed"},decls:22,vars:14,consts:[[1,"hot-toast-bar-base-container",3,"ngStyle","ngClass"],[1,"hot-toast-bar-base",3,"ngStyle","ngClass"],["hotToastBarBase",""],["aria-hidden","true",1,"hot-toast-icon"],[4,"ngIf","ngIfElse"],["indicator",""],[1,"hot-toast-message"],[3,"content","context","injector"],["type","button","class","hot-toast-close-btn","aria-label","Close",3,"ngStyle","click",4,"ngIf"],["iconTemplateOrComponent",""],[3,"iconTheme"],[3,"content"],[3,"theme","type"],["type","button","aria-label","Close",1,"hot-toast-close-btn",3,"ngStyle","click"]],template:function(e,t){if(1&e&&(o.Wb(0,"div",0),o.Gc(1,"\n "),o.Wb(2,"div",1,2),o.Gc(4,"\n "),o.Wb(5,"div",3),o.Gc(6,"\n "),o.Ec(7,j,7,2,"ng-container",4),o.Gc(8,"\n\n "),o.Ec(9,A,3,2,"ng-template",null,5,o.Fc),o.Gc(11,"\n "),o.Vb(),o.Gc(12,"\n\n "),o.Wb(13,"div",6),o.Gc(14,"\n "),o.Rb(15,"dynamic-content",7),o.Gc(16,"\n "),o.Vb(),o.Gc(17,"\n\n "),o.Ec(18,R,1,1,"button",8),o.Gc(19,"\n "),o.Vb(),o.Gc(20,"\n"),o.Vb(),o.Gc(21,"\n")),2&e){const e=o.tc(10);o.mc("ngStyle",t.containerPositionStyle)("ngClass","hot-toast-theme-"+t.toast.theme),o.Eb(2),o.Bc("--hot-toast-animation-state",t.isManualClose?"running":"paused"),o.mc("ngStyle",t.toastBarBaseStyles)("ngClass",t.toast.className),o.Fb("aria-live",t.toast.ariaLive)("role",t.toast.role),o.Eb(5),o.mc("ngIf",void 0!==t.toast.icon)("ngIfElse",e),o.Eb(8),o.mc("content",t.toast.message)("context",t.context)("injector",t.toastComponentInjector),o.Eb(3),o.mc("ngIf",t.toast.dismissible)}},directives:function(){return[r.p,r.l,r.o,p,X,ee]},styles:[".hot-toast-bar-base[_ngcontent-%COMP%]{align-items:center;background:var(--hot-toast-bg,#fff);border-radius:var(--hot-toast-border-radius,4px);box-shadow:var(--hot-toast-shadow,0 3px 10px rgba(0,0,0,.1),0 3px 3px rgba(0,0,0,.05));color:var(--hot-toast-color,#363636);display:flex;line-height:var(--hot-toast-line,1.3);margin:16px;max-width:var(--hot-toast-max-width,350px);padding:8px 10px;pointer-events:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;will-change:transform}.hot-toast-bar-base[_ngcontent-%COMP%]:focus, .hot-toast-bar-base[_ngcontent-%COMP%]:hover{animation-play-state:var(--hot-toast-animation-state,paused)!important}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base[_ngcontent-%COMP%]{animation-duration:10ms!important}}.hot-toast-message[_ngcontent-%COMP%]{color:inherit;display:flex;flex:1;justify-content:center;margin:4px 10px}.hot-toast-bar-base-container[_ngcontent-%COMP%]{display:flex;pointer-events:none;position:absolute;transition:transform .23s cubic-bezier(.21,1.02,.73,1)}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base-container[_ngcontent-%COMP%]{transition-duration:10ms!important}}.hot-toast-bar-base-container.hot-toast-theme-snackbar[_ngcontent-%COMP%] .hot-toast-bar-base[_ngcontent-%COMP%]{background:var(--hot-toast-snackbar-bg,#323232);box-shadow:var(--hot-toast-snackbar-shadow,0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12));color:var(--hot-toast-snackbar-color,#fff)}.hot-toast-bar-base-container.hot-toast-theme-snackbar[_ngcontent-%COMP%] .hot-toast-close-btn[_ngcontent-%COMP%]{filter:invert(1) grayscale(100%) brightness(200%)}@keyframes hotToastEnterAnimationNegative{0%{opacity:.5;transform:translate3d(0,-80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastEnterAnimationPositive{0%{opacity:.5;transform:translate3d(0,80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastExitAnimationPositive{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,130px,-1px) scale(.5)}}@keyframes hotToastExitAnimationNegative{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,-130px,-1px) scale(.5)}}.hot-toast-close-btn[_ngcontent-%COMP%]{align-self:flex-start;background-color:initial;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e\");background-position:50%;background-repeat:no-repeat;background-size:.75em;border:0;border-radius:.25rem;box-sizing:initial;display:flex;height:.8em;margin-top:.25em;opacity:.5;padding:.25em;width:.8em}.hot-toast-close-btn[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .125rem rgba(13,110,253,.25);outline:none}.hot-toast-close-btn[_ngcontent-%COMP%]:focus, .hot-toast-close-btn[_ngcontent-%COMP%]:hover{opacity:.75}.hot-toast-icon[_ngcontent-%COMP%]{align-self:flex-start;padding-top:.25em}"],changeDetection:0}),e})(),H=(()=>{class e{constructor(e){this.cdr=e,this.toasts=[],this.toastRefs=[],this._onClosed=new O.a,this.onClosed$=this._onClosed.asObservable()}trackById(e,t){return t.id}calculateOffset(e,t){const n=this.toasts.filter(e=>e.visible&&e.position===t),i=n.findIndex(t=>t.id===e);return-1!==i?n.slice(...this.defaultConfig.reverseOrder?[i+1]:[0,i]).reduce((e,t)=>e+(t.height||0)+8,0):0}updateHeight(e,t){t.height=e,this.cdr.detectChanges()}addToast(e){this.toastRefs.push(e);const t=e.getToast();return this.toasts.push(e.getToast()),this.cdr.detectChanges(),{dispose:()=>{this.closeToast(t.id)},updateMessage:e=>{t.message=e,this.cdr.detectChanges()},updateToast:e=>{this.updateToasts(t,e),this.cdr.detectChanges()},afterClosed:this.getAfterClosed(t)}}closeToast(e){const t=this.hotToastComponentList.find(t=>t.toast.id===e);t&&t.close()}beforeClosed(e){e.visible=!1}afterClosed(e){this.toasts.findIndex(t=>t.id===e.id)>-1&&(this._onClosed.next(e),this.toasts=this.toasts.filter(t=>t.id!==e.id),this.toastRefs=this.toastRefs.filter(t=>t.getToast().id!==e.id),this.cdr.detectChanges())}hasToast(e){return this.toasts.findIndex(t=>t.id===e)>-1}getAfterClosed(e){return this.onClosed$.pipe(Object(s.a)(t=>t.id===e.id))}updateToasts(e,t){this.toasts=this.toasts.map(n=>Object.assign(Object.assign({},n),n.id===e.id&&Object.assign(Object.assign({},e),t)))}}return e.\u0275fac=function(t){return new(t||e)(o.Qb(o.h))},e.\u0275cmp=o.Kb({type:e,selectors:[["hot-toast-container"]],viewQuery:function(e,t){if(1&e&&o.Kc(U,1),2&e){let e;o.sc(e=o.ec())&&(t.hotToastComponentList=e)}},inputs:{defaultConfig:"defaultConfig"},decls:8,vars:2,consts:[[2,"position","fixed","z-index","9999","top","0","right","0","bottom","0","left","0","pointer-events","none"],[2,"position","relative","height","100%"],[3,"toast","offset","toastRef","height","beforeClosed","afterClosed",4,"ngFor","ngForOf","ngForTrackBy"],[3,"toast","offset","toastRef","height","beforeClosed","afterClosed"]],template:function(e,t){1&e&&(o.Wb(0,"div",0),o.Gc(1,"\n "),o.Wb(2,"div",1),o.Gc(3,"\n "),o.Ec(4,N,1,3,"hot-toast",2),o.Gc(5,"\n "),o.Vb(),o.Gc(6,"\n"),o.Vb(),o.Gc(7,"\n")),2&e&&(o.Eb(4),o.mc("ngForOf",t.toasts)("ngForTrackBy",t.trackById))},directives:[r.n,U],encapsulation:2,changeDetection:0}),e})();class q{constructor(){this.reverseOrder=!1,this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}}}class Q{constructor(){this.storage="local",this.key="ngneat/hototast-${id}",this.count=1,this.enabled=!1}}let K=(()=>{class e{constructor(e,t,n){this._viewService=e,this.platformId=t,this._isInitialized=!1,this._defaultConfig=new q,this._defaultPersistConfig=new Q,n&&(this._defaultConfig=Object.assign(Object.assign({},this._defaultConfig),n))}get defaultConfig(){return this._defaultConfig}set defaultConfig(e){this._defaultConfig=Object.assign(Object.assign({},this._defaultConfig),e),this._componentRef.setInput("defaultConfig",this._defaultConfig)}show(e,t){return this.createToast(e||this._defaultConfig.blank.content,"blank",Object.assign(Object.assign({},this._defaultConfig),t))}error(e,t){var n;return this.createToast(e||this._defaultConfig.error.content,"error",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(n=this._defaultConfig)||void 0===n?void 0:n.error),t))}success(e,t){var n;return this.createToast(e||this._defaultConfig.success.content,"success",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(n=this._defaultConfig)||void 0===n?void 0:n.success),t))}loading(e,t){var n;return this.createToast(e||this._defaultConfig.loading.content,"loading",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(n=this._defaultConfig)||void 0===n?void 0:n.loading),t))}warning(e,t){var n;return this.createToast(e||this._defaultConfig.warning.content,"warning",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(n=this._defaultConfig)||void 0===n?void 0:n.warning),t))}observe(e){return t=>{var n,i;let r,o=0;const s=e.loading||(null===(n=this._defaultConfig.loading)||void 0===n?void 0:n.content),a=e.error||(null===(i=this._defaultConfig.error)||void 0===i?void 0:i.content);return s&&(r=this.createLoadingToast(s),o=Date.now()),t.pipe(Object(_.a)(Object.assign({next:t=>{r=this.createOrUpdateToast(e,t,r,"success",0===o?o:Date.now()-o)}},a&&{error:t=>{r=this.createOrUpdateToast(e,t,r,"error",0===o?o:Date.now()-o)}})))}}close(e){this._componentRef&&this._componentRef.ref.instance.closeToast(e)}init(){Object(r.B)(this.platformId)||(this._componentRef=this._viewService.createComponent(H).setInput("defaultConfig",this._defaultConfig).appendTo(document.body))}createOrUpdateToast(e,t,n,i,r){let o=null,s={};var a,c;if(({content:o,options:s}=this.getContentAndOptions(i,e[i]||(this._defaultConfig[i]?this._defaultConfig[i].content:""))),c=t,o=(e=>"function"==typeof e)(a=o)?a(c):a,n){n.updateMessage(o);const e=Object.assign(Object.assign({type:i,duration:r+W[i]},s),s.duration&&{duration:r+s.duration});n.updateToast(e)}else this.createToast(o,i,s);return n}createToast(e,t,n,i){var r,o,s,a,c,l;this._isInitialized||(this._isInitialized=!0,this.init());const u=Date.now(),h=null!==(r=null==n?void 0:n.id)&&void 0!==r?r:u.toString();if(!this.isDuplicate(h)&&(!(null===(o=n.persist)||void 0===o?void 0:o.enabled)||(null===(s=n.persist)||void 0===s?void 0:s.enabled)&&this.handleStorageValue(h,n))){const r=Object.assign({ariaLive:null!==(a=null==n?void 0:n.ariaLive)&&void 0!==a?a:"polite",createdAt:u,duration:null!==(c=null==n?void 0:n.duration)&&void 0!==c?c:W[t],id:h,message:e,role:null!==(l=null==n?void 0:n.role)&&void 0!==l?l:"status",type:t,visible:!0,observableMessages:null!=i?i:void 0},n);return new $(r).appendTo(this._componentRef.ref.instance)}}isDuplicate(e){return this._componentRef.ref.instance.hasToast(e)}handleStorageValue(e,t){let n=1;const i=Object.assign(Object.assign({},this._defaultPersistConfig),t.persist),r="local"===i.storage?localStorage:sessionStorage,o=i.key.replace(/\${id}/g,e);let s=r.getItem(o);return s?(s=parseInt(s,10),n=s>0?s-1:s):n=i.count,r.setItem(o,n.toString()),n}getContentAndOptions(e,t){var n;let r,o=Object.assign(Object.assign({},this._defaultConfig),this._defaultConfig[e]);if("string"==typeof t||v(t)||y(t))r=t;else{let e;n=t,({content:r}=n),e=Object(i.e)(n,["content"]),o=Object.assign(Object.assign({},o),e)}return{content:r,options:o}}createLoadingToast(e){let t=null,n={};return({content:t,options:n}=this.getContentAndOptions("loading",e)),this.loading(t,n)}}return e.\u0275fac=function(t){return new(t||e)(o.ac(w),o.ac(o.D),o.ac(q,8))},e.\u0275prov=Object(o.Mb)({factory:function(){return new e(Object(o.ac)(w),Object(o.ac)(o.D),Object(o.ac)(q,8))},token:e,providedIn:"root"}),e})(),X=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["hot-toast-animated-icon"]],inputs:{iconTheme:"iconTheme"},ngContentSelectors:L,decls:5,vars:2,consts:[[1,"hot-toast-animated-icon"]],template:function(e,t){1&e&&(o.lc(),o.Wb(0,"div",0),o.Gc(1,"\n "),o.kc(2),o.Gc(3,"\n"),o.Vb(),o.Gc(4,"\n")),2&e&&o.Bc("color",null==t.iconTheme?null:t.iconTheme.primary)},styles:["@keyframes hotToastEnter{0%{transform:scale(0)}to{transform:scale(1)}}.hot-toast-animated-icon[_ngcontent-%COMP%]{animation:hotToastEnter .3s ease-in-out forwards;position:relative;transform:scale(0)}@media (prefers-reduced-motion:reduce){.hot-toast-animated-icon[_ngcontent-%COMP%]{animation-duration:none;opacity:1;transform:scale(1)}}"],changeDetection:0}),e})(),Y=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["hot-toast-checkmark"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-checkmark-icon"]],template:function(e,t){1&e&&(o.Rb(0,"div",0),o.Gc(1,"\n")),2&e&&o.Bc("--check-primary",(null==t.theme?null:t.theme.primary)||"#61d345")("--check-secondary",(null==t.theme?null:t.theme.secondary)||"#fff")},styles:['@keyframes hotToastCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastCheckmarkAnimation{0%{height:0;opacity:0;width:0}40%{height:0;opacity:1;width:6px}to{height:10px;opacity:1}}.hot-toast-checkmark-icon[_ngcontent-%COMP%]{animation:hotToastCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--check-primary,#61d345);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon[_ngcontent-%COMP%]{animation-duration:0ms}}.hot-toast-checkmark-icon[_ngcontent-%COMP%]:after{animation:hotToastCheckmarkAnimation .2s ease-out forwards;animation-delay:.2s;border-bottom:2px solid;border-bottom-color:var(--check-secondary,#fff);border-left-color:var(--check-secondary,#fff);border-right:2px solid;border-right-color:var(--check-secondary,#fff);border-top-color:var(--check-secondary,#fff);bottom:6px;box-sizing:border-box;content:"";height:10px;left:6px;opacity:0;position:absolute;width:6px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon[_ngcontent-%COMP%]:after{animation-duration:0ms}}'],changeDetection:0}),e})(),J=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["hot-toast-error"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-error-icon"]],template:function(e,t){1&e&&(o.Rb(0,"div",0),o.Gc(1,"\n")),2&e&&o.Bc("--error-primary",(null==t.theme?null:t.theme.primary)||"#ff4b4b")("--error-secondary",(null==t.theme?null:t.theme.secondary)||"#fff")},styles:['@keyframes hotToastErrorCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastFirstLineAnimation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes hotToastSecondLineAnimation{0%{opacity:0;transform:scale(0) rotate(90deg)}to{opacity:1;transform:scale(1) rotate(90deg)}}.hot-toast-error-icon[_ngcontent-%COMP%]{animation:hotToastErrorCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--error-primary,#ff4b4b);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon[_ngcontent-%COMP%]{animation-duration:0ms}}.hot-toast-error-icon[_ngcontent-%COMP%]:after, .hot-toast-error-icon[_ngcontent-%COMP%]:before{animation:hotToastFirstLineAnimation .15s ease-out forwards;animation-delay:.15s;background:var(--error-secondary,#fff);border-radius:3px;bottom:9px;content:"";height:2px;left:4px;opacity:0;position:absolute;width:12px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon[_ngcontent-%COMP%]:after, .hot-toast-error-icon[_ngcontent-%COMP%]:before{animation-duration:0ms}}.hot-toast-error-icon[_ngcontent-%COMP%]:before{animation:hotToastSecondLineAnimation .15s ease-out forwards;animation-delay:.18s;transform:rotate(90deg)}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon[_ngcontent-%COMP%]:before{animation-duration:0ms}}'],changeDetection:0}),e})(),Z=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["hot-toast-loader"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-loader-icon",3,"ngStyle"]],template:function(e,t){1&e&&(o.Rb(0,"div",0),o.Gc(1,"\n")),2&e&&o.mc("ngStyle",o.qc(1,M,(null==t.theme?null:t.theme.primary)||"#e0e0e0",(null==t.theme?null:t.theme.secondary)||"#616161"))},directives:[r.p],styles:["@keyframes hotToastRotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.hot-toast-loader-icon[_ngcontent-%COMP%]{animation:hotToastRotate 1s linear infinite;border:2px solid #e0e0e0;border-radius:100%;border-right-color:#616161;box-sizing:border-box;height:18px;padding-top:2px;width:18px}@media (prefers-reduced-motion:reduce){.hot-toast-loader-icon[_ngcontent-%COMP%]{animation-duration:5s}}"],changeDetection:0}),e})(),ee=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["hot-toast-indicator"]],inputs:{theme:"theme",type:"type"},decls:2,vars:1,consts:[[4,"ngIf"],[1,"hot-toast-indicator-wrapper"],[3,"theme"],[1,"hot-toast-status-wrapper"],[3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(e,t){1&e&&(o.Ec(0,B,9,2,"ng-container",0),o.Gc(1,"\n")),2&e&&o.mc("ngIf","blank"!==t.type)},directives:function(){return[r.o,Z,r.q,r.r,J,Y,te]},styles:[".hot-toast-indicator-wrapper[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;min-height:20px;min-width:20px;position:relative}.hot-toast-status-wrapper[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0}),e})(),te=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=o.Kb({type:e,selectors:[["hot-toast-warning"]],inputs:{theme:"theme"},decls:2,vars:4,consts:[[1,"hot-toast-warning-icon"]],template:function(e,t){1&e&&(o.Rb(0,"div",0),o.Gc(1,"\n")),2&e&&o.Bc("--warn-primary",(null==t.theme?null:t.theme.primary)||"#FFAB00")("--warn-secondary",(null==t.theme?null:t.theme.secondary)||"#fff")},styles:['@keyframes animate-warn-background{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes animate-warn-line{0%{height:0;opacity:0}40%{height:4.8px;opacity:1}to{height:8px;opacity:1}}.hot-toast-warning-icon[_ngcontent-%COMP%]{animation:animate-warn-background .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background-color:var(--warn-primary,#ffab00);border-radius:50%;display:block;height:20px;opacity:0;position:relative;transform:scale(0);width:20px}.hot-toast-warning-icon[_ngcontent-%COMP%]:after, .hot-toast-warning-icon[_ngcontent-%COMP%]:before{background-color:var(--warn-secondary,#fff);border-radius:3px;box-sizing:border-box;content:"";display:block;left:8.5px;position:absolute;width:2.5px}.hot-toast-warning-icon[_ngcontent-%COMP%]:after{animation:animate-warn-line .2s ease-out forwards;animation-delay:.2s;height:0;opacity:0;top:4px}.hot-toast-warning-icon[_ngcontent-%COMP%]:before{bottom:4px;height:2px}'],changeDetection:0}),e})(),ne=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:q,useValue:t}]}}}return e.\u0275mod=o.Ob({type:e}),e.\u0275inj=o.Nb({factory:function(t){return new(t||e)},imports:[[r.c,f]]}),e})()},dQau:function(e,t,n){"use strict";n.r(t),n.d(t,"print",function(){return o});var i=n("L2ys"),r=n("BLR7");function o(e){return Object(i.c)(e,{leave:s})}var s={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return c(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,i=u("(",c(e.variableDefinitions,", "),")"),r=c(e.directives," "),o=e.selectionSet;return n||r||i||"query"!==t?c([t,c([n,i]),r,o]," "):o},VariableDefinition:function(e){var t=e.directives;return e.variable+": "+e.type+u(" = ",e.defaultValue)+u(" ",c(t," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.name,n=e.arguments,i=e.directives,r=e.selectionSet;return c([u("",e.alias,": ")+t+u("(",c(n,", "),")"),c(i," "),r]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",c(e.directives," "))},InlineFragment:function(e){var t=e.directives,n=e.selectionSet;return c(["...",u("on ",e.typeCondition),c(t," "),n]," ")},FragmentDefinition:function(e){var t=e.typeCondition,n=e.variableDefinitions,i=e.directives,r=e.selectionSet;return"fragment ".concat(e.name).concat(u("(",c(n,", "),")")," ")+"on ".concat(t," ").concat(u("",c(i," ")," "))+r},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(r.c)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+c(e.values,", ")+"]"},ObjectValue:function(e){return"{"+c(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",c(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.operationTypes;return c(["schema",c(e.directives," "),l(t)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a(function(e){return c(["scalar",e.name,c(e.directives," ")]," ")}),ObjectTypeDefinition:a(function(e){var t=e.directives,n=e.fields;return c(["type",e.name,u("implements ",c(e.interfaces," & ")),c(t," "),l(n)]," ")}),FieldDefinition:a(function(e){var t=e.arguments,n=e.type,i=e.directives;return e.name+(p(t)?u("(\n",h(c(t,"\n")),"\n)"):u("(",c(t,", "),")"))+": "+n+u(" ",c(i," "))}),InputValueDefinition:a(function(e){var t=e.directives;return c([e.name+": "+e.type,u("= ",e.defaultValue),c(t," ")]," ")}),InterfaceTypeDefinition:a(function(e){var t=e.fields;return c(["interface",e.name,c(e.directives," "),l(t)]," ")}),UnionTypeDefinition:a(function(e){var t=e.types;return c(["union",e.name,c(e.directives," "),t&&0!==t.length?"= "+c(t," | "):""]," ")}),EnumTypeDefinition:a(function(e){var t=e.values;return c(["enum",e.name,c(e.directives," "),l(t)]," ")}),EnumValueDefinition:a(function(e){return c([e.name,c(e.directives," ")]," ")}),InputObjectTypeDefinition:a(function(e){var t=e.fields;return c(["input",e.name,c(e.directives," "),l(t)]," ")}),DirectiveDefinition:a(function(e){var t=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+e.name+(p(t)?u("(\n",h(c(t,"\n")),"\n)"):u("(",c(t,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")}),SchemaExtension:function(e){var t=e.operationTypes;return c(["extend schema",c(e.directives," "),l(t)]," ")},ScalarTypeExtension:function(e){return c(["extend scalar",e.name,c(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.directives,n=e.fields;return c(["extend type",e.name,u("implements ",c(e.interfaces," & ")),c(t," "),l(n)]," ")},InterfaceTypeExtension:function(e){var t=e.fields;return c(["extend interface",e.name,c(e.directives," "),l(t)]," ")},UnionTypeExtension:function(e){var t=e.types;return c(["extend union",e.name,c(e.directives," "),t&&0!==t.length?"= "+c(t," | "):""]," ")},EnumTypeExtension:function(e){var t=e.values;return c(["extend enum",e.name,c(e.directives," "),l(t)]," ")},InputObjectTypeExtension:function(e){var t=e.fields;return c(["extend input",e.name,c(e.directives," "),l(t)]," ")}};function a(e){return function(t){return c([t.description,e(t)],"\n")}}function c(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function l(e){return e&&0!==e.length?"{\n"+h(c(e,"\n"))+"\n}":""}function u(e,t,n){return t?e+t+(n||""):""}function h(e){return e&&" "+e.replace(/\n/g,"\n ")}function d(e){return-1!==e.indexOf("\n")}function p(e){return e&&e.some(d)}},"dWS+":function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a});var i=n("zpYP"),r=n("y4cC"),o=n("zsKT");function s(e,t,n,o,a,c,l){var u=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,h=n;if(!h&&u){var d=u[0];h=d&&d.loc&&d.loc.source}var p,f=o;!f&&u&&(f=u.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),f&&0===f.length&&(f=void 0),o&&n?p=o.map(function(e){return Object(r.a)(n,e)}):u&&(p=u.reduce(function(e,t){return t.loc&&e.push(Object(r.a)(t.loc.source,t.loc.start)),e},[]));var g=l;if(null==g&&null!=c){var m=c.extensions;Object(i.a)(m)&&(g=m)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:p||void 0,enumerable:Boolean(p)},path:{value:a||void 0,enumerable:Boolean(a)},nodes:{value:u||void 0},source:{value:h||void 0},positions:{value:f||void 0},originalError:{value:c},extensions:{value:g||void 0,enumerable:Boolean(g)}}),c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function a(e){var t=e.message;if(e.nodes)for(var n=0,i=e.nodes;n=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),c=r[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),b(i.showHidden)&&(i.showHidden=!1),b(i.depth)&&(i.depth=2),b(i.colors)&&(i.colors=!1),b(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=a),l(i,e,i.depth)}function a(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,i){if(e.customInspect&&n&&O(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return m(r)||(r=l(e,r,i)),r}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):f(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),_(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return u(n);if(0===s.length){if(O(n))return e.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(v(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return u(n)}var c,y="",C=!1,E=["{","}"];return d(n)&&(C=!0,E=["[","]"]),O(n)&&(y=" [Function"+(n.name?": "+n.name:"")+"]"),v(n)&&(y=" "+RegExp.prototype.toString.call(n)),w(n)&&(y=" "+Date.prototype.toUTCString.call(n)),_(n)&&(y=" "+u(n)),0!==s.length||C&&0!=n.length?i<0?v(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=C?function(e,t,n,i,r){for(var o=[],s=0,a=t.length;s60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,y,E)):E[0]+y+E[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,i,r,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?a=e.stylize(c.set?"[Getter/Setter]":"[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),x(i,r)||(s="["+r+"]"),a||(e.seen.indexOf(c.value)<0?(a=f(n)?l(e,c.value,null):l(e,c.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&r.match(/^\d+$/))return a;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function f(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function b(e){return void 0===e}function v(e){return y(e)&&"[object RegExp]"===C(e)}function y(e){return"object"==typeof e&&null!==e}function w(e){return y(e)&&"[object Date]"===C(e)}function _(e){return y(e)&&("[object Error]"===C(e)||e instanceof Error)}function O(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(b(r)&&(r=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(r)){var n=process.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else o[e]=function(){};return o[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=p,t.isNull=f,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=v,t.isObject=y,t.isDate=w,t.isError=_,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n("VNB6");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=n("5wz/"),t._extend=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},"das/":function(e,t,n){"use strict";function i(e){return null==e||e!=e}n.d(t,"a",function(){return i})},dtjE:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"i",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"c",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"j",function(){return u}),n.d(t,"g",function(){return h}),n.d(t,"h",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"l",function(){return f});const i="ADD_HEADER",r="REMOVE_HEADER",o="EDIT_HEADER_KEY",s="EDIT_HEADER_VALUE",a="EDIT_HEADER_ENABLED",c="SET_HEADERS";class l{constructor(e){this.windowId=e,this.type=i}}class u{constructor(e,t){this.payload=e,this.windowId=t,this.type=r}}class h{constructor(e,t){this.payload=e,this.windowId=t,this.type=o}}class d{constructor(e,t){this.payload=e,this.windowId=t,this.type=s}}class p{constructor(e,t){this.payload=e,this.windowId=t,this.type=a}}class f{constructor(e,t){this.payload=e,this.windowId=t,this.type=c}}},dwPZ:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("dWS+");function r(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;n[r]?e.reportError(new i.a(function(e){return'There can be only one input field named "'.concat(e,'".')}(r),[n[r],t.name])):n[r]=t.name}}}},e0LD:function(e,t,n){"use strict";var i=n("DAag"),r=n("eSPN"),o=n("9Qh4"),s=n("yfwS").methods,a=n("w6bI"),c=n("lLG3"),l=Function.prototype.apply,u=Function.prototype.call,h=Object.create,d=Object.defineProperties,p=s.on,f=s.emit;e.exports=function(e,t,n){var s,g,m,b,v,y,w,_,O,C,E,S,T,x,k,I=h(null);return g=!1!==t?t:isNaN(e.length)?1:e.length,n.normalizer&&(C=c(n.normalizer),m=C.get,b=C.set,v=C.delete,y=C.clear),null!=n.resolvers&&(k=a(n.resolvers)),x=m?r(function(t){var n,r,o=arguments;if(k&&(o=k(o)),null!==(n=m(o))&&hasOwnProperty.call(I,n))return E&&s.emit("get",n,o,this),I[n];if(r=1===o.length?u.call(e,this,o[0]):l.call(e,this,o),null===n){if(null!==(n=m(o)))throw i("Circular invocation","CIRCULAR_INVOCATION");n=b(o)}else if(hasOwnProperty.call(I,n))throw i("Circular invocation","CIRCULAR_INVOCATION");return I[n]=r,S&&s.emit("set",n,null,r),r},g):0===t?function(){var t;if(hasOwnProperty.call(I,"data"))return E&&s.emit("get","data",arguments,this),I.data;if(t=arguments.length?l.call(e,this,arguments):u.call(e,this),hasOwnProperty.call(I,"data"))throw i("Circular invocation","CIRCULAR_INVOCATION");return I.data=t,S&&s.emit("set","data",null,t),t}:function(t){var n,r,o=arguments;if(k&&(o=k(arguments)),r=String(o[0]),hasOwnProperty.call(I,r))return E&&s.emit("get",r,o,this),I[r];if(n=1===o.length?u.call(e,this,o[0]):l.call(e,this,o),hasOwnProperty.call(I,r))throw i("Circular invocation","CIRCULAR_INVOCATION");return I[r]=n,S&&s.emit("set",r,null,n),n},s={original:e,memoized:x,profileName:n.profileName,get:function(e){return k&&(e=k(e)),m?m(e):String(e[0])},has:function(e){return hasOwnProperty.call(I,e)},delete:function(e){var t;hasOwnProperty.call(I,e)&&(v&&v(e),t=I[e],delete I[e],T&&s.emit("delete",e,t))},clear:function(){var e=I;y&&y(),I=h(null),s.emit("clear",e)},on:function(e,t){return"get"===e?E=!0:"set"===e?S=!0:"delete"===e&&(T=!0),p.call(this,e,t)},emit:f,updateEnv:function(){e=s.original}},w=m?r(function(e){var t,n=arguments;k&&(n=k(n)),null!==(t=m(n))&&s.delete(t)},g):0===t?function(){return s.delete("data")}:function(e){return k&&(e=k(arguments)[0]),s.delete(e)},_=r(function(){var e,n=arguments;return 0===t?I.data:(k&&(n=k(n)),e=m?m(n):String(n[0]),I[e])}),O=r(function(){var e,n=arguments;return 0===t?s.has("data"):(k&&(n=k(n)),null!==(e=m?m(n):String(n[0]))&&s.has(e))}),d(x,{__memoized__:o(!0),delete:o(w),clear:o(s.clear),_get:o(_),_has:o(O)}),s}},e56X:function(e,t,n){const{noopTest:i,edit:r,merge:o}=n("rUJ1"),s={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:i,table:i,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};s.def=r(s.def).replace("label",s._label).replace("title",s._title).getRegex(),s.bullet=/(?:[*+-]|\d{1,9}\.)/,s.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,s.item=r(s.item,"gm").replace(/bull/g,s.bullet).getRegex(),s.list=r(s.list).replace(/bull/g,s.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+s.def.source+")").getRegex(),s._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",s._comment=//,s.html=r(s.html,"i").replace("comment",s._comment).replace("tag",s._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),s.paragraph=r(s._paragraph).replace("hr",s.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",s._tag).getRegex(),s.blockquote=r(s.blockquote).replace("paragraph",s.paragraph).getRegex(),s.normal=o({},s),s.gfm=o({},s.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),s.gfm.nptable=r(s.gfm.nptable).replace("hr",s.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",s._tag).getRegex(),s.gfm.table=r(s.gfm.table).replace("hr",s.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",s._tag).getRegex(),s.pedantic=o({},s.normal,{html:r("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",s._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:i,paragraph:r(s.normal._paragraph).replace("hr",s.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",s.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const a={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:i,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:i,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~"};a.em=r(a.em).replace(/punctuation/g,a._punctuation).getRegex(),a._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,a._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,a._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,a.autolink=r(a.autolink).replace("scheme",a._scheme).replace("email",a._email).getRegex(),a._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,a.tag=r(a.tag).replace("comment",s._comment).replace("attribute",a._attribute).getRegex(),a._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,a._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,a._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,a.link=r(a.link).replace("label",a._label).replace("href",a._href).replace("title",a._title).getRegex(),a.reflink=r(a.reflink).replace("label",a._label).getRegex(),a.normal=o({},a),a.pedantic=o({},a.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:r(/^!?\[(label)\]\((.*?)\)/).replace("label",a._label).getRegex(),reflink:r(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",a._label).getRegex()}),a.gfm=o({},a.normal,{escape:r(a.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\{const e=Object(u.b)();let t=[];return e.initialData.headers&&(t=Object.keys(e.initialData.headers).map(t=>({key:t,value:e.initialData.headers[t]?""+e.initialData.headers[t]:"",enabled:!0}))),t=[...t,{key:"",value:"",enabled:!0}],t};function d(e=h(),t){switch(t.type){case l.a:return[...e,{key:"",value:"",enabled:!0}];case l.k:return[...t.payload.headers];case l.d:return e.map((e,n)=>n===t.payload.i?{...e,key:t.payload.val}:e);case l.e:return e.map((e,n)=>n===t.payload.i?{...e,value:t.payload.val}:e);case l.c:return e.map((e,n)=>n===t.payload.i?{...e,enabled:t.payload.val}:e);case l.i:return e.filter((e,n)=>n!==t.payload);default:return e}}var p=n("L8IC"),f=n("Q41Y");function g(e={showHeaderDialog:!1,showVariableDialog:!1,showSubscriptionUrlDialog:!1,showHistoryDialog:!1,showAddToCollectionDialog:!1,showPreRequestDialog:!1},t){switch(t.type){case f.b:return Object.assign({},e,{showHeaderDialog:!e.showHeaderDialog});case f.f:return Object.assign({},e,{showVariableDialog:!e.showVariableDialog});case f.e:return Object.assign({},e,{showSubscriptionUrlDialog:!e.showSubscriptionUrlDialog});case f.c:return{...e,showHistoryDialog:!e.showHistoryDialog};case f.a:return{...e,showAddToCollectionDialog:!e.showAddToCollectionDialog};case f.d:return{...e,showPreRequestDialog:!e.showPreRequestDialog};default:return e}}var m=n("lgLN");function b(e={sdl:"",allowIntrospection:!0},t){switch(t.type){case m.f:case m.g:return{...e,introspection:t.payload};case m.i:return{...e,schema:t.payload};case m.e:return{...e,allowIntrospection:t.payload};case m.j:return{...e,sdl:t.payload.sdl};case m.h:return{...e,lastUpdatedAt:t.payload.epoch};default:return e}}var v=n("39k0");function y(e={showDocs:!1,isLoading:!1,docView:{view:"root",parentType:"Query",name:""}},t){switch(t.type){case v.g:return Object.assign({},e,{showDocs:!e.showDocs});case v.b:return Object.assign({},e,{isLoading:!0});case v.c:return Object.assign({},e,{isLoading:!1});case v.a:return{...e,docView:t.payload.docView};default:return e}}var w=n("Gjh+"),_=n("D08x");function O(e){const t={};return function(n=t,i){const o=Object.assign({},n);switch(i.type){case w.a:const{windowId:t,title:n,url:s,collectionId:a,windowIdInCollection:c,fixedTitle:l}=i.payload;return o[t]=JSON.parse(JSON.stringify(e(void 0,{type:_.c}))),o[t].layout.title=n,o[t].layout.hasDynamicTitle=!l,o[t].windowId=t,s&&(o[t].query.url=s),a&&(o[t].layout.collectionId=a),c&&(o[t].layout.windowIdInCollection=c),o;case w.m:const u={};return i.payload.forEach(e=>{u[e.windowId]={...e}}),u;case w.i:const h=i.payload.windowId;return o[h]&&delete o[h],Object.assign({},o);default:const d=i,p=o[d.windowId];if(!p)return d.type===r.b?function(e){return Object.keys(e).map(t=>{const n=e[t];return n.headers&&(n.headers=n.headers.map(e=>({...e,enabled:void 0===e.enabled||e.enabled}))),n}).reduce((e,t)=>(e[t.windowId]=t,e),{})}(o):o;const f=e(p,i);return o[d.windowId]={...f,windowId:d.windowId},o}}}var C=n("N7TE");function E(e={list:[]},t){switch(t.type){case C.a:const n={...e},i=void 0!==t.payload.limit?t.payload.limit:Object(u.b)().query_history_depth;return e.list.length>=i&&n.list.pop(),{...n,list:[{query:t.payload.query},...n.list]};case C.c:return{list:[]};default:return e}}var S=n("oE/m");function T(e={activeWindowId:"",windowIds:[],showImportCurlDialog:!1,showEditCollectionDialog:!1,showSettingsDialog:!1,showEnvironmentManager:!1,showPluginManager:!1},t){switch(t.type){case S.c:return{...e,activeWindowId:t.payload.windowId};case S.d:{const t=e.windowIds.findIndex(t=>t===e.activeWindowId);let n="";return n=t>=e.windowIds.length-1?e.windowIds[0]:e.windowIds[t+1],{...e,activeWindowId:n}}case S.e:{const t=e.windowIds.findIndex(t=>t===e.activeWindowId);let n="";return n=t<=0?e.windowIds[e.windowIds.length-1]:e.windowIds[t-1],{...e,activeWindowId:n}}case S.c:return{...e,activeWindowId:t.payload.windowId};case S.f:return{...e,windowIds:t.payload.ids};case S.a:const n=t.payload.currentPosition,i=t.payload.newPosition;if(n>-1&&n-1&&i{const e=Object(u.b)();return{enabled:!!e.initialData.preRequestScript,script:e.initialData.preRequestScript?""+e.initialData.preRequestScript:""}};function M(e=L(),t){switch(t.type){case N.b:return{...e,script:t.payload.script};case N.a:return{...e,enabled:t.payload.enabled};default:return e}}var F=n("qY48");const P=()=>{const e=Object(u.b)();return{enabled:!!e.initialData.postRequestScript,script:e.initialData.postRequestScript?""+e.initialData.postRequestScript:""}};function V(e=P(),t){switch(t.type){case F.b:return{...e,script:t.payload.script};case F.a:return{...e,enabled:t.payload.enabled};default:return e}}var G=n("9Oho");function B(e={closedWindows:[],installedPlugins:{},panels:[],uiActions:[]},t){const n=e.closedWindows.length;switch(t.type){case G.h:return{...e,closedWindows:50===n?[...e.closedWindows.slice(1),t.payload.window]:[...e.closedWindows,t.payload.window]};case G.g:return{...e,closedWindows:e.closedWindows.filter((e,t)=>te.id!==t.payload.panelId)};case G.o:return{...e,panels:e.panels.map(e=>(e.isActive=e.id===t.payload.panelId&&t.payload.isActive,e))};case G.c:return{...e,uiActions:[...e.uiActions,t.payload]};case G.l:return{...e,uiActions:e.uiActions.filter(e=>e.id!==t.payload.actionId)};default:return e}}var W=n("6EqW"),$=n("BTCl"),U=n("65Dl");const H=e=>e?e.query:{...Object(c.a)()},q=Object(r.p)(H,e=>e.response),Q=Object(r.p)(H,e=>e.responseStatus),K=Object(r.p)(H,e=>e.responseTime),X=Object(r.p)(H,e=>e.responseStatusText),Y=Object(r.p)(H,e=>e.responseHeaders),J=Object(r.p)(H,e=>e.isSubscribed),Z=Object(r.p)(H,e=>e.subscriptionResponseList),ee=Object(r.p)(H,e=>e.autoscrollSubscriptionResponse),te=Object(r.p)(H,e=>e.selectedOperation||null),ne=Object(r.p)(H,e=>e.operations||[]),ie=e=>e?e.docs:{showDocs:!1,isLoading:!1,docView:{view:"root",parentType:"Query",name:""}},re=Object(r.p)(ie,e=>e.showDocs),oe=Object(r.p)(ie,e=>e.docView||{view:"root",parentType:"Query",name:""}),se=Object(r.p)(ie,e=>e.isLoading),ae=e=>e?e.headers:{...h()},ce=e=>e?e.variables:Object(p.a)(),le=e=>e?e.layout:{isLoading:!1,title:"New window",hasDynamicTitle:!0},ue=(Object(r.p)(le,e=>e.isLoading),Object(r.p)(le,e=>e.title),e=>e?e.schema:{sdl:"",allowIntrospection:!0}),he=(Object(r.p)(ue,e=>e.schema),Object(r.p)(ue,e=>e.introspection)),de=Object(r.p)(ue,e=>e.allowIntrospection),pe=Object(r.p)(ue,e=>e.lastUpdatedAt),fe=(Object(r.p)(ue,e=>e.sdl),e=>e.collection),ge=Object(r.p)(fe,e=>e.list||[]),me=Object(r.p)(fe,e=>e.sortBy),be=Object(r.p)(ge,me,(e,t)=>{switch(t){case"a-z":return e.sort((e,t)=>{const n=e.title.toLowerCase()||e.updated_at,i=t.title.toLowerCase()||t.updated_at;if(n&&i){if(n>i)return 1;if(n{const n=e.title.toLowerCase()||e.updated_at,i=t.title.toLowerCase()||t.updated_at;if(n&&i){if(n>i)return-1;if(n{const n=e.updated_at,i=t.updated_at;if(n&&i){if(n>i)return-1;if(n{const n=e.updated_at,i=t.updated_at;if(n&&i){if(n>i)return 1;if(ne?e.preRequest:{...L()},ye=e=>e?e.postRequest:{...P()},we=Object(r.p)(e=>e?e.stream:{url:"",type:"",isConnected:!1,failed:null},e=>e.url?e.isConnected&&e.client instanceof EventSource?"connected":"uncertain":"");var _e=n("kvTO");const Oe=e=>e.local,Ce=Object(r.p)(Oe,e=>e.panels),Ee=Object(r.p)(Ce,e=>e.filter(e=>e.location===_e.b.SIDEBAR)),Se=Object(r.p)(Ce,e=>e.filter(e=>e.location===_e.b.HEADER)),Te=Object(r.p)(Oe,e=>e.uiActions),xe=Object(r.p)(Te,e=>e.filter(e=>e.location===_e.d.RESULT_PANE)),ke=[function(e){return Object($.a)(U.a)(e)},function(e){return(t,n)=>(o.a.production&&!window.__ENABLE_DEBUG_MODE__||W.a.log(n.type,n),window.__LAST_ACTION__=window.__LAST_ACTION__||[],window.__LAST_ACTION__.push(n.type),o.a.production&&window.__LAST_ACTION__.length>10&&window.__LAST_ACTION__.shift(),e(t,n))}],Ie=()=>({windows:O(Object(r.m)({layout:a,query:c.b,headers:d,variables:p.b,dialogs:g,schema:b,docs:y,history:E,stream:R,preRequest:M,postRequest:V})),windowsMeta:T,settings:x.a,donation:I,collection:z,environments:j.a,local:B}),De=new i.s("Registered Reducers"),ze=(Ie(),e=>t=>t.windows[e])},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("lJxs"),r=n("Cfvw"),o=n("zx2A");function s(e,t){return"function"==typeof t?n=>n.pipe(s((n,o)=>Object(r.a)(e(n,o)).pipe(Object(i.a)((e,i)=>t(n,e,o,i))))):t=>t.lift(new a(e))}class a{constructor(e){this.project=e}call(e,t){return t.subscribe(new c(e,this.project))}}class c extends o.b{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new o.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(o.c)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}},eNwd:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("3N8a");class r extends i.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}var o=n("IjjT");class s extends o.a{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,i=-1,r=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++i{const t={},n={type:e.type,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:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===R.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||B,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||B,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=X++,n.inputs=re(e.inputs,t),n.outputs=re(e.outputs),r&&r.forEach(e=>e(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(Z):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(ee):null,n})}function J(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(Z),i.pipeDefs=()=>n.map(ee)}function Z(e){return ae(e)||function(e){return e[$]||null}(e)}function ee(e){return function(e){return e[U]||null}(e)}const te={};function ne(e){const t={type:e.type,bootstrap:e.bootstrap||B,declarations:e.declarations||B,imports:e.imports||B,exports:e.exports||B,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&A(()=>{te[e.id]=e.type}),t}function ie(e,t){return A(()=>{const n=ce(e,!0);n.declarations=t.declarations||B,n.imports=t.imports||B,n.exports=t.exports||B})}function re(e,t){if(null==e)return G;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}const oe=Y;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ae(e){return e[W]||null}function ce(e,t){const n=e[H]||null;if(!n&&!0===t)throw new Error(`Type ${u(e)} does not have '\u0275mod' property.`);return n}function le(e){return Array.isArray(e)&&"object"==typeof e[1]}function ue(e){return Array.isArray(e)&&!0===e[1]}function he(e){return 0!=(8&e.flags)}function de(e){return 2==(2&e.flags)}function pe(e){return 1==(1&e.flags)}function fe(e){return null!==e.template}function ge(e,t){return e.hasOwnProperty(Q)?e[Q]:null}class me{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function be(){return ve}function ve(e){return e.type.prototype.ngOnChanges&&(e.setInput=we),ye}function ye(){const e=_e(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===G)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function we(e,t,n,i){const r=_e(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:G,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[n],c=s[a];o[a]=new me(c&&c.currentValue,t,s===G),e[i]=t}function _e(e){return e.__ngSimpleChanges__||null}let Oe;function Ce(e){Oe=e}function Ee(){return void 0!==Oe?Oe:"undefined"!=typeof document?document:void 0}function Se(e){return!!e.listen}be.ngInherit=!0;const Te={createRenderer:(e,t)=>Ee()};function xe(e){for(;Array.isArray(e);)e=e[0];return e}function ke(e,t){return xe(t[e])}function Ie(e,t){return xe(t[e.index])}function De(e,t){return e.data[t]}function ze(e,t){return e[t]}function je(e,t){const n=t[e];return le(n)?n:n[0]}function Ae(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Re(e){return 4==(4&e[2])}function Ne(e){return 128==(128&e[2])}function Le(e,t){return null==t?null:e[t]}function Me(e){e[18]=0}function Fe(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Pe={lFrame:ut(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ve(){return Pe.bindingsEnabled}function Ge(){return Pe.lFrame.lView}function Be(){return Pe.lFrame.tView}function We(e){Pe.lFrame.contextLView=e}function $e(){let e=Ue();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ue(){return Pe.lFrame.currentTNode}function He(e,t){const n=Pe.lFrame;n.currentTNode=e,n.isParent=t}function qe(){return Pe.lFrame.isParent}function Qe(){Pe.lFrame.isParent=!1}function Ke(){return Pe.isInCheckNoChangesMode}function Xe(e){Pe.isInCheckNoChangesMode=e}function Ye(){const e=Pe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Je(){return Pe.lFrame.bindingIndex}function Ze(){return Pe.lFrame.bindingIndex++}function et(e){const t=Pe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function tt(e,t){const n=Pe.lFrame;n.bindingIndex=n.bindingRootIndex=e,nt(t)}function nt(e){Pe.lFrame.currentDirectiveIndex=e}function it(e){const t=Pe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function rt(){return Pe.lFrame.currentQueryIndex}function ot(e){Pe.lFrame.currentQueryIndex=e}function st(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function at(e,t,n){if(n&I.SkipSelf){let i=t,r=e;for(;i=i.parent,!(null!==i||n&I.Host||(i=st(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}const i=Pe.lFrame=lt();return i.currentTNode=t,i.lView=e,!0}function ct(e){const t=lt(),n=e[1];Pe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function lt(){const e=Pe.lFrame,t=null===e?null:e.child;return null===t?ut(e):t}function ut(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ht(){const e=Pe.lFrame;return Pe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const dt=ht;function pt(){const e=ht();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ft(){return Pe.lFrame.selectedIndex}function gt(e){Pe.lFrame.selectedIndex=e}function mt(){const e=Pe.lFrame;return De(e.tView,e.selectedIndex)}function bt(){Pe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function vt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[a]<0&&(e[18]+=65536),(s>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(s)):o.call(s)}class Et{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function St(e,t,n){const i=Se(e);let r=0;for(;rt){s=o-1;break}}}for(;o>16,i=t;for(;n>0;)i=i[15],n--;return i}let At=!0;function Rt(e){const t=At;return At=e,t}let Nt=0;function Lt(e,t){const n=Ft(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Mt(i.data,e),Mt(t,null),Mt(i.blueprint,null));const r=Pt(e,t),o=e.injectorIndex;if(Dt(r)){const e=zt(r),n=jt(r,t),i=n[1].data;for(let r=0;r<8;r++)t[o+r]=n[e+r]|i[e+r]}return t[o+8]=r,o}function Mt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ft(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Pt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const e=r[1],t=e.type;if(i=2===t?e.declTNode:1===t?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Vt(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(K)&&(i=n[K]),null==i&&(i=n[K]=Nt++);const r=255&i;t.data[e+(r>>5)]|=1<=0?255&t:Ut:t}(n);if("function"==typeof o){if(!at(t,e,i))return i&I.Host?Gt(r,n,i):Bt(t,n,i,r);try{const e=o();if(null!=e||i&I.Optional)return e;y(n)}finally{dt()}}else if("number"==typeof o){let r=null,s=Ft(e,t),a=-1,c=i&I.Host?t[16][6]:null;for((-1===s||i&I.SkipSelf)&&(a=-1===s?Pt(e,t):t[s+8],-1!==a&&Xt(i,!1)?(r=t[1],s=zt(a),t=jt(a,t)):s=-1);-1!==s;){const e=t[1];if(Kt(o,s,e.data)){const e=Ht(s,t,n,r,i,c);if(e!==$t)return e}a=t[s+8],-1!==a&&Xt(i,t[1].data[s+8]===c)&&Kt(o,s,t)?(r=e,s=zt(a),t=jt(a,t)):s=-1}}}return Bt(t,n,i,r)}const $t={};function Ut(){return new Yt($e(),Ge())}function Ht(e,t,n,i,r,o){const s=t[1],a=s.data[e+8],c=qt(a,s,n,null==i?de(a)&&At:i!=s&&0!=(3&a.type),r&I.Host&&o===a);return null!==c?Qt(t,s,c,a):$t}function qt(e,t,n,i,r){const o=e.providerIndexes,s=t.data,a=1048575&o,c=e.directiveStart,l=o>>20,u=r?a+l:e.directiveEnd;for(let h=i?a:a+l;h=c&&e.type===n)return h}if(r){const e=s[c];if(e&&fe(e)&&e.type===n)return c}return null}function Qt(e,t,n,i){let r=e[n];const o=t.data;if(r instanceof Et){const s=r;s.resolving&&function(e,t){throw new m("200",`Circular dependency in DI detected for ${e}`)}(v(o[n]));const a=Rt(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?z(s.injectImpl):null;at(e,i,I.Default);try{r=e[n]=s.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const i=ve(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==c&&z(c),Rt(a),s.resolving=!1,dt()}}return r}function Kt(e,t,n){return!!(n[t+(e>>5)]&1<{const e=Jt(f(t));return e?e():null};let n=ge(t);if(null===n){const e=E(t);n=e&&e.factory}return n||null}function Zt(e){return A(()=>{const t=e.prototype.constructor,n=t[Q]||Jt(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const e=r[Q]||Jt(r);if(e&&e!==n)return e;r=Object.getPrototypeOf(r)}return e=>new e})}function en(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let i=0;for(;i{const i=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 i.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,i){const r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class nn{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=w({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const rn=new nn("AnalyzeForEntryComponents"),on=Function;function sn(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(e)?an(e,t):t(e))}function cn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ln(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function un(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,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]=i}}(e,i,t,n)),i}function dn(e,t){const n=pn(e,t);if(n>=0)return e[1|n]}function pn(e,t){return function(e,t,n){let i=0,r=e.length>>1;for(;r!==i;){const n=i+(r-i>>1),o=e[n<<1];if(t===o)return n<<1;o>t?r=n:i=n+1}return~(r<<1)}(e,t)}const fn={},gn=/\n/gm,mn=c({provide:String,useValue:c});let bn;function vn(e){const t=bn;return bn=e,t}function yn(e,t=I.Default){if(void 0===bn)throw new Error("inject() must be called from an injection context");return null===bn?j(e,void 0,t):bn.get(e,t&I.Optional?null:void 0,t)}function wn(e,t=I.Default){return(D||yn)(f(e),t)}const _n=wn;function On(e){const t=[];for(let n=0;n({token:e})),-1),Sn=Cn(tn("Optional"),8),Tn=Cn(tn("Self"),2),xn=Cn(tn("SkipSelf"),4),kn=Cn(tn("Host"),1);let In,Dn;function zn(e){var t;return(null===(t=function(){if(void 0===In&&(In=null,V.trustedTypes))try{In=V.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return In}())||void 0===t?void 0:t.createHTML(e))||e}function jn(e){var t;return(null===(t=function(){if(void 0===Dn&&(Dn=null,V.trustedTypes))try{Dn=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(t){}return Dn}())||void 0===t?void 0:t.createHTML(e))||e}class An{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Rn extends An{getTypeName(){return"HTML"}}class Nn extends An{getTypeName(){return"Style"}}class Ln extends An{getTypeName(){return"Script"}}class Mn extends An{getTypeName(){return"URL"}}class Fn extends An{getTypeName(){return"ResourceURL"}}function Pn(e){return e instanceof An?e.changingThisBreaksApplicationSecurity:e}function Vn(e,t){const n=Gn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Gn(e){return e instanceof An&&e.getTypeName()||null}function Bn(e){return new Rn(e)}function Wn(e){return new Nn(e)}function $n(e){return new Ln(e)}function Un(e){return new Mn(e)}function Hn(e){return new Fn(e)}class qn{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(zn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class Qn{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const t=this.inertDocument.createElement("body");e.appendChild(t)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=zn(e),t;const n=this.inertDocument.createElement("body");return n.innerHTML=zn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0Yn(e.trim())).join(", ")),this.buf.push(" ",t,'="',di(s),'"')}var i;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();ri.hasOwnProperty(t)&&!ei.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(di(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const ui=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hi=/([^\#-~ |!])/g;function di(e){return e.replace(/&/g,"&").replace(ui,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(hi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let pi;function fi(e,t){let n=null;try{pi=pi||function(e){const t=new Qn(e);return function(){try{return!!(new window.DOMParser).parseFromString(zn(""),"text/html")}catch(e){return!1}}()?new qn(t):t}(e);let i=t?String(t):"";n=pi.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=pi.getInertBodyElement(i)}while(i!==o);return zn((new li).sanitizeChildren(gi(n)||n))}finally{if(n){const e=gi(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function gi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function bi(e){const t=yi();return t?jn(t.sanitize(mi.HTML,e)||""):Vn(e,"HTML")?jn(Pn(e)):fi(Ee(),b(e))}function vi(e){const t=yi();return t?t.sanitize(mi.URL,e)||"":Vn(e,"URL")?Pn(e):Yn(b(e))}function yi(){const e=Ge();return e&&e[12]}function wi(e){return e.ngDebugContext}function _i(e){return e.ngOriginalError}function Oi(e,...t){e.error(...t)}class Ci{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Oi}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?wi(e)?wi(e):this._findContext(_i(e)):null}_findOriginalError(e){let t=_i(e);for(;t&&_i(t);)t=_i(t);return t}}function Ei(e,t){e.__ngContext__=t}const Si=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Ti(e){return{name:"window",target:e.ownerDocument.defaultView}}function xi(e){return{name:"document",target:e.ownerDocument}}function ki(e){return e instanceof Function?e():e}var Ii=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Di(e,t){return(void 0)(e,t)}function zi(e){const t=e[3];return ue(t)?t[3]:t}function ji(e){return Ri(e[13])}function Ai(e){return Ri(e[4])}function Ri(e){for(;null!==e&&!ue(e);)e=e[4];return e}function Ni(e,t,n,i,r){if(null!=i){let o,s=!1;ue(i)?o=i:le(i)&&(s=!0,i=i[0]);const a=xe(i);0===e&&null!==n?null==r?Wi(t,n,a):Bi(t,n,a,r||null,!0):1===e&&null!==n?Bi(t,n,a,r||null,!0):2===e?function(e,t,n){const i=Ui(e,t);i&&function(e,t,n,i){Se(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,i,r){const o=n[7];o!==xe(n)&&Ni(t,e,i,o,r);for(let s=10;s0&&(e[n-1][4]=i[4]);const s=ln(e,10+t);Zi(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=s[19];null!==a&&a.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function Pi(e,t){if(!(256&t[2])){const n=t[11];Se(n)&&n.destroyNode&&Zi(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Vi(e[1],e);for(;t;){let n=null;if(le(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)le(t)&&Vi(t[1],t),t=t[3];null===t&&(t=e),le(t)&&Vi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Vi(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 i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const e=i[r=n[o+1]];n[o].call(e)}if(null!==i){for(let e=r+1;eo?"":r[u+1].toLowerCase();const t=8&i?e:null;if(t&&-1!==ir(t,l,0)||2&i&&l!==e){if(cr(i))return!1;s=!0}}}}else{if(!s&&!cr(i)&&!cr(c))return!1;if(s&&cr(c))continue;s=!1,i=c|1&i}}return cr(i)||s}function cr(e){return 0==(1&e)}function lr(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""===r||cr(s)||(t+=dr(o,r),r=""),i=s,o=o||!cr(i);n++}return""!==r&&(t+=dr(o,r)),t}const fr={};function gr(e){mr(Be(),Ge(),ft()+e,Ke())}function mr(e,t,n,i){if(!i)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&yt(t,i,n)}else{const i=e.preOrderHooks;null!==i&&wt(t,i,0,n)}gt(n)}function br(e,t){return e<<17|t<<2}function vr(e){return e>>17&32767}function yr(e){return 2|e}function wr(e){return(131068&e)>>2}function _r(e,t){return-131069&e|t<<2}function Or(e){return 1|e}function Cr(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&mr(e,t,20,Ke()),n(i,r)}finally{gt(o)}}function zr(e,t,n){if(he(t)){const i=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(i,r,s)}}function Gr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Br(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Wr(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Yr(n)}}function Yr(e){for(let n=ji(e);null!==n;n=Ai(n))for(let e=10;e0&&Yr(t)}const t=e[1].components;if(null!==t)for(let n=0;n0&&Yr(i)}}function Jr(e,t){const n=je(t,e),i=n[1];!function(e,t){for(let n=t.length;nPromise.resolve(null))();function oo(e){return e[7]||(e[7]=[])}function so(e){return e.cleanup||(e.cleanup=[])}function ao(e,t,n){return(null===e||fe(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function co(e,t){const n=e[9],i=n?n.get(Ci,null):null;i&&i.handleError(t)}function lo(e,t,n,i,r){for(let o=0;othis.processProvider(n,e,t)),an([e],e=>this.processInjectorType(e,[],r)),this.records.set(po,So(void 0,this));const o=this.records.get(go);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof e?null:u(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=fn,n=I.Default){this.assertNotDestroyed();const i=vn(this);try{if(!(n&I.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(r=e)||"object"==typeof r&&r instanceof nn)&&O(e);t=n&&this.injectableDefInScope(n)?So(Co(e),mo):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&I.Self?wo():this.parent).get(e,t=n&I.Optional&&t===fn?null:t)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(u(e)),i)throw o;return function(e,t,n,i){const r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=u(t);if(Array.isArray(t))r=t.map(u).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}r=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(gn,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(o,e,"R3InjectorError",this.source)}throw o}finally{vn(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(u(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=f(e)))return!1;let i=E(e);const r=null==i&&e.ngModule||void 0,o=void 0===r?e:r,s=-1!==n.indexOf(o);if(void 0!==r&&(i=E(r)),null==i)return!1;if(null!=i.imports&&!s){let e;n.push(o);try{an(i.imports,i=>{this.processInjectorType(i,t,n)&&(void 0===e&&(e=[]),e.push(i))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,i||vo))}}this.injectorDefTypes.add(o),this.records.set(o,So(i.factory,mo));const a=i.providers;if(null!=a&&!s){const t=e;an(a,e=>this.processProvider(e,t,a))}return void 0!==r&&void 0!==e.providers}processProvider(e,t,n){let i=xo(e=f(e))?e:f(e&&e.provide);const r=function(e,t,n){return To(e)?So(void 0,e.useValue):So(Eo(e),mo)}(e);if(xo(e)||!0!==e.multi)this.records.get(i);else{let t=this.records.get(i);t||(t=So(void 0,mo,!0),t.factory=()=>On(t.multi),this.records.set(i,t)),i=e,t.multi.push(e)}this.records.set(i,r)}hydrate(e,t){var n;return t.value===mo&&(t.value=bo,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 Co(e){const t=O(e),n=null!==t?t.factory:ge(e);if(null!==n)return n;const i=E(e);if(null!==i)return i.factory;if(e instanceof nn)throw new Error(`Token ${u(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=un(t,"?");throw new Error(`Can't resolve all parameters for ${u(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[S]||e[x]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Eo(e,t,n){let i;if(xo(e)){const t=f(e);return ge(t)||Co(t)}if(To(e))i=()=>f(e.useValue);else if((r=e)&&r.useFactory)i=()=>e.useFactory(...On(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>wn(f(e.useExisting));else{const t=f(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ge(t)||Co(t);i=()=>new t(...On(e.deps))}var r;return i}function So(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function To(e){return null!==e&&"object"==typeof e&&mn in e}function xo(e){return"function"==typeof e}const ko=function(e,t,n){return function(e,t=null,n=null,i){const r=_o(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let Io=(()=>{class e{static create(e,t){return Array.isArray(e)?ko(e,t,""):ko(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=fn,e.NULL=new fo,e.\u0275prov=w({token:e,providedIn:"any",factory:()=>wn(po)}),e.__NG_ELEMENT_ID__=-1,e})();function Do(e,t){vt(Ae(e)[1],$e())}function zo(e){let t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0;const i=[e];for(;t;){let r;if(fe(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.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&&No(e,n);const o=r.viewQuery,s=r.contentQueries;if(o&&Ao(e,o),s&&Ro(e,s),l(e.inputs,r.inputs),l(e.declaredInputs,r.declaredInputs),l(e.outputs,r.outputs),fe(r)&&r.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(r.data.animation)}}const t=r.features;if(t)for(let i=0;i=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=kt(r.hostAttrs,n=kt(n,r.hostAttrs))}}(i)}function jo(e){return e===G?{}:e===B?[]:e}function Ao(e,t){const n=e.viewQuery;e.viewQuery=n?(e,i)=>{t(e,i),n(e,i)}:t}function Ro(e,t){const n=e.contentQueries;e.contentQueries=n?(e,i,r)=>{t(e,i,r),n(e,i,r)}:t}function No(e,t){const n=e.hostBindings;e.hostBindings=n?(e,i)=>{t(e,i),n(e,i)}:t}let Lo=null;function Mo(){if(!Lo){const e=V.Symbol;if(e&&e.iterator)Lo=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(xe(e[i.index])).target:i.index;if(Se(n)){let s=null;if(!a&&c&&(s=function(e,t,n,i){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,i.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=hs(i,t,o,!1);const e=n.listen(p.name||f,r,o);u.push(o,e),l&&l.push(r,m,g,g+1)}}else o=hs(i,t,o,!0),f.addEventListener(r,o,s),u.push(o),l&&l.push(r,m,g,s)}else o=hs(i,t,o,!1);const d=i.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,Pe.lFrame.contextLView))[8]}(e)}function ps(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let r=0;r=0}const _s={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Os(e){return e.substring(_s.key,_s.keyEnd)}function Cs(e,t){const n=_s.textEnd;return n===t?-1:(t=_s.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,_s.key=t,n),Es(e,t,n))}function Es(e,t,n){for(;t=0;n=Cs(t,n))hn(e,Os(t),!0)}function Is(e,t,n,i){const r=Ge(),o=Be(),s=et(2);o.firstUpdatePass&&js(o,e,s,i),t!==fr&&Bo(r,s,t)&&Ns(o,o.data[ft()],r,r[11],e,r[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=u(Pn(e)))),e}(t,n),i,s)}function Ds(e,t,n,i){const r=Be(),o=et(2);r.firstUpdatePass&&js(r,null,o,i);const s=Ge();if(n!==fr&&Bo(s,o,n)){const a=r.data[ft()];if(Fs(a,i)&&!zs(r,o)){let e=i?a.classesWithoutHost:a.stylesWithoutHost;null!==e&&(n=h(e,n||"")),Xo(r,a,s,n,i)}else!function(e,t,n,i,r,o,s,a){r===fr&&(r=vs);let c=0,l=0,u=0=e.expandoStartIndex}function js(e,t,n,i){const r=e.data;if(null===r[n+1]){const o=r[ft()],s=zs(e,n);Fs(o,i)&&null===t&&!s&&(t=!1),t=function(e,t,n,i){const r=it(e);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Rs(n=As(null,e,t,n,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==r)if(n=As(r,e,t,n,i),null===o){let n=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==wr(i))return e[vr(i)]}(e,t,i);void 0!==n&&Array.isArray(n)&&(n=As(null,e,t,n[1],i),n=Rs(n,t.attrs,i),function(e,t,n,i){e[vr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,n))}else o=function(e,t,n){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(u=!0)}else l=n;if(r)if(0!==c){const t=vr(e[a+1]);e[i+1]=br(t,a),0!==t&&(e[t+1]=_r(e[t+1],i)),e[a+1]=131071&e[a+1]|i<<17}else e[i+1]=br(a,0),0!==a&&(e[a+1]=_r(e[a+1],i)),a=i;else e[i+1]=br(c,0),0===a?a=i:e[c+1]=_r(e[c+1],i),c=i;u&&(e[i+1]=yr(e[i+1])),ys(e,l,i,!0),ys(e,l,i,!1),function(e,t,n,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&pn(o,t)>=0&&(n[i+1]=Or(n[i+1]))}(t,l,e,i,o),s=br(a,c),o?t.classBindings=s:t.styleBindings=s}(r,o,t,n,s,i)}}function As(e,t,n,i,r){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const t=e[r],o=Array.isArray(t),c=o?t[1]:t,l=null===c;let u=n[r+1];u===fr&&(u=l?vs:void 0);let h=l?dn(u,i):c===i?u:void 0;if(o&&!Ms(h)&&(h=dn(t,i)),Ms(h)&&(a=h,s))return a;const d=e[r+1];r=s?vr(d):wr(d)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=dn(e,i))}return a}function Ms(e){return void 0!==e}function Fs(e,t){return 0!=(e.flags&(t?16:32))}function Ps(e,t=""){const n=Ge(),i=Be(),r=e+20,o=i.firstCreatePass?Sr(i,r,1,t,null):i.data[r],s=n[r]=function(e,t){return Se(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Qi(i,n,s,o),He(o,!1)}function Vs(e){return Gs("",e,""),Vs}function Gs(e,t,n){const i=Ge(),r=Uo(i,e,t,n);return r!==fr&&uo(i,ft(),r),Gs}function Bs(e,t,n,i,r){const o=Ge(),s=function(e,t,n,i,r,o){const s=Wo(e,Je(),n,r);return et(2),s?t+b(n)+i+b(r)+o:fr}(o,e,t,n,i,r);return s!==fr&&uo(o,ft(),s),Bs}function Ws(e,t,n){Ds(hn,ks,Uo(Ge(),e,t,n),!0)}function $s(e,t,n){const i=Ge();return Bo(i,Ze(),t)&&Fr(Be(),mt(),i,e,t,i[11],n,!0),$s}function Us(e,t,n){const i=Ge();if(Bo(i,Ze(),t)){const r=Be(),o=mt();Fr(r,o,i,e,t,ao(it(r.data),o,i),n,!0)}return Us}const Hs=void 0;var qs=["en",[["a","p"],["AM","PM"],Hs],[["AM","PM"],Hs,Hs],[["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"]],Hs,[["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"]],Hs,[["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}",Hs,"{1} 'at' {0}",Hs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let Qs={};function Ks(e,t,n){"string"!=typeof t&&(n=t,t=e[ea.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Qs[t]=e,n&&(Qs[t][ea.ExtraData]=n)}function Xs(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Zs(t);if(n)return n;const i=t.split("-")[0];if(n=Zs(i),n)return n;if("en"===i)return qs;throw new Error(`Missing locale data for the locale "${e}".`)}function Ys(e){return Xs(e)[ea.CurrencyCode]||null}function Js(e){return Xs(e)[ea.PluralCase]}function Zs(e){return e in Qs||(Qs[e]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[e]),Qs[e]}var ea=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});let ta="en-US";function na(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e} [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(ta=e.toLowerCase().replace(/_/g,"-"))}function ia(e,t,n,i,r){if(e=f(e),Array.isArray(e))for(let o=0;o>20;if(xo(e)||!e.multi){const i=new Et(c,r,Qo),p=sa(a,t,r?u:u+d,h);-1===p?(Vt(Lt(l,s),o,a),ra(o,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=sa(a,t,u+d,h),f=sa(a,t,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(r&&!m||!r&&!g){Vt(Lt(l,s),o,a);const u=function(e,t,n,i,r){const o=new Et(e,n,Qo);return o.multi=[],o.index=t,o.componentProviders=0,oa(o,r,i&&!n),o}(r?ca:aa,n.length,r,i,c);!r&&m&&(n[f].providerFactory=u),ra(o,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),s.push(u)}else ra(o,e,p>-1?p:f,oa(n[r?f:p],c,!r&&i));!r&&i&&m&&n[f].componentProviders++}}}function ra(e,t,n,i){const r=xo(t);if(r||t.useClass){const o=(t.useClass||t).prototype.ngOnDestroy;if(o){const s=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const e=s.indexOf(n);-1===e?s.push(n,[i,o]):s[e+1].push(i,o)}else s.push(n,o)}}}function oa(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function sa(e,t,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(e,t,n){const i=Be();if(i.firstCreatePass){const r=fe(e);ia(n,i.data,i.blueprint,r,!0),ia(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}class ha{}class da{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${u(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let pa=(()=>{class e{}return e.NULL=new da,e})();function fa(...e){}function ga(e,t){return new ba(Ie(e,t))}const ma=function(){return ga($e(),Ge())};let ba=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=ma,e})();function va(e){return e instanceof ba?e.nativeElement:e}class ya{}let wa=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>_a(),e})();const _a=function(){const e=Ge(),t=je($e().index,e);return function(e){return e[11]}(le(t)?t:e)};let Oa=(()=>{class e{}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null}),e})();class Ca{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Ea=new Ca("11.2.4");class Sa{constructor(){}supports(e){return Po(e)}create(e){return new xa(e)}}const Ta=(e,t)=>t;class xa{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||Ta}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,r=null;for(;t||n;){const o=!n||t&&t.currentIndex{i=this._trackByFn(t,e),null!==r&&Object.is(r.trackById,i)?(o&&(r=this._verifyReinsertion(r,e,i,t)),Object.is(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,i,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;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=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new ka(t,n),r,i),e}_verifyReinsertion(e,t,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),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 i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,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 i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Da),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||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Da),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 ka{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 Ia{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)&&Object.is(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 Da{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new Ia,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 za(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),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 i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Ra(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){Object.is(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 Ra{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}}function Na(){return new La([new Sa])}let La=(()=>{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=>e.create(t,n||Na()),deps:[[e,new xn,new Sn]]}}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=w({token:e,providedIn:"root",factory:Na}),e})();function Ma(){return new Fa([new ja])}let Fa=(()=>{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=>e.create(t,n||Ma()),deps:[[e,new xn,new Sn]]}}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=w({token:e,providedIn:"root",factory:Ma}),e})();function Pa(e,t,n,i,r=!1){for(;null!==n;){const o=t[n.index];if(null!==o&&i.push(xe(o)),ue(o))for(let e=10;e-1&&(Fi(e,n),ln(t,n))}this._attachedToViewContainer=!1}Pi(this._lView[1],this._lView)}onDestroy(e){Lr(this._lView[1],this._lView,null,e)}markForCheck(){eo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){to(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Xe(!0);try{to(e,t,n)}finally{Xe(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,Zi(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class Ga extends Va{constructor(e){super(e),this._view=e}detectChanges(){no(this._view)}checkNoChanges(){!function(e){Xe(!0);try{no(e)}finally{Xe(!1)}}(this._view)}get context(){return null}}const Ba=$a;let Wa=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ba,e.__ChangeDetectorRef__=!0,e})();function $a(e=!1){return function(e,t,n){if(!n&&de(e)){const n=je(e.index,t);return new Va(n,n)}return 47&e.type?new Va(t[16],t):null}($e(),Ge(),e)}const Ua=[new ja],Ha=new La([new Sa]),qa=new Fa(Ua),Qa=function(){return Ja($e(),Ge())};let Ka=(()=>{class e{}return e.__NG_ELEMENT_ID__=Qa,e})();const Xa=Ka,Ya=class extends Xa{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Er(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),xr(t,n,e),new Va(n)}};function Ja(e,t){return 4&e.type?new Ya(t,e,ga(e,t)):null}class Za{}class ec{}const tc=function(){return ac($e(),Ge())};let nc=(()=>{class e{}return e.__NG_ELEMENT_ID__=tc,e})();const ic=nc,rc=class extends ic{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new Yt(this._hostTNode,this._hostLView)}get parentInjector(){const e=Pt(this._hostTNode,this._hostLView);if(Dt(e)){const t=jt(e,this._hostLView),n=zt(e);return new Yt(t[1].data[n+8],t)}return new Yt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=oc(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,r){const o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){const e=o.get(Za,null);e&&(r=e)}const s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}insert(e,t){const n=e._lView,i=n[1];if(ue(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],i=new rc(t,t[6],t[3]);i.detach(i.indexOf(e))}}const r=this._adjustIndex(t),o=this._lContainer;!function(e,t,n,i){const r=10+i,o=n.length;i>0&&(n[r-1][4]=t),iSi});class dc extends ha{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(pr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return uc(this.componentDef.inputs)}get outputs(){return uc(this.componentDef.outputs)}create(e,t,n,i){const r=(i=i||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const o=e.get(n,cc,r);return o!==cc||i===cc?o:t.get(n,i,r)}}}(e,i.injector):e,o=r.get(ya,Te),s=r.get(Oa,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(e,t,n){if(Se(e))return e.selectRootElement(t,n===N.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Li(o.createRenderer(null,this.componentDef),c,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Si,clean:ro,playerHandler:null,flags:0},d=Nr(0,null,null,1,0,null,null,null,null,null),p=Er(null,d,h,u,null,null,o,a,s,r);let f,g;ct(p);try{const e=function(e,t,n,i,r,o){const s=n[1];n[20]=e;const a=Sr(s,20,2,"#host",null),c=a.mergedAttrs=t.hostAttrs;null!==c&&(ho(a,c,!0),null!==e&&(St(r,e,c),null!==a.classes&&nr(r,e,a.classes),null!==a.styles&&tr(r,e,a.styles)));const l=i.createRenderer(e,t),u=Er(n,Rr(t),null,t.onPush?64:16,n[20],a,i,l,null,null);return s.firstCreatePass&&(Vt(Lt(a,n),s,t.type),Br(s,a),$r(a,n.length,1)),Zr(n,u),n[20]=u}(l,this.componentDef,p,o,a);if(l)if(n)St(a,l,["ng-version",Ea.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let i=1,r=2;for(;i0&&nr(a,l,t.join(" "))}if(g=De(d,20),void 0!==t){const e=g.projection=[];for(let n=0;ne(s,t)),t.contentQueries){const e=$e();t.contentQueries(1,s,e.directiveStart)}const a=$e();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(gt(a.index),Vr(n[1],a,0,a.directiveStart,a.directiveEnd,t),Gr(t,s)),s}(e,this.componentDef,p,h,[Do]),xr(d,p,null)}finally{pt()}return new pc(this.componentType,f,ga(g,p),p,g)}}class pc extends class{}{constructor(e,t,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=t,this.hostView=this.changeDetectorRef=new Ga(i),this.componentType=e}get injector(){return new Yt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const fc=new Map;class gc extends Za{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new lc(this);const n=ce(e),i=e[q]||null;i&&na(i),this._bootstrapComponents=ki(n.bootstrap),this._r3Injector=_o(e,t,[{provide:Za,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],u(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Io.THROW_IF_NOT_FOUND,n=I.Default){return e===Io||e===Za||e===po?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 mc extends ec{constructor(e){super(),this.moduleType=e,null!==ce(e)&&function(e){const t=new Set;!function e(n){const i=ce(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${u(t)} vs ${u(t.name)}`)}(r,fc.get(r),n),fc.set(r,n));const o=ki(i.imports);for(const s of o)t.has(s)||(t.add(s),e(s))}(e)}(e)}create(e){return new gc(this.moduleType,e)}}function bc(e,t,n){const i=Ye()+e,r=Ge();return r[i]===fr?Go(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function vc(e,t,n,i){return Oc(Ge(),Ye(),e,t,n,i)}function yc(e,t,n,i,r){return Cc(Ge(),Ye(),e,t,n,i,r)}function wc(e,t,n,i,r,o){return function(e,t,n,i,r,o,s,a){const c=t+n;return function(e,t,n,i,r){const o=Wo(e,t,n,i);return Bo(e,t+2,r)||o}(e,c,r,o,s)?Go(e,c+3,a?i.call(a,r,o,s):i(r,o,s)):_c(e,c+3)}(Ge(),Ye(),e,t,n,i,r,o)}function _c(e,t){const n=e[t];return n===fr?void 0:n}function Oc(e,t,n,i,r,o){const s=t+n;return Bo(e,s,r)?Go(e,s+1,o?i.call(o,r):i(r)):_c(e,s+1)}function Cc(e,t,n,i,r,o,s){const a=t+n;return Wo(e,a,r,o)?Go(e,a+2,s?i.call(s,r,o):i(r,o)):_c(e,a+2)}function Ec(e,t){const n=Be();let i;const r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new m("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const o=i.factory||(i.factory=ge(i.type)),s=z(Qo);try{const e=Rt(!1),t=o();return Rt(e),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Ge(),r,t),t}finally{z(s)}}function Sc(e,t,n){const i=e+20,r=Ge(),o=ze(r,i);return kc(r,xc(r,i)?Oc(r,Ye(),t,o.transform,n,o):o.transform(n))}function Tc(e,t,n,i){const r=e+20,o=Ge(),s=ze(o,r);return kc(o,xc(o,r)?Cc(o,Ye(),t,s.transform,n,i,s):s.transform(n,i))}function xc(e,t){return e[1].data[t].pure}function kc(e,t){return Fo.isWrapped(t)&&(t=Fo.unwrap(t),e[Je()]=fr),t}const Ic=class extends i.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,o=e=>null,s=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(o=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(o=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,o,s);return e instanceof r.a&&e.add(a),a}};function Dc(){return this._results[Mo()]()}class zc{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Mo(),n=zc.prototype;n[t]||(n[t]=Dc)}get changes(){return this._changes||(this._changes=new Ic)}get(e){return this._results[e]}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,t){this.dirty=!1;const n=sn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i0)i.push(s[e/2]);else{const r=o[e+1],s=t[-n];for(let e=10;e{class e{constructor(e){this.appInits=e,this.resolve=fa,this.reject=fa,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)(wn(Xc,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const Jc=new nn("AppId"),Zc={provide:Jc,useFactory:function(){return`${el()}${el()}${el()}`},deps:[]};function el(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const tl=new nn("Platform Initializer"),nl=new nn("Platform ID"),il=new nn("appBootstrapListener");let rl=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const ol=new nn("LocaleId"),sl=new nn("DefaultCurrencyCode");class al{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const cl=function(e){return new mc(e)},ll=cl,ul=function(e){return Promise.resolve(cl(e))},hl=function(e){const t=cl(e),n=ki(ce(e).declarations).reduce((e,t)=>{const n=ae(t);return n&&e.push(new dc(n)),e},[]);return new al(t,n)},dl=hl,pl=function(e){return Promise.resolve(hl(e))};let fl=(()=>{class e{constructor(){this.compileModuleSync=ll,this.compileModuleAsync=ul,this.compileModuleAndAllComponentsSync=dl,this.compileModuleAndAllComponentsAsync=pl}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const gl=(()=>Promise.resolve(0))();function ml(e){"undefined"==typeof Zone?gl.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class bl{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ic(!1),this.onMicrotaskEmpty=new Ic(!1),this.onStable=new Ic(!1),this.onError=new Ic(!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.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&t,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=V.requestAnimationFrame,t=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(V,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,wl(e),yl(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),wl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,o,s,a)=>{try{return _l(e),n.invokeTask(r,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Ol(e)}},onInvoke:(n,i,r,o,s,a,c)=>{try{return _l(e),n.invoke(r,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ol(e)}},onHasTask:(t,n,i,r)=>{t.hasTask(i,r),n===i&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,wl(e),yl(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,i,r)=>(t.handleError(i,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bl.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(bl.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,i){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,vl,fa,fa);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)}}const vl={};function yl(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 wl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function _l(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ol(e){e._nesting--,yl(e)}class Cl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ic,this.onMicrotaskEmpty=new Ic,this.onStable=new Ic,this.onError=new Ic}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,i){return e.apply(t,n)}}let El=(()=>{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:()=>{bl.assertNotInAngularZone(),ml(()=>{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())ml(()=>{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 i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,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)(wn(bl))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})(),Sl=(()=>{class e{constructor(){this._applications=new Map,Il.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 Il.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();class Tl{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function xl(e){Il=e}let kl,Il=new Tl,Dl=!0,zl=!1;function jl(){return zl=!0,Dl}function Al(){if(zl)throw new Error("Cannot enable prod mode after platform setup.");Dl=!1}const Rl=new nn("AllowMultipleToken");class Nl{constructor(e,t){this.name=e,this.token=t}}function Ll(e,t,n=[]){const i=`Platform: ${t}`,r=new nn(i);return(t=[])=>{let o=Ml();if(!o||o.injector.get(Rl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0},{provide:go,useValue:"platform"});!function(e){if(kl&&!kl.destroyed&&!kl.injector.get(Rl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");kl=e.get(Fl);const t=e.get(tl,null);t&&t.forEach(e=>e())}(Io.create({providers:e,name:i}))}return function(e){const t=Ml();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 Ml(){return kl&&!kl.destroyed?kl:null}let Fl=(()=>{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 Cl:("zone.js"===e?void 0:e)||new bl({enableLongStackTrace:jl(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),i=[{provide:bl,useValue:n}];return n.run(()=>{const t=Io.create({providers:i,parent:this.injector,name:e.moduleType.name}),r=e.create(t),o=r.injector.get(Ci,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const e=n.onError.subscribe({next:e=>{o.handleError(e)}});r.onDestroy(()=>{Gl(this._modules,r),e.unsubscribe()})}),function(e,t,n){try{const i=n();return rs(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(o,n,()=>{const e=r.injector.get(Yc);return e.runInitializers(),e.donePromise.then(()=>(na(r.injector.get(ol,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Pl({},t);return function(e,t,n){const i=new mc(n);return Promise.resolve(i)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Vl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${u(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)(wn(Io))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Pl(e,t){return Array.isArray(t)?t.reduce(Pl,e):Object.assign(Object.assign({},e),t)}let Vl=(()=>{class e{constructor(e,t,n,i,r){this._zone=e,this._injector=t,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new o.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new o.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{bl.assertNotInAngularZone(),ml(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{bl.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(c,l.pipe(Object(a.a)()))}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 ha?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Za),r=n.create(Io.NULL,[],t||n.selector,i),o=r.location.nativeElement,s=r.injector.get(El,null),a=s&&r.injector.get(Sl);return s&&a&&a.registerApplication(o,s),r.onDestroy(()=>{this.detachView(r.hostView),Gl(this.components,r),a&&a.unregisterApplication(o)}),this._loadComponent(r),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()}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;Gl(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(il,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(wn(bl),wn(Io),wn(Ci),wn(pa),wn(Yc))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Gl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Bl{}class Wl{}const $l={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ul=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||$l}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("zn8P")(t).then(e=>e[i]).then(e=>Hl(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+r]).then(e=>Hl(e,t,i))}}return e.\u0275fac=function(t){return new(t||e)(wn(fl),wn(Wl,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Hl(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}const ql=function(e){return null},Ql=Ll(null,"core",[{provide:nl,useValue:"unknown"},{provide:Fl,deps:[Io]},{provide:Sl,deps:[]},{provide:rl,deps:[]}]),Kl=[{provide:Vl,useClass:Vl,deps:[bl,Io,Ci,pa,Yc]},{provide:hc,deps:[bl],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Yc,useClass:Yc,deps:[[new Sn,Xc]]},{provide:fl,useClass:fl,deps:[]},Zc,{provide:La,useFactory:function(){return Ha},deps:[]},{provide:Fa,useFactory:function(){return qa},deps:[]},{provide:ol,useFactory:function(e){return na(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new En(ol),new Sn,new xn]]},{provide:sl,useValue:"USD"}];let Xl=(()=>{class e{constructor(e){}}return e.\u0275mod=ne({type:e}),e.\u0275inj=_({factory:function(t){return new(t||e)(wn(Vl))},providers:Kl}),e})()},fpqv:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("fXoL"),r=n("8mtn"),o=n("ofXK");let s=(()=>{class e{constructor(){this.name="",this.size="",this.styles={}}ngOnInit(){this.size&&(this.styles={width:this.size,height:this.size})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["app-icon"]],inputs:{name:"name",size:"size"},decls:2,vars:2,consts:[[1,"app-icon",3,"name","ngStyle"]],template:function(e,t){1&e&&(i.Rb(0,"i-feather",0),i.Gc(1,"\n")),2&e&&i.mc("name",t.name)("ngStyle",t.styles)},directives:[r.a,o.p],encapsulation:2}),e})()},ftEH:function(e,t,n){"use strict";var i=n("NSes"),r=Object.create;e.exports=function(e){var t=0,n=[[],[]],o=r(null);return{get:function(t){for(var r,o=0,s=n;o1&&e.reportError(new i.a("This anonymous operation must be the only defined operation.",n))}}}},g9RT:function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"e",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return c}),n.d(t,"j",function(){return l}),n.d(t,"g",function(){return u}),n.d(t,"k",function(){return h}),n.d(t,"l",function(){return d}),n.d(t,"i",function(){return p}),n.d(t,"h",function(){return f});const i="SET_STREAM_SETTING",r="SET_STREAM_CLIENT",o="START_STREAM_CLIENT",s="STOP_STREAM_CLIENT",a="SET_STREAM_FAILED",c="SET_STREAM_CONNECTED";class l{constructor(e,t){this.windowId=e,this.payload=t,this.type=i}}class u{constructor(e,t){this.windowId=e,this.payload=t,this.type=r}}class h{constructor(e,t={backoff:200}){this.windowId=e,this.payload=t,this.type=o}}class d{constructor(e,t){this.windowId=e,this.payload=t,this.type=s}}class p{constructor(e,t){this.windowId=e,this.payload=t,this.type=a}}class f{constructor(e,t){this.windowId=e,this.payload=t,this.type=c}}},gI7C:function(e,t,n){"use strict";n.r(t),n.d(t,"getASTNodeAtPosition",function(){return r}),n.d(t,"pointToOffset",function(){return o});var i=n("L2ys");function r(e,t,n){const r=o(e,n);let s;return Object(i.c)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=r&&r<=e.loc.end))return!1;s=e},leave(e){if(e.loc&&e.loc.start<=r&&r<=e.loc.end)return!1}}),s}function o(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map(e=>e.length+1).reduce((e,t)=>e+t,0)}},gMQV:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"m",function(){return r}),n.d(t,"v",function(){return o}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return a}),n.d(t,"o",function(){return c}),n.d(t,"k",function(){return l}),n.d(t,"n",function(){return u}),n.d(t,"u",function(){return h}),n.d(t,"i",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"p",function(){return f}),n.d(t,"b",function(){return g}),n.d(t,"q",function(){return m}),n.d(t,"x",function(){return b}),n.d(t,"f",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"s",function(){return w}),n.d(t,"r",function(){return _}),n.d(t,"w",function(){return O}),n.d(t,"l",function(){return C}),n.d(t,"h",function(){return E}),n.d(t,"j",function(){return S}),n.d(t,"t",function(){return T});const i="CREATE_COLLECTION_AND_SAVE_QUERY_TO_COLLECTION",r="SAVE_QUERY_TO_COLLECTION",o="UPDATE_QUERY_IN_COLLECTION",s="DELETE_QUERY_FROM_COLLECTION",a="DELETE_COLLECTION",c="SET_COLLECTIONS",l="LOAD_COLLECTIONS",u="SET_ACTIVE_COLLECTION",h="UPDATE_COLLECTION",d="IMPORT_COLLECTION",p="EXPORT_COLLECTION",f="SORT_COLLECTIONS";class g{constructor(e){this.payload=e,this.type=i}}class m{constructor(e){this.payload=e,this.type=r}}class b{constructor(e){this.payload=e,this.type=o}}class v{constructor(e){this.payload=e,this.type=s}}class y{constructor(e){this.payload=e,this.type=a}}class w{constructor(e){this.payload=e,this.type=c}}class _{constructor(e){this.payload=e,this.type=u}}class O{constructor(e){this.payload=e,this.type=h}}class C{constructor(){this.type=l}}class E{constructor(e){this.payload=e,this.type=p}}class S{constructor(){this.type=d}}class T{constructor(e){this.payload=e,this.type=f}}},gQ7D:function(e,t,n){"use strict";e.exports=n("tgdo")},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("2fFW"),r=n("NJ4a");const o={closed:!0,next(e){},error(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete(){}}},gWfR:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"d",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"f",function(){return a}),n.d(t,"g",function(){return c}),n.d(t,"e",function(){return l});const i="START_LOADING",r="STOP_LOADING",o="SET_WINDOW_NAME",s="NOTIFY_EXPERIMENTAL";class a{constructor(e){this.windowId=e,this.type=i}}class c{constructor(e){this.windowId=e,this.type=r}}class l{constructor(e,t){this.windowId=e,this.payload=t,this.type=o}}},gggk:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("dWS+");function r(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new i.a(function(e){return e?'Subscription "'.concat(e,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field."}(t.name&&t.name.value),t.selectionSet.selections.slice(1)))}}}},herJ:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("dWS+");function r(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(r){var o=r.name.value;if(!n||!n.getDirective(o))return t[o]?e.reportError(new i.a(function(e){return'There can be only one directive named "'.concat(e,'".')}(o),[t[o],r.name])):t[o]=r.name,!1;e.reportError(new i.a(function(e){return'Directive "'.concat(e,'" already exists in the schema. It cannot be redefined.')}(o),r.name))}}}},hliF:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("dWS+"),r=n("L2ys"),o=n("axIb"),s=n("4RMZ");function a(e,t){var n=[],a=new s.a(e);return Object(r.c)(t,Object(r.e)(a,{Field:function(e){var t=a.getFieldDef();if(t&&t.isDeprecated){var r=a.getParentType();if(r){var o=t.deprecationReason;n.push(new i.a("The field ".concat(r.name,".").concat(t.name," is deprecated.")+(o?" "+o:""),e))}}},EnumValue:function(e){var t=a.getEnumValue();if(t&&t.isDeprecated){var r=Object(o.A)(a.getInputType());if(r){var s=t.deprecationReason;n.push(new i.a("The enum value ".concat(r.name,".").concat(t.name," is deprecated.")+(s?" "+s:""),e))}}}})),n}},hyX7:function(e,t,n){const i=n("SbYC"),{defaults:r}=n("vbtb"),{inline:o}=n("e56X"),{findClosingBracket:s,escape:a}=n("rUJ1");e.exports=class e{constructor(e,t){if(this.options=t||r,this.links=e,this.rules=o.normal,this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=o.pedantic:this.options.gfm&&(this.rules=this.options.breaks?o.breaks:o.gfm)}static get rules(){return o}static output(t,n,i){return new e(n,i).output(t)}output(t){let n,i,r,o,c,l,u="";for(;t;)if(c=this.rules.escape.exec(t))t=t.substring(c[0].length),u+=a(c[1]);else if(c=this.rules.tag.exec(t))!this.inLink&&/^/i.test(c[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(c[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(c[0])&&(this.inRawBlock=!1),t=t.substring(c[0].length),u+=this.renderer.html(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):a(c[0]):c[0]);else if(c=this.rules.link.exec(t)){const i=s(c[2],"()");if(i>-1){const e=(0===c[0].indexOf("!")?5:4)+c[1].length+i;c[2]=c[2].substring(0,i),c[0]=c[0].substring(0,e).trim(),c[3]=""}t=t.substring(c[0].length),this.inLink=!0,r=c[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r),n?(r=n[1],o=n[3]):o=""):o=c[3]?c[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(c,{href:e.escapes(r),title:e.escapes(o)}),this.inLink=!1}else if((c=this.rules.reflink.exec(t))||(c=this.rules.nolink.exec(t))){if(t=t.substring(c[0].length),n=(c[2]||c[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){u+=c[0].charAt(0),t=c[0].substring(1)+t;continue}this.inLink=!0,u+=this.outputLink(c,n),this.inLink=!1}else if(c=this.rules.strong.exec(t))t=t.substring(c[0].length),u+=this.renderer.strong(this.output(c[4]||c[3]||c[2]||c[1]));else if(c=this.rules.em.exec(t))t=t.substring(c[0].length),u+=this.renderer.em(this.output(c[6]||c[5]||c[4]||c[3]||c[2]||c[1]));else if(c=this.rules.code.exec(t))t=t.substring(c[0].length),u+=this.renderer.codespan(a(c[2].trim(),!0));else if(c=this.rules.br.exec(t))t=t.substring(c[0].length),u+=this.renderer.br();else if(c=this.rules.del.exec(t))t=t.substring(c[0].length),u+=this.renderer.del(this.output(c[1]));else if(c=this.rules.autolink.exec(t))t=t.substring(c[0].length),"@"===c[2]?(i=a(this.mangle(c[1])),r="mailto:"+i):(i=a(c[1]),r=i),u+=this.renderer.link(r,null,i);else if(this.inLink||!(c=this.rules.url.exec(t))){if(c=this.rules.text.exec(t))t=t.substring(c[0].length),u+=this.renderer.text(this.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(c[0]):a(c[0]):c[0]:a(this.smartypants(c[0])));else if(t)throw new Error("Infinite loop on byte: "+t.charCodeAt(0))}else{if("@"===c[2])i=a(c[0]),r="mailto:"+i;else{do{l=c[0],c[0]=this.rules._backpedal.exec(c[0])[0]}while(l!==c[0]);i=a(c[0]),r="www."===c[1]?"http://"+i:i}t=t.substring(c[0].length),u+=this.renderer.link(r,null,i)}return u}static escapes(t){return t?t.replace(e.rules._escapes,"$1"):t}outputLink(e,t){const n=t.href,i=t.title?a(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,a(e[1]))}smartypants(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e}mangle(e){if(!this.options.mangle)return e;const t=e.length;let n,i="",r=0;for(;r.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}}},i1zs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,s.default)(t,t=>{switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?a(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,r.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":const i="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&a(e,n.parentType,t.prevState.name):null;n.argDefs=i&&i.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e1,i.options.tooltips))}}var m;r.onUpdateLinting&&r.onUpdateLinting(n,c,e)}function u(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){c(e)},t.options.delay||500))}e.defineOption("lint",!1,function(n,i,s){if(s&&s!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",u),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),i){for(var a=n.getOption("gutters"),l=!1,h=0;h{const t=(0,o.onlineParser)({eatWhitespace:e=>e.eatSpace(),lexRules:a,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const a={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,o.p)("{"),(0,o.list)("Entry",(0,o.p)(",")),(0,o.p)("}")],Entry:[(0,o.t)("String","def"),(0,o.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,o.t)("Number","number")],StringValue:[(0,o.t)("String","string")],BooleanValue:[(0,o.t)("Keyword","builtin")],NullValue:[(0,o.t)("Keyword","keyword")],ListValue:[(0,o.p)("["),(0,o.list)("Value",(0,o.p)(",")),(0,o.p)("]")],ObjectValue:[(0,o.p)("{"),(0,o.list)("ObjectField",(0,o.p)(",")),(0,o.p)("}")],ObjectField:[(0,o.t)("String","property"),(0,o.p)(":"),"Value"]}},imBb:function(e,t,n){var i;!function(r,o,s){if(r){for(var a,c={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},h={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)c[111+d]="f"+d;for(d=0;d<=9;++d)c[d+96]=d.toString();y.prototype.bind=function(e,t,n){return this._bindMultiple.call(this,e=e instanceof Array?e:[e],t,n),this},y.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},y.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},y.prototype.reset=function(){return this._callbacks={},this._directMap={},this},y.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(v(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},y.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},y.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(c[t]=e[t]);a=null},y.init=function(){var e=y(o);for(var t in e)"_"!==t.charAt(0)&&(y[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},y.init(),r.Mousetrap=y,e.exports&&(e.exports=y),void 0===(i=(function(){return y}).call(t,n,t,e))||(e.exports=i)}function p(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return c[e.which]?c[e.which]:l[e.which]?l[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!a)for(var e in a={},c)e>95&&e<112||c.hasOwnProperty(e)&&(a[c[e]]=e);return a}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function b(e,t){var n,i,r,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),r=0;r1?function(e,t,o,s){function l(t){return function(){a=t,++i[e],clearTimeout(n),n=setTimeout(c,1e3)}}function h(t){u(o,t,e),"keyup"!==s&&(r=f(t)),setTimeout(c,10)}i[e]=0;for(var p=0;p=55296&&v<=56319&&(O+=e[++n]),O=C?d.call(C,E,O,g):O,t?(p.value=O,f(m,g,p)):m[g]=O,++g;b=g}if(void 0===b)for(b=s(e.length),t&&(m=new t(b)),n=0;n",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function r(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var a=e.getLineHandle(t.line),c=t.ch-1,l=o&&o.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=r(o),h=!l&&c>=0&&u.test(a.text.charAt(c))&&i[a.text.charAt(c)]||u.test(a.text.charAt(c+1))&&i[a.text.charAt(++c)];if(!h)return null;var d=">"==h.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(c==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,c+1)),f=s(e,n(t.line,c+(d>0?1:0)),d,p||null,o);return null==f?null:{from:n(t.line,c),to:f&&f.pos,match:f&&f.ch==h.charAt(0),forward:d>0}}function s(e,t,o,s,a){for(var c=a&&a.maxScanLineLength||1e4,l=a&&a.maxScanLines||1e3,u=[],h=r(a),d=o>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),p=t.line;p!=d;p+=o){var f=e.getLine(p);if(f){var g=o>0?0:f.length-1,m=o>0?f.length:-1;if(!(f.length>c))for(p==t.line&&(g=t.ch-(o<0?1:0));g!=m;g+=o){var b=f.charAt(g);if(h.test(b)&&(void 0===s||e.getTokenTypeAt(n(p,g+1))==s)){var v=i[b];if(v&&">"==v.charAt(1)==o>0)u.push(b);else{if(!u.length)return{pos:n(p,g),ch:b};u.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function a(e,i,r){for(var s=e.state.matchBrackets.maxHighlightLineLength||1e3,a=[],c=e.listSelections(),l=0;lr))break;o=s}}return o?{from:e.Pos(i.line,n.getLine(i.line).length),to:e.Pos(o,n.getLine(o).length)}:void 0}})}(n("VrN/"))},jYNx:function(e,t,n){var i;void 0===(i=(function(){return function(){var e=n;e.Integer={type:"integer"};var t={String,Boolean,Number,Object,Array,Date};function n(e,t){return n(e,t,{changing:!1})}e.validate=n,e.checkPropertyChange=function(e,t,i){return n(e,t,{changing:i||"property"})};var n=e._validate=function(e,n,i){i||(i={});var r=i.changing;function o(e){return e.type||t[e.name]==e&&e.name.toLowerCase()}var s=[];function a(e,t,n,c){var l;function u(e){s.push({property:n,message:e})}if(n+=n?"number"==typeof c?"["+c+"]":void 0===c?"":"."+c:c,("object"!=typeof t||t instanceof Array)&&(n||"function"!=typeof t)&&(!t||!o(t)))return"function"==typeof t?e instanceof t||u("is not an instance of the class/constructor "+t.name):t&&u("Invalid schema/property definition "+t),null;function h(e,t){if(e){if(!("string"!=typeof e||"any"==e||("null"==e?null===t:typeof t==e)||t instanceof Array&&"array"==e||t instanceof Date&&"date"==e||"integer"==e&&t%1==0))return[{property:n,message:typeof t+" value found, but a "+e+" is required"}];if(e instanceof Array){for(var i=[],r=0;rt.maxItems&&u("There must be a maximum of "+t.maxItems+" in the array")}else(t.properties||t.additionalProperties)&&s.concat(function(e,t,n,o){if("object"==typeof t)for(var c in("object"!=typeof e||e instanceof Array)&&s.push({property:n,message:"an object is required"}),t)if(t.hasOwnProperty(c)){var l=e[c];if(void 0===l&&i.existingOnly)continue;var u=t[c];void 0===l&&u.default&&(l=e[c]=u.default),i.coerce&&c in e&&(l=e[c]=i.coerce(l,u)),a(l,u,n,c)}for(c in e){if(e.hasOwnProperty(c)&&("_"!=c.charAt(0)||"_"!=c.charAt(1))&&t&&!t[c]&&!1===o){if(i.filter){delete e[c];continue}s.push({property:n,message:typeof l+"The property "+c+" is not defined in the schema and the schema does not allow additional properties"})}var h=t&&t[c]&&t[c].requires;h&&!(h in e)&&s.push({property:n,message:"the presence of the property "+c+" requires that "+h+" also be present"}),l=e[c],!o||t&&"object"==typeof t&&c in t||(i.coerce&&(l=e[c]=i.coerce(l,o)),a(l,o,n,c)),!r&&l&&l.$schema&&(s=s.concat(a(l,l.$schema,n,c)))}return s}(e,t.properties,n,t.additionalProperties));if(t.pattern&&"string"==typeof e&&!e.match(t.pattern)&&u("does not match the regex pattern "+t.pattern),t.maxLength&&"string"==typeof e&&e.length>t.maxLength&&u("may only be "+t.maxLength+" characters long"),t.minLength&&"string"==typeof e&&e.lengthe&&u("must have a minimum value of "+t.minimum),void 0!==typeof t.maximum&&typeof e==typeof t.maximum&&t.maximum{const i=new r.a;let o=0;return i.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jhN1:function(e,t,n){"use strict";n.d(t,"a",function(){return M}),n.d(t,"b",function(){return z}),n.d(t,"c",function(){return G}),n.d(t,"d",function(){return N}),n.d(t,"e",function(){return _});var i=n("ofXK"),r=n("fXoL");class o extends i.D{constructor(){super()}supportsDOMEvents(){return!0}}class s extends o{static makeCurrent(){Object(i.H)(new s)}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=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==t?null:(n=t,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(i.G)(document.cookie,e)}}let a,c=null;const l=new r.s("TRANSITION_ID"),u=[{provide:r.d,useFactory:function(e,t,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(i.F)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[l,i.d,r.t],multi:!0}];class h{static init(){Object(r.ab)(new h)}addToWindow(e){r.sb.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.sb.getAllAngularTestabilities=()=>e.getAllTestabilities(),r.sb.getAllAngularRootElements=()=>e.getAllRootElements(),r.sb.frameworkStabilizers||(r.sb.frameworkStabilizers=[]),r.sb.frameworkStabilizers.push(e=>{const t=r.sb.getAllAngularTestabilities();let n=t.length,i=!1;const o=function(t){i=i||t,n--,0==n&&e(i)};t.forEach(function(e){e.whenStable(o)})})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Object(i.F)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const d=new r.s("EventManagerPlugins");let p=(()=>{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 i=0;i{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=r.Mb({token:e,factory:e.\u0275fac}),e})(),m=(()=>{class e extends g{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=>Object(i.F)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(r.ac(i.d))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function y(e,t,n){for(let i=0;i{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let _=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new O(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.T.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new C(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case 1:case r.T.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=y(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)(r.ac(p),r.ac(m),r.ac(r.c))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();class O{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(b[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,i){if(i){t=i+":"+t;const r=b[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=b[n];i?e.removeAttributeNS(i,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,i){i&(r.I.DashCase|r.I.Important)?e.style.setProperty(t,n,i&r.I.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&r.I.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,w(n)):this.eventManager.addEventListener(e,t,w(n))}}class C extends O{constructor(e,t,n,i){super(e),this.component=n;const r=y(i+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+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 E extends O{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=y(i.id,i.styles,[]);for(let o=0;o{class e extends f{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)(r.ac(i.d))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();const T=["alt","control","meta","shift"],x={"\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"},k={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"},I={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let D=(()=>{class e extends f{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const o=e.parseEventName(n),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.F)().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=e._normalizeKey(n.pop());let o="";if(T.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 s={};return s.domEventName=i,s.fullKey=o,s}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&&k.hasOwnProperty(t)&&(t=k[t]))}return x[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&(0,I[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return r=>{e.getEventFullKey(r)===t&&i.runGuarded(()=>n(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(r.ac(i.d))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),z=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Mb)({factory:function(){return Object(r.ac)(A)},token:e,providedIn:"root"}),e})();function j(e){return new A(e.get(i.d))}let A=(()=>{class e extends z{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case r.K.NONE:return t;case r.K.HTML:return Object(r.hb)(t,"HTML")?Object(r.Ab)(t):Object(r.fb)(this._doc,String(t)).toString();case r.K.STYLE:return Object(r.hb)(t,"Style")?Object(r.Ab)(t):t;case r.K.SCRIPT:if(Object(r.hb)(t,"Script"))return Object(r.Ab)(t);throw new Error("unsafe value used in a script context");case r.K.URL:return Object(r.rb)(t),Object(r.hb)(t,"URL")?Object(r.Ab)(t):Object(r.gb)(String(t));case r.K.RESOURCE_URL:if(Object(r.hb)(t,"ResourceURL"))return Object(r.Ab)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(r.ib)(e)}bypassSecurityTrustStyle(e){return Object(r.lb)(e)}bypassSecurityTrustScript(e){return Object(r.kb)(e)}bypassSecurityTrustUrl(e){return Object(r.mb)(e)}bypassSecurityTrustResourceUrl(e){return Object(r.jb)(e)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(i.d))},e.\u0275prov=Object(r.Mb)({factory:function(){return j(Object(r.ac)(r.p))},token:e,providedIn:"root"}),e})();const R=[{provide:r.D,useValue:i.E},{provide:r.E,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(r.yb)(document),document},deps:[]}],N=Object(r.U)(r.Z,"browser",R),L=[[],{provide:r.cb,useValue:"root"},{provide:r.m,useFactory:function(){return new r.m},deps:[]},{provide:d,useClass:S,multi:!0,deps:[i.d,r.B,r.D]},{provide:d,useClass:D,multi:!0,deps:[i.d]},[],{provide:_,useClass:_,deps:[p,m,r.c]},{provide:r.H,useExisting:_},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[i.d]},{provide:r.P,useClass:r.P,deps:[r.B]},{provide:p,useClass:p,deps:[d,r.B]},[]];let M=(()=>{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:r.c,useValue:t.appId},{provide:l,useExisting:r.c},u]}}}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)(r.ac(e,12))},providers:L,imports:[i.c,r.f]}),e})();const F="undefined"!=typeof window&&window||{};class P{constructor(e,t){this.msPerTick=e,this.numTicks=t}}class V{constructor(e){this.appRef=e.injector.get(r.g)}timeChangeDetection(e){const t=e&&e.record,n=null!=F.console.profile;t&&n&&F.console.profile("Change Detection");const r=Object(i.F)().performanceNow();let o=0;for(;o<5||Object(i.F)().performanceNow()-r<500;)this.appRef.tick(),o++;const s=Object(i.F)().performanceNow();t&&n&&F.console.profileEnd("Change Detection");const a=(s-r)/o;return F.console.log(`ran ${o} change detection cycles`),F.console.log(`${a.toFixed(2)} ms per check`),new P(a,o)}}function G(e){return t=new V(e),"undefined"!=typeof COMPILED&&COMPILED||((r.sb.ng=r.sb.ng||{}).profiler=t),e;var t}},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("XNiG"),r=n("qgXg"),o=n("quSY"),s=n("pxpQ"),a=n("9ppp"),c=n("Ylt2");class l extends i.a{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new u(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let l;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?l=o.a.EMPTY:(this.observers.push(e),l=new c.a(this,e)),i&&e.add(e=new s.a(e,i)),t)for(let o=0;ot&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}class u{constructor(e,t){this.time=e,this.value=t}}},jvAf:function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o(Array.isArray(e)?[]:{},e,t):e}function i(e,t,i){return e.concat(t).map(function(e){return n(e,i)})}function r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}(e))}function o(t,s,a){(a=a||{}).arrayMerge=a.arrayMerge||i,a.isMergeableObject=a.isMergeableObject||e;var c=Array.isArray(s);return c===Array.isArray(t)?c?a.arrayMerge(t,s,a):function(e,t,i){var s={};return i.isMergeableObject(e)&&r(e).forEach(function(t){s[t]=n(e[t],i)}),r(t).forEach(function(r){s[r]=i.isMergeableObject(t[r])&&e[r]?function(e,t){if(!t.customMerge)return o;var n=t.customMerge(e);return"function"==typeof n?n:o}(r,i)(e[r],t[r],i):n(t[r],i)}),s}(t,s,a):n(s,a)}return o.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return o(e,n,t)},{})},o}()},k2qM:function(e,t,n){"use strict";e.exports=function(e){return null!=e}},kBPl:function(e,t,n){"use strict";var i=n("Xt1Y");e.exports=function(e){if(!i(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}},kBjl:function(e,t,n){"use strict";function i(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},Object.create(null))}n.d(t,"a",function(){return i})},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kiQV:function(e){e.exports=JSON.parse('{"name":"altair-app","version":"4.0.2","description":"Contains the altair app","main":"dist/main.js","license":"MIT","author":"Samuel Imolorhe (https://sirmuel.design/)","homepage":"https://imolorhe.github.io/altair/","scripts":{"ng":"ng","start":"ng serve","build":"yarn generate-settings-schema-validator && node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --prod --aot --stats-json","test-single-run":"ng test --watch=false --code-coverage","test":"jest && ng lint","test:watch":"jest --watch","prepare":"yarn generate-settings-schema-validator && node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --outputHashing=none --prod --aot --stats-json","test-build":"ng lint && yarn build && yarn test-single-run","postinstall":"yarn generate-settings-schema-validator","lint":"ng lint","e2e":"ng e2e","e2e:ci":"ng e2e --webdriver-update=false","generate-settings-schema":"typescript-json-schema --ignoreErrors src/app/modules/altair/store/settings/settings.reducer.ts State > src/app/modules/altair/utils/settings.schema.json","compile-settings-schema-validator":"ajv compile -s src/app/modules/altair/utils/settings.schema.json -o src/app/modules/altair/utils/validate_settings_schema.js","generate-settings-schema-validator":"yarn generate-settings-schema && yarn compile-settings-schema-validator","analyze":"ng build --stats-json && npx webpack-bundle-analyzer dist/stats.json","analyze:prod":"ng build --prod --aot --stats-json && npx webpack-bundle-analyzer dist/stats.json","webdriver-update-ci":"webdriver-manager update --standalone false --gecko false --versions.chrome=89.0.4389.72"},"dependencies":{"@angular/animations":"^11.2.4","@angular/cdk":"^11.2.3","@angular/cli":"^11.2.3","@angular/common":"^11.2.4","@angular/core":"^11.2.4","@angular/forms":"^11.2.4","@angular/platform-browser":"^11.2.4","@angular/platform-browser-dynamic":"^11.2.4","@angular/platform-server":"^11.2.4","@angular/router":"^11.2.4","@apollo/client":"^3.2.5","@ctrl/ngx-codemirror":"^3.1.3","@fontsource/jetbrains-mono":"^4.2.2","@ngneat/hot-toast":"2.0.1","@ngneat/overview":"^1.0.0","@ngneat/until-destroy":"^8.0.1","@ngrx/effects":"^11.0.1","@ngrx/store":"^11.0.1","@ngrx/store-devtools":"^11.0.1","@ngui/auto-complete":"^3.0.0","@ngx-translate/core":"^12.1.2","@ngx-translate/http-loader":"^4.0.0","@types/actioncable":"^5.2.3","@webcomponents/custom-elements":"^1.4.1","abab":"^2.0.5","actioncable":"^5.2.4-4","angular-feather":"^6.0.10","apollo-cache-inmemory":"^1.6.6","apollo-link":"^1.2.14","apollo-link-http":"^1.5.17","aws-appsync-auth-link":"^3.0.2","aws-appsync-subscription-link":"^3.0.3","codemirror":"^5.48.0","codemirror-graphql":"^0.11.1","comlink":"^4.2.0","comment-regex":"^1.0.1","cookie-parser":"^1.4.4","core-js":"^3.1.4","crypto-js":"3.3.0","curlup":"^1.0.0","deepmerge":"^4.2.2","dexie":"^3.0.3","emotion":"^10.0.27","express":"^4.17.1","file-dialog":"^0.0.8","file-saver":"^2.0.2","fuse.js":"^6.4.6","graphql":"^14.4.2","graphql-query-compress":"^1.2.2","graphql-ws":"^4.4.1","lodash-es":"^4.17.21","loglevel":"^1.7.0","loglevel-plugin-prefix":"^0.8.4","marked":"^0.8.0","memoizee":"^0.4.14","mousetrap":"^1.6.3","mousetrap-global-bind":"^1.1.0","new-github-issue-url":"^0.2.1","ng-zorro-antd":"11.2.0","ngrx-store-localstorage":"^9.0.0","ngx-contextmenu":"^5.4.0","ngx-cookie-service":"^2.2.0","ngx-electron":"^2.1.1","ngx-markdown":"^11.1.1","ngx-pipes":"^2.7.3","ngx-popper":"^7.0.0","ngx-sortablejs":"^11.1.0","ngx-take-until-destroy":"^5.4.0","popper.js":"^1.15.0","prettier":"^1.18.2","rxjs":"^6.6.6","sortablejs":"^1.10.2","subscriptions-transport-ws":"^0.9.16","sval":"^0.4.8","to-snake-case":"^1.0.0","tslib":"^2.0.0","uuid":"^3.3.2","valid-url":"^1.0.9","zone.js":"~0.10.2"},"devDependencies":{"@angular-devkit/build-angular":"~0.1102.3","@angular/compiler":"^11.2.4","@angular/compiler-cli":"^11.2.4","@briebug/jest-schematic":"^2.1.1","@jest/globals":"^26.0.1","@ngrx/schematics":"^11.0.1","@types/chrome":"^0.0.90","@types/crypto-js":"^4.0.1","@types/electron":"^1.6.10","@types/file-saver":"^2.0.1","@types/graphql":"^14.5.0","@types/jasmine":"~3.6.0","@types/jest":"26.0.0","@types/json-schema":"^7.0.6","@types/lodash-es":"^4.17.4","@types/memoizee":"^0.4.3","@types/mousetrap":"^1.6.3","@types/node":"^12.11.1","@types/prettier":"^1.19.0","@types/to-snake-case":"^1.0.0","@types/uuid":"^3.4.6","@types/zen-observable":"^0.8.1","ajv":"^6.10.2","ajv-cli":"^3.0.0","babel-plugin-transform-async-to-generator":"^6.24.1","babel-preset-env":"^1.6.0","babel-preset-react":"^6.24.1","chai":"^4.2.0","chai-as-promised":"^7.1.1","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","jest":"26.0.1","jest-preset-angular":"^8.4.0","karma-cli":"^2.0.0","ncp":"^2.0.0","ng-mocks":"^11.9.0","ngrx-store-freeze":"^0.2.0","protractor":"~7.0.0","react":"^17.0.1","rxjs-tslint-rules":"^4.32.0","start-server-and-test":"^1.10.6","ts-jest":"^26.5.4","ts-mocks":"^2.6.1","ts-node":"^8.3.0","tslint":"~6.1.0","typescript":"4.0.7","typescript-json-schema":"^0.42.0"},"private":true}')},kvTO:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"c",function(){return u});var i=n("xk4V"),r=n.n(i),o=function(e){return e.NPM="npm",e.GITHUB="github",e.URL="url",e}({});const s=(e,t)=>({name:e,manifest:t,type:t.type,display_name:t.display_name||e,plugin_class:t.plugin_class,capabilities:Array.from(new Set([...t.capabilities||[],"query:read","query:write"]))});var a=function(e){return e.HEADER="header",e.SIDEBAR="sidebar",e}({}),c=function(e){return e.RESULT_PANE="result_pane",e}({});class l{constructor(e,t,n){this.title=e,this.element=t,this.location=n,this.id=r()(),this.isActive=!1}destroy(){this.element=null}}class u{constructor(e,t,n){this.title=e,this.location=t,this.callback=n,this.id=r()()}execute(){this.callback()}}},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");class r extends i.a{notifyNext(e,t,n,i,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},l7P3:function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"b",function(){return m}),n.d(t,"c",function(){return _}),n.d(t,"d",function(){return $}),n.d(t,"e",function(){return W}),n.d(t,"f",function(){return Q}),n.d(t,"g",function(){return Y}),n.d(t,"h",function(){return te}),n.d(t,"i",function(){return xe}),n.d(t,"j",function(){return ke}),n.d(t,"k",function(){return Te}),n.d(t,"l",function(){return U}),n.d(t,"m",function(){return V}),n.d(t,"n",function(){return G}),n.d(t,"o",function(){return f}),n.d(t,"p",function(){return ae}),n.d(t,"q",function(){return ie});var i=n("fXoL"),r=n("2Vo4"),o=n("HDdC"),s=n("XNiG"),a=n("qgXg"),c=n("pxpQ"),l=n("zp1y"),u=n("Kqap"),h=n("lJxs"),d=n("/uUt");const p={};function f(e,t){if(p[e]=(p[e]||0)+1,"function"==typeof t)return g(e,(...n)=>Object.assign(Object.assign({},t(...n)),{type:e}));switch(t?t._as:"empty"){case"empty":return g(e,()=>({type:e}));case"props":return g(e,t=>Object.assign(Object.assign({},t),{type:e}));default:throw new Error("Unexpected config.")}}function g(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}const m="@ngrx/store/init";let b=(()=>{class e extends r.a{constructor(){super({type:m})}next(e){if("function"==typeof e)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===e)throw new TypeError("Actions must be objects");if(void 0===e.type)throw new TypeError("Actions must have a type property");super.next(e)}complete(){}ngOnDestroy(){super.complete()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const v=[b],y=new i.s("@ngrx/store Internal Root Guard"),w=new i.s("@ngrx/store Internal Initial State"),_=new i.s("@ngrx/store Initial State"),O=new i.s("@ngrx/store Reducer Factory"),C=new i.s("@ngrx/store Internal Reducer Factory Provider"),E=new i.s("@ngrx/store Initial Reducers"),S=new i.s("@ngrx/store Internal Initial Reducers"),T=new i.s("@ngrx/store Store Features"),x=new i.s("@ngrx/store Internal Store Reducers"),k=new i.s("@ngrx/store Internal Feature Reducers"),I=new i.s("@ngrx/store Internal Feature Configs"),D=new i.s("@ngrx/store Internal Store Features"),z=new i.s("@ngrx/store Internal Feature Reducers Token"),j=new i.s("@ngrx/store Feature Reducers"),A=new i.s("@ngrx/store User Provided Meta Reducers"),R=new i.s("@ngrx/store Meta Reducers"),N=new i.s("@ngrx/store Internal Resolved Meta Reducers"),L=new i.s("@ngrx/store User Runtime Checks Config"),M=new i.s("@ngrx/store Internal User Runtime Checks Config"),F=new i.s("@ngrx/store Internal Runtime Checks"),P=new i.s("@ngrx/store Check if Action types are unique");function V(e,t={}){const n=Object.keys(e),i={};for(let o=0;ot(e),n(t))}}function B(e,t){return Array.isArray(t)&&t.length>0&&(e=G.apply(null,[...t,e])),(t,n)=>{const i=e(t);return(e,t)=>i(e=void 0===e?n:e,t)}}class W extends o.a{}class $ extends b{}const U="@ngrx/store/update-reducers";let H=(()=>{class e extends r.a{constructor(e,t,n,i){super(i(n,t)),this.dispatcher=e,this.initialState=t,this.reducers=n,this.reducerFactory=i}addFeature(e){this.addFeatures([e])}addFeatures(e){const t=e.reduce((e,{reducers:t,reducerFactory:n,metaReducers:i,initialState:r,key:o})=>{const s="function"==typeof t?function(e){const t=Array.isArray(e)&&e.length>0?G(...e):e=>e;return(e,n)=>(e=t(e),(t,i)=>e(t=void 0===t?n:t,i))}(i)(t,r):B(n,i)(t,r);return e[o]=s,e},{});this.addReducers(t)}removeFeature(e){this.removeFeatures([e])}removeFeatures(e){this.removeReducers(e.map(e=>e.key))}addReducer(e,t){this.addReducers({[e]:t})}addReducers(e){this.reducers=Object.assign(Object.assign({},this.reducers),e),this.updateReducers(Object.keys(e))}removeReducer(e){this.removeReducers([e])}removeReducers(e){e.forEach(e=>{var t,n;this.reducers=(t=this.reducers,n=e,Object.keys(t).filter(e=>e!==n).reduce((e,n)=>Object.assign(e,{[n]:t[n]}),{}))}),this.updateReducers(e)}updateReducers(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:U,features:e})}ngOnDestroy(){this.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.ac($),i.ac(_),i.ac(E),i.ac(O))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const q=[H,{provide:W,useExisting:H},{provide:$,useExisting:b}];let Q=(()=>{class e extends s.a{ngOnDestroy(){this.complete()}}return e.\u0275fac=function(t){return K(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const K=i.Yb(Q),X=[Q];class Y extends o.a{}let J=(()=>{class e extends r.a{constructor(e,t,n,i){super(i);const r={state:i},o=e.pipe(Object(c.b)(a.b)).pipe(Object(l.a)(t)).pipe(Object(u.a)(Z,r));this.stateSubscription=o.subscribe(({state:e,action:t})=>{this.next(e),n.next(t)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.ac(b),i.ac(W),i.ac(Q),i.ac(_))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e.INIT=m,e})();function Z(e={state:void 0},[t,n]){const{state:i}=e;return{state:n(i,t),action:t}}const ee=[J,{provide:Y,useExisting:J}];let te=(()=>{class e extends o.a{constructor(e,t,n){super(),this.actionsObserver=t,this.reducerManager=n,this.source=e}select(e,...t){return ie.call(null,e,...t)(this)}lift(t){const n=new e(this,this.actionsObserver,this.reducerManager);return n.operator=t,n}dispatch(e){this.actionsObserver.next(e)}next(e){this.actionsObserver.next(e)}error(e){this.actionsObserver.error(e)}complete(){this.actionsObserver.complete()}addReducer(e,t){this.reducerManager.addReducer(e,t)}removeReducer(e){this.reducerManager.removeReducer(e)}}return e.\u0275fac=function(t){return new(t||e)(i.ac(Y),i.ac(b),i.ac(H))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const ne=[te];function ie(e,t,...n){return function(i){let r;if("string"==typeof e){const o=[t,...n].filter(Boolean);r=i.pipe(function(...e){const t=e.length;if(0===t)throw new Error("list of properties cannot be empty.");return n=>Object(h.a)(function(e,t){return n=>{let i=n;for(let r=0;re(n,t)))}return r.pipe(Object(d.a)())}}function re(e,t){return e===t}function oe(e,t,n){for(let i=0;ie.release&&"function"==typeof e.release),a=e(function(...e){return o.apply(null,e)}),c=se(function(e,n){return t.stateFn.apply(null,[e,r,n,a])});return Object.assign(c.memoized,{release:function(){c.reset(),a.reset(),s.forEach(e=>e.release())},projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}(se)(...e)}function ce(e,t,n,i){if(void 0===n){const n=t.map(t=>t(e));return i.memoized.apply(null,n)}const r=t.map(t=>t(e,n));return i.memoized.apply(null,[...r,n])}const le="https://ngrx.io/guide/store/configuration/runtime-checks";function ue(e){return void 0===e}function he(e){return null===e}function de(e){return Array.isArray(e)}function pe(e){return"object"==typeof e&&null!==e}function fe(e){return"function"==typeof e}function ge(e){Object.freeze(e);const t=fe(e);return Object.getOwnPropertyNames(e).forEach(n=>{if(!n.startsWith("\u0275")&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,n)&&(!t||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const t=e[n];!pe(t)&&!fe(t)||Object.isFrozen(t)||ge(t)}}),e}function me(e,t=[]){return(ue(e)||he(e))&&0===t.length?{path:["root"],value:e}:Object.keys(e).reduce((n,i)=>{if(n)return n;const r=e[i];return function(e){return fe(e)&&e.hasOwnProperty("\u0275cmp")}(r)?n:!(ue(r)||he(r)||function(e){return"number"==typeof e}(r)||function(e){return"boolean"==typeof e}(r)||function(e){return"string"==typeof e}(r)||de(r))&&(function(e){if(!function(e){return pe(e)&&!de(e)}(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(r)?me(r,[...t,i]):{path:[...t,i],value:r})},!1)}function be(e,t){if(!1===e)return;const n=e.path.join("."),i=new Error(`Detected unserializable ${t} at "${n}". ${le}#strict${t}serializability`);throw i.value=e.value,i.unserializablePath=n,i}function ve(e){return Object(i.Y)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function ye({strictActionSerializability:e,strictStateSerializability:t}){return n=>e||t?function(e,t){return function(n,i){t.action(i)&&be(me(i),"action");const r=e(n,i);return t.state()&&be(me(r),"state"),r}}(n,{action:t=>e&&!_e(t),state:()=>t}):n}function we({strictActionImmutability:e,strictStateImmutability:t}){return n=>e||t?function(e,t){return function(n,i){const r=t.action(i)?ge(i):i,o=e(n,r);return t.state()?ge(o):o}}(n,{action:t=>e&&!_e(t),state:()=>t}):n}function _e(e){return e.type.startsWith("@ngrx")}function Oe({strictActionWithinNgZone:e}){return t=>e?function(e,t){return function(n,r){if(t.action(r)&&!i.B.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${le}#strictactionwithinngzone`);return e(n,r)}}(t,{action:t=>e&&!_e(t)}):t}function Ce(){return[{provide:P,multi:!0,deps:[F],useFactory:Se}]}function Ee(e){return e}function Se(e){if(!e.strictActionTypeUniqueness)return;const t=Object.entries(p).filter(([,e])=>e>1).map(([e])=>e);if(t.length)throw new Error(`Action types are registered more than once, ${t.map(e=>`"${e}"`).join(", ")}. ${le}#strictactiontypeuniqueness`)}let Te=(()=>{class e{constructor(e,t,n,i,r,o){}}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)(i.ac(b),i.ac(W),i.ac(Q),i.ac(te),i.ac(y,8),i.ac(P,8))}}),e})(),xe=(()=>{class e{constructor(e,t,n,i,r){this.features=e,this.featureReducers=t,this.reducerManager=n;const o=e.map((e,n)=>{const i=t.shift()[n];return Object.assign(Object.assign({},e),{reducers:i,initialState:je(e.initialState)})});n.addFeatures(o)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)(i.ac(D),i.ac(j),i.ac(H),i.ac(Te),i.ac(P,8))}}),e})(),ke=(()=>{class e{static forRoot(e,t={}){return{ngModule:Te,providers:[{provide:y,useFactory:Re,deps:[[te,new i.C,new i.M]]},{provide:w,useValue:t.initialState},{provide:_,useFactory:je,deps:[w]},{provide:S,useValue:e},{provide:x,useExisting:e instanceof i.s?e:S},{provide:E,deps:[i.t,S,[new i.q(x)]],useFactory:Ie},{provide:A,useValue:t.metaReducers?t.metaReducers:[]},{provide:N,deps:[R,A],useFactory:Ae},{provide:C,useValue:t.reducerFactory?t.reducerFactory:V},{provide:O,deps:[C,N],useFactory:B},v,q,X,ee,ne,(n=t.runtimeChecks,[{provide:M,useValue:n},{provide:L,useFactory:Ee,deps:[M]},{provide:F,deps:[L],useFactory:ve},{provide:R,multi:!0,deps:[F],useFactory:we},{provide:R,multi:!0,deps:[F],useFactory:ye},{provide:R,multi:!0,deps:[F],useFactory:Oe}]),Ce()]};var n}static forFeature(e,t,n={}){return{ngModule:xe,providers:[{provide:I,multi:!0,useValue:e instanceof Object?{}:n},{provide:T,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:n instanceof i.s||!n.reducerFactory?V:n.reducerFactory,metaReducers:n instanceof i.s||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof i.s||!n.initialState?void 0:n.initialState}},{provide:D,deps:[i.t,I,T],useFactory:De},{provide:k,multi:!0,useValue:e instanceof Object?e.reducer:t},{provide:z,multi:!0,useExisting:t instanceof i.s?t:k},{provide:j,multi:!0,deps:[i.t,k,[new i.q(z)]],useFactory:ze},Ce()]}}}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)}}),e})();function Ie(e,t){return t instanceof i.s?e.get(t):t}function De(e,t,n){return n.map((n,r)=>{if(t[r]instanceof i.s){const i=e.get(t[r]);return{key:n.key,reducerFactory:i.reducerFactory?i.reducerFactory:V,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return n})}function ze(e,t){return t.map(t=>t instanceof i.s?e.get(t):t)}function je(e){return"function"==typeof e?e():e}function Ae(e,t){return e.concat(t)}function Re(e){if(e)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(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 o(e,t))}}class o{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new s(e,this.project,this.thisArg))}}class s extends i.a{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)}}},lLG3:function(e,t,n){"use strict";var i=n("GpRL");e.exports=function(e){var t;return"function"==typeof e?{set:e,get:e}:(t={get:i(e.get)},void 0!==e.set?(t.set=i(e.set),e.delete&&(t.delete=i(e.delete)),e.clear&&(t.clear=i(e.clear)),t):(t.set=t.get,t))}},lO5s:function(e,t,n){"use strict";var i,r,o,s=n("9Qh4"),a=n("s4AO"),c=n("fEpb").Symbol,l=n("lk0t"),u=n("4D8k"),h=n("Jb7g"),d=Object.create,p=Object.defineProperties,f=Object.defineProperty;if("function"==typeof c)try{String(c()),o=!0}catch(g){}else c=null;r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return i(e)},e.exports=i=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return o?c(t):(n=d(r.prototype),t=void 0===t?"":String(t),p(n,{__description__:s("",t),__name__:s("",l(t))}))},u(i),h(i),p(r.prototype,{constructor:s(i),toString:s("",function(){return this.__name__})}),p(i.prototype,{toString:s(function(){return"Symbol ("+a(this).__description__+")"}),valueOf:s(function(){return a(this)})}),f(i.prototype,i.toPrimitive,s("",function(){var e=a(this);return"symbol"==typeof e?e:e.toString()})),f(i.prototype,i.toStringTag,s("c","Symbol")),f(r.prototype,i.toStringTag,s("c",i.prototype[i.toStringTag])),f(r.prototype,i.toPrimitive,s("c",i.prototype[i.toPrimitive]))},lORA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("dWS+");function r(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new i.a('There can be only one fragment named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name,!1}}}},lR5k:function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return g});var i=n("fXoL"),r=n("ofXK"),o=n("OnMO"),s=n("tk/3"),a=n("jhN1"),c=n("lJxs");n("SxV6");const l=["*"];class u{}const h=new i.s("SECURITY_CONTEXT");let d=(()=>{class e{constructor(e,t,n,i,r){this.platform=e,this.securityContext=t,this.http=n,this.sanitizer=r,this.initialMarkedOptions={renderer:new o.Renderer},this.options=i}get options(){return this._options}set options(e){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}compile(e,t=!1,n=!1,i=this.options){const r=this.trimIndentation(e),s=t?this.decodeHtml(r):r,a=n?this.renderEmoji(s):s,c=Object(o.parse)(a,i);return this.sanitizer.sanitize(this.securityContext,c)||""}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(Object(c.a)(t=>this.handleExtension(e,t)))}highlight(e){if(Object(r.A)(this.platform)&&"undefined"!=typeof Prism){e||(e=document);const t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,e=>e.classList.add("language-none")),Prism.highlightAllUnder(e)}}renderKatex(e,t){if(!Object(r.A)(this.platform))return e;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return e.replace(/\$([^\s][^$]*?[^\s])\$/gm,(e,n)=>katex.renderToString(n,t))}decodeHtml(e){if(!Object(r.A)(this.platform))return e;const t=document.createElement("textarea");return t.innerHTML=e,t.value}handleExtension(e,t){const n=e?e.split("?")[0].split(".").splice(-1).join():null;return"md"!==n?"```"+n+"\n"+t+"\n```":t}renderEmoji(e){if(!Object(r.A)(this.platform))return e;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}trimIndentation(e){if(!e)return"";let t;return e.split("\n").map(e=>{let n=t;return e.length>0&&(n=isNaN(n)?e.search(/\S|$/):Math.min(e.search(/\S|$/),n)),isNaN(t)&&(t=n),n?e.substring(n):e}).join("\n")}}return e.\u0275fac=function(t){return new(t||e)(i.ac(i.D),i.ac(h),i.ac(s.c,8),i.ac(u,8),i.ac(a.b))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();var p=function(e){return e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}({});let f=(()=>{class e{constructor(e,t){this.element=e,this.markdownService=t,this.error=new i.n,this.load=new i.n,this.ready=new i.n,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){this.data||this.src||this.handleTransclusion()}render(e,t=!1){let n=this.markdownService.compile(e,t,this.emoji);n=this.katex?this.markdownService.renderKatex(n,this.katexOptions):n,this.element.nativeElement.innerHTML=n,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${e}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(e=>{this.render(e),this.load.emit(e)},e=>this.error.emit(e))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,p.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,p.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,t){const n=e.querySelectorAll("pre");for(let i=0;i{const r=t[e];if(r){const t=this.toLispCase(e);n.item(i).setAttribute(t,r.toString())}})}toLispCase(e){const t=e.match(/([A-Z])/g);if(!t)return e;let n=e.toString();for(let i=0,r=t.length;i{class e{static forRoot(t){return{ngModule:e,providers:[d,t&&t.loader||[],t&&t.markedOptions||[],{provide:h,useValue:t&&null!=t.sanitize?t.sanitize:i.K.HTML}]}}static forChild(){return{ngModule:e}}}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)}}),e})()},lWBa:function(e,t,n){"use strict";var i=n("sYVv"),r=Array.isArray;e.exports=function(e){return r(e)?e:i(e)}},lgLN:function(e,t,n){"use strict";n.d(t,"f",function(){return i}),n.d(t,"g",function(){return r}),n.d(t,"i",function(){return o}),n.d(t,"j",function(){return s}),n.d(t,"e",function(){return a}),n.d(t,"h",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"l",function(){return h}),n.d(t,"n",function(){return d}),n.d(t,"o",function(){return p}),n.d(t,"k",function(){return f}),n.d(t,"m",function(){return g}),n.d(t,"b",function(){return m}),n.d(t,"d",function(){return b});const i="SET_INTROSPECTION",r="SET_INTROSPECTION_FROM_DB",o="SET_SCHEMA",s="SET_SCHEMA_SDL",a="SET_ALLOW_INTROSPECTION",c="SET_INTROSPECTION_LAST_UPDATED_AT",l="EXPORT_SDL",u="LOAD_SDL_SCHEMA";class h{constructor(e,t){this.payload=e,this.windowId=t,this.type=i}}class d{constructor(e,t){this.windowId=e,this.payload=t,this.type=o}}class p{constructor(e,t){this.windowId=e,this.payload=t,this.type=s}}class f{constructor(e,t){this.payload=e,this.windowId=t,this.type=a}}class g{constructor(e,t){this.windowId=e,this.payload=t,this.type=c}}class m{constructor(e){this.windowId=e,this.type=l}}class b{constructor(e){this.windowId=e,this.type=u}}},lk0t:function(e,t,n){"use strict";var i=n("9Qh4"),r=Object.defineProperty,o=Object.prototype,s=(0,Object.create)(null);e.exports=function(e){for(var t,n,a=0;s[e+(a||"")];)++a;return s[e+=a||""]=!0,r(o,t="@@"+e,i.gs(null,function(e){n||(n=!0,r(this,t,i(e)),n=!1)})),t}},lq5y:function(e,t,n){"use strict";var i=n("YsTz");e.exports=function(e){if(!i(e))throw new TypeError("Cannot use null or undefined");return e}},"m3Q/":function(e,t,n){!function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var i={hint:t};if(n)for(var r in n)i[r]=n[r];return e.showHint(i)},e.defineExtension("showHint",function(n){n=function(e,t,n){var i=e.options.hintOptions,r={};for(var o in c)r[o]=c[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(e,t)),r}(this,this.getCursor("start"),n);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var r=0;rl.clientHeight+1,D=s.getScrollInfo();if(k>0){var z=x.bottom-x.top;if(m.top-(m.bottom-x.top)-z>0)l.style.top=(v=m.top-z-_)+"px",y=!1;else if(z>T){l.style.height=T-5+"px",l.style.top=(v=m.bottom-x.top-_)+"px";var j=s.getCursor();n.from.ch!=j.ch&&(m=s.cursorCoords(j),l.style.left=(b=m.left-w)+"px",x=l.getBoundingClientRect())}}var A,R=x.right-S;if(R>0&&(x.right-x.left>S&&(l.style.width=S-5+"px",R-=x.right-x.left-S),l.style.left=(b=m.left-R-w)+"px"),I)for(var N=l.firstChild;N;N=N.nextSibling)N.style.paddingRight=s.display.nativeBarWidth+"px";return s.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,r=i?{}:n;function o(e,i){var o;o="string"!=typeof i?function(e){return i(e,t)}:n.hasOwnProperty(i)?n[i]:i,r[e]=o}if(i)for(var s in i)i.hasOwnProperty(s)&&o(s,i[s]);var a=e.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&o(s,a[s]);return r}(t,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:u.length,close:function(){t.close()},pick:function(){i.pick()},data:n})),t.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){A=setTimeout(function(){t.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(A)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),n=s.getWrapperElement().getBoundingClientRect(),i=v+D.top-e.top,r=i-(c.pageYOffset||(a.documentElement||a.body).scrollTop);if(y||(r+=l.offsetHeight),r<=n.top||r>=n.bottom)return t.close();l.style.top=i+"px",l.style.left=b+D.left-e.left+"px"}),e.on(l,"dblclick",function(e){var t=o(l,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())}),e.on(l,"click",function(e){var n=o(l,e.target||e.srcElement);n&&null!=n.hintId&&(i.changeActive(n.hintId),t.options.completeOnSingleClick&&i.pick())}),e.on(l,"mousedown",function(){setTimeout(function(){s.focus()},20)}),this.scrollToActive(),e.signal(n,"select",u[this.selectedHint],l.childNodes[this.selectedHint]),!0}function a(e,t,n,i){if(e.async)e(t,i,n);else{var r=e(t,n);r&&r.then?r.then(i):i(r)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var i=t.list[n],o=this;this.cm.operation(function(){i.hint?i.hint(o.cm,t,i):o.cm.replaceRange(r(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),o.cm.scrollIntoView()}),this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" CodeMirror-hint-active","")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.hints.childNodes[this.selectedHint],t=this.hints.firstChild;e.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=e.offsetTop+e.offsetHeight-this.hints.clientHeight+t.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var i,r=t.getHelpers(n,"hint");if(r.length){var o=function(e,t,n){var i=function(e,t){if(!e.somethingSelected())return t;for(var n=[],i=0;i0?t(e):r(o+1)})}(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var i,r=t.getCursor(),o=t.getTokenAt(r),s=e.Pos(r.line,o.start),a=r;o.start,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n("VrN/"))},m8Fq:function(e,t,n){(function(e){!function(e){"use strict";e.exports.is_uri=n,e.exports.is_http_uri=i,e.exports.is_https_uri=r,e.exports.is_web_uri=o,e.exports.isUri=n,e.exports.isHttpUri=i,e.exports.isHttpsUri=r,e.exports.isWebUri=o;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,i,r,o,s,a="",c="";if(i=(n=t(e))[2],r=n[3],o=n[4],s=n[5],(a=n[1])&&a.length&&r.length>=0){if(i&&i.length){if(0!==r.length&&!/^\//.test(r))return}else if(/^\/\//.test(r))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return c+=a+":",i&&i.length&&(c+="//"+i),c+=r,o&&o.length&&(c+="?"+o),s&&s.length&&(c+="#"+s),c}}}function i(e,i){if(n(e)){var r,o,s,a,c="",l="",u="",h="";if(l=(r=t(e))[2],o=r[3],s=r[4],a=r[5],c=r[1]){if(i){if("https"!=c.toLowerCase())return}else if("http"!=c.toLowerCase())return;if(l)return/:(\d+)$/.test(l)&&(u=l.match(/:(\d+)$/)[0],l=l.replace(/:\d+$/,"")),h+=c+":",h+="//"+l,u&&(h+=u),h+=o,s&&s.length&&(h+="?"+s),a&&a.length&&(h+="#"+a),h}}}function r(e){return i(e,!0)}function o(e){return i(e)||r(e)}}(e)}).call(this,n("YuTi")(e))},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i=n("SpAZ");function r(...e){return o(e)}function o(e){return 0===e.length?i.a:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}},mIS6:function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"b",function(){return s});const i="SHOW_DONATION_ALERT",r="HIDE_DONATION_ALERT";class o{constructor(){this.type=i}}class s{constructor(){this.type=r}}},mki7:function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function i(t,i){t.extendSelectionsBy(function(r){return t.display.shift||t.doc.extend||r.empty()?function(t,i,r){if(r<0&&0==i.ch)return t.clipPos(n(i.line-1));var o=t.getLine(i.line);if(r>0&&i.ch>=o.length)return t.clipPos(n(i.line+1,0));for(var s,a="start",c=i.ch,l=c,u=r<0?0:o.length,h=0;l!=u;l+=r,h++){var d=o.charAt(r<0?l-1:l),p="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==p&&d.toUpperCase()==d&&(p="W"),"start"==a)"o"!=p?(a="in",s=p):c=l+r;else if("in"==a&&s!=p){if("w"==s&&"W"==p&&r<0&&l--,"W"==s&&"w"==p&&r>0){if(l==c+1){s="w";continue}l--}break}}return n(i.line,l)}(t.doc,r.head,i):i<0?r.from():r.to()})}function r(t,i){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,r=[],o=-1,s=0;s=0;a--){var l=i[r[a]];if(!(c&&e.cmpPos(l.head,c)>0)){var u=o(t,l.head);c=u.from,t.replaceRange(n(u.word),u.from,u.to)}}})}function h(t){var n=t.getCursor("from"),i=t.getCursor("to");if(0==e.cmpPos(n,i)){var r=o(t,n);if(!r.word)return;n=r.from,i=r.to}return{from:n,to:i,query:t.getRange(n,i),word:r}}function d(e,t){var i=h(e);if(i){var r=i.query,o=e.getSearchCursor(r,t?i.to:i.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(r,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):i.word&&e.setSelection(i.from,i.to))}}t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),i=[],r=0;ro.line&&a==s.line&&0==s.ch||i.push({anchor:a==o.line?o:n(a,0),head:a==s.line?s:n(a)});e.setSelections(i,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),i=[],r=0;ro?r.push(l,u):r.length&&(r[r.length-1]=u),o=u}t.operation(function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+a,n(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.setSelections(s),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var i=t.listSelections(),r=[],o=t.lastLine()+1,s=i.length-1;s>=0;s--){var a=i[s],c=a.to().line+1,l=a.from().line;0!=a.to().ch||a.empty()||c--,c=0;e-=2){var i=r[e],o=r[e+1],s=t.getLine(i);i==t.lastLine()?t.replaceRange("",n(i-1),n(i),"+swapLine"):t.replaceRange("",n(i,0),n(i+1,0),"+swapLine"),t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),i=[],r=0;r=0;o--){var s=i[o].head,a=t.getRange({line:s.line,ch:0},s),c=e.countColumn(a,null,t.getOption("tabSize")),l=t.findPosH(s,-1,"char",!1);if(a&&!/\S/.test(a)&&c%r==0){var u=new n(s.line,e.findColumn(a,c-r,r));u.ch!=s.ch&&(l=u)}t.replaceRange("",l,s,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange("",t[i].anchor,n(t[i].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){u(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){u(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var i=t.getCursor(),r=n;if(e.cmpPos(i,r)>0){var o=r;r=i,i=o}t.state.sublimeKilled=t.getRange(i,r),t.replaceRange("",i,r)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){d(e,!0)},t.findUnderPrevious=function(e){d(e,!1)},t.findAllUnder=function(e){var t=h(e);if(t){for(var n=e.getSearchCursor(t.query),i=[],r=-1;n.findNext();)i.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&r++;e.setSelections(i,r)}};var p=e.keyMap;p.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(p.macSublime),p.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(p.pcSublime),p.sublime=p.default==p.macDefault?p.macSublime:p.pcSublime}(n("VrN/"),n("uTOq"),n("jDMi"))},mlxB:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,"a",function(){return i})},mrSG:function(e,t,n){"use strict";function i(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function o(e,t){return function(n,i){t(n,i,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function a(e,t,n,i){return new(n||(n=Promise))(function(r,o){function s(e){try{c(i.next(e))}catch(t){o(t)}}function a(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((i=i.apply(e,t||[])).next())})}n.d(t,"e",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return a})},"n/l8":function(e,t,n){"use strict";var i=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},r=function(e){var t,n,r=document.createTextNode(""),o=0;return new e(function(){var e;if(t)n&&(t=n.concat(t));else{if(!n)return;t=n}if(n=t,t=null,"function"==typeof n)return e=n,n=null,void e();for(r.data=o=++o%2;n;)e=n.shift(),n.length||(n=null),e()}).observe(r,{characterData:!0}),function(e){i(e),t?"function"==typeof t?t=[t,e]:t.push(e):(t=e,r.data=o=++o%2)}};e.exports=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(e){queueMicrotask(i(e))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return r(MutationObserver);if("function"==typeof WebKitMutationObserver)return r(WebKitMutationObserver)}return"function"==typeof setImmediate?function(e){setImmediate(i(e))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(e){setTimeout(i(e),0)}:null}()},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",function(){return i})},"nA++":function(e,t,n){"use strict";e.exports=function(e){return"function"==typeof e}},nC3q:function(e,t,n){"use strict";var i=n("1TtK"),r=Object.create,o=Object.prototype.hasOwnProperty;e.exports=function(e){var t,n=0,s=1,a=r(null),c=r(null),l=0;return e=i(e),{hit:function(i){var r=c[i],u=++l;if(a[u]=i,c[i]=u,!r){if(++n<=e)return;return t(i=a[s]),i}if(delete a[r],s===r)for(;!o.call(a,++s);)continue},delete:t=function(e){var t=c[e];if(t&&(delete a[t],delete c[e],--n,s===t)){if(!n)return l=0,void(s=1);for(;!o.call(a,++s);)continue}},clear:function(){n=0,s=1,a=r(null),c=r(null),l=0}}}},nHt3:function(e,t,n){!function(e){"use strict";function t(e,t){function n(e){clearTimeout(i.doRedraw),i.doRedraw=setTimeout(function(){i.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var i=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(i.doUpdate),i.doUpdate=setTimeout(function(){i.computeScale()&&n(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("changes",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){!1!==e&&this.computeScale();var t=this.cm,n=this.hScale,i=document.createDocumentFragment(),r=this.annotations,o=t.getOption("lineWrapping"),s=o&&1.5*t.defaultTextHeight(),a=null,c=null;function l(e,n){return a!=e.line&&(c=t.getLineHandle(a=e.line)),c.widgets&&c.widgets.length||o&&c.height>s?t.charCoords(e,"local")[n?"top":"bottom"]:t.heightAtLine(c,"local")+(n?0:c.height)}var u=t.lastLine();if(t.display.barWidth)for(var h,d=0;du)){for(var f=h||l(p.from,!0)*n,g=l(p.to,!1)*n;du)&&!((h=l(r[d+1].from,!0)*n)>g+.9);)g=l((p=r[++d]).to,!1)*n;if(g!=f){var m=Math.max(g-f,3),b=i.appendChild(document.createElement("div"));b.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(f+this.buttonHeight)+"px; height: "+m+"px",b.className=this.options.className,p.id&&b.setAttribute("annotation-id",p.id)}}}this.div.textContent="",this.div.appendChild(i)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(n("VrN/"))},nLfN:function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return f}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return p});var i=n("fXoL"),r=n("ofXK");let o;try{o="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(m){o=!1}let s,a,c,l,u=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Object(r.A)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.\u0275fac=function(t){return new(t||e)(i.ac(i.D))},e.\u0275prov=Object(i.Mb)({factory:function(){return new e(Object(i.ac)(i.D))},token:e,providedIn:"root"}),e})(),h=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)}}),e})();function d(e){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>s=!0}))}finally{s=s||!1}return s}()?e:!!e.capture}function p(){if(null==c){if("object"!=typeof document||!document)return c=!1,c;if("scrollBehavior"in document.documentElement.style)c=!0;else{const e=Element.prototype.scrollTo;c=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return c}function f(){if("object"!=typeof document||!document)return 0;if(null==a){const e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),a=0,0===e.scrollLeft&&(e.scrollLeft=1,a=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return a}function g(e){if(function(){if(null==l){const e="undefined"!=typeof document?document.head:null;l=!(!e||!e.createShadowRoot&&!e.attachShadow)}return l}()){const t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}},nQNJ:function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"a",function(){return m});var i=n("HaE+"),r=n("ReVU"),o=n("6EqW"),s=n("P9dZ"),a=n("l7P3"),c=n("QlJJ");const l=Object(a.p)(e=>e?e.environments:{...Object(c.b)()},e=>{if(e.activeSubEnvironment)return e.subEnvironments.find(t=>t.id===e.activeSubEnvironment)});var u=n("V5dU"),h=n("SxV6"),d=n("fXoL"),p=n("tk/3"),f=function(e){return e.INTROSPECTION="introspection",e.QUERY="query",e.SUBSCRIPTION="subscription",e}({});const g={atob:{exec:()=>Object(i.a)(function*(){return(yield n.e(2).then(n.t.bind(null,"YC0g",7))).atob})()},btoa:{exec:()=>Object(i.a)(function*(){return(yield n.e(2).then(n.t.bind(null,"YC0g",7))).btoa})()},"crypto-js":{exec:()=>Object(i.a)(function*(){return(yield n.e(8).then(n.t.bind(null,"NFKh",7))).default})()}};let m=(()=>{class e{constructor(e,t,n,i){this.cookieService=e,this.http=t,this.store=n,this.notifyService=i}executeScript(e,t){var r=this;return Object(i.a)(function*(){const i=(yield n.e(12).then(n.t.bind(null,"kmxh",7))).default,a=JSON.parse(JSON.stringify(t)),c=new i({ecmaVer:10,sandBox:!0});c.import({altair:r.getGlobalContext(a)}),c.run(`\n const program = async() => {\n ${e};\n return altair.data;\n };\n exports.end = program();\n `);const u=yield c.exports.end;if(o.a.log("interpreter result:",u),a.__toSetActiveEnvironment){const e=yield r.store.select(l).pipe(Object(h.a)()).toPromise();if(e)try{const t={...JSON.parse(e.variablesJson),...a.__toSetActiveEnvironment};r.store.dispatch(new s.m({id:e.id,value:JSON.stringify(t,null,2)})),r.notifyService.info(`Updated active environment variables: ${Object.keys(a.__toSetActiveEnvironment).join(", ")}.`,"Request script")}catch(d){r.notifyService.error(`Could not update active environment variables. ${d.message}`,"Request script")}else r.notifyService.warning("No active environment selected. Cannot update environment variables","Request script")}return a})()}getGlobalContext(e){const t=this;return{data:e,helpers:{getEnvironment:t=>e.environment[t],setEnvironment:(t,n,i=!1)=>{e.environment[t]=n,i&&(e.__toSetActiveEnvironment=e.__toSetActiveEnvironment||{},e.__toSetActiveEnvironment[t]=n)},getCookie:e=>t.cookieService.get(e),request:(n=Object(i.a)(function*(e,n,i){try{return t.http.request(e,n,i).toPromise()}catch(r){return null}}),function(e,t,i){return n.apply(this,arguments)})},importModule:e=>this.importModuleHelper(e),response:this.buildContextResponse(e)};var n}importModuleHelper(e){return Object(i.a)(function*(){if(!Object.keys(g).includes(e))throw new Error(`No pre request module found matching "${e}"`);return g[e].exec()})()}buildContextResponse(e){if(e.response)return{body:e.response.response.body,requestType:e.requestType||f.QUERY,responseTime:e.response.meta.responseTime,statusCode:e.response.response.status,headers:e.response.meta.headers}}}return e.\u0275fac=function(t){return new(t||e)(d.ac(r.a),d.ac(p.c),d.ac(a.h),d.ac(u.a))},e.\u0275prov=d.Mb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},nTiS:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return c});var i=n("w7D7");const r=window.__ALTAIR_TRANSLATE__;class o{constructor({endpointURL:e,subscriptionsEndpoint:t,initialQuery:n,initialHeaders:o,initialEnvironments:s,initialVariables:a,initialPreRequestScript:c,initialPostRequestScript:l="",instanceStorageNamespace:u,initialSettings:h}={}){this.donation={url:"https://opencollective.com/altair/donate",action_count_threshold:50},this.ga="UA-41432833-6",this.add_query_depth_limit=3,this.tab_size=2,this.max_windows=i.a?50:15,this.default_language=r?"ach-UG":"en-US",this.languages={"en-US":"English","fr-FR":"French","es-ES":"Espa\xf1ol","cs-CZ":"Czech","de-DE":"German","pt-BR":"Brazilian","ru-RU":"Russian","uk-UA":"Ukrainian","zh-CN":"Chinese Simplified","ja-JP":"Japanese","sr-SP":"Serbian","it-IT":"Italian","pl-PL":"Polish","ko-KR":"Korean","ro-RO":"Romanian","vi-VN":"Vietnamese"},this.query_history_depth=i.a?100:15,this.defaultTheme="system",this.isTranslateMode=r,this.isWebApp=window.__ALTAIR_WEB_APP__,this.initialData={url:"",subscriptionsEndpoint:"",query:"",variables:"",headers:null,environments:{},preRequestScript:"",postRequestScript:"",instanceStorageNamespace:"altair_",settings:void 0},this.initialData.url=window.__ALTAIR_ENDPOINT_URL__||e||"",this.initialData.subscriptionsEndpoint=window.__ALTAIR_SUBSCRIPTIONS_ENDPOINT__||t||"",this.initialData.query=window.__ALTAIR_INITIAL_QUERY__||n||"",this.initialData.variables=window.__ALTAIR_INITIAL_VARIABLES__||a||"",this.initialData.headers=window.__ALTAIR_INITIAL_HEADERS__||o||"",this.initialData.environments=s||{},this.initialData.preRequestScript=window.__ALTAIR_INITIAL_PRE_REQUEST_SCRIPT__||c||"",this.initialData.postRequestScript=l,this.initialData.instanceStorageNamespace=window.__ALTAIR_INSTANCE_STORAGE_NAMESPACE__||u||"altair_",this.initialData.settings=h||void 0}}let s=new o;const a=e=>{s=e},c=()=>s;window.getAltairConfig=c},nYR2:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("7o/Q"),r=n("quSY");function o(e){return t=>t.lift(new s(e))}class s{constructor(e){this.callback=e}call(e,t){return t.subscribe(new a(e,this.callback))}}class a extends i.a{constructor(e,t){super(e),this.add(new r.a(t))}}},neE4:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("t3R0"),r=n("ZZnB"),o=function(e,t,n){this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||Object(i.a)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Object(i.a)(0,"column in locationOffset is 1-indexed and must be positive")};Object(r.a)(o)},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});const i=e=>t=>{for(let n=0,i=e.length;n{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Mb)({factory:u,token:e,providedIn:"platform"}),e})();function u(){return Object(i.ac)(d)}const h=new i.s("Location Initialized");let d=(()=>{class e extends l{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=o().getLocation(),this._history=o().getHistory()}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(e){o().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){o().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(i.ac(c))},e.\u0275prov=Object(i.Mb)({factory:f,token:e,providedIn:"platform"}),e})();function p(){return!!window.history.pushState}function f(){return new d(Object(i.ac)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function b(e){return e&&"?"!==e[0]?"?"+e:e}let v=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Mb)({factory:y,token:e,providedIn:"root"}),e})();function y(e){const t=Object(i.ac)(c).location;return new _(Object(i.ac)(l),t&&t.origin||"")}const w=new i.s("appBaseHref");let _=(()=>{class e extends v{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const r=this.prepareExternalUrl(n+b(i));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){const r=this.prepareExternalUrl(n+b(i));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(i.ac(l),i.ac(w,8))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),O=(()=>{class e extends v{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let r=this.prepareExternalUrl(n+b(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,i){let r=this.prepareExternalUrl(n+b(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(i.ac(l),i.ac(w,8))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e{constructor(e,t){this._subject=new i.n,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(S(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+b(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+b(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+b(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)}))}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(i.ac(v),i.ac(l))},e.normalizeQueryParams=b,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(i.Mb)({factory:E,token:e,providedIn:"root"}),e})();function E(){return new C(Object(i.ac)(v),Object(i.ac)(l))}function S(e){return e.replace(/\/index.html$/,"")}var T=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),x=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),k=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),I=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),D=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function z(e,t,n){const r=Object(i.nb)(e),o=F([r[i.db.DayPeriodsFormat],r[i.db.DayPeriodsStandalone]],t);return F(o,n)}function j(e,t){return F(Object(i.nb)(e)[i.db.DateFormat],t)}function A(e,t){return F(Object(i.nb)(e)[i.db.TimeFormat],t)}function R(e,t){return F(Object(i.nb)(e)[i.db.DateTimeFormat],t)}function N(e,t){const n=Object(i.nb)(e),r=n[i.db.NumberSymbols][t];if(void 0===r){if(t===D.CurrencyDecimal)return n[i.db.NumberSymbols][D.Decimal];if(t===D.CurrencyGroup)return n[i.db.NumberSymbols][D.Group]}return r}const L=i.qb;function M(e){if(!e[i.db.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[i.db.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function F(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function P(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const V=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,G={},B=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var W=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),$=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),U=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function H(e,t,n,i){let r=function(e){if(oe(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,i=1]=e.split("-").map(e=>+e);return q(t,n-1,i)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(V))return function(e){const t=new Date(0);let n=0,i=0;const r=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-i,c=Number(e[6]||0),l=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,s,a,c,l),t}(n)}const t=new Date(e);if(!oe(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Q(n,t)||t;let o,s=[];for(;t;){if(o=B.exec(t),!o){s.push(t);break}{s=s.concat(o.slice(1));const e=s.pop();if(!e)break;t=e}}let a=r.getTimezoneOffset();i&&(a=re(i,a),r=function(e,t,n){const i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(re(t,i)-i))}(r,i));let c="";return s.forEach(e=>{const t=function(e){if(ie[e])return ie[e];let t;switch(e){case"G":case"GG":case"GGG":t=J(U.Eras,k.Abbreviated);break;case"GGGG":t=J(U.Eras,k.Wide);break;case"GGGGG":t=J(U.Eras,k.Narrow);break;case"y":t=Y($.FullYear,1,0,!1,!0);break;case"yy":t=Y($.FullYear,2,0,!0,!0);break;case"yyy":t=Y($.FullYear,3,0,!1,!0);break;case"yyyy":t=Y($.FullYear,4,0,!1,!0);break;case"Y":t=ne(1);break;case"YY":t=ne(2,!0);break;case"YYY":t=ne(3);break;case"YYYY":t=ne(4);break;case"M":case"L":t=Y($.Month,1,1);break;case"MM":case"LL":t=Y($.Month,2,1);break;case"MMM":t=J(U.Months,k.Abbreviated);break;case"MMMM":t=J(U.Months,k.Wide);break;case"MMMMM":t=J(U.Months,k.Narrow);break;case"LLL":t=J(U.Months,k.Abbreviated,x.Standalone);break;case"LLLL":t=J(U.Months,k.Wide,x.Standalone);break;case"LLLLL":t=J(U.Months,k.Narrow,x.Standalone);break;case"w":t=te(1);break;case"ww":t=te(2);break;case"W":t=te(1,!0);break;case"d":t=Y($.Date,1);break;case"dd":t=Y($.Date,2);break;case"E":case"EE":case"EEE":t=J(U.Days,k.Abbreviated);break;case"EEEE":t=J(U.Days,k.Wide);break;case"EEEEE":t=J(U.Days,k.Narrow);break;case"EEEEEE":t=J(U.Days,k.Short);break;case"a":case"aa":case"aaa":t=J(U.DayPeriods,k.Abbreviated);break;case"aaaa":t=J(U.DayPeriods,k.Wide);break;case"aaaaa":t=J(U.DayPeriods,k.Narrow);break;case"b":case"bb":case"bbb":t=J(U.DayPeriods,k.Abbreviated,x.Standalone,!0);break;case"bbbb":t=J(U.DayPeriods,k.Wide,x.Standalone,!0);break;case"bbbbb":t=J(U.DayPeriods,k.Narrow,x.Standalone,!0);break;case"B":case"BB":case"BBB":t=J(U.DayPeriods,k.Abbreviated,x.Format,!0);break;case"BBBB":t=J(U.DayPeriods,k.Wide,x.Format,!0);break;case"BBBBB":t=J(U.DayPeriods,k.Narrow,x.Format,!0);break;case"h":t=Y($.Hours,1,-12);break;case"hh":t=Y($.Hours,2,-12);break;case"H":t=Y($.Hours,1);break;case"HH":t=Y($.Hours,2);break;case"m":t=Y($.Minutes,1);break;case"mm":t=Y($.Minutes,2);break;case"s":t=Y($.Seconds,1);break;case"ss":t=Y($.Seconds,2);break;case"S":t=Y($.FractionalSeconds,1);break;case"SS":t=Y($.FractionalSeconds,2);break;case"SSS":t=Y($.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Z(W.Short);break;case"ZZZZZ":t=Z(W.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Z(W.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Z(W.Long);break;default:return null}return ie[e]=t,t}(e);c+=t?t(r,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function q(e,t,n){const i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Q(e,t){const n=function(e){return Object(i.nb)(e)[i.db.LocaleId]}(e);if(G[n]=G[n]||{},G[n][t])return G[n][t];let r="";switch(t){case"shortDate":r=j(e,I.Short);break;case"mediumDate":r=j(e,I.Medium);break;case"longDate":r=j(e,I.Long);break;case"fullDate":r=j(e,I.Full);break;case"shortTime":r=A(e,I.Short);break;case"mediumTime":r=A(e,I.Medium);break;case"longTime":r=A(e,I.Long);break;case"fullTime":r=A(e,I.Full);break;case"short":const t=Q(e,"shortTime"),n=Q(e,"shortDate");r=K(R(e,I.Short),[t,n]);break;case"medium":const i=Q(e,"mediumTime"),o=Q(e,"mediumDate");r=K(R(e,I.Medium),[i,o]);break;case"long":const s=Q(e,"longTime"),a=Q(e,"longDate");r=K(R(e,I.Long),[s,a]);break;case"full":const c=Q(e,"fullTime"),l=Q(e,"fullDate");r=K(R(e,I.Full),[c,l])}return r&&(G[n][t]=r),r}function K(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function X(e,t,n="-",i,r){let o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===$.Hours)0===a&&-12===n&&(a=12);else if(e===$.FractionalSeconds)return c=t,X(a,3).substr(0,c);var c;const l=N(s,D.MinusSign);return X(a,t,l,i,r)}}function J(e,t,n=x.Format,r=!1){return function(o,s){return function(e,t,n,r,o,s){switch(n){case U.Months:return function(e,t,n){const r=Object(i.nb)(e),o=F([r[i.db.MonthsFormat],r[i.db.MonthsStandalone]],t);return F(o,n)}(t,o,r)[e.getMonth()];case U.Days:return function(e,t,n){const r=Object(i.nb)(e),o=F([r[i.db.DaysFormat],r[i.db.DaysStandalone]],t);return F(o,n)}(t,o,r)[e.getDay()];case U.DayPeriods:const a=e.getHours(),c=e.getMinutes();if(s){const e=function(e){const t=Object(i.nb)(e);return M(t),(t[i.db.ExtraData][2]||[]).map(e=>"string"==typeof e?P(e):[P(e[0]),P(e[1])])}(t),n=function(e,t,n){const r=Object(i.nb)(e);M(r);const o=F([r[i.db.ExtraData][0],r[i.db.ExtraData][1]],t)||[];return F(o,n)||[]}(t,o,r),s=e.findIndex(e=>{if(Array.isArray(e)){const[t,n]=e,i=a>=t.hours&&c>=t.minutes,r=a0?Math.floor(r/60):Math.ceil(r/60);switch(e){case W.Short:return(r>=0?"+":"")+X(s,2,o)+X(Math.abs(r%60),2,o);case W.ShortGMT:return"GMT"+(r>=0?"+":"")+X(s,1,o);case W.Long:return"GMT"+(r>=0?"+":"")+X(s,2,o)+":"+X(Math.abs(r%60),2,o);case W.Extended:return 0===i?"Z":(r>=0?"+":"")+X(s,2,o)+":"+X(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}function ee(e){return q(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function te(e,t=!1){return function(n,i){let r;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();r=1+Math.floor((t+e)/7)}else{const e=ee(n),t=function(e){const t=q(e,0,1).getDay();return q(e,0,1+(t<=4?4:11)-t)}(e.getFullYear()),i=e.getTime()-t.getTime();r=1+Math.round(i/6048e5)}return X(r,e,N(i,D.MinusSign))}}function ne(e,t=!1){return function(n,i){return X(ee(n).getFullYear(),e,N(i,D.MinusSign),t)}}const ie={};function re(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function oe(e){return e instanceof Date&&!isNaN(e.valueOf())}class se{}let ae=(()=>{class e extends se{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(L(t||this.locale)(e)){case T.Zero:return"zero";case T.One:return"one";case T.Two:return"two";case T.Few:return"few";case T.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(i.ac(i.w))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();function ce(e,t,n){return Object(i.xb)(e,t,n)}function le(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(r)}return null}let ue=(()=>{class e{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,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&&(Object(i.tb)(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 ${Object(i.zb)(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)(i.Qb(i.u),i.Qb(i.v),i.Qb(i.l),i.Qb(i.G))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})(),he=(()=>{class e{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const e=t.get(i.z);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(e.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(i.j)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.S))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.Cb]}),e})();class de{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}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 pe=(()=>{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){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,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new de(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new fe(e,n);t.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const o=new fe(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)(i.Qb(i.S),i.Qb(i.O),i.Qb(i.u))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class fe{constructor(e,t){this.record=e,this.view=t}}let ge=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new me,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){be("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){be("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)(i.Qb(i.S),i.Qb(i.O))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class me{constructor(){this.$implicit=null,this.ngIf=null}}function be(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(i.zb)(t)}'.`)}class ve{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 ye=(()=>{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 ve(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.S),i.Qb(i.O),i.Qb(ye,1))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),_e=(()=>{class e{constructor(e,t,n){n._addDefault(new ve(e,t))}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.S),i.Qb(i.O),i.Qb(ye,1))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Oe=(()=>{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,i]=e.split(".");null!=(t=null!=t&&i?`${t}${i}`: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)(i.Qb(i.l),i.Qb(i.v),i.Qb(i.G))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Ce=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.S))},e.\u0275dir=i.Lb({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Cb]}),e})();function Ee(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(i.zb)(e)}'`)}class Se{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Te{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const xe=new Te,ke=new Se;let Ie=(()=>{class e{constructor(e){this._ref=e,this._latestValue=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)):this._latestValue:(e&&this._subscribe(e),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(Object(i.vb)(t))return xe;if(Object(i.wb)(t))return ke;throw Ee(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=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)(i.cc())},e.\u0275pipe=i.Pb({name:"async",type:e,pure:!1}),e})(),De=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,r){if(null==t||""===t||t!=t)return null;try{return H(t,n,r||this.locale,i)}catch(o){throw Ee(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(i.w))},e.\u0275pipe=i.Pb({name:"date",type:e,pure:!0}),e})(),ze=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=i.Pb({name:"json",type:e,pure:!1}),e})(),je=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},providers:[{provide:se,useClass:ae}]}),e})();const Ae="browser";function Re(e){return e===Ae}function Ne(e){return"server"===e}let Le=(()=>{class e{}return e.\u0275prov=Object(i.Mb)({token:e,providedIn:"root",factory:()=>new Me(Object(i.ac)(c),window)}),e})();class Me{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){var t;if(!this.supportsScrolling())return;const n=null!==(t=this.document.getElementById(e))&&void 0!==t?t:this.document.getElementsByName(e)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Fe(this.window.history)||Fe(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Fe(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}},opf0:function(e,t,n){"use strict";e.exports=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}},oqE9:function(e,t,n){"use strict";var i,r=n("gQ7D"),o=(i={enum:["cs-CZ","de-DE","en-US","es-ES","fr-FR","it-IT","ja-JP","ko-KR","pl-PL","pt-BR","ro-RO","ru-RU","sr-SP","uk-UA","vi-VN","zh-CN"],type:"string"},function e(t,n,o,s,a){if(!t||"object"!=typeof t||Array.isArray(t))return e.errors=[{keyword:"type",dataPath:(n||"")+"",schemaPath:"#/type",params:{type:"object"},message:"should be object"}],!1;var c=!0;if(void 0===t.addQueryDepthLimit)c=!0;else{var l=0;if("number"!=typeof t.addQueryDepthLimit)return e.errors=[{keyword:"type",dataPath:(n||"")+".addQueryDepthLimit",schemaPath:"#/properties/addQueryDepthLimit/type",params:{type:"number"},message:"should be number"}],!1;c=0===l}if(c){if(void 0===t["alert.disableWarnings"])c=!0;else{if(l=0,"boolean"!=typeof t["alert.disableWarnings"])return e.errors=[{keyword:"type",dataPath:(n||"")+"['alert.disableWarnings']",schemaPath:"#/properties/alert.disableWarnings/type",params:{type:"boolean"},message:"should be boolean"}],!1;c=0===l}if(c){if(void 0===t.disablePushNotification)c=!0;else{if(l=0,"boolean"!=typeof t.disablePushNotification)return e.errors=[{keyword:"type",dataPath:(n||"")+".disablePushNotification",schemaPath:"#/properties/disablePushNotification/type",params:{type:"boolean"},message:"should be boolean"}],!1;c=0===l}if(c){if(void 0===t.enableExperimental)c=!0;else{if(l=0,"boolean"!=typeof t.enableExperimental)return e.errors=[{keyword:"type",dataPath:(n||"")+".enableExperimental",schemaPath:"#/properties/enableExperimental/type",params:{type:"boolean"},message:"should be boolean"}],!1;c=0===l}if(c){if(void 0===t.historyDepth)c=!0;else{if(l=0,"number"!=typeof t.historyDepth)return e.errors=[{keyword:"type",dataPath:(n||"")+".historyDepth",schemaPath:"#/properties/historyDepth/type",params:{type:"number"},message:"should be number"}],!1;c=0===l}if(c){if(void 0===(f=t.language))c=!0;else{l=0;var u=0;if("string"!=typeof f)return e.errors=[{keyword:"type",dataPath:(n||"")+".language",schemaPath:"#/definitions/SettingsLanguage/type",params:{type:"string"},message:"should be string"}],!1;var h=i.enum;p=!1;for(var d=0;da(n,e)):a(n,t)}if(e instanceof r.GraphQLInputObjectType){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),i=l(t.members,t=>{const i=t.key.value;n[i]=!0;const r=e.getFields()[i];return r?a(r?r.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${i}".`]]});return Object.keys(e.getFields()).forEach(o=>{n[o]||e.getFields()[o].type instanceof r.GraphQLNonNull&&i.push([t,`Object of type "${e}" is missing required field "${o}".`])}),i}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof r.GraphQLEnumType||e instanceof r.GraphQLScalarType)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||null==(n=e.parseValue(t.value))||n!=n)?[[t,`Expected value of type "${e}".`]]:[];var n}function c(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function l(e,t){return Array.prototype.concat.apply([],e.map(t))}i.default.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let i;try{i=(0,o.default)(e)}catch(s){if(s.stack)throw s;return[c(n,s,s.message)]}const r=t.variableToType;return r?function(e,t,n){const i=[];return n.members.forEach(n=>{const r=n.key.value,o=t[r];o?a(o,n.value).forEach(([t,n])=>{i.push(c(e,t,n))}):i.push(c(e,n.key,`Variable "$${r}" does not appear in any GraphQL query.`))}),i}(n,r,i):[]})},pdGh:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n("ofXK"),r=n("fXoL");let o=(()=>{class e{constructor(e,t){this.viewContainer=e,this.templateRef=t,this.embeddedViewRef=null,this.context=new s,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(e,t){return!0}recreateView(){this.viewContainer.clear();const e=this.nzStringTemplateOutlet instanceof r.O;this.embeddedViewRef=this.viewContainer.createEmbeddedView(e?this.nzStringTemplateOutlet:this.templateRef,e?this.nzStringTemplateOutletContext:this.context)}updateContext(){const e=this.nzStringTemplateOutlet instanceof r.O?this.nzStringTemplateOutletContext:this.context,t=this.embeddedViewRef.context;if(e)for(const n of Object.keys(e))t[n]=e[n]}ngOnChanges(e){const{nzStringTemplateOutletContext:t,nzStringTemplateOutlet:n}=e;n&&(this.context.$implicit=n.currentValue),(()=>{let e=!1;if(n)if(n.firstChange)e=!0;else{const t=n.currentValue instanceof r.O;e=n.previousValue instanceof r.O||t}return t&&(e=>{const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(const e of n)if(-1===t.indexOf(e))return!0;return!1}return!0})(t)||e})()?this.recreateView():this.updateContext()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.S),r.Qb(r.O))},e.\u0275dir=r.Lb({type:e,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[r.Cb]}),e})();class s{}let a=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[i.c]]}),e})()},"pv/G":function(e,t,n){"use strict";function i(e,t){var n="string"==typeof e?[e,t]:[void 0,e],i=n[0],r=n[1],o=" Did you mean ";switch(i&&(o+=i+" "),r.length){case 0:return"";case 1:return o+r[0]+"?";case 2:return o+r[0]+" or "+r[1]+"?"}var s=r.slice(0,5),a=s.pop();return o+s.join(", ")+", or "+a+"?"}n.d(t,"a",function(){return i})},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var i=n("7o/Q"),r=n("WMd4");function o(e,t=0){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new a(e,this.scheduler,this.delay))}}class a extends i.a{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new c(e,this.destination)))}_next(e){this.scheduleMessage(r.a.createNext(e))}_error(e){this.scheduleMessage(r.a.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}class c{constructor(e,t){this.notification=e,this.destination=t}}},qY48:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"d",function(){return o}),n.d(t,"c",function(){return s});const i="SET_POSTREQUEST_SCRIPT",r="SET_POSTREQUEST_ENABLED";class o{constructor(e,t){this.windowId=e,this.payload=t,this.type=i}}class s{constructor(e,t){this.windowId=e,this.payload=t,this.type=r}}},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return c});var i=n("3N8a");class r extends i.a{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}var o=n("IjjT");class s extends o.a{}const a=new s(r),c=a},qhZs:function(e,t,n){"use strict";var i=n("sYVv"),r=n("aFjk"),o=n("n/l8"),s=n("JlUD"),a=n("2ZJU"),c=n("ZI+j"),l=Function.prototype,u=Math.max,h=Math.min,d=Object.create;c.maxAge=function(e,t,n){var p,f,g,m;(e=a(e))&&(p=d(null),t.on("set"+(f=n.async&&c.async||n.promise&&c.promise?"async":""),function(n){p[n]=setTimeout(function(){t.delete(n)},e),"function"==typeof p[n].unref&&p[n].unref(),m&&(m[n]&&"nextTick"!==m[n]&&clearTimeout(m[n]),m[n]=setTimeout(function(){delete m[n]},g),"function"==typeof m[n].unref&&m[n].unref())}),t.on("delete"+f,function(e){clearTimeout(p[e]),delete p[e],m&&("nextTick"!==m[e]&&clearTimeout(m[e]),delete m[e])}),n.preFetch&&(g=!0===n.preFetch||isNaN(n.preFetch)?.333:u(h(Number(n.preFetch),1),0))&&(m={},g=(1-g)*e,t.on("get"+f,function(e,r,a){m[e]||(m[e]="nextTick",o(function(){var o;"nextTick"===m[e]&&(delete m[e],t.delete(e),n.async&&(r=i(r)).push(l),o=t.memoized.apply(a,r),n.promise&&s(o)&&("function"==typeof o.done?o.done(l,l):o.then(l,l)))}))})),t.on("clear"+f,function(){r(p,function(e){clearTimeout(e)}),p={},m&&(r(m,function(e){"nextTick"!==e&&clearTimeout(e)}),m={})}))}},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("DH7j"),r=n("XoHu"),o=n("n6bG");const s=(()=>{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 a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof s?t.errors:t),[])}},qvY7:function(e,t,n){"use strict";n.r(t),n.d(t,"validateWithCustomRules",function(){return s});var i=n("FQ53"),r=n("4RMZ"),o=n("EkME");function s(e,t,s,a){const{NoUnusedFragments:c}=n("ZBm+"),{ExecutableDefinitions:l}=n("ZfCc"),u=[c,l];if(a){const{KnownFragmentNames:e}=n("E++1");u.push(e)}const h=i.a.filter(e=>!u.some(t=>t===e)),d=new r.a(e);s&&Array.prototype.push.apply(h,s);const p=Object(o.c)(e,t,h,d);return p.length>0?p.filter(e=>{if(-1===e.message.indexOf("Unknown directive"))return!0;if(e.nodes&&e.nodes[0]){const t=e.nodes[0];return!(t.name&&"arguments"===t.name.value||"argumentDefinitions"===t.name.value)}}):[]}},r60r:function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n("1/U3"),r=n("Y/la"),o=n("rWdj"),s=n("dWS+"),a=n("/jXB"),c=n("dQau"),l=n("axIb"),u=n("umOc");function h(e,t){return'Fields "'.concat(e,'" conflict because ').concat(d(t),". ")+"Use different aliases on the fields to fetch both if this was intentional."}function d(e){return Array.isArray(e)?e.map(function(e){var t=e[1];return'subfields "'.concat(e[0],'" conflict because ').concat(d(t))}).join(" and "):e}function p(e){var t=new O,n=new Map;return{SelectionSet:function(i){for(var o=function(e,t,n,i,o){var s=[],a=y(e,t,i,o),c=a[0],l=a[1];if(function(e,t,n,i,o){for(var s=0,a=Object(r.a)(o);s1)for(var h=0;h0)return[[t,e.map(function(e){return e[0]})],e.reduce(function(e,t){return e.concat(t[1])},[n]),e.reduce(function(e,t){return e.concat(t[2])},[i])]}(function(e,t,n,i,r,o,s,a){var c=[],l=y(e,t,r,o),u=l[0],h=l[1],d=y(e,t,s,a),p=d[0],b=d[1];if(m(e,c,t,n,i,u,p),0!==b.length)for(var v=Object.create(null),w=0;wt.height||e.scrollWidth>t.width}}class _{constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class O{enable(){}disable(){}attach(){}}function C(e,t){return t.some(t=>e.bottomt.bottom||e.rightt.right)}function E(e,t){return t.some(t=>e.topt.bottom||e.leftt.right)}class S{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();C(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let T=(()=>{class e{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new O,this.close=e=>new _(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new w(this._viewportRuler,this._document),this.reposition=e=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=i}}return e.\u0275fac=function(t){return new(t||e)(r.ac(i.e),r.ac(i.g),r.ac(r.B),r.ac(a.d))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(i.e),Object(r.ac)(i.g),Object(r.ac)(r.B),Object(r.ac)(a.d))},token:e,providedIn:"root"}),e})();class x{constructor(e){if(this.scrollStrategy=new O,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class k{constructor(e,t,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class I{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}let D=(()=>{class e{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return e.\u0275fac=function(t){return new(t||e)(r.ac(a.d))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(a.d))},token:e,providedIn:"root"}),e})(),z=(()=>{class e extends D{constructor(e){super(e),this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(a.d))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(a.d))},token:e,providedIn:"root"}),e})(),j=(()=>{class e extends D{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._clickListener=e=>{const t=e.composedPath?e.composedPath()[0]:e.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(t))break;r._outsidePointerEvents.next(e)}}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(a.d),r.ac(o.a))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(a.d),Object(r.ac)(o.a))},token:e,providedIn:"root"}),e})();const A=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let R=(()=>{class e{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||A){const e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let t=0;tthis._backdropClick.next(e),this._keydownEvents=new u.a,this._outsidePointerEvents=new u.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Object(c.d)(this._config.width),e.height=Object(c.d)(this._config.height),e.minWidth=Object(c.d)(this._config.minWidth),e.minHeight=Object(c.d)(this._config.minHeight),e.maxWidth=Object(c.d)(this._config.maxWidth),e.maxHeight=Object(c.d)(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;Object(c.b)(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(Object(f.a)(Object(d.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}const L=/([A-Za-z%]+)$/;class M{constructor(e,t,n,i,r){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.a,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=[];let r;for(let o of this._preferredPositions){let s=this._getOriginPoint(e,o),a=this._getOverlayPoint(s,t,o),c=this._getOverlayFit(a,t,n,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:o,origin:s,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!r||r.overlayFit.visibleAreat&&(t=i,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&F(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,i;if("center"==t.originX)n=e.left+e.width/2;else{const i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return i="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:i}}_getOverlayPoint(e,t,n){let i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}_getOverlayFit(e,t,n,i){const r=V(t);let{x:o,y:s}=e,a=this._getOffset(i,"x"),c=this._getOffset(i,"y");a&&(o+=a),c&&(s+=c);let l=0-s,u=s+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),d=this._subtractOverflows(r.height,l,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:r.width*r.height===p,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const i=n.bottom-t.y,r=n.right-t.x,o=P(this._overlayRef.getConfig().minHeight),s=P(this._overlayRef.getConfig().minWidth),a=e.fitsInViewportHorizontally||null!=s&&s<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&a}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=V(t),r=this._viewportRect,o=Math.max(e.x+i.width-r.width,0),s=Math.max(e.y+i.height-r.height,0),a=Math.max(r.top-n.top-e.y,0),c=Math.max(r.left-n.left-e.x,0);let l=0,u=0;return l=i.width<=r.width?c||-o:e.xi&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-i/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)l=n.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)c=e.x,a=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),i=this._lastBoundingBoxSize.width;a=2*t,c=e.x-t,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=e.x-i/2)}return{top:o,left:c,bottom:s,right:l,width:a,height:r}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=Object(c.d)(n.height),i.top=Object(c.d)(n.top),i.bottom=Object(c.d)(n.bottom),i.width=Object(c.d)(n.width),i.left=Object(c.d)(n.left),i.right=Object(c.d)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=Object(c.d)(e)),r&&(i.maxWidth=Object(c.d)(r))}this._lastBoundingBoxSize=n,F(this._boundingBox.style,i)}_resetBoundingBoxStyles(){F(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){F(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();F(n,this._getExactOverlayY(t,e,i)),F(n,this._getExactOverlayX(t,e,i))}else n.position="static";let s="",a=this._getOffset(t,"x"),l=this._getOffset(t,"y");a&&(s+=`translateX(${a}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=Object(c.d)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Object(c.d)(o.maxWidth):r&&(n.maxWidth="")),F(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Object(c.d)(r.y),i}_getExactOverlayX(e,t,n){let i,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Object(c.d)(o.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(e,n),isOriginOutsideView:C(e,n),isOverlayClipped:E(t,n),isOverlayOutsideView:C(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Object(c.b)(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof r.l)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function F(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function P(e){if("number"!=typeof e&&null!=e){const[t,n]=e.split(L);return n&&"px"!==n?null:parseFloat(t)}return e||null}function V(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}class G{constructor(e,t,n,i,r,o,s){this._preferredPositions=[],this._positionStrategy=new M(n,i,r,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,i){const r=new k(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class B{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:o,maxHeight:s}=n,a=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s);e.position=this._cssPosition,e.marginLeft=a?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,a?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let W=(()=>{class e{constructor(e,t,n,i){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=i}global(){return new B}connectedTo(e,t,n){return new G(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new M(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(i.g),r.ac(a.d),r.ac(o.a),r.ac(R))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(i.g),Object(r.ac)(a.d),Object(r.ac)(o.a),Object(r.ac)(R))},token:e,providedIn:"root"}),e})(),$=0,U=(()=>{class e{constructor(e,t,n,i,r,o,s,a,c,l,u){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new x(e);return r.direction=r.direction||this._directionality.value,new N(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+$++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(r.g)),new l.d(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(T),r.ac(R),r.ac(r.j),r.ac(W),r.ac(z),r.ac(r.t),r.ac(r.B),r.ac(a.d),r.ac(s.b),r.ac(a.j),r.ac(j))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();const H=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],q=new r.s("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275dir=r.Lb({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e})(),K=(()=>{class e{constructor(e,t,n,i,o){this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.a.EMPTY,this._attachSubscription=h.a.EMPTY,this._detachSubscription=h.a.EMPTY,this._positionSubscription=h.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.n,this.positionChange=new r.n,this.attach=new r.n,this.detach=new r.n,this.overlayKeydown=new r.n,this.overlayOutsideClick=new r.n,this._templatePortal=new l.f(t,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Object(c.c)(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Object(c.c)(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Object(c.c)(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Object(c.c)(e)}get push(){return this._push}set push(e){this._push=Object(c.c)(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=H);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),e.keyCode!==v.f||this.disableClose||Object(v.p)(e)||(e.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{this.overlayOutsideClick.next(e)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new x({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(e=>({originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||this.offsetX,offsetY:e.offsetY||this.offsetY,panelClass:e.panelClass||void 0}));return e.setOrigin(this.origin.elementRef).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e,t=!1){return n=>n.lift(new m(e,t))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(U),r.Qb(r.O),r.Qb(r.S),r.Qb(q),r.Qb(s.b,8))},e.\u0275dir=r.Lb({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.Cb]}),e})();const X={provide:q,deps:[U],useFactory:function(e){return()=>e.scrollStrategies.reposition()}};let Y=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},providers:[U,X],imports:[[s.a,l.e,i.f],i.f]}),e})(),J=(()=>{class e extends R{constructor(e,t){super(e,t)}ngOnDestroy(){super.ngOnDestroy(),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}_createContainer(){super._createContainer(),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(()=>this._adjustParentForFullscreenChange())}_adjustParentForFullscreenChange(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_addFullscreenChangeListener(e){const t=this._getEventName();t&&(this._fullScreenListener&&this._document.removeEventListener(t,this._fullScreenListener),this._document.addEventListener(t,e),this._fullScreenListener=e)}_getEventName(){if(!this._fullScreenEventName){const e=this._document;e.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":e.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":e.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":e.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){const e=this._document;return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||null}}return e.\u0275fac=function(t){return new(t||e)(r.ac(a.d),r.ac(o.a))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(a.d),Object(r.ac)(o.a))},token:e,providedIn:"root"}),e})()},rHH4:function(e,t){const n=[{regex:/^\bcurl\b/,name:"curl"},{regex:/^(-H|--header)/,name:"header-state"},{regex:/^-X/,name:"custom-method-state"},{regex:/^(-u|--user)/,name:"user-state"},{regex:/^(-d|--data)/,name:"data-state"},{regex:/^--compressed/,name:"compressed"},{regex:/^(-i|--include)/,name:"include-headers"},{regex:/^(-s|--silent)/,name:"run-silent"},{regex:/^(-G|--get)/,name:"use-get"},{regex:/^'[^']*'/,name:"string"},{regex:/^"[^"]*"/,name:"string"},{regex:/^[^\n\r\s]*/,name:"string"},{regex:/^.*/,name:"others"}],i=e=>e.trim().replace(/^('|")\s*/,"").replace(/\s*('|")$/,"");e.exports={parseCurl:e=>{let t=e.trim();const r=[],o={url:"",method:"GET",headers:{},auth:{}};for(;t;)n.some(e=>{if(e.regex.test(t))return r.push({name:e.name,value:t.match(e.regex)}),t=t.replace(e.regex,"").trim(),!0});if(r.length){if("curl"!==r.shift().name)throw new Error("Not a curl command.");let e="";r.forEach(t=>{if(e){switch(e){case"header-state":{const e=i(t.value[0]).split(/\s*:\s*/);o.headers[e[0]]=e[1];break}case"data-state":o.data=i(t.value[0]).trim();break;case"custom-method-state":o.method=i(t.value[0]).trim()}e=""}else switch(t.name){case"header-state":e="header-state";break;case"data-state":e="data-state";break;case"custom-method-state":e="custom-method-state";break;case"user-state":e="user-state";break;case"string":{const e=i(t.value[0]);(e=>/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/.test(e))(e)&&(o.url=e);break}}})}return o}}},rUJ1:function(e,t){const n=/[&<>"']/,i=/[&<>"']/g,r=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,s={"&":"&","<":"<",">":">",'"':""","'":"'"},a=e=>s[e],c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function l(e){return e.replace(c,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const u=/(^|[^\[])\^/g,h=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,p={},f=/^[^:]+:\/*[^/]*$/,g=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(e,t){p[" "+e]||(p[" "+e]=f.test(e)?e+"/":v(e,"/",!0));const n=-1===(e=p[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(g,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(m,"$1")+t:e+t}function v(e,t,n){const i=e.length;if(0===i)return"";let r=0;for(;r(i=(i=i.source||i).replace(u,"$1"),e=e.replace(t,i),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(l(n)).replace(h,"").toLowerCase()}catch(i){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!d.test(n)&&(n=b(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n},resolveUrl:b,noopTest:{exec:function(){}},merge:function(e){let t,n,i=1;for(;i{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/);let i=0;if(n.length>t)n.splice(t);else for(;n.length2)return"[Array]";for(var n=Math.min(10,e.length),i=e.length-n,r=[],o=0;o1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(function(n){return n+": "+s(e[n],t)}).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},rt3J:function(e,t,n){!function(e){"use strict";e.registerHelper("fold","brace",function(t,n){var i,r=n.line,o=t.getLine(r);function s(s){for(var a=n.ch,c=0;;){var l=a<=0?-1:o.lastIndexOf(s,a-1);if(-1!=l){if(1==c&&lt.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));if(/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"keyword"!=i.type||"import"!=i.string)return null;for(var r=n,o=Math.min(t.lastLine(),n+10);r<=o;++r){var s=t.getLine(r).indexOf(";");if(-1!=s)return{startCh:i.end,end:e.Pos(r,s)}}}var r,o=n.line,s=i(o);if(!s||i(o-1)||(r=i(o-2))&&r.end.line==o-1)return null;for(var a=s.end;;){var c=i(a.line+1);if(null==c)break;a=c.end}return{from:t.clipPos(e.Pos(o,s.startCh+1)),to:a}}),e.registerHelper("fold","include",function(t,n){function i(n){if(nt.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));return/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"meta"==i.type&&"#include"==i.string.slice(0,8)?i.start+8:void 0}var r=n.line,o=i(r);if(null==o||null!=i(r-1))return null;for(var s=r;null!=i(s+1);)++s;return{from:e.Pos(r,o+1),to:t.clipPos(e.Pos(s))}})}(n("VrN/"))},ruyP:function(e,t,n){"use strict";function i(e,t){const n=e.filter(t);return 0===n.length?e:n}function r(e){return e.toLowerCase().replace(/\W/g,"")}function o(e,t){let n=function(e,t){let n,i;const r=[],o=e.length,s=t.length;for(n=0;n<=o;n++)r[n]=[n];for(i=1;i<=s;i++)r[0][i]=i;for(n=1;n<=o;n++)for(i=1;i<=s;i++){const o=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+o),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+o))}return r[o][s]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){const s=function(e,t){return t?i(i(e.map(e=>({proximity:o(r(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry):i(e,e=>!e.isDeprecated)}(n,r(t.string));if(!s)return;const a=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:s,from:{line:e.line,column:a},to:{line:e.line,column:t.end}}}},s4AO:function(e,t,n){"use strict";var i=n("ESbf");e.exports=function(e){if(!i(e))throw new TypeError(e+" is not a symbol");return e}},sA7U:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("dWS+"),r=n("/jXB"),o=n("4suF");function s(e){return'The directive "'.concat(e,'" can only be used once at this location.')}function a(e){for(var t=Object.create(null),n=e.getSchema(),a=n?n.getDirectives():o.i,c=0;c{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})()},sYVv:function(e,t,n){"use strict";e.exports=n("FM/B")()?Array.from:n("j+X2")},sYmb:function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return N}),n.d(t,"d",function(){return R});var i=n("fXoL"),r=n("LRne"),o=n("7+OI"),s=n("cp0P"),a=n("GyhO"),c=n("NXyV"),l=n("IzEk"),u=n("UXun"),h=n("lJxs"),d=n("bOdf"),p=n("eIep");class f{}let g=(()=>{class e extends f{getTranslation(e){return Object(r.a)({})}}return e.\u0275fac=function(t){return m(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const m=i.Yb(g);class b{}let v=(()=>{class e{handle(e){return e.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();function y(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let n,i,r,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!y(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i{_(t[i])?i in e?n[i]=O(e[i],t[i]):Object.assign(n,{[i]:t[i]}):Object.assign(n,{[i]:t[i]})}),n}class C{}let E=(()=>{class e extends C{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let n;return n="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,n}getValue(e,t){let n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!w(e)||!w(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let i=this.getValue(t,n);return w(i)?i:e}):e}}return e.\u0275fac=function(t){return S(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const S=i.Yb(E);class T{}let x=(()=>{class e extends T{compile(e,t){return e}compileTranslations(e,t){return e}}return e.\u0275fac=function(t){return k(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const k=i.Yb(x);class I{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.n,this.onLangChange=new i.n,this.onDefaultLangChange=new i.n}}const D=new i.s("USE_STORE"),z=new i.s("USE_DEFAULT_LANG"),j=new i.s("DEFAULT_LANGUAGE"),A=new i.s("USE_EXTEND");let R=(()=>{class e{constructor(e,t,n,r,o,s=!0,a=!1,c=!1,l){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new i.n,this._onLangChange=new i.n,this._onDefaultLangChange=new i.n,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe(Object(l.a)(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Object(r.a)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(Object(l.a)(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),Object(r.a)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Object(u.a)(1),Object(l.a)(1));return this.loadingTranslations=t.pipe(Object(h.a)(t=>this.compiler.compileTranslations(t,e)),Object(u.a)(1),Object(l.a)(1)),this.loadingTranslations.subscribe({next:t=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},t),this.translations[e]):t,this.updateLangs(),this.pending=!1},error:e=>{this.pending=!1}}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?O(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let i;if(t instanceof Array){let i={},a=!1;for(let r of t)i[r]=this.getParsedResult(e,r,n),Object(o.a)(i[r])&&(a=!0);if(a){const e=t.map(e=>Object(o.a)(i[e])?i[e]:Object(r.a)(i[e]));return Object(s.a)(e).pipe(Object(h.a)(e=>{let n={};return e.forEach((e,i)=>{n[t[i]]=e}),n}))}return i}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),i=this.missingTranslationHandler.handle(e)}return void 0!==i?i:t}get(e,t){if(!w(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(d.a)(n=>(n=this.getParsedResult(n,e,t),Object(o.a)(n)?n:Object(r.a)(n))));{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return Object(o.a)(n)?n:Object(r.a)(n)}}getStreamOnTranslationChange(e,t){if(!w(e)||!e.length)throw new Error('Parameter "key" required');return Object(a.a)(Object(c.a)(()=>this.get(e,t)),this.onTranslationChange.pipe(Object(p.a)(n=>{const i=this.getParsedResult(n.translations,e,t);return"function"==typeof i.subscribe?i:Object(r.a)(i)})))}stream(e,t){if(!w(e)||!e.length)throw new Error('Parameter "key" required');return Object(a.a)(Object(c.a)(()=>this.get(e,t)),this.onLangChange.pipe(Object(p.a)(n=>{const i=this.getParsedResult(n.translations,e,t);return Object(o.a)(i)?i:Object(r.a)(i)})))}instant(e,t){if(!w(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(Object(o.a)(n)){if(e instanceof Array){let t={};return e.forEach((n,i)=>{t[e[i]]=e[i]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return e.\u0275fac=function(t){return new(t||e)(i.ac(I),i.ac(f),i.ac(T),i.ac(C),i.ac(b),i.ac(z),i.ac(D),i.ac(A),i.ac(j))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),N=(()=>{class e{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,n){let i=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(n){let r=this.translate.getParsedResult(n,e,t);Object(o.a)(r.subscribe)?r.subscribe(i):i(r)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(y(e,this.lastKey)&&y(t,this.lastParams))return this.value;let n;if(w(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(e)}catch(i){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"!=typeof t[0]||Array.isArray(t[0])||(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(i.Qb(R),i.cc())},e.\u0275pipe=i.Pb({name:"translate",type:e,pure:!1}),e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),L=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:f,useClass:g},t.compiler||{provide:T,useClass:x},t.parser||{provide:C,useClass:E},t.missingTranslationHandler||{provide:b,useClass:v},I,{provide:D,useValue:t.isolate},{provide:z,useValue:t.useDefaultLang},{provide:A,useValue:t.extend},{provide:j,useValue:t.defaultLanguage},R]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:f,useClass:g},t.compiler||{provide:T,useClass:x},t.parser||{provide:C,useClass:E},t.missingTranslationHandler||{provide:b,useClass:v},{provide:D,useValue:t.isolate},{provide:z,useValue:t.useDefaultLang},{provide:A,useValue:t.extend},{provide:j,useValue:t.defaultLanguage},R]}}}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)}}),e})()},"sdW/":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("pv/G"),r=n("T95z"),o=n("dWS+"),s=n("axIb");function a(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var a=e.getSchema(),c=t.name.value,l=function(e,t,n){if(Object(s.C)(t)){for(var i=[],r=Object.create(null),o=0,a=e.getPossibleTypes(t);o{class e{constructor(){this.data={},this.goToFieldChange=new i.n,this.goToTypeChange=new i.n,this.addToEditorChange=new i.n}ngOnInit(){}isRootType(e){if(!e||!this.gqlSchema)return!1;switch(e){case this.gqlSchema.getQueryType()&&this.gqlSchema.getQueryType().name:case this.gqlSchema.getMutationType()&&this.gqlSchema.getMutationType().name:case this.gqlSchema.getSubscriptionType()&&this.gqlSchema.getSubscriptionType().name:return!0}return!1}goToField(e,t){this.goToFieldChange.next({name:e,parentType:t})}goToType(e){this.goToTypeChange.next({name:e})}addToEditor(e,t){this.addToEditorChange.next({name:e,parentType:t})}isGraphQLInterface(e){return e instanceof r.c}isGraphQLObject(e){return e instanceof r.f}getTypeImplementations(e){return this.isGraphQLInterface(e)&&this.gqlSchema.getPossibleTypes(e)||[]}getTypeImplements(e){return this.isGraphQLObject(e)&&e.getInterfaces()||[]}schemaItemTrackBy(e,t){return t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["app-doc-viewer-type"]],inputs:{data:"data",gqlSchema:"gqlSchema"},outputs:{goToFieldChange:"goToFieldChange",goToTypeChange:"goToTypeChange",addToEditorChange:"addToEditorChange"},decls:30,vars:11,consts:[[1,"doc-viewer-section"],[1,"doc-viewer-item","doc-viewer-item-field"],[1,"doc-viewer-item-query-inner"],["class","doc-viewer-item-type doc-viewer-item-query-type",4,"ngIf"],["class","doc-viewer-item-query-description","markdown","",3,"data",4,"ngIf"],["class","doc-viewer-section doc-viewer-fields",4,"ngIf"],["class","doc-viewer-section doc-viewer-subtypes",4,"ngIf"],["class","doc-viewer-section doc-viewer-implementations",4,"ngIf"],["class","doc-viewer-section doc-viewer-implements",4,"ngIf"],[1,"doc-viewer-item-type","doc-viewer-item-query-type"],["markdown","",1,"doc-viewer-item-query-description",3,"data"],[1,"doc-viewer-section","doc-viewer-fields"],[1,"doc-viewer-section-title"],["class","doc-viewer-item doc-viewer-item-query",4,"ngFor","ngForOf","ngForTrackBy"],[1,"doc-viewer-item","doc-viewer-item-query"],[1,"doc-viewer-item-field","doc-viewer-item-value"],[1,"doc-viewer-item-type"],[1,"doc-viewer-section","doc-viewer-subtypes"],[1,"doc-viewer-item-field","doc-viewer-item-value","no-link-link",3,"click"],["track-id","gotofield_docs",1,"no-link-link",3,"click"],[4,"ngIf"],[1,"doc-viewer-item-type","doc-viewer-item-query-type","no-link-link",3,"click"],["class","doc-viewer-item-query-deprecated",4,"ngIf"],["track-id","add_query",1,"doc-viewer-item-query-add-btn",3,"click"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"doc-viewer-item-field","no-link-link",3,"click"],["class","doc-viewer-item-value",4,"ngIf"],[1,"doc-viewer-item-type","no-link-link",3,"click"],[1,"doc-viewer-item-value"],[1,"doc-viewer-item-query-deprecated"],["markdown","",3,"data"],[1,"doc-viewer-section","doc-viewer-implementations"],[1,"doc-viewer-section","doc-viewer-implements"]],template:function(e,t){if(1&e&&(i.Ub(0),i.Gc(1,"\n "),i.Wb(2,"div",0),i.Gc(3,"\n "),i.Gc(4,"\n "),i.Wb(5,"div",1),i.Gc(6,"\n "),i.Wb(7,"div",2),i.Gc(8),i.Ec(9,l,3,3,"span",3),i.Gc(10,"\n "),i.Ec(11,u,3,3,"span",3),i.Gc(12,"\n "),i.Vb(),i.Gc(13,"\n "),i.Ec(14,h,2,1,"div",4),i.Gc(15,"\n "),i.Vb(),i.Gc(16,"\n "),i.Vb(),i.Gc(17,"\n\n "),i.Ec(18,f,8,5,"div",5),i.Gc(19,"\n \n "),i.Ec(20,b,8,5,"div",6),i.Gc(21,"\n \n "),i.Ec(22,T,9,7,"div",5),i.hc(23,"values"),i.Gc(24,"\n \n "),i.Ec(25,k,8,5,"div",7),i.Gc(26,"\n \n "),i.Ec(27,D,8,5,"div",8),i.Gc(28,"\n"),i.Tb(),i.Gc(29,"\n")),2&e){let e=null,n=null,r=null;i.Eb(8),i.Ic("\n ",t.data.name,"\n "),i.Eb(1),i.mc("ngIf",t.data&&t.data.getTypes),i.Eb(2),i.mc("ngIf",t.isGraphQLInterface(t.data)),i.Eb(3),i.mc("ngIf",t.data.description),i.Eb(4),i.mc("ngIf",(null==t.data?null:t.data.getValues)&&t.data.getValues()&&(null==(e=t.data.getValues())?null:e.length)),i.Eb(2),i.mc("ngIf",(null==t.data?null:t.data.getTypes)&&t.data.getTypes()&&(null==(n=t.data.getTypes())?null:n.length)),i.Eb(2),i.mc("ngIf",t.data&&t.data.getFields&&(null==(r=i.ic(23,9,t.data.getFields()))?null:r.length)),i.Eb(3),i.mc("ngIf",t.getTypeImplementations(t.data).length),i.Eb(2),i.mc("ngIf",t.getTypeImplements(t.data).length)}},directives:[o.o,s.a,o.n],pipes:[a.c,c.c],styles:[""],changeDetection:0}),e})()},t3R0:function(e,t,n){"use strict";function i(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,"a",function(){return i})},tAZD:function(e,t,n){var i,r,o;!function(s){if("object"==typeof e.exports){var a=s(0,t);void 0!==a&&(e.exports=a)}else r=[n,t],void 0===(o="function"==typeof(i=s)?i.apply(t,r):i)||(e.exports=o)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["en",[["a","p"],["AM","PM"],n],[["AM","PM"],n,n],[["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"]],n,[["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"]],n,[["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}",n,"{1} 'at' {0}",n],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})},tS1D:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("D0XW");const r=(()=>{function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e})();var o=n("mlxB"),s=n("zx2A");class a{constructor(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}call(e,t){return t.subscribe(new c(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class c extends s.b{constructor(e,t,n,i,r){super(e),this.absoluteTimeout=t,this.waitFor=n,this.withObservable=i,this.scheduler=r,this.scheduleTimeout()}static dispatchTimeout(e){const{withObservable:t}=e;e._unsubscribeAndRecycle(),e.add(Object(s.c)(t,new s.a(e)))}scheduleTimeout(){const{action:e}=this;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(c.dispatchTimeout,this.waitFor,this))}_next(e){this.absoluteTimeout||this.scheduleTimeout(),super._next(e)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var l=n("z6cu");function u(e,t=i.a){return function(e,t,n=i.a){return i=>{let r=Object(o.a)(e),s=r?+e-n.now():Math.abs(e);return i.lift(new a(s,r,t,n))}}(e,Object(l.a)(new r),t)}},tgdo:function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var i,r,o;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=i;0!=r--;){var s=o[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},"tk/3":function(e,t,n){"use strict";n.d(t,"a",function(){return k}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return T}),n.d(t,"d",function(){return G}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return g}),n.d(t,"h",function(){return C});var i=n("fXoL"),r=n("LRne"),o=n("HDdC"),s=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("ofXK");class u{}class h{}class d{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new d;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===r.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class p{encodeKey(e){return f(e)}encodeValue(e){return f(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function f(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class g{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new p,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(e=>{const i=e.indexOf("="),[r,o]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],s=n.get(r)||[];s.push(o),n.set(r,s)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(n=>{const i=e[n];Array.isArray(i)?i.forEach(e=>{t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new g({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function v(e){return"undefined"!=typeof FormData&&e instanceof FormData}class y{constructor(e,t,n,i){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":nt.set(n,e.setHeaders[n]),a)),e.setParams&&(c=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),c)),new y(t,n,r,{params:c,headers:a,reportProgress:s,responseType:i,withCredentials:o})}}var w=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({});class _{constructor(e,t=200,n="OK"){this.headers=e.headers||new d,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class O extends _{constructor(e={}){super(e),this.type=w.ResponseHeader}clone(e={}){return new O({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class C extends _{constructor(e={}){super(e),this.type=w.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new C({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class E extends _{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function S(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let T=(()=>{class e{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof y)i=e;else{let r,o;r=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(o=n.params instanceof g?n.params:new g({fromObject:n.params})),i=new y(e,t,void 0!==n.body?n.body:null,{headers:r,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const o=Object(r.a)(i).pipe(Object(s.a)(e=>this.handler.handle(e)));if(e instanceof y||"events"===n.observe)return o;const l=o.pipe(Object(a.a)(e=>e instanceof C));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return l.pipe(Object(c.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return l.pipe(Object(c.a)(e=>e.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,S(n,t))}post(e,t,n={}){return this.request("POST",e,S(n,t))}put(e,t,n={}){return this.request("PUT",e,S(n,t))}}return e.\u0275fac=function(t){return new(t||e)(i.ac(u))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();class x{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const k=new i.s("HTTP_INTERCEPTORS");let I=(()=>{class e{intercept(e,t){return t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const D=/^\)\]\}',?\n/;class z{}let j=(()=>{class e{constructor(){}build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),A=(()=>{class e{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let r=null;const o=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,i=n.statusText||"OK",o=new d(n.getAllResponseHeaders()),s=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return r=new O({headers:o,status:t,statusText:i,url:s}),r},s=()=>{let{headers:i,status:r,statusText:s,url:a}=o(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof c){const e=c;c=c.replace(D,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=e,l&&(l=!1,c={error:u,text:c})}}l?(t.next(new C({body:c,headers:i,status:r,statusText:s,url:a||void 0})),t.complete()):t.error(new E({error:c,headers:i,status:r,statusText:s,url:a||void 0}))},a=e=>{const{url:i}=o(),r=new E({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(r)};let c=!1;const l=i=>{c||(t.next(o()),c=!0);let r={type:w.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},u=e=>{let n={type:w.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),e.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),t.next({type:w.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),e.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(i.ac(z))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})();const R=new i.s("XSRF_COOKIE_NAME"),N=new i.s("XSRF_HEADER_NAME");class L{}let M=(()=>{class e{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.G)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(i.ac(l.d),i.ac(i.D),i.ac(R))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),F=(()=>{class e{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i.ac(L),i.ac(N))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),P=(()=>{class e{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(k,[]);this.chain=e.reduceRight((e,t)=>new x(e,t),this.backend)}return this.chain.handle(e)}}return e.\u0275fac=function(t){return new(t||e)(i.ac(h),i.ac(i.t))},e.\u0275prov=i.Mb({token:e,factory:e.\u0275fac}),e})(),V=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:F,useClass:I}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:R,useValue:t.cookieName}:[],t.headerName?{provide:N,useValue:t.headerName}:[]]}}}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},providers:[F,{provide:k,useExisting:F,multi:!0},{provide:L,useClass:M},{provide:R,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),e})(),G=(()=>{class e{}return e.\u0275mod=i.Ob({type:e}),e.\u0275inj=i.Nb({factory:function(t){return new(t||e)},providers:[T,{provide:u,useClass:P},A,{provide:h,useExisting:A},j,{provide:z,useExisting:j}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e})()},tyNb:function(e,t,n){"use strict";n.d(t,"a",function(){return P}),n.d(t,"b",function(){return on}),n.d(t,"c",function(){return sn}),n.d(t,"d",function(){return an});var i=n("ofXK"),r=n("fXoL"),o=n("Cfvw"),s=n("LRne"),a=n("2Vo4"),c=n("itXk"),l=n("HDdC"),u=n("sVev"),h=n("GyhO"),d=n("NXyV"),p=n("EY2u"),f=n("EQ5u"),g=n("XNiG"),m=n("lJxs"),b=n("eIep"),v=n("IzEk"),y=n("JX91"),w=n("Kqap"),_=n("pLZG"),O=n("JIr8"),C=n("bOdf"),E=n("7o/Q"),S=n("4I5i");function T(e){return function(t){return 0===e?Object(p.b)():t.lift(new x(e))}}class x{constructor(e){if(this.total=e,this.total<0)throw new S.a}call(e,t){return t.subscribe(new k(e,this.total))}}class k extends E.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.lengthi[t]===e)}return e===t}function oe(e){return e.length>0?e[e.length-1]:null}function se(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ae(e){return Object(r.ub)(e)?e:Object(r.vb)(e)?Object(o.a)(Promise.resolve(e)):Object(s.a)(e)}function ce(e,t,n){return n?function(e,t){return ie(e,t)}(e.queryParams,t.queryParams)&&le(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>re(e[n],t[n]))}(e.queryParams,t.queryParams)&&ue(e.root,t.root)}function le(e,t){if(!ge(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(const n in t.children){if(!e.children[n])return!1;if(!le(e.children[n],t.children[n]))return!1}return!0}function ue(e,t){return he(e,t,t.segments)}function he(e,t,n){if(e.segments.length>n.length)return!!ge(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!ge(e.segments,n))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!ue(e.children[n],t.children[n]))return!1}return!0}{const i=n.slice(0,e.segments.length),r=n.slice(e.segments.length);return!!ge(e.segments,i)&&!!e.children.primary&&he(e.children.primary,t,r)}}class de{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ee(this.queryParams)),this._queryParamMap}toString(){return ve.serialize(this)}}class pe{constructor(e,t){this.segments=e,this.children=t,this.parent=null,se(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ye(this)}}class fe{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ee(this.parameters)),this._parameterMap}toString(){return Te(this)}}function ge(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}class me{}class be{parse(e){const t=new ze(e);return new de(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`/${we(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Oe(t)}=${Oe(e)}`).join("&"):`${Oe(t)}=${Oe(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const ve=new be;function ye(e){return e.segments.map(e=>Te(e)).join("/")}function we(e,t){if(!e.hasChildren())return ye(e);if(t){const t=e.children.primary?we(e.children.primary,!1):"",n=[];return se(e.children,(e,t)=>{"primary"!==t&&n.push(`${t}:${we(e,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return se(e.children,(e,i)=>{"primary"===i&&(n=n.concat(t(e,i)))}),se(e.children,(e,i)=>{"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,(t,n)=>"primary"===n?[we(e.children.primary,!1)]:[`${n}:${we(t,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${ye(e)}/${t[0]}`:`${ye(e)}/(${t.join("//")})`}}function _e(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Oe(e){return _e(e).replace(/%3B/gi,";")}function Ce(e){return _e(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ee(e){return decodeURIComponent(e)}function Se(e){return Ee(e.replace(/\+/g,"%20"))}function Te(e){return`${Ce(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Ce(e)}=${Ce(t[e])}`).join("")}`;var t}const xe=/^[^\/()?;=#]+/;function ke(e){const t=e.match(xe);return t?t[0]:""}const Ie=/^[^=?&#]+/,De=/^[^?&#]+/;class ze{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pe([],{}):new pe([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new pe(e,t)),n}parseSegment(){const e=ke(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new fe(Ee(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=ke(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=ke(this.remaining);e&&(n=e,this.capture(n))}e[Ee(t)]=Ee(n)}parseQueryParam(e){const t=function(e){const t=e.match(Ie);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(De);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=Se(t),r=Se(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(r)}else e[i]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=ke(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");const o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new pe([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class je{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Ae(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Ae(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Re(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Re(e,this._root).map(e=>e.value)}}function Ae(e,t){if(e===t.value)return t;for(const n of t.children){const t=Ae(e,n);if(t)return t}return null}function Re(e,t){if(e===t.value)return[t];for(const n of t.children){const i=Re(e,n);if(i.length)return i.unshift(t),i}return[]}class Ne{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Le(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Me extends je{constructor(e,t){super(e),this.snapshot=t,We(this,e)}toString(){return this.snapshot.toString()}}function Fe(e,t){const n=function(e,t){const n=new Ge([],{},{},"",{},"primary",t,null,e.root,-1,{});return new Be("",new Ne(n,[]))}(e,t),i=new a.a([new fe("",{})]),r=new a.a({}),o=new a.a({}),s=new a.a({}),c=new a.a(""),l=new Pe(i,r,s,c,o,"primary",t,n.root);return l.snapshot=n.root,new Me(new Ne(l,[]),n)}class Pe{constructor(e,t,n,i,r,o,s,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(m.a)(e=>ee(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(m.a)(e=>ee(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ve(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Ge{constructor(e,t,n,i,r,o,s,a,c,l,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ee(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ee(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Be extends je{constructor(e,t){super(t),this.url=e,We(this,t)}toString(){return $e(this._root)}}function We(e,t){t.value._routerState=e,t.children.forEach(t=>We(e,t))}function $e(e){const t=e.children.length>0?` { ${e.children.map($e).join(", ")} } `:"";return`${e.value}${t}`}function Ue(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ie(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ie(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;nie(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||He(e.parent,t.parent))}function qe(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=t.value;const r=function(e,t,n){return t.children.map(t=>{for(const i of n.children)if(e.shouldReuseRoute(t.value,i.value.snapshot))return qe(e,t,i);return qe(e,t)})}(e,t,n);return new Ne(i,r)}{const n=e.retrieve(t.value);if(n){const e=n.route;return Qe(t,e),e}{const n=new Pe(new a.a((i=t.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),r=t.children.map(t=>qe(e,t));return new Ne(n,r)}}var i}function Qe(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(let n=0;n{o[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new de(n.root===e?t:Je(n.root,e,t),o,r)}function Je(e,t,n){const i={};return se(e.children,(e,r)=>{i[r]=e===t?n:Je(e,t,n)}),new pe(e.segments,i)}class Ze{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ke(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Xe);if(i&&i!==oe(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class et{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function tt(e,t,n){if(e||(e=new pe([],{})),0===e.segments.length&&e.hasChildren())return nt(e,t,n);const i=function(e,t,n){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return o;const t=e.segments[r],s=n[i];if(Xe(s))break;const a=`${s}`,c=i0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!st(a,c,t))return o;i+=2}else{if(!st(a,{},t))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=tt(e.children[i],t,n))}),se(e.children,(e,t)=>{void 0===i[t]&&(r[t]=e)}),new pe(e.segments,r)}}function it(e,t,n){const i=e.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[n]=it(new pe([],{}),0,e))}),t}function ot(e){const t={};return se(e,(e,n)=>t[n]=`${e}`),t}function st(e,t,n){return e==n.path&&ie(t,n.parameters)}class at{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Ue(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=Le(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),se(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=Le(e);for(const o of Object.keys(r))this.deactivateRouteAndItsChildren(r[o],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(e,t,n){const i=Le(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new J(e.value.snapshot))}),e.children.length&&this.forwardEvent(new X(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,r=t?t.value:null;if(Ue(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),ct(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=r,t.outlet&&t.outlet.activateWith(i,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function ct(e){Ue(e.value),e.children.forEach(ct)}class lt{constructor(e,t){this.routes=e,this.module=t}}function ut(e){return"function"==typeof e}function ht(e){return e instanceof de}const dt=Symbol("INITIAL_VALUE");function pt(){return Object(b.a)(e=>Object(c.a)(e.map(e=>e.pipe(Object(v.a)(1),Object(y.a)(dt)))).pipe(Object(w.a)((e,t)=>{let n=!1;return t.reduce((e,i,r)=>{if(e!==dt)return e;if(i===dt&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||ht(i))return i}return e},e)},dt),Object(_.a)(e=>e!==dt),Object(m.a)(e=>ht(e)?e:!0===e),Object(v.a)(1)))}let ft=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&r.Rb(0,"router-outlet")},directives:function(){return[ln]},encapsulation:2}),e})();function gt(e,t=""){for(let n=0;nyt(e)===t);return n.push(...e.filter(e=>yt(e)!==t)),n}const _t={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ot(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},_t):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(t.matcher||ne)(n,e,t);if(!r)return Object.assign({},_t);const o={};se(r.posParams,(e,t)=>{o[t]=e.path});const s=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Ct(e,t,n,i,r="corrected"){if(n.length>0&&function(e,t,n){return n.some(n=>Et(e,t,n)&&"primary"!==yt(n))}(e,n,i)){const r=new pe(t,function(e,t,n,i){const r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const o of n)if(""===o.path&&"primary"!==yt(o)){const n=new pe([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[yt(o)]=n}return r}(e,t,i,new pe(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Et(e,t,n))}(e,n,i)){const o=new pe(e.segments,function(e,t,n,i,r,o){const s={};for(const a of i)if(Et(e,n,a)&&!r[yt(a)]){const n=new pe([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[yt(a)]=n}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}const o=new pe(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}function Et(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function St(e,t,n,i){return!!(yt(e)===i||"primary"!==i&&Et(t,n,e))&&("**"===e.path||Ot(t,e,n).matched)}function Tt(e,t,n){return 0===t.length&&!e.children[n]}class xt{constructor(e){this.segmentGroup=e||null}}class kt{constructor(e){this.urlTree=e}}function It(e){return new l.a(t=>t.error(new xt(e)))}function Dt(e){return new l.a(t=>t.error(new kt(e)))}function zt(e){return new l.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class jt{constructor(e,t,n,i,o){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(r.z)}apply(){const e=Ct(this.urlTree.root,[],[],this.config).segmentGroup,t=new pe(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,"primary").pipe(Object(m.a)(e=>this.createUrlTree(At(e),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(O.a)(e=>{if(e instanceof kt)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof xt)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(m.a)(t=>this.createUrlTree(At(t),e.queryParams,e.fragment))).pipe(Object(O.a)(e=>{if(e instanceof xt)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new pe([],{primary:e}):e;return new de(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(m.a)(e=>new pe([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return Object(o.a)(i).pipe(Object(C.a)(i=>{const r=n.children[i],o=wt(t,i);return this.expandSegmentGroup(e,o,r,i).pipe(Object(m.a)(e=>({segment:e,outlet:i})))}),Object(w.a)((e,t)=>(e[t.outlet]=t.segment,e),{}),function(e,t){const n=arguments.length>=2;return i=>i.pipe(e?Object(_.a)((t,n)=>e(t,n,i)):z.a,T(1),n?Object(D.a)(t):Object(I.a)(()=>new u.a))}())}expandSegment(e,t,n,i,r,a){return Object(o.a)(n).pipe(Object(C.a)(o=>this.expandSegmentAgainstRoute(e,t,n,o,i,r,a).pipe(Object(O.a)(e=>{if(e instanceof xt)return Object(s.a)(null);throw e}))),Object(j.a)(e=>!!e),Object(O.a)((e,n)=>{if(e instanceof u.a||"EmptyError"===e.name){if(Tt(t,i,r))return Object(s.a)(new pe([],{}));throw new xt(t)}throw e}))}expandSegmentAgainstRoute(e,t,n,i,r,o,s){return St(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):It(t):It(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Dt(r):this.lineralizeSegments(n,r).pipe(Object(A.a)(n=>{const r=new pe(n,{});return this.expandSegment(e,r,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o){const{matched:s,consumedSegments:a,lastChild:c,positionalParamSegments:l}=Ot(t,i,r);if(!s)return It(t);const u=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?Dt(u):this.lineralizeSegments(i,u).pipe(Object(A.a)(i=>this.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)))}matchSegmentAgainstRoute(e,t,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(s.a)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Object(m.a)(e=>(n._loadedConfig=e,new pe(i,{})))):Object(s.a)(new pe(i,{}));const{matched:o,consumedSegments:a,lastChild:c}=Ot(t,n,i);if(!o)return It(t);const l=i.slice(c);return this.getChildConfig(e,n,i).pipe(Object(A.a)(e=>{const i=e.module,o=e.routes,{segmentGroup:c,slicedSegments:u}=Ct(t,a,l,o),h=new pe(c.segments,c.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,o,h).pipe(Object(m.a)(e=>new pe(a,e)));if(0===o.length&&0===u.length)return Object(s.a)(new pe(a,{}));const d=yt(n)===r;return this.expandSegment(i,h,o,u,d?"primary":r,!0).pipe(Object(m.a)(e=>new pe(a.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(s.a)(new lt(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(s.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(A.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(m.a)(e=>(t._loadedConfig=e,e))):function(e){return new l.a(t=>t.error(te(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(s.a)(new lt([],e))}runCanLoadGuards(e,t,n){const i=t.canLoad;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>{const r=e.get(i);let o;if(function(e){return e&&ut(e.canLoad)}(r))o=r.canLoad(t,n);else{if(!ut(r))throw new Error("Invalid CanLoad guard");o=r(t,n)}return ae(o)});return Object(s.a)(r).pipe(pt(),Object(R.a)(e=>{if(!ht(e))return;const t=te(`Redirecting to "${this.urlSerializer.serialize(e)}"`);throw t.url=e,t}),Object(m.a)(e=>!0===e))}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(s.a)(n);if(i.numberOfChildren>1||!i.children.primary)return zt(e.redirectTo);i=i.children.primary}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const r=this.createSegmentGroup(e,t.root,n,i);return new de(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return se(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const r=this.createSegments(e,t.segments,n,i);let o={};return se(t.children,(t,r)=>{o[r]=this.createSegmentGroup(e,t,n,i)}),new pe(r,o)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function At(e){const t={};for(const n of Object.keys(e.children)){const i=At(e.children[n]);(i.segments.length>0||i.hasChildren())&&(t[n]=i)}return function(e){if(1===e.numberOfChildren&&e.children.primary){const t=e.children.primary;return new pe(e.segments.concat(t.segments),t.children)}return e}(new pe(e.segments,t))}class Rt{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Nt{constructor(e,t){this.component=e,this.route=t}}function Lt(e,t,n){const i=e._root;return Ft(i,t?t._root:null,n,[i.value])}function Mt(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Ft(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Le(t);return e.children.forEach(e=>{!function(e,t,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!ge(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ge(e.url,t.url)||!ie(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!He(e,t)||!ie(e.queryParams,t.queryParams);case"paramsChange":default:return!He(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Rt(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Ft(e,t,o.component?a?a.children:null:n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Nt(a.outlet.component,s))}else s&&Pt(t,a,r),r.canActivateChecks.push(new Rt(i)),Ft(e,null,o.component?a?a.children:null:n,i,r)}(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),se(o,(e,t)=>Pt(e,n.getContext(t),r)),r}function Pt(e,t,n){const i=Le(e),r=e.value;se(i,(e,i)=>{Pt(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Nt(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class Vt{}function Gt(e){return new l.a(t=>t.error(e))}class Bt{constructor(e,t,n,i,r,o){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const e=Ct(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;const n=new Ge([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Ne(n,t),r=new Be(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(e){const t=e.value,n=Ve(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=[];for(const r of Object.keys(t.children)){const i=t.children[r],o=wt(e,r),s=this.processSegmentGroup(o,i,r);if(null===s)return null;n.push(...s)}const i=function(e){const t=[];for(const n of e){if(!Wt(n)){t.push(n);continue}const e=t.find(e=>n.value.routeConfig===e.value.routeConfig);void 0!==e?e.children.push(...n.children):t.push(n)}return t}(n);return i.sort((e,t)=>"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)),i}processSegment(e,t,n,i){for(const r of e){const e=this.processSegmentAgainstRoute(r,t,n,i);if(null!==e)return e}return Tt(t,n,i)?[]:null}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo||!St(e,t,n,i))return null;let r,o=[],s=[];if("**"===e.path){const i=n.length>0?oe(n).parameters:{};r=new Ge(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ht(e),yt(e),e.component,e,$t(t),Ut(t)+n.length,qt(e))}else{const i=Ot(t,e,n);if(!i.matched)return null;o=i.consumedSegments,s=n.slice(i.lastChild),r=new Ge(o,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ht(e),yt(e),e.component,e,$t(t),Ut(t)+o.length,qt(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:c,slicedSegments:l}=Ct(t,o,s,a.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const e=this.processChildren(a,c);return null===e?null:[new Ne(r,e)]}if(0===a.length&&0===l.length)return[new Ne(r,[])];const u=yt(e)===i,h=this.processSegment(a,c,l,u?"primary":i);return null===h?null:[new Ne(r,h)]}}function Wt(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function $t(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Ut(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Ht(e){return e.data||{}}function qt(e){return e.resolve||{}}function Qt(e){return Object(b.a)(t=>{const n=e(t);return n?Object(o.a)(n).pipe(Object(m.a)(()=>t)):Object(s.a)(t)})}class Kt extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Xt=new r.s("ROUTES");class Yt{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const n=this.loadModuleFactory(t.loadChildren).pipe(Object(m.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new lt((o=i.injector.get(Xt,void 0,r.r.Self|r.r.Optional),Array.prototype.concat.apply([],o)).map(vt),i);var o}),Object(O.a)(e=>{throw t._loader$=void 0,e}));return t._loader$=new f.a(n,()=>new g.a).pipe(Object(N.a)()),t._loader$}loadModuleFactory(e){return"string"==typeof e?Object(o.a)(this.loader.load(e)):ae(e()).pipe(Object(A.a)(e=>e instanceof r.x?Object(s.a)(e):Object(o.a)(this.compiler.compileModuleAsync(e))))}}class Jt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Zt,this.attachRef=null}}class Zt{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Jt,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class en{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function tn(e){throw e}function nn(e,t,n){return t.parse("/")}function rn(e,t){return Object(s.a)(null)}let on=(()=>{class e{constructor(e,t,n,i,o,s,c,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new g.a,this.errorHandler=tn,this.malformedUriErrorHandler=nn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rn,afterPreactivation:rn},this.urlHandlingStrategy=new en,this.routeReuseStrategy=new Kt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(r.z),this.console=o.get(r.bb);const u=o.get(r.B);this.isNgZoneEnabled=u instanceof r.B&&r.B.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new de(new pe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Yt(s,c,e=>this.triggerEvent(new q(e)),e=>this.triggerEvent(new Q(e))),this.routerState=Fe(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(e){const t=this.events;return e.pipe(Object(_.a)(e=>0!==e.id),Object(m.a)(e=>Object.assign(Object.assign({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object(b.a)(e=>{let n=!1,i=!1;return Object(s.a)(e).pipe(Object(R.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(b.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(s.a)(e).pipe(Object(b.a)(e=>{const n=this.transitions.getValue();return t.next(new F(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?p.a:Promise.resolve(e)}),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,Object(b.a)(e=>function(e,t,n,i,r){return new jt(e,t,n,i,r).apply()}(i,r,o,e.extractedUrl,a).pipe(Object(m.a)(t=>Object.assign(Object.assign({},e),{urlAfterRedirects:t}))))),Object(R.a)(e=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,r){return Object(A.a)(o=>function(e,t,n,i,r="emptyOnly",o="legacy"){try{const a=new Bt(e,t,n,i,r,o).recognize();return null===a?Gt(new Vt):Object(s.a)(a)}catch(a){return Gt(a)}}(e,t,o.urlAfterRedirects,n(o.urlAfterRedirects),i,r).pipe(Object(m.a)(e=>Object.assign(Object.assign({},o),{targetSnapshot:e}))))}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(R.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects);const n=new B(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var i,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=e,c=new F(n,this.serializeUrl(i),r,o);t.next(c);const l=Fe(i,this.rootComponentType).snapshot;return Object(s.a)(Object.assign(Object.assign({},e),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),p.a}),Qt(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})}),Object(R.a)(e=>{const t=new W(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(m.a)(e=>Object.assign(Object.assign({},e),{guards:Lt(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return Object(A.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(o.a)(e).pipe(Object(A.a)(e=>function(e,t,n,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(o=>{const s=Mt(o,t,r);let a;if(function(e){return e&&ut(e.canDeactivate)}(s))a=ae(s.canDeactivate(e,t,n,i));else{if(!ut(s))throw new Error("Invalid CanDeactivate guard");a=ae(s(e,t,n,i))}return a.pipe(Object(j.a)())});return Object(s.a)(a).pipe(pt())}(e.component,e.route,n,t,i)),Object(j.a)(e=>!0!==e,!0))}(c,i,r,e).pipe(Object(A.a)(n=>n&&"boolean"==typeof n?function(e,t,n,i){return Object(o.a)(t).pipe(Object(C.a)(t=>Object(h.a)(function(e,t){return null!==e&&t&&t(new K(e)),Object(s.a)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Y(e)),Object(s.a)(!0)}(t.route,i),function(e,t,n){const i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>Object(d.a)(()=>{const r=t.guards.map(r=>{const o=Mt(r,t.node,n);let s;if(function(e){return e&&ut(e.canActivateChild)}(o))s=ae(o.canActivateChild(i,e));else{if(!ut(o))throw new Error("Invalid CanActivateChild guard");s=ae(o(i,e))}return s.pipe(Object(j.a)())});return Object(s.a)(r).pipe(pt())}));return Object(s.a)(r).pipe(pt())}(e,t.path,n),function(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>Object(d.a)(()=>{const r=Mt(i,t,n);let o;if(function(e){return e&&ut(e.canActivate)}(r))o=ae(r.canActivate(t,e));else{if(!ut(r))throw new Error("Invalid CanActivate guard");o=ae(r(t,e))}return o.pipe(Object(j.a)())}));return Object(s.a)(r).pipe(pt())}(e,t.route,n))),Object(j.a)(e=>!0!==e,!0))}(i,a,e,t):Object(s.a)(n)),Object(m.a)(e=>Object.assign(Object.assign({},n),{guardsResult:e})))})}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(R.a)(e=>{if(ht(e.guardsResult)){const t=te(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}const t=new $(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(_.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new V(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Qt(e=>{if(e.guards.canActivateChecks.length)return Object(s.a)(e).pipe(Object(R.a)(e=>{const t=new U(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(b.a)(e=>{let n=!1;return Object(s.a)(e).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,Object(A.a)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return Object(s.a)(e);let a=0;return Object(o.a)(n).pipe(Object(C.a)(e=>function(e,t,n,i){return function(e,t,n,i){const r=Object.keys(e);if(0===r.length)return Object(s.a)({});const a={};return Object(o.a)(r).pipe(Object(A.a)(r=>function(e,t,n,i){const r=Mt(e,t,i);return ae(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Object(R.a)(e=>{a[r]=e}))),T(1),Object(A.a)(()=>Object.keys(a).length===r.length?Object(s.a)(a):p.a))}(e._resolve,e,t,i).pipe(Object(m.a)(t=>(e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Ve(e,n).resolve),null)))}(e.route,t,i,r)),Object(R.a)(()=>a++),T(1),Object(A.a)(t=>a===n.length?Object(s.a)(e):p.a))})),Object(R.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new V(e.id,this.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");t.next(n),e.resolve(!1)}}}));var i,r}),Object(R.a)(e=>{const t=new H(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Qt(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})}),Object(m.a)(e=>{const t=function(e,t,n){const i=qe(e,t._root,n?n._root:void 0);return new Me(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})}),Object(R.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(r=this.rootContexts,a=this.routeReuseStrategy,c=e=>this.triggerEvent(e),Object(m.a)(e=>(new at(a,e.targetRouterState,e.currentRouterState,c).activate(r),e))),Object(R.a)({next(){n=!0},complete(){n=!0}}),Object(L.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new V(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Object(O.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=ht(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new V(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const t=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(t,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new G(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(o){e.reject(o)}}var r;return p.a}));var r,a,c}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,t)&&setTimeout(()=>{const{source:e,state:n,urlTree:i}=t,r={replaceUrl:!0};if(n){const e=Object.assign({},n);delete e.navigationId,0!==Object.keys(e).length&&(r.state=e)}this.scheduleNavigation(i,e,n,r)},0),this.lastLocationChangeInfo=t}))}extractLocationChangeInfoFromEvent(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,t){if(!e)return!0;const n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){gt(e),this.config=e.map(vt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:o,preserveFragment:s}=t,a=n||this.routerState.root,c=s?this.currentUrlTree.fragment:r;let l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return Ye(t.root,t.root,t,i,r);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Ze(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return se(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new Ze(n,t,i)}(n);if(o.toRoot())return Ye(t.root,new pe([],{}),t,i,r);const s=function(e,t,n){if(e.isAbsolute)return new et(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){const e=n.snapshot._urlSegment;return new et(e,e===t.root,0)}const i=Ke(e.commands[0])?0:1;return function(e,t,n){let i=e,r=t,o=n;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new et(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(o,t,e),a=s.processChildren?nt(s.segmentGroup,s.index,o.commands):tt(s.segmentGroup,s.index,o.commands);return Ye(s.segmentGroup,a,t,i,r)}(a,this.currentUrlTree,e,l,c)}navigateByUrl(e,t={skipLocationChange:!1}){const n=ht(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new P(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);const o=this.getTransition(),s="imperative"!==t&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===e.toString();if(s&&a)return Promise.resolve(!0);let c,l,u;r?(c=r.resolve,l=r.reject,u=r.promise):u=new Promise((e,t)=>{c=e,l=t});const h=++this.navigationId;return this.setTransition({id:h,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const r=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return e.\u0275fac=function(t){return new(t||e)(r.ac(r.Q),r.ac(me),r.ac(Zt),r.ac(i.j),r.ac(r.t),r.ac(r.y),r.ac(r.i),r.ac(void 0))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),sn=(()=>{class e{constructor(e,t,n,i,r){this.router=e,this.route=t,this.commands=[],this.onChanges=new g.a,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}onClick(){const e={skipLocationChange:cn(this.skipLocationChange),replaceUrl:cn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:cn(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(on),r.Qb(Pe),r.bc("tabindex"),r.Qb(r.G),r.Qb(r.l))},e.\u0275dir=r.Lb({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.dc("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.Cb]}),e})(),an=(()=>{class e{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.onChanges=new g.a,this.subscription=e.events.subscribe(e=>{e instanceof P&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:cn(this.skipLocationChange),replaceUrl:cn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:cn(this.preserveFragment)})}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(on),r.Qb(Pe),r.Qb(i.k))},e.\u0275dir=r.Lb({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.dc("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.Zb("href",t.href,r.yc),r.Fb("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.Cb]}),e})();function cn(e){return""===e||!!e}let ln=(()=>{class e{constructor(e,t,n,i,o){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.n,this.deactivateEvents=new r.n,this.name=i||"primary",e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new un(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Zt),r.Qb(r.S),r.Qb(r.j),r.bc("name"),r.Qb(r.h))},e.\u0275dir=r.Lb({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e})();class un{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Pe?this.route:e===Zt?this.childContexts:this.parent.get(e,t)}}},tzQD:function(e,t,n){"use strict";function i(e){return e.map(function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e}).join("")}n.d(t,"a",function(){return i})},uTOq:function(e,t,n){!function(e){"use strict";var t,n,i=e.Pos;function r(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),i=n,r=0;ru);h++){var d=e.getLine(l++);a=null==a?d:a+"\n"+d}c*=2,t.lastIndex=n.ch;var p=t.exec(a);if(p){var f=a.slice(0,p.index).split("\n"),g=p[0].split("\n"),m=n.line+f.length-1,b=f[f.length-1].length;return{from:i(m,b),to:i(m+g.length-1,1==g.length?b+g[0].length:g[g.length-1].length),match:p}}}}function c(e,t,n){for(var i,r=0;r<=e.length;){t.lastIndex=r;var o=t.exec(e);if(!o)break;var s=o.index+o[0].length;if(s>e.length-n)break;(!i||s>i.index+i[0].length)&&(i=o),r=o.index+1}return i}function l(e,t,n){t=r(t,"g");for(var o=n.line,s=n.ch,a=e.firstLine();o>=a;o--,s=-1){var l=e.getLine(o),u=c(l,t,s<0?0:l.length-s);if(u)return{from:i(o,u.index),to:i(o,u.index+u[0].length),match:u}}}function u(e,t,n){if(!o(t))return l(e,t,n);t=r(t,"gm");for(var s,a=1,u=e.getLine(n.line).length-n.ch,h=n.line,d=e.firstLine();h>=d;){for(var p=0;p=d;p++){var f=e.getLine(h--);s=null==s?f:f+"\n"+s}a*=2;var g=c(s,t,u);if(g){var m=s.slice(0,g.index).split("\n"),b=g[0].split("\n"),v=h+m.length,y=m[m.length-1].length;return{from:i(v,y),to:i(v+b.length-1,1==b.length?y+b[0].length:b[b.length-1].length),match:g}}}}function h(e,t,n,i){if(e.length==t.length)return n;for(var r=0,o=n+Math.max(0,e.length-t.length);;){if(r==o)return r;var s=r+o>>1,a=i(e.slice(0,s)).length;if(a==n)return s;a>n?o=s:r=s+1}}function d(e,r,o,s){if(!r.length)return null;var a=s?t:n,c=a(r).split(/\r|\n\r?/);e:for(var l=o.line,u=o.ch,d=e.lastLine()+1-c.length;l<=d;l++,u=0){var p=e.getLine(l).slice(u),f=a(p);if(1==c.length){var g=f.indexOf(c[0]);if(-1==g)continue e;return o=h(p,f,g,a)+u,{from:i(l,h(p,f,g,a)+u),to:i(l,h(p,f,g+c[0].length,a)+u)}}var m=f.length-c[0].length;if(f.slice(m)==c[0]){for(var b=1;b=d;l--,u=-1){var p=e.getLine(l);u>-1&&(p=p.slice(0,u));var f=a(p);if(1==c.length){var g=f.lastIndexOf(c[0]);if(-1==g)continue e;return{from:i(l,h(p,f,g,a)),to:i(l,h(p,f,g+c[0].length,a))}}var m=c[c.length-1];if(f.slice(0,m.length)==m){var b=1;for(o=l-c.length+1;b0);)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)})}(n("VrN/"))},uWOL:function(e,t,n){var i=n("NtLt");e.exports=function(e){return i(e).replace(/\s/g,"_")}},umFS:function(e,t,n){"use strict";var i=n("fEpb"),r={object:!0,symbol:!0};e.exports=function(){var e,t=i.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(n){return!1}return!!r[typeof t.iterator]&&!!r[typeof t.toPrimitive]&&!!r[typeof t.toStringTag]}},umOc:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("rWdj"),r=n("2C6G"),o=n("/jXB"),s=n("axIb");function a(e,t){var n;return t.kind===o.a.LIST_TYPE?(n=a(e,t.type))&&Object(s.d)(n):t.kind===o.a.NON_NULL_TYPE?(n=a(e,t.type))&&Object(s.e)(n):t.kind===o.a.NAMED_TYPE?e.getType(t.name.value):void Object(r.a)(!1,"Unexpected type node: "+Object(i.a)(t))}},uuZh:function(e,t,n){"use strict";e.exports=n("opf0")()?Math.sign:n("73r6")},v96Q:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("dWS+");function r(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new i.a(function(e){return'There can be only one operation named "'.concat(e,'".')}(r.value),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}},vJkw:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("RKIb");function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},vbtb:function(e,t){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("7o/Q");function r(){}var o=n("n6bG");function s(e,t,n){return function(i){return i.lift(new a(e,t,n))}}class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new c(e,this.nextOrObserver,this.error,this.complete))}}class c extends i.a{constructor(e,t,n,i){super(e),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=n||r,this._tapComplete=i||r,Object(o.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||r,this._tapError=t.error||r,this._tapComplete=t.complete||r)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},vxfF:function(e,t,n){"use strict";n.d(t,"a",function(){return R}),n.d(t,"b",function(){return B}),n.d(t,"c",function(){return G}),n.d(t,"d",function(){return P}),n.d(t,"e",function(){return N}),n.d(t,"f",function(){return W}),n.d(t,"g",function(){return M});var i=n("8LU1"),r=n("fXoL"),o=n("XNiG"),s=n("LRne"),a=n("HDdC"),c=n("xgIS"),l=n("eNwd"),u=n("7Hc7"),h=n("quSY"),d=n("7+OI"),p=n("/uUt"),f=n("3UWI"),g=n("pLZG"),m=n("1G5W"),b=n("JX91"),v=n("7o/Q");class y{call(e,t){return t.subscribe(new w(e))}}class w extends v.a{constructor(e){super(e),this.hasPrev=!1}_next(e){let t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)}}var _=n("eIep"),O=n("UXun"),C=n("nLfN"),E=n("ofXK"),S=n("cH1L");class T extends class{}{constructor(e){super(),this._data=e}connect(){return Object(d.a)(this._data)?this._data:Object(s.a)(this._data)}disconnect(){}}class x{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(e,t,n,i,r){e.forEachOperation((e,o,s)=>{let a,c;null==e.previousIndex?(a=this._insertView(()=>n(e,o,s),s,t,i(e)),c=a?1:0):null==s?(this._detachAndCacheView(o,t),c=3):(a=this._moveView(o,s,t,i(e)),c=2),r&&r({context:null==a?void 0:a.context,operation:c,record:e})})}detach(){for(const e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,t,n,i){const r=this._insertViewFromCache(t,n);if(r)return void(r.context.$implicit=i);const o=e();return n.createEmbeddedView(o.templateRef,o.context,o.index)}_detachAndCacheView(e,t){const n=t.detach(e);this._maybeCacheView(n,t)}_moveView(e,t,n,i){const r=n.get(e);return n.move(r,t),r.context.$implicit=i,r}_maybeCacheView(e,t){if(this._viewCache.length0?r/this._itemSize:0;if(t.end>i){const e=Math.ceil(n/this._itemSize),s=Math.max(0,Math.min(o,i-e));o!=s&&(o=s,r=s*this._itemSize,t.start=Math.floor(o)),t.end=Math.max(0,Math.min(i,t.start+e))}const s=r-t.start*this._itemSize;if(s0&&(t.end=Math.min(i,t.end+n),t.start=Math.max(0,Math.floor(o-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(t),this._viewport.setRenderedContentOffset(this._itemSize*t.start),this._scrolledIndexChange.next(Math.floor(o))}}function A(e){return e._scrollStrategy}let R=(()=>{class e{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new j(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=Object(i.f)(e)}get minBufferPx(){return this._minBufferPx}set minBufferPx(e){this._minBufferPx=Object(i.f)(e)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(e){this._maxBufferPx=Object(i.f)(e)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Lb({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[r.Db([{provide:z,useFactory:A,deps:[Object(r.W)(()=>e)]}]),r.Cb]}),e})(),N=(()=>{class e{constructor(e,t,n){this._ngZone=e,this._platform=t,this._scrolled=new o.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new a.a(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(Object(f.a)(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(s.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(g.a)(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=Object(i.e)(t),r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const e=this._getWindow();return Object(c.a)(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(r.B),r.ac(C.a),r.ac(E.d,8))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(r.B),Object(r.ac)(C.a),Object(r.ac)(E.d,8))},token:e,providedIn:"root"}),e})(),L=(()=>{class e{constructor(e,t,n,i){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=n,this.dir=i,this._destroyed=new o.a,this._elementScrolled=new a.a(e=>this.ngZone.runOutsideAngular(()=>Object(c.a)(this.elementRef.nativeElement,"scroll").pipe(Object(m.a)(this._destroyed)).subscribe(e)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=Object(C.d)()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Object(C.d)()?e.left=e.right:1==Object(C.d)()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Object(C.f)()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t=this.elementRef.nativeElement;if("top"==e)return t.scrollTop;if("bottom"==e)return t.scrollHeight-t.clientHeight-t.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==e?e=n?"right":"left":"end"==e&&(e=n?"left":"right"),n&&2==Object(C.d)()?"left"==e?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft:n&&1==Object(C.d)()?"left"==e?t.scrollLeft+t.scrollWidth-t.clientWidth:-t.scrollLeft:"left"==e?t.scrollLeft:t.scrollWidth-t.clientWidth-t.scrollLeft}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(N),r.Qb(r.B),r.Qb(S.b,8))},e.\u0275dir=r.Lb({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e})(),M=(()=>{class e{constructor(e,t,n){this._platform=e,this._change=new o.a,this._changeListener=e=>{this._change.next(e)},this._document=n,t.runOutsideAngular(()=>{if(e.isBrowser){const e=this._getWindow();e.addEventListener("resize",this._changeListener),e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Object(f.a)(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return e.\u0275fac=function(t){return new(t||e)(r.ac(C.a),r.ac(r.B),r.ac(E.d,8))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(C.a),Object(r.ac)(r.B),Object(r.ac)(E.d,8))},token:e,providedIn:"root"}),e})();const F="undefined"!=typeof requestAnimationFrame?l.a:u.a;let P=(()=>{class e extends L{constructor(e,t,n,i,r,s,c){super(e,s,n,r),this.elementRef=e,this._changeDetectorRef=t,this._scrollStrategy=i,this._detachedSubject=new o.a,this._renderedRangeSubject=new o.a,this._orientation="vertical",this.scrolledIndexChange=new a.a(e=>this._scrollStrategy.scrolledIndexChange.subscribe(t=>Promise.resolve().then(()=>this.ngZone.run(()=>e.next(t))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=h.a.EMPTY,this._viewportChanges=c.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Object(b.a)(null),Object(f.a)(0,F)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(e){this.ngZone.runOutsideAngular(()=>{this._forOf=e,this._forOf.dataStream.pipe(Object(m.a)(this._detachedSubject)).subscribe(e=>{const t=e.length;t!==this._dataLength&&(this._dataLength=t,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(e){this._totalContentSize!==e&&(this._totalContentSize=e,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(e){var t,n;((t=this._renderedRange).start!=(n=e).start||t.end!=n.end)&&(this._renderedRangeSubject.next(this._renderedRange=e),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(e,t="to-start"){const n="horizontal"==this.orientation,i=n?"X":"Y";let r=`translate${i}(${Number((n&&this.dir&&"rtl"==this.dir.value?-1:1)*e)}px)`;this._renderedContentOffset=e,"to-end"===t&&(r+=` translate${i}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=r&&(this._renderedContentTransform=r,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(e,t="auto"){const n={behavior:t};"horizontal"===this.orientation?n.start=e:n.top=e,this.scrollTo(n)}scrollToIndex(e,t="auto"){this._scrollStrategy.scrollToIndex(e,t)}measureScrollOffset(e){return super.measureScrollOffset(e||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const e=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?e.offsetWidth:e.offsetHeight}measureRangeSize(e){return this._forOf?this._forOf.measureRangeSize(e,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const e=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?e.clientWidth:e.clientHeight}_markChangeDetectionNeeded(e){e&&this._runAfterChangeDetection.push(e),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const e=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const t of e)t()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.h),r.Qb(r.B),r.Qb(z,8),r.Qb(S.b,8),r.Qb(N),r.Qb(M))},e.\u0275cmp=r.Kb({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(e,t){if(1&e&&r.Kc(I,3),2&e){let e;r.sc(e=r.ec())&&(t._contentWrapper=e.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(e,t){2&e&&r.Ib("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[r.Db([{provide:L,useExisting:e}]),r.Bb],ngContentSelectors:D,decls:10,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(e,t){1&e&&(r.lc(),r.Gc(0,"\n"),r.Wb(1,"div",0,1),r.Gc(3,"\n "),r.kc(4),r.Gc(5,"\n"),r.Vb(),r.Gc(6,"\n"),r.Gc(7,"\n"),r.Rb(8,"div",2),r.Gc(9,"\n")),2&e&&(r.Eb(8),r.Bc("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),e})();function V(e,t,n){if(!n.getBoundingClientRect)return 0;const i=n.getBoundingClientRect();return"horizontal"===e?"start"===t?i.left:i.right:"start"===t?i.top:i.bottom}let G=(()=>{class e{constructor(e,t,n,i,r,s){this._viewContainerRef=e,this._template=t,this._differs=n,this._viewRepeater=i,this._viewport=r,this.viewChange=new o.a,this._dataSourceChanges=new o.a,this.dataStream=this._dataSourceChanges.pipe(Object(b.a)(null),e=>e.lift(new y),Object(_.a)(([e,t])=>this._changeDataSource(e,t)),Object(O.a)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new o.a,this.dataStream.subscribe(e=>{this._data=e,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Object(m.a)(this._destroyed)).subscribe(e=>{this._renderedRange=e,s.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(e){this._cdkVirtualForOf=e,function(e){return e&&"function"==typeof e.connect}(e)?this._dataSourceChanges.next(e):this._dataSourceChanges.next(new T(Object(d.a)(e)?e:Array.from(e||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(e){this._needsUpdate=!0,this._cdkVirtualForTrackBy=e?(t,n)=>e(t+(this._renderedRange?this._renderedRange.start:0),n):void 0}set cdkVirtualForTemplate(e){e&&(this._needsUpdate=!0,this._template=e)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(e){this._viewRepeater.viewCacheSize=Object(i.f)(e)}measureRangeSize(e,t){if(e.start>=e.end)return 0;const n=e.start-this._renderedRange.start,i=e.end-e.start;let r,o;for(let s=0;s-1;s--){const e=this._viewContainerRef.get(s+n);if(e&&e.rootNodes.length){o=e.rootNodes[e.rootNodes.length-1];break}}return r&&o?V(t,"end",o)-V(t,"start",r):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const e=this._differ.diff(this._renderedItems);e?this._applyChanges(e):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((e,t)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(e,t):t)),this._needsUpdate=!0)}_changeDataSource(e,t){return e&&e.disconnect(this),this._needsUpdate=!0,t?t.connect(this):Object(s.a)()}_updateContext(){const e=this._data.length;let t=this._viewContainerRef.length;for(;t--;){const n=this._viewContainerRef.get(t);n.context.index=this._renderedRange.start+t,n.context.count=e,this._updateComputedContextProperties(n.context),n.detectChanges()}}_applyChanges(e){this._viewRepeater.applyChanges(e,this._viewContainerRef,(e,t,n)=>this._getEmbeddedViewArgs(e,n),e=>e.item),e.forEachIdentityChange(e=>{this._viewContainerRef.get(e.currentIndex).context.$implicit=e.item});const t=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const e=this._viewContainerRef.get(n);e.context.index=this._renderedRange.start+n,e.context.count=t,this._updateComputedContextProperties(e.context)}}_updateComputedContextProperties(e){e.first=0===e.index,e.last=e.index===e.count-1,e.even=e.index%2==0,e.odd=!e.even}_getEmbeddedViewArgs(e,t){return{templateRef:this._template,context:{$implicit:e.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:t}}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.S),r.Qb(r.O),r.Qb(r.u),r.Qb(k),r.Qb(P,4),r.Qb(r.B))},e.\u0275dir=r.Lb({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[r.Db([{provide:k,useClass:x}])]}),e})(),B=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)}}),e})(),W=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[S.a,C.b,B],S.a,B]}),e})()},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("EQ5u"),r=n("x+ZX"),o=n("XNiG");function s(){return new o.a}function a(){return e=>{return Object(r.a)()((t=s,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,i.b);return r.source=e,r.subjectFactory=n,r})(e));var t}}},w6bI:function(e,t,n){"use strict";var i,r=n("lWBa"),o=n("YsTz"),s=n("GpRL"),a=Array.prototype.slice;i=function(e){return this.map(function(t,n){return t?t(e[n]):e[n]}).concat(a.call(e,this.length))},e.exports=function(e){return(e=r(e)).forEach(function(e){o(e)&&s(e)}),i.bind(e)}},w7D7:function(e,t,n){"use strict";t.a=!!(window&&window.process&&window.process.versions.electron||window.ipc)},wp29:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n("fXoL"),r=n("ofXK"),o=n("lR5k"),s=n("ssiq"),a=n("sYmb");function c(e,t){1&e&&(i.Ub(0),i.Gc(1),i.hc(2,"translate"),i.Tb()),2&e&&(i.Eb(1),i.Hc(i.ic(2,1,"DOCS_ADD_QUERY_TEXT")))}function l(e,t){1&e&&(i.Ub(0),i.Gc(1),i.hc(2,"translate"),i.Tb()),2&e&&(i.Eb(1),i.Hc(i.ic(2,1,"DOCS_ADD_FRAGMENT_TEXT")))}function u(e,t){if(1&e&&(i.Wb(0,"span",14),i.Gc(1),i.Vb()),2&e){const e=i.gc().$implicit;i.Eb(1),i.Ic("= ",e.defaultValue,"")}}function h(e,t){if(1&e){const e=i.Xb();i.Wb(0,"div",10),i.Gc(1,"\n "),i.Wb(2,"div",4),i.Gc(3,"\n "),i.Wb(4,"span",11),i.dc("click",function(){i.wc(e);const n=t.$implicit;return i.gc(3).goToType(n.type.inspect())}),i.Gc(5),i.Ec(6,u,2,1,"span",12),i.Gc(7,"\n "),i.Vb(),i.Gc(8,"\n "),i.Wb(9,"span",13),i.dc("click",function(){i.wc(e);const n=t.$implicit;return i.gc(3).goToType(n.type.inspect())}),i.Gc(10),i.Vb(),i.Gc(11,"\n "),i.Vb(),i.Gc(12,"\n "),i.Wb(13,"div",5),i.Gc(14,"\n "),i.Vb(),i.Gc(15,"\n "),i.Vb()}if(2&e){const e=t.$implicit;i.Eb(5),i.Ic("\n ",e.name,"\n "),i.Eb(1),i.mc("ngIf",e.defaultValue&&e.defaultValue.toString),i.Eb(4),i.Ic("\n ",e.type.inspect(),"\n "),i.Eb(3),i.mc("data",e.description||"")}}function d(e,t){if(1&e&&(i.Wb(0,"div",8),i.Gc(1,"\n "),i.Wb(2,"div",1),i.Gc(3),i.hc(4,"translate"),i.Vb(),i.Gc(5,"\n "),i.Ec(6,h,16,4,"div",9),i.Gc(7,"\n "),i.Vb()),2&e){const e=i.gc(2);i.Eb(3),i.Hc(i.ic(4,3,"DOCS_ARGUMENTS_TEXT")),i.Eb(3),i.mc("ngForOf",e.data.args)("ngForTrackBy",e.argTrackBy)}}function p(e,t){if(1&e){const e=i.Xb();i.Ub(0),i.Gc(1,"\n "),i.Wb(2,"div",2),i.Gc(3,"\n "),i.Gc(4,"\n "),i.Wb(5,"div",3),i.Gc(6,"\n "),i.Wb(7,"div",4),i.Gc(8),i.Vb(),i.Gc(9,"\n "),i.Wb(10,"div",5),i.Gc(11,"\n "),i.Vb(),i.Gc(12,"\n "),i.Wb(13,"div",4),i.Gc(14,"\n "),i.Wb(15,"button",6),i.dc("click",function(){i.wc(e);const t=i.gc();return t.addToEditor({name:t.data.name,parentType:t.parentType})}),i.Gc(16,"\n "),i.Ec(17,c,3,3,"ng-container",0),i.Gc(18,"\n "),i.Ec(19,l,3,3,"ng-container",0),i.Gc(20,"\n "),i.Vb(),i.Gc(21,"\n "),i.Vb(),i.Gc(22,"\n "),i.Vb(),i.Gc(23,"\n "),i.Vb(),i.Gc(24,"\n "),i.Gc(25,"\n "),i.Ec(26,d,8,5,"div",7),i.Gc(27,"\n"),i.Tb()}if(2&e){const e=i.gc();i.Eb(8),i.Ic("\n ",e.data.name,"\n "),i.Eb(2),i.mc("data",e.data.description||""),i.Eb(7),i.mc("ngIf",e.isRootType(e.parentType)),i.Eb(2),i.mc("ngIf",!e.isRootType(e.parentType)),i.Eb(7),i.mc("ngIf",e.data.args&&e.data.args.length)}}function f(e,t){if(1&e){const e=i.Xb();i.Ub(0),i.Gc(1,"\n "),i.Wb(2,"app-doc-viewer-type",15),i.dc("goToFieldChange",function(t){return i.wc(e),i.gc().goToField(t.name,t.parentType)})("goToTypeChange",function(t){return i.wc(e),i.gc().goToType(t.name)})("addToEditorChange",function(t){return i.wc(e),i.gc().addToEditor(t)}),i.Vb(),i.Gc(3,"\n"),i.Tb()}if(2&e){const e=i.gc();i.Eb(2),i.mc("data",e.gqlSchema.getType(e.cleanName(e.data.type.inspect())))("gqlSchema",e.gqlSchema)}}let g=(()=>{class e{constructor(){this.data={},this.parentType="",this.goToFieldChange=new i.n,this.goToTypeChange=new i.n,this.addToEditorChange=new i.n}ngOnInit(){}cleanName(e){return e.replace(/[\[\]!]/g,"")}isRootType(e){if(!e||!this.gqlSchema)return!1;switch(e){case this.gqlSchema.getQueryType()&&this.gqlSchema.getQueryType().name:case this.gqlSchema.getMutationType()&&this.gqlSchema.getMutationType().name:case this.gqlSchema.getSubscriptionType()&&this.gqlSchema.getSubscriptionType().name:return!0}return!1}goToField(e,t){this.goToFieldChange.next({name:e,parentType:t})}goToType(e){this.goToTypeChange.next({name:e})}addToEditor(e){this.addToEditorChange.next(e)}argTrackBy(e,t){return t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["app-doc-viewer-field"]],inputs:{data:"data",gqlSchema:"gqlSchema",parentType:"parentType"},outputs:{goToFieldChange:"goToFieldChange",goToTypeChange:"goToTypeChange",addToEditorChange:"addToEditorChange"},decls:9,vars:5,consts:[[4,"ngIf"],[1,"doc-viewer-section-title"],[1,"doc-viewer-section"],[1,"doc-viewer-item","doc-viewer-item-field"],[1,"doc-viewer-item-query-inner"],["markdown","",1,"doc-viewer-item-query-description",3,"data"],["track-id","add_query",1,"doc-viewer-item-query-add-btn",3,"click"],["class","doc-viewer-section doc-viewer-arguments",4,"ngIf"],[1,"doc-viewer-section","doc-viewer-arguments"],["class","doc-viewer-item doc-viewer-item-query",4,"ngFor","ngForOf","ngForTrackBy"],[1,"doc-viewer-item","doc-viewer-item-query"],[1,"no-link-link",3,"click"],["class","doc-viewer-item-value",4,"ngIf"],[1,"doc-viewer-item-type","doc-viewer-item-query-type","no-link-link",3,"click"],[1,"doc-viewer-item-value"],[3,"data","gqlSchema","goToFieldChange","goToTypeChange","addToEditorChange"]],template:function(e,t){1&e&&(i.Ec(0,p,28,5,"ng-container",0),i.Gc(1,"\n\n"),i.Gc(2,"\n"),i.Wb(3,"div",1),i.Gc(4),i.hc(5,"translate"),i.Vb(),i.Gc(6,"\n"),i.Ec(7,f,4,2,"ng-container",0),i.Gc(8,"\n")),2&e&&(i.mc("ngIf",t.data),i.Eb(4),i.Hc(i.ic(5,3,"DOCS_TYPE_TEXT")),i.Eb(3),i.mc("ngIf",t.gqlSchema&&t.data&&t.gqlSchema.getType(t.cleanName(t.data.type.inspect()))))},directives:[r.o,o.a,r.n,s.a],pipes:[a.c],styles:[""],changeDetection:0}),e})()},wpgB:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("dWS+"),r=n("axIb");function o(e,t){return'Enum value "'.concat(e,".").concat(t,'" can only be defined once.')}function s(e,t){return'Enum value "'.concat(e,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.')}function a(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),a=Object.create(null);return{EnumTypeDefinition:c,EnumTypeExtension:c};function c(t){var c=t.name.value;if(a[c]||(a[c]=Object.create(null)),t.values)for(var l=a[c],u=0,h=t.values;u1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},x859:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n("fXoL"),r=n("R0Ic"),o=n("ofXK"),s=n("sYmb");function a(e,t){1&e&&(i.Ub(0),i.Gc(1,"\n "),i.Wb(2,"span",12),i.Gc(3),i.hc(4,"translate"),i.Vb(),i.Gc(5,"\n "),i.Tb()),2&e&&(i.Eb(3),i.Hc(i.ic(4,1,"DOCS_TYPE_TEXT")))}function c(e,t){if(1&e&&(i.Wb(0,"span",15),i.Gc(1),i.Vb()),2&e){const e=i.gc(2).$implicit,t=i.gc();i.Eb(1),i.Hc(t.getProperName(e.type))}}function l(e,t){1&e&&(i.Wb(0,"span",16),i.Gc(1),i.hc(2,"translate"),i.Vb()),2&e&&(i.Eb(1),i.Hc(i.ic(2,1,"DOCS_FIELD_TEXT")))}function u(e,t){if(1&e&&(i.Ub(0),i.Gc(1,"\n "),i.Ec(2,c,2,1,"span",13),i.Gc(3,"\n "),i.Ec(4,l,3,3,"span",14),i.Gc(5,"\n "),i.Tb()),2&e){const e=i.gc().$implicit;i.Eb(2),i.mc("ngIf",e.isQuery),i.Eb(2),i.mc("ngIf",!e.isQuery)}}function h(e,t){if(1&e&&(i.Ub(0),i.Gc(1,"\n "),i.Wb(2,"span",12),i.Gc(3),i.Vb(),i.Gc(4,"\n "),i.Tb()),2&e){const e=i.gc().$implicit,t=i.gc();i.Eb(3),i.Hc(t.getProperName(e.cat))}}function d(e,t){if(1&e){const e=i.Xb();i.Wb(0,"span",17),i.dc("click",function(){i.wc(e);const t=i.gc().$implicit;return i.gc().goToItem(t.type,null,"type")}),i.Gc(1),i.Vb()}if(2&e){const e=i.gc().$implicit;i.Eb(1),i.Ic("",e.type,".")}}function p(e,t){1&e&&(i.Wb(0,"span"),i.Gc(1,","),i.Vb())}const f=function(e){return{"doc-viewer-search-result-highlight":e}};function g(e,t){if(1&e&&(i.Wb(0,"span",9),i.Gc(1,"\n "),i.Wb(2,"span"),i.Gc(3),i.Vb(),i.Ec(4,p,2,0,"span",10),i.Gc(5,"\n "),i.Vb()),2&e){const e=t.$implicit,n=t.last,r=i.gc(2).$implicit;i.mc("ngClass",i.pc(3,f,"argument"===r.highlight)),i.Eb(3),i.Hc(e.name),i.Eb(1),i.mc("ngIf",!n)}}function m(e,t){if(1&e&&(i.Ub(0),i.Gc(1,"\n (\n "),i.Ec(2,g,6,5,"span",18),i.Gc(3,"\n )\n "),i.Tb()),2&e){const e=i.gc().$implicit,t=i.gc();i.Eb(2),i.mc("ngForOf",e.args)("ngForTrackBy",t.resultArgTrackBy)}}function b(e,t){if(1&e){const e=i.Xb();i.Wb(0,"div",3),i.dc("click",function(){i.wc(e);const n=t.$implicit;return i.gc().goToItem(n.name,n.type,n.cat)}),i.Gc(1,"\n "),i.Ub(2,4),i.Gc(3,"\n "),i.Ec(4,a,6,3,"ng-container",5),i.Gc(5,"\n "),i.Ec(6,u,6,2,"ng-container",5),i.Gc(7,"\n "),i.Ec(8,h,5,1,"ng-container",6),i.Gc(9,"\n "),i.Tb(),i.Gc(10,"\n "),i.Wb(11,"div",7),i.Gc(12,"\n "),i.Ec(13,d,2,1,"span",8),i.Wb(14,"span",9),i.Gc(15),i.Vb(),i.Gc(16,"\n "),i.Ec(17,m,4,2,"ng-container",10),i.Gc(18,"\n "),i.Vb(),i.Gc(19,"\n "),i.Wb(20,"div",11),i.Gc(21),i.Vb(),i.Gc(22,"\n "),i.Vb()}if(2&e){const e=t.$implicit;i.mc("@showResultItem",void 0),i.Eb(2),i.mc("ngSwitch",e.cat),i.Eb(2),i.mc("ngSwitchCase","type"),i.Eb(2),i.mc("ngSwitchCase","field"),i.Eb(7),i.mc("ngIf",!e.isQuery&&e.type),i.Eb(1),i.mc("ngClass",i.pc(9,f,"argument"!==e.highlight)),i.Eb(1),i.Hc(e.name),i.Eb(2),i.mc("ngIf",e.args&&e.args.length),i.Eb(4),i.Hc(e.description)}}let v=(()=>{class e{constructor(){this.results=[],this.goToFieldChange=new i.n,this.goToTypeChange=new i.n}ngOnInit(){}goToItem(e,t,n){switch(n){case"field":this.goToField(e,t);break;case"type":this.goToType(e)}}goToField(e,t){this.goToFieldChange.next({name:e,parentType:t})}goToType(e){this.goToTypeChange.next({name:e})}getProperName(e){return/mutation/i.test(e)?"Mutation":/query/i.test(e)?"Query":/subscription/i.test(e)?"Subscription":e}resultTrackBy(e,t){return`${t.name}.${t.type}.${t.cat}`}resultArgTrackBy(e,t){return t.name}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=i.Kb({type:e,selectors:[["app-doc-viewer-search-results"]],inputs:{results:"results"},outputs:{goToFieldChange:"goToFieldChange",goToTypeChange:"goToTypeChange"},decls:9,vars:5,consts:[[1,"doc-viewer-search-results"],[1,"doc-viewer-search-results-title"],["class","doc-viewer-search-result-item",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"doc-viewer-search-result-item",3,"click"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"doc-viewer-search-result-item-inner"],["class","doc-viewer-search-result-parent-type",3,"click",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],[1,"doc-viewer-search-result-description"],[1,"doc-viewer-search-result-cat","cat-type"],["class","doc-viewer-search-result-cat cat-query",4,"ngIf"],["class","doc-viewer-search-result-cat cat-field",4,"ngIf"],[1,"doc-viewer-search-result-cat","cat-query"],[1,"doc-viewer-search-result-cat","cat-field"],[1,"doc-viewer-search-result-parent-type",3,"click"],[3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(e,t){1&e&&(i.Wb(0,"div",0),i.Gc(1,"\n "),i.Wb(2,"div",1),i.Gc(3),i.hc(4,"translate"),i.Vb(),i.Gc(5,"\n\n "),i.Ec(6,b,23,11,"div",2),i.Gc(7,"\n\n"),i.Vb(),i.Gc(8,"\n")),2&e&&(i.Eb(3),i.Ic("\n ",i.ic(4,3,"DOCS_SEARCH_RESULTS_TEXT"),"\n "),i.Eb(3),i.mc("ngForOf",t.results)("ngForTrackBy",t.resultTrackBy))},directives:[o.n,o.q,o.r,o.s,o.o,o.l],pipes:[s.c],styles:[""],data:{animation:[Object(r.l)("showResultItem",[Object(r.k)(":enter",[Object(r.j)({opacity:0,transform:"translateY(50%)"}),Object(r.e)(200,Object(r.j)({opacity:1,transform:"translateY(0)"}))]),Object(r.k)(":leave",[Object(r.j)({height:"*"}),Object(r.e)(200,Object(r.j)({transform:"translateY(150%)",opacity:0,height:0}))])])]}}),e})()},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e=null){return t=>t.lift(new o(e))}class o{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new s(e,this.defaultValue))}}class s extends i.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xeyX:function(e,t,n){"use strict";e.exports=function(e){var t,n,i=e.length;if(!i)return"\x02";for(t=String(e[n=0]);--i;)t+="\x01"+e[++n];return t}},xfTp:function(e,t,n){"use strict";var i=n("uuZh"),r=Math.abs,o=Math.floor;e.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?i(e)*o(r(e)):e}},xgIS:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("DH7j"),o=n("n6bG"),s=n("lJxs");function a(e,t,n,l){return Object(o.a)(n)&&(l=n,n=void 0),l?a(e,t,n).pipe(Object(s.a)(e=>Object(r.a)(e)?l(...e):l(e))):new i.a(i=>{c(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function c(e,t,n,i,r){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){const i=e;e.addEventListener(t,n,r),o=()=>i.removeEventListener(t,n,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){const i=e;e.on(t,n),o=()=>i.off(t,n)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){const i=e;e.addListener(t,n),o=()=>i.removeListener(t,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,s=e.length;o=l){if(d&&s&&d.test(s.className))return;o=r(a.indicatorOpen)}}(o||s)&&e.setGutterMarker(n,a.gutter,o)})}function s(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function c(e,n,r){var o=e.state.foldGutter;if(o){var s=o.options;if(r==s.gutter){var a=i(e,n);a?a.clear():e.foldCode(t(n,0),s)}}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function h(e,t){var n=e.state.foldGutter;if(n){var i=t.line;i>=n.from&&in&&(r=n);var o=function(e){return e.charCodeAt(0).toString(16).toUpperCase()},s=function(e,t,n){return e.substr(t,n).replace(/\\/g,"\\\\").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+o(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+o(e)}).replace(/[\u0100-\u0FFF]/g,function(e){return"\\u0"+o(e)}).replace(/[\u1000-\uFFFF]/g,function(e){return"\\u"+o(e)})};return{prologTrunc:i>0,prologText:s(e,i,t-i),tokenText:s(e,t,1),epilogText:s(e,t+1,r-(t+1)),epilogTrunc:r3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;c(this,e),this.type=t,this.value=n,this.text=i,this.pos=r,this.line=o,this.column=s}return u(e,[{key:"toString",value:function(){return"")}},{key:"isA",value:function(e,t){return e===this.type&&(2!==arguments.length||t===this.value)}}]),e}(),p=function(e){function t(e,n,i,o,s){var l;return c(this,t),(l=r(this,a(t).call(this,e))).name="ParsingError",l.message=e,l.pos=n,l.line=i,l.column=o,l.input=s,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,o(Error)),u(t,[{key:"toString",value:function(){for(var e=h(this.input,this.pos),t="line ".concat(this.line," (column ").concat(this.column,"): "),n="",i=0;i0?((t=this._tokenizr).state.apply(t,arguments),this):(e=this._tokenizr).state.apply(e,arguments)}},{key:"tag",value:function(){var e;return(e=this._tokenizr).tag.apply(e,arguments),this}},{key:"tagged",value:function(){var e;return(e=this._tokenizr).tagged.apply(e,arguments)}},{key:"untag",value:function(){var e;return(e=this._tokenizr).untag.apply(e,arguments),this}},{key:"repeat",value:function(){return this._tokenizr._log(" REPEAT"),this._repeat=!0,this}},{key:"reject",value:function(){return this._tokenizr._log(" REJECT"),this._reject=!0,this}},{key:"ignore",value:function(){return this._tokenizr._log(" IGNORE"),this._ignore=!0,this}},{key:"accept",value:function(e,t){return arguments.length<2&&(t=this._match[0]),this._tokenizr._log(" ACCEPT: type: ".concat(e,", value: ")+"".concat(JSON.stringify(t)," (").concat(i(t),'), text: "').concat(this._match[0],'"')),this._tokenizr._pending.push(new d(e,t,this._match[0],this._tokenizr._pos,this._tokenizr._line,this._tokenizr._column)),this}},{key:"stop",value:function(){return this._tokenizr._stopped=!0,this}}]),e}(),g=function(){function e(){c(this,e),this._before=null,this._after=null,this._finish=null,this._rules=[],this._debug=!1,this.reset()}return u(e,[{key:"reset",value:function(){return this._input="",this._len=0,this._eof=!1,this._pos=0,this._line=1,this._column=1,this._state=["default"],this._tag={},this._transaction=[],this._pending=[],this._stopped=!1,this._ctx=new f(this),this}},{key:"error",value:function(e){return new p(e,this._pos,this._line,this._column,this._input)}},{key:"debug",value:function(e){return this._debug=e,this}},{key:"_log",value:function(e){this._debug&&console.log("tokenizr: ".concat(e))}},{key:"input",value:function(e){if("string"!=typeof e)throw new Error('parameter "input" not a String');return this.reset(),this._input=e,this._len=e.length,this}},{key:"push",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "state" not a String');return this._log(" STATE (PUSH): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(e,">")),this._state.push(e),this}},{key:"pop",value:function(){if(0!==arguments.length)throw new Error("invalid number of arguments");if(this._state.length<2)throw new Error("no more custom states to pop");return this._log(" STATE (POP): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(this._state[this._state.length-2],">")),this._state.pop()}},{key:"state",value:function(e){if(1===arguments.length){if("string"!=typeof e)throw new Error('parameter "state" not a String');return this._log(" STATE (SET): "+"old: <".concat(this._state[this._state.length-1],">, ")+"new: <".concat(e,">")),this._state[this._state.length-1]=e,this}if(0===arguments.length)return this._state[this._state.length-1];throw new Error("invalid number of arguments")}},{key:"tag",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return this._log(" TAG (ADD): ".concat(e)),this._tag[e]=!0,this}},{key:"tagged",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return!0===this._tag[e]}},{key:"untag",value:function(e){if(1!==arguments.length)throw new Error("invalid number of arguments");if("string"!=typeof e)throw new Error('parameter "tag" not a String');return this._log(" TAG (DEL): ".concat(e)),delete this._tag[e],this}},{key:"before",value:function(e){return this._before=e,this}},{key:"after",value:function(e){return this._after=e,this}},{key:"finish",value:function(e){return this._finish=e,this}},{key:"rule",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unknown";if(2===arguments.length&&"function"==typeof t){var o=[e,t];t=o[0],n=o[1],e="*"}else if(3===arguments.length&&"function"==typeof t){var s=[e,t,n];t=s[0],n=s[1],r=s[2],e="*"}if("string"!=typeof e)throw new Error('parameter "state" not a String');if(!("object"===i(t)&&t instanceof RegExp))throw new Error('parameter "pattern" not a RegExp');if("function"!=typeof n)throw new Error('parameter "action" not a Function');if("string"!=typeof r)throw new Error('parameter "name" not a String');e=e.split(/\s*,\s*/g).map(function(e){var t=e.split(/\s+/g),n=t.filter(function(e){return null===e.match(/^#/)}),i=t.filter(function(e){return null!==e.match(/^#/)}).map(function(e){return e.replace(/^#/,"")});if(1!==n.length)throw new Error("exactly one state required");return{state:n[0],tags:i}});var a="g";try{"boolean"==typeof new RegExp("","y").sticky&&(a="y")}catch(e){}return"boolean"==typeof t.multiline&&t.multiline&&(a+="m"),"boolean"==typeof t.dotAll&&t.dotAll&&(a+="s"),"boolean"==typeof t.ignoreCase&&t.ignoreCase&&(a+="i"),"boolean"==typeof t.unicode&&t.unicode&&(a+="u"),t=new RegExp(t.source,a),this._log("rule: configure rule (state: ".concat(e,", pattern: ").concat(t.source,")")),this._rules.push({state:e,pattern:t,action:n,name:r}),this}},{key:"_progress",value:function(e,t){for(var n=this._line,i=this._column,r=this._input,o=e;o, ")+"to: "))}},{key:"_tokenize",value:function(){var e=this,t=function(){e._eof||(null!==e._finish&&e._finish.call(e._ctx,e._ctx),e._eof=!0,e._pending.push(new d("EOF","","",e._pos,e._line,e._column)))};if(!(this._stopped||this._pos>=this._len)){for(var n=!0;n;){if(n=!1,this._debug){var i=h(this._input,this._pos),r=Object.keys(this._tag).map(function(e){return"#".concat(e)}).join(" ");this._log("INPUT: state: <".concat(this._state[this._state.length-1],">, tags: <").concat(r,">, text: ")+(i.prologTrunc?"...":'"')+"".concat(i.prologText,"<").concat(i.tokenText,">").concat(i.epilogText)+(i.epilogTrunc?"...":'"')+", at: "))}for(var o=0;o0&&(t+=" "+e.tags.map(function(e){return"#".concat(e)}).join(" ")),t}).join(", ");this._log(" RULE: state(s): <".concat(s,">, ")+"pattern: ".concat(this._rules[o].pattern.source))}var a=!1,c=this._rules[o].state.map(function(e){return e.state}),l=c.indexOf("*");if(l<0&&(l=c.indexOf(this._state[this._state.length-1])),l>=0){a=!0;var u=this._rules[o].state[l].tags;(u=u.filter(function(t){return!e._tag[t]})).length>0&&(a=!1)}if(a){this._rules[o].pattern.lastIndex=this._pos;var p=this._rules[o].pattern.exec(this._input);if(this._rules[o].pattern.lastIndex=this._pos,null!==(p=this._rules[o].pattern.exec(this._input))&&p.index===this._pos){if(this._debug&&this._log(" MATCHED: "+JSON.stringify(p)),this._ctx._match=p,this._ctx._repeat=!1,this._ctx._reject=!1,this._ctx._ignore=!1,null!==this._before&&this._before.call(this._ctx,this._ctx,p,this._rules[o]),this._rules[o].action.call(this._ctx,this._ctx,p),null!==this._after&&this._after.call(this._ctx,this._ctx,p,this._rules[o]),this._ctx._reject)continue;if(this._ctx._repeat){n=!0;break}if(this._ctx._ignore){if(this._progress(this._pos,this._rules[o].pattern.lastIndex),this._pos=this._rules[o].pattern.lastIndex,this._pos>=this._len)return void t();n=!0;break}if(this._pending.length>0)return this._progress(this._pos,this._rules[o].pattern.lastIndex),this._pos=this._rules[o].pattern.lastIndex,void(this._pos>=this._len&&t());throw new Error('action of pattern "'+this._rules[o].pattern.source+'" neither rejected nor accepted any token(s)')}}}}throw this.error("token not recognized")}t()}},{key:"token",value:function(){if(0===this._pending.length&&this._tokenize(),this._pending.length>0){var e=this._pending.shift();return this._transaction.length>0&&this._transaction[0].push(e),this._log("TOKEN: ".concat(e.toString())),e}return null}},{key:"tokens",value:function(){for(var e,t=[];null!==(e=this.token());)t.push(e);return t}},{key:"peek",value:function(e){void 0===e&&(e=0);for(var t=0;t=this._pending.length)throw new Error("not enough tokens available for peek operation");return this._log("PEEK: ".concat(this._pending[e].toString())),this._pending[e]}},{key:"skip",value:function(e){void 0===e&&(e=1);for(var t=0;tthis._pending.length)throw new Error("not enough tokens available for skip operation");for(;e-- >0;)this.token();return this}},{key:"consume",value:function(e,t){for(var n=this,r=0;r, ")+"found: "),o.pos,o.line,o.column,n._input)};return 2!==arguments.length||o.isA(e,t)?o.isA(e)||s():s(JSON.stringify(t),i(t)),o}},{key:"begin",value:function(){return this._log("BEGIN: level ".concat(this._transaction.length)),this._transaction.unshift([]),this}},{key:"depth",value:function(){if(0===this._transaction.length)throw new Error("cannot determine depth -- no active transaction");return this._transaction[0].length}},{key:"commit",value:function(){if(0===this._transaction.length)throw new Error("cannot commit transaction -- no active transaction");return this._transaction.shift(),this._log("COMMIT: level ".concat(this._transaction.length)),this}},{key:"rollback",value:function(){if(0===this._transaction.length)throw new Error("cannot rollback transaction -- no active transaction");return this._pending=this._transaction[0].concat(this._pending),this._transaction.shift(),this._log("ROLLBACK: level ".concat(this._transaction.length)),this}},{key:"alternatives",value:function(){for(var e=null,t=[],n=arguments.length,i=new Array(n),r=0;r0)throw(t=t.sort(function(e,t){return e.depth-t.depth}))[0].ex;return e}}]),e}();g.Token=d,g.ParsingError=p,g.ActionContext=f,t.exports=g},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var i,r=(i=e("tokenizr"))&&i.__esModule?i:{default:i};t.exports=function(e){var t=new r.default;t.rule(/#[^\r\n]*(?=\r?\n)/,function(e,t){e.accept("comment")}),t.rule(/"(?:\\"|[^"])*"/,function(e,t){e.accept("string")}),t.rule(/$[a-zA-Z_][a-zA-Z0-9_]*/,function(e,t){e.accept("var")}),t.rule(/[a-zA-Z_][a-zA-Z0-9_]*/,function(e,t){e.accept("id")}),t.rule(/[+-]?[0-9]*\.?[0-9]+(?:[eE][+-]?[0-9]+)?/,function(e,t){e.accept("number")}),t.rule(/[ \t\r\n]+/,function(e,t){e.accept("ws"," ")}),t.rule(/[{}]/,function(e,t){e.accept("brace")}),t.rule(/[[\]]/,function(e,t){e.accept("bracket")}),t.rule(/[()]/,function(e,t){e.accept("parenthesis")}),t.rule(/,/,function(e,t){e.accept("comma")}),t.rule(/!/,function(e,t){e.accept("not")}),t.rule(/\.\.\./,function(e,t){e.accept("ellipsis")}),t.rule(/@/,function(e,t){e.accept("at")}),t.rule(/:/,function(e,t){e.accept("colon")}),t.rule(/./,function(e,t){e.accept("any")}),t.input(e),t.debug(!1);for(var n=t.tokens(),i="",o=/^(?:brace|bracket|parenthesis|comma|colon)$/,s=0;s0&&n[s-1].type.match(o)))&&(n.splice(s,1),s--);return n.forEach(function(e){i+=e.value}),i}},{tokenizr:1}]},{},[2])(2)},"z+Ro":function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return i})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e,t){return new i.a(t?n=>t.schedule(o,0,{error:e,subscriber:n}):t=>t.error(e))}function o({error:e,subscriber:t}){t.error(e)}},zP0r:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e){return t=>t.lift(new o(e))}class o{constructor(e){this.total=e}call(e,t){return t.subscribe(new s(e,this.total))}}class s extends i.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}},zUnb:function(e,t,n){"use strict";n.r(t);var i=n("jhN1"),r=n("fXoL"),o=n("ofXK"),s=n("HaE+"),a=n("/uUt"),c=n("lJxs"),l=n("IzEk"),u=n("eIep"),h=n("tS1D"),d=n("JIr8"),p=n("pLZG"),f=n("SxV6"),g=n("l7P3"),m=n("cp0P"),b=n("Cfvw"),v=n("LRne"),y=n("sYmb"),w=n("xk4V"),_=n.n(w),O=n("e9W3"),C=n("U7fl"),E=n("Q41Y"),S=n("gWfR"),T=n("Gjh+"),x=n("oE/m"),k=n("/D3x"),I=n("mIS6"),D=n("gMQV"),z=n("P9dZ"),j=n("9Oho"),A=n("AytR"),R=n("S1AF"),N=n("nTiS"),L=n("w7D7"),M=n("6EqW"),F=n("VfN6"),P=n("HEXU");let V=(()=>{class e{constructor(){this.onFileDropped=new r.n}onDragOver(e){e.preventDefault(),e.stopPropagation()}onDragLeave(e){e.preventDefault(),e.stopPropagation()}ondrop(e){var t;e.preventDefault(),e.stopPropagation();const n=null===(t=e.dataTransfer)||void 0===t?void 0:t.files;n&&n.length>0&&this.onFileDropped.emit(n)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Lb({type:e,selectors:[["","appFileDrop",""]],hostBindings:function(e,t){1&e&&r.dc("dragover",function(e){return t.onDragOver(e)})("dragleave",function(e){return t.onDragLeave(e)})("drop",function(e){return t.ondrop(e)})},outputs:{onFileDropped:"onFileDropped"}}),e})();var G=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);this.container.insertBefore(t,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(t)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;tp)&&(P=(B=B.replace(" ",":")).length),0i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(102i.charCodeAt(0)&&(i=i.trim()),i=[i],0=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Q={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},K=/[A-Z]|^ms/g,X=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Y=function(e){return 45===e.charCodeAt(1)},J=function(e){return null!=e&&"boolean"!=typeof e},Z=($={},function(e){return void 0===$[e]&&($[e]=Y(t=e)?t:t.replace(K,"-$&").toLowerCase()),$[e];var t}),ee=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(X,function(e,t,n){return ne={name:t,styles:n,next:ne},t})}return 1===Q[e]||Y(e)||"number"!=typeof t||0===t?t:t+"px"};function te(e,t,n,i){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ne={name:n.name,styles:n.styles,next:ne},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ne={name:r.name,styles:r.styles,next:ne},r=r.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r{class e{constructor(e){this.themeRegistry=e,this.className=""}ngOnInit(){this.addHTMLClass(this.appTheme)}ngOnChanges(e){var t;(null===(t=null==e?void 0:e.appTheme)||void 0===t?void 0:t.currentValue)&&this.addHTMLClass(e.appTheme.currentValue)}getCssString(e){return`\n --baseline-size: ${e.type.fontSize.base};\n --rem-base: ${e.type.fontSize.remBase};\n --body-font-size: ${e.type.fontSize.body};\n\n --app-easing: ${e.easing};\n\n --black-color: ${e.colors.black};\n --dark-grey-color: ${e.colors.darkGray};\n --grey-color: ${e.colors.gray};\n --light-grey-color: ${e.colors.lightGray};\n --white-color: ${e.colors.white};\n --green-color: ${e.colors.green};\n --blue-color: ${e.colors.blue};\n --cerise-color: ${e.colors.cerise};\n --red-color: ${e.colors.red};\n --orange-color: ${e.colors.orange};\n --yellow-color: ${e.colors.yellow};\n --light-red-color: ${e.colors.lightRed};\n --dark-purple-color: ${e.colors.darkPurple};\n\n --primary-color: ${e.colors.primary};\n --secondary-color: ${e.colors.secondary};\n\n --shadow-bg: rgba(${Object(he.c)(e.shadow.color)}, ${e.shadow.opacity});\n\n --rgb-black: ${Object(he.c)(e.colors.black)};\n --rgb-dark-grey: ${Object(he.c)(e.colors.darkGray)};\n --rgb-grey: ${Object(he.c)(e.colors.gray)};\n --rgb-light-grey: ${Object(he.c)(e.colors.lightGray)};\n --rgb-white: ${Object(he.c)(e.colors.white)};\n --rgb-green: ${Object(he.c)(e.colors.green)};\n --rgb-blue: ${Object(he.c)(e.colors.blue)};\n --rgb-cerise: ${Object(he.c)(e.colors.cerise)};\n --rgb-red: ${Object(he.c)(e.colors.red)};\n --rgb-orange: ${Object(he.c)(e.colors.orange)};\n --rgb-yellow: ${Object(he.c)(e.colors.yellow)};\n --rgb-light-red: ${Object(he.c)(e.colors.lightRed)};\n --rgb-dark-purple: ${Object(he.c)(e.colors.darkPurple)};\n\n --editor-font-family: ${e.editor.fontFamily.default};\n --editor-font-size: ${e.editor.fontSize};\n\n --theme-bg-color: ${e.colors.bg};\n --theme-off-bg-color: ${e.colors.offBg};\n --theme-font-color: ${e.colors.font};\n --theme-off-font-color: ${e.colors.offFont};\n --theme-border-color: ${e.colors.border};\n --theme-off-border-color: ${e.colors.offBorder};\n --header-bg-color: ${e.colors.headerBg||e.colors.offBg};\n\n --rgb-primary: ${Object(he.c)(e.colors.primary)};\n --rgb-secondary: ${Object(he.c)(e.colors.secondary)};\n\n --rgb-theme-bg: ${Object(he.c)(e.colors.bg)};\n --rgb-theme-off-bg: ${Object(he.c)(e.colors.offBg)};\n --rgb-theme-font: ${Object(he.c)(e.colors.font)};\n --rgb-theme-off-font: ${Object(he.c)(e.colors.offFont)};\n --rgb-theme-border: ${Object(he.c)(e.colors.border)};\n --rgb-theme-off-border: ${Object(he.c)(e.colors.offBorder)};\n\n --editor-comment-color: ${e.editor.colors.comment};\n --editor-string-color: ${e.editor.colors.string};\n --editor-number-color: ${e.editor.colors.number};\n --editor-variable-color: ${e.editor.colors.variable};\n --editor-attribute-color: ${e.editor.colors.attribute};\n --editor-keyword-color: ${e.editor.colors.keyword};\n --editor-atom-color: ${e.editor.colors.atom};\n --editor-property-color: ${e.editor.colors.property};\n --editor-punctuation-color: ${e.editor.colors.punctuation};\n --editor-cursor-color: ${e.editor.colors.cursor};\n --editor-def-color: ${e.editor.colors.definition};\n --editor-builtin-color: ${e.editor.colors.builtin};\n `}getDynamicClassName(e){return ue(!e||e.isSystem?`\n ${this.getCssString(Object(he.a)(this.themeRegistry.getTheme("light"),e))}\n @media (prefers-color-scheme: dark) {\n ${this.getCssString(Object(he.a)(this.themeRegistry.getTheme("dark"),e))}\n }\n `:this.getCssString(Object(he.a)(e)))}addHTMLClass(e){this.className&&document.documentElement.classList.remove(this.className),this.className=this.getDynamicClassName(e),document.documentElement.classList.add(this.className)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(R.ThemeRegistryService))},e.\u0275dir=r.Lb({type:e,selectors:[["","appTheme",""]],inputs:{appTheme:"appTheme"},features:[r.Cb]}),e})();var pe=n("cH1L"),fe=n("XNiG"),ge=n("1G5W"),me=n("mrSG"),be=n("nLfN"),ve=n("3UWI"),ye=n("nYR2"),we=n("JX91"),_e=(n("OySI"),n("/KA4"));const Oe=["moz","ms","webkit"],Ce=function(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const e=Oe.filter(e=>`${e}RequestAnimationFrame`in window)[0];return e?window[`${e}RequestAnimationFrame`]:function(){let e=0;return function(t){const n=(new Date).getTime(),i=Math.max(0,16-(n-e)),r=setTimeout(()=>{t(n+i)},i);return e=n+i,r}}()}();var Ee=n("8LU1"),Se=n("itXk"),Te=(n("GyhO"),n("HDdC")),xe=n("zP0r"),ke=n("Kj3r");let Ie=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)}}),e})();const De=new Set;let ze,je=(()=>{class e{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ae}matchMedia(e){return this._platform.WEBKIT&&function(e){if(!De.has(e))try{ze||(ze=document.createElement("style"),ze.setAttribute("type","text/css"),document.head.appendChild(ze)),ze.sheet&&(ze.sheet.insertRule(`@media ${e} {.fx-query-test{ }}`,0),De.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(be.a))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(be.a))},token:e,providedIn:"root"}),e})();function Ae(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}const Re=()=>{};let Ne=(()=>{class e{constructor(e,t){this.ngZone=e,this.rendererFactory2=t,this.resizeSource$=new fe.a,this.listeners=0,this.disposeHandle=Re,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}subscribe(){return this.registerListener(),this.resizeSource$.pipe(Object(ve.a)(16),Object(ye.a)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=Re)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(r.B),r.ac(r.H))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(r.B),Object(r.ac)(r.H))},token:e,providedIn:"root"}),e})();new Map;var Le=function(e){return e.xxl="xxl",e.xl="xl",e.lg="lg",e.md="md",e.sm="sm",e.xs="xs",e}({});const Me={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},Fe={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let Pe=(()=>{class e{constructor(e,t){this.resizeService=e,this.mediaMatcher=t,this.resizeService.subscribe().subscribe(()=>{})}subscribe(e,t){if(t){const t=()=>this.matchMedia(e,!0);return this.resizeService.subscribe().pipe(Object(c.a)(t),Object(we.a)(t()),Object(a.a)((e,t)=>e[0]===t[0]),Object(c.a)(e=>e[1]))}{const t=()=>this.matchMedia(e);return this.resizeService.subscribe().pipe(Object(c.a)(t),Object(we.a)(t()),Object(a.a)())}}matchMedia(e,t){let n=Le.md;const i={};return Object.keys(e).map(e=>{const t=e,r=this.mediaMatcher.matchMedia(Me[t]).matches;i[e]=r,r&&(n=t)}),t?[n,i]:n}}return e.\u0275fac=function(t){return new(t||e)(r.ac(Ne),r.ac(je))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(Ne),Object(r.ac)(je))},token:e,providedIn:"root"}),e})();var Ve=n("Q8cG"),Ge=n("FwiY");const Be=["*"];function We(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",2),r.dc("click",function(){r.wc(e);const t=r.gc();return t.setCollapsed(!t.nzCollapsed)}),r.Vb()}if(2&e){const e=r.gc();r.mc("matchBreakPoint",e.matchBreakPoint)("nzCollapsedWidth",e.nzCollapsedWidth)("nzCollapsed",e.nzCollapsed)("nzBreakpoint",e.nzBreakpoint)("nzReverseArrow",e.nzReverseArrow)("nzTrigger",e.nzTrigger)("nzZeroTrigger",e.nzZeroTrigger)("siderWidth",e.widthSetting)}}const $e=["nz-sider-trigger",""];function Ue(e,t){}function He(e,t){if(1&e&&(r.Ub(0),r.Ec(1,Ue,0,0,"ng-template",3),r.Tb()),2&e){const e=r.gc(),t=r.tc(5);r.Eb(1),r.mc("ngTemplateOutlet",e.nzZeroTrigger||t)}}function qe(e,t){}function Qe(e,t){if(1&e&&(r.Ub(0),r.Ec(1,qe,0,0,"ng-template",3),r.Tb()),2&e){const e=r.gc(),t=r.tc(3);r.Eb(1),r.mc("ngTemplateOutlet",e.nzTrigger||t)}}function Ke(e,t){if(1&e&&r.Rb(0,"i",5),2&e){const e=r.gc(2);r.mc("nzType",e.nzCollapsed?"right":"left")}}function Xe(e,t){if(1&e&&r.Rb(0,"i",5),2&e){const e=r.gc(2);r.mc("nzType",e.nzCollapsed?"left":"right")}}function Ye(e,t){if(1&e&&(r.Ec(0,Ke,1,1,"i",4),r.Ec(1,Xe,1,1,"i",4)),2&e){const e=r.gc();r.mc("ngIf",!e.nzReverseArrow),r.Eb(1),r.mc("ngIf",e.nzReverseArrow)}}function Je(e,t){1&e&&r.Rb(0,"i",6)}let Ze=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:Be,decls:1,vars:0,template:function(e,t){1&e&&(r.lc(),r.kc(0))},encapsulation:2,changeDetection:0}),e})(),et=(()=>{class e{constructor(e,t){this.elementRef=e,this.renderer=t,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:Be,decls:1,vars:0,template:function(e,t){1&e&&(r.lc(),r.kc(0))},encapsulation:2,changeDetection:0}),e})(),tt=(()=>{class e{constructor(e,t,n,i){this.platform=e,this.cdr=t,this.breakpointService=n,this.elementRef=i,this.destroy$=new fe.a,this.nzMenuDirective=null,this.nzCollapsedChange=new r.n,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null,this.elementRef.nativeElement.classList.add("ant-layout-sider")}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:Object(_e.p)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(e){e!==this.nzCollapsed&&(this.nzCollapsed=e,this.nzCollapsedChange.emit(e),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(Fe,!0).pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{const t=this.nzBreakpoint;t&&Object(_e.f)().subscribe(()=>{this.matchBreakPoint=!e[t],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(e){const{nzCollapsed:t,nzCollapsedWidth:n,nzWidth:i}=e;(t||n||i)&&this.updateStyleMap(),t&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(be.a),r.Qb(r.h),r.Qb(Pe),r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-sider"]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,Ve.c,1),2&e){let e;r.sc(e=r.ec())&&(t.nzMenuDirective=e.first)}},hostVars:16,hostBindings:function(e,t){2&e&&(r.Bc("flex",t.flexSetting)("max-width",t.widthSetting)("min-width",t.widthSetting)("width",t.widthSetting),r.Ib("ant-layout-sider-zero-width",t.nzCollapsed&&0===t.nzCollapsedWidth)("ant-layout-sider-light","light"===t.nzTheme)("ant-layout-sider-dark","dark"===t.nzTheme)("ant-layout-sider-collapsed",t.nzCollapsed))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[r.Cb],ngContentSelectors:Be,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(e,t){1&e&&(r.lc(),r.Wb(0,"div",0),r.kc(1),r.Vb(),r.Ec(2,We,1,8,"div",1)),2&e&&(r.Eb(2),r.mc("ngIf",t.nzCollapsible&&null!==t.nzTrigger))},directives:function(){return[o.o,it]},encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzReverseArrow",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzCollapsible",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzCollapsed",void 0),e})(),nt=(()=>{class e{constructor(e,t){this.elementRef=e,this.directionality=t,this.dir="ltr",this.destroy$=new fe.a,this.elementRef.nativeElement.classList.add("ant-layout")}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-layout"]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,tt,0),2&e){let e;r.sc(e=r.ec())&&(t.listOfNzSiderComponent=e)}},hostVars:4,hostBindings:function(e,t){2&e&&r.Ib("ant-layout-rtl","rtl"===t.dir)("ant-layout-has-sider",t.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:Be,decls:1,vars:0,template:function(e,t){1&e&&(r.lc(),r.kc(0))},encapsulation:2,changeDetection:0}),e})(),it=(()=>{class e{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(e,t){2&e&&(r.Bc("width",t.isNormalTrigger?t.siderWidth:null),r.Ib("ant-layout-sider-trigger",t.isNormalTrigger)("ant-layout-sider-zero-width-trigger",t.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",t.isZeroTrigger&&t.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",t.isZeroTrigger&&!t.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[r.Cb],attrs:$e,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(e,t){1&e&&(r.Ec(0,He,2,1,"ng-container",0),r.Ec(1,Qe,2,1,"ng-container",0),r.Ec(2,Ye,2,2,"ng-template",null,1,r.Fc),r.Ec(4,Je,1,0,"ng-template",null,2,r.Fc)),2&e&&(r.mc("ngIf",t.isZeroTrigger),r.Eb(1),r.mc("ngIf",t.isNormalTrigger))},directives:[o.o,o.t,Ge.a],encapsulation:2,changeDetection:0}),e})(),rt=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,Ge.b,Ie,be.b]]}),e})();var ot=n("rDax"),st=n("quSY"),at=n("+rOU"),ct=n("FtGj"),lt=n("vkgz");let ut=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Mb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),ht=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},providers:[ut]}),e})();class dt{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new fe.a,this._typeaheadSubscription=st.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new fe.a,this.change=new fe.a,e instanceof r.F&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(lt.a)(e=>this._pressedLetters.push(e)),Object(ke.a)(e),Object(p.a)(()=>this._pressedLetters.length>0),Object(c.a)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let n=1;n!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case ct.l:return void this.tabOut.next();case ct.c:if(this._vertical&&n){this.setNextItemActive();break}return;case ct.m:if(this._vertical&&n){this.setPreviousItemActive();break}return;case ct.j:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case ct.h:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case ct.g:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case ct.d:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(ct.p)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=ct.a&&t<=ct.n||t>=ct.o&&t<=ct.i)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof r.F?this._items.toArray():this._items}}class pt extends dt{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class ft extends dt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let gt=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(t){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){if(-1===bt(t))return!1;if(!this.isVisible(t))return!1}let i=e.nodeName.toLowerCase(),r=bt(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||mt(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return e.\u0275fac=function(t){return new(t||e)(r.ac(be.a))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(be.a))},token:e,providedIn:"root"}),e})();function mt(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function bt(e){if(!mt(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class vt{constructor(e,t,n,i,r=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let n=0;n=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Object(l.a)(1)).subscribe(e)}}let yt=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new vt(e,this._checker,this._ngZone,this._document,t)}}return e.\u0275fac=function(t){return new(t||e)(r.ac(gt),r.ac(r.B),r.ac(o.d))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(gt),Object(r.ac)(r.B),Object(r.ac)(o.d))},token:e,providedIn:"root"}),e})();"undefined"!=typeof Element&∈const wt=new r.s("cdk-focus-monitor-default-options"),_t=Object(be.e)({passive:!0,capture:!0});let Ot=(()=>{class e{constructor(e,t,n,i){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=e=>{if(!this._lastTouchTarget){const t=function(e){return 0===e.buttons}(e)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=e=>{!function(e){const t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e)?(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Ct(e),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)):this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard")},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=e=>{const t=Ct(e),n="focus"===e.type?this._onFocus:this._onBlur;for(let i=t;i;i=i.parentElement)n.call(this,e,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(e,t=!1){const n=Object(Ee.e)(e);if(!this._platform.isBrowser||1!==n.nodeType)return Object(v.a)(null);const i=Object(be.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;const o={checkChildren:t,subject:new fe.a,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=Object(Ee.e)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){const i=Object(Ee.e)(e);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([e,n])=>this._originChanged(e,t,n)):(this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_getFocusOrigin(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}_setClasses(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(e){const t=Ct(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);n&&(n.checkChildren||t===Ct(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,_t),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,_t)}),this._rootNodeFocusListenerCount.set(t,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const e=this._getDocument(),t=this._getWindow();e.addEventListener("keydown",this._documentKeydownListener,_t),e.addEventListener("mousedown",this._documentMousedownListener,_t),e.addEventListener("touchstart",this._documentTouchstartListener,_t),t.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const e=this._rootNodeFocusListenerCount.get(t);e>1?this._rootNodeFocusListenerCount.set(t,e-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_t),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_t),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){const e=this._getDocument(),t=this._getWindow();e.removeEventListener("keydown",this._documentKeydownListener,_t),e.removeEventListener("mousedown",this._documentMousedownListener,_t),e.removeEventListener("touchstart",this._documentTouchstartListener,_t),t.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((n,i)=>{(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}return e.\u0275fac=function(t){return new(t||e)(r.ac(r.B),r.ac(be.a),r.ac(o.d,8),r.ac(wt,8))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(r.B),Object(r.ac)(be.a),Object(r.ac)(o.d,8),Object(r.ac)(wt,8))},token:e,providedIn:"root"}),e})();function Ct(e){return e.composedPath?e.composedPath()[0]:e.target}let Et=(()=>{class e{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new r.n}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(e=>this.cdkFocusChange.emit(e))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(Ot))},e.\u0275dir=r.Lb({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e})(),St=(()=>{class e{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black");const t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}return e.\u0275fac=function(t){return new(t||e)(r.ac(be.a),r.ac(o.d))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(be.a),Object(r.ac)(o.d))},token:e,providedIn:"root"}),e})(),Tt=(()=>{class e{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)(r.ac(St))},imports:[[be.b,ht]]}),e})();const xt=["menu"],kt=["li"];function It(e,t){}const Dt=function(e){return{$implicit:e}};function zt(e,t){if(1&e){const e=r.Xb();r.Wb(0,"a",7),r.dc("click",function(t){r.wc(e);const n=r.gc().$implicit;return r.gc().onMenuItemSelect(n,t)})("mouseenter",function(t){r.wc(e);const n=r.gc().$implicit;return r.gc().onOpenSubMenu(n,t)}),r.Gc(1,"\n "),r.Ec(2,It,0,0,"ng-template",8),r.Gc(3,"\n "),r.Vb()}if(2&e){const e=r.gc().$implicit,t=r.gc();r.Ib("dropdown-item",t.useBootstrap4)("active",e.isActive&&t.isMenuItemEnabled(e))("disabled",t.useBootstrap4&&!t.isMenuItemEnabled(e))("hasSubMenu",!!e.subMenu),r.Eb(2),r.mc("ngTemplateOutlet",e.template)("ngTemplateOutletContext",r.pc(10,Dt,t.item))}}function jt(e,t){}function At(e,t){if(1&e){const e=r.Xb();r.Wb(0,"span",9),r.dc("click",function(t){return r.wc(e),r.gc(2).stopEvent(t)})("contextmenu",function(t){return r.wc(e),r.gc(2).stopEvent(t)}),r.Gc(1,"\n "),r.Ec(2,jt,0,0,"ng-template",8),r.Gc(3,"\n "),r.Vb()}if(2&e){const e=r.gc().$implicit,t=r.gc();r.Ib("dropdown-item",t.useBootstrap4)("disabled",t.useBootstrap4&&!t.isMenuItemEnabled(e)),r.Eb(2),r.mc("ngTemplateOutlet",e.template)("ngTemplateOutletContext",r.pc(6,Dt,t.item))}}function Rt(e,t){if(1&e&&(r.Wb(0,"li",null,4),r.Gc(2,"\n "),r.Ec(3,zt,4,12,"a",5),r.Gc(4,"\n\n "),r.Ec(5,At,4,8,"span",6),r.Gc(6,"\n "),r.Vb()),2&e){const e=t.$implicit,n=r.gc();r.Ib("disabled",!n.isMenuItemEnabled(e))("divider",e.divider)("dropdown-divider",n.useBootstrap4&&e.divider)("active",e.isActive&&n.isMenuItemEnabled(e)),r.Fb("role",e.divider?"separator":void 0),r.Eb(3),r.mc("ngIf",!e.divider&&!e.passive),r.Eb(2),r.mc("ngIf",!e.divider&&e.passive)}}let Nt=(()=>{class e{constructor(e,t){this.template=e,this.elementRef=t,this.divider=!1,this.enabled=!0,this.passive=!1,this.visible=!0,this.execute=new r.n,this.isActive=!1}get disabled(){return this.passive||this.divider||!this.evaluateIfFunction(this.enabled,this.currentItem)}evaluateIfFunction(e,t){return e instanceof Function?e(t):e}setActiveStyles(){this.isActive=!0}setInactiveStyles(){this.isActive=!1}triggerExecute(e,t){this.evaluateIfFunction(this.enabled,e)&&this.execute.emit({event:t,item:e})}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.O),r.Qb(r.l))},e.\u0275dir=r.Lb({type:e,selectors:[["","contextMenuItem",""]],inputs:{divider:"divider",enabled:"enabled",passive:"passive",visible:"visible",subMenu:"subMenu"},outputs:{execute:"execute"}}),e})();const Lt=new r.s("CONTEXT_MENU_OPTIONS");let Mt=(()=>{class e{constructor(e,t,n){this.changeDetector=e,this.elementRef=t,this.options=n,this.menuItems=[],this.isLeaf=!1,this.execute=new r.n,this.openSubMenu=new r.n,this.closeLeafMenu=new r.n,this.closeAllMenus=new r.n,this.autoFocus=!1,this.useBootstrap4=!1,this.subscription=new st.a,n&&(this.autoFocus=n.autoFocus,this.useBootstrap4=n.useBootstrap4)}ngOnInit(){this.menuItems.forEach(e=>{e.currentItem=this.item,this.subscription.add(e.execute.subscribe(t=>this.execute.emit(Object.assign({},t,{menuItem:e}))))});const e=new r.F;e.reset(this.menuItems),this._keyManager=new pt(e).withWrap()}ngAfterViewInit(){this.autoFocus&&setTimeout(()=>this.focus()),this.overlay.updatePosition()}ngOnDestroy(){this.subscription.unsubscribe()}focus(){this.autoFocus&&this.menuElement.nativeElement.focus()}stopEvent(e){e.stopPropagation()}isMenuItemEnabled(e){return this.evaluateIfFunction(e&&e.enabled)}isMenuItemVisible(e){return this.evaluateIfFunction(e&&e.visible)}evaluateIfFunction(e){return e instanceof Function?e(this.item):e}isDisabled(e){return e.enabled&&!e.enabled(this.item)}onKeyEvent(e){this.isLeaf&&this._keyManager.onKeydown(e)}keyboardOpenSubMenu(e){if(!this.isLeaf)return;this.cancelEvent(e);const t=this.menuItems[this._keyManager.activeItemIndex];t&&this.onOpenSubMenu(t)}keyboardMenuItemSelect(e){if(!this.isLeaf)return;this.cancelEvent(e);const t=this.menuItems[this._keyManager.activeItemIndex];t&&this.onMenuItemSelect(t,e)}onCloseLeafMenu(e){this.isLeaf&&(this.cancelEvent(e),this.closeLeafMenu.emit({exceptRootMenu:37===e.keyCode,event:e}))}closeMenu(e){"click"===e.type&&2===e.button||this.closeAllMenus.emit({event:e})}onOpenSubMenu(e,t){const n=this.menuItemElements.toArray()[this._keyManager.activeItemIndex];this.openSubMenu.emit({anchorElement:n&&n.nativeElement,contextMenu:e.subMenu,event:t,item:this.item,parentContextMenu:this})}onMenuItemSelect(e,t){t.preventDefault(),t.stopPropagation(),this.onOpenSubMenu(e,t),e.subMenu||e.triggerExecute(this.item,t)}cancelEvent(e){if(!e)return;const t=e.target;["INPUT","TEXTAREA","SELECT"].indexOf(t.tagName)>-1||t.isContentEditable||(e.preventDefault(),e.stopPropagation())}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(r.l),r.Qb(Lt,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["context-menu-content"]],viewQuery:function(e,t){if(1&e&&(r.Kc(xt,3),r.Kc(kt,1)),2&e){let e;r.sc(e=r.ec())&&(t.menuElement=e.first),r.sc(e=r.ec())&&(t.menuItemElements=e)}},hostBindings:function(e,t){1&e&&r.dc("keydown.ArrowDown",function(e){return t.onKeyEvent(e)},!1,r.vc)("keydown.ArrowUp",function(e){return t.onKeyEvent(e)},!1,r.vc)("keydown.ArrowRight",function(e){return t.keyboardOpenSubMenu(e)},!1,r.vc)("keydown.Enter",function(e){return t.keyboardMenuItemSelect(e)},!1,r.vc)("keydown.Space",function(e){return t.keyboardMenuItemSelect(e)},!1,r.vc)("keydown.Escape",function(e){return t.onCloseLeafMenu(e)},!1,r.vc)("keydown.ArrowLeft",function(e){return t.onCloseLeafMenu(e)},!1,r.vc)("click",function(e){return t.closeMenu(e)},!1,r.uc)("contextmenu",function(e){return t.closeMenu(e)},!1,r.uc)},inputs:{menuItems:"menuItems",isLeaf:"isLeaf",item:"item",event:"event",parentContextMenu:"parentContextMenu",menuClass:"menuClass",overlay:"overlay"},outputs:{execute:"execute",openSubMenu:"openSubMenu",closeLeafMenu:"closeLeafMenu",closeAllMenus:"closeAllMenus"},decls:10,vars:2,consts:[["tabindex","0",1,"dropdown","open","show","ngx-contextmenu",3,"ngClass"],["tabindex","0",1,"dropdown-menu","show",2,"position","static","float","none"],["menu",""],[3,"disabled","divider","dropdown-divider","active",4,"ngFor","ngForOf"],["li",""],["href","",3,"dropdown-item","active","disabled","hasSubMenu","click","mouseenter",4,"ngIf"],["class","passive",3,"dropdown-item","disabled","click","contextmenu",4,"ngIf"],["href","",3,"click","mouseenter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"passive",3,"click","contextmenu"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0),r.Gc(2,"\n "),r.Wb(3,"ul",1,2),r.Gc(5,"\n "),r.Ec(6,Rt,7,11,"li",3),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Vb(),r.Gc(9,"\n ")),2&e&&(r.Eb(1),r.mc("ngClass",t.menuClass),r.Eb(5),r.mc("ngForOf",t.menuItems))},directives:[o.l,o.n,o.o,o.t],styles:[".passive[_ngcontent-%COMP%] {\n display: block;\n padding: 3px 20px;\n clear: both;\n font-weight: normal;\n line-height: @line-height-base;\n white-space: nowrap;\n }\n .hasSubMenu[_ngcontent-%COMP%]:before {\n content: '\u25b6';\n float: right;\n }"]}),e})(),Ft=(()=>{class e{constructor(e,t){this.overlay=e,this.scrollStrategy=t,this.isDestroyingLeafMenu=!1,this.show=new fe.a,this.triggerClose=new fe.a,this.close=new fe.a,this.overlays=[],this.fakeElement={getBoundingClientRect:()=>({bottom:0,height:0,left:0,right:0,top:0,width:0})}}openContextMenu(e){const{anchorElement:t,event:n,parentContextMenu:i}=e;if(i){const o=this.overlay.position().connectedTo(new r.l(n?n.target:t),{originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}).withFallbackPosition({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),s=this.overlay.create({positionStrategy:o,panelClass:"ngx-contextmenu",scrollStrategy:this.scrollStrategy.close()});this.destroySubMenus(i),this.overlays=this.overlays.concat(s),this.attachContextMenu(s,e)}else{const i=n;this.fakeElement.getBoundingClientRect=()=>({bottom:i.clientY,height:0,left:i.clientX,right:i.clientX,top:i.clientY,width:0}),this.closeAllContextMenus({eventType:"cancel",event:n});const o=this.overlay.position().connectedTo(new r.l(t||this.fakeElement),{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}).withFallbackPosition({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}).withFallbackPosition({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"});this.overlays=[this.overlay.create({positionStrategy:o,panelClass:"ngx-contextmenu",scrollStrategy:this.scrollStrategy.close()})],this.attachContextMenu(this.overlays[0],e)}}attachContextMenu(e,t){const{event:n,item:i,menuItems:r,menuClass:o}=t,s=e.attach(new at.c(Mt));s.instance.event=n,s.instance.item=i,s.instance.menuItems=r,s.instance.overlay=e,s.instance.isLeaf=!0,s.instance.menuClass=o,e.contextMenu=s.instance;const a=new st.a;a.add(s.instance.execute.asObservable().subscribe(e=>this.closeAllContextMenus(Object.assign({eventType:"execute"},e)))),a.add(s.instance.closeAllMenus.asObservable().subscribe(e=>this.closeAllContextMenus(Object.assign({eventType:"cancel"},e)))),a.add(s.instance.closeLeafMenu.asObservable().subscribe(e=>this.destroyLeafMenu(e))),a.add(s.instance.openSubMenu.asObservable().subscribe(e=>{this.destroySubMenus(s.instance),e.contextMenu?(s.instance.isLeaf=!1,this.show.next(e)):s.instance.isLeaf=!0})),s.onDestroy(()=>{r.forEach(e=>e.isActive=!1),a.unsubscribe()}),s.changeDetectorRef.detectChanges()}closeAllContextMenus(e){this.overlays&&(this.close.next(e),this.overlays.forEach((e,t)=>{e.detach(),e.dispose()})),this.overlays=[]}getLastAttachedOverlay(){let e=this.overlays[this.overlays.length-1];for(;this.overlays.length>1&&e&&!e.hasAttached();)e.detach(),e.dispose(),this.overlays=this.overlays.slice(0,-1),e=this.overlays[this.overlays.length-1];return e}destroyLeafMenu({exceptRootMenu:e,event:t}={}){this.isDestroyingLeafMenu||(this.isDestroyingLeafMenu=!0,setTimeout(()=>{const n=this.getLastAttachedOverlay();this.overlays.length>1&&n&&(n.detach(),n.dispose()),!e&&this.overlays.length>0&&n&&(this.close.next({eventType:"cancel",event:t}),n.detach(),n.dispose());const i=this.getLastAttachedOverlay();i&&(i.contextMenu.isLeaf=!0),this.isDestroyingLeafMenu=!1}))}destroySubMenus(e){const t=this.overlays.indexOf(e.overlay);this.overlays.slice(t+1).forEach(e=>{e.detach(),e.dispose()})}isLeafMenu(e){const t=this.getLastAttachedOverlay();return e.overlay===t}}return e.\u0275fac=function(t){return new(t||e)(r.ac(ot.e),r.ac(ot.j))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),Pt=(()=>{class e{constructor(e,t,n,i){this._contextMenuService=e,this.changeDetector=t,this.elementRef=n,this.options=i,this.menuClass="",this.autoFocus=!1,this.useBootstrap4=!1,this.disabled=!1,this.close=new r.n,this.open=new r.n,this.visibleMenuItems=[],this.links=[],this.subscription=new st.a,i&&(this.autoFocus=i.autoFocus,this.useBootstrap4=i.useBootstrap4),this.subscription.add(e.show.subscribe(e=>{this.onMenuEvent(e)}))}ngOnDestroy(){this.subscription.unsubscribe()}onMenuEvent(e){if(this.disabled)return;const{contextMenu:t,event:n,item:i}=e;t&&t!==this||(this.event=n,this.item=i,this.setVisibleMenuItems(),this._contextMenuService.openContextMenu(Object.assign({},e,{menuItems:this.visibleMenuItems,menuClass:this.menuClass})),this._contextMenuService.close.asObservable().pipe(Object(f.a)()).subscribe(e=>this.close.emit(e)),this.open.next(e))}isMenuItemVisible(e){return this.evaluateIfFunction(e.visible)}setVisibleMenuItems(){this.visibleMenuItems=this.menuItems.filter(e=>this.isMenuItemVisible(e))}evaluateIfFunction(e){return e instanceof Function?e(this.item):e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Ft),r.Qb(r.h),r.Qb(r.l),r.Qb(Lt,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["context-menu"]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,Nt,0),2&e){let e;r.sc(e=r.ec())&&(t.menuItems=e)}},viewQuery:function(e,t){if(1&e&&r.Kc(xt,1),2&e){let e;r.sc(e=r.ec())&&(t.menuElement=e.first)}},inputs:{menuClass:"menuClass",autoFocus:"autoFocus",useBootstrap4:"useBootstrap4",disabled:"disabled"},outputs:{close:"close",open:"open"},decls:1,vars:0,template:function(e,t){1&e&&r.Gc(0," ")},styles:["\n .cdk-overlay-container {\n position: fixed;\n z-index: 1000;\n pointer-events: none;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n .ngx-contextmenu.cdk-overlay-pane {\n position: absolute;\n pointer-events: auto;\n box-sizing: border-box;\n }\n "],encapsulation:2}),e})(),Vt=(()=>{class e{constructor(e){this.contextMenuService=e}onContextMenu(e){this.contextMenu.disabled||(this.contextMenuService.show.next({contextMenu:this.contextMenu,event:e,item:this.contextMenuSubject}),e.preventDefault(),e.stopPropagation())}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Ft))},e.\u0275dir=r.Lb({type:e,selectors:[["","contextMenu",""]],hostBindings:function(e,t){1&e&&r.dc("contextmenu",function(e){return t.onContextMenu(e)})},inputs:{contextMenuSubject:"contextMenuSubject",contextMenu:"contextMenu"}}),e})(),Gt=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[Ft,{provide:Lt,useValue:t},{provide:ot.g,useClass:ot.d}]}}}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c,ot.h]]}),e})();function Bt(e){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(){return($t=Object.assign||function(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qt(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Qt=qt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Kt=qt(/Edge/i),Xt=qt(/firefox/i),Yt=qt(/safari/i)&&!qt(/chrome/i)&&!qt(/android/i),Jt=qt(/iP(ad|od|hone)/i),Zt=qt(/chrome/i)&&qt(/android/i),en={capture:!1,passive:!1};function tn(e,t,n){e.addEventListener(t,n,!Qt&&en)}function nn(e,t,n){e.removeEventListener(t,n,!Qt&&en)}function rn(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function on(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function sn(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&rn(e,t):rn(e,t))||i&&e===n)return e;if(e===n)break}while(e=on(e))}return null}var an,cn=/\s+/g;function ln(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(cn," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(cn," ")}}function un(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function hn(e,t){var n="";if("string"==typeof e)n=e;else do{var i=un(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function dn(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r=o:r<=o))return i;if(i===pn())break;i=wn(i,!1)}return!1}function mn(e,t,n){for(var i=0,r=0,o=e.children;r2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=Ht(n,["evt"]);kn.pluginEvent.bind(_i)(e,t,Ut({dragEl:zn,parentEl:jn,ghostEl:An,rootEl:Rn,nextEl:Nn,lastDownEl:Ln,cloneEl:Mn,cloneHidden:Fn,dragStarted:Yn,putSortable:$n,activeSortable:_i.active,originalEvent:i,oldIndex:Pn,oldDraggableIndex:Gn,newIndex:Vn,newDraggableIndex:Bn,hideGhostForTarget:bi,unhideGhostForTarget:vi,cloneNowHidden:function(){Fn=!0},cloneNowShown:function(){Fn=!1},dispatchSortableEvent:function(e){Dn({sortable:t,name:e,originalEvent:i})}},r))};function Dn(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,h=e.newDraggableIndex,d=e.originalEvent,p=e.putSortable,f=e.extraEventProperties;if(t=t||n&&n[Sn]){var g,m=t.options,b="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||Qt||Kt?(g=document.createEvent("Event")).initEvent(i,!0,!0):g=new CustomEvent(i,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=a||n,g.item=r||n,g.clone=o,g.oldIndex=c,g.newIndex=l,g.oldDraggableIndex=u,g.newDraggableIndex=h,g.originalEvent=d,g.pullMode=p?p.lastPutMode:void 0;var v=Ut({},f,kn.getEventProperties(i,t));for(var y in v)g[y]=v[y];n&&n.dispatchEvent(g),m[b]&&m[b].call(t,g)}}(Ut({putSortable:$n,cloneEl:Mn,targetEl:zn,rootEl:Rn,oldIndex:Pn,oldDraggableIndex:Gn,newIndex:Vn,newDraggableIndex:Bn},e))}var zn,jn,An,Rn,Nn,Ln,Mn,Fn,Pn,Vn,Gn,Bn,Wn,$n,Un,Hn,qn,Qn,Kn,Xn,Yn,Jn,Zn,ei,ti,ni=!1,ii=!1,ri=[],oi=!1,si=!1,ai=[],ci=!1,li=[],ui="undefined"!=typeof document,hi=Jt,di=Kt||Qt?"cssFloat":"float",pi=ui&&!Zt&&!Jt&&"draggable"in document.createElement("div"),fi=function(){if(ui){if(Qt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),gi=function(e,t){var n=un(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=mn(e,0,t),o=mn(e,1,t),s=r&&un(r),a=o&&un(o),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+fn(r).width,l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+fn(o).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":r&&s.float&&"none"!==s.float?!o||"both"!==a.clear&&a.clear!==("left"===s.float?"left":"right")?"horizontal":"vertical":r&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||c>=i&&"none"===n[di]||o&&"none"===n[di]&&c+l>i)?"vertical":"horizontal"},mi=function(e){function t(e,n){return function(i,r,o,s){if(null==e&&(n||i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,r,o,s),n)(i,r,o,s);var a=(n?i:r).options.group.name;return!0===e||"string"==typeof e&&e===a||e.join&&e.indexOf(a)>-1}}var n={},i=e.group;i&&"object"==Bt(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},bi=function(){!fi&&An&&un(An,"display","none")},vi=function(){!fi&&An&&un(An,"display","")};ui&&document.addEventListener("click",function(e){if(ii)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ii=!1,!1},!0);var yi=function(e){if(zn){var t=(r=(e=e.touches?e.touches[0]:e).clientX,o=e.clientY,ri.some(function(e){if(!bn(e)){var t=fn(e),n=e[Sn].options.emptyInsertThreshold;return n&&r>=t.left-n&&r<=t.right+n&&o>=t.top-n&&o<=t.bottom+n?s=e:void 0}}),s);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Sn]._onDragOver(n)}}var r,o,s},wi=function(e){zn&&zn.parentNode[Sn]._isOutsideThisEl(e.target)};function _i(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=$t({},t),e[Sn]=this;var n,i,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return gi(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==_i.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in kn.initializePlugins(this,e,r),r)!(o in t)&&(t[o]=r[o]);for(var s in mi(t),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!t.forceFallback&&pi,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?tn(e,"pointerdown",this._onTapStart):(tn(e,"mousedown",this._onTapStart),tn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(tn(e,"dragover",this),tn(e,"dragenter",this)),ri.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),$t(this,(i=[],{captureAnimationState:function(){i=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==un(e,"display")&&e!==_i.ghost){i.push({target:e,rect:fn(e)});var t=Ut({},i[i.length-1].rect);if(e.thisAnimationDuration){var n=hn(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}})},addAnimationState:function(e){i.push(e)},removeAnimationState:function(e){i.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(i,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,o=0;i.forEach(function(e){var n=0,i=e.target,s=i.fromRect,a=fn(i),c=i.prevFromRect,l=i.prevToRect,u=e.rect,h=hn(i,!0);h&&(a.top-=h.f,a.left-=h.e),i.toRect=a,i.thisAnimationDuration&&_n(c,a)&&!_n(s,a)&&(u.top-a.top)/(u.left-a.left)==(s.top-a.top)/(s.left-a.left)&&(n=function(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}(u,c,l,t.options)),_n(a,s)||(i.prevFromRect=s,i.prevToRect=a,n||(n=t.options.animation),t.animate(i,u,a,n)),n&&(r=!0,o=Math.max(o,n),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout(function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null},n),i.thisAnimationDuration=n)}),clearTimeout(n),r?n=setTimeout(function(){"function"==typeof e&&e()},o):"function"==typeof e&&e(),i=[]},animate:function(e,t,n,i){if(i){un(e,"transition",""),un(e,"transform","");var r=hn(this.el),o=(t.left-n.left)/(r&&r.a||1),s=(t.top-n.top)/(r&&r.d||1);e.animatingX=!!o,e.animatingY=!!s,un(e,"transform","translate3d("+o+"px,"+s+"px,0)"),un(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),un(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){un(e,"transition",""),un(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}))}function Oi(e,t,n,i,r,o,s,a){var c,l,u=e[Sn],h=u.options.onMove;return!window.CustomEvent||Qt||Kt?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=i,c.related=r||t,c.relatedRect=o||fn(t),c.willInsertAfter=a,c.originalEvent=s,e.dispatchEvent(c),h&&(l=h.call(u,c,s)),l}function Ci(e){e.draggable=!1}function Ei(){ci=!1}function Si(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function Ti(e){return setTimeout(e,0)}function xi(e){return clearTimeout(e)}_i.prototype={constructor:_i,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Jn=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,zn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(s||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,l=i.filter;if(function(e){li.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&li.push(i)}}(n),!zn&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||i.disabled||c.isContentEditable||(a=sn(a,i.draggable,n,!1))&&a.animated||Ln===a)){if(Pn=vn(a),Gn=vn(a,i.draggable),"function"==typeof l){if(l.call(this,e,a,this))return Dn({sortable:t,rootEl:c,name:"filter",targetEl:a,toEl:n,fromEl:n}),In("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some(function(i){if(i=sn(c,i.trim(),n,!1))return Dn({sortable:t,rootEl:i,name:"filter",targetEl:a,fromEl:n,toEl:n}),In("filter",t,{evt:e}),!0})))return void(r&&e.cancelable&&e.preventDefault());i.handle&&!sn(c,i.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,s=r.options,a=o.ownerDocument;if(n&&!zn&&n.parentNode===o){var c=fn(n);if(Rn=o,jn=(zn=n).parentNode,Nn=zn.nextSibling,Ln=n,Wn=s.group,_i.dragged=zn,Kn=(Un={target:zn,clientX:(t||e).clientX,clientY:(t||e).clientY}).clientX-c.left,Xn=Un.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,zn.style["will-change"]="all",i=function(){In("delayEnded",r,{evt:e}),_i.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Xt&&r.nativeDraggable&&(zn.draggable=!0),r._triggerDragStart(e,t),Dn({sortable:r,name:"choose",originalEvent:e}),ln(zn,s.chosenClass,!0))},s.ignore.split(",").forEach(function(e){dn(zn,e.trim(),Ci)}),tn(a,"dragover",yi),tn(a,"mousemove",yi),tn(a,"touchmove",yi),tn(a,"mouseup",r._onDrop),tn(a,"touchend",r._onDrop),tn(a,"touchcancel",r._onDrop),Xt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,zn.draggable=!0),In("delayStart",this,{evt:e}),!s.delay||s.delayOnTouchOnly&&!t||this.nativeDraggable&&(Kt||Qt))i();else{if(_i.eventCanceled)return void this._onDrop();tn(a,"mouseup",r._disableDelayedDrag),tn(a,"touchend",r._disableDelayedDrag),tn(a,"touchcancel",r._disableDelayedDrag),tn(a,"mousemove",r._delayedDragTouchMoveHandler),tn(a,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&tn(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,s.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){zn&&Ci(zn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;nn(e,"mouseup",this._disableDelayedDrag),nn(e,"touchend",this._disableDelayedDrag),nn(e,"touchcancel",this._disableDelayedDrag),nn(e,"mousemove",this._delayedDragTouchMoveHandler),nn(e,"touchmove",this._delayedDragTouchMoveHandler),nn(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?tn(document,this.options.supportPointer?"pointermove":t?"touchmove":"mousemove",this._onTouchMove):(tn(zn,"dragend",this),tn(Rn,"dragstart",this._onDragStart));try{document.selection?Ti(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(ni=!1,Rn&&zn){In("dragStarted",this,{evt:t}),this.nativeDraggable&&tn(document,"dragover",wi);var n=this.options;!e&&ln(zn,n.dragClass,!1),ln(zn,n.ghostClass,!0),_i.active=this,e&&this._appendGhost(),Dn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Hn){this._lastX=Hn.clientX,this._lastY=Hn.clientY,bi();for(var e=document.elementFromPoint(Hn.clientX,Hn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Hn.clientX,Hn.clientY))!==t;)t=e;if(zn.parentNode[Sn]._isOutsideThisEl(e),t)do{if(t[Sn]&&t[Sn]._onDragOver({clientX:Hn.clientX,clientY:Hn.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);vi()}},_onTouchMove:function(e){if(Un){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=An&&hn(An,!0),s=An&&o&&o.a,a=An&&o&&o.d,c=hi&&ti&&yn(ti),l=(r.clientX-Un.clientX+i.x)/(s||1)+(c?c[0]-ai[0]:0)/(s||1),u=(r.clientY-Un.clientY+i.y)/(a||1)+(c?c[1]-ai[1]:0)/(a||1);if(!_i.active&&!ni){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,r,this)&&!g.animated){if(g===zn)return D(!1);if(g&&o===e.target&&(s=g),s&&(n=fn(s)),!1!==Oi(Rn,o,zn,t,s,n,e,!!s))return I(),o.appendChild(zn),jn=o,z(),D(!0)}else if(s.parentNode===o){n=fn(s);var m,b,v,y=zn.parentNode!==o,w=!function(e,t,n){var i=n?e.left:e.top,r=n?t.left:t.top;return i===r||(n?e.right:e.bottom)===(n?t.right:t.bottom)||i+(n?e.width:e.height)/2===r+(n?t.width:t.height)/2}(zn.animated&&zn.toRect||t,s.animated&&s.toRect||n,r),_=r?"top":"left",O=gn(s,"top","top")||gn(zn,"top","top"),C=O?O.scrollTop:void 0;if(Jn!==s&&(b=n[_],oi=!1,si=!w&&a.invertSwap||y),0!==(m=function(e,t,n,i,r,o,s,a){var c=i?e.clientY:e.clientX,l=i?n.height:n.width,u=i?n.top:n.left,h=i?n.bottom:n.right,d=!1;if(!s)if(a&&eiu+l*o/2:ch-ei)return-Zn}else if(c>u+l*(1-r)/2&&ch-l*o/2)?c>u+l/2?1:-1:0}(e,s,n,r,w?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,si,Jn===s))){var E=vn(zn);do{v=jn.children[E-=m]}while(v&&("none"===un(v,"display")||v===An))}if(0===m||v===s)return D(!1);Jn=s,Zn=m;var S=s.nextElementSibling,T=!1,x=Oi(Rn,o,zn,t,s,n,e,T=1===m);if(!1!==x)return 1!==x&&-1!==x||(T=1===x),ci=!0,setTimeout(Ei,30),I(),T&&!S?o.appendChild(zn):s.parentNode.insertBefore(zn,T?S:s),O&&Cn(O,0,C-O.scrollTop),jn=zn.parentNode,void 0===b||si||(ei=Math.abs(b-fn(s)[_])),z(),D(!0)}if(o.contains(zn))return D(!1)}return!1}function k(a,c){In(a,p,Ut({evt:e,isOwner:u,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:h,fromSortable:d,target:s,completed:D,onMove:function(n,i){return Oi(Rn,o,zn,t,n,fn(n),e,i)},changed:z},c))}function I(){k("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function D(t){return k("dragOverCompleted",{insertion:t}),t&&(u?l._hideClone():l._showClone(p),p!==d&&(ln(zn,$n?$n.options.ghostClass:l.options.ghostClass,!1),ln(zn,a.ghostClass,!0)),$n!==p&&p!==_i.active?$n=p:p===_i.active&&$n&&($n=null),d===p&&(p._ignoreWhileAnimating=s),p.animateAll(function(){k("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(s===zn&&!zn.animated||s===o&&!s.animated)&&(Jn=null),a.dragoverBubble||e.rootEl||s===document||(zn.parentNode[Sn]._isOutsideThisEl(e.target),!t&&yi(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function z(){Vn=vn(zn),Bn=vn(zn,a.draggable),Dn({sortable:p,name:"change",toEl:o,newIndex:Vn,newDraggableIndex:Bn,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){nn(document,"mousemove",this._onTouchMove),nn(document,"touchmove",this._onTouchMove),nn(document,"pointermove",this._onTouchMove),nn(document,"dragover",yi),nn(document,"mousemove",yi),nn(document,"touchmove",yi)},_offUpEvents:function(){var e=this.el.ownerDocument;nn(e,"mouseup",this._onDrop),nn(e,"touchend",this._onDrop),nn(e,"pointerup",this._onDrop),nn(e,"touchcancel",this._onDrop),nn(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Vn=vn(zn),Bn=vn(zn,n.draggable),In("drop",this,{evt:e}),jn=zn&&zn.parentNode,Vn=vn(zn),Bn=vn(zn,n.draggable),_i.eventCanceled||(ni=!1,si=!1,oi=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xi(this.cloneId),xi(this._dragStartId),this.nativeDraggable&&(nn(document,"drop",this),nn(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Yt&&un(document.body,"user-select",""),un(zn,"transform",""),e&&(Yn&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),An&&An.parentNode&&An.parentNode.removeChild(An),(Rn===jn||$n&&"clone"!==$n.lastPutMode)&&Mn&&Mn.parentNode&&Mn.parentNode.removeChild(Mn),zn&&(this.nativeDraggable&&nn(zn,"dragend",this),Ci(zn),zn.style["will-change"]="",Yn&&!ni&&ln(zn,$n?$n.options.ghostClass:this.options.ghostClass,!1),ln(zn,this.options.chosenClass,!1),Dn({sortable:this,name:"unchoose",toEl:jn,newIndex:null,newDraggableIndex:null,originalEvent:e}),Rn!==jn?(Vn>=0&&(Dn({rootEl:jn,name:"add",toEl:jn,fromEl:Rn,originalEvent:e}),Dn({sortable:this,name:"remove",toEl:jn,originalEvent:e}),Dn({rootEl:jn,name:"sort",toEl:jn,fromEl:Rn,originalEvent:e}),Dn({sortable:this,name:"sort",toEl:jn,originalEvent:e})),$n&&$n.save()):Vn!==Pn&&Vn>=0&&(Dn({sortable:this,name:"update",toEl:jn,originalEvent:e}),Dn({sortable:this,name:"sort",toEl:jn,originalEvent:e})),_i.active&&(null!=Vn&&-1!==Vn||(Vn=Pn,Bn=Gn),Dn({sortable:this,name:"end",toEl:jn,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){In("nulling",this),Rn=zn=jn=An=Nn=Mn=Ln=Fn=Un=Hn=Yn=Vn=Bn=Pn=Gn=Jn=Zn=$n=Wn=_i.dragged=_i.ghost=_i.clone=_i.active=null,li.forEach(function(e){e.checked=!0}),li.length=qn=Qn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":zn&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;inew $i(e))}injectIntoEvery(e,t){this.bindings.forEach((n,i)=>n.insert(e,t[i]))}getFromEvery(e){return this.bindings.map(t=>t.get(e))}extractFromEvery(e){return this.bindings.map(t=>t.remove(e))}get provided(){return!!this.bindings.length}}let Hi=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Mb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),qi=(()=>{class e{constructor(e,t,n,i,o){this.globalConfig=e,this.service=t,this.element=n,this.zone=i,this.renderer=o,this.sortablejsInit=new r.n}ngOnInit(){Bi&&Bi.create&&this.create()}ngOnChanges(e){const t=e.sortablejsOptions;if(t&&!t.isFirstChange()){const e=t.previousValue,n=t.currentValue;Object.keys(n).forEach(t=>{n[t]!==e[t]&&this.sortableInstance.option(t,this.options[t])})}}ngOnDestroy(){this.sortableInstance&&this.sortableInstance.destroy()}create(){const e=this.sortablejsContainer?this.element.nativeElement.querySelector(this.sortablejsContainer):this.element.nativeElement;setTimeout(()=>{this.sortableInstance=Bi.create(e,this.options),this.sortablejsInit.emit(this.sortableInstance)},0)}getBindings(){return this.sortablejs?this.sortablejs instanceof Ui?this.sortablejs:new Ui([this.sortablejs]):new Ui([])}get options(){return Object.assign(Object.assign({},this.optionsWithoutEvents),this.overridenOptions)}get optionsWithoutEvents(){return Object.assign(Object.assign({},this.globalConfig||{}),this.sortablejsOptions||{})}proxyEvent(e,...t){this.zone.run(()=>{this.optionsWithoutEvents&&this.optionsWithoutEvents[e]&&this.optionsWithoutEvents[e](...t)})}get isCloning(){return"clone"===this.sortableInstance.options.group.checkPull(this.sortableInstance,this.sortableInstance)}clone(e){return(this.sortablejsCloneFunction||(e=>e))(e)}get overridenOptions(){return{onAdd:e=>{this.service.transfer=t=>{this.getBindings().injectIntoEvery(e.newIndex,t),this.proxyEvent("onAdd",e)},this.proxyEvent("onAddOriginal",e)},onRemove:e=>{const t=this.getBindings();t.provided&&(this.isCloning?(this.service.transfer(t.getFromEvery(e.oldIndex).map(e=>this.clone(e))),this.renderer.removeChild(e.item.parentNode,e.item),this.renderer.insertBefore(e.clone.parentNode,e.item,e.clone),this.renderer.removeChild(e.clone.parentNode,e.clone)):this.service.transfer(t.extractFromEvery(e.oldIndex)),this.service.transfer=null),this.proxyEvent("onRemove",e)},onUpdate:e=>{const t=this.getBindings(),n=(e=>e.hasOwnProperty("newDraggableIndex")&&e.hasOwnProperty("oldDraggableIndex")?{new:e.newDraggableIndex,old:e.oldDraggableIndex}:{new:e.newIndex,old:e.oldIndex})(e);t.injectIntoEvery(n.new,t.extractFromEvery(n.old)),this.proxyEvent("onUpdate",e)}}}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Wi,8),r.Qb(Hi),r.Qb(r.l),r.Qb(r.B),r.Qb(r.G))},e.\u0275dir=r.Lb({type:e,selectors:[["","sortablejs",""]],inputs:{sortablejs:"sortablejs",sortablejsContainer:"sortablejsContainer",sortablejsOptions:"sortablejsOptions",sortablejsCloneFunction:"sortablejsCloneFunction"},outputs:{sortablejsInit:"sortablejsInit"},features:[r.Cb]}),e})(),Qi=(()=>{class e{static forRoot(t){return{ngModule:e,providers:[{provide:Wi,useValue:t}]}}}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)}}),e})();var Ki=n("C2AL"),Xi=n("fpqv"),Yi=n("GR68");const Ji=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];var Zi=n("YF2q"),er=n("JgHy"),tr=n("pdGh");const nr=["overlay"];function ir(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.nzTitle)}}function rr(e,t){if(1&e&&(r.Wb(0,"div",2),r.Wb(1,"div",3),r.Wb(2,"div",4),r.Rb(3,"span",5),r.Vb(),r.Wb(4,"div",6),r.Ec(5,ir,2,1,"ng-container",7),r.Vb(),r.Vb(),r.Vb()),2&e){const e=r.gc();r.Ib("ant-tooltip-rtl","rtl"===e.dir),r.mc("ngClass",e._classMap)("ngStyle",e.nzOverlayStyle)("@.disabled",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("nzNoAnimation",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),r.Eb(3),r.mc("ngStyle",e._contentStyleMap),r.Eb(1),r.mc("ngStyle",e._contentStyleMap),r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzTitle)}}let or=(()=>{class e{constructor(e,t,n,i,o){this.elementRef=e,this.hostView=t,this.resolver=n,this.renderer=i,this.noAnimation=o,this.visibleChange=new r.n,this.internalVisible=!1,this.destroy$=new fe.a,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const e=this.placement;return Array.isArray(e)&&e.length>0?e:"string"==typeof e&&e?[e]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>this.noAnimation]}}ngOnChanges(e){const{specificTrigger:t}=e;t&&!t.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(e)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var e;null===(e=this.component)||void 0===e||e.show()}hide(){var e;null===(e=this.component)||void 0===e||e.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const e=this.hostView.createComponent(this.componentFactory);this.component=e.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),e.location.nativeElement),this.component.setOverlayOrigin({elementRef:this.origin||this.elementRef}),this.initProperties(),this.component.nzVisibleChange.pipe(Object(a.a)(),Object(ge.a)(this.destroy$)).subscribe(e=>{this.internalVisible=e,this.visibleChange.emit(e)})}registerTriggers(){const e=this.elementRef.nativeElement,t=this.trigger;if(this.removeTriggerListeners(),"hover"===t){let t;this.triggerDisposables.push(this.renderer.listen(e,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(e,"mouseleave",()=>{var e;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(e=this.component)||void 0===e?void 0:e.overlay.overlayRef)&&!t&&(t=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(t,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(t,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===t?(this.triggerDisposables.push(this.renderer.listen(e,"focus",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(e,"blur",()=>this.hide()))):"click"===t&&this.triggerDisposables.push(this.renderer.listen(e,"click",e=>{e.preventDefault(),this.show()}))}updatePropertiesByChanges(e){this.updatePropertiesByKeys(Object.keys(e))}updatePropertiesByKeys(e){var t;const n=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle]},this.getProxyPropertyMap());(e||Object.keys(n).filter(e=>!e.startsWith("directive"))).forEach(e=>{if(n[e]){const[t,i]=n[e];this.updateComponentValue(t,i())}}),null===(t=this.component)||void 0===t||t.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(e,t){void 0!==t&&(this.component[e]=t)}delayEnterLeave(e,t,n=-1){this.delayTimer?this.clearTogglingTimer():n>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,t?this.show():this.hide()},1e3*n):t&&e?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(e=>e()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.S),r.Qb(r.j),r.Qb(r.G),r.Qb(Zi.a))},e.\u0275dir=r.Lb({type:e,features:[r.Cb]}),e})(),sr=(()=>{class e{constructor(e,t,n){this.cdr=e,this.directionality=t,this.noAnimation=n,this.nzTitle=null,this.nzContent=null,this.nzOverlayStyle={},this.nzVisibleChange=new fe.a,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._hasBackdrop=!1,this._prefix="ant-tooltip",this._positions=[...er.a],this.destroy$=new fe.a}set nzVisible(e){const t=Object(_e.o)(e);this._visible!==t&&(this._visible=t,this.nzVisibleChange.next(t))}get nzVisible(){return this._visible}set nzTrigger(e){this._trigger=e}get nzTrigger(){return this._trigger}set nzPlacement(e){const t=e.map(e=>er.d[e]);this._positions=[...t,...er.a]}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(e){this.preferredPlacement=Object(er.e)(e),this.updateStyles(),this.cdr.detectChanges()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}setOverlayOrigin(e){this.origin=e,this.cdr.markForCheck()}onClickOutside(e){this.origin.elementRef.nativeElement.contains(e.target)||this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(pe.b,8),r.Qb(Zi.a))},e.\u0275dir=r.Lb({type:e,viewQuery:function(e,t){if(1&e&&r.Kc(nr,1),2&e){let e;r.sc(e=r.ec())&&(t.overlay=e.first)}}}),e})(),ar=(()=>{class e extends or{constructor(e,t,n,i,o){super(e,t,n,i,o),this.trigger="hover",this.placement="top",this.visibleChange=new r.n,this.componentFactory=this.resolver.resolveComponentFactory(cr)}getProxyPropertyMap(){return{nzTooltipColor:["nzColor",()=>this.nzTooltipColor]}}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.S),r.Qb(r.j),r.Qb(r.G),r.Qb(Zi.a,9))},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-tooltip-open",t.visible)},inputs:{trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],title:["nzTooltipTitle","title"],directiveTitle:["nz-tooltip","directiveTitle"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[r.Bb]}),e})(),cr=(()=>{class e extends sr{constructor(e,t,n){super(e,t,n),this.noAnimation=n,this.nzTitle=null,this._contentStyleMap={}}isEmpty(){return!((e=this.nzTitle)instanceof r.O||""!==e&&Object(_e.h)(e));var e}updateStyles(){const e=this.nzColor&&-1!==Ji.indexOf(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:e},this._contentStyleMap={backgroundColor:this.nzColor&&!e?this.nzColor:null}}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(pe.b,8),r.Qb(Zi.a,9))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[r.Bb],decls:2,vars:4,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(r.Ec(0,rr,6,10,"ng-template",0,1,r.Fc),r.dc("overlayOutsideClick",function(e){return t.onClickOutside(e)})("detach",function(){return t.hide()})("positionChange",function(e){return t.onPositionChange(e)})),2&e&&r.mc("cdkConnectedOverlayOrigin",t.origin)("cdkConnectedOverlayOpen",t._visible)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayPush",!0)},directives:[ot.a,er.b,o.l,o.p,Zi.a,tr.b],encapsulation:2,data:{animation:[Yi.e]},changeDetection:0}),e})(),lr=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,ot.h,tr.a,er.c,Zi.b]]}),e})();function ur(e,t){1&e&&(r.Rb(0,"app-icon",11),r.hc(1,"translate")),2&e&&r.mc("nzTooltipTitle",r.ic(1,1,"COLLECTION_OPEN_QUERY_TOOLTIP"))}function hr(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",12),r.dc("click",function(){r.wc(e);const t=r.gc().$implicit;return r.gc().closeWindow(t)}),r.Gc(1,"\xd7"),r.Vb()}}const dr=function(e,t,n){return{windowId:e,wTitle:t,index:n}},pr=function(e){return{"window-switcher__input--editing":e}};function fr(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",6),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc().onClickWindow(n)})("dblclick",function(){r.wc(e);const n=t.$implicit,i=r.tc(5);return r.gc().editWindowNameInput(n,i)}),r.Gc(1,"\n "),r.Ec(2,ur,2,3,"app-icon",7),r.Gc(3,"\n "),r.Wb(4,"div",8,9),r.dc("blur",function(){r.wc(e);const n=t.$implicit,i=r.tc(5);return r.gc().saveWindowName(n,i.innerText)})("keydown.enter",function(){r.wc(e);const n=t.$implicit,i=r.tc(5);return r.gc().saveWindowName(n,i.innerText)}),r.Gc(6),r.Vb(),r.Gc(7,"\n "),r.Ec(8,hr,2,0,"div",10),r.Gc(9,"\n "),r.Vb()}if(2&e){const e=t.$implicit,n=t.index,i=r.tc(5),o=r.gc();r.mc("nzSelected",e===o.activeWindowId)("contextMenu",o.windowTabMenu)("contextMenuSubject",r.rc(8,dr,e,i,n)),r.Eb(2),r.mc("ngIf",o.windows[e].layout.windowIdInCollection),r.Eb(2),r.mc("ngClass",r.pc(12,pr,e===o.windowIdEditing)),r.Fb("contenteditable",e===o.windowIdEditing),r.Eb(2),r.Hc(o.windows[e].layout.title),r.Eb(2),r.mc("ngIf",o.windowIds.length>1)}}function gr(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",13),r.dc("click",function(t){return r.wc(e),r.gc().newWindowChange.next(t)}),r.Gc(1),r.hc(2,"translate"),r.Vb()}2&e&&(r.mc("nzSelected",!1),r.Eb(1),r.Ic("\n ",r.ic(2,2,"ADD_NEW_WINDOW_TEXT"),"\n "))}function mr(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"span",14),r.Gc(2,"\n "),r.Rb(3,"app-icon",15),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n "),r.Wb(6,"span",16),r.Gc(7),r.hc(8,"translate"),r.Vb(),r.Gc(9,"\n ")),2&e&&(r.Eb(7),r.Ic("\n ",r.ic(8,1,"EDIT_WINDOW_TEXT"),"\n "))}function br(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"span",14),r.Gc(2,"\n "),r.Rb(3,"app-icon",17),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n "),r.Wb(6,"span",16),r.Gc(7),r.hc(8,"translate"),r.Vb(),r.Gc(9,"\n ")),2&e&&(r.Eb(7),r.Ic("\n ",r.ic(8,1,"DUPLICATE_WINDOW_TEXT"),"\n "))}function vr(e,t){}function yr(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"span",14),r.Gc(2,"\n "),r.Rb(3,"app-icon",18),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n "),r.Wb(6,"span",16),r.Gc(7),r.hc(8,"translate"),r.Vb(),r.Gc(9,"\n ")),2&e&&(r.Eb(7),r.Ic("\n ",r.ic(8,1,"CLOSE_WINDOW_TEXT"),"\n "))}function wr(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"span",14),r.Gc(2,"\n "),r.Rb(3,"app-icon",19),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n "),r.Wb(6,"span",16),r.Gc(7),r.hc(8,"translate"),r.Vb(),r.Gc(9,"\n ")),2&e&&(r.Eb(7),r.Ic("\n ",r.ic(8,1,"CLOSE_WINDOWS_TO_THE_RIGHT_TEXT"),"\n "))}function _r(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"span",14),r.Gc(2,"\n "),r.Rb(3,"app-icon",19),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n "),r.Wb(6,"span",16),r.Gc(7),r.hc(8,"translate"),r.Vb(),r.Gc(9,"\n ")),2&e&&(r.Eb(7),r.Ic("\n ",r.ic(8,1,"CLOSE_OTHER_WINDOWS_TEXT"),"\n "))}function Or(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"span",14),r.Gc(2,"\n "),r.Rb(3,"app-icon",20),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n "),r.Wb(6,"span",16),r.Gc(7),r.hc(8,"translate"),r.Vb(),r.Gc(9,"\n ")),2&e&&(r.Eb(7),r.Ic("\n ",r.ic(8,1,"REOPEN_CLOSED_WINDOW_TEXT"),"\n "))}function Cr(e,t){if(1&e){const e=r.Xb();r.Ec(0,Or,10,3,"ng-template",3),r.dc("execute",function(){return r.wc(e),r.gc().reopenClosedTab()})}}let Er=(()=>{class e{constructor(e){this.altairConfig=e,this.windows={},this.windowIds=[],this.closedWindows=[],this.activeWindowId="",this.isElectron=!1,this.activeWindowChange=new r.n,this.newWindowChange=new r.n,this.removeWindowChange=new r.n,this.duplicateWindowChange=new r.n,this.windowNameChange=new r.n,this.repositionWindowChange=new r.n,this.reopenClosedWindowChange=new r.n,this.windowTabMenuData=[{name:"Edit"}],this.windowIdEditing="",this.maxWindowCount=this.altairConfig.max_windows,this.sortableOptions={}}ngOnInit(){this.sortableOptions={onUpdate:e=>{this.moveWindow(e.oldIndex,e.newIndex)}}}onClickWindow(e){this.activeWindowChange.next(e)}editWindowNameInput(e,t){this.windowIdEditing=e,setTimeout(()=>t.focus(),0)}saveWindowName(e,t){this.windowIdEditing&&(this.windowNameChange.next({windowId:e,windowName:t}),this.windowIdEditing="")}moveWindow(e,t){this.repositionWindowChange.next({currentPosition:e,newPosition:t})}closeWindow(e){return this.removeWindowChange.next(e)}closeWindowsToTheRight(e){if(!(e+1>=this.windowIds.length))return this.windowIds.filter((t,n)=>n>e).map(e=>this.closeWindow(e))}closeOtherWindows(e){return this.windowIds.filter(t=>t!==e).map(e=>this.closeWindow(e))}duplicateWindow(e){this.duplicateWindowChange.next(e)}reopenClosedTab(){this.reopenClosedWindowChange.emit()}log(e){M.a.log(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(N.a))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-window-switcher"]],viewQuery:function(e,t){if(1&e&&r.Kc(Pt,3),2&e){let e;r.sc(e=r.ec())&&(t.windowTabMenu=e.first)}},inputs:{windows:"windows",windowIds:"windowIds",closedWindows:"closedWindows",activeWindowId:"activeWindowId",isElectron:"isElectron"},outputs:{activeWindowChange:"activeWindowChange",newWindowChange:"newWindowChange",removeWindowChange:"removeWindowChange",duplicateWindowChange:"duplicateWindowChange",windowNameChange:"windowNameChange",repositionWindowChange:"repositionWindowChange",reopenClosedWindowChange:"reopenClosedWindowChange"},decls:24,vars:4,consts:[["nz-menu","","nzMode","horizontal","sortablejs","",1,"app-header__menu","header-nav","window-switcher__container",3,"sortablejsOptions"],["nz-menu-item","","class","nav-link nav-text window-switcher",3,"nzSelected","contextMenu","contextMenuSubject","click","dblclick",4,"ngFor","ngForOf"],["nz-menu-item","","class","nav-link nav-text window-switcher window-switcher--new-window",3,"nzSelected","click",4,"ngIf"],["contextMenuItem","",3,"execute"],["contextMenuItem","","divider","true"],[4,"ngIf"],["nz-menu-item","",1,"nav-link","nav-text","window-switcher",3,"nzSelected","contextMenu","contextMenuSubject","click","dblclick"],["name","folder","nz-tooltip","","nzTooltipPlacement","bottom",3,"nzTooltipTitle",4,"ngIf"],[1,"window-switcher__input",3,"ngClass","blur","keydown.enter"],["wTitle",""],["track-id","close_window_tab","class","window-switcher__close",3,"click",4,"ngIf"],["name","folder","nz-tooltip","","nzTooltipPlacement","bottom",3,"nzTooltipTitle"],["track-id","close_window_tab",1,"window-switcher__close",3,"click"],["nz-menu-item","",1,"nav-link","nav-text","window-switcher","window-switcher--new-window",3,"nzSelected","click"],[1,"menu-icon"],["name","edit"],[1,"menu-text"],["name","copy"],["name","x-square"],["name","circle"],["name","plus-square"]],template:function(e,t){1&e&&(r.Wb(0,"ul",0),r.Gc(1,"\n "),r.Ec(2,fr,10,14,"li",1),r.Gc(3,"\n "),r.Ec(4,gr,3,4,"li",2),r.Gc(5,"\n"),r.Vb(),r.Gc(6,"\n"),r.Wb(7,"context-menu"),r.Gc(8,"\n "),r.Ec(9,mr,10,3,"ng-template",3),r.dc("execute",function(e){return t.editWindowNameInput(e.item.windowId,e.item.wTitle)}),r.Gc(10,"\n "),r.Ec(11,br,10,3,"ng-template",3),r.dc("execute",function(e){return t.duplicateWindow(e.item.windowId)}),r.Gc(12,"\n "),r.Ec(13,vr,0,0,"ng-template",4),r.Gc(14,"\n "),r.Ec(15,yr,10,3,"ng-template",3),r.dc("execute",function(e){return t.closeWindow(e.item.windowId)}),r.Gc(16,"\n "),r.Ec(17,wr,10,3,"ng-template",3),r.dc("execute",function(e){return t.closeWindowsToTheRight(e.item.index)}),r.Gc(18,"\n "),r.Ec(19,_r,10,3,"ng-template",3),r.dc("execute",function(e){return t.closeOtherWindows(e.item.windowId)}),r.Gc(20,"\n "),r.Ec(21,Cr,1,0,void 0,5),r.Gc(22,"\n"),r.Vb(),r.Gc(23,"\n")),2&e&&(r.mc("sortablejsOptions",t.sortableOptions),r.Eb(2),r.mc("ngForOf",t.windowIds),r.Eb(2),r.mc("ngIf",t.windowIds.length=0)return 1;return 0}(),kr=Tr&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},xr))}};function Ir(e){return e&&"[object Function]"==={}.toString.call(e)}function Dr(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function zr(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function jr(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Dr(e);return/(auto|scroll|overlay)/.test(t.overflow+t.overflowY+t.overflowX)?e:jr(zr(e))}function Ar(e){return e&&e.referenceNode?e.referenceNode:e}var Rr=Tr&&!(!window.MSInputMethodContext||!document.documentMode),Nr=Tr&&/MSIE 10/.test(navigator.userAgent);function Lr(e){return 11===e?Rr:10===e?Nr:Rr||Nr}function Mr(e){if(!e)return document.documentElement;for(var t=Lr(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Dr(n,"position")?Mr(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Fr(e){return null!==e.parentNode?Fr(e.parentNode):e}function Pr(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s,a,c=o.commonAncestorContainer;if(e!==c&&t!==c||i.contains(r))return"BODY"===(a=(s=c).nodeName)||"HTML"!==a&&Mr(s.firstElementChild)!==s?Mr(c):c;var l=Fr(e);return l.host?Pr(l.host,t):Pr(e,Fr(t).host)}function Vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||r;return o[n]}return e[n]}function Gr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Vr(t,"top"),r=Vr(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function Br(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function Wr(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Lr(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function $r(e){var t=e.body,n=e.documentElement,i=Lr(10)&&getComputedStyle(n);return{height:Wr("Height",t,n,i),width:Wr("Width",t,n,i)}}var Ur=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Hr=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=Lr(10),r="HTML"===t.nodeName,o=Xr(e),s=Xr(t),a=jr(e),c=Dr(t),l=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=Kr({top:o.top-s.top-l,left:o.left-s.left-u,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var d=parseFloat(c.marginTop),p=parseFloat(c.marginLeft);h.top-=l-d,h.bottom-=l-d,h.left-=u-p,h.right-=u-p,h.marginTop=d,h.marginLeft=p}return(i&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(h=Gr(h,t)),h}function Jr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=Yr(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:Vr(n),a=t?0:Vr(n,"left"),c={top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:o};return Kr(c)}function Zr(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Dr(e,"position"))return!0;var n=zr(e);return!!n&&Zr(n)}function eo(e){if(!e||!e.parentElement||Lr())return document.documentElement;for(var t=e.parentElement;t&&"none"===Dr(t,"transform");)t=t.parentElement;return t||document.documentElement}function to(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=r?eo(e):Pr(e,Ar(t));if("viewport"===i)o=Jr(s,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=jr(zr(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===i?e.ownerDocument.documentElement:i;var c=Yr(a,s,r);if("HTML"!==a.nodeName||Zr(s))o=c;else{var l=$r(e.ownerDocument),u=l.height,h=l.width;o.top+=c.top-c.marginTop,o.bottom=u+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}}var d="number"==typeof(n=n||0);return o.left+=d?n:n.left||0,o.top+=d?n:n.top||0,o.right-=d?n:n.right||0,o.bottom-=d?n:n.bottom||0,o}function no(e){return e.width*e.height}function io(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=to(n,i,o,r),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},c=Object.keys(a).map(function(e){return Qr({key:e},a[e],{area:no(a[e])})}).sort(function(e,t){return t.area-e.area}),l=c.filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight}),u=l.length>0?l[0].key:c[0].key,h=e.split("-")[1];return u+(h?"-"+h:"")}function ro(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=i?eo(t):Pr(t,Ar(n));return Yr(n,r,i)}function oo(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function so(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function ao(e,t,n){n=n.split("-")[0];var i=oo(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",c=o?"height":"width",l=o?"width":"height";return r[s]=t[s]+t[c]/2-i[c]/2,r[a]=n===a?t[a]-i[l]:t[so(a)],r}function co(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function lo(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e.name===n});var i=co(e,function(e){return e.name===n});return e.indexOf(i)}(e,0,n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Ir(n)&&(t.offsets.popper=Kr(t.offsets.popper),t.offsets.reference=Kr(t.offsets.reference),t=n(t,e))}),t}function uo(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ro(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=io(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ao(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=lo(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ho(e,t){return e.some(function(e){return e.enabled&&e.name===t})}function po(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=So.indexOf(e),i=So.slice(n+1).concat(So.slice(0,n));return t?i.reverse():i}var xo={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),c=a?"left":"top",l=a?"width":"height",u={start:qr({},c,o[c]),end:qr({},c,o[c]+o[l]-s[l])};e.offsets.popper=Qr({},s,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,i=t.offset,r=e.offsets,o=r.popper,s=r.reference,a=e.placement.split("-")[0];return n=wo(+i)?[+i,0]:function(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(co(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==a?[s.slice(0,a).concat([s[a].split(c)[0]]),[s[a].split(c)[1]].concat(s.slice(a+1))]:[s];return(l=l.map(function(e,i){var r=(1===i?!o:o)?"height":"width",s=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return e;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return Kr(a)[t]/100*o}return"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o}(e,r,t,n)})})).forEach(function(e,t){e.forEach(function(n,i){wo(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))})}),r}(i,o,s,a),"left"===a?(o.top+=n[0],o.left-=n[1]):"right"===a?(o.top+=n[0],o.left+=n[1]):"top"===a?(o.left+=n[0],o.top-=n[1]):"bottom"===a&&(o.left+=n[0],o.top+=n[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Mr(e.instance.popper);e.instance.reference===n&&(n=Mr(n));var i=po("transform"),r=e.instance.popper.style,o=r.top,s=r.left,a=r[i];r.top="",r.left="",r[i]="";var c=to(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=s,r[i]=a,t.boundaries=c;var l=e.offsets.popper,u={primary:function(e){var n=l[e];return l[e]c[e]&&!t.escapeWithReference&&(i=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),qr({},n,i)}};return t.priority.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=Qr({},l,u[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",c=s?"left":"top",l=s?"width":"height";return n[a]o(i[a])&&(e.offsets.popper[c]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Co(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,s=o.popper,a=o.reference,c=-1!==["left","right"].indexOf(r),l=c?"height":"width",u=c?"Top":"Left",h=u.toLowerCase(),d=c?"left":"top",p=c?"bottom":"right",f=oo(i)[l];a[p]-fs[p]&&(e.offsets.popper[h]+=a[h]+f-s[p]),e.offsets.popper=Kr(e.offsets.popper);var g=a[h]+a[l]/2-f/2,m=Dr(e.instance.popper),b=parseFloat(m["margin"+u]),v=parseFloat(m["border"+u+"Width"]),y=g-e.offsets.popper[h]-b-v;return y=Math.max(Math.min(s[l]-f,y),0),e.arrowElement=i,e.offsets.arrow=(qr(n={},h,Math.round(y)),qr(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ho(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=to(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=so(i),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[i,r];break;case"clockwise":s=To(i);break;case"counterclockwise":s=To(i,!0);break;default:s=t.behavior}return s.forEach(function(a,c){if(i!==a||s.length===c+1)return e;i=e.placement.split("-")[0],r=so(i);var l=e.offsets.popper,u=e.offsets.reference,h=Math.floor,d="left"===i&&h(l.right)>h(u.left)||"right"===i&&h(l.left)h(u.top)||"bottom"===i&&h(l.top)h(n.right),g=h(l.top)h(n.bottom),b="left"===i&&p||"right"===i&&f||"top"===i&&g||"bottom"===i&&m,v=-1!==["top","bottom"].indexOf(i),y=!!t.flipVariations&&(v&&"start"===o&&p||v&&"end"===o&&f||!v&&"start"===o&&g||!v&&"end"===o&&m)||!!t.flipVariationsByContent&&(v&&"start"===o&&f||v&&"end"===o&&p||!v&&"start"===o&&m||!v&&"end"===o&&g);(d||b||y)&&(e.flipped=!0,(d||b)&&(i=s[c+1]),y&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=Qr({},e.offsets.popper,ao(e.instance.popper,e.offsets.reference,e.placement)),e=lo(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),e.placement=so(t),e.offsets.popper=Kr(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Co(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=co(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Ur(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=kr(this.update.bind(this)),this.options=Qr({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Qr({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){i.options.modifiers[t]=Qr({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Qr({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Ir(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Hr(e,[{key:"update",value:function(){return uo.call(this)}},{key:"destroy",value:function(){return fo.call(this)}},{key:"enableEventListeners",value:function(){return vo.call(this)}},{key:"disableEventListeners",value:function(){return yo.call(this)}}]),e}();ko.Utils=("undefined"!=typeof window?window:global).PopperUtils,ko.placements=Eo,ko.Defaults=xo;var Io=ko;const Do=["popperViewRef"];function zo(e,t){if(1&e&&(r.Wb(0,"div",5),r.Gc(1,"\n "),r.kc(2),r.Gc(3,"\n "),r.Vb()),2&e){const e=r.gc();r.mc("innerHTML",e.text,r.xc)}}function jo(e,t){1&e&&(r.Wb(0,"div",6),r.Gc(1,"\n "),r.kc(2,1),r.Gc(3,"\n "),r.Vb())}const Ao=["*","*"];let Ro=(()=>{class e{}return e.CLICK="click",e.HOVER="hover",e.MOUSEDOWN="mousedown",e.NONE="none",e})(),No=(()=>{class e{}return e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e.TopStart="top-start",e.BottomStart="bottom-start",e.LeftStart="left-start",e.RightStart="right-start",e.TopEnd="top-end",e.BottomEnd="bottom-end",e.LeftEnd="left-end",e.RightEnd="right-end",e.Auto="auto",e.AutoStart="auto-start",e.AutoEnd="auto-end",e})(),Lo=(()=>{class e{constructor(e,t,n,i){this.elemRef=e,this.renderer=t,this.viewRef=n,this.CDR=i,this.popperOptions={disableAnimation:!1,disableDefaultStyling:!1,placement:No.Auto,boundariesElement:"",trigger:Ro.HOVER,positionFixed:!1,appendToBody:!1,popperModifiers:{}},this.isMouseOver=!1,this.onHidden=new r.n,this.displayType="none",this.opacity=0,this.ariaHidden="true",this.arrowColor=null,this.state=!0}onMouseOver(){this.isMouseOver=!0}showOnLeave(){this.isMouseOver=!1,(this.popperOptions.trigger===Ro.HOVER||this.popperOptions.hideOnMouseLeave)&&this.hide()}onDocumentResize(){this.update()}ngOnDestroy(){this.clean(),this.popperOptions.appendTo&&this.elemRef&&this.elemRef.nativeElement&&this.elemRef.nativeElement.parentNode&&(this.viewRef.detach(),this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement))}clean(){this.toggleVisibility(!1),this.popperInstance&&(this.popperInstance.disableEventListeners(),this.popperInstance.destroy())}show(){if(!this.referenceObject)return;const e=this.popperOptions.appendTo&&document.querySelector(this.popperOptions.appendTo);e&&this.elemRef.nativeElement.parentNode!==e&&(this.elemRef.nativeElement.parentNode&&this.elemRef.nativeElement.parentNode.removeChild(this.elemRef.nativeElement),e.appendChild(this.elemRef.nativeElement));let t={placement:this.popperOptions.placement,positionFixed:this.popperOptions.positionFixed,modifiers:{arrow:{element:this.popperViewRef.nativeElement.querySelector(".ngxp__arrow")}}};this.onUpdate&&(t.onUpdate=this.onUpdate);let n=this.popperOptions.boundariesElement&&document.querySelector(this.popperOptions.boundariesElement);t.modifiers&&n&&(t.modifiers.preventOverflow={boundariesElement:n}),t.modifiers&&void 0!==this.popperOptions.preventOverflow&&(t.modifiers.preventOverflow=t.modifiers.preventOverflow||{},t.modifiers.preventOverflow.enabled=this.popperOptions.preventOverflow,t.modifiers.preventOverflow.enabled||(t.modifiers.hide={enabled:!1})),this.determineArrowColor(),t.modifiers=Object.assign(t.modifiers,this.popperOptions.popperModifiers),this.popperInstance=new Io(this.referenceObject,this.popperViewRef.nativeElement,t),this.popperInstance.enableEventListeners(),this.scheduleUpdate(),this.toggleVisibility(!0),this.globalResize=this.renderer.listen("document","resize",this.onDocumentResize.bind(this))}determineArrowColor(){["background-color","backgroundColor"].some(e=>!!this.popperOptions.styles&&!!this.popperOptions.styles.hasOwnProperty(e)&&(this.arrowColor=this.popperOptions.styles[e],!0))}update(){this.popperInstance&&this.popperInstance.update()}scheduleUpdate(){this.popperInstance&&this.popperInstance.scheduleUpdate()}hide(){this.popperInstance&&this.popperInstance.destroy(),this.toggleVisibility(!1),this.onHidden.emit()}toggleVisibility(e){e?(this.opacity=1,this.displayType="block",this.ariaHidden="false",this.state=!0):(this.opacity=0,this.displayType="none",this.ariaHidden="true",this.state=!1),this.CDR.destroyed||this.CDR.detectChanges()}extractAppliedClassListExpr(e){if(!e||"string"!=typeof e)return null;try{return e.replace(/ /,"").split(",").reduce((e,t)=>(e[t]=!0,e),{})}catch(t){return null}}clearGlobalResize(){this.globalResize&&"function"==typeof this.globalResize&&this.globalResize()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G),r.Qb(r.S),r.Qb(r.h))},e.\u0275cmp=r.Kb({type:e,selectors:[["popper-content"]],viewQuery:function(e,t){if(1&e&&r.Kc(Do,1),2&e){let e;r.sc(e=r.ec())&&(t.popperViewRef=e.first)}},hostBindings:function(e,t){1&e&&r.dc("mouseover",function(){return t.onMouseOver()})("mouseleave",function(){return t.showOnLeave()})},ngContentSelectors:Ao,decls:11,vars:20,consts:[[3,"ngStyle","ngClass"],["popperViewRef",""],["class","ngxp__inner",3,"innerHTML",4,"ngIf"],["class","ngxp__inner",4,"ngIf"],[1,"ngxp__arrow",3,"ngClass"],[1,"ngxp__inner",3,"innerHTML"],[1,"ngxp__inner"]],template:function(e,t){1&e&&(r.lc(Ao),r.Gc(0,"\n "),r.Wb(1,"div",0,1),r.Gc(3,"\n "),r.Ec(4,zo,4,1,"div",2),r.Gc(5,"\n "),r.Ec(6,jo,4,0,"div",3),r.Gc(7,"\n "),r.Rb(8,"div",4),r.Gc(9,"\n\n "),r.Vb(),r.Gc(10,"\n ")),2&e&&(r.Eb(1),r.Bc("display",t.displayType)("opacity",t.opacity),r.Ib("ngxp__container",!t.popperOptions.disableDefaultStyling)("ngxp__animation",!t.popperOptions.disableAnimation),r.mc("ngStyle",t.popperOptions.styles)("ngClass",t.extractAppliedClassListExpr(t.popperOptions.applyClass)),r.Fb("aria-hidden",t.ariaHidden)("aria-describedby",t.popperOptions.ariaDescribe||null)("role",t.popperOptions.ariaRole),r.Eb(3),r.mc("ngIf",t.text),r.Eb(2),r.mc("ngIf",!t.text),r.Eb(2),r.Bc("border-color",t.arrowColor),r.Ib("__force-arrow",t.arrowColor),r.mc("ngClass",t.extractAppliedClassListExpr(t.popperOptions.applyArrowClass)))},directives:[o.p,o.l,o.o],styles:[".ngxp__container{display:none;position:absolute;border-radius:3px;border:1px solid grey;box-shadow:0 0 2px rgba(0,0,0,.5);padding:10px}.ngxp__container.ngxp__animation{-webkit-animation:150ms ease-out ngxp-fadeIn;animation:150ms ease-out ngxp-fadeIn}.ngxp__container>.ngxp__arrow{border-color:grey;width:0;height:0;border-style:solid;position:absolute;margin:5px}.ngxp__container[x-placement^=bottom],.ngxp__container[x-placement^=left],.ngxp__container[x-placement^=right],.ngxp__container[x-placement^=top]{display:block}.ngxp__container[x-placement^=top]{margin-bottom:5px}.ngxp__container[x-placement^=top]>.ngxp__arrow{border-width:5px 5px 0;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=top]>.ngxp__arrow.__force-arrow{border-right-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=bottom]{margin-top:5px}.ngxp__container[x-placement^=bottom]>.ngxp__arrow{border-width:0 5px 5px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.ngxp__container[x-placement^=bottom]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-right-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=right]{margin-left:5px}.ngxp__container[x-placement^=right]>.ngxp__arrow{border-width:5px 5px 5px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=right]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important}.ngxp__container[x-placement^=left]{margin-right:5px}.ngxp__container[x-placement^=left]>.ngxp__arrow{border-width:5px 0 5px 5px;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.ngxp__container[x-placement^=left]>.ngxp__arrow.__force-arrow{border-top-color:transparent!important;border-bottom-color:transparent!important;border-right-color:transparent!important}@-webkit-keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}@keyframes ngxp-fadeIn{0%{display:none;opacity:0}1%{display:block;opacity:0}100%{display:block;opacity:1}}"],encapsulation:2,changeDetection:0}),e})(),Mo=(()=>{class e{constructor(t,n,i,o,s,a={}){this.viewContainerRef=t,this.changeDetectorRef=n,this.resolver=i,this.elementRef=o,this.renderer=s,this.popperDefaults=a,this.popperContentClass=Lo,this.shown=!1,this.subscriptions=[],this.eventListeners=[],this.globalEventListeners=[],this.hideTimeout=0,this.timeoutAfterShow=0,this.popperOnShown=new r.n,this.popperOnHidden=new r.n,this.popperOnUpdate=new r.n,e.baseOptions=Object.assign({},e.baseOptions,this.popperDefaults)}hideOnClickOutsideHandler(e){this.disabled||!this.hideOnClickOutside||e.srcElement&&e.srcElement===this.popperContent.elemRef.nativeElement||this.popperContent.elemRef.nativeElement.contains(e.srcElement)||this.scheduledHide(e,this.hideTimeout)}hideOnScrollHandler(e){!this.disabled&&this.hideOnScroll&&this.scheduledHide(e,this.hideTimeout)}applyTriggerListeners(){switch(this.showTrigger){case Ro.CLICK:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"click",this.toggle.bind(this)));break;case Ro.MOUSEDOWN:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mousedown",this.toggle.bind(this)));break;case Ro.HOVER:this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseenter",this.scheduledShow.bind(this,this.showDelay))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout)))}this.showTrigger!==Ro.HOVER&&this.hideOnMouseLeave&&(this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchend",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"touchcancel",this.scheduledHide.bind(this,null,this.hideTimeout))),this.eventListeners.push(this.renderer.listen(this.elementRef.nativeElement,"mouseleave",this.scheduledHide.bind(this,null,this.hideTimeout))))}static assignDefined(e,...t){for(const n of t)for(const t of Object.keys(n)){const i=n[t];void 0!==i&&(e[t]=i)}return e}ngOnInit(){if(this.hideOnClickOutside=void 0===this.hideOnClickOutside?this.closeOnClickOutside:this.hideOnClickOutside,"string"==typeof this.content){const e=this.content;this.popperContent=this.constructContent(),this.popperContent.text=e}else this.popperContent=this.content;const e=this.popperContent;e.referenceObject=this.getRefElement(),this.setContentProperties(e),this.setDefaults(),this.applyTriggerListeners(),this.showOnStart&&this.scheduledShow()}ngOnChanges(e){e.popperDisabled&&e.popperDisabled.currentValue&&this.hide(),e.content&&!e.content.firstChange&&"string"==typeof e.content.currentValue&&(this.popperContent.text=e.content.currentValue),e.applyClass&&!e.applyClass.firstChange&&"string"==typeof e.applyClass.currentValue&&(this.popperContent.popperOptions.applyClass=e.applyClass.currentValue),e.applyArrowClass&&!e.applyArrowClass.firstChange&&"string"==typeof e.applyArrowClass.currentValue&&(this.popperContent.popperOptions.applyArrowClass=e.applyArrowClass.currentValue)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe&&e.unsubscribe()),this.subscriptions.length=0,this.clearEventListeners(),this.clearGlobalEventListeners(),clearTimeout(this.scheduledShowTimeout),clearTimeout(this.scheduledHideTimeout),this.popperContent&&this.popperContent.clean()}toggle(){this.disabled||(this.shown?this.scheduledHide(null,this.hideTimeout):this.scheduledShow())}show(){if(this.shown)return void this.overrideHideTimeout();this.shown=!0;const e=this.popperContent,t=this.getRefElement();e.referenceObject!==t&&(e.referenceObject=t),this.setContentProperties(e),e.show(),this.popperOnShown.emit(this),this.timeoutAfterShow>0&&this.scheduledHide(null,this.timeoutAfterShow),this.globalEventListeners.push(this.renderer.listen("document","touchend",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen("document","click",this.hideOnClickOutsideHandler.bind(this))),this.globalEventListeners.push(this.renderer.listen(this.getScrollParent(this.getRefElement()),"scroll",this.hideOnScrollHandler.bind(this)))}hide(){this.disabled||(this.shown?(this.shown=!1,this.popperContentRef?this.popperContentRef.instance.hide():this.popperContent.hide(),this.popperOnHidden.emit(this),this.clearGlobalEventListeners()):this.overrideShowTimeout())}scheduledShow(e=this.showDelay){this.disabled||(this.overrideHideTimeout(),this.scheduledShowTimeout=setTimeout(()=>{this.show(),this.applyChanges()},e))}scheduledHide(e=null,t=this.hideTimeout){this.disabled||(this.overrideShowTimeout(),this.scheduledHideTimeout=setTimeout(()=>{const t=e?e.toElement:null,n=!!this.popperContent.popperViewRef&&this.popperContent.popperViewRef.nativeElement;!n||n===t||n.contains(t)||this.content.isMouseOver||(this.hide(),this.applyChanges())},t))}getRefElement(){return this.targetElement||this.viewContainerRef.element.nativeElement}applyChanges(){this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges()}setDefaults(){this.showDelay=void 0===this.showDelay?e.baseOptions.showDelay:this.showDelay,this.showTrigger=void 0===this.showTrigger?e.baseOptions.trigger:this.showTrigger,this.hideOnClickOutside=void 0===this.hideOnClickOutside?e.baseOptions.hideOnClickOutside:this.hideOnClickOutside,this.hideOnScroll=void 0===this.hideOnScroll?e.baseOptions.hideOnScroll:this.hideOnScroll,this.hideOnMouseLeave=void 0===this.hideOnMouseLeave?e.baseOptions.hideOnMouseLeave:this.hideOnMouseLeave,this.ariaRole=void 0===this.ariaRole?e.baseOptions.ariaRole:this.ariaRole,this.ariaDescribe=void 0===this.ariaDescribe?e.baseOptions.ariaDescribe:this.ariaDescribe,this.styles=void 0===this.styles?Object.assign({},e.baseOptions.styles):this.styles}clearEventListeners(){this.eventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.eventListeners.length=0}clearGlobalEventListeners(){this.globalEventListeners.forEach(e=>{e&&"function"==typeof e&&e()}),this.globalEventListeners.length=0}overrideShowTimeout(){this.scheduledShowTimeout&&(clearTimeout(this.scheduledShowTimeout),this.scheduledHideTimeout=0)}overrideHideTimeout(){this.scheduledHideTimeout&&(clearTimeout(this.scheduledHideTimeout),this.scheduledHideTimeout=0)}constructContent(){const e=this.resolver.resolveComponentFactory(this.popperContentClass);return this.popperContentRef=this.viewContainerRef.createComponent(e),this.popperContentRef.instance}setContentProperties(t){t.popperOptions=e.assignDefined(t.popperOptions,e.baseOptions,{showDelay:this.showDelay,disableAnimation:this.disableAnimation,disableDefaultStyling:this.disableStyle,placement:this.placement,boundariesElement:this.boundariesElement,trigger:this.showTrigger,positionFixed:this.positionFixed,popperModifiers:this.popperModifiers,ariaDescribe:this.ariaDescribe,ariaRole:this.ariaRole,applyClass:this.applyClass,applyArrowClass:this.applyArrowClass,hideOnMouseLeave:this.hideOnMouseLeave,styles:this.styles,appendTo:this.appendTo,preventOverflow:this.preventOverflow}),t.onUpdate=this.onPopperUpdate.bind(this),this.subscriptions.push(t.onHidden.subscribe(this.hide.bind(this)))}getScrollParent(e){const t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return e?"visible"!==t&&"hidden"!==t&&e.scrollHeight>=e.clientHeight?e:this.getScrollParent(e.parentNode)||document:null}onPopperUpdate(e){this.popperOnUpdate.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.S),r.Qb(r.h),r.Qb(r.j),r.Qb(r.l),r.Qb(r.G),r.Qb("popperDefaults"))},e.\u0275dir=r.Lb({type:e,selectors:[["","popper",""]],inputs:{hideTimeout:["popperTimeout","hideTimeout"],timeoutAfterShow:["popperTimeoutAfterShow","timeoutAfterShow"],hideOnClickOutside:["popperHideOnClickOutside","hideOnClickOutside"],showDelay:["popperDelay","showDelay"],showTrigger:["popperTrigger","showTrigger"],hideOnScroll:["popperHideOnScroll","hideOnScroll"],hideOnMouseLeave:["popperHideOnMouseLeave","hideOnMouseLeave"],ariaRole:["popperAriaRole","ariaRole"],ariaDescribe:["popperAriaDescribeBy","ariaDescribe"],styles:["popperStyles","styles"],content:["popper","content"],disabled:["popperDisabled","disabled"],placement:["popperPlacement","placement"],targetElement:["popperTarget","targetElement"],boundariesElement:["popperBoundaries","boundariesElement"],showOnStart:["popperShowOnStart","showOnStart"],closeOnClickOutside:["popperCloseOnClickOutside","closeOnClickOutside"],positionFixed:["popperPositionFixed","positionFixed"],popperModifiers:"popperModifiers",disableStyle:["popperDisableStyle","disableStyle"],disableAnimation:["popperDisableAnimation","disableAnimation"],applyClass:["popperApplyClass","applyClass"],applyArrowClass:["popperApplyArrowClass","applyArrowClass"],appendTo:["popperAppendTo","appendTo"],preventOverflow:["popperPreventOverflow","preventOverflow"]},outputs:{popperOnShown:"popperOnShown",popperOnHidden:"popperOnHidden",popperOnUpdate:"popperOnUpdate"},exportAs:["popper"],features:[r.Cb]}),e.baseOptions={showDelay:0,placement:No.Auto,hideOnClickOutside:!0,hideOnMouseLeave:!1,hideOnScroll:!1,showTrigger:Ro.HOVER,appendTo:void 0,ariaRole:"popper",ariaDescribe:"",styles:{}},e})(),Fo=(()=>{class e{ngDoBootstrap(){}static forRoot(t={}){return{ngModule:e,providers:[{provide:"popperDefaults",useValue:t}]}}}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c]]}),e})();var Po=n("Wbsq"),Vo=n.n(Po),Go=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function Bo(e,t){1&e&&(r.Wb(0,"span",25),r.Rb(1,"app-icon",26),r.Vb())}function Wo(e,t){1&e&&(r.Wb(0,"span",25),r.Rb(1,"app-icon",27),r.Vb())}function $o(e,t){if(1&e){const e=r.Xb();r.Wb(0,"app-query-collection-item",28),r.dc("selectQueryChange",function(t){return r.wc(e),r.gc().selectQueryChange.next(t)})("deleteQueryChange",function(t){return r.wc(e),r.gc().deleteQueryChange.next(t)})("deleteCollectionChange",function(t){return r.wc(e),r.gc().deleteCollectionChange.next(t)})("editCollectionChange",function(t){return r.wc(e),r.gc().editCollectionChange.next(t)})("exportCollectionChange",function(t){return r.wc(e),r.gc().exportCollectionChange.next(t)}),r.Vb()}2&e&&r.mc("collection",t.$implicit)}function Uo(e,t){if(1&e&&(r.Wb(0,"span",40),r.Gc(1,"\n "),r.Rb(2,"app-icon",41),r.Gc(3,"\n "),r.Vb()),2&e){r.gc();const e=r.tc(10);r.mc("popper",e)("popperPlacement","bottom")}}function Ho(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",29),r.Gc(1,"\n "),r.Wb(2,"span",30),r.dc("click",function(){r.wc(e);const n=t.$implicit,i=r.gc();return i.selectQueryChange.next({query:n,collectionId:i.collection.id,windowIdInCollection:n.id})}),r.Gc(3,"\n "),r.Wb(4,"span",25),r.Rb(5,"app-icon",31),r.Vb(),r.Gc(6),r.Ec(7,Uo,4,2,"span",32),r.Gc(8,"\n "),r.Wb(9,"popper-content",null,33),r.Gc(11),r.hc(12,"translate"),r.Wb(13,"a",34),r.Gc(14),r.hc(15,"translate"),r.Vb(),r.Gc(16,"\n "),r.Vb(),r.Gc(17,"\n "),r.Vb(),r.Gc(18,"\n "),r.Wb(19,"span",35),r.Gc(20,"\n "),r.Wb(21,"span",36),r.Gc(22,"\n "),r.Wb(23,"button",37),r.Gc(24,"\n "),r.Rb(25,"app-icon",9),r.Gc(26,"\n "),r.Vb(),r.Gc(27,"\n "),r.Vb(),r.Gc(28,"\n "),r.Wb(29,"nz-dropdown-menu",null,38),r.Gc(31,"\n "),r.Wb(32,"ul",11),r.Gc(33,"\n "),r.Wb(34,"li",39),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc().deleteQuery(n)}),r.Gc(35),r.hc(36,"translate"),r.Vb(),r.Gc(37,"\n "),r.Vb(),r.Gc(38,"\n "),r.Vb(),r.Gc(39,"\n "),r.Vb(),r.Gc(40,"\n "),r.Vb()}if(2&e){const e=t.$implicit,n=r.tc(30);r.Eb(6),r.Ic("\n ",e.windowName,"\n "),r.Eb(1),r.mc("ngIf",!e.id),r.Eb(4),r.Ic("\n ",r.ic(12,6,"COLLECTIONS_DEPRECATED_QUERY_WARNING"),"\n "),r.Eb(3),r.Hc(r.ic(15,8,"LEARN_MORE_TEXT")),r.Eb(9),r.mc("nzDropdownMenu",n),r.Eb(12),r.Ic("\n ",r.ic(36,10,"COLLECTIONS_QUERY_MENU_DELETE"),"\n ")}}const qo=function(e){return{"query-collections__item-content--hidden":e}};let Qo=(()=>{class e{constructor(){this.selectQueryChange=new r.n,this.deleteQueryChange=new r.n,this.deleteCollectionChange=new r.n,this.editCollectionChange=new r.n,this.exportCollectionChange=new r.n,this.sortBy="newest",this.showContent=!0}ngOnInit(){}getQueryCount(e){return e.queries&&e.queries.length}toggleContent(){this.showContent=!this.showContent}deleteQuery(e){confirm("Are you sure you want to delete this query from the collection?")&&this.deleteQueryChange.next({query:e,collectionId:this.collection.id})}deleteCollection(){confirm("Are you sure you want to delete this collection?")&&this.deleteCollectionChange.next({collectionId:this.collection.id})}editCollection(){this.editCollectionChange.next({collection:this.collection})}exportCollection(){this.exportCollectionChange.next({collectionId:this.collection.id})}setQueriesSortBy(e){this.sortBy=e}sortedCollectionQueries(e,t){if(!e)return[];switch(t){case"a-z":return e.sort((e,t)=>{const n=e.windowName.toLowerCase()||e.updated_at,i=t.windowName.toLowerCase()||t.updated_at;return n>i?1:n{const n=e.windowName.toLowerCase()||e.updated_at,i=t.windowName.toLowerCase()||t.updated_at;return n>i?-1:n{const n=e.updated_at||e.windowName.toLowerCase(),i=t.updated_at||t.windowName.toLowerCase();return n>i?-1:n{const n=e.updated_at||e.windowName.toLowerCase(),i=t.updated_at||t.windowName.toLowerCase();return n>i?1:n=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)}([function(e,t,n){const i=n.value,r=Vo()(i,{max:1});n.value=function(){return r.apply(this,arguments)}},Go("design:type",Function),Go("design:paramtypes",[Array,String]),Go("design:returntype",void 0)],e.prototype,"sortedCollectionQueries",null),e})();function Ko(e,t){1&e&&(r.Ub(0),r.Gc(1),r.hc(2,"translate"),r.Tb()),2&e&&(r.Eb(1),r.Hc(r.ic(2,1,"COLLECTIONS_SORT_BY_A_Z")))}function Xo(e,t){1&e&&(r.Ub(0),r.Gc(1),r.hc(2,"translate"),r.Tb()),2&e&&(r.Eb(1),r.Hc(r.ic(2,1,"COLLECTIONS_SORT_BY_Z_A")))}function Yo(e,t){1&e&&(r.Ub(0),r.Gc(1),r.hc(2,"translate"),r.Tb()),2&e&&(r.Eb(1),r.Hc(r.ic(2,1,"COLLECTIONS_SORT_BY_NEWEST")))}function Jo(e,t){1&e&&(r.Ub(0),r.Gc(1),r.hc(2,"translate"),r.Tb()),2&e&&(r.Eb(1),r.Hc(r.ic(2,1,"COLLECTIONS_SORT_BY_OLDEST")))}function Zo(e,t){if(1&e){const e=r.Xb();r.Wb(0,"app-query-collection-item",17),r.dc("selectQueryChange",function(t){return r.wc(e),r.gc(2).selectQueryChange.next(t)})("deleteQueryChange",function(t){return r.wc(e),r.gc(2).deleteQueryChange.next(t)})("deleteCollectionChange",function(t){return r.wc(e),r.gc(2).deleteCollectionChange.next(t)})("editCollectionChange",function(t){return r.wc(e),r.gc(2).editCollectionChange.next(t)})("exportCollectionChange",function(t){return r.wc(e),r.gc(2).exportCollectionChange.next(t)}),r.Vb()}2&e&&r.mc("collection",t.$implicit)}function es(e,t){1&e&&(r.Wb(0,"div",18),r.Gc(1,"\n "),r.Wb(2,"div",19),r.Gc(3,"\n "),r.Rb(4,"app-icon",20),r.Gc(5,"\n "),r.Vb(),r.Gc(6,"\n "),r.Wb(7,"div",21),r.Gc(8),r.hc(9,"translate"),r.Vb(),r.Gc(10,"\n "),r.Vb()),2&e&&(r.Eb(8),r.Ic("\n ",r.ic(9,1,"COLLECTIONS_EMPTY_TEXT"),"\n "))}function ts(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",2),r.Gc(1,"\n "),r.Wb(2,"div",3),r.Gc(3),r.hc(4,"translate"),r.Vb(),r.Gc(5,"\n "),r.Wb(6,"div",4),r.Gc(7,"\n "),r.Wb(8,"button",5),r.dc("click",function(){return r.wc(e),r.gc().importCollectionChange.next()}),r.hc(9,"translate"),r.Gc(10,"\n "),r.Rb(11,"app-icon",6),r.Gc(12,"\n "),r.Vb(),r.Gc(13,"\n "),r.Wb(14,"div",7),r.Gc(15,"\n "),r.Wb(16,"button",8),r.Gc(17,"\n "),r.Ub(18,9),r.Gc(19,"\n "),r.Ec(20,Ko,3,3,"ng-container",10),r.Gc(21,"\n "),r.Ec(22,Xo,3,3,"ng-container",10),r.Gc(23,"\n "),r.Ec(24,Yo,3,3,"ng-container",10),r.Gc(25,"\n "),r.Ec(26,Jo,3,3,"ng-container",10),r.Gc(27,"\n "),r.Tb(),r.Gc(28,"\n "),r.Vb(),r.Gc(29,"\n "),r.Wb(30,"nz-dropdown-menu",null,11),r.Gc(32,"\n "),r.Wb(33,"ul",12),r.Gc(34,"\n "),r.Wb(35,"li",13),r.dc("click",function(){return r.wc(e),r.gc().sortCollectionsChange.next({sortBy:"a-z"})}),r.Gc(36),r.hc(37,"translate"),r.Vb(),r.Gc(38,"\n "),r.Wb(39,"li",13),r.dc("click",function(){return r.wc(e),r.gc().sortCollectionsChange.next({sortBy:"z-a"})}),r.Gc(40),r.hc(41,"translate"),r.Vb(),r.Gc(42,"\n "),r.Wb(43,"li",13),r.dc("click",function(){return r.wc(e),r.gc().sortCollectionsChange.next({sortBy:"newest"})}),r.Gc(44),r.hc(45,"translate"),r.Vb(),r.Gc(46,"\n "),r.Wb(47,"li",13),r.dc("click",function(){return r.wc(e),r.gc().sortCollectionsChange.next({sortBy:"oldest"})}),r.Gc(48),r.hc(49,"translate"),r.Vb(),r.Gc(50,"\n "),r.Vb(),r.Gc(51,"\n "),r.Vb(),r.Gc(52,"\n "),r.Vb(),r.Gc(53,"\n "),r.Vb(),r.Gc(54,"\n "),r.Wb(55,"div",14),r.Gc(56,"\n "),r.Ec(57,Zo,1,1,"app-query-collection-item",15),r.Gc(58,"\n "),r.Ec(59,es,11,3,"div",16),r.Gc(60,"\n "),r.Vb(),r.Gc(61,"\n "),r.Vb()}if(2&e){const e=r.tc(31),t=r.gc();r.Eb(3),r.Hc(r.ic(4,16,"COLLECTIONS_TEXT")),r.Eb(5),r.mc("popper",r.ic(9,18,"COLLECTIONS_IMPORT_TEXT"))("popperPlacement","bottom"),r.Eb(8),r.mc("nzDropdownMenu",e),r.Eb(2),r.mc("ngSwitch",t.sortBy),r.Eb(2),r.mc("ngSwitchCase","a-z"),r.Eb(2),r.mc("ngSwitchCase","z-a"),r.Eb(2),r.mc("ngSwitchCase","newest"),r.Eb(2),r.mc("ngSwitchCase","oldest"),r.Eb(10),r.Ic("\n ",r.ic(37,20,"COLLECTIONS_SORT_BY_A_Z"),"\n "),r.Eb(4),r.Ic("\n ",r.ic(41,22,"COLLECTIONS_SORT_BY_Z_A"),"\n "),r.Eb(4),r.Ic("\n ",r.ic(45,24,"COLLECTIONS_SORT_BY_NEWEST"),"\n "),r.Eb(4),r.Ic("\n ",r.ic(49,26,"COLLECTIONS_SORT_BY_OLDEST"),"\n "),r.Eb(9),r.mc("ngForOf",t.collections)("ngForTrackBy",t.trackById),r.Eb(2),r.mc("ngIf",!(null!=t.collections&&t.collections.length))}}const ns=function(e){return{"query-collections-wrapper--close":e}};let is=(()=>{class e{constructor(){this.showCollections=!0,this.collections=[],this.sortBy="",this.loadCollectionsChange=new r.n,this.selectQueryChange=new r.n,this.deleteQueryChange=new r.n,this.deleteCollectionChange=new r.n,this.editCollectionChange=new r.n,this.exportCollectionChange=new r.n,this.importCollectionChange=new r.n,this.sortCollectionsChange=new r.n}ngOnInit(){this.loadCollectionsChange.next()}trackById(e,t){return t.id}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-query-collections"]],inputs:{showCollections:"showCollections",collections:"collections",sortBy:"sortBy"},outputs:{loadCollectionsChange:"loadCollectionsChange",selectQueryChange:"selectQueryChange",deleteQueryChange:"deleteQueryChange",deleteCollectionChange:"deleteCollectionChange",editCollectionChange:"editCollectionChange",exportCollectionChange:"exportCollectionChange",importCollectionChange:"importCollectionChange",sortCollectionsChange:"sortCollectionsChange"},decls:5,vars:4,consts:[[1,"query-collections-wrapper",3,"ngClass"],["class","query-collections__inner",4,"ngIf"],[1,"query-collections__inner"],[1,"query-collections__title"],[1,"query-collections__actions","clearfix"],["type","button","data-test-id","import-collection",1,"icon-button",3,"popper","popperPlacement","click"],["name","log-in"],[1,"query-collections__actions--right"],["nz-dropdown","","nzTrigger","click","type","button",1,"icon-button",3,"nzDropdownMenu"],[3,"ngSwitch"],[4,"ngSwitchCase"],["docViewerMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click"],[1,"query-collections__items-wrapper"],[3,"collection","selectQueryChange","deleteQueryChange","deleteCollectionChange","editCollectionChange","exportCollectionChange",4,"ngFor","ngForOf","ngForTrackBy"],["class","query-collections__empty",4,"ngIf"],[3,"collection","selectQueryChange","deleteQueryChange","deleteCollectionChange","editCollectionChange","exportCollectionChange"],[1,"query-collections__empty"],[1,"query-collections__empty-icon"],["name","sidebar","size","40"],[1,"query-collections__empty-description"]],template:function(e,t){1&e&&(r.Wb(0,"div",0),r.Gc(1,"\n "),r.Ec(2,ts,62,28,"div",1),r.Gc(3,"\n"),r.Vb(),r.Gc(4,"\n")),2&e&&(r.mc("ngClass",r.pc(2,ns,!t.showCollections)),r.Eb(2),r.mc("ngIf",t.showCollections))},directives:[o.l,o.o,Mo,Xi.a,Sr.a,o.q,o.r,Sr.c,Ve.c,Ki.a,Ve.e,o.n,Qo],pipes:[y.c],styles:[""]}),e})();n("QlJJ");const rs=(e,t=!1)=>{if(e){if(t)return e.refresh();if(e&&e.display.wrapper.offsetHeight&&e.display.lastWrapHeight!==e.display.wrapper.clientHeight)return e.refresh()}};n("+dQi"),n("iCJ0"),n("0t4y"),n("mki7");var os=n("79xS"),ss=n("NXyV"),as=n("R1ws"),cs=n("2Vo4");function ls(e){return function(t){var n=t||{},i=n.width?String(n.width):e.defaultWidth;return e.formats[i]||e.formats[e.defaultWidth]}}function us(e){return function(t,n){var i,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=r.width?String(r.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,c=r.width?String(r.width):e.defaultWidth;i=e.values[c]||e.values[a]}return i[e.argumentCallback?e.argumentCallback(t):t]}}function hs(e){return function(t,n){var i=String(t),r=n||{},o=r.width,s=i.match(o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth]);if(!s)return null;var a,c=s[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return a="[object Array]"===Object.prototype.toString.call(l)?function(e,t){for(var n=0;n{class e{constructor(e,t){this._change=new cs.a(this._locale),this.setLocale(e||ps),this.setDateLocale(t||null)}get localeChange(){return this._change.asObservable()}translate(e,t){let n=this._getObjectPath(this._locale,e);return"string"==typeof n?(t&&Object.keys(t).forEach(e=>n=n.replace(new RegExp(`%${e}%`,"g"),t[e])),n):e}setLocale(e){this._locale&&this._locale.locale===e.locale||(this._locale=e,this._change.next(e))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(e){this.dateLocale=e}getDateLocale(){return this.dateLocale}getLocaleData(e,t){const n=e?this._getObjectPath(this._locale,e):this._locale;return n||t||Object(os.b)(`Missing translations for "${e}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),n||t||this._getObjectPath(ds,e)||{}}_getObjectPath(e,t){let n=e;const i=t.split("."),r=i.length;let o=0;for(;n&&o{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)}}),e})();new r.s("date-config");var vs=n("R0Ic"),ys=n("OzZK");let ws=(()=>{class e{transform(e,t="px"){let n="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(e=>e===t)&&(n=t),"number"==typeof e?`${e}${n}`:`${e}`}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.Pb({name:"nzToCssUnit",type:e,pure:!0}),e})(),_s=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c]]}),e})();var Os=n("2Suw"),Cs=n("RwU8");const Es=["modalElement"];function Ss(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",16),r.dc("click",function(){return r.wc(e),r.gc().onCloseClick()}),r.Vb()}}function Ts(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"span",17),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("innerHTML",e.config.nzTitle,r.xc)}}function xs(e,t){}function ks(e,t){if(1&e&&r.Rb(0,"div",17),2&e){const e=r.gc();r.mc("innerHTML",e.config.nzContent,r.xc)}}function Is(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",18),r.dc("click",function(){return r.wc(e),r.gc().onCancel()}),r.Gc(1),r.Vb()}if(2&e){const e=r.gc();r.mc("nzLoading",!!e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),r.Fb("cdkFocusInitial","cancel"===e.config.nzAutofocus||null),r.Eb(1),r.Ic("\n ",e.config.nzCancelText||e.locale.cancelText,"\n ")}}function Ds(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",19),r.dc("click",function(){return r.wc(e),r.gc().onOk()}),r.Gc(1),r.Vb()}if(2&e){const e=r.gc();r.mc("nzType",e.config.nzOkType)("nzLoading",!!e.config.nzOkLoading)("disabled",e.config.nzOkDisabled)("nzDanger",e.config.nzOkDanger),r.Fb("cdkFocusInitial","ok"===e.config.nzAutofocus||null),r.Eb(1),r.Ic("\n ",e.config.nzOkText||e.locale.okText,"\n ")}}function zs(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",9),r.dc("click",function(){return r.wc(e),r.gc().onCloseClick()}),r.Vb()}}function js(e,t){1&e&&r.Rb(0,"div",10)}function As(e,t){}function Rs(e,t){if(1&e&&r.Rb(0,"div",11),2&e){const e=r.gc();r.mc("innerHTML",e.config.nzContent,r.xc)}}function Ns(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",12),r.dc("cancelTriggered",function(){return r.wc(e),r.gc().onCloseClick()})("okTriggered",function(){return r.wc(e),r.gc().onOkClick()}),r.Vb()}if(2&e){const e=r.gc();r.mc("modalRef",e.modalRef)}}function Ls(e,t){1&e&&r.kc(0)}const Ms=["*"],Fs=["nz-modal-close",""];function Ps(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"i",2),r.Gc(3,"\n "),r.Tb()),2&e){const e=t.$implicit;r.Eb(2),r.mc("nzType",e)}}const Vs=["nz-modal-footer",""];function Gs(e,t){if(1&e&&r.Rb(0,"div",5),2&e){const e=r.gc(3);r.mc("innerHTML",e.config.nzTitle,r.xc)}}function Bs(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",7),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc(4).onButtonClick(n)}),r.Gc(1),r.Vb()}if(2&e){const e=t.$implicit,n=r.gc(4);r.mc("hidden",!n.getButtonCallableProp(e,"show"))("nzLoading",n.getButtonCallableProp(e,"loading"))("disabled",n.getButtonCallableProp(e,"disabled"))("nzType",e.type)("nzDanger",e.danger)("nzShape",e.shape)("nzSize",e.size)("nzGhost",e.ghost),r.Eb(1),r.Ic("\n ",e.label,"\n ")}}function Ws(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,Bs,2,9,"button",6),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc(3);r.Eb(2),r.mc("ngForOf",e.buttons)}}function $s(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,Gs,1,1,"div",3),r.Gc(3,"\n "),r.Ec(4,Ws,4,1,"ng-container",4),r.Gc(5,"\n "),r.Tb()),2&e){const e=r.gc(2);r.Eb(2),r.mc("ngIf",!e.buttonsFooter),r.Eb(2),r.mc("ngIf",e.buttonsFooter)}}const Us=function(e,t){return{$implicit:e,modalRef:t}};function Hs(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,$s,6,2,"ng-container",2),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("nzStringTemplateOutlet",e.config.nzFooter)("nzStringTemplateOutletContext",r.qc(2,Us,e.config.nzComponentParams,e.modalRef))}}function qs(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",10),r.dc("click",function(){return r.wc(e),r.gc(2).onCancel()}),r.Gc(1),r.Vb()}if(2&e){const e=r.gc(2);r.mc("nzLoading",!!e.config.nzCancelLoading)("disabled",e.config.nzCancelDisabled),r.Fb("cdkFocusInitial","cancel"===e.config.nzAutofocus||null),r.Eb(1),r.Ic("\n ",e.config.nzCancelText||e.locale.cancelText,"\n ")}}function Qs(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",11),r.dc("click",function(){return r.wc(e),r.gc(2).onOk()}),r.Gc(1),r.Vb()}if(2&e){const e=r.gc(2);r.mc("nzType",e.config.nzOkType)("nzDanger",e.config.nzOkDanger)("nzLoading",!!e.config.nzOkLoading)("disabled",e.config.nzOkDisabled),r.Fb("cdkFocusInitial","ok"===e.config.nzAutofocus||null),r.Eb(1),r.Ic("\n ",e.config.nzOkText||e.locale.okText,"\n ")}}function Ks(e,t){if(1&e&&(r.Gc(0,"\n "),r.Ec(1,qs,2,4,"button",8),r.Gc(2,"\n "),r.Ec(3,Qs,2,6,"button",9),r.Gc(4,"\n ")),2&e){const e=r.gc();r.Eb(1),r.mc("ngIf",null!==e.config.nzCancelText),r.Eb(2),r.mc("ngIf",null!==e.config.nzOkText)}}const Xs=["nz-modal-title",""];function Ys(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"div",2),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("innerHTML",e.config.nzTitle,r.xc)}}const Js=()=>{};class Zs{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=Js,this.nzOnOk=Js,this.nzIconType="question-circle"}}const ea={modalContainer:Object(vs.l)("modalContainer",[Object(vs.i)("void, exit",Object(vs.j)({})),Object(vs.i)("enter",Object(vs.j)({})),Object(vs.k)("* => enter",Object(vs.e)(".24s",Object(vs.j)({}))),Object(vs.k)("* => void, * => exit",Object(vs.e)(".2s",Object(vs.j)({})))])};function ta(e,t,n){return void 0===e?void 0===t?n:t:e}function na(e){const{nzCentered:t,nzMask:n,nzMaskClosable:i,nzClosable:r,nzOkLoading:o,nzOkDisabled:s,nzCancelDisabled:a,nzCancelLoading:c,nzKeyboard:l,nzNoAnimation:u,nzContent:h,nzComponentParams:d,nzFooter:p,nzZIndex:f,nzWidth:g,nzWrapClassName:m,nzClassName:b,nzStyle:v,nzTitle:y,nzCloseIcon:w,nzMaskStyle:_,nzBodyStyle:O,nzOkText:C,nzCancelText:E,nzOkType:S,nzOkDanger:T,nzIconType:x,nzModalType:k,nzOnOk:I,nzOnCancel:D,nzAfterOpen:z,nzAfterClose:j,nzCloseOnNavigation:A,nzAutofocus:R}=e;return{nzCentered:t,nzMask:n,nzMaskClosable:i,nzClosable:r,nzOkLoading:o,nzOkDisabled:s,nzCancelDisabled:a,nzCancelLoading:c,nzKeyboard:l,nzNoAnimation:u,nzContent:h,nzComponentParams:d,nzFooter:p,nzZIndex:f,nzWidth:g,nzWrapClassName:m,nzClassName:b,nzStyle:v,nzTitle:y,nzCloseIcon:w,nzMaskStyle:_,nzBodyStyle:O,nzOkText:C,nzCancelText:E,nzOkType:S,nzOkDanger:T,nzIconType:x,nzModalType:k,nzOnOk:I,nzOnCancel:D,nzAfterOpen:z,nzAfterClose:j,nzCloseOnNavigation:A,nzAutofocus:R}}function ia(){throw Error("Attempting to attach modal content after content is already attached")}let ra=(()=>{class e extends at.a{constructor(e,t,n,i,o,s,a,c,l){super(),this.elementRef=e,this.focusTrapFactory=t,this.cdr=n,this.render=i,this.overlayRef=o,this.nzConfigService=s,this.config=a,this.animationType=l,this.animationStateChanged=new r.n,this.containerClick=new r.n,this.cancelTriggered=new r.n,this.okTriggered=new r.n,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new fe.a,this.document=c,this.dir=o.getDirection(),this.isStringContent="string"==typeof a.nzContent,this.nzConfigService.getConfigChangeEventForComponent("modal").pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const e=this.nzConfigService.getConfigForComponent("modal")||{};return!!ta(this.config.nzMask,e.nzMask,!0)}get maskClosable(){const e=this.nzConfigService.getConfigForComponent("modal")||{};return!!ta(this.config.nzMaskClosable,e.nzMaskClosable,!0)}onContainerClick(e){e.target===e.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onMousedown(){this.mouseDown=!0}onMouseup(){this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(e){return this.portalOutlet.hasAttached()&&ia(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this.portalOutlet.hasAttached()&&ia(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(e)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.elementRef.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const e=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const t=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),n=Object(_e.d)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(e,"transform-origin",`${n.left+t.width/2-e.offsetLeft}px ${n.top+t.height/2-e.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.elementRef.nativeElement.focus&&Promise.resolve().then(()=>this.elementRef.nativeElement.focus()))}trapFocus(){const e=this.elementRef.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady().then();else{const t=this.document.activeElement;t===e||e.contains(t)||e.focus()}}restoreFocus(){const e=this.elementFocusedBeforeModalWasOpened;if(e&&"function"==typeof e.focus){const t=this.document.activeElement,n=this.elementRef.nativeElement;t&&t!==this.document.body&&t!==n&&!n.contains(t)||e.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const e=this.modalElementRef.nativeElement,t=this.overlayRef.backdropElement;e.classList.add("zoom-enter"),e.classList.add("zoom-enter-active"),t&&(t.classList.add("fade-enter"),t.classList.add("fade-enter-active"))}setExitAnimationClass(){const e=this.modalElementRef.nativeElement;e.classList.add("zoom-leave"),e.classList.add("zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(e=!1){const t=this.overlayRef.backdropElement;if(t){if(this.animationDisabled()||e)return void t.classList.remove("ant-modal-mask");t.classList.add("fade-leave"),t.classList.add("fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const e=this.overlayRef.backdropElement,t=this.modalElementRef.nativeElement;e&&(e.classList.remove("fade-enter"),e.classList.remove("fade-enter-active")),t.classList.remove("zoom-enter"),t.classList.remove("zoom-enter-active"),t.classList.remove("zoom-leave"),t.classList.remove("zoom-leave-active")}setZIndexForBackdrop(){const e=this.overlayRef.backdropElement;e&&Object(_e.h)(this.config.nzZIndex)&&this.render.setStyle(e,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const e=this.overlayRef.backdropElement;if(e&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(t=>{this.render.removeStyle(e,t)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const t=Object.assign({},this.config.nzMaskStyle);Object.keys(t).forEach(n=>{this.render.setStyle(e,n,t[n])}),this.oldMaskStyle=t}}updateMaskClassname(){const e=this.overlayRef.backdropElement;e&&(this.showMask?e.classList.add("ant-modal-mask"):e.classList.remove("ant-modal-mask"))}onAnimationDone(e){"enter"===e.toState?this.trapFocus():"exit"===e.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(e)}onAnimationStart(e){"enter"===e.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===e.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(e)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(yt),r.Qb(r.h),r.Qb(r.G),r.Qb(ot.i),r.Qb(Os.a),r.Qb(Zs),r.Qb(void 0),r.Qb(String))},e.\u0275dir=r.Lb({type:e,features:[r.Bb]}),e})(),oa=(()=>{class e extends ra{constructor(e,t,n,i,o,s,a,c,l,u){super(t,n,i,o,s,a,c,l,u),this.i18n=e,this.config=c,this.cancelTriggered=new r.n,this.okTriggered=new r.n,this.i18n.localeChange.pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(ms),r.Qb(r.l),r.Qb(yt),r.Qb(r.h),r.Qb(r.G),r.Qb(ot.i),r.Qb(Os.a),r.Qb(Zs),r.Qb(o.d,8),r.Qb(as.a,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-modal-confirm-container"]],viewQuery:function(e,t){if(1&e&&(r.Kc(at.b,3),r.Kc(Es,3)),2&e){let e;r.sc(e=r.ec())&&(t.portalOutlet=e.first),r.sc(e=r.ec())&&(t.modalElementRef=e.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(e,t){1&e&&(r.Cc("@modalContainer.start",function(e){return t.onAnimationStart(e)})("@modalContainer.done",function(e){return t.onAnimationDone(e)}),r.dc("click",function(e){return t.onContainerClick(e)})("mouseup",function(){return t.onMouseup()})),2&e&&(r.Dc("@.disabled",t.config.nzNoAnimation)("@modalContainer",t.state),r.Gb(t.config.nzWrapClassName?"ant-modal-wrap "+t.config.nzWrapClassName:"ant-modal-wrap"),r.Bc("z-index",t.config.nzZIndex),r.Ib("ant-modal-wrap-rtl","rtl"===t.dir)("ant-modal-centered",t.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[r.Bb],decls:41,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle","mousedown"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0,1),r.dc("mousedown",function(){return t.onMousedown()}),r.hc(3,"nzToCssUnit"),r.Gc(4,"\n "),r.Wb(5,"div",2),r.Gc(6,"\n "),r.Ec(7,Ss,1,0,"button",3),r.Gc(8,"\n "),r.Wb(9,"div",4),r.Gc(10,"\n "),r.Wb(11,"div",5),r.Gc(12,"\n "),r.Wb(13,"div",6),r.Gc(14,"\n "),r.Rb(15,"i",7),r.Gc(16,"\n "),r.Wb(17,"span",8),r.Gc(18,"\n "),r.Ec(19,Ts,4,1,"ng-container",9),r.Gc(20,"\n "),r.Vb(),r.Gc(21,"\n "),r.Wb(22,"div",10),r.Gc(23,"\n "),r.Ec(24,xs,0,0,"ng-template",11),r.Gc(25,"\n "),r.Ec(26,ks,1,1,"div",12),r.Gc(27,"\n "),r.Vb(),r.Gc(28,"\n "),r.Vb(),r.Gc(29,"\n "),r.Wb(30,"div",13),r.Gc(31,"\n "),r.Ec(32,Is,2,4,"button",14),r.Gc(33,"\n "),r.Ec(34,Ds,2,6,"button",15),r.Gc(35,"\n "),r.Vb(),r.Gc(36,"\n "),r.Vb(),r.Gc(37,"\n "),r.Vb(),r.Gc(38,"\n "),r.Vb(),r.Gc(39,"\n "),r.Vb(),r.Gc(40,"\n ")),2&e&&(r.Eb(1),r.Bc("width",r.ic(3,11,null==t.config?null:t.config.nzWidth)),r.mc("ngClass",t.config.nzClassName)("ngStyle",t.config.nzStyle),r.Eb(6),r.mc("ngIf",t.config.nzClosable),r.Eb(2),r.mc("ngStyle",t.config.nzBodyStyle),r.Eb(6),r.mc("nzType",t.config.nzIconType),r.Eb(4),r.mc("nzStringTemplateOutlet",t.config.nzTitle),r.Eb(7),r.mc("ngIf",t.isStringContent),r.Eb(6),r.mc("ngIf",null!==t.config.nzCancelText),r.Eb(2),r.mc("ngIf",null!==t.config.nzOkText))},directives:function(){return[o.l,o.p,o.o,Ki.a,Ge.a,tr.b,at.b,da,ys.a,Cs.a]},pipes:function(){return[ws]},encapsulation:2,data:{animation:[ea.modalContainer]}}),e})(),sa=(()=>{class e extends ra{constructor(e,t,n,i,r,o,s,a,c){super(e,t,n,i,r,o,s,a,c),this.config=s}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(yt),r.Qb(r.h),r.Qb(r.G),r.Qb(ot.i),r.Qb(Os.a),r.Qb(Zs),r.Qb(o.d,8),r.Qb(as.a,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-modal-container"]],viewQuery:function(e,t){if(1&e&&(r.Kc(at.b,3),r.Kc(Es,3)),2&e){let e;r.sc(e=r.ec())&&(t.portalOutlet=e.first),r.sc(e=r.ec())&&(t.modalElementRef=e.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(e,t){1&e&&(r.Cc("@modalContainer.start",function(e){return t.onAnimationStart(e)})("@modalContainer.done",function(e){return t.onAnimationDone(e)}),r.dc("click",function(e){return t.onContainerClick(e)})("mouseup",function(){return t.onMouseup()})),2&e&&(r.Dc("@.disabled",t.config.nzNoAnimation)("@modalContainer",t.state),r.Gb(t.config.nzWrapClassName?"ant-modal-wrap "+t.config.nzWrapClassName:"ant-modal-wrap"),r.Bc("z-index",t.config.nzZIndex),r.Ib("ant-modal-wrap-rtl","rtl"===t.dir)("ant-modal-centered",t.config.nzCentered))},exportAs:["nzModalContainer"],features:[r.Bb],decls:22,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle","mousedown"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0,1),r.dc("mousedown",function(){return t.onMousedown()}),r.hc(3,"nzToCssUnit"),r.Gc(4,"\n "),r.Wb(5,"div",2),r.Gc(6,"\n "),r.Ec(7,zs,1,0,"button",3),r.Gc(8,"\n "),r.Ec(9,js,1,0,"div",4),r.Gc(10,"\n "),r.Wb(11,"div",5),r.Gc(12,"\n "),r.Ec(13,As,0,0,"ng-template",6),r.Gc(14,"\n "),r.Ec(15,Rs,1,1,"div",7),r.Gc(16,"\n "),r.Vb(),r.Gc(17,"\n "),r.Ec(18,Ns,1,1,"div",8),r.Gc(19,"\n "),r.Vb(),r.Gc(20,"\n "),r.Vb(),r.Gc(21,"\n ")),2&e&&(r.Eb(1),r.Bc("width",r.ic(3,9,null==t.config?null:t.config.nzWidth)),r.mc("ngClass",t.config.nzClassName)("ngStyle",t.config.nzStyle),r.Eb(6),r.mc("ngIf",t.config.nzClosable),r.Eb(2),r.mc("ngIf",t.config.nzTitle),r.Eb(2),r.mc("ngStyle",t.config.nzBodyStyle),r.Eb(4),r.mc("ngIf",t.isStringContent),r.Eb(3),r.mc("ngIf",null!==t.config.nzFooter))},directives:function(){return[o.l,o.p,o.o,at.b,da,ga,pa]},pipes:function(){return[ws]},encapsulation:2,data:{animation:[ea.modalContainer]}}),e})();class aa{constructor(e,t,n){this.overlayRef=e,this.config=t,this.containerInstance=n,this.componentInstance=null,this.state=0,this.afterClose=new fe.a,this.afterOpen=new fe.a,n.animationStateChanged.pipe(Object(p.a)(e=>"done"===e.phaseName&&"enter"===e.toState),Object(l.a)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),t.nzAfterOpen instanceof r.n&&t.nzAfterOpen.emit()}),n.animationStateChanged.pipe(Object(p.a)(e=>"done"===e.phaseName&&"exit"===e.toState),Object(l.a)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),n.containerClick.pipe(Object(l.a)(1)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),e.keydownEvents().pipe(Object(p.a)(e=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&e.keyCode===ct.f&&!Object(ct.p)(e))).subscribe(e=>{e.preventDefault(),this.trigger("cancel")}),n.cancelTriggered.subscribe(()=>this.trigger("cancel")),n.okTriggered.subscribe(()=>this.trigger("ok")),e.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),t.nzAfterClose instanceof r.n&&t.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(e){this.close(e)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(e){this.result=e,this.containerInstance.animationStateChanged.pipe(Object(p.a)(e=>"start"===e.phaseName),Object(l.a)(1)).subscribe(e=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},e.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1}updateConfig(e){Object.assign(this.config,e),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(e){return Object(me.a)(this,void 0,void 0,function*(){const t={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[e],n={ok:"nzOkLoading",cancel:"nzCancelLoading"}[e];if(!this.config[n])if(t instanceof r.n)t.emit(this.getContentComponent());else if("function"==typeof t){const e=t(this.getContentComponent());if(Object(_e.j)(e)){this.config[n]=!0;let t=!1;try{t=yield e}finally{this.config[n]=!1,this.closeWhitResult(t)}}else this.closeWhitResult(e)}})}closeWhitResult(e){!1!==e&&this.close(e)}_finishDialogClose(){this.state=2,this.overlayRef.dispose()}}let ca=(()=>{class e{constructor(e,t,n,i,r){this.overlay=e,this.injector=t,this.nzConfigService=n,this.parentModal=i,this.directionality=r,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new fe.a,this.afterAllClose=Object(ss.a)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe(Object(we.a)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const e=this.parentModal;return e?e._afterAllClosed:this.afterAllClosedAtThisLevel}create(e){return this.open(e.nzContent,e)}closeAll(){this.closeModals(this.openModals)}confirm(e={},t="confirm"){return"nzFooter"in e&&Object(os.b)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in e||(e.nzWidth=416),"nzMaskClosable"in e||(e.nzMaskClosable=!1),e.nzModalType="confirm",e.nzClassName=`ant-modal-confirm ant-modal-confirm-${t} ${e.nzClassName||""}`,this.create(e)}info(e={}){return this.confirmFactory(e,"info")}success(e={}){return this.confirmFactory(e,"success")}error(e={}){return this.confirmFactory(e,"error")}warning(e={}){return this.confirmFactory(e,"warning")}open(e,t){const n=function(e,t){return Object.assign(Object.assign({},t),e)}(t||{},new Zs),i=this.createOverlay(n),r=this.attachModalContainer(i,n),o=this.attachModalContent(e,r,i,n);return r.modalRef=o,this.openModals.push(o),o.afterClose.subscribe(()=>this.removeOpenModal(o)),o}removeOpenModal(e){const t=this.openModals.indexOf(e);t>-1&&(this.openModals.splice(t,1),this.openModals.length||this._afterAllClosed.next())}closeModals(e){let t=e.length;for(;t--;)e[t].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(e){const t=this.nzConfigService.getConfigForComponent("modal")||{},n=new ot.f({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:ta(e.nzCloseOnNavigation,t.nzCloseOnNavigation,!0),direction:ta(e.nzDirection,t.nzDirection,this.directionality.value)});return ta(e.nzMask,t.nzMask,!0)&&(n.backdropClass="ant-modal-mask"),this.overlay.create(n)}attachModalContainer(e,t){const n=r.t.create({parent:t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector||this.injector,providers:[{provide:ot.i,useValue:e},{provide:Zs,useValue:t}]}),i=new at.c("confirm"===t.nzModalType?oa:sa,t.nzViewContainerRef,n);return e.attach(i).instance}attachModalContent(e,t,n,i){const o=new aa(n,i,t);if(e instanceof r.O)t.attachTemplatePortal(new at.f(e,null,{$implicit:i.nzComponentParams,modalRef:o}));else if(Object(_e.h)(e)&&"string"!=typeof e){const n=this.createInjector(o,i),r=t.attachComponentPortal(new at.c(e,i.nzViewContainerRef,n));Object.assign(r.instance,i.nzComponentParams),o.componentInstance=r.instance}else t.attachStringContent();return o}createInjector(e,t){return r.t.create({parent:t&&t.nzViewContainerRef&&t.nzViewContainerRef.injector||this.injector,providers:[{provide:aa,useValue:e}]})}confirmFactory(e={},t){return"nzIconType"in e||(e.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[t]),"nzCancelText"in e||(e.nzCancelText=null),this.confirm(e,t)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.ac(ot.e),r.ac(r.t),r.ac(Os.a),r.ac(e,12),r.ac(pe.b,8))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),la=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.O))},e.\u0275dir=r.Lb({type:e,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),e})(),ua=(()=>{class e{constructor(e,t){this.nzModalRef=e,this.templateRef=t,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(aa,8),r.Qb(r.O))},e.\u0275dir=r.Lb({type:e,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),e})(),ha=(()=>{class e{constructor(e,t,n){this.cdr=e,this.modal=t,this.viewContainerRef=n,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new r.n,this.nzOnCancel=new r.n,this.nzAfterOpen=new r.n,this.nzAfterClose=new r.n,this.nzVisibleChange=new r.n,this.modalRef=null}set modalFooter(e){e&&this.setFooterWithTemplate(e)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const e=this.getConfig();this.modalRef=this.modal.create(e)}}close(e){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(e),this.modalRef=null)}destroy(e){this.close(e)}triggerOk(){var e;null===(e=this.modalRef)||void 0===e||e.triggerOk()}triggerCancel(){var e;null===(e=this.modalRef)||void 0===e||e.triggerCancel()}getContentComponent(){var e;return null===(e=this.modalRef)||void 0===e?void 0:e.getContentComponent()}getElement(){var e;return null===(e=this.modalRef)||void 0===e?void 0:e.getElement()}getModalRef(){return this.modalRef}setFooterWithTemplate(e){this.nzFooter=e,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const e=na(this);return e.nzViewContainerRef=this.viewContainerRef,this.nzContent||this.contentFromContentChild?e.nzContent=this.nzContent||this.contentFromContentChild:(e.nzContent=this.contentTemplateRef,Object(os.c)("Usage `` is deprecated, which will be removed in 12.0.0. Please instead use `` to declare the content of the modal.")),e}ngOnChanges(e){const{nzVisible:t}=e,n=Object(me.e)(e,["nzVisible"]);Object.keys(n).length&&this.modalRef&&this.modalRef.updateConfig(na(this)),t&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var e;null===(e=this.modalRef)||void 0===e||e._finishDialogClose()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(ca),r.Qb(r.S))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-modal"]],contentQueries:function(e,t,n){if(1&e&&(r.Jb(n,ua,3,r.O),r.Jb(n,la,3,r.O)),2&e){let e;r.sc(e=r.ec())&&(t.modalFooter=e.first),r.sc(e=r.ec())&&(t.contentFromContentChild=e.first)}},viewQuery:function(e,t){if(1&e&&r.Kc(r.O,3),2&e){let e;r.sc(e=r.ec())&&(t.contentTemplateRef=e.first)}},inputs:{nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzCloseIcon:"nzCloseIcon",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzFooter:"nzFooter",nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[r.Cb],ngContentSelectors:Ms,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0,"\n "),r.Ec(1,Ls,1,0,"ng-template"),r.Gc(2,"\n "))},encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzMask",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzMaskClosable",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzCloseOnNavigation",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzVisible",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzClosable",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzOkLoading",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzOkDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzCancelDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzCancelLoading",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzKeyboard",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzNoAnimation",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzCentered",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzOkDanger",void 0),e})(),da=(()=>{class e{constructor(e){this.config=e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Zs))},e.\u0275cmp=r.Kb({type:e,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:Fs,decls:6,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"span",0),r.Gc(2,"\n "),r.Ec(3,Ps,4,1,"ng-container",1),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n ")),2&e&&(r.Eb(3),r.mc("nzStringTemplateOutlet",t.config.nzCloseIcon))},directives:[tr.b,Ki.a,Ge.a],encapsulation:2,changeDetection:0}),e})(),pa=(()=>{class e{constructor(e,t){this.i18n=e,this.config=t,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new r.n,this.okTriggered=new r.n,this.destroy$=new fe.a,Array.isArray(t.nzFooter)&&(this.buttonsFooter=!0,this.buttons=t.nzFooter.map(fa)),this.i18n.localeChange.pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(e,t){const n=e[t],i=this.modalRef.getContentComponent();return"function"==typeof n?n.apply(e,i&&[i]):n}onButtonClick(e){if(!this.getButtonCallableProp(e,"loading")){const t=this.getButtonCallableProp(e,"onClick");e.autoLoading&&Object(_e.j)(t)&&(e.loading=!0,t.then(()=>e.loading=!1).catch(()=>e.loading=!1))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(ms),r.Qb(Zs))},e.\u0275cmp=r.Kb({type:e,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:Vs,decls:6,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(e,t){if(1&e&&(r.Gc(0,"\n "),r.Ec(1,Hs,4,5,"ng-container",0),r.Gc(2,"\n "),r.Ec(3,Ks,5,2,"ng-template",null,1,r.Fc),r.Gc(5,"\n ")),2&e){const e=r.tc(4);r.Eb(1),r.mc("ngIf",t.config.nzFooter)("ngIfElse",e)}},directives:[o.o,tr.b,o.n,ys.a,Cs.a,Ki.a],encapsulation:2}),e})();function fa(e){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},e)}let ga=(()=>{class e{constructor(e){this.config=e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Zs))},e.\u0275cmp=r.Kb({type:e,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:Xs,decls:6,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0),r.Gc(2,"\n "),r.Ec(3,Ys,4,1,"ng-container",1),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n ")),2&e&&(r.Eb(3),r.mc("nzStringTemplateOutlet",t.config.nzTitle))},directives:[tr.b],encapsulation:2,changeDetection:0}),e})(),ma=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},providers:[ca],imports:[[o.c,pe.a,ot.h,tr.a,at.e,bs,ys.c,Ge.b,_s,Zi.b,_s]]}),e})();var ba=n("VrN/"),va=n.n(ba),ya=n("3Pt+");const wa=["ref"];var _a;function Oa(e){return e?e.replace(/\r\n|\r/g,"\n"):e}let Ca=(()=>{let e=_a=class{constructor(e,t){this._differs=e,this._ngZone=t,this.className="",this.name="codemirror",this.autoFocus=!1,this.preserveScrollPosition=!1,this.cursorActivity=new r.n,this.focusChange=new r.n,this.scroll=new r.n,this.drop=new r.n,this.value="",this.disabled=!1,this.isFocused=!1,this.onChange=e=>{},this.onTouched=()=>{}}set options(e){this._options=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}get codeMirrorGlobal(){return this._codeMirror||(this._codeMirror="undefined"!=typeof CodeMirror?CodeMirror:va.a),this._codeMirror}ngAfterViewInit(){this.ref&&this._ngZone.runOutsideAngular(()=>{this.codeMirror=this.codeMirrorGlobal.fromTextArea(this.ref.nativeElement,this._options),this.codeMirror.on("cursorActivity",e=>this._ngZone.run(()=>this.cursorActive(e))),this.codeMirror.on("scroll",this.scrollChanged.bind(this)),this.codeMirror.on("blur",()=>this._ngZone.run(()=>this.focusChanged(!1))),this.codeMirror.on("focus",()=>this._ngZone.run(()=>this.focusChanged(!0))),this.codeMirror.on("change",(e,t)=>this._ngZone.run(()=>this.codemirrorValueChanged(e,t))),this.codeMirror.on("drop",(e,t)=>{this._ngZone.run(()=>this.dropFiles(e,t))}),this.codeMirror.setValue(this.value)})}ngDoCheck(){if(!this._differ)return;const e=this._differ.diff(this._options);e&&(e.forEachChangedItem(e=>this.setOptionIfChanged(e.key,e.currentValue)),e.forEachAddedItem(e=>this.setOptionIfChanged(e.key,e.currentValue)),e.forEachRemovedItem(e=>this.setOptionIfChanged(e.key,e.currentValue)))}ngOnDestroy(){this.codeMirror&&this.codeMirror.toTextArea()}codemirrorValueChanged(e,t){"setValue"!==t.origin&&(this.value=e.getValue(),this.onChange(this.value))}setOptionIfChanged(e,t){this.codeMirror&&this.codeMirror.setOption(e,t)}focusChanged(e){this.onTouched(),this.isFocused=e,this.focusChange.emit(e)}scrollChanged(e){this.scroll.emit(e.getScrollInfo())}cursorActive(e){this.cursorActivity.emit(e)}dropFiles(e,t){this.drop.emit([e,t])}writeValue(e){if(null==e)return;if(!this.codeMirror)return void(this.value=e);const t=this.codeMirror.getValue();if(e!==t&&Oa(t)!==Oa(e))if(this.value=e,this.preserveScrollPosition){const e=this.codeMirror.getScrollInfo();this.codeMirror.setValue(this.value),this.codeMirror.scrollTo(e.left,e.top)}else this.codeMirror.setValue(this.value)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.setOptionIfChanged("readOnly",this.disabled)}};return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.v),r.Qb(r.B))},e.\u0275cmp=r.Kb({type:e,selectors:[["ngx-codemirror"]],viewQuery:function(e,t){if(1&e&&r.Kc(wa,3),2&e){let e;r.sc(e=r.ec())&&(t.ref=e.first)}},inputs:{className:"className",name:"name",autoFocus:"autoFocus",preserveScrollPosition:"preserveScrollPosition",options:"options"},outputs:{cursorActivity:"cursorActivity",focusChange:"focusChange",scroll:"scroll",drop:"drop"},features:[r.Db([{provide:ya.j,useExisting:Object(r.W)(()=>_a),multi:!0}])],decls:3,vars:7,consts:[["autocomplete","off",3,"name","autofocus"],["ref",""]],template:function(e,t){1&e&&(r.Wb(0,"textarea",0,1),r.Gc(2," "),r.Vb()),2&e&&(r.Hb("ngx-codemirror ",t.className,""),r.Ib("ngx-codemirror--focused",t.isFocused),r.mc("name",t.name)("autofocus",t.autoFocus))},encapsulation:2,changeDetection:0}),e})(),Ea=(()=>{let e=class{};return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)}}),e})();const Sa=["editor"],Ta=["subEnvironmentTitle"];function xa(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",4),r.Gc(2,"\n "),r.Wb(3,"div",5),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n ")),2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"ENVIRONMENTS_MANAGER_TEXT")),r.Eb(2),r.Ic("\n ",r.ic(7,4,"ENVIRONMENTS_SUB_TEXT"),"\n "))}const ka=function(e){return{"environment-manager__list-item--selected":e}};function Ia(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",22),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc(3).selectEnvironment(n.id)})("dblclick",function(){return r.wc(e),r.gc(3).setFocusOnEnvironmentTitle()}),r.Gc(1,"\n "),r.Rb(2,"app-icon",23),r.Gc(3),r.Vb()}if(2&e){const e=t.$implicit,n=r.gc(3);r.mc("ngClass",r.pc(2,ka,n.selectedEnvironmentId===e.id)),r.Eb(3),r.Ic("\n ",e.title,"\n ")}}function Da(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,Ia,4,4,"div",21),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc(2);r.Eb(2),r.mc("ngForOf",e.environments.subEnvironments)("ngForTrackBy",e.trackById)}}function za(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",24),r.Gc(1,"\n "),r.Wb(2,"div",25),r.Gc(3,"\n "),r.Wb(4,"input",26,27),r.dc("ngModelChange",function(t){return r.wc(e),r.gc(2).editorTitle=t})("ngModelChange",function(t){return r.wc(e),r.gc(2).onTitleChange(t)}),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Wb(9,"div",28),r.Gc(10,"\n "),r.Wb(11,"button",29),r.dc("click",function(){return r.wc(e),r.gc(2).onDeleteSubEnvironment()}),r.Gc(12,"\n "),r.Rb(13,"app-icon",30),r.Gc(14,"\n "),r.Vb(),r.Gc(15,"\n "),r.Vb(),r.Gc(16,"\n "),r.Vb()}if(2&e){const e=r.gc(2);r.Eb(4),r.nc("placeholder",r.ic(6,2,"SUB_ENVIRONMENT_TITLE_PLACEHOLDER")),r.mc("ngModel",e.editorTitle)}}function ja(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",6),r.Gc(2,"\n "),r.Wb(3,"div",7),r.Gc(4,"\n "),r.Wb(5,"div",8),r.Gc(6,"\n "),r.Wb(7,"div",9),r.Gc(8,"\n "),r.Wb(9,"div",10),r.Gc(10,"\n "),r.Wb(11,"div",11),r.dc("click",function(){return r.wc(e),r.gc().selectEnvironment("base")}),r.Gc(12),r.hc(13,"translate"),r.Vb(),r.Gc(14,"\n "),r.Vb(),r.Gc(15,"\n "),r.Wb(16,"div",10),r.Gc(17,"\n "),r.Wb(18,"div",12),r.Gc(19),r.hc(20,"translate"),r.Vb(),r.Gc(21,"\n "),r.Wb(22,"div",13),r.Gc(23,"\n "),r.Ec(24,Da,4,2,"ng-container",14),r.Gc(25,"\n "),r.Vb(),r.Gc(26,"\n "),r.Vb(),r.Gc(27,"\n "),r.Wb(28,"div",15),r.Gc(29,"\n "),r.Wb(30,"button",16),r.dc("click",function(){return r.wc(e),r.gc().addSubEnvironmentChange.next()}),r.Gc(31),r.hc(32,"translate"),r.Vb(),r.Gc(33,"\n "),r.Vb(),r.Gc(34,"\n "),r.Vb(),r.Gc(35,"\n "),r.Wb(36,"div",17),r.Gc(37,"\n "),r.Ec(38,za,17,4,"div",18),r.Gc(39,"\n "),r.Wb(40,"ngx-codemirror",19,20),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().editorContent=t})("ngModelChange",function(t){return r.wc(e),r.gc().onEditorChange(t)}),r.Vb(),r.Gc(42,"\n "),r.Vb(),r.Gc(43,"\n "),r.Vb(),r.Gc(44,"\n "),r.Vb(),r.Gc(45,"\n "),r.Vb(),r.Gc(46,"\n ")}if(2&e){const e=r.gc();r.Eb(11),r.mc("ngClass",r.pc(15,ka,"base"===e.selectedEnvironmentId)),r.Eb(1),r.Hc(r.ic(13,9,"BASE_ENVIRONMENT_TEXT")),r.Eb(7),r.Hc(r.ic(20,11,"SUB_ENVIRONMENTS_HEADER")),r.Eb(3),r.mc("sortablejsOptions",e.sortableOptions),r.Eb(2),r.mc("ngIf",null==e.environments||null==e.environments.subEnvironments?null:e.environments.subEnvironments.length),r.Eb(7),r.Hc(r.ic(32,13,"ADD_SUB_ENVIRONMENT_BUTTON")),r.Eb(7),r.mc("ngIf","base"!==e.selectedEnvironmentId),r.Eb(2),r.mc("options",e.jsonEditorConfig)("ngModel",e.editorContent)}}function Aa(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",31),r.Gc(2,"\n "),r.Wb(3,"div",32),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6,"\n "),r.Wb(7,"button",33),r.dc("click",function(){return r.wc(e),r.gc().toggleDialogChange.next(!1)}),r.Gc(8),r.hc(9,"translate"),r.Vb(),r.Gc(10,"\n "),r.Vb(),r.Gc(11,"\n ")}2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"ENVIRONMENT_VARIABLE_TIP")),r.Eb(4),r.Hc(r.ic(9,4,"SAVE_BUTTON")))}window.jsonlint=window.jsonlint||{parser:{parse:function(e){try{return JSON.parse(e)}catch(t){this.parseError&&this.parseError("Invalid JSON",{loc:{first_line:1,first_column:1,last_line:1,last_column:1}})}}}};let Ra=(()=>{class e{constructor(){this.showEnvironmentManager=!1,this.toggleDialogChange=new r.n,this.baseEnvironmentJsonChange=new r.n,this.subEnvironmentJsonChange=new r.n,this.subEnvironmentTitleChange=new r.n,this.addSubEnvironmentChange=new r.n,this.deleteSubEnvironmentChange=new r.n,this.repositionSubEnvironmentsChange=new r.n,this.jsonEditorConfig={mode:"application/json",json:!0,lint:!0,lineWrapping:!0,lineNumbers:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,autoCloseBrackets:!0,keyMap:"sublime",theme:"default environments-editor",gutters:["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{}},this.selectedEnvironmentId="base",this.editorContent="{}",this.editorTitle="",this.sortableOptions={}}ngOnInit(){this.environments&&this.selectEnvironment(this.environments.activeSubEnvironment||"base"),this.sortableOptions={onUpdate:e=>{this.repositionSubEnvironmentsChange.emit({currentPosition:e.oldIndex,newPosition:e.newIndex})}}}ngDoCheck(){rs(this.editor&&this.editor.codeMirror)}ngOnChanges(e){if(e.showEnvironmentManager&&e.showEnvironmentManager.currentValue){const e=setTimeout(()=>{rs(this.editor&&this.editor.codeMirror,!0),clearTimeout(e)},300)}e.environments&&e.environments.currentValue&&this.selectEnvironment(this.environments.activeSubEnvironment||"base")}onEditorChange(e){try{JSON.parse(e),"base"===this.selectedEnvironmentId?this.baseEnvironmentJsonChange.next({value:e}):this.subEnvironmentJsonChange.next({id:this.selectedEnvironmentId,value:e})}catch(t){}}onTitleChange(e){this.subEnvironmentTitleChange.next({id:this.selectedEnvironmentId,value:e})}selectEnvironment(e){this.selectedEnvironmentId=e,this.selectedEnvironment="base"===this.selectedEnvironmentId?this.environments.base:this.environments.subEnvironments.find(e=>e.id===this.selectedEnvironmentId),this.selectedEnvironment&&(this.editorContent=this.selectedEnvironment.variablesJson,this.editorTitle=this.selectedEnvironment.title)}setFocusOnEnvironmentTitle(){this.subEnvironmentTitleEl.nativeElement.focus()}onDeleteSubEnvironment(){confirm("Are you sure you want to delete this environment?")&&(this.deleteSubEnvironmentChange.next({id:this.selectedEnvironmentId}),this.selectEnvironment("base"))}trackById(e,t){return t.id}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-environment-manager"]],viewQuery:function(e,t){if(1&e&&(r.Kc(Sa,1),r.Kc(Ta,1)),2&e){let e;r.sc(e=r.ec())&&(t.editor=e.first),r.sc(e=r.ec())&&(t.subEnvironmentTitleEl=e.first)}},inputs:{environments:"environments",showEnvironmentManager:"showEnvironmentManager"},outputs:{toggleDialogChange:"toggleDialogChange",baseEnvironmentJsonChange:"baseEnvironmentJsonChange",subEnvironmentJsonChange:"subEnvironmentJsonChange",subEnvironmentTitleChange:"subEnvironmentTitleChange",addSubEnvironmentChange:"addSubEnvironmentChange",deleteSubEnvironmentChange:"deleteSubEnvironmentChange",repositionSubEnvironmentsChange:"repositionSubEnvironmentsChange"},features:[r.Cb],decls:12,vars:5,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzWidth","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],[1,"app-dialog-section"],[1,"environment-manager-wrapper"],[1,"environment-manager__list-wrapper"],[1,"environment-manager__list"],[1,"environment-manager__list-item",3,"ngClass","click"],[1,"environment-manager__list-title"],["sortablejs","",1,"environment-manager__list-inner",3,"sortablejsOptions"],[4,"ngIf"],[1,"environment-manager__list-actions"],[1,"app-button","full-width",3,"click"],[1,"environment-manager__editor-wrapper"],["class","environment-manager__editor-meta",4,"ngIf"],[1,"environments-editor-textarea",3,"options","ngModel","ngModelChange"],["editor",""],["class","environment-manager__list-item",3,"ngClass","click","dblclick",4,"ngFor","ngForOf","ngForTrackBy"],[1,"environment-manager__list-item",3,"ngClass","click","dblclick"],["name","more-vertical"],[1,"environment-manager__editor-meta"],[1,"environment-manager__editor-meta-input-wrapper"],["type","text",1,"environment-manager__editor-meta-input",3,"placeholder","ngModel","ngModelChange"],["subEnvironmentTitle",""],[1,"environment-manager__editor-meta-actions"],[1,"app-button","icon-button",3,"click"],["name","trash-2"],[1,"app-dialog-footer"],[1,"environment-manager__tips","left"],["track-id","save_environments",1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(r.Wb(0,"nz-modal",0),r.dc("nzVisibleChange",function(e){return t.toggleDialogChange.next(e)})("nzOnCancel",function(e){return t.toggleDialogChange.next(e)}),r.Gc(1,"\n "),r.Ec(2,xa,9,6,"ng-template",null,1,r.Fc),r.Gc(4,"\n\n "),r.Ec(5,ja,47,17,"ng-template",null,2,r.Fc),r.Gc(7,"\n\n "),r.Ec(8,Aa,12,6,"ng-template",null,3,r.Fc),r.Gc(10,"\n"),r.Vb(),r.Gc(11,"\n")),2&e){const e=r.tc(3),n=r.tc(6),i=r.tc(9);r.mc("nzVisible",t.showEnvironmentManager)("nzTitle",e)("nzContent",n)("nzFooter",i)("nzWidth",870)}},directives:[ha,o.l,qi,o.o,Ca,ya.l,ya.o,o.n,Xi.a,ya.e],pipes:[y.c],styles:[""]}),e})();n("MFua");var Na=n("lR5k");function La(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",4),r.Gc(2,"\n "),r.Wb(3,"div",5),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n ")),2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"PLUGINS_TEXT")),r.Eb(2),r.Ic("\n ",r.ic(7,4,"PLUGINS_SUB_TEXT"),"\n "))}const Ma=function(e){return{"plugin-manager__list-item--selected":e}};function Fa(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",13),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc(2).onSelectPlugin(n)}),r.Gc(1,"\n "),r.Wb(2,"div",14),r.Gc(3),r.Wb(4,"div",15),r.Gc(5),r.Vb(),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Wb(8,"div",16),r.Gc(9),r.Vb(),r.Gc(10,"\n "),r.Vb()}if(2&e){const e=t.$implicit,n=r.gc(2);r.mc("ngClass",r.pc(4,Ma,n.selectedPluginItem&&n.selectedPluginItem.name===e.name)),r.Eb(3),r.Ic("\n ",(null==e||null==e.manifest?null:e.manifest.display_name)||e.name,"\n "),r.Eb(2),r.Ic("\n ",(null==e||null==e.manifest?null:e.manifest.version)||e.version,"\n "),r.Eb(4),r.Ic("\n ",(null==e||null==e.manifest?null:e.manifest.description)||e.description,"\n ")}}function Pa(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",24),r.dc("click",function(){r.wc(e);const t=r.gc(3);return t.onAddPlugin(t.selectedPluginItem.name)}),r.Gc(1,"\n "),r.Rb(2,"app-icon",25),r.Gc(3),r.hc(4,"translate"),r.Vb()}2&e&&(r.Eb(3),r.Ic("\n ",r.ic(4,1,"PLUGIN_ADD_BUTTON"),"\n "))}function Va(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",26),r.dc("click",function(){r.wc(e);const t=r.gc(3);return t.onRemovePlugin(t.selectedPluginItem.name)}),r.Gc(1,"\n "),r.Rb(2,"app-icon",27),r.Gc(3),r.hc(4,"translate"),r.Vb()}2&e&&(r.Eb(3),r.Ic("\n ",r.ic(4,1,"PLUGIN_REMOVE_BUTTON"),"\n "))}function Ga(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",28),r.dc("click",function(){return r.wc(e),r.gc(3).onRestartApp()}),r.Gc(1),r.hc(2,"translate"),r.Vb()}2&e&&(r.Eb(1),r.Ic("\n ",r.ic(2,1,"RESTART_TEXT"),"\n "))}function Ba(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"div",17),r.Gc(3),r.Wb(4,"div",18),r.hc(5,"translate"),r.Gc(6),r.Vb(),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Wb(9,"div",19),r.Gc(10,"\n "),r.Ec(11,Pa,5,3,"button",20),r.Gc(12,"\n "),r.Ec(13,Va,5,3,"button",21),r.Gc(14,"\n "),r.Ec(15,Ga,3,3,"button",22),r.Gc(16,"\n "),r.Vb(),r.Gc(17,"\n "),r.Rb(18,"div",23),r.Gc(19,"\n "),r.Tb()),2&e){const e=r.gc(2);r.Eb(3),r.Ic("\n ",(null==e.selectedPluginItem||null==e.selectedPluginItem.manifest?null:e.selectedPluginItem.manifest.display_name)||e.selectedPluginItem.name,"\n "),r.Eb(1),r.Fb("title",r.ic(5,7,"PLUGIN_UNIQUE_NAME_TEXT")),r.Eb(2),r.Ic("\n ",e.selectedPluginItem.name,"\n "),r.Eb(5),r.mc("ngIf",!e.isPluginInstalled(e.selectedPluginItem.name)),r.Eb(2),r.mc("ngIf",e.isPluginInstalled(e.selectedPluginItem.name)),r.Eb(2),r.mc("ngIf",e.shouldRestart),r.Eb(3),r.mc("data",e.selectedPluginItem.summary||"")}}function Wa(e,t){if(1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",6),r.Gc(2,"\n "),r.Wb(3,"div",7),r.Gc(4,"\n "),r.Wb(5,"div",8),r.Gc(6,"\n "),r.Wb(7,"div",9),r.Gc(8,"\n "),r.Ec(9,Fa,11,6,"div",10),r.hc(10,"async"),r.Gc(11,"\n "),r.Vb(),r.Gc(12,"\n "),r.Wb(13,"div",11),r.Gc(14,"\n "),r.Ec(15,Ba,20,9,"ng-container",12),r.Gc(16,"\n "),r.Vb(),r.Gc(17,"\n "),r.Vb(),r.Gc(18,"\n "),r.Vb(),r.Gc(19,"\n "),r.Vb(),r.Gc(20,"\n ")),2&e){const e=r.gc();r.Eb(9),r.mc("ngForOf",r.ic(10,3,e.remotePlugins$))("ngForTrackBy",e.trackByName),r.Eb(6),r.mc("ngIf",e.selectedPluginItem)}}function $a(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",29),r.Gc(2,"\n "),r.Wb(3,"a",30),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6,"\n "),r.Wb(7,"button",31),r.dc("click",function(){return r.wc(e),r.gc().toggleDialogChange.next(!1)}),r.Gc(8),r.hc(9,"translate"),r.Vb(),r.Gc(10,"\n "),r.Vb(),r.Gc(11,"\n ")}2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"PLUGIN_CREATE_BUTTON")),r.Eb(4),r.Hc(r.ic(9,4,"SAVE_BUTTON")))}let Ua=(()=>{class e{constructor(e){this.pluginRegistry=e,this.showPluginManager=!1,this.toggleDialogChange=new r.n,this.settingsJsonChange=new r.n,this.shouldRestart=!1,this.remotePlugins$=this.pluginRegistry.getRemotePluginList().pipe(Object(d.a)(e=>Object(v.a)(null)),Object(c.a)(e=>{if(e)return e.items}))}ngOnInit(){}onSelectPlugin(e){this.selectedPluginItem=e}isPluginInstalled(e){return!!this.settings["plugin.list"]&&this.settings["plugin.list"].some(t=>{const n=this.pluginRegistry.getPluginInfoFromString(t);return!!n&&n.name===e})}onAddPlugin(e){const t=JSON.parse(JSON.stringify(this.settings));t["plugin.list"]=t["plugin.list"]||[],t["plugin.list"].push(e),this.settingsJsonChange.next(JSON.stringify(t)),this.shouldRestart=!0}onRemovePlugin(e){const t=JSON.parse(JSON.stringify(this.settings));t["plugin.list"]=(t["plugin.list"]||[]).filter(t=>{const n=this.pluginRegistry.getPluginInfoFromString(t);if(n)return e!==n.name}),this.settingsJsonChange.next(JSON.stringify(t)),this.shouldRestart=!0}onRestartApp(){location.reload()}trackByName(e,t){return t.name}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(R.PluginRegistryService))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-plugin-manager"]],inputs:{showPluginManager:"showPluginManager",settings:"settings"},outputs:{toggleDialogChange:"toggleDialogChange",settingsJsonChange:"settingsJsonChange"},decls:12,vars:5,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzWidth","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],[1,"app-dialog-section"],[1,"plugin-manager-wrapper"],[1,"plugin-manager__list"],["class","plugin-manager__list-item",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"plugin-manager__item-details"],[4,"ngIf"],[1,"plugin-manager__list-item",3,"ngClass","click"],[1,"plugin-manager__list-item-name"],[1,"plugin-manager__list-item-version"],[1,"plugin-manager__list-item-description"],[1,"plugin-manager__item-details-name"],[1,"plugin-manager__item-details-unique-name"],[1,"plugin-manager__item-details-actions"],["class","app-button active-grey",3,"click",4,"ngIf"],["class","app-button active-destructive",3,"click",4,"ngIf"],["class","app-button",3,"click",4,"ngIf"],["markdown","",1,"plugin-manager__item-details-summary",3,"data"],[1,"app-button","active-grey",3,"click"],["name","plus-circle"],[1,"app-button","active-destructive",3,"click"],["name","x-circle"],[1,"app-button",3,"click"],[1,"app-dialog-footer"],["href","https://altair.sirmuel.design/docs/plugins/writing-plugin.html","target","_blank",1,"app-button","left"],[1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(r.Wb(0,"nz-modal",0),r.dc("nzVisibleChange",function(e){return t.toggleDialogChange.next(e)})("nzOnCancel",function(e){return t.toggleDialogChange.next(e)}),r.Gc(1,"\n "),r.Ec(2,La,9,6,"ng-template",null,1,r.Fc),r.Gc(4,"\n\n "),r.Ec(5,Wa,21,5,"ng-template",null,2,r.Fc),r.Gc(7,"\n\n "),r.Ec(8,$a,12,6,"ng-template",null,3,r.Fc),r.Gc(10,"\n"),r.Vb(),r.Gc(11,"\n")),2&e){const e=r.tc(3),n=r.tc(6),i=r.tc(9);r.mc("nzVisible",t.showPluginManager)("nzTitle",e)("nzContent",n)("nzFooter",i)("nzWidth",870)}},directives:[ha,o.n,o.o,o.l,Na.a,Xi.a],pipes:[y.c,o.b],encapsulation:2}),e})();n("m3Q/"),n("SJVZ"),n("y8iW"),n("rt3J"),n("jXCp");var Ha=n("BGZm");const qa=n("oqE9"),Qa=qa.schema,Ka=e=>{const t=Object(Ha.g)(e);return qa(t)};function Xa(e){const t=e&&e.parentNode;t&&t.removeChild(e)}const Ya=(e,t)=>{if(e.$ref){const n=e.$ref.split("/");let i=t;return n.forEach(e=>{"#"===e?i=t:i&&(i=i[e])}),i}},Ja=e=>{const t=e.getDoc().getCursor(),n=e.getTokenAt(t),i=n.start,r=t.line,o=n.string;let s="",a="";if("string property"!==n.type)return null;if("object"!=typeof qa.schema)return null;"string"===n.state.lastType&&(s=o.substr(0,1),a=o.substr(-1,1));const c=qa.schema.properties,l=Object.keys(c).map(e=>{return{...c[e],text:`${s}${e}${a}`,displayText:e,description:c[e].description+"\nType: "+(t=c[e],n=qa.schema,t.type?t.type:null===(i=Ya(t,n))||void 0===i?void 0:i.type)};var t,n,i}),u=l.filter(e=>e.displayText.indexOf(o.replace(new RegExp(`(^${s})|(${a}$)`,"g"),""))>-1),h={list:u.length?u:l,from:ba.Pos(r,i),to:ba.Pos(r,n.end)};let d;return ba.on(h,"close",function(){Xa(d)}),ba.on(h,"update",function(){Xa(d)}),ba.on(h,"select",function(e,t){Xa(d);const n=e.description;n&&t.parentElement&&(d=function(e,t,n){const i=function(e,t,...n){const i=document.createElement("div");return t&&(i.className=t),n.forEach(e=>{"string"==typeof e&&(e=document.createTextNode(e)),i.appendChild(e)}),i}(0,"CodeMirror-Tern-tooltip",n);return i.style.left=e+"px",i.style.top=t+"px",document.body.appendChild(i),i}(t.parentElement.getBoundingClientRect().right+window.pageXOffset,t.parentElement.getBoundingClientRect().top+window.pageYOffset,n),d&&(d.className+=" CodeMirror-Tern-hint-doc"))}),h},Za=["*"];function ec(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"i",6),r.Gc(3,"\n "),r.Tb()),2&e){const e=t.$implicit,n=r.gc(2);r.Eb(2),r.mc("nzType",e||"right")("nzRotate",n.nzActive?90:0)}}function tc(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,ec,4,2,"ng-container",2),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("nzStringTemplateOutlet",e.nzExpandedIcon)}}function nc(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Hc(e.nzHeader)}}function ic(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.nzExtra)}}function rc(e,t){if(1&e&&(r.Wb(0,"div",7),r.Gc(1,"\n "),r.Ec(2,ic,2,1,"ng-container",2),r.Gc(3,"\n "),r.Vb()),2&e){const e=r.gc();r.Eb(2),r.mc("nzStringTemplateOutlet",e.nzExtra)}}let oc=(()=>{class e{constructor(e,t,n,i){this.nzConfigService=e,this.cdr=t,this.elementRef=n,this.directionality=i,this._nzModuleName="collapse",this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new fe.a,this.elementRef.nativeElement.classList.add("ant-collapse"),this.nzConfigService.getConfigChangeEventForComponent("collapse").pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(e){this.listOfNzCollapsePanelComponent.push(e)}removePanel(e){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(e),1)}click(e){this.nzAccordion&&!e.nzActive&&this.listOfNzCollapsePanelComponent.filter(t=>t!==e).forEach(e=>{e.nzActive&&(e.nzActive=!1,e.nzActiveChange.emit(e.nzActive),e.markForCheck())}),e.nzActive=!e.nzActive,e.nzActiveChange.emit(e.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.h),r.Qb(r.l),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-collapse"]],hostVars:10,hostBindings:function(e,t){2&e&&r.Ib("ant-collapse-icon-position-left","left"===t.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===t.nzExpandIconPosition)("ant-collapse-ghost",t.nzGhost)("ant-collapse-borderless",!t.nzBordered)("ant-collapse-rtl","rtl"===t.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:Za,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0,"\n "),r.kc(1),r.Gc(2,"\n "))},encapsulation:2,changeDetection:0}),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzAccordion",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzBordered",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzGhost",void 0),e})(),sc=(()=>{class e{constructor(e,t,n,i,o){this.nzConfigService=e,this.cdr=t,this.nzCollapseComponent=n,this.elementRef=i,this.noAnimation=o,this._nzModuleName="collapsePanel",this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new r.n,this.destroy$=new fe.a,this.elementRef.nativeElement.classList.add("ant-collapse-item"),this.nzConfigService.getConfigChangeEventForComponent("collapsePanel").pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}clickHeader(){this.nzDisabled||this.nzCollapseComponent.click(this)}markForCheck(){this.cdr.markForCheck()}ngOnInit(){this.nzCollapseComponent.addPanel(this)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.h),r.Qb(oc,1),r.Qb(r.l),r.Qb(Zi.a,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-collapse-panel"]],hostVars:6,hostBindings:function(e,t){2&e&&r.Ib("ant-collapse-no-arrow",!t.nzShowArrow)("ant-collapse-item-active",t.nzActive)("ant-collapse-item-disabled",t.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:Za,decls:18,vars:8,consts:[["role","tab",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(e,t){1&e&&(r.lc(),r.Gc(0,"\n "),r.Wb(1,"div",0),r.dc("click",function(){return t.clickHeader()}),r.Gc(2,"\n "),r.Ec(3,tc,4,1,"ng-container",1),r.Gc(4,"\n "),r.Ec(5,nc,2,1,"ng-container",2),r.Gc(6,"\n "),r.Ec(7,rc,4,1,"div",3),r.Gc(8,"\n "),r.Vb(),r.Gc(9,"\n "),r.Wb(10,"div",4),r.Gc(11,"\n "),r.Wb(12,"div",5),r.Gc(13,"\n "),r.kc(14),r.Gc(15,"\n "),r.Vb(),r.Gc(16,"\n "),r.Vb(),r.Gc(17,"\n ")),2&e&&(r.Eb(1),r.Fb("aria-expanded",t.nzActive),r.Eb(2),r.mc("ngIf",t.nzShowArrow),r.Eb(2),r.mc("nzStringTemplateOutlet",t.nzHeader),r.Eb(2),r.mc("ngIf",t.nzExtra),r.Eb(3),r.Ib("ant-collapse-content-active",t.nzActive),r.mc("@.disabled",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("@collapseMotion",t.nzActive?"expanded":"hidden"))},directives:[o.o,tr.b,Ge.a],encapsulation:2,data:{animation:[Yi.a]},changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzActive",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzShowArrow",void 0),e})(),ac=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,Ge.b,tr.a,Zi.b]]}),e})();n("jYNx");var cc=n("jtHE");let lc=(()=>{class e{constructor(e,t,n,i,r,o,s){this.elementRef=e,this.renderer=t,this.mediaMatcher=n,this.ngZone=i,this.platform=r,this.breakpointService=o,this.directionality=s,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new cc.a(1),this.dir="ltr",this.destroy$=new fe.a,this.elementRef.nativeElement.classList.add("ant-row")}getGutter(){const e=[null,null],t=this.nzGutter||0;return(Array.isArray(t)?t:[t,null]).forEach((t,n)=>{"object"==typeof t&&null!==t?(e[n]=null,Object.keys(Me).map(i=>{const r=i;this.mediaMatcher.matchMedia(Me[r]).matches&&t[r]&&(e[n]=t[r])})):e[n]=Number(t)||null}),e}setGutterStyle(){const[e,t]=this.getGutter();this.actualGutter$.next([e,t]);const n=(e,t)=>{null!==t&&this.renderer.setStyle(this.elementRef.nativeElement,e,`-${t/2}px`)};n("margin-left",e),n("margin-right",e),n("margin-top",t),n("margin-bottom",t)}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e}),this.setGutterStyle()}ngOnChanges(e){e.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(Me).pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G),r.Qb(je),r.Qb(r.B),r.Qb(be.a),r.Qb(Pe),r.Qb(pe.b,8))},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostVars:18,hostBindings:function(e,t){2&e&&r.Ib("ant-row-top","top"===t.nzAlign)("ant-row-middle","middle"===t.nzAlign)("ant-row-bottom","bottom"===t.nzAlign)("ant-row-start","start"===t.nzJustify)("ant-row-end","end"===t.nzJustify)("ant-row-center","center"===t.nzJustify)("ant-row-space-around","space-around"===t.nzJustify)("ant-row-space-between","space-between"===t.nzJustify)("ant-row-rtl","rtl"===t.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[r.Cb]}),e})(),uc=(()=>{class e{constructor(e,t,n,i){this.elementRef=e,this.nzRowDirective=t,this.renderer=n,this.directionality=i,this.classMap={},this.destroy$=new fe.a,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const e=Object.assign({"ant-col":!0,[`ant-col-${this.nzSpan}`]:Object(_e.h)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:Object(_e.h)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:Object(_e.h)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:Object(_e.h)(this.nzPull),[`ant-col-push-${this.nzPush}`]:Object(_e.h)(this.nzPush),"ant-col-rtl":"rtl"===this.dir},this.generateClass());for(const t in this.classMap)this.classMap.hasOwnProperty(t)&&this.renderer.removeClass(this.elementRef.nativeElement,t);this.classMap=Object.assign({},e);for(const t in this.classMap)this.classMap.hasOwnProperty(t)&&this.classMap[t]&&this.renderer.addClass(this.elementRef.nativeElement,t)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(e){return"number"==typeof e?`${e} ${e} auto`:"string"==typeof e&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}generateClass(){const e={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(t=>{const n=t.replace("nz","").toLowerCase();if(Object(_e.h)(this[t]))if("number"==typeof this[t]||"string"==typeof this[t])e[`ant-col-${n}-${this[t]}`]=!0;else{const i=this[t];["span","pull","push","offset","order"].forEach(t=>{e[`ant-col-${n}${"span"===t?"-":`-${t}-`}${i[t]}`]=i&&Object(_e.h)(i[t])})}}),e}ngOnInit(){this.dir=this.directionality.value,this.directionality.change.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(e){this.setHostClassMap();const{nzFlex:t}=e;t&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe(Object(ge.a)(this.destroy$)).subscribe(([e,t])=>{const n=(e,t)=>{null!==t&&this.renderer.setStyle(this.elementRef.nativeElement,e,t/2+"px")};n("padding-left",e),n("padding-right",e),n("padding-top",t),n("padding-bottom",t)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(lc,9),r.Qb(r.G),r.Qb(pe.b,8))},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Bc("flex",t.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[r.Cb]}),e})(),hc=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,Ie,be.b]]}),e})();const dc=["*"];function pc(e,t){if(1&e&&r.Rb(0,"i",6),2&e){const e=r.gc();r.mc("nzType",e.iconType)}}function fc(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.innerTip)}}const gc=function(e){return["ant-form-item-explain",e]},mc=function(e){return{$implicit:e}};function bc(e,t){if(1&e&&(r.Wb(0,"div",7),r.Wb(1,"div"),r.Ec(2,fc,2,1,"ng-container",8),r.Vb(),r.Vb()),2&e){const e=r.gc();r.mc("ngClass",r.pc(4,gc,"ant-form-item-explain-"+e.status)),r.Eb(1),r.mc("@helpMotion",void 0),r.Eb(1),r.mc("nzStringTemplateOutlet",e.innerTip)("nzStringTemplateOutletContext",r.pc(6,mc,e.validateControl))}}function vc(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.nzExtra)}}function yc(e,t){if(1&e&&(r.Wb(0,"div",9),r.Ec(1,vc,2,1,"ng-container",10),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzExtra)}}function wc(e,t){if(1&e&&(r.Ub(0),r.Rb(1,"i",3),r.Tb()),2&e){const e=t.$implicit,n=r.gc(2);r.Eb(1),r.mc("nzType",e)("nzTheme",n.tooltipIcon.theme)}}function _c(e,t){if(1&e&&(r.Wb(0,"span",1),r.Ec(1,wc,2,2,"ng-container",2),r.Vb()),2&e){const e=r.gc();r.mc("nzTooltipTitle",e.nzTooltipTitle),r.Eb(1),r.mc("nzStringTemplateOutlet",e.tooltipIcon.type)}}const Oc={type:"question-circle",theme:"outline"};let Cc=(()=>{class e{constructor(e,t,n,i){var r;this.nzConfigService=e,this.renderer=n,this.directionality=i,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Oc,this.dir="ltr",this.destroy$=new fe.a,this.inputChanges$=new fe.a,this.renderer.addClass(t.nativeElement,"ant-form"),this.dir=this.directionality.value,null===(r=this.directionality.change)||void 0===r||r.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e})}getInputObservable(e){return this.inputChanges$.pipe(Object(p.a)(t=>e in t),Object(c.a)(t=>t[e]))}ngOnChanges(e){this.inputChanges$.next(e)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.l),r.Qb(r.G),r.Qb(pe.b,8))},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-form",""]],hostVars:8,hostBindings:function(e,t){2&e&&r.Ib("ant-form-horizontal","horizontal"===t.nzLayout)("ant-form-vertical","vertical"===t.nzLayout)("ant-form-inline","inline"===t.nzLayout)("ant-form-rtl","rtl"===t.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzForm"],features:[r.Cb]}),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzNoColon",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzAutoTips",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisableAutoTips",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzTooltipIcon",void 0),e})(),Ec=(()=>{class e{constructor(e,t,n){this.cdr=n,this.status=null,this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new fe.a,t.addClass(e.nativeElement,"ant-form-item")}setWithHelpViaTips(e){this.withHelpClass=e,this.cdr.markForCheck()}setStatus(e){this.status=e,this.cdr.markForCheck()}setHasFeedback(e){this.hasFeedback=e,this.cdr.markForCheck()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G),r.Qb(r.h))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-form-item"]],hostVars:12,hostBindings:function(e,t){2&e&&r.Ib("ant-form-item-has-success","success"===t.status)("ant-form-item-has-warning","warning"===t.status)("ant-form-item-has-error","error"===t.status)("ant-form-item-is-validating","validating"===t.status)("ant-form-item-has-feedback",t.hasFeedback&&t.status)("ant-form-item-with-help",t.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:dc,decls:1,vars:0,template:function(e,t){1&e&&(r.lc(),r.kc(0))},encapsulation:2,changeDetection:0}),e})();const Sc={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let Tc=(()=>{class e{constructor(e,t,n,i,r,o){var s,a;this.nzFormItemComponent=t,this.cdr=n,this.nzFormDirective=o,this._hasFeedback=!1,this.validateChanges=st.a.EMPTY,this.validateString=null,this.destroyed$=new fe.a,this.status=null,this.validateControl=null,this.iconType=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",i.addClass(e.nativeElement,"ant-form-item-control"),this.subscribeAutoTips(r.localeChange.pipe(Object(lt.a)(e=>this.localeId=e.locale))),this.subscribeAutoTips(null===(s=this.nzFormDirective)||void 0===s?void 0:s.getInputObservable("nzAutoTips")),this.subscribeAutoTips(null===(a=this.nzFormDirective)||void 0===a?void 0:a.getInputObservable("nzDisableAutoTips").pipe(Object(p.a)(()=>"default"===this.nzDisableAutoTips)))}get disableAutoTips(){var e;return"default"!==this.nzDisableAutoTips?Object(_e.o)(this.nzDisableAutoTips):null===(e=this.nzFormDirective)||void 0===e?void 0:e.nzDisableAutoTips}set nzHasFeedback(e){this._hasFeedback=Object(_e.o)(e),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(e){e instanceof ya.a||e instanceof ya.o?(this.validateControl=e,this.validateString=null,this.watchControl()):e instanceof ya.g?(this.validateControl=e.control,this.validateString=null,this.watchControl()):(this.validateString=e,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe(Object(we.a)(null),Object(ge.a)(this.destroyed$)).subscribe(e=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.iconType=this.status?Sc[this.status]:null,this.innerTip=this.getInnerTip(this.status),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(e){let t;return t="warning"===e||this.validateControlStatus("INVALID","warning")?"warning":"error"===e||this.validateControlStatus("INVALID")?"error":"validating"===e||"pending"===e||this.validateControlStatus("PENDING")?"validating":"success"===e||this.validateControlStatus("VALID")?"success":null,t}validateControlStatus(e,t){if(this.validateControl){const{dirty:n,touched:i,status:r}=this.validateControl;return(!!n||!!i)&&(t?this.validateControl.hasError(t):r===e)}return!1}getInnerTip(e){switch(e){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){var e,t,n,i,r,o,s,a,c,l,u,h,d;if(this.validateControl){const p=this.validateControl.errors||{};let f="";for(const g in p)if(p.hasOwnProperty(g)&&(f=null!==(u=null!==(s=null!==(r=null!==(t=null===(e=p[g])||void 0===e?void 0:e[this.localeId])&&void 0!==t?t:null===(i=null===(n=this.nzAutoTips)||void 0===n?void 0:n[this.localeId])||void 0===i?void 0:i[g])&&void 0!==r?r:null===(o=this.nzAutoTips.default)||void 0===o?void 0:o[g])&&void 0!==s?s:null===(l=null===(c=null===(a=this.nzFormDirective)||void 0===a?void 0:a.nzAutoTips)||void 0===c?void 0:c[this.localeId])||void 0===l?void 0:l[g])&&void 0!==u?u:null===(d=null===(h=this.nzFormDirective)||void 0===h?void 0:h.nzAutoTips.default)||void 0===d?void 0:d[g]),f)break;this.autoErrorTip=f}}subscribeAutoTips(e){null==e||e.pipe(Object(ge.a)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}ngOnChanges(e){const{nzDisableAutoTips:t,nzAutoTips:n,nzSuccessTip:i,nzWarningTip:r,nzErrorTip:o,nzValidatingTip:s}=e;t||n?(this.updateAutoErrorTip(),this.setStatus()):(i||r||o||s)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){this.validateControl||this.validateString||(this.nzValidateStatus=this.defaultValidateControl instanceof ya.f?this.defaultValidateControl.control:this.defaultValidateControl)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(Ec,9),r.Qb(r.h),r.Qb(r.G),r.Qb(ms),r.Qb(Cc,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-form-control"]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,ya.k,1),2&e){let e;r.sc(e=r.ec())&&(t.defaultValidateControl=e.first)}},inputs:{nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus",nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra"},exportAs:["nzFormControl"],features:[r.Cb],ngContentSelectors:dc,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],[3,"ngClass",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(r.lc(),r.Wb(0,"div",0),r.Wb(1,"div",1),r.kc(2),r.Vb(),r.Wb(3,"span",2),r.Ec(4,pc,1,1,"i",3),r.Vb(),r.Vb(),r.Ec(5,bc,3,8,"div",4),r.Ec(6,yc,2,1,"div",5)),2&e&&(r.Eb(4),r.mc("ngIf",t.nzHasFeedback&&t.iconType),r.Eb(1),r.mc("ngIf",t.innerTip),r.Eb(1),r.mc("ngIf",t.nzExtra))},directives:[o.o,Ge.a,o.l,tr.b],encapsulation:2,data:{animation:[Yi.b]},changeDetection:0}),e})();function xc(e){const t="string"==typeof e?{type:e}:e;return Object.assign(Object.assign({},Oc),t)}let kc=(()=>{class e{constructor(e,t,n,i){this.cdr=n,this.nzFormDirective=i,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.destroy$=new fe.a,t.addClass(e.nativeElement,"ant-form-item-label"),this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe(Object(p.a)(()=>"default"===this.noColon),Object(ge.a)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe(Object(p.a)(()=>"default"===this._tooltipIcon),Object(ge.a)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}set nzNoColon(e){this.noColon=Object(_e.o)(e)}get nzNoColon(){var e;return"default"!==this.noColon?this.noColon:null===(e=this.nzFormDirective)||void 0===e?void 0:e.nzNoColon}set nzTooltipIcon(e){this._tooltipIcon=xc(e)}get tooltipIcon(){var e;return"default"!==this._tooltipIcon?this._tooltipIcon:xc((null===(e=this.nzFormDirective)||void 0===e?void 0:e.nzTooltipIcon)||Oc)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G),r.Qb(r.h),r.Qb(Cc,12))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-form-label"]],inputs:{nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipIcon:"nzTooltipIcon",nzFor:"nzFor",nzTooltipTitle:"nzTooltipTitle"},exportAs:["nzFormLabel"],ngContentSelectors:dc,decls:3,vars:6,consts:[["class","ant-form-item-tooltip","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(e,t){1&e&&(r.lc(),r.Wb(0,"label"),r.kc(1),r.Ec(2,_c,2,2,"span",0),r.Vb()),2&e&&(r.Ib("ant-form-item-no-colon",t.nzNoColon)("ant-form-item-required",t.nzRequired),r.Fb("for",t.nzFor),r.Eb(2),r.mc("ngIf",t.nzTooltipTitle))},directives:[o.o,ar,tr.b,Ge.a],encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzRequired",void 0),e})(),Ic=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,hc,Ge.b,lr,Ie,be.b,tr.a],hc]}),e})();const Dc=["inputElement"];let zc=(()=>{class e{constructor(e,t,n,i){this.elementRef=e,this.cdr=t,this.focusMonitor=n,this.directionality=i,this.destroy$=new fe.a,this.isFocused=!1,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new r.n,this.nzFocus=new r.n,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=e=>e.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzFormatter=e=>e,this.elementRef.nativeElement.classList.add("ant-input-number")}onModelChange(e){this.parsedValue=this.nzParser(e),this.inputElement.nativeElement.value=`${this.parsedValue}`;const t=this.getCurrentValidValue(this.parsedValue);this.setValue(t)}getCurrentValidValue(e){let t=e;return t=""===t?"":this.isNotCompleteNumber(t)?this.value:`${this.getValidValue(t)}`,this.toNumber(t)}isNotCompleteNumber(e){return isNaN(e)||""===e||null===e||!(!e||e.toString().indexOf(".")!==e.toString().length-1)}getValidValue(e){let t=parseFloat(e);return isNaN(t)?e:(tthis.nzMax&&(t=this.nzMax),t)}toNumber(e){if(this.isNotCompleteNumber(e))return e;const t=String(e);if(t.indexOf(".")>=0&&Object(_e.h)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(e,this.nzPrecision);if("cut"===this.nzPrecisionMode){const e=t.split(".");return e[1]=e[1].slice(0,this.nzPrecision),Number(e.join("."))}return Number(Number(e).toFixed(this.nzPrecision))}return Number(e)}getRatio(e){let t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t}down(e,t){this.isFocused||this.focus(),this.step("down",e,t)}up(e,t){this.isFocused||this.focus(),this.step("up",e,t)}getPrecision(e){const t=e.toString();if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}getMaxPrecision(e,t){if(Object(_e.h)(this.nzPrecision))return this.nzPrecision;const n=this.getPrecision(t),i=this.getPrecision(this.nzStep),r=this.getPrecision(e);return e?Math.max(r,n+i):n+i}getPrecisionFactor(e,t){const n=this.getMaxPrecision(e,t);return Math.pow(10,n)}upStep(e,t){const n=this.getPrecisionFactor(e,t),i=Math.abs(this.getMaxPrecision(e,t));let r;return r="number"==typeof e?((n*e+n*this.nzStep*t)/n).toFixed(i):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(r)}downStep(e,t){const n=this.getPrecisionFactor(e,t),i=Math.abs(this.getMaxPrecision(e,t));let r;return r="number"==typeof e?((n*e-n*this.nzStep*t)/n).toFixed(i):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(r)}step(e,t,n=1){if(this.stop(),t.preventDefault(),this.nzDisabled)return;const i=this.getCurrentValidValue(this.parsedValue)||0;let r=0;"up"===e?r=this.upStep(i,n):"down"===e&&(r=this.downStep(i,n));const o=r>this.nzMax||rthis.nzMax?r=this.nzMax:r{this[e](t,n)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(e){if(`${this.value}`!=`${e}`&&this.onChange(e),this.value=e,this.parsedValue=e,this.disabledUp=this.disabledDown=!1,e||0===e){const t=Number(e);t>=this.nzMax&&(this.disabledUp=!0),t<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(e){const t=Object(_e.h)(this.nzFormatter(e))?this.nzFormatter(e):"";this.displayValue=t,this.inputElement.nativeElement.value=`${t}`}onKeyDown(e){if(e.keyCode===ct.m){const t=this.getRatio(e);this.up(e,t),this.stop()}else if(e.keyCode===ct.c){const t=this.getRatio(e);this.down(e,t),this.stop()}else e.keyCode===ct.e&&this.updateDisplayValue(this.value)}writeValue(e){this.value=e,this.setValue(e),this.updateDisplayValue(e),this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=e,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){var e;this.focusMonitor.monitor(this.elementRef,!0).subscribe(e=>{e?(this.isFocused=!0,this.nzFocus.emit()):(this.isFocused=!1,this.updateDisplayValue(this.value),this.nzBlur.emit(),Promise.resolve().then(()=>this.onTouched()))}),this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e})}ngOnChanges(e){if(e.nzFormatter&&!e.nzFormatter.isFirstChange()){const e=this.getCurrentValidValue(this.parsedValue);this.setValue(e),this.updateDisplayValue(e)}}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.h),r.Qb(Ot),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-input-number"]],viewQuery:function(e,t){if(1&e&&r.Kc(Dc,3),2&e){let e;r.sc(e=r.ec())&&(t.inputElement=e.first)}},hostVars:10,hostBindings:function(e,t){2&e&&r.Ib("ant-input-number-focused",t.isFocused)("ant-input-number-lg","large"===t.nzSize)("ant-input-number-sm","small"===t.nzSize)("ant-input-number-disabled",t.nzDisabled)("ant-input-number-rtl","rtl"===t.dir)},inputs:{nzSize:"nzSize",nzMin:"nzMin",nzMax:"nzMax",nzParser:"nzParser",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStep:"nzStep",nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzFormatter:"nzFormatter",nzPrecision:"nzPrecision"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],features:[r.Db([{provide:ya.j,useExisting:Object(r.W)(()=>e),multi:!0}]),r.Cb],decls:20,vars:13,consts:[[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","up",1,"ant-input-number-handler-up-inner"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown","mouseup","mouseleave"],["nz-icon","","nzType","down",1,"ant-input-number-handler-down-inner"],[1,"ant-input-number-input-wrap"],["autocomplete","off",1,"ant-input-number-input",3,"disabled","placeholder","ngModel","keydown","keyup","ngModelChange"],["inputElement",""]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0),r.Gc(2,"\n "),r.Wb(3,"span",1),r.dc("mousedown",function(e){return t.up(e)})("mouseup",function(){return t.stop()})("mouseleave",function(){return t.stop()}),r.Gc(4,"\n "),r.Rb(5,"i",2),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Wb(8,"span",3),r.dc("mousedown",function(e){return t.down(e)})("mouseup",function(){return t.stop()})("mouseleave",function(){return t.stop()}),r.Gc(9,"\n "),r.Rb(10,"i",4),r.Gc(11,"\n "),r.Vb(),r.Gc(12,"\n "),r.Vb(),r.Gc(13,"\n "),r.Wb(14,"div",5),r.Gc(15,"\n "),r.Wb(16,"input",6,7),r.dc("keydown",function(e){return t.onKeyDown(e)})("keyup",function(){return t.stop()})("ngModelChange",function(e){return t.onModelChange(e)}),r.Vb(),r.Gc(18,"\n "),r.Vb(),r.Gc(19,"\n ")),2&e&&(r.Eb(3),r.Ib("ant-input-number-handler-up-disabled",t.disabledUp),r.Eb(5),r.Ib("ant-input-number-handler-down-disabled",t.disabledDown),r.Eb(8),r.mc("disabled",t.nzDisabled)("placeholder",t.nzPlaceHolder)("ngModel",t.displayValue),r.Fb("id",t.nzId)("autofocus",t.nzAutoFocus?"autofocus":null)("min",t.nzMin)("max",t.nzMax)("step",t.nzStep)("inputmode",t.nzInputMode))},directives:[Ge.a,ya.e,ya.l,ya.o],encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),e})(),jc=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,ya.i,Ge.b]]}),e})();const Ac=["switchElement"];function Rc(e,t){1&e&&r.Rb(0,"i",8)}function Nc(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.nzCheckedChildren)}}function Lc(e,t){if(1&e&&(r.Ub(0),r.Ec(1,Nc,2,1,"ng-container",9),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzCheckedChildren)}}function Mc(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.nzUnCheckedChildren)}}function Fc(e,t){if(1&e&&r.Ec(0,Mc,2,1,"ng-container",9),2&e){const e=r.gc();r.mc("nzStringTemplateOutlet",e.nzUnCheckedChildren)}}let Pc=(()=>{class e{constructor(e,t,n,i){this.nzConfigService=e,this.cdr=t,this.focusMonitor=n,this.directionality=i,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new fe.a}onHostClick(e){e.preventDefault(),this.nzDisabled||this.nzLoading||this.nzControl||this.updateValue(!this.isChecked)}updateValue(e){this.isChecked!==e&&(this.isChecked=e,this.onChange(this.isChecked))}onKeyDown(e){this.nzControl||this.nzDisabled||this.nzLoading||(e.keyCode===ct.h?(this.updateValue(!1),e.preventDefault()):e.keyCode===ct.j?(this.updateValue(!0),e.preventDefault()):e.keyCode!==ct.k&&e.keyCode!==ct.e||(this.updateValue(!this.isChecked),e.preventDefault()))}focus(){var e;this.focusMonitor.focusVia(null===(e=this.switchElement)||void 0===e?void 0:e.nativeElement,"keyboard")}blur(){var e;null===(e=this.switchElement)||void 0===e||e.nativeElement.blur()}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=e,this.cdr.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.h),r.Qb(Ot),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-switch"]],viewQuery:function(e,t){if(1&e&&r.Kc(Ac,3),2&e){let e;r.sc(e=r.ec())&&(t.switchElement=e.first)}},hostBindings:function(e,t){1&e&&r.dc("click",function(e){return t.onHostClick(e)})},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[r.Db([{provide:ya.j,useExisting:Object(r.W)(()=>e),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode","keydown"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(e,t){if(1&e&&(r.Wb(0,"button",0,1),r.dc("keydown",function(e){return t.onKeyDown(e)}),r.Wb(2,"span",2),r.Ec(3,Rc,1,0,"i",3),r.Vb(),r.Wb(4,"span",4),r.Ec(5,Lc,2,1,"ng-container",5),r.Ec(6,Fc,1,1,"ng-template",null,6,r.Fc),r.Vb(),r.Rb(8,"div",7),r.Vb()),2&e){const e=r.tc(7);r.Ib("ant-switch-checked",t.isChecked)("ant-switch-loading",t.nzLoading)("ant-switch-disabled",t.nzDisabled)("ant-switch-small","small"===t.nzSize)("ant-switch-rtl","rtl"===t.dir),r.mc("disabled",t.nzDisabled)("nzWaveExtraNode",!0),r.Eb(3),r.mc("ngIf",t.nzLoading),r.Eb(2),r.mc("ngIf",t.isChecked)("ngIfElse",e)}},directives:[Cs.a,o.o,Ge.a,tr.b],encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzLoading",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzControl",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",String)],e.prototype,"nzSize",void 0),e})(),Vc=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,Cs.b,Ge.b,tr.a]]}),e})();var Gc=n("VRyK"),Bc=n("EY2u"),Wc=n("5+tZ");let $c=(()=>{class e{constructor(e,t,n,i){this.ngControl=e,this.directionality=i,this.nzBorderless=!1,this.nzSize="default",this._disabled=!1,this.disabled$=new fe.a,this.dir="ltr",this.destroy$=new fe.a,t.addClass(n.nativeElement,"ant-input")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=null!=e&&"false"!=`${e}`}ngOnInit(){var e,t;this.ngControl&&(null===(e=this.ngControl.statusChanges)||void 0===e||e.pipe(Object(p.a)(()=>null!==this.ngControl.disabled),Object(ge.a)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)})),this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e})}ngOnChanges(e){const{disabled:t}=e;t&&this.disabled$.next(this.disabled)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(ya.k,10),r.Qb(r.G),r.Qb(r.l),r.Qb(pe.b,8))},e.\u0275dir=r.Lb({type:e,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:11,hostBindings:function(e,t){2&e&&(r.Fb("disabled",t.disabled||null),r.Ib("ant-input-disabled",t.disabled)("ant-input-borderless",t.nzBorderless)("ant-input-lg","large"===t.nzSize)("ant-input-sm","small"===t.nzSize)("ant-input-rtl","rtl"===t.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[r.Cb]}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzBorderless",void 0),e})(),Uc=(()=>{class e{constructor(e){this.elementRef=e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275dir=r.Lb({type:e,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),e})(),Hc=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,Ge.b,be.b,tr.a]]}),e})();var qc=n("D0XW"),Qc=n("mlxB"),Kc=n("7o/Q"),Xc=n("WMd4");function Yc(e,t=qc.a){const n=Object(Qc.a)(e)?+e-t.now():Math.abs(e);return e=>e.lift(new Jc(n,t))}class Jc{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Zc(e,this.delay,this.scheduler))}}class Zc extends Kc.a{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,i=e.scheduler,r=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Zc.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new el(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Xc.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Xc.a.createComplete()),this.unsubscribe()}}class el{constructor(e,t){this.time=e,this.notification=t}}function tl(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Hc(e.nzLabel)}}const nl=[[["nz-auto-option"]]],il=["nz-auto-option"],rl=["*"],ol=["panel"],sl=["content"];function al(e,t){}function cl(e,t){1&e&&r.Ec(0,al,0,0,"ng-template")}function ll(e,t){1&e&&r.kc(0)}function ul(e,t){if(1&e&&(r.Wb(0,"nz-auto-option",8),r.Gc(1),r.Vb()),2&e){const e=t.$implicit;r.mc("nzValue",e)("nzLabel",e&&e.label?e.label:e),r.Eb(1),r.Ic(" ",e&&e.label?e.label:e," ")}}function hl(e,t){if(1&e&&r.Ec(0,ul,2,3,"nz-auto-option",7),2&e){const e=r.gc(2);r.mc("ngForOf",e.nzDataSource)}}function dl(e,t){if(1&e&&(r.Wb(0,"div",0,1),r.Wb(2,"div",2),r.Wb(3,"div",3),r.Ec(4,cl,1,0,void 0,4),r.Vb(),r.Vb(),r.Vb(),r.Ec(5,ll,1,0,"ng-template",null,5,r.Fc),r.Ec(7,hl,1,1,"ng-template",null,6,r.Fc)),2&e){const e=r.tc(6),t=r.tc(8),n=r.gc();r.Ib("ant-select-dropdown-hidden",!n.showPanel)("ant-select-dropdown-rtl","rtl"===n.dir),r.mc("ngClass",n.nzOverlayClassName)("ngStyle",n.nzOverlayStyle)("nzNoAnimation",null==n.noAnimation?null:n.noAnimation.nzNoAnimation)("@slideMotion","enter")("@.disabled",null==n.noAnimation?null:n.noAnimation.nzNoAnimation),r.Eb(4),r.mc("ngTemplateOutlet",n.nzDataSource?t:e)}}let pl=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:il,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(r.lc(nl),r.Wb(0,"div",0),r.Ec(1,tl,2,1,"ng-container",1),r.Vb(),r.kc(2)),2&e&&(r.Eb(1),r.mc("nzStringTemplateOutlet",t.nzLabel))},directives:[tr.b],encapsulation:2,changeDetection:0}),e})();class fl{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let gl=(()=>{class e{constructor(e,t,n){this.changeDetectorRef=e,this.element=t,this.nzAutocompleteOptgroupComponent=n,this.nzDisabled=!1,this.selectionChange=new r.n,this.mouseEntered=new r.n,this.active=!1,this.selected=!1}select(e=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),e&&this.emitSelectionChangeEvent()}onMouseEnter(){this.mouseEntered.emit(this)}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){Object(_e.m)(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(e=!1){this.selectionChange.emit(new fl(this,e))}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(r.l),r.Qb(pl,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(e,t){1&e&&r.dc("click",function(){return t.selectViaInteraction()})("mouseenter",function(){return t.onMouseEnter()})("mousedown",function(e){return e.preventDefault()}),2&e&&(r.Fb("aria-selected",t.selected.toString())("aria-disabled",t.nzDisabled.toString()),r.Ib("ant-select-item-option-grouped",t.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",t.selected)("ant-select-item-option-active",t.active)("ant-select-item-option-disabled",t.nzDisabled))},inputs:{nzDisabled:"nzDisabled",nzValue:"nzValue",nzLabel:"nzLabel"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:rl,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(e,t){1&e&&(r.lc(),r.Wb(0,"div",0),r.kc(1),r.Vb())},encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),e})(),ml=(()=>{class e{constructor(e,t,n,i){this.changeDetectorRef=e,this.ngZone=t,this.directionality=n,this.noAnimation=i,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=(e,t)=>e===t,this.selectionChange=new r.n,this.showPanel=!0,this.isOpen=!1,this.dir="ltr",this.destroy$=new fe.a,this.activeItemIndex=-1,this.selectionChangeSubscription=st.a.EMPTY,this.optionMouseEnterSubscription=st.a.EMPTY,this.dataSourceChangeSubscription=st.a.EMPTY,this.optionSelectionChanges=Object(ss.a)(()=>this.options?Object(Gc.a)(...this.options.map(e=>e.selectionChange)):this.ngZone.onStable.asObservable().pipe(Object(l.a)(1),Object(u.a)(()=>this.optionSelectionChanges))),this.optionMouseEnter=Object(ss.a)(()=>this.options?Object(Gc.a)(...this.options.map(e=>e.mouseEntered)):this.ngZone.onStable.asObservable().pipe(Object(l.a)(1),Object(u.a)(()=>this.optionMouseEnter)))}get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}ngOnDestroy(){this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(e){const t=this.options.toArray()[e];t&&!t.active&&(this.activeItem=t,this.activeItemIndex=e,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles(),this.changeDetectorRef.markForCheck())}setNextItemActive(){this.setActiveItem(this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0)}setPreviousItemActive(){this.setActiveItem(this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1)}getOptionIndex(e){return this.options.reduce((t,n,i)=>-1===t?this.compareWith(e,n.nzValue)?i:-1:t,-1)}getOption(e){return this.options.find(t=>this.compareWith(e,t.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe(e=>{!e.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(e,t=!1){this.options.forEach(n=>{n!==e&&(t&&n.deselect(),n.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe(Object(p.a)(e=>e.isUserInput)).subscribe(e=>{e.source.select(),e.source.setActiveStyles(),this.activeItem=e.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(e.source,!0),this.selectionChange.emit(e.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(e=>{e.setActiveStyles(),this.activeItem=e,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(e)})}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(r.B),r.Qb(pe.b,8),r.Qb(Zi.a,9))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-autocomplete"]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,gl,1),2&e){let e;r.sc(e=r.ec())&&(t.fromContentOptions=e)}},viewQuery:function(e,t){if(1&e&&(r.Kc(r.O,1),r.Kc(ol,1),r.Kc(sl,1),r.Kc(gl,1)),2&e){let e;r.sc(e=r.ec())&&(t.template=e.first),r.sc(e=r.ec())&&(t.panel=e.first),r.sc(e=r.ec())&&(t.content=e.first),r.sc(e=r.ec())&&(t.fromDataSourceOptions=e)}},inputs:{nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzWidth:"nzWidth",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:rl,decls:1,vars:0,consts:[[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"ngClass","ngStyle","nzNoAnimation"],["panel",""],[2,"max-height","256px","overflow-y","auto","overflow-anchor","none"],[2,"display","flex","flex-direction","column"],[4,"ngTemplateOutlet"],["contentTemplate",""],["optionsTemplate",""],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(e,t){1&e&&(r.lc(),r.Ec(0,dl,9,10,"ng-template"))},directives:[o.l,o.p,Zi.a,o.t,o.n,gl],encapsulation:2,data:{animation:[Yi.d]},changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDefaultActiveFirstOption",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzBackfill",void 0),e})();const bl={provide:ya.j,useExisting:Object(r.W)(()=>vl),multi:!0};let vl=(()=>{class e{constructor(e,t,n,i,r){this.elementRef=e,this.overlay=t,this.viewContainerRef=n,this.nzInputGroupWhitSuffixOrPrefixDirective=i,this.document=r,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new fe.a,this.overlayRef=null,this.portal=null,this.previousValue=null}get activeOption(){if(this.nzAutocomplete&&this.nzAutocomplete.options.length)return this.nzAutocomplete.activeItem}ngOnDestroy(){this.destroyPanel()}writeValue(e){Promise.resolve(null).then(()=>this.setTriggerValue(e))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.elementRef.nativeElement.disabled=e,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.overlayRef.dispose(),this.overlayRef=null,this.portal=null))}handleKeydown(e){const t=e.keyCode,n=t===ct.m||t===ct.c;t===ct.f&&e.preventDefault(),!this.panelOpen||t!==ct.f&&t!==ct.l?this.panelOpen&&t===ct.e?this.nzAutocomplete.showPanel&&this.activeOption&&(e.preventDefault(),this.activeOption.selectViaInteraction()):this.panelOpen&&n&&this.nzAutocomplete.showPanel&&(e.stopPropagation(),e.preventDefault(),t===ct.m?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(e){const t=e.target,n=this.document;let i=t.value;"number"===t.type&&(i=""===i?null:parseFloat(i)),this.previousValue!==i&&(this.previousValue=i,this.onChange(i),this.canOpen()&&n.activeElement===e.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe(Object(lt.a)(()=>this.positionStrategy.reapplyLastPosition()),Yc(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(e=>{this.setValueAndClose(e)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe(Object(p.a)(e=>!this.elementRef.nativeElement.contains(e.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");!this.portal&&this.nzAutocomplete.template&&(this.portal=new at.f(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new ot.f({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const e=[new ot.c({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new ot.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(e).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const e=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==e?(this.nzAutocomplete.setActiveItem(e),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(e){const t=e.nzValue;this.setTriggerValue(e.getLabel()),this.onChange(t),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(e){const t=this.nzAutocomplete.getOption(e),n=t?t.getLabel():e;this.elementRef.nativeElement.value=null!=n?n:"",this.nzAutocomplete.nzBackfill||(this.previousValue=n)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const e=this.elementRef.nativeElement;return!e.readOnly&&!e.disabled}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(ot.e),r.Qb(r.S),r.Qb(Uc,8),r.Qb(o.d,8))},e.\u0275dir=r.Lb({type:e,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(e,t){1&e&&r.dc("focusin",function(){return t.handleFocus()})("blur",function(){return t.handleBlur()})("input",function(e){return t.handleInput(e)})("keydown",function(e){return t.handleKeydown(e)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[r.Db([bl])]}),e})(),yl=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,ot.h,ya.i,tr.a,Zi.b,Hc]]}),e})();function wl(e,t){if(1&e&&(r.Wb(0,"nz-form-label"),r.Gc(1),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.Hc(e.item.description)}}let _l=(()=>{class e{constructor(e){this.themeRegistry=e,this.dataChange=new r.n}ngOnInit(){}getAutocompleteOptions(e){switch(null==e?void 0:e.key){case"theme":return["system",...this.themeRegistry.getAllThemes()];default:return[]}}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(R.ThemeRegistryService))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-schema-form-item-input"]],inputs:{item:"item",data:"data"},outputs:{dataChange:"dataChange"},decls:10,vars:6,consts:[[4,"ngIf"],["nz-input","",3,"placeholder","ngModel","name","nzAutocomplete","ngModelChange"],["nzBackfill","",3,"nzDataSource"],["auto",""]],template:function(e,t){if(1&e&&(r.Ec(0,wl,2,1,"nz-form-label",0),r.Gc(1,"\n"),r.Wb(2,"nz-form-control"),r.Gc(3,"\n "),r.Wb(4,"input",1),r.dc("ngModelChange",function(e){return t.data=e})("ngModelChange",function(e){return t.dataChange.next(e)}),r.Vb(),r.Gc(5,"\n "),r.Rb(6,"nz-autocomplete",2,3),r.Gc(8,"\n"),r.Vb(),r.Gc(9,"\n")),2&e){const e=r.tc(7);r.mc("ngIf",t.item.description),r.Eb(4),r.mc("placeholder",t.item.key||"")("ngModel",t.data)("name",t.item.key)("nzAutocomplete",e),r.Eb(2),r.mc("nzDataSource",t.getAutocompleteOptions(t.item))}},directives:[o.o,uc,Tc,$c,ya.e,vl,ya.l,ya.o,ml,kc],encapsulation:2}),e})();function Ol(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",3),r.Gc(1,"\n "),r.Wb(2,"app-schema-form-item",4),r.dc("dataChange",function(n){r.wc(e);const i=t.index;return r.gc(2).data[i]=n})("dataChange",function(){r.wc(e);const t=r.gc(2);return t.dataChange.next(t.data)}),r.Vb(),r.Gc(3,"\n "),r.Wb(4,"span",5),r.dc("click",function(){r.wc(e);const n=t.index;return r.gc(2).removeField(n)}),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Vb()}if(2&e){const e=t.index,n=r.gc(2);r.Eb(2),r.mc("item",n.item.items)("data",n.data[e]),r.Eb(3),r.Ic("\xd7 ",r.ic(6,3,"SCHEMA_FORM_LIST_REMOVE"),"")}}function Cl(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,Ol,8,5,"div",2),r.Gc(3,"\n"),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("ngForOf",e.data)("ngForTrackBy",e.trackByIndex)}}let El=(()=>{class e{constructor(){this.dataChange=new r.n}ngOnInit(){}addField(){this.data&&Array.isArray(this.data)||(this.data=[]),this.data.push(""),this.dataChange.next(this.data)}removeField(e){this.data&&Array.isArray(this.data)&&(this.data=this.data.filter((t,n)=>n!==e),this.dataChange.next(this.data))}trackByIndex(e){return e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-schema-form-item-list"]],inputs:{item:"item",data:"data"},outputs:{dataChange:"dataChange"},decls:15,vars:5,consts:[[4,"ngIf"],[1,"app-button","active-grey",3,"click"],["class","ui-form__list-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ui-form__list-wrapper"],[3,"item","data","dataChange"],[1,"ui-form__list-item-close",3,"click"]],template:function(e,t){1&e&&(r.Wb(0,"nz-form-label"),r.Gc(1),r.Vb(),r.Gc(2,"\n"),r.Ec(3,Cl,4,2,"ng-container",0),r.Gc(4,"\n"),r.Wb(5,"nz-form-item"),r.Gc(6,"\n "),r.Wb(7,"nz-form-control"),r.Gc(8,"\n "),r.Wb(9,"button",1),r.dc("click",function(){return t.addField()}),r.Gc(10),r.hc(11,"translate"),r.Vb(),r.Gc(12,"\n "),r.Vb(),r.Gc(13,"\n"),r.Vb(),r.Gc(14,"\n")),2&e&&(r.Eb(1),r.Hc(t.item.description),r.Eb(2),r.mc("ngIf",t.data),r.Eb(7),r.Ic("\n +\n ",r.ic(11,3,"SCHEMA_FORM_LIST_ADD"),"\n "))},encapsulation:2}),e})();var Sl=n("vxfF");function Tl(e,t){1&e&&r.Rb(0,"nz-empty",6),2&e&&r.mc("nzNotFoundImage","simple")}function xl(e,t){1&e&&r.Rb(0,"nz-empty",7),2&e&&r.mc("nzNotFoundImage","simple")}function kl(e,t){1&e&&r.Rb(0,"nz-empty")}function Il(e,t){if(1&e&&(r.Ub(0,2),r.Gc(1,"\n "),r.Ec(2,Tl,1,1,"nz-empty",3),r.Gc(3,"\n "),r.Ec(4,xl,1,1,"nz-empty",4),r.Gc(5,"\n "),r.Ec(6,kl,1,0,"nz-empty",5),r.Gc(7,"\n "),r.Tb()),2&e){const e=r.gc();r.mc("ngSwitch",e.size),r.Eb(2),r.mc("ngSwitchCase","normal"),r.Eb(2),r.mc("ngSwitchCase","small")}}function Dl(e,t){}function zl(e,t){if(1&e&&r.Ec(0,Dl,0,0,"ng-template",8),2&e){const e=r.gc(2);r.mc("cdkPortalOutlet",e.contentPortal)}}function jl(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Ic("\n ",e.content,"\n ")}}function Al(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,zl,1,1,void 0,1),r.Gc(3,"\n "),r.Ec(4,jl,2,1,"ng-container",1),r.Gc(5,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("ngIf","string"!==e.contentType),r.Eb(2),r.mc("ngIf","string"===e.contentType)}}function Rl(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"img",5),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc(2);r.Eb(2),r.mc("src",e.nzNotFoundImage,r.yc)("alt",e.isContentString?e.nzNotFoundContent:"empty")}}function Nl(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,Rl,4,2,"ng-container",4),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("nzStringTemplateOutlet",e.nzNotFoundImage)}}function Ll(e,t){1&e&&r.Rb(0,"nz-empty-default")}function Ml(e,t){1&e&&r.Rb(0,"nz-empty-simple")}function Fl(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Ic("\n ",e.isContentString?e.nzNotFoundContent:e.locale.description,"\n ")}}function Pl(e,t){if(1&e&&(r.Wb(0,"p",6),r.Gc(1,"\n "),r.Ec(2,Fl,2,1,"ng-container",4),r.Gc(3,"\n "),r.Vb()),2&e){const e=r.gc();r.Eb(2),r.mc("nzStringTemplateOutlet",e.nzNotFoundContent)}}function Vl(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Ic("\n ",e.nzNotFoundFooter,"\n ")}}function Gl(e,t){if(1&e&&(r.Wb(0,"div",7),r.Gc(1,"\n "),r.Ec(2,Vl,2,1,"ng-container",4),r.Gc(3,"\n "),r.Vb()),2&e){const e=r.gc();r.Eb(2),r.mc("nzStringTemplateOutlet",e.nzNotFoundFooter)}}const Bl=new r.s("nz-empty-component-name");let Wl=(()=>{class e{constructor(e,t,n,i){this.configService=e,this.viewContainerRef=t,this.cdr=n,this.injector=i,this.contentType="string",this.size="",this.destroy$=new fe.a}ngOnChanges(e){e.nzComponentName&&(this.size=function(e){switch(e){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(e.nzComponentName.currentValue)),e.specificContent&&!e.specificContent.isFirstChange()&&(this.content=e.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const e=this.content;if("string"==typeof e)this.contentType="string";else if(e instanceof r.O){const t={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new at.f(e,this.viewContainerRef,t)}else if(e instanceof r.Q){const t=r.t.create({parent:this.injector,providers:[{provide:Bl,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new at.c(e,this.viewContainerRef,t)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe(Object(we.a)(!0),Object(ge.a)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.S),r.Qb(r.h),r.Qb(r.t))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[r.Cb],decls:5,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,Il,8,3,"ng-container",0),r.Gc(2,"\n "),r.Ec(3,Al,6,2,"ng-container",1),r.Gc(4,"\n ")),2&e&&(r.Eb(1),r.mc("ngIf",!t.content&&null!==t.specificContent),r.Eb(2),r.mc("ngIf",t.content))},directives:function(){return[o.o,o.q,o.r,o.s,Ul,at.b]},encapsulation:2,changeDetection:0}),e})();const $l=["default","simple"];let Ul=(()=>{class e{constructor(e,t){this.i18n=e,this.cdr=t,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new fe.a}ngOnChanges(e){const{nzNotFoundContent:t,nzNotFoundImage:n}=e;if(t&&(this.isContentString="string"==typeof t.currentValue),n){const e=n.currentValue||"default";this.isImageBuildIn=$l.findIndex(t=>t===e)>-1}}ngOnInit(){this.i18n.localeChange.pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(ms),r.Qb(r.h))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[r.Cb],decls:14,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0),r.Gc(2,"\n "),r.Ec(3,Nl,4,1,"ng-container",1),r.Gc(4,"\n "),r.Ec(5,Ll,1,0,"nz-empty-default",1),r.Gc(6,"\n "),r.Ec(7,Ml,1,0,"nz-empty-simple",1),r.Gc(8,"\n "),r.Vb(),r.Gc(9,"\n "),r.Ec(10,Pl,4,1,"p",2),r.Gc(11,"\n "),r.Ec(12,Gl,4,1,"div",3),r.Gc(13,"\n ")),2&e&&(r.Eb(3),r.mc("ngIf",!t.isImageBuildIn),r.Eb(2),r.mc("ngIf",t.isImageBuildIn&&"simple"!==t.nzNotFoundImage),r.Eb(2),r.mc("ngIf",t.isImageBuildIn&&"simple"===t.nzNotFoundImage),r.Eb(3),r.mc("ngIf",null!==t.nzNotFoundContent),r.Eb(2),r.mc("ngIf",t.nzNotFoundFooter))},directives:function(){return[o.o,tr.b,Hl,ql]},encapsulation:2,changeDetection:0}),e})(),Hl=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:29,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.fc(),r.Wb(1,"svg",0),r.Gc(2,"\n "),r.Wb(3,"g",1),r.Gc(4,"\n "),r.Wb(5,"g",2),r.Gc(6,"\n "),r.Rb(7,"ellipse",3),r.Gc(8,"\n "),r.Rb(9,"path",4),r.Gc(10,"\n "),r.Rb(11,"path",5),r.Gc(12,"\n "),r.Rb(13,"path",6),r.Gc(14,"\n "),r.Rb(15,"path",7),r.Gc(16,"\n "),r.Vb(),r.Gc(17,"\n "),r.Rb(18,"path",8),r.Gc(19,"\n "),r.Wb(20,"g",9),r.Gc(21,"\n "),r.Rb(22,"ellipse",10),r.Gc(23,"\n "),r.Rb(24,"path",11),r.Gc(25,"\n "),r.Vb(),r.Gc(26,"\n "),r.Vb(),r.Gc(27,"\n "),r.Vb(),r.Gc(28,"\n "))},encapsulation:2,changeDetection:0}),e})(),ql=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:16,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.fc(),r.Wb(1,"svg",0),r.Gc(2,"\n "),r.Wb(3,"g",1),r.Gc(4,"\n "),r.Rb(5,"ellipse",2),r.Gc(6,"\n "),r.Wb(7,"g",3),r.Gc(8,"\n "),r.Rb(9,"path",4),r.Gc(10,"\n "),r.Rb(11,"path",5),r.Gc(12,"\n "),r.Vb(),r.Gc(13,"\n "),r.Vb(),r.Gc(14,"\n "),r.Vb(),r.Gc(15,"\n "))},encapsulation:2,changeDetection:0}),e})(),Ql=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,at.e,tr.a,bs]]}),e})();const Kl=["*"];function Xl(e,t){if(1&e&&(r.Wb(0,"div",4),r.Rb(1,"nz-embed-empty",5),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("specificContent",e.notFoundContent)}}function Yl(e,t){if(1&e&&r.Rb(0,"nz-option-item-group",9),2&e){const e=r.gc().$implicit;r.mc("nzLabel",e.groupLabel)}}function Jl(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-option-item",10),r.dc("itemHover",function(t){return r.wc(e),r.gc(2).onItemHover(t)})("itemClick",function(t){return r.wc(e),r.gc(2).onItemClick(t)}),r.Vb()}if(2&e){const e=r.gc().$implicit,t=r.gc();r.mc("icon",t.menuItemSelectedIcon)("customContent",e.nzCustomContent)("template",e.template)("grouped",!!e.groupLabel)("disabled",e.nzDisabled)("showState","tags"===t.mode||"multiple"===t.mode)("label",e.nzLabel)("compareWith",t.compareWith)("activatedValue",t.activatedValue)("listOfSelectedValue",t.listOfSelectedValue)("value",e.nzValue)}}function Zl(e,t){1&e&&(r.Ub(0,6),r.Ec(1,Yl,1,1,"nz-option-item-group",7),r.Ec(2,Jl,1,11,"nz-option-item",8),r.Tb()),2&e&&(r.mc("ngSwitch",t.$implicit.type),r.Eb(1),r.mc("ngSwitchCase","group"),r.Eb(1),r.mc("ngSwitchCase","item"))}function eu(e,t){}function tu(e,t){1&e&&(r.Gc(0,"\n "),r.kc(1),r.Gc(2,"\n "))}const nu=["inputElement"],iu=["mirrorElement"];function ru(e,t){1&e&&r.Rb(0,"span",3,4)}function ou(e,t){if(1&e&&r.Rb(0,"nz-select-item",6),2&e){const e=r.gc(2);r.mc("deletable",!1)("disabled",!1)("removeIcon",e.removeIcon)("label",e.listOfTopItem[0].nzLabel)("contentTemplateOutlet",e.customTemplate)("contentTemplateOutletContext",e.listOfTopItem[0])}}function su(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Wb(1,"nz-select-search",4),r.dc("isComposingChange",function(t){return r.wc(e),r.gc().isComposingChange(t)})("valueChange",function(t){return r.wc(e),r.gc().onInputValueChange(t)}),r.Vb(),r.Ec(2,ou,1,6,"nz-select-item",5),r.Tb()}if(2&e){const e=r.gc();r.Eb(1),r.mc("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("showInput",e.showSearch)("mirrorSync",!1)("autofocus",e.autofocus)("focusTrigger",e.open),r.Eb(1),r.mc("ngIf",e.isShowSingleLabel)}}function au(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-select-item",9),r.dc("delete",function(){r.wc(e);const n=t.$implicit;return r.gc(2).onDeleteItem(n.contentTemplateOutletContext)}),r.Vb()}if(2&e){const e=t.$implicit,n=r.gc(2);r.mc("removeIcon",n.removeIcon)("label",e.nzLabel)("disabled",e.nzDisabled||n.disabled)("contentTemplateOutlet",e.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",e.contentTemplateOutletContext)}}function cu(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Ec(1,au,1,6,"nz-select-item",7),r.Wb(2,"nz-select-search",8),r.dc("isComposingChange",function(t){return r.wc(e),r.gc().isComposingChange(t)})("valueChange",function(t){return r.wc(e),r.gc().onInputValueChange(t)}),r.Vb(),r.Tb()}if(2&e){const e=r.gc();r.Eb(1),r.mc("ngForOf",e.listOfSlicedItem)("ngForTrackBy",e.trackValue),r.Eb(1),r.mc("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("autofocus",e.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",e.open)}}function lu(e,t){if(1&e&&r.Rb(0,"nz-select-placeholder",10),2&e){const e=r.gc();r.mc("placeholder",e.placeHolder)}}function uu(e,t){if(1&e&&r.Rb(0,"nz-select-arrow",5),2&e){const e=r.gc();r.mc("loading",e.nzLoading)("search",e.nzOpen&&e.nzShowSearch)("suffixIcon",e.nzSuffixIcon)}}function hu(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-select-clear",6),r.dc("clear",function(){return r.wc(e),r.gc().onClearSelection()}),r.Vb()}if(2&e){const e=r.gc();r.mc("clearIcon",e.nzClearIcon)}}function du(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-option-container",7),r.dc("keydown",function(t){return r.wc(e),r.gc().onKeyDown(t)})("itemClick",function(t){return r.wc(e),r.gc().onItemClick(t)})("scrollToBottom",function(){return r.wc(e),r.gc().nzScrollToBottom.emit()}),r.Vb()}if(2&e){const e=r.gc();r.Ib("ant-select-dropdown-placement-bottomLeft","bottom"===e.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===e.dropDownPosition),r.mc("ngStyle",e.nzDropdownStyle)("itemSize",e.nzOptionHeightPx)("maxItemLength",e.nzOptionOverflowSize)("matchWidth",e.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("nzNoAnimation",null==e.noAnimation?null:e.noAnimation.nzNoAnimation)("listOfContainerItem",e.listOfContainerItem)("menuItemSelectedIcon",e.nzMenuItemSelectedIcon)("notFoundContent",e.nzNotFoundContent)("activatedValue",e.activatedValue)("listOfSelectedValue",e.listOfValue)("dropdownRender",e.nzDropdownRender)("compareWith",e.compareWith)("mode",e.nzMode)}}function pu(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Hc(e.nzLabel)}}function fu(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Hc(e.label)}}function gu(e,t){}function mu(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,gu,0,0,"ng-template",3),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("ngTemplateOutlet",e.template)}}function bu(e,t){1&e&&r.Rb(0,"i",6)}function vu(e,t){if(1&e&&(r.Wb(0,"div",4),r.Gc(1,"\n "),r.Ec(2,bu,1,0,"i",5),r.Gc(3,"\n "),r.Vb()),2&e){const e=r.gc();r.Eb(2),r.mc("ngIf",!e.icon)("ngIfElse",e.icon)}}function yu(e,t){1&e&&r.Rb(0,"i",2)}function wu(e,t){1&e&&r.Rb(0,"i",7)}function _u(e,t){1&e&&r.Rb(0,"i",8)}function Ou(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,wu,1,0,"i",5),r.Gc(3,"\n "),r.Ec(4,_u,1,0,"i",6),r.Gc(5,"\n "),r.Tb()),2&e){const e=r.gc(2);r.Eb(2),r.mc("ngIf",!e.search),r.Eb(2),r.mc("ngIf",e.search)}}function Cu(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"i",10),r.Gc(3,"\n "),r.Tb()),2&e){const e=t.$implicit;r.Eb(2),r.mc("nzType",e)}}function Eu(e,t){if(1&e&&(r.Gc(0,"\n "),r.Ec(1,Cu,4,1,"ng-container",9),r.Gc(2,"\n ")),2&e){const e=r.gc(2);r.Eb(1),r.mc("nzStringTemplateOutlet",e.suffixIcon)}}function Su(e,t){if(1&e&&(r.Gc(0,"\n "),r.Ec(1,Ou,6,2,"ng-container",3),r.Gc(2,"\n "),r.Ec(3,Eu,3,1,"ng-template",null,4,r.Fc),r.Gc(5,"\n ")),2&e){const e=r.tc(4),t=r.gc();r.Eb(1),r.mc("ngIf",!t.suffixIcon)("ngIfElse",e)}}function Tu(e,t){1&e&&r.Rb(0,"i",1)}function xu(e,t){if(1&e&&(r.Wb(0,"div",4),r.Gc(1),r.Vb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.label)}}function ku(e,t){if(1&e&&r.Gc(0),2&e){const e=r.gc(2);r.Hc(e.label)}}function Iu(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,xu,2,1,"div",2),r.Gc(3,"\n "),r.Ec(4,ku,1,1,"ng-template",null,3,r.Fc),r.Gc(6,"\n "),r.Tb()),2&e){const e=r.tc(5),t=r.gc();r.Eb(2),r.mc("ngIf",t.deletable)("ngIfElse",e)}}function Du(e,t){1&e&&r.Rb(0,"i",7)}function zu(e,t){if(1&e){const e=r.Xb();r.Wb(0,"span",5),r.dc("click",function(t){return r.wc(e),r.gc().onDelete(t)}),r.Gc(1,"\n "),r.Ec(2,Du,1,0,"i",6),r.Gc(3,"\n "),r.Vb()}if(2&e){const e=r.gc();r.Eb(2),r.mc("ngIf",!e.removeIcon)("ngIfElse",e.removeIcon)}}const ju=function(e){return{$implicit:e}};function Au(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Ic("\n ",e.placeholder,"\n ")}}let Ru=(()=>{class e{constructor(){this.nzLabel=null,this.changes=new fe.a}ngOnChanges(){this.changes.next()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[r.Cb],ngContentSelectors:Kl,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0," "),r.kc(1),r.Gc(2," "))},encapsulation:2,changeDetection:0}),e})(),Nu=(()=>{class e{constructor(e){this.elementRef=e,this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new r.n,this.scrollToBottom=new r.n,this.scrolledIndex=0,this.elementRef.nativeElement.classList.add("ant-select-dropdown")}onItemClick(e){this.itemClick.emit(e)}onItemHover(e){this.activatedValue=e}trackValue(e,t){return t.key}onScrolledIndexChange(e){this.scrolledIndex=e,e===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const e=this.listOfContainerItem.findIndex(e=>this.compareWith(e.key,this.activatedValue));(e=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(e||0)}ngOnChanges(e){const{listOfContainerItem:t,activatedValue:n}=e;(t||n)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-option-container"]],viewQuery:function(e,t){if(1&e&&r.Kc(Sl.d,3),2&e){let e;r.sc(e=r.ec())&&(t.cdkVirtualScrollViewport=e.first)}},inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem",compareWith:"compareWith"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[r.Cb],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(e,t){1&e&&(r.Wb(0,"div"),r.Ec(1,Xl,2,1,"div",0),r.Wb(2,"cdk-virtual-scroll-viewport",1),r.dc("scrolledIndexChange",function(e){return t.onScrolledIndexChange(e)}),r.Ec(3,Zl,3,3,"ng-template",2),r.Vb(),r.Ec(4,eu,0,0,"ng-template",3),r.Vb()),2&e&&(r.Eb(1),r.mc("ngIf",0===t.listOfContainerItem.length),r.Eb(1),r.Bc("height",t.listOfContainerItem.length*t.itemSize,"px")("max-height",t.itemSize*t.maxItemLength,"px"),r.Ib("full-width",!t.matchWidth),r.mc("itemSize",t.itemSize)("maxBufferPx",t.itemSize*t.maxItemLength)("minBufferPx",t.itemSize*t.maxItemLength),r.Eb(1),r.mc("cdkVirtualForOf",t.listOfContainerItem)("cdkVirtualForTrackBy",t.trackValue)("cdkVirtualForTemplateCacheSize",0),r.Eb(1),r.mc("ngTemplateOutlet",t.dropdownRender))},directives:function(){return[o.o,Sl.d,Sl.a,Sl.c,o.t,Wl,o.q,o.r,Gu,Bu]},encapsulation:2,changeDetection:0}),e})(),Lu=(()=>{class e{constructor(e){this.nzOptionGroupComponent=e,this.destroy$=new fe.a,this.changes=new fe.a,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe(Object(we.a)(!0),Object(ge.a)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Ru,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-option"]],viewQuery:function(e,t){if(1&e&&r.Kc(r.O,3),2&e){let e;r.sc(e=r.ec())&&(t.template=e.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[r.Cb],ngContentSelectors:Kl,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0,"\n "),r.Ec(1,tu,3,0,"ng-template"),r.Gc(2,"\n "))},encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzHide",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzCustomContent",void 0),e})(),Mu=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.renderer=t,this.focusMonitor=n,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new r.n,this.isComposingChange=new r.n,this.elementRef.nativeElement.classList.add("ant-select-selection-search")}setCompositionState(e){this.isComposingChange.next(e)}onValueChange(e){this.value=e,this.valueChange.next(e),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const e=this.mirrorElement.nativeElement,t=this.elementRef.nativeElement,n=this.inputElement.nativeElement;this.renderer.removeStyle(t,"width"),e.innerHTML=this.renderer.createText(`${n.value} `),this.renderer.setStyle(t,"width",`${e.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(e){const t=this.inputElement.nativeElement,{focusTrigger:n,showInput:i}=e;i&&(this.showInput?this.renderer.removeAttribute(t,"readonly"):this.renderer.setAttribute(t,"readonly","readonly")),n&&!0===n.currentValue&&!1===n.previousValue&&t.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G),r.Qb(Ot))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-select-search"]],viewQuery:function(e,t){if(1&e&&(r.Kc(nu,3),r.Kc(iu,1)),2&e){let e;r.sc(e=r.ec())&&(t.inputElement=e.first),r.sc(e=r.ec())&&(t.mirrorElement=e.first)}},inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[r.Db([{provide:ya.b,useValue:!1}]),r.Cb],decls:6,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"input",0,1),r.dc("ngModelChange",function(e){return t.onValueChange(e)})("compositionstart",function(){return t.setCompositionState(!0)})("compositionend",function(){return t.setCompositionState(!1)}),r.Vb(),r.Gc(3,"\n "),r.Ec(4,ru,2,0,"span",2),r.Gc(5,"\n ")),2&e&&(r.Eb(1),r.Bc("opacity",t.showInput?null:0),r.mc("ngModel",t.value)("disabled",t.disabled),r.Fb("id",t.nzId)("autofocus",t.autofocus?"autofocus":null),r.Eb(3),r.mc("ngIf",t.mirrorSync))},directives:[ya.e,ya.l,ya.o,o.o],encapsulation:2,changeDetection:0}),e})(),Fu=(()=>{class e{constructor(e,t){this.elementRef=e,this.noAnimation=t,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new r.n,this.inputValueChange=new r.n,this.deleteItem=new r.n,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.elementRef.nativeElement.classList.add("ant-select-selector")}onHostKeydown(e){e.keyCode===ct.b&&"default"!==this.mode&&!e.target.value&&this.listOfTopItem.length>0&&(e.preventDefault(),this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1]))}updateTemplateVariable(){const e=0===this.listOfTopItem.length;this.isShowPlaceholder=e&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!e&&!this.isComposing&&!this.inputValue}isComposingChange(e){this.isComposing=e,this.updateTemplateVariable()}onInputValueChange(e){e!==this.inputValue&&(this.inputValue=e,this.updateTemplateVariable(),this.inputValueChange.emit(e),this.tokenSeparate(e,this.tokenSeparators))}tokenSeparate(e,t){if(e&&e.length&&t.length&&"default"!==this.mode&&((e,t)=>{for(let n=0;n0)return!0;return!1})(e,t)){const n=((e,t)=>{const n=new RegExp(`[${t.join()}]`),i=e.split(n).filter(e=>e);return[...new Set(i)]})(e,t);this.tokenize.next(n)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(e,t){return t.nzValue}onDeleteItem(e){this.disabled||e.nzDisabled||this.deleteItem.next(e)}ngOnChanges(e){const{listOfTopItem:t,maxTagCount:n,customTemplate:i,maxTagPlaceholder:r}=e;if(t&&this.updateTemplateVariable(),t||n||i||r){const e=this.listOfTopItem.slice(0,this.maxTagCount).map(e=>({nzLabel:e.nzLabel,nzValue:e.nzValue,nzDisabled:e.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:e}));if(this.listOfTopItem.length>this.maxTagCount){const t=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,n=this.listOfTopItem.map(e=>e.nzValue),i={nzLabel:t,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:n.slice(this.maxTagCount)};e.push(i)}this.listOfSlicedItem=e}}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(Zi.a,9))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-select-top-control"]],viewQuery:function(e,t){if(1&e&&r.Kc(Mu,1),2&e){let e;r.sc(e=r.ec())&&(t.nzSelectSearchComponent=e.first)}},hostBindings:function(e,t){1&e&&r.dc("keydown",function(e){return t.onHostKeydown(e)})},inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[r.Cb],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(e,t){1&e&&(r.Ub(0,0),r.Ec(1,su,3,8,"ng-container",1),r.Ec(2,cu,3,9,"ng-container",2),r.Tb(),r.Ec(3,lu,1,1,"nz-select-placeholder",3)),2&e&&(r.mc("ngSwitch",t.mode),r.Eb(1),r.mc("ngSwitchCase","default"),r.Eb(2),r.mc("ngIf",t.isShowPlaceholder))},directives:function(){return[o.q,o.r,o.s,o.o,Mu,Uu,o.n,Ki.a,Hu]},encapsulation:2,changeDetection:0}),e})();const Pu=(e,t)=>!(!t||!t.nzLabel)&&t.nzLabel.toLowerCase().indexOf(e.toLowerCase())>-1;let Vu=(()=>{class e{constructor(e,t,n,i,o,s,a){this.nzConfigService=e,this.cdr=t,this.elementRef=n,this.platform=i,this.focusMonitor=o,this.directionality=s,this.noAnimation=a,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=Pu,this.compareWith=(e,t)=>e===t,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzOptions=[],this.nzOnSearch=new r.n,this.nzScrollToBottom=new r.n,this.nzOpenChange=new r.n,this.nzBlur=new r.n,this.nzFocus=new r.n,this.listOfValue$=new cs.a([]),this.listOfTemplateItem$=new cs.a([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.destroy$=new fe.a,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr",this.elementRef.nativeElement.classList.add("ant-select")}set nzShowArrow(e){this._nzShowArrow=e}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(e){return{nzValue:e,nzLabel:e,type:"item"}}onItemClick(e){if(this.activatedValue=e,"default"===this.nzMode)0!==this.listOfValue.length&&this.compareWith(this.listOfValue[0],e)||this.updateListOfValue([e]),this.setOpenState(!1);else{const t=this.listOfValue.findIndex(t=>this.compareWith(t,e));if(-1!==t){const e=this.listOfValue.filter((e,n)=>n!==t);this.updateListOfValue(e)}else if(this.listOfValue.length!this.compareWith(t,e.nzValue));this.updateListOfValue(t),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let e=this.listOfTagAndTemplateItem.filter(e=>!e.nzHide).filter(e=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,e));if("tags"===this.nzMode&&this.searchValue){const t=this.listOfTagAndTemplateItem.find(e=>e.nzLabel===this.searchValue);if(t)this.activatedValue=t.nzValue;else{const t=this.generateTagItem(this.searchValue);e=[t,...e],this.activatedValue=t.nzValue}}const t=e.find(e=>this.compareWith(e.nzValue,this.listOfValue[0]))||e[0];this.activatedValue=t&&t.nzValue||null;let n=[];this.isReactiveDriven?n=[...new Set(this.nzOptions.filter(e=>e.groupLabel).map(e=>e.groupLabel))]:this.listOfNzOptionGroupComponent&&(n=this.listOfNzOptionGroupComponent.map(e=>e.nzLabel)),n.forEach(t=>{const n=e.findIndex(e=>t===e.groupLabel);n>-1&&e.splice(n,0,{groupLabel:t,type:"group",key:t})}),this.listOfContainerItem=[...e],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(e){const t=((e,t)=>"default"===this.nzMode?e.length>0?e[0]:null:e)(e);this.value!==t&&(this.listOfValue=e,this.listOfValue$.next(e),this.value=t,this.onChange(this.value))}onTokenSeparate(e){const t=this.listOfTagAndTemplateItem.filter(t=>-1!==e.findIndex(e=>e===t.nzLabel)).map(e=>e.nzValue).filter(e=>-1===this.listOfValue.findIndex(t=>this.compareWith(t,e)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...t]);else if("tags"===this.nzMode){const n=e.filter(e=>-1===this.listOfTagAndTemplateItem.findIndex(t=>t.nzLabel===e));this.updateListOfValue([...this.listOfValue,...t,...n])}this.clearInput()}onOverlayKeyDown(e){e.keyCode===ct.f&&this.setOpenState(!1)}onKeyDown(e){if(this.nzDisabled)return;const t=this.listOfContainerItem.filter(e=>"item"===e.type).filter(e=>!e.nzDisabled),n=t.findIndex(e=>this.compareWith(e.nzValue,this.activatedValue));switch(e.keyCode){case ct.m:e.preventDefault(),this.nzOpen&&(this.activatedValue=t[n>0?n-1:t.length-1].nzValue);break;case ct.c:e.preventDefault(),this.nzOpen?this.activatedValue=t[n{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,this.cdr.markForCheck()})}updateCdkConnectedOverlayPositions(){Ce(()=>{var e,t;null===(t=null===(e=this.cdkConnectedOverlay)||void 0===e?void 0:e.overlayRef)||void 0===t||t.updatePosition()})}writeValue(e){if(this.value!==e){this.value=e;const t=((e,t)=>null==e?[]:"default"===this.nzMode?[e]:e)(e);this.listOfValue=t,this.listOfValue$.next(t),this.cdr.markForCheck()}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=e,e&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(e){const{nzOpen:t,nzDisabled:n,nzOptions:i}=e;if(t&&this.onOpenChange(),n&&this.nzDisabled&&this.setOpenState(!1),i){this.isReactiveDriven=!0;const e=(this.nzOptions||[]).map(e=>({template:e.label instanceof r.O?e.label:null,nzLabel:"string"==typeof e.label?e.label:null,nzValue:e.value,nzDisabled:e.disabled||!1,nzHide:e.hide||!1,nzCustomContent:e.label instanceof r.O,groupLabel:e.groupLabel||null,type:"item",key:e.value}));this.listOfTemplateItem$.next(e)}}ngOnInit(){var e;this.focusMonitor.monitor(this.elementRef,!0).pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{e?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),Object(Se.a)([this.listOfValue$,this.listOfTemplateItem$]).pipe(Object(ge.a)(this.destroy$)).subscribe(([e,t])=>{const n=e.filter(()=>"tags"===this.nzMode).filter(e=>-1===t.findIndex(t=>this.compareWith(t.nzValue,e))).map(e=>this.listOfTopItem.find(t=>this.compareWith(t.nzValue,e))||this.generateTagItem(e));this.listOfTagAndTemplateItem=[...t,...n],this.listOfTopItem=this.listOfValue.map(e=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(t=>this.compareWith(e,t.nzValue))).filter(e=>!!e),this.updateListOfContainerItem()}),null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||Object(Gc.a)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe(Object(we.a)(!0),Object(u.a)(()=>Object(Gc.a)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(e=>e.changes),...this.listOfNzOptionGroupComponent.map(e=>e.changes)).pipe(Object(we.a)(!0))),Object(ge.a)(this.destroy$)).subscribe(()=>{const e=this.listOfNzOptionComponent.toArray().map(e=>{const{template:t,nzLabel:n,nzValue:i,nzDisabled:r,nzHide:o,nzCustomContent:s,groupLabel:a}=e;return{template:t,nzLabel:n,nzValue:i,nzDisabled:r,nzHide:o,nzCustomContent:s,groupLabel:a,type:"item",key:i}});this.listOfTemplateItem$.next(e),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.h),r.Qb(r.l),r.Qb(be.a),r.Qb(Ot),r.Qb(pe.b,8),r.Qb(Zi.a,9))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-select"]],contentQueries:function(e,t,n){if(1&e&&(r.Jb(n,Lu,1),r.Jb(n,Ru,1)),2&e){let e;r.sc(e=r.ec())&&(t.listOfNzOptionComponent=e),r.sc(e=r.ec())&&(t.listOfNzOptionGroupComponent=e)}},viewQuery:function(e,t){if(1&e&&(r.Kc(ot.b,3,r.l),r.Kc(ot.a,3),r.Kc(Fu,3),r.Kc(Ru,3,r.l),r.Kc(Fu,3,r.l)),2&e){let e;r.sc(e=r.ec())&&(t.originElement=e.first),r.sc(e=r.ec())&&(t.cdkConnectedOverlay=e.first),r.sc(e=r.ec())&&(t.nzSelectTopControlComponent=e.first),r.sc(e=r.ec())&&(t.nzOptionGroupComponentElement=e.first),r.sc(e=r.ec())&&(t.nzSelectTopControlComponentElement=e.first)}},hostVars:24,hostBindings:function(e,t){1&e&&r.dc("click",function(){return t.onHostClick()}),2&e&&r.Ib("ant-select-lg","large"===t.nzSize)("ant-select-sm","small"===t.nzSize)("ant-select-show-arrow",t.nzShowArrow)("ant-select-disabled",t.nzDisabled)("ant-select-show-search",(t.nzShowSearch||"default"!==t.nzMode)&&!t.nzDisabled)("ant-select-allow-clear",t.nzAllowClear)("ant-select-borderless",t.nzBorderless)("ant-select-open",t.nzOpen)("ant-select-focused",t.nzOpen||t.focused)("ant-select-single","default"===t.nzMode)("ant-select-multiple","default"!==t.nzMode)("ant-select-rtl","rtl"===t.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[r.Db([{provide:ya.j,useExisting:Object(r.W)(()=>e),multi:!0}]),r.Cb],decls:5,vars:23,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(e,t){if(1&e&&(r.Wb(0,"nz-select-top-control",0,1),r.dc("inputValueChange",function(e){return t.onInputValueChange(e)})("tokenize",function(e){return t.onTokenSeparate(e)})("deleteItem",function(e){return t.onItemDelete(e)})("keydown",function(e){return t.onKeyDown(e)}),r.Vb(),r.Ec(2,uu,1,3,"nz-select-arrow",2),r.Ec(3,hu,1,1,"nz-select-clear",3),r.Ec(4,du,1,19,"ng-template",4),r.dc("overlayKeydown",function(e){return t.onOverlayKeyDown(e)})("overlayOutsideClick",function(e){return t.onClickOutside(e)})("detach",function(){return t.setOpenState(!1)})("positionChange",function(e){return t.onPositionChange(e)})),2&e){const e=r.tc(1);r.mc("nzId",t.nzId)("open",t.nzOpen)("disabled",t.nzDisabled)("mode",t.nzMode)("@.disabled",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("maxTagPlaceholder",t.nzMaxTagPlaceholder)("removeIcon",t.nzRemoveIcon)("placeHolder",t.nzPlaceHolder)("maxTagCount",t.nzMaxTagCount)("customTemplate",t.nzCustomTemplate)("tokenSeparators",t.nzTokenSeparators)("showSearch",t.nzShowSearch)("autofocus",t.nzAutoFocus)("listOfTopItem",t.listOfTopItem),r.Eb(2),r.mc("ngIf",t.nzShowArrow),r.Eb(1),r.mc("ngIf",t.nzAllowClear&&!t.nzDisabled&&t.listOfValue.length),r.Eb(1),r.mc("cdkConnectedOverlayMinWidth",t.nzDropdownMatchSelectWidth?null:t.triggerWidth)("cdkConnectedOverlayWidth",t.nzDropdownMatchSelectWidth?t.triggerWidth:null)("cdkConnectedOverlayOrigin",e)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",t.nzDropdownClassName)("cdkConnectedOverlayOpen",t.nzOpen)}},directives:function(){return[Ki.a,Fu,ot.b,Zi.a,o.o,ot.a,er.b,Wu,$u,Nu,o.p]},encapsulation:2,data:{animation:[Yi.d]},changeDetection:0}),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzSuffixIcon",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzAllowClear",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzBorderless",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzShowSearch",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzLoading",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzAutoClearSearchValue",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzServerSearch",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzOpen",void 0),e})(),Gu=(()=>{class e{constructor(e){this.elementRef=e,this.nzLabel=null,this.elementRef.nativeElement.classList.add("ant-select-item","ant-select-item-group")}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-option-item-group"]],inputs:{nzLabel:"nzLabel"},decls:3,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,pu,2,1,"ng-container",0),r.Gc(2,"\n ")),2&e&&(r.Eb(1),r.mc("nzStringTemplateOutlet",t.nzLabel))},directives:[tr.b],encapsulation:2,changeDetection:0}),e})(),Bu=(()=>{class e{constructor(e){this.elementRef=e,this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new r.n,this.itemHover=new r.n,this.elementRef.nativeElement.classList.add("ant-select-item","ant-select-item-option")}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(e){const{value:t,activatedValue:n,listOfSelectedValue:i}=e;(t||i)&&(this.selected=this.listOfSelectedValue.some(e=>this.compareWith(e,this.value))),(t||n)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-option-item"]],hostVars:9,hostBindings:function(e,t){1&e&&r.dc("mouseenter",function(){return t.onHostMouseEnter()})("click",function(){return t.onHostClick()}),2&e&&(r.Fb("title",t.label),r.Ib("ant-select-item-option-grouped",t.grouped)("ant-select-item-option-selected",t.selected&&!t.disabled)("ant-select-item-option-disabled",t.disabled)("ant-select-item-option-active",t.activated&&!t.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[r.Cb],decls:10,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0),r.Gc(2,"\n "),r.Ec(3,fu,2,1,"ng-container",1),r.Gc(4,"\n "),r.Ec(5,mu,4,1,"ng-container",1),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Ec(8,vu,4,2,"div",2),r.Gc(9,"\n ")),2&e&&(r.Eb(3),r.mc("ngIf",!t.customContent),r.Eb(2),r.mc("ngIf",t.customContent),r.Eb(3),r.mc("ngIf",t.showState&&t.selected))},directives:[o.o,o.t,Ge.a,Ki.a],encapsulation:2,changeDetection:0}),e})(),Wu=(()=>{class e{constructor(e){this.elementRef=e,this.loading=!1,this.search=!1,this.suffixIcon=null,this.elementRef.nativeElement.classList.add("ant-select-arrow")}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-select-arrow"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-select-arrow-loading",t.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:6,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(e,t){if(1&e&&(r.Gc(0,"\n "),r.Ec(1,yu,1,0,"i",0),r.Gc(2,"\n "),r.Ec(3,Su,6,2,"ng-template",null,1,r.Fc),r.Gc(5,"\n ")),2&e){const e=r.tc(4);r.Eb(1),r.mc("ngIf",t.loading)("ngIfElse",e)}},directives:[o.o,Ge.a,Ki.a,tr.b],encapsulation:2,changeDetection:0}),e})(),$u=(()=>{class e{constructor(e){this.elementRef=e,this.clearIcon=null,this.clear=new r.n,this.elementRef.nativeElement.classList.add("ant-select-clear")}onClick(e){e.preventDefault(),e.stopPropagation(),this.clear.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-select-clear"]],hostBindings:function(e,t){1&e&&r.dc("click",function(e){return t.onClick(e)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:3,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,Tu,1,0,"i",0),r.Gc(2,"\n ")),2&e&&(r.Eb(1),r.mc("ngIf",!t.clearIcon)("ngIfElse",t.clearIcon))},directives:[o.o,Ge.a,Ki.a],encapsulation:2,changeDetection:0}),e})(),Uu=(()=>{class e{constructor(e){this.elementRef=e,this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new r.n,this.elementRef.nativeElement.classList.add("ant-select-selection-item")}onDelete(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.delete.next(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-select-item"]],hostVars:3,hostBindings:function(e,t){2&e&&(r.Fb("title",t.label),r.Ib("ant-select-selection-item-disabled",t.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:5,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,Iu,7,2,"ng-container",0),r.Gc(2,"\n "),r.Ec(3,zu,4,2,"span",1),r.Gc(4,"\n ")),2&e&&(r.Eb(1),r.mc("nzStringTemplateOutlet",t.contentTemplateOutlet)("nzStringTemplateOutletContext",r.pc(3,ju,t.contentTemplateOutletContext)),r.Eb(2),r.mc("ngIf",t.deletable&&!t.disabled))},directives:[tr.b,o.o,Ge.a,Ki.a],encapsulation:2,changeDetection:0}),e})(),Hu=(()=>{class e{constructor(e){this.elementRef=e,this.placeholder=null,this.elementRef.nativeElement.classList.add("ant-select-selection-placeholder")}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-select-placeholder"]],inputs:{placeholder:"placeholder"},decls:3,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,Au,2,1,"ng-container",0),r.Gc(2,"\n ")),2&e&&(r.Eb(1),r.mc("nzStringTemplateOutlet",t.placeholder))},directives:[tr.b],encapsulation:2,changeDetection:0}),e})(),qu=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,bs,ya.i,be.b,ot.h,Ge.b,tr.a,Ql,er.c,Zi.b,Ki.b,Sl.f,Tt]]}),e})();function Qu(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"nz-form-label"),r.Gc(3),r.Vb(),r.Gc(4,"\n "),r.Wb(5,"nz-form-control"),r.Gc(6,"\n "),r.Wb(7,"nz-input-number",5),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().data=t})("ngModelChange",function(t){r.wc(e);const n=r.gc();return n.onInput(t,n.item)}),r.Vb(),r.Gc(8,"\n "),r.Vb(),r.Gc(9,"\n "),r.Tb()}if(2&e){const e=r.gc();r.Eb(3),r.Hc(e.item.description),r.Eb(4),r.mc("ngModel",e.data)("name",e.item.key)}}function Ku(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"nz-form-label"),r.Gc(3),r.Vb(),r.Gc(4,"\n "),r.Wb(5,"nz-form-control"),r.Gc(6,"\n "),r.Wb(7,"nz-switch",5),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().data=t})("ngModelChange",function(t){r.wc(e);const n=r.gc();return n.onInput(t,n.item)}),r.Vb(),r.Gc(8,"\n "),r.Vb(),r.Gc(9,"\n "),r.Tb()}if(2&e){const e=r.gc();r.Eb(3),r.Hc(e.item.description),r.Eb(4),r.mc("ngModel",e.data)("name",e.item.key)}}function Xu(e,t){if(1&e){const e=r.Xb();r.Wb(0,"app-schema-form-item-input",6),r.dc("dataChange",function(t){return r.wc(e),r.gc().data=t})("dataChange",function(t){r.wc(e);const n=r.gc();return n.onInput(t,n.item)}),r.Vb()}if(2&e){const e=r.gc();r.mc("item",e.item)("data",e.data)}}function Yu(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"app-schema-form-item-list",6),r.dc("dataChange",function(t){return r.wc(e),r.gc().data=t})("dataChange",function(t){r.wc(e);const n=r.gc();return n.onInput(t,n.item)}),r.Vb(),r.Gc(3,"\n "),r.Tb()}if(2&e){const e=r.gc();r.Eb(2),r.mc("item",e.item)("data",e.data)}}function Ju(e,t){if(1&e&&r.Rb(0,"nz-option",10),2&e){const e=t.$implicit;r.mc("nzValue",e.value)("nzLabel",e.label)}}function Zu(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"nz-form-label"),r.Gc(3),r.Vb(),r.Gc(4,"\n "),r.Wb(5,"nz-form-control"),r.Gc(6,"\n "),r.Wb(7,"nz-select",8),r.dc("ngModelChange",function(t){return r.wc(e),r.gc(3).data=t})("ngModelChange",function(t){r.wc(e);const n=r.gc(3);return n.onInput(t,n.item)}),r.Gc(8,"\n "),r.Ec(9,Ju,1,2,"nz-option",9),r.Gc(10,"\n "),r.Vb(),r.Gc(11,"\n "),r.Vb(),r.Gc(12,"\n "),r.Tb()}if(2&e){const e=r.gc(3);r.Eb(3),r.Hc(e.item.description),r.Eb(4),r.mc("ngModel",e.data),r.Eb(2),r.mc("ngForOf",e.getSelectOptions(e.item))}}function eh(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ub(2,1),r.Gc(3,"\n "),r.Ec(4,Zu,13,3,"ng-container",2),r.Gc(5,"\n "),r.Tb(),r.Gc(6,"\n "),r.Tb()),2&e){const e=r.gc(2);r.Eb(2),r.mc("ngSwitch",e.item.refType),r.Eb(2),r.mc("ngSwitchCase","enum.string")}}function th(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,eh,7,2,"ng-container",7),r.Gc(3,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("ngIf",e.item.ref)}}let nh=(()=>{class e{constructor(e){this.altairConfig=e,this.dataChange=new r.n}ngOnInit(){}getOptionLabel(e,t){switch(null==e?void 0:e.key){case"language":return this.altairConfig.languages[t]||t}}getSelectOptions(e){switch(null==e?void 0:e.key){case"language":return e.ref.enum.map(e=>({label:this.altairConfig.languages[e]||e,value:e}));default:return e.ref.enum.map(e=>({label:e,value:e}))}}onInput(e,t){this.dataChange.next(this.data)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(N.a))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-schema-form-item"]],inputs:{item:"item",data:"data"},outputs:{dataChange:"dataChange"},decls:16,vars:5,consts:[[1,"ui-form__item"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"item","data","dataChange",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngModel","name","ngModelChange"],[3,"item","data","dataChange"],[4,"ngIf"],["name","item.key","nzPlaceHolder","Choose",3,"ngModel","ngModelChange"],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(e,t){1&e&&(r.Wb(0,"nz-form-item",0),r.Gc(1,"\n "),r.Ub(2,1),r.Gc(3,"\n "),r.Ec(4,Qu,10,3,"ng-container",2),r.Gc(5,"\n "),r.Ec(6,Ku,10,3,"ng-container",2),r.Gc(7,"\n "),r.Ec(8,Xu,1,2,"app-schema-form-item-input",3),r.Gc(9,"\n "),r.Ec(10,Yu,4,2,"ng-container",2),r.Gc(11,"\n "),r.Ec(12,th,4,1,"ng-container",4),r.Gc(13,"\n "),r.Tb(),r.Gc(14,"\n"),r.Vb(),r.Gc(15,"\n")),2&e&&(r.Eb(2),r.mc("ngSwitch",t.item.type),r.Eb(2),r.mc("ngSwitchCase","number"),r.Eb(2),r.mc("ngSwitchCase","boolean"),r.Eb(2),r.mc("ngSwitchCase","string"),r.Eb(2),r.mc("ngSwitchCase","array"))},directives:[lc,Ec,o.q,o.r,o.s,uc,kc,Tc,zc,ya.l,ya.o,Pc,_l,El,o.o,Vu,o.n,Lu],encapsulation:2,changeDetection:0}),e})();function ih(e,t){if(1&e){const e=r.Xb();r.Wb(0,"app-schema-form-item",3),r.dc("dataChange",function(n){r.wc(e);const i=t.$implicit;return r.gc().formData[i.key]=n})("dataChange",function(n){r.wc(e);const i=t.$implicit;return r.gc().onInput(n,i)}),r.Vb()}if(2&e){const e=t.$implicit,n=r.gc();r.mc("item",e)("data",n.formData[e.key])}}let rh=(()=>{class e{constructor(){this.schema={},this.data=null,this.dataChange=new r.n,this.schemaProperties=[]}ngOnInit(){this.schema&&this.updateSchemaProperties(this.schema)}ngOnChanges(e){e&&e.schema&&e.schema.currentValue&&this.updateSchemaProperties(e.schema.currentValue)}updateSchemaProperties(e){this.schemaProperties=Object.entries(e.properties||{}).map(([e,t])=>"object"!=typeof t?{key:e}:{...t,key:e}).sort((e,t)=>e.key>t.key?1:-1).map(t=>(t.$ref&&(t.ref=Ya(t,e),t.ref&&t.ref.enum&&(t.refType=`enum.${t.ref.type}`)),t)),this.formData=JSON.parse(JSON.stringify(this.data))}onInput(e,t){this.dataChange.next(this.formData)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-schema-form"]],inputs:{schema:"schema",data:"data"},outputs:{dataChange:"dataChange"},features:[r.Cb],decls:8,vars:1,consts:[[1,"ui-form-wrapper"],["nz-form",""],[3,"item","data","dataChange",4,"ngFor","ngForOf"],[3,"item","data","dataChange"]],template:function(e,t){1&e&&(r.Wb(0,"div",0),r.Gc(1,"\n "),r.Wb(2,"form",1),r.Gc(3,"\n "),r.Ec(4,ih,1,2,"app-schema-form-item",2),r.Gc(5,"\n "),r.Vb(),r.Gc(6,"\n"),r.Vb(),r.Gc(7,"\n")),2&e&&(r.Eb(4),r.mc("ngForOf",t.schemaProperties))},directives:[ya.p,ya.m,ya.n,Cc,o.n,nh],encapsulation:2,changeDetection:0}),e})(),oh=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,Ge.b,be.b]]}),e})();var sh=n("PqYM"),ah=n("zx2A");class ch{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new lh(e,this.durationSelector))}}class lh extends ah.b{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){try{const t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(t){this.destination.error(t)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(e,t){let n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=Object(ah.c)(t,new ah.a(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const e=this.value,t=this.durationSubscription;t&&(this.durationSubscription=void 0,t.unsubscribe(),this.remove(t)),this.value=void 0,this.hasValue=!1,super._next(e)}}}function uh(e,t){1&e&&(r.Wb(0,"span",3),r.Rb(1,"i",4),r.Rb(2,"i",4),r.Rb(3,"i",4),r.Rb(4,"i",4),r.Vb())}function hh(e,t){}function dh(e,t){if(1&e&&(r.Wb(0,"div",8),r.Gc(1),r.Vb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.nzTip)}}function ph(e,t){if(1&e&&(r.Wb(0,"div"),r.Wb(1,"div",5),r.Ec(2,hh,0,0,"ng-template",6),r.Ec(3,dh,2,1,"div",7),r.Vb(),r.Vb()),2&e){const e=r.gc(),t=r.tc(1);r.Eb(1),r.Ib("ant-spin-rtl","rtl"===e.dir)("ant-spin-spinning",e.isLoading)("ant-spin-lg","large"===e.nzSize)("ant-spin-sm","small"===e.nzSize)("ant-spin-show-text",e.nzTip),r.Eb(1),r.mc("ngTemplateOutlet",e.nzIndicator||t),r.Eb(1),r.mc("ngIf",e.nzTip)}}function fh(e,t){if(1&e&&(r.Wb(0,"div",9),r.kc(1),r.Vb()),2&e){const e=r.gc();r.Ib("ant-spin-blur",e.isLoading)}}const gh=["*"];let mh=(()=>{class e{constructor(e,t,n){this.nzConfigService=e,this.cdr=t,this.directionality=n,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new fe.a,this.spinning$=new cs.a(this.nzSpinning),this.delay$=new cc.a(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var e;this.delay$.pipe(Object(we.a)(this.nzDelay),Object(a.a)(),Object(u.a)(e=>{return 0===e?this.spinning$:this.spinning$.pipe((t=t=>Object(sh.a)(t?e:0),e=>e.lift(new ch(t))));var t}),Object(ge.a)(this.destroy$)).subscribe(e=>{this.isLoading=e,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe(Object(ge.a)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzSpinning:t,nzDelay:n}=e;t&&this.spinning$.next(this.nzSpinning),n&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.h),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-spin-nested-loading",!t.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[r.Cb],ngContentSelectors:gh,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(e,t){1&e&&(r.lc(),r.Ec(0,uh,5,0,"ng-template",null,0,r.Fc),r.Ec(2,ph,4,12,"div",1),r.Ec(3,fh,2,2,"div",2)),2&e&&(r.Eb(2),r.mc("ngIf",t.isLoading),r.Eb(1),r.mc("ngIf",!t.nzSimple))},directives:[o.o,o.t],encapsulation:2}),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzIndicator",void 0),Object(me.b)([Object(_e.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzDelay",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzSimple",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzSpinning",void 0),e})(),bh=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,ht]]}),e})();const vh=["*"];function yh(e,t){1&e&&r.kc(0)}const wh=["nz-list-item-actions",""];function _h(e,t){}function Oh(e,t){1&e&&r.Rb(0,"em",3)}function Ch(e,t){if(1&e&&(r.Wb(0,"li"),r.Gc(1,"\n "),r.Ec(2,_h,0,0,"ng-template",1),r.Gc(3,"\n "),r.Ec(4,Oh,1,0,"em",2),r.Gc(5,"\n "),r.Vb()),2&e){const e=t.$implicit,n=t.last;r.Eb(2),r.mc("ngTemplateOutlet",e),r.Eb(2),r.mc("ngIf",!n)}}function Eh(e,t){}const Sh=function(e,t){return{$implicit:e,index:t}};function Th(e,t){if(1&e&&(r.Ub(0),r.Ec(1,Eh,0,0,"ng-template",9),r.Tb()),2&e){const e=t.$implicit,n=t.index,i=r.gc(2);r.Eb(1),r.mc("ngTemplateOutlet",i.nzRenderItem)("ngTemplateOutletContext",r.qc(2,Sh,e,n))}}function xh(e,t){if(1&e&&(r.Wb(0,"div",7),r.Ec(1,Th,2,5,"ng-container",8),r.kc(2,4),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("ngForOf",e.nzDataSource)}}function kh(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.nzHeader)}}function Ih(e,t){if(1&e&&(r.Wb(0,"nz-list-header"),r.Ec(1,kh,2,1,"ng-container",10),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzHeader)}}function Dh(e,t){1&e&&r.Rb(0,"div"),2&e&&r.Bc("min-height",53,"px")}function zh(e,t){}function jh(e,t){if(1&e&&(r.Wb(0,"div",13),r.Ec(1,zh,0,0,"ng-template",9),r.Vb()),2&e){const e=t.$implicit,n=t.index,i=r.gc(2);r.mc("nzSpan",i.nzGrid.span||null)("nzXs",i.nzGrid.xs||null)("nzSm",i.nzGrid.sm||null)("nzMd",i.nzGrid.md||null)("nzLg",i.nzGrid.lg||null)("nzXl",i.nzGrid.xl||null)("nzXXl",i.nzGrid.xxl||null),r.Eb(1),r.mc("ngTemplateOutlet",i.nzRenderItem)("ngTemplateOutletContext",r.qc(9,Sh,e,n))}}function Ah(e,t){if(1&e&&(r.Wb(0,"div",11),r.Ec(1,jh,2,12,"div",12),r.Vb()),2&e){const e=r.gc();r.mc("nzGutter",e.nzGrid.gutter||null),r.Eb(1),r.mc("ngForOf",e.nzDataSource)}}function Rh(e,t){if(1&e&&r.Rb(0,"nz-list-empty",14),2&e){const e=r.gc();r.mc("nzNoResult",e.nzNoResult)}}function Nh(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.Hc(e.nzFooter)}}function Lh(e,t){if(1&e&&(r.Wb(0,"nz-list-footer"),r.Ec(1,Nh,2,1,"ng-container",10),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzFooter)}}function Mh(e,t){}function Fh(e,t){}function Ph(e,t){if(1&e&&(r.Wb(0,"nz-list-pagination"),r.Ec(1,Fh,0,0,"ng-template",6),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("ngTemplateOutlet",e.nzPagination)}}const Vh=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Gh=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Bh(e,t){if(1&e&&r.Rb(0,"ul",6),2&e){const e=r.gc(2);r.mc("nzActions",e.nzActions)}}function Wh(e,t){if(1&e&&(r.Ec(0,Bh,1,1,"ul",5),r.kc(1)),2&e){const e=r.gc();r.mc("ngIf",e.nzActions&&e.nzActions.length>0)}}function $h(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(3);r.Eb(1),r.Hc(e.nzContent)}}function Uh(e,t){if(1&e&&(r.Ub(0),r.Ec(1,$h,2,1,"ng-container",8),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzContent)}}function Hh(e,t){if(1&e&&(r.kc(0,1),r.kc(1,2),r.Ec(2,Uh,2,1,"ng-container",7)),2&e){const e=r.gc();r.Eb(2),r.mc("ngIf",e.nzContent)}}function qh(e,t){1&e&&r.kc(0,3)}function Qh(e,t){}function Kh(e,t){}function Xh(e,t){}function Yh(e,t){}function Jh(e,t){if(1&e&&(r.Ec(0,Qh,0,0,"ng-template",9),r.Ec(1,Kh,0,0,"ng-template",9),r.Ec(2,Xh,0,0,"ng-template",9),r.Ec(3,Yh,0,0,"ng-template",9)),2&e){const e=r.gc(),t=r.tc(3),n=r.tc(5),i=r.tc(1);r.mc("ngTemplateOutlet",t),r.Eb(1),r.mc("ngTemplateOutlet",e.nzExtra),r.Eb(1),r.mc("ngTemplateOutlet",n),r.Eb(1),r.mc("ngTemplateOutlet",i)}}function Zh(e,t){}function ed(e,t){}function td(e,t){}function nd(e,t){if(1&e&&(r.Wb(0,"nz-list-item-extra"),r.Ec(1,td,0,0,"ng-template",9),r.Vb()),2&e){const e=r.gc(2);r.Eb(1),r.mc("ngTemplateOutlet",e.nzExtra)}}function id(e,t){}function rd(e,t){if(1&e&&(r.Ub(0),r.Wb(1,"div",10),r.Ec(2,Zh,0,0,"ng-template",9),r.Ec(3,ed,0,0,"ng-template",9),r.Vb(),r.Ec(4,nd,2,1,"nz-list-item-extra",7),r.Ec(5,id,0,0,"ng-template",9),r.Tb()),2&e){const e=r.gc(),t=r.tc(3),n=r.tc(1),i=r.tc(5);r.Eb(2),r.mc("ngTemplateOutlet",t),r.Eb(1),r.mc("ngTemplateOutlet",n),r.Eb(1),r.mc("ngIf",e.nzExtra),r.Eb(1),r.mc("ngTemplateOutlet",i)}}const od=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],sd=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let ad=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:vh,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0," "),r.kc(1),r.Gc(2," "))},encapsulation:2,changeDetection:0}),e})(),cd=(()=>{class e{constructor(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-list-item-action"]],viewQuery:function(e,t){if(1&e&&r.Kc(r.O,1),2&e){let e;r.sc(e=r.ec())&&(t.templateRef=e.first)}},exportAs:["nzListItemAction"],ngContentSelectors:vh,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0," "),r.Ec(1,yh,1,0,"ng-template"),r.Gc(2," "))},encapsulation:2,changeDetection:0}),e})(),ld=(()=>{class e{constructor(e,t){this.ngZone=e,this.cdr=t,this.nzActions=[],this.actions=[],this.destroy$=new fe.a,this.inputActionChanges$=new fe.a,this.contentChildrenChanges$=Object(ss.a)(()=>this.nzListItemActions?Object(v.a)(null):this.ngZone.onStable.asObservable().pipe(Object(l.a)(1),Object(u.a)(()=>this.contentChildrenChanges$))),Object(Gc.a)(this.contentChildrenChanges$,this.inputActionChanges$).pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(e=>e.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.B),r.Qb(r.h))},e.\u0275cmp=r.Kb({type:e,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,cd,0),2&e){let e;r.sc(e=r.ec())&&(t.nzListItemActions=e)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[r.Cb],attrs:wh,decls:3,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,Ch,6,2,"li",0),r.Gc(2,"\n ")),2&e&&(r.Eb(1),r.mc("ngForOf",t.actions))},directives:[o.n,o.t,o.o],encapsulation:2,changeDetection:0}),e})(),ud=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:3,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(e,t){1&e&&(r.Gc(0," "),r.Rb(1,"nz-embed-empty",0),r.Gc(2," ")),2&e&&(r.Eb(1),r.mc("nzComponentName","list")("specificContent",t.nzNoResult))},directives:[Wl],encapsulation:2,changeDetection:0}),e})(),hd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:vh,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0," "),r.kc(1),r.Gc(2," "))},encapsulation:2,changeDetection:0}),e})(),dd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:vh,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0," "),r.kc(1),r.Gc(2," "))},encapsulation:2,changeDetection:0}),e})(),pd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:vh,decls:3,vars:0,template:function(e,t){1&e&&(r.lc(),r.Gc(0," "),r.kc(1),r.Gc(2," "))},encapsulation:2,changeDetection:0}),e})(),fd=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Lb({type:e,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),e})(),gd=(()=>{class e{constructor(e,t){this.elementRef=e,this.directionality=t,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new cs.a(this.nzItemLayout),this.destroy$=new fe.a,this.elementRef.nativeElement.classList.add("ant-list")}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(e){e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(e,t,n){if(1&e&&(r.Jb(n,dd,1),r.Jb(n,pd,1),r.Jb(n,fd,1)),2&e){let e;r.sc(e=r.ec())&&(t.nzListFooterComponent=e.first),r.sc(e=r.ec())&&(t.nzListPaginationComponent=e.first),r.sc(e=r.ec())&&(t.nzListLoadMoreDirective=e.first)}},hostVars:16,hostBindings:function(e,t){2&e&&r.Ib("ant-list-rtl","rtl"===t.dir)("ant-list-vertical","vertical"===t.nzItemLayout)("ant-list-lg","large"===t.nzSize)("ant-list-sm","small"===t.nzSize)("ant-list-split",t.nzSplit)("ant-list-bordered",t.nzBordered)("ant-list-loading",t.nzLoading)("ant-list-something-after-last-item",t.hasSomethingAfterLastItem)},inputs:{nzBordered:"nzBordered",nzGrid:"nzGrid",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzSize:"nzSize",nzSplit:"nzSplit",nzDataSource:"nzDataSource",nzHeader:"nzHeader",nzFooter:"nzFooter",nzPagination:"nzPagination",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[r.Cb],ngContentSelectors:Gh,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(e,t){if(1&e&&(r.lc(Vh),r.Ec(0,xh,3,1,"ng-template",null,0,r.Fc),r.Ec(2,Ih,2,1,"nz-list-header",1),r.kc(3),r.Wb(4,"nz-spin",2),r.Ub(5),r.Ec(6,Dh,1,2,"div",3),r.Ec(7,Ah,2,2,"div",4),r.Ec(8,Rh,1,1,"nz-list-empty",5),r.Tb(),r.Vb(),r.Ec(9,Lh,2,1,"nz-list-footer",1),r.kc(10,1),r.Ec(11,Mh,0,0,"ng-template",6),r.kc(12,2),r.Ec(13,Ph,2,1,"nz-list-pagination",1),r.kc(14,3)),2&e){const e=r.tc(1);r.Eb(2),r.mc("ngIf",t.nzHeader),r.Eb(2),r.mc("nzSpinning",t.nzLoading),r.Eb(2),r.mc("ngIf",t.nzLoading&&t.nzDataSource&&0===t.nzDataSource.length),r.Eb(1),r.mc("ngIf",t.nzGrid&&t.nzDataSource)("ngIfElse",e),r.Eb(1),r.mc("ngIf",!t.nzLoading&&t.nzDataSource&&0===t.nzDataSource.length),r.Eb(1),r.mc("ngIf",t.nzFooter),r.Eb(2),r.mc("ngTemplateOutlet",t.nzLoadMore),r.Eb(2),r.mc("ngIf",t.nzPagination)}},directives:[o.o,mh,o.t,o.n,hd,tr.b,lc,uc,ud,dd,pd],encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzBordered",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzLoading",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzSplit",void 0),e})(),md=(()=>{class e{constructor(e,t,n,i){this.parentComp=n,this.cdr=i,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,t.addClass(e.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(e=>{this.itemLayout=e,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G),r.Qb(gd),r.Qb(r.h))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,ad,1),2&e){let e;r.sc(e=r.ec())&&(t.listItemExtraDirective=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-list-item-no-flex",t.nzNoFlex)},inputs:{nzActions:"nzActions",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex",nzContent:"nzContent"},exportAs:["nzListItem"],ngContentSelectors:sd,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(e,t){if(1&e&&(r.lc(od),r.Ec(0,Wh,2,1,"ng-template",null,0,r.Fc),r.Ec(2,Hh,3,1,"ng-template",null,1,r.Fc),r.Ec(4,qh,1,0,"ng-template",null,2,r.Fc),r.Ec(6,Jh,4,4,"ng-template",null,3,r.Fc),r.Ec(8,rd,6,4,"ng-container",4)),2&e){const e=r.tc(7);r.Eb(8),r.mc("ngIf",t.isVerticalAndExtra)("ngIfElse",e)}},directives:[o.o,ld,tr.b,o.t,ad],encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzNoFlex",void 0),e})(),bd=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,bh,hc,oh,tr.a,Ql]]}),e})();const vd=["editor"];function yd(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",4),r.Gc(2,"\n "),r.Wb(3,"div",5),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n ")),2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"SETTINGS_TEXT")),r.Eb(2),r.Ic("\n ",r.ic(7,4,"SETTINGS_SUB_TEXT"),"\n "))}function wd(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",9),r.Gc(1,"\n "),r.Wb(2,"app-schema-form",14),r.dc("dataChange",function(t){return r.wc(e),r.gc(2).onFormDataChange(t)}),r.Vb(),r.Gc(3,"\n "),r.Vb()}if(2&e){const e=r.gc(2);r.Eb(2),r.mc("schema",e.settingsSchema)("data",e.localSettings)}}function _d(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",9),r.Gc(1,"\n "),r.Wb(2,"ngx-codemirror",15,16),r.dc("ngModelChange",function(t){return r.wc(e),r.gc(2).onSettingsChange(t)}),r.Vb(),r.Gc(4,"\n "),r.Wb(5,"small"),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n "),r.Wb(9,"small"),r.Wb(10,"a",17),r.Gc(11,"Click here for available settings options"),r.Vb(),r.Vb(),r.Gc(12,"\n "),r.Vb()}if(2&e){const e=r.gc(2);r.Eb(2),r.mc("options",e.jsonEditorConfig)("ngModel",e.jsonSettings),r.Eb(4),r.Hc(r.ic(7,3,"SETTINGS_SHOW_EDITOR_HINT"))}}function Od(e,t){if(1&e&&(r.Wb(0,"span",22),r.Gc(1),r.Vb()),2&e){const e=t.$implicit;r.Eb(1),r.Hc(e)}}function Cd(e,t){if(1&e&&(r.Gc(0,"\n "),r.Wb(1,"nz-list-item"),r.Gc(2,"\n "),r.Wb(3,"span",20),r.Gc(4),r.Vb(),r.Gc(5,"\n "),r.Ec(6,Od,2,1,"span",21),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n ")),2&e){const e=t.$implicit,n=r.gc(3);r.Eb(4),r.Ic("\n ",e.description,"\n "),r.Eb(2),r.mc("ngForOf",e.keys)("ngForTrackBy",n.trackByIndex)}}function Ed(e,t){if(1&e&&(r.Wb(0,"nz-collapse-panel",10),r.Gc(1,"\n "),r.Wb(2,"nz-list",18),r.Gc(3,"\n "),r.Ec(4,Cd,9,3,"ng-template",null,19,r.Fc),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Vb()),2&e){const e=t.$implicit,n=r.tc(5);r.mc("nzHeader",e.title),r.Eb(2),r.mc("nzDataSource",e.shortcuts)("nzRenderItem",n)}}function Sd(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",6),r.Gc(2,"\n "),r.Wb(3,"small"),r.Wb(4,"a",7),r.dc("click",function(t){r.wc(e);const n=r.gc();return t.preventDefault(),t.stopPropagation(),n.onToggleView()}),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Vb(),r.Gc(7,"\n "),r.Ec(8,wd,4,2,"div",8),r.Gc(9,"\n\n "),r.Ec(10,_d,13,5,"div",8),r.Gc(11,"\n\n "),r.Wb(12,"div",9),r.Gc(13,"\n "),r.Wb(14,"nz-collapse"),r.Gc(15,"\n "),r.Wb(16,"nz-collapse-panel",10),r.hc(17,"translate"),r.Gc(18,"\n "),r.Wb(19,"div"),r.Gc(20,"\n "),r.Wb(21,"nz-collapse",11),r.Gc(22,"\n "),r.Ec(23,Ed,8,3,"nz-collapse-panel",12),r.Gc(24,"\n "),r.Vb(),r.Gc(25,"\n "),r.Vb(),r.Gc(26,"\n "),r.Vb(),r.Gc(27,"\n "),r.Vb(),r.Gc(28,"\n "),r.Wb(29,"div"),r.Gc(30,"\n "),r.Wb(31,"small"),r.Wb(32,"a",13),r.dc("click",function(t){return r.wc(e),r.gc().onResetApplicationData(t)}),r.Gc(33),r.hc(34,"translate"),r.Vb(),r.Vb(),r.Gc(35,"\n "),r.Vb(),r.Gc(36,"\n "),r.Vb(),r.Gc(37,"\n "),r.Vb(),r.Gc(38,"\n ")}if(2&e){const e=r.gc();r.Eb(5),r.Hc(r.ic(6,8,"SETTINGS_TOGGLE_ADVANCED_MODE")),r.Eb(3),r.mc("ngIf",e.showForm),r.Eb(2),r.mc("ngIf",!e.showForm),r.Eb(6),r.mc("nzHeader",r.ic(17,10,"SETTINGS_KEYBOARD_SHORTCUTS")),r.Eb(5),r.mc("nzBordered",!1),r.Eb(2),r.mc("ngForOf",e.shortcutCategories)("ngForTrackBy",e.trackByIndex),r.Eb(10),r.Hc(r.ic(34,12,"SETTINGS_RESET_APPLICATION_DATA"))}}function Td(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",23),r.Gc(2,"\n "),r.Wb(3,"div",24),r.Gc(4,"\n "),r.Wb(5,"label"),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n "),r.Wb(9,"div"),r.Gc(10,"\n "),r.Wb(11,"small"),r.Gc(12),r.hc(13,"translate"),r.Wb(14,"a",25),r.Gc(15),r.hc(16,"translate"),r.Vb(),r.Vb(),r.Gc(17,"\n "),r.Vb(),r.Gc(18,"\n "),r.Vb(),r.Gc(19,"\n "),r.Wb(20,"button",26),r.dc("click",function(){return r.wc(e),r.gc().saveSettings()}),r.Gc(21),r.hc(22,"translate"),r.Vb(),r.Gc(23,"\n "),r.Vb(),r.Gc(24,"\n ")}if(2&e){const e=r.gc();r.Eb(6),r.Jc("",r.ic(7,5,"SETTINGS_VERSION_TEXT")," ",e.appVersion,""),r.Eb(6),r.Ic("",r.ic(13,7,"SETTINGS_HELP_WITH_TRANSLATIONS_TEXT")," "),r.Eb(3),r.Hc(r.ic(16,9,"CLICK_HERE_TEXT")),r.Eb(6),r.Hc(r.ic(22,11,"SAVE_BUTTON"))}}var xd;(xd=ba).registerHelper("lint","json",function(e){let t=[];try{!Ka(e)&&qa.errors&&(t=[...t,...qa.errors.map(e=>{let t=`[${e.keyword}] '${e.dataPath.substring(1)}' ${e.message}`;return e.params&&e.params.allowedValues&&(t+=`\nAllowed values: [${e.params.allowedValues.join(", ")}]`),{from:xd.Pos(1,1),to:xd.Pos(1,1),message:t}})])}catch(n){M.a.log(e,n),t.push({from:xd.Pos(1,1),to:xd.Pos(1,1),message:"Invalid JSON"})}return t});let kd=(()=>{class e{constructor(e,t,n,i){this.notifyService=e,this.keybinderService=t,this.storageService=n,this.altairConfig=i,this.showSettingsDialog=!1,this.toggleDialogChange=new r.n,this.settingsJsonChange=new r.n,this.themes=this.altairConfig.themes,this.languages=Object.entries(this.altairConfig.languages),this.shortcutCategories=[],this.settingsSchema=Qa,this.showForm=!0,this.jsonSettings="",this.localSettings=null,this.jsonEditorConfig={mode:"application/json",lint:!0,lineWrapping:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,autoCloseBrackets:!0,theme:"default settings-editor",gutters:["CodeMirror-lint-markers"],extraKeys:{"Ctrl-Space":e=>{this.showHint(e)}}}}ngOnInit(){this.shortcutCategories=this.keybinderService.getShortcuts()}ngAfterViewInit(){this.editor&&(this.editor.codeMirror.on("keyup",(e,t)=>/^[a-zA-Z0-9_@(]$/.test(t.key)&&this.showHint(e)),this.editor.codeMirror.refresh())}ngOnChanges(e){e&&e.settings&&e.settings.currentValue&&this.updateLocalSettings(JSON.stringify(e.settings.currentValue,null,2))}ngDoCheck(){rs(this.editor&&this.editor.codeMirror)}showHint(e){e.showHint({hint:Ja,completeSingle:!1})}onSettingsChange(e){this.updateLocalSettings(e)}saveSettings(){Ka(this.jsonSettings)?(this.settingsJsonChange.next(this.jsonSettings),this.toggleDialogChange.next(!1)):this.notifyService.error("Check that the settings are correct.")}onFormDataChange(e){M.a.log(e),this.onSettingsChange(JSON.stringify(e,null,2))}updateLocalSettings(e){this.jsonSettings=e;try{this.localSettings=JSON.parse(this.jsonSettings)}catch(t){}}onToggleView(){this.showForm=!this.showForm}onResetApplicationData(e){return e.preventDefault(),e.stopPropagation(),confirm("\n \u274c\u274c\u274c\n Warning! You are about to reset the application.\n Are you sure you want to reset the application?\n\n This is not reversible!".trim().replace(/ +/g," "))&&confirm("\n THIS IS YOUR LAST WARNING!\n TURN BACK NOW IF YOU DON'T WANT TO LOSE ALL THE APPLICATION DATA.\n\n ARE YOU REALLY SURE YOU WANT TO RESET ALTAIR?!\n ".trim().replace(/ +/g," "))&&(this.storageService.clearAllLocalData(),location.reload()),!1}trackByIndex(e){return e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(R.NotifyService),r.Qb(R.KeybinderService),r.Qb(R.StorageService),r.Qb(N.a))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-settings-dialog"]],viewQuery:function(e,t){if(1&e&&r.Kc(vd,3),2&e){let e;r.sc(e=r.ec())&&(t.editor=e.first)}},inputs:{settings:"settings",appVersion:"appVersion",showSettingsDialog:"showSettingsDialog"},outputs:{toggleDialogChange:"toggleDialogChange",settingsJsonChange:"settingsJsonChange"},features:[r.Cb],decls:13,vars:5,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzWidth","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],["href","#",3,"click"],["class","app-dialog-section",4,"ngIf"],[1,"app-dialog-section"],[3,"nzHeader"],[3,"nzBordered"],[3,"nzHeader",4,"ngFor","ngForOf","ngForTrackBy"],["href","#","track-id","reset_application_data",1,"settings__reset-link",3,"click"],[3,"schema","data","dataChange"],[1,"settings-editor-textarea",3,"options","ngModel","ngModelChange"],["editor",""],["target","_blank","href","http://altair.sirmuel.design/docs/features/settings-pane","rel","noopener"],["nzBordered","",3,"nzDataSource","nzRenderItem"],["shortcutItem",""],[1,"settings-shortcut-description"],["class","settings-shortcut-key",4,"ngFor","ngForOf","ngForTrackBy"],[1,"settings-shortcut-key"],[1,"app-dialog-footer"],[1,"left","text-align-left"],["href","https://altair-gql-translate.surge.sh/","target","_blank","track-id","go_to_translate_link"],["track-id","save_settings",1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(r.Gc(0,"\n"),r.Wb(1,"nz-modal",0),r.dc("nzVisibleChange",function(e){return t.toggleDialogChange.next(e)})("nzOnCancel",function(e){return t.toggleDialogChange.next(e)}),r.Gc(2,"\n "),r.Ec(3,yd,9,6,"ng-template",null,1,r.Fc),r.Gc(5,"\n\n "),r.Ec(6,Sd,39,14,"ng-template",null,2,r.Fc),r.Gc(8,"\n\n "),r.Ec(9,Td,25,13,"ng-template",null,3,r.Fc),r.Gc(11,"\n"),r.Vb(),r.Gc(12,"\n")),2&e){const e=r.tc(4),n=r.tc(7),i=r.tc(10);r.Eb(1),r.mc("nzVisible",t.showSettingsDialog)("nzTitle",e)("nzContent",n)("nzFooter",i)("nzWidth",800)}},directives:[ha,o.o,oc,sc,o.n,rh,Ca,ya.l,ya.o,gd,md],pipes:[y.c],styles:[""]}),e})();function Id(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",4),r.Gc(2,"\n "),r.Wb(3,"div",5),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n ")),2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"IMPORT_CURL_TITLE_TEXT")),r.Eb(2),r.Ic("\n ",r.ic(7,4,"IMPORT_CURL_TITLE_SUBTEXT"),"\n "))}function Dd(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",6),r.Gc(2,"\n "),r.Wb(3,"div",7),r.Gc(4,"\n "),r.Wb(5,"textarea",8),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().textAreaInput=t}),r.Vb(),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n ")}if(2&e){const e=r.gc();r.Eb(5),r.mc("ngModel",e.textAreaInput)}}function zd(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",9),r.Gc(2,"\n "),r.Wb(3,"button",10),r.dc("click",function(){return r.wc(e),r.gc().importInput()}),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n ")}2&e&&(r.Eb(4),r.Hc(r.ic(5,1,"IMPORT_BUTTON")))}let jd=(()=>{class e{constructor(){this.showImportCurlDialog=!1,this.toggleDialogChange=new r.n,this.importCurlChange=new r.n,this.textAreaInput=""}ngOnInit(){}importInput(){this.toggleDialogChange.next(!1),this.importCurlChange.next(this.textAreaInput)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-import-curl-dialog"]],inputs:{showImportCurlDialog:"showImportCurlDialog"},outputs:{toggleDialogChange:"toggleDialogChange",importCurlChange:"importCurlChange"},decls:12,vars:4,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],[1,"form-group"],["aria-label","text input","cols","30","rows","10",1,"dialog-textarea",3,"ngModel","ngModelChange"],[1,"app-dialog-footer"],["track-id","close_import_from_curl_dialog",1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(r.Wb(0,"nz-modal",0),r.dc("nzVisibleChange",function(e){return t.toggleDialogChange.next(e)})("nzOnCancel",function(e){return t.toggleDialogChange.next(e)}),r.Gc(1,"\n "),r.Ec(2,Id,9,6,"ng-template",null,1,r.Fc),r.Gc(4,"\n\n "),r.Ec(5,Dd,9,1,"ng-template",null,2,r.Fc),r.Gc(7,"\n\n "),r.Ec(8,zd,8,3,"ng-template",null,3,r.Fc),r.Gc(10,"\n"),r.Vb(),r.Gc(11,"\n")),2&e){const e=r.tc(3),n=r.tc(6),i=r.tc(9);r.mc("nzVisible",t.showImportCurlDialog)("nzTitle",e)("nzContent",n)("nzFooter",i)}},directives:[ha,ya.e,ya.l,ya.o],pipes:[y.c],styles:[""]}),e})();function Ad(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",4),r.Gc(2,"\n "),r.Wb(3,"div",5),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n ")),2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"EDIT_COLLECTION_TITLE_TEXT")),r.Eb(2),r.Ic("\n ",r.ic(7,4,"EDIT_COLLECTION_TITLE_SUBTEXT"),"\n "))}function Rd(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",7),r.Gc(1,"\n "),r.Wb(2,"div",8),r.Gc(3),r.hc(4,"translate"),r.Wb(5,"input",9),r.dc("ngModelChange",function(t){return r.wc(e),r.gc(2).collection.title=t}),r.Vb(),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Vb()}if(2&e){const e=r.gc(2);r.Eb(3),r.Ic("\n ",r.ic(4,2,"COLLECTION_TITLE_LABEL"),"\n "),r.Eb(2),r.mc("ngModel",e.collection.title)}}function Nd(e,t){if(1&e&&(r.Gc(0,"\n "),r.Ec(1,Rd,8,4,"div",6),r.Gc(2,"\n ")),2&e){const e=r.gc();r.Eb(1),r.mc("ngIf",e.collection)}}function Ld(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",10),r.Gc(2,"\n "),r.Wb(3,"button",11),r.dc("click",function(){return r.wc(e),r.gc().updateCollection()}),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n ")}2&e&&(r.Eb(4),r.Hc(r.ic(5,1,"SAVE_BUTTON")))}let Md=(()=>{class e{constructor(){this.showEditCollectionDialog=!0,this.toggleDialogChange=new r.n,this.importCurlChange=new r.n,this.updateCollectionChange=new r.n}ngOnInit(){}updateCollection(){this.toggleDialogChange.next(!1),this.updateCollectionChange.next({collection:this.collection})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-edit-collection-dialog"]],inputs:{showEditCollectionDialog:"showEditCollectionDialog",collection:"collection"},outputs:{toggleDialogChange:"toggleDialogChange",importCurlChange:"importCurlChange",updateCollectionChange:"updateCollectionChange"},decls:12,vars:4,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],["class","app-dialog-body",4,"ngIf"],[1,"app-dialog-body"],[1,"form-group"],["type","text",1,"dialog-input",3,"ngModel","ngModelChange"],[1,"app-dialog-footer"],["track-id","",1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(r.Wb(0,"nz-modal",0),r.dc("nzVisibleChange",function(e){return t.toggleDialogChange.next(e)})("nzOnCancel",function(e){return t.toggleDialogChange.next(e)}),r.Gc(1,"\n "),r.Ec(2,Ad,9,6,"ng-template",null,1,r.Fc),r.Gc(4,"\n\n "),r.Ec(5,Nd,3,1,"ng-template",null,2,r.Fc),r.Gc(7,"\n\n "),r.Ec(8,Ld,8,3,"ng-template",null,3,r.Fc),r.Gc(10,"\n"),r.Vb(),r.Gc(11,"\n")),2&e){const e=r.tc(3),n=r.tc(6),i=r.tc(9);r.mc("nzVisible",t.showEditCollectionDialog)("nzTitle",e)("nzContent",n)("nzFooter",i)}},directives:[ha,o.o,ya.e,ya.l,ya.o],pipes:[y.c],styles:[""]}),e})();const Fd=["elRef"];let Pd=(()=>{class e{constructor(){}ngAfterViewInit(){this.element&&this.elRef.nativeElement.appendChild(this.element)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-element-wrapper"]],viewQuery:function(e,t){if(1&e&&r.Kc(Fd,3),2&e){let e;r.sc(e=r.ec())&&(t.elRef=e.first)}},inputs:{element:"element"},decls:3,vars:0,consts:[[1,"element__wrapper"],["elRef",""]],template:function(e,t){1&e&&(r.Rb(0,"div",0,1),r.Gc(2,"\n"))},encapsulation:2}),e})();function Vd(e,t){if(1&e&&(r.Ub(0),r.Rb(1,"i",5),r.Tb()),2&e){const e=r.gc(2);r.Eb(1),r.mc("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function Gd(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(4);r.Eb(1),r.Hc(e.nzMessage)}}function Bd(e,t){if(1&e&&(r.Wb(0,"span",9),r.Ec(1,Gd,2,1,"ng-container",10),r.Vb()),2&e){const e=r.gc(3);r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzMessage)}}function Wd(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc(4);r.Eb(1),r.Hc(e.nzDescription)}}function $d(e,t){if(1&e&&(r.Wb(0,"span",11),r.Ec(1,Wd,2,1,"ng-container",10),r.Vb()),2&e){const e=r.gc(3);r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzDescription)}}function Ud(e,t){if(1&e&&(r.Wb(0,"div",6),r.Ec(1,Bd,2,1,"span",7),r.Ec(2,$d,2,1,"span",8),r.Vb()),2&e){const e=r.gc(2);r.Eb(1),r.mc("ngIf",e.nzMessage),r.Eb(1),r.mc("ngIf",e.nzDescription)}}function Hd(e,t){1&e&&r.Rb(0,"i",15)}function qd(e,t){if(1&e&&(r.Ub(0),r.Wb(1,"span",16),r.Gc(2),r.Vb(),r.Tb()),2&e){const e=r.gc(4);r.Eb(2),r.Hc(e.nzCloseText)}}function Qd(e,t){if(1&e&&(r.Ub(0),r.Ec(1,qd,3,1,"ng-container",10),r.Tb()),2&e){const e=r.gc(3);r.Eb(1),r.mc("nzStringTemplateOutlet",e.nzCloseText)}}function Kd(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",12),r.dc("click",function(){return r.wc(e),r.gc(2).closeAlert()}),r.Ec(1,Hd,1,0,"ng-template",null,13,r.Fc),r.Ec(3,Qd,2,1,"ng-container",14),r.Vb()}if(2&e){const e=r.tc(2),t=r.gc(2);r.Eb(3),r.mc("ngIf",t.nzCloseText)("ngIfElse",e)}}function Xd(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",1),r.dc("@slideAlertMotion.done",function(){return r.wc(e),r.gc().onFadeAnimationDone()}),r.Ec(1,Vd,2,2,"ng-container",2),r.Ec(2,Ud,3,2,"div",3),r.Ec(3,Kd,4,2,"button",4),r.Vb()}if(2&e){const e=r.gc();r.Ib("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),r.mc("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),r.Eb(1),r.mc("ngIf",e.nzShowIcon),r.Eb(1),r.mc("ngIf",e.nzMessage||e.nzDescription),r.Eb(1),r.mc("ngIf",e.nzCloseable||e.nzCloseText)}}let Yd=(()=>{class e{constructor(e,t,n){this.nzConfigService=e,this.cdr=t,this.directionality=n,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new r.n,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new fe.a,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:t,nzDescription:n,nzType:i,nzBanner:r}=e;if(t&&(this.isShowIconSet=!0),i)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}n&&(this.iconTheme=this.nzDescription?"outline":"fill"),r&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.h),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[r.Cb],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,t){1&e&&r.Ec(0,Xd,4,23,"div",0),2&e&&r.mc("ngIf",!t.closed)},directives:[o.o,Ge.a,tr.b],encapsulation:2,data:{animation:[Yi.c]},changeDetection:0}),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzCloseable",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzShowIcon",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzBanner",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzNoAnimation",void 0),e})(),Jd=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,Ge.b,tr.a]]}),e})();var Zd=n("dtjE"),ep=n("GNEV"),tp=n("39k0"),np=n("lgLN"),ip=n("N7TE"),rp=n("bQ7u"),op=n("qY48"),sp=n("Nzc1"),ap=n("/fzJ"),cp=n.n(ap),lp=n("1tsg");const up=["fancyInputEl"],hp=["fancyInputHighlightsEl"];function dp(e,t){if(1&e&&(r.Wb(0,"span"),r.Gc(1),r.Vb()),2&e){const e=r.gc().$implicit;r.Eb(1),r.Hc(e.content)}}function pp(e,t){if(1&e){const e=r.Xb();r.Wb(0,"app-fancy-input-marker",9),r.dc("click",function(){return r.wc(e),r.gc(2),r.tc(2).focus()}),r.Vb()}if(2&e){const e=r.gc().$implicit,t=r.gc();r.mc("section",e)("activeEnvironment",t.activeEnvironment)}}function fp(e,t){if(1&e&&(r.Ub(0),r.Ec(1,dp,2,1,"span",7),r.Ec(2,pp,1,2,"app-fancy-input-marker",8),r.Tb()),2&e){const e=t.$implicit;r.Eb(1),r.mc("ngIf",!e.type),r.Eb(1),r.mc("ngIf","mark"===e.type)}}const gp=/{{\s*([\w\.]+)\s*}}/g;let mp=(()=>{class e{constructor(e,t){this.store=e,this.environmentService=t,this.placeholder="",this.blur=new r.n,this.submit=new r.n,this.highlightData={sections:[]},this.innerValue="",this.activeEnvironment={},this.onTouchedCallback=()=>{},this.onChangeCallback=()=>{},e.pipe(Object(c.a)(e=>e.environments),Object(a.a)()).subscribe({next:e=>{this.activeEnvironment=t.getActiveEnvironment()}})}get value(){return this.innerValue}set value(e){e!==this.innerValue&&(this.innerValue=e,this.onChangeCallback(e))}writeValue(e){e!==this.innerValue&&(this.innerValue=e)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}ngOnInit(){"firefox"===this.detectBrowser()&&this.fixFirefox();const e=setTimeout(()=>{this.handleInput(),clearTimeout(e)},1)}handleInput(){const e=this.fancyInputEl.nativeElement.value,t=this.getRanges(e,gp),n=this.removeStaggeredRanges(t),i=this.getBoundaries(n);this.highlightData.sections=this.generateHighlightSections(e,i),this.updateHighlighterScroll()}handleScroll(){M.a.log("scrolling input")}handleKeydown(){this.updateHighlighterScroll()}handleBlur(){this.updateHighlighterScroll(),this.onTouchedCallback(),this.blur.next(this.innerValue)}handleSubmit(){this.submit.next(this.innerValue)}blockContainerScroll(){}detectBrowser(){const e=window.navigator.userAgent.toLowerCase();return-1!==e.indexOf("firefox")?"firefox":e.match(/msie|trident\/7|edge/)?"ie":e.match(/ipad|iphone|ipod/)&&-1===e.indexOf("windows phone")?"ios":"other"}fixFirefox(){}getRanges(e,t){const n=[];let i;for(;i=t.exec(e),null!==i&&(n.push([i.index,i.index+i[0].length]),t.global););return n}removeStaggeredRanges(e){const t=[];return e.forEach(e=>{t.some(t=>(e[0]>t[0]&&e[0]t[0]&&e[1]{t.push({type:"start",index:e[0],className:e.className}),t.push({type:"stop",index:e[1]})}),this.sortBoundaries(t),t}sortBoundaries(e){e.sort(function(e,t){return e.index!==t.index?e.index-t.index:"start"===e.type&&"stop"===t.type?1:"stop"===e.type&&"start"===t.type?-1:0})}generateHighlightSections(e,t){const n=[];let i={index:0,type:""};return t.forEach(t=>{n.push({content:e.substring(i.index,t.index),type:"start"===i.type&&"stop"===t.type?"mark":void 0}),i=t}),n.push({content:e.substring(i.index)}),n}updateHighlighterScroll(){const e=setTimeout(()=>{this.fancyInputHighlightsEl.nativeElement.scrollLeft=this.fancyInputEl.nativeElement.scrollLeft,this.fancyInputHighlightsEl.nativeElement.scrollTop=this.fancyInputEl.nativeElement.scrollTop,this.fancyInputHighlightsEl.nativeElement.height=this.fancyInputEl.nativeElement.height,clearTimeout(e)},10)}trackByIndex(e){return e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(g.h),r.Qb(R.EnvironmentService))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-fancy-input"]],viewQuery:function(e,t){if(1&e&&(r.Kc(up,3),r.Kc(hp,3)),2&e){let e;r.sc(e=r.ec())&&(t.fancyInputEl=e.first),r.sc(e=r.ec())&&(t.fancyInputHighlightsEl=e.first)}},inputs:{placeholder:"placeholder"},outputs:{blur:"blur",submit:"submit"},features:[r.Db([{provide:ya.j,useExisting:Object(r.W)(()=>e),multi:!0}])],decls:7,vars:4,consts:[[1,"fancy-input-container"],["type","text",1,"fancy-input-content","fancy-input-element",3,"placeholder","ngModel","ngModelChange","input","scroll","keydown","blur","keydown.enter"],["fancyInputEl",""],[1,"fancy-input-backdrop"],[1,"fancy-input-content","fancy-input-highlights"],["fancyInputHighlightsEl",""],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[3,"section","activeEnvironment","click",4,"ngIf"],[3,"section","activeEnvironment","click"]],template:function(e,t){1&e&&(r.Wb(0,"div",0),r.Wb(1,"input",1,2),r.dc("ngModelChange",function(e){return t.value=e})("input",function(){return t.handleInput()})("scroll",function(){return t.handleScroll()})("keydown",function(){return t.handleKeydown()})("blur",function(){return t.handleBlur()})("keydown.enter",function(){return t.handleSubmit()}),r.Vb(),r.Wb(3,"div",3),r.Wb(4,"div",4,5),r.Ec(6,fp,3,2,"ng-container",6),r.Vb(),r.Vb(),r.Vb()),2&e&&(r.Eb(1),r.mc("placeholder",t.placeholder)("ngModel",t.value),r.Eb(5),r.mc("ngForOf",t.highlightData.sections)("ngForTrackBy",t.trackByIndex))},styles:[""]}),e})();function bp(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",21),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc().setVerb(n)}),r.Gc(1),r.Vb()}if(2&e){const e=t.$implicit;r.mc("value",e),r.Eb(1),r.Ic("\n ",e,"\n ")}}const vp=function(){return{"white-space":"nowrap"}};function yp(e,t){1&e&&(r.Rb(0,"app-icon",26),r.hc(1,"translate")),2&e&&r.mc("popper",r.ic(1,2,"STREAM_CONNECTION_TRYING"))("popperStyles",r.oc(4,vp))}function wp(e,t){1&e&&(r.Rb(0,"app-icon",27),r.hc(1,"translate")),2&e&&r.mc("popper",r.ic(1,2,"STREAM_CONNECTION_CONNECTED"))("popperStyles",r.oc(4,vp))}function _p(e,t){if(1&e&&(r.Wb(0,"div",22),r.Gc(1,"\n "),r.Wb(2,"div",23),r.Gc(3,"\n "),r.Ec(4,yp,2,5,"app-icon",24),r.Gc(5,"\n "),r.Ec(6,wp,2,5,"app-icon",25),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Vb()),2&e){const e=r.gc();r.Eb(4),r.mc("ngIf","uncertain"==e.streamState),r.Eb(2),r.mc("ngIf","connected"==e.streamState)}}function Op(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",13),r.dc("click",function(){return r.wc(e),r.gc().updateQueryInCollectionChange.emit()}),r.Gc(1),r.hc(2,"translate"),r.Vb()}if(2&e){const e=r.gc();r.Eb(1),r.Jc("\n ",r.ic(2,2,"COLLECTION_UPDATE_WINDOW_IN_COLLECTION")," (",e.currentCollection.title,")\n ")}}function Cp(e,t){1&e&&(r.Wb(0,"span"),r.Gc(1),r.hc(2,"translate"),r.Vb()),2&e&&(r.Eb(1),r.Hc(r.ic(2,1,"LOADING_INDICATOR_TEXT")))}function Ep(e,t){1&e&&(r.Wb(0,"span"),r.Gc(1),r.hc(2,"translate"),r.Vb()),2&e&&(r.Eb(1),r.Hc(r.ic(2,1,"SEND_REQUEST_BUTTON")))}const Sp=function(e){return{"url-box__button--disabled":e}};function Tp(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",28),r.dc("click",function(){r.wc(e);const t=r.gc();return!t.isSubscribed&&t.sendRequest.emit()}),r.Gc(1,"\n "),r.Ec(2,Cp,3,3,"span",29),r.Gc(3,"\n "),r.Ec(4,Ep,3,3,"span",29),r.Gc(5,"\n "),r.Vb()}if(2&e){const e=r.gc();r.mc("ngClass",r.pc(3,Sp,e.isSubscribed||e.isLoading)),r.Eb(2),r.mc("ngIf",e.isLoading),r.Eb(2),r.mc("ngIf",!e.isLoading)}}function xp(e,t){1&e&&(r.Wb(0,"span"),r.Gc(1),r.hc(2,"translate"),r.Vb()),2&e&&(r.Eb(1),r.Hc(r.ic(2,1,"LOADING_INDICATOR_TEXT")))}function kp(e,t){1&e&&(r.Wb(0,"span"),r.Gc(1),r.hc(2,"translate"),r.Vb()),2&e&&(r.Eb(1),r.Hc(r.ic(2,1,"SEND_REQUEST_BUTTON")))}function Ip(e,t){if(1&e&&(r.Wb(0,"span"),r.Gc(1),r.Vb()),2&e){const e=r.gc(2);r.Eb(1),r.Ic("(",e.selectedOperation,")")}}function Dp(e,t){if(1&e&&(r.Wb(0,"button",30),r.Gc(1,"\n "),r.Ec(2,xp,3,3,"span",29),r.Gc(3,"\n "),r.Ec(4,kp,3,3,"span",29),r.Gc(5,"\n "),r.Ec(6,Ip,2,1,"span",29),r.Gc(7,"\n "),r.Rb(8,"app-icon",31),r.Gc(9,"\n "),r.Vb()),2&e){const e=r.gc(),t=r.tc(61);r.mc("ngClass",r.pc(5,Sp,e.isSubscribed))("nzDropdownMenu",t),r.Eb(2),r.mc("ngIf",e.isLoading),r.Eb(2),r.mc("ngIf",!e.isLoading),r.Eb(2),r.mc("ngIf",e.selectedOperation)}}function zp(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",13),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc().selectedOperationChange.emit(n.name.value)}),r.Gc(1),r.Vb()}if(2&e){const e=t.$implicit;r.Eb(1),r.Ic("\n ",e.name.value,"\n ")}}const jp=function(e){return{"url-box__input-btn--active":e}};let Ap=(()=>{class e{constructor(){this.isSubscribed=!1,this.isLoading=!1,this.showDocs=!1,this.selectedOperation="",this.queryOperations=[],this.streamState="",this.currentCollection=null,this.toggleDocsChange=new r.n,this.reloadDocsChange=new r.n,this.addToCollectionChange=new r.n,this.sendRequest=new r.n,this.urlChange=new r.n,this.httpVerbChange=new r.n,this.selectedOperationChange=new r.n,this.exportWindowChange=new r.n,this.updateQueryInCollectionChange=new r.n,this.methods=["POST","GET","PUT","DELETE"]}setApiUrl(){this.urlChange.emit(this.apiUrl.trim())}setVerb(e){this.httpVerbChange.emit(e)}queryOperationTrackBy(e,t){return t.name&&t.name.value}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-url-box"]],inputs:{apiUrl:"apiUrl",httpVerb:"httpVerb",isSubscribed:"isSubscribed",isLoading:"isLoading",showDocs:"showDocs",selectedOperation:"selectedOperation",queryOperations:"queryOperations",streamState:"streamState",currentCollection:"currentCollection"},outputs:{toggleDocsChange:"toggleDocsChange",reloadDocsChange:"reloadDocsChange",addToCollectionChange:"addToCollectionChange",sendRequest:"sendRequest",urlChange:"urlChange",httpVerbChange:"httpVerbChange",selectedOperationChange:"selectedOperationChange",exportWindowChange:"exportWindowChange",updateQueryInCollectionChange:"updateQueryInCollectionChange"},decls:70,vars:28,consts:[[1,"url-box"],["type","button","nz-dropdown","","nzTrigger","click","track-id","http_verb",1,"url-box__button","btn","btn-outline-primary","url-box__button--method",3,"nzDropdownMenu","value"],["httpVerbMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"value","click",4,"ngFor","ngForOf"],[1,"url-box__input-container"],["class","url-box__input-prepend",4,"ngIf"],["track-id","set_url","placeholder","Enter URL",1,"url-box__input",3,"ngModel","blur","submit","ngModelChange"],[1,"url-box__input-actions"],["type","button","nz-dropdown","","nzTrigger","click",1,"url-box__input-btn",3,"nzDropdownMenu"],["name","save"],["urlBoxActionMenu","nzDropdownMenu"],["nz-menu-item","",3,"click",4,"ngIf"],["nz-menu-item","",3,"click"],["type","button","track-id","reload_docs",1,"url-box__input-btn",3,"popper","popperPlacement","click"],["name","refresh-ccw"],["type","button","track-id","show_docs",1,"url-box__input-btn",3,"ngClass","click"],["class","app-button url-box__button url-box__button--send active-primary","track-id","set_request",3,"ngClass","click",4,"ngIf"],["class","btn app-button url-box__button url-box__button--send url-box__button--send-dropdown active-primary","track-id","send_request","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"ngClass","nzDropdownMenu",4,"ngIf"],["queryOperationsMenu","nzDropdownMenu"],["nz-menu-item","",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["nz-menu-item","",3,"value","click"],[1,"url-box__input-prepend"],[1,"url-box__connection-indicator"],["name","alert-circle","class","connection-indicator--uncertain",3,"popper","popperStyles",4,"ngIf"],["name","check-circle","class","connection-indicator--connected",3,"popper","popperStyles",4,"ngIf"],["name","alert-circle",1,"connection-indicator--uncertain",3,"popper","popperStyles"],["name","check-circle",1,"connection-indicator--connected",3,"popper","popperStyles"],["track-id","set_request",1,"app-button","url-box__button","url-box__button--send","active-primary",3,"ngClass","click"],[4,"ngIf"],["track-id","send_request","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"btn","app-button","url-box__button","url-box__button--send","url-box__button--send-dropdown","active-primary",3,"ngClass","nzDropdownMenu"],["name","chevron-down"]],template:function(e,t){if(1&e&&(r.Wb(0,"div",0),r.Gc(1,"\n "),r.Wb(2,"button",1),r.Gc(3),r.Vb(),r.Gc(4,"\n "),r.Wb(5,"nz-dropdown-menu",null,2),r.Gc(7,"\n "),r.Wb(8,"ul",3),r.Gc(9,"\n "),r.Ec(10,bp,2,2,"li",4),r.Gc(11,"\n "),r.Vb(),r.Gc(12,"\n "),r.Vb(),r.Gc(13,"\n "),r.Wb(14,"div",5),r.Gc(15,"\n "),r.Ec(16,_p,9,2,"div",6),r.Gc(17,"\n "),r.Wb(18,"app-fancy-input",7),r.dc("blur",function(){return t.setApiUrl()})("submit",function(){return t.setApiUrl()})("ngModelChange",function(e){return t.apiUrl=e}),r.Vb(),r.Gc(19,"\n "),r.Wb(20,"div",8),r.Gc(21,"\n "),r.Wb(22,"button",9),r.Gc(23,"\n "),r.Rb(24,"app-icon",10),r.Gc(25,"\n "),r.Vb(),r.Gc(26,"\n "),r.Wb(27,"nz-dropdown-menu",null,11),r.Gc(29,"\n "),r.Wb(30,"ul",3),r.Gc(31,"\n "),r.Ec(32,Op,3,4,"li",12),r.Gc(33,"\n "),r.Wb(34,"li",13),r.dc("click",function(){return t.addToCollectionChange.emit()}),r.Gc(35),r.hc(36,"translate"),r.Vb(),r.Gc(37,"\n "),r.Wb(38,"li",13),r.dc("click",function(){return t.exportWindowChange.emit()}),r.Gc(39),r.hc(40,"translate"),r.Vb(),r.Gc(41,"\n "),r.Vb(),r.Gc(42,"\n "),r.Vb(),r.Gc(43,"\n "),r.Wb(44,"button",14),r.dc("click",function(){return t.reloadDocsChange.emit()}),r.hc(45,"translate"),r.Gc(46,"\n "),r.Rb(47,"app-icon",15),r.Gc(48,"\n "),r.Vb(),r.Gc(49,"\n "),r.Wb(50,"button",16),r.dc("click",function(){return t.toggleDocsChange.emit()}),r.Gc(51),r.hc(52,"translate"),r.Vb(),r.Gc(53,"\n "),r.Vb(),r.Gc(54,"\n "),r.Vb(),r.Gc(55,"\n "),r.Ec(56,Tp,6,5,"button",17),r.Gc(57,"\n "),r.Ec(58,Dp,10,7,"button",18),r.Gc(59,"\n "),r.Wb(60,"nz-dropdown-menu",null,19),r.Gc(62,"\n "),r.Wb(63,"ul",3),r.Gc(64,"\n "),r.Ec(65,zp,2,1,"li",20),r.Gc(66,"\n "),r.Vb(),r.Gc(67,"\n "),r.Vb(),r.Gc(68,"\n"),r.Vb(),r.Gc(69,"\n")),2&e){const e=r.tc(6),n=r.tc(28);r.Eb(2),r.mc("nzDropdownMenu",e)("value",t.httpVerb),r.Eb(1),r.Ic("\n ",t.httpVerb,"\n \u25bc\n "),r.Eb(7),r.mc("ngForOf",t.methods),r.Eb(6),r.mc("ngIf",t.streamState),r.Eb(2),r.mc("ngModel",t.apiUrl),r.Eb(4),r.mc("nzDropdownMenu",n),r.Eb(10),r.mc("ngIf",t.currentCollection),r.Eb(3),r.Ic("\n ",r.ic(36,18,"SAVE_TO_COLLECTION_BUTTON"),"\n "),r.Eb(4),r.Ic("\n ",r.ic(40,20,"EXPORT_WINDOW_TEXT"),"\n "),r.Eb(5),r.mc("popper",r.ic(45,22,"RELOAD_DOCS_BUTTON"))("popperPlacement","bottom"),r.Eb(6),r.mc("ngClass",r.pc(26,jp,t.showDocs)),r.Eb(1),r.Ic("\n ",r.ic(52,24,"DOCS_TEXT"),"\n "),r.Eb(5),r.mc("ngIf",t.queryOperations.length<2),r.Eb(2),r.mc("ngIf",t.queryOperations.length>1),r.Eb(7),r.mc("ngForOf",t.queryOperations)("ngForTrackBy",t.queryOperationTrackBy)}},directives:[Sr.a,Sr.c,Ve.c,o.n,o.o,mp,ya.l,ya.o,Xi.a,Ki.a,Ve.e,Mo,o.l],pipes:[y.c],encapsulation:2}),e})();n("L8IC"),n("cokd"),n("jDMi"),n("ELLl"),n("Ku0u"),n("C2zF"),n("uTOq"),n("cV09"),n("GP5n"),n("nHt3"),n("O8+U"),n("HkoP"),n("HBFN"),n("Xkdu");var Rp=n("IQOa");const Np=["error","warning","information","hint"],Lp={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};ba.registerHelper("lint","graphql",(e,t)=>{const n=t.schema;try{return Object(Rp.getDiagnostics)(e,n).map(e=>e.severity&&e.source&&{message:e.message,severity:Np[e.severity-1],type:Lp[e.source],from:ba.Pos(e.range.start.line,e.range.start.character),to:ba.Pos(e.range.end.line,e.range.end.character)})}catch(i){return M.a.log(i),[]}}),ba.registerHelper("hint","graphql",(e,t)=>{const n=t.schema;if(!n)return;const i=e.getDoc().getCursor(),r=e.getTokenAt(i),o=Object(Rp.getAutocompleteSuggestions)(n,e.getValue(),i,r),s=null!==r.type&&/"|\w/.test(r.string[0])?r.start:r.end,a={list:o.map(e=>({text:e.label,type:e.detail&&n.getType(e.detail.replace(/[\[\]!]/g,"")),description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,render:t.render||void 0,typeDetail:e.detail})),from:{line:i.line,column:s},to:{line:i.line,column:r.end}};return a&&a.list&&a.list.length>0&&(a.from=ba.Pos(a.from.line,a.from.column),a.to=ba.Pos(a.to.line,a.to.column),ba.signal(e,"hasCompletion",e,a,r)),a});var Mp=n("axIb"),Fp=n("4MG8"),Pp=n.n(Fp);const Vp=e=>e instanceof Mp.e?`${Vp(e.ofType)}!`:e instanceof Mp.d?`[${Vp(e.ofType)}]`:`${e.name}`;var Gp=n("eNwd"),Bp=n("7Hc7"),Wp=n("xgIS"),$p=n("tyNb"),Up=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,i){return e[0]===t&&(n=i,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n0},e.prototype.connect_=function(){Hp&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Xp?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Hp&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Kp.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Jp=function(e,t){for(var n=0,i=Object.keys(t);n0},e}(),lf="undefined"!=typeof WeakMap?new WeakMap:new Up,uf=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Yp.getInstance(),i=new cf(t,n,this);lf.set(this,i)};["observe","unobserve","disconnect"].forEach(function(e){uf.prototype[e]=function(){var t;return(t=lf.get(this))[e].apply(t,arguments)}});var hf=void 0!==qp.ResizeObserver?qp.ResizeObserver:uf;let df=(()=>{class e{create(e){return void 0===hf?null:new hf(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.Mb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),pf=(()=>{class e{constructor(e){this.nzResizeObserverFactory=e,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((e,t)=>this.cleanupObserver(t))}observe(e){const t=Object(Ee.e)(e);return new Te.a(e=>{const n=this.observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this.unobserveElement(t)}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{const t=new fe.a,n=this.nzResizeObserverFactory.create(e=>t.next(e));n&&n.observe(e),this.observedElements.set(e,{observer:n,stream:t,count:1})}return this.observedElements.get(e).stream}unobserveElement(e){this.observedElements.has(e)&&(this.observedElements.get(e).count--,this.observedElements.get(e).count||this.cleanupObserver(e))}cleanupObserver(e){if(this.observedElements.has(e)){const{observer:t,stream:n}=this.observedElements.get(e);t&&t.disconnect(),n.complete(),this.observedElements.delete(e)}}}return e.\u0275fac=function(t){return new(t||e)(r.ac(df))},e.\u0275prov=Object(r.Mb)({factory:function(){return new e(Object(r.ac)(df))},token:e,providedIn:"root"}),e})(),ff=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},providers:[df]}),e})();function gf(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"i",1),r.Gc(3,"\n "),r.Tb()),2&e){const e=t.$implicit;r.Eb(2),r.mc("nzType",e)}}const mf=["contentTemplate"];function bf(e,t){1&e&&r.kc(0)}function vf(e,t){1&e&&r.kc(0,1)}const yf=[[["","nz-tab-link",""]],"*"],wf=["[nz-tab-link]","*"];function _f(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc().$implicit;r.Eb(1),r.Hc(e.tab.label)}}const Of=function(){return{visible:!1}};function Cf(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",8),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc(2).onSelect(n)})("contextmenu",function(n){r.wc(e);const i=t.$implicit;return r.gc(2).onContextmenu(i,n)}),r.Ec(1,_f,2,1,"ng-container",9),r.Vb()}if(2&e){const e=t.$implicit;r.Ib("ant-tabs-dropdown-menu-item-disabled",e.disabled),r.mc("nzSelected",e.active)("nzDisabled",e.disabled),r.Eb(1),r.mc("nzStringTemplateOutlet",e.tab.label)("nzStringTemplateOutletContext",r.oc(6,Of))}}function Ef(e,t){if(1&e&&(r.Wb(0,"ul",6),r.Ec(1,Cf,2,7,"li",7),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("ngForOf",e.items)}}function Sf(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",10),r.dc("click",function(){return r.wc(e),r.gc().addClicked.emit()}),r.Vb()}if(2&e){const e=r.gc();r.mc("addIcon",e.addIcon)}}const Tf=function(){return{minWidth:"46px"}},xf=["navWarp"],kf=["navList"];function If(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",8),r.dc("click",function(){return r.wc(e),r.gc().addClicked.emit()}),r.Vb()}if(2&e){const e=r.gc();r.mc("addIcon",e.addIcon)}}function Df(e,t){}function zf(e,t){if(1&e&&(r.Wb(0,"div",9),r.Ec(1,Df,0,0,"ng-template",10),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("ngTemplateOutlet",e.extraTemplate)}}const jf=["*"],Af=["nz-tab-body",""];function Rf(e,t){}function Nf(e,t){if(1&e&&(r.Ub(0),r.Ec(1,Rf,0,0,"ng-template",1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.mc("ngTemplateOutlet",e.content)}}function Lf(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"i",1),r.Gc(3,"\n "),r.Tb()),2&e){const e=t.$implicit;r.Eb(2),r.mc("nzType",e)}}function Mf(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc().$implicit;r.Eb(1),r.Hc(e.label)}}function Ff(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",10),r.dc("click",function(t){r.wc(e);const n=r.gc().index;return r.gc(2).onClose(n,t)}),r.Vb()}if(2&e){const e=r.gc().$implicit;r.mc("closeIcon",e.nzCloseIcon)}}const Pf=function(){return{visible:!0}};function Vf(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",6),r.dc("click",function(n){r.wc(e);const i=t.$implicit,o=t.index;return r.gc(2).clickNavItem(i,o,n)})("contextmenu",function(n){r.wc(e);const i=t.$implicit;return r.gc(2).contextmenuNavItem(i,n)}),r.Wb(1,"div",7),r.Ec(2,Mf,2,1,"ng-container",8),r.Ec(3,Ff,1,1,"button",9),r.Vb(),r.Vb()}if(2&e){const e=t.$implicit,n=t.index,i=r.gc(2);r.Bc("margin-right","horizontal"===i.position?i.nzTabBarGutter:null,"px")("margin-bottom","vertical"===i.position?i.nzTabBarGutter:null,"px"),r.Ib("ant-tabs-tab-active",i.nzSelectedIndex===n)("ant-tabs-tab-disabled",e.nzDisabled),r.Eb(1),r.mc("disabled",e.nzDisabled)("tab",e)("active",i.nzSelectedIndex===n),r.Fb("tabIndex",i.getTabIndex(e,n))("aria-disabled",e.nzDisabled)("aria-selected",i.nzSelectedIndex===n&&!i.nzHideAll)("aria-controls",i.getTabContentId(n)),r.Eb(1),r.mc("nzStringTemplateOutlet",e.label)("nzStringTemplateOutletContext",r.oc(18,Pf)),r.Eb(1),r.mc("ngIf",e.nzClosable&&i.closable&&!e.nzDisabled)}}function Gf(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-tabs-nav",4),r.dc("tabScroll",function(t){return r.wc(e),r.gc().nzTabListScroll.emit(t)})("selectFocusedIndex",function(t){return r.wc(e),r.gc().setSelectedIndex(t)})("addClicked",function(){return r.wc(e),r.gc().onAdd()}),r.Ec(1,Vf,4,19,"div",5),r.Vb()}if(2&e){const e=r.gc();r.mc("ngStyle",e.nzTabBarStyle)("selectedIndex",e.nzSelectedIndex||0)("inkBarAnimated",e.inkBarAnimated)("addable",e.addable)("addIcon",e.nzAddIcon)("hideBar",e.nzHideAll)("position",e.position)("extraTemplate",e.nzTabBarExtraContent),r.Eb(1),r.mc("ngForOf",e.tabs)}}function Bf(e,t){if(1&e&&r.Rb(0,"div",11),2&e){const e=t.$implicit,n=t.index,i=r.gc();r.mc("active",i.nzSelectedIndex==n&&!i.nzHideAll)("content",e.content)("forceRender",e.nzForceRender)("tabPaneAnimated",i.tabPaneAnimated)}}let Wf=(()=>{class e{constructor(e){this.elementRef=e,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetWidth)||0}getElementHeight(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetHeight)||0}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:3,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,gf,4,1,"ng-container",0),r.Gc(2,"\n ")),2&e&&(r.Eb(1),r.mc("nzStringTemplateOutlet",t.addIcon))},directives:[tr.b,Ge.a],encapsulation:2}),e})(),$f=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.ngZone=t,this.animationMode=n,this.position="horizontal",this.animated=!0}get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}alignToElement(e){this.ngZone.runOutsideAngular(()=>{Ce(()=>this.setStyles(e))})}setStyles(e){const t=this.elementRef.nativeElement;"horizontal"===this.position?(t.style.top="",t.style.height="",t.style.left=this.getLeftPosition(e),t.style.width=this.getElementWidth(e)):(t.style.left="",t.style.width="",t.style.top=this.getTopPosition(e),t.style.height=this.getElementHeight(e))}getLeftPosition(e){return e?(e.offsetLeft||0)+"px":"0"}getElementWidth(e){return e?(e.offsetWidth||0)+"px":"0"}getTopPosition(e){return e?(e.offsetTop||0)+"px":"0"}getElementHeight(e){return e?(e.offsetHeight||0)+"px":"0"}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.B),r.Qb(as.a,8))},e.\u0275dir=r.Lb({type:e,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-tabs-ink-bar-animated",t._animated)},inputs:{position:"position",animated:"animated"}}),e})(),Uf=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.O,1))},e.\u0275dir=r.Lb({type:e,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]}),e})(),Hf=(()=>{class e{constructor(e,t,n){this.elementRef=e,this.routerLink=t,this.routerLinkWithHref=n}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb($p.c,10),r.Qb($p.d,10))},e.\u0275dir=r.Lb({type:e,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]}),e})(),qf=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-tab",""]],exportAs:["nzTab"]}),e})();const Qf=new r.s("NZ_TAB_SET");let Kf=(()=>{class e{constructor(e){this.closestTabSet=e,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new r.n,this.nzDeselect=new r.n,this.nzClick=new r.n,this.nzContextmenu=new r.n,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new fe.a}get content(){return this.template||this.contentTemplate}get label(){var e;return this.nzTitle||(null===(e=this.nzTabLinkTemplateDirective)||void 0===e?void 0:e.templateRef)}ngOnChanges(e){const{nzTitle:t,nzDisabled:n,nzForceRender:i}=e;(t||n||i)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Qf))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-tab"]],contentQueries:function(e,t,n){if(1&e&&(r.Jb(n,qf,1,r.O),r.Jb(n,Uf,1),r.Jb(n,Hf,1)),2&e){let e;r.sc(e=r.ec())&&(t.template=e.first),r.sc(e=r.ec())&&(t.nzTabLinkTemplateDirective=e.first),r.sc(e=r.ec())&&(t.linkDirective=e.first)}},viewQuery:function(e,t){if(1&e&&r.Kc(mf,3),2&e){let e;r.sc(e=r.ec())&&(t.contentTemplate=e.first)}},inputs:{nzTitle:"nzTitle",nzClosable:"nzClosable",nzCloseIcon:"nzCloseIcon",nzDisabled:"nzDisabled",nzForceRender:"nzForceRender"},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[r.Cb],ngContentSelectors:wf,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(e,t){1&e&&(r.lc(yf),r.Ec(0,bf,1,0,"ng-template",null,0,r.Fc),r.Ec(2,vf,1,0,"ng-template",null,1,r.Fc))},encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzClosable",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzForceRender",void 0),e})(),Xf=(()=>{class e{constructor(e){this.elementRef=e,this.disabled=!1,this.active=!1,this.el=e.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275dir=r.Lb({type:e,selectors:[["","nzTabNavItem",""]],inputs:{disabled:"disabled",active:"active",tab:"tab"}}),e})(),Yf=(()=>{class e{constructor(e,t){this.cdr=e,this.elementRef=t,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new r.n,this.selected=new r.n,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(e){e.disabled||(e.tab.nzClick.emit(),this.selected.emit(e))}onContextmenu(e,t){e.disabled||e.tab.nzContextmenu.emit(t)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(e){e||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetWidth)||0}getElementHeight(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetHeight)||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-tabs-nav-operations-hidden",0===t.items.length)},inputs:{items:"items",addable:"addable",addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement","nzVisibleChange","mouseenter"],["dropdownTrigger","nzDropdown"],["nz-icon","","nzType","ellipsis"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"nzSelected","nzDisabled","click","contextmenu"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"addIcon","click"]],template:function(e,t){if(1&e&&(r.Wb(0,"button",0,1),r.dc("nzVisibleChange",function(e){return t.menuVisChange(e)})("mouseenter",function(){return t.showItems()}),r.Rb(2,"i",2),r.Vb(),r.Wb(3,"nz-dropdown-menu",null,3),r.Ec(5,Ef,2,1,"ul",4),r.Vb(),r.Ec(6,Sf,1,1,"button",5)),2&e){const e=r.tc(4);r.mc("nzDropdownMenu",e)("nzOverlayStyle",r.oc(5,Tf))("nzMatchWidthElement",null),r.Eb(5),r.mc("ngIf",t.menuOpened),r.Eb(1),r.mc("ngIf",t.addable)}},directives:[Sr.a,Ge.a,Sr.c,o.o,Ve.c,o.n,Ve.e,tr.b,Wf],encapsulation:2,changeDetection:0}),e})();const Jf="undefined"!=typeof requestAnimationFrame?Gp.a:Bp.a;let Zf=(()=>{class e{constructor(e,t,n,i,o){this.cdr=e,this.ngZone=t,this.viewportRuler=n,this.nzResizeObserver=i,this.dir=o,this.indexFocused=new r.n,this.selectFocusedIndex=new r.n,this.addClicked=new r.n,this.tabScroll=new r.n,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new fe.a,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Object(Ee.f)(e);this._selectedIndex!==t&&(this._selectedIndex=e,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(e))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(e){this.isValidIndex(e)&&this.focusIndex!==e&&this.keyManager&&this.keyManager.setActiveItem(e)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}ngOnInit(){}ngAfterViewInit(){const e=this.dir?this.dir.change:Object(v.a)(null),t=this.viewportRuler.change(150),n=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new ft(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(0),Ce(n),Object(Gc.a)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe(Object(ge.a)(this.destroy$),Object(ve.a)(16,Jf)).subscribe(()=>{n()}),Object(Gc.a)(e,t,this.items.changes).pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{Promise.resolve().then(n),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.indexFocused.emit(e),this.setTabFocus(e),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(e){const t=this.items.toArray().findIndex(t=>t===e);-1!==t&&(this.keyManager.updateActiveItem(t),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(e)))}onOffsetChange(e){if("horizontal"===this.position){if(-1===this.lockAnimationTimeoutId){if(this.transformX>=0&&e.x>0)return;if(this.transformX<=this.wrapperWidth-this.scrollListWidth&&e.x<0)return}e.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+e.x),this.setTransform(this.transformX,0)}else{if(-1===this.lockAnimationTimeoutId){if(this.transformY>=0&&e.y>0)return;if(this.transformY<=this.wrapperHeight-this.scrollListHeight&&e.y<0)return}e.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+e.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(e){const t=this.navWarpRef.nativeElement.contains(e.target);if(!Object(ct.p)(e)&&t)switch(e.keyCode){case ct.h:case ct.m:case ct.j:case ct.c:this.lockAnimation(),this.keyManager.onKeydown(e);break;case ct.e:case ct.k:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(e)}}isValidIndex(e){if(!this.items)return!0;const t=this.items?this.items.toArray()[e]:null;return!!t&&!t.disabled}scrollToTab(e){if(!this.items.find(t=>t===e))return;const t=this.items.toArray();if("horizontal"===this.position){let n=this.transformX;if("rtl"===this.getLayoutDirection()){const i=t[0].left+t[0].width-e.left-e.width;ithis.transformX+this.wrapperWidth&&(n=i+e.width-this.wrapperWidth)}else e.left<-this.transformX?n=-e.left:e.left+e.width>-this.transformX+this.wrapperWidth&&(n=-(e.left+e.width-this.wrapperWidth));this.transformX=n,this.transformY=0,this.setTransform(n,0)}else{let t=this.transformY;e.top<-this.transformY?t=-e.top:e.top+e.height>-this.transformY+this.wrapperHeight&&(t=-(e.top+e.height-this.wrapperHeight)),this.transformY=t,this.transformX=0,this.setTransform(0,t)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){-1===this.lockAnimationTimeoutId&&this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=-1},150)})}setTransform(e,t){this.navListRef.nativeElement.style.transform=`translate(${e}px, ${t}px)`}clampTransformX(e){const t=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(t,e),0):Math.min(Math.max(t,e),0)}clampTransformY(e){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,e),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){const e=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t&&this.inkBar.alignToElement(t.parentElement)}setPingStatus(){const e={top:!1,right:!1,bottom:!1,left:!1},t=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(e.right=this.transformX>0,e.left=this.transformX+this.wrapperWidth{const i=`ant-tabs-nav-wrap-ping-${n}`;e[n]?t.classList.add(i):t.classList.remove(i)})}setVisibleRange(){let e,t,n,i,r,o;const s=this.items.toArray(),a={width:0,height:0,left:0,top:0,right:0},c=e=>{let n;return n="right"===t?s[0].left+s[0].width-s[e].left-s[e].width:(s[e]||a)[t],n};"horizontal"===this.position?(e="width",i=this.wrapperWidth,r=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),o=this.addButtonWidth,n=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(t="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidthi&&(l=i-o),!s.length)return this.hiddenItems=[],void this.cdr.markForCheck();const u=s.length;let h=u;for(let g=0;gn+l){h=g-1;break}let d=0;for(let g=u-1;g>=0;g-=1)if(c(g){class e{constructor(){this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:12,hostBindings:function(e,t){2&e&&(r.Fb("tabindex",t.active?0:-1)("aria-hidden",!t.active),r.Bc("visibility",t.tabPaneAnimated?t.active?null:"hidden":null)("height",t.tabPaneAnimated?t.active?null:0:null)("overflow-y",t.tabPaneAnimated?t.active?null:"none":null)("display",t.tabPaneAnimated||t.active?null:"none"),r.Ib("ant-tabs-tabpane-active",t.active))},inputs:{content:"content",active:"active",tabPaneAnimated:"tabPaneAnimated",forceRender:"forceRender"},exportAs:["nzTabBody"],attrs:Af,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&r.Ec(0,Nf,2,1,"ng-container",0),2&e&&r.mc("ngIf",t.active||t.forceRender)},directives:[o.o,o.t],encapsulation:2,changeDetection:0}),e})();const tg=Math.pow(.995,20);let ng=(()=>{class e{constructor(e,t){this.ngZone=e,this.elementRef=t,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new r.n,this.tabScroll=new r.n,this.onTouchEnd=e=>{if(!this.touchPosition)return;const t=this.lastOffset,n=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,t){const i=t.x/n,r=t.y/n,o=Math.abs(i),s=Math.abs(r);if(Math.max(o,s)<.1)return;let a=i,c=r;this.motion=window.setInterval(()=>{Math.abs(a)<.01&&Math.abs(c)<.01?window.clearInterval(this.motion):(a*=tg,c*=tg,this.onOffset(20*a,20*c,e))},20)}},this.onTouchMove=e=>{if(!this.touchPosition)return;e.preventDefault();const{screenX:t,screenY:n}=e.touches[0],i=t-this.touchPosition.x,r=n-this.touchPosition.y;this.onOffset(i,r,e);const o=Date.now();this.lastTimeDiff=o-this.lastTimestamp,this.lastTimestamp=o,this.lastOffset={x:i,y:r},this.touchPosition={x:t,y:n}},this.onTouchStart=e=>{const{screenX:t,screenY:n}=e.touches[0];this.touchPosition={x:t,y:n},window.clearInterval(this.motion)},this.onWheel=e=>{const{deltaX:t,deltaY:n}=e;let i;const r=Math.abs(t),o=Math.abs(n);r===o?i="x"===this.lastWheelDirection?t:n:r>o?(i=t,this.lastWheelDirection="x"):(i=n,this.lastWheelDirection="y");const s=Date.now(),a=Math.abs(i);(s-this.lastWheelTimestamp>100||a-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-i,-i,e),(e.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=s,this.lastMixedWheel=a}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const e=this.elementRef.nativeElement,t=Object(Wp.a)(e,"wheel"),n=Object(Wp.a)(e,"touchstart"),i=Object(Wp.a)(e,"touchmove"),r=Object(Wp.a)(e,"touchend"),o=new st.a;return o.add(this.subscribeWrap("wheel",t,this.onWheel)),o.add(this.subscribeWrap("touchstart",n,this.onTouchStart)),o.add(this.subscribeWrap("touchmove",i,this.onTouchMove)),o.add(this.subscribeWrap("touchend",r,this.onTouchEnd)),()=>{o.unsubscribe()}})}subscribeWrap(e,t,n){return t.subscribe(t=>{this.tabScroll.emit({type:e,event:t}),t.defaultPrevented||n(t)})}onOffset(e,t,n){this.ngZone.run(()=>{this.offsetChange.emit({x:e,y:t,event:n})})}ngOnDestroy(){this.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.B),r.Qb(r.l))},e.\u0275dir=r.Lb({type:e,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}}),e})(),ig=(()=>{class e{constructor(){this.closeIcon="close"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:3,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,Lf,4,1,"ng-container",0),r.Gc(2,"\n ")),2&e&&(r.Eb(1),r.mc("nzStringTemplateOutlet",t.closeIcon))},directives:[tr.b,Ge.a],encapsulation:2}),e})();class rg{}let og=0,sg=(()=>{class e{constructor(e,t,n,i){this.nzConfigService=e,this.cdr=t,this.directionality=n,this.router=i,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new r.n(!0),this.nzSelectedIndexChange=new r.n,this.nzTabListScroll=new r.n,this.nzClose=new r.n,this.nzAdd=new r.n,this.allTabs=new r.F,this.tabs=new r.F,this.dir="ltr",this.destroy$=new fe.a,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=st.a.EMPTY,this.tabsSubscription=st.a.EMPTY,this.canDeactivateSubscription=st.a.EMPTY,this.tabSetId=og++}get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(e){this.indexToSelect=Object(Ee.f)(e,null)}get position(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}get addable(){return"editable-card"===this.nzType&&!this.nzHideAdd}get closable(){return"editable-card"===this.nzType}get line(){return"line"===this.nzType}get inkBarAnimated(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return"horizontal"===this.position&&this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane)}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){Promise.resolve().then(()=>{this.setUpRouter()}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){const e=this.tabs.toArray();for(let t=0;t{this.tabs.forEach((t,n)=>t.isActive=n===e),t||this.nzSelectedIndexChange.emit(e)})}this.tabs.forEach((t,n)=>{t.position=n-e,null==this.selectedIndex||0!==t.position||t.origin||(t.origin=e-this.selectedIndex)}),this.selectedIndex!==e&&(this.selectedIndex=e,this.cdr.markForCheck())}onClose(e,t){t.preventDefault(),t.stopPropagation(),this.nzClose.emit({index:e})}onAdd(){this.nzAdd.emit()}clampTabIndex(e){return Math.min(this.tabs.length-1,Math.max(e||0,0))}createChangeEvent(e){const t=new rg;return t.index=e,this.tabs&&this.tabs.length&&(t.tab=this.tabs.toArray()[e],this.tabs.forEach((t,n)=>{n!==e&&t.nzDeselect.emit()}),t.tab.nzSelect.emit()),t}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=Object(Gc.a)(...this.tabs.map(e=>e.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(Object(we.a)(this.allTabs)).subscribe(e=>{this.tabs.reset(e.filter(e=>e.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(e,t){return"function"==typeof this.nzCanDeactivate?Object(_e.s)(this.nzCanDeactivate(e,t)).pipe(Object(f.a)(),Object(ge.a)(this.destroy$)):Object(v.a)(!0)}clickNavItem(e,t,n){e.nzDisabled||(e.nzClick.emit(),this.isRouterLinkClickEvent(t,n)||this.setSelectedIndex(t))}isRouterLinkClickEvent(e,t){var n,i;const r=t.target;return!!this.nzLinkRouter&&!!(null===(i=null===(n=this.tabs.toArray()[e])||void 0===n?void 0:n.linkDirective)||void 0===i?void 0:i.elementRef.nativeElement.contains(r))}contextmenuNavItem(e,t){e.nzDisabled||e.nzContextmenu.emit(t)}setSelectedIndex(e){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,e).subscribe(t=>{t&&(this.nzSelectedIndex=e,this.tabNavBarRef.focusIndex=e,this.cdr.markForCheck())})}getTabIndex(e,t){return e.nzDisabled?null:this.selectedIndex===t?0:-1}getTabContentId(e){return`nz-tabs-${this.tabSetId}-tab-${e}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${os.a} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe(Object(ge.a)(this.destroy$),Object(p.a)(e=>e instanceof $p.a),Object(we.a)(!0),Yc(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const e=this.findShouldActiveTabIndex();e!==this.selectedIndex&&this.setSelectedIndex(e),this.nzHideAll=-1===e}}findShouldActiveTabIndex(){const e=this.tabs.toArray(),t=this.isLinkActive(this.router);return e.findIndex(e=>{const n=e.linkDirective;return!!n&&(t(n.routerLink)||t(n.routerLinkWithHref))})}isLinkActive(e){return t=>!!t&&e.isActive(t.urlTree,this.nzLinkExact)}getTabContentMarginValue(){return 100*-(this.nzSelectedIndex||0)}getTabContentMarginLeft(){return this.tabPaneAnimated&&"rtl"!==this.dir?this.getTabContentMarginValue()+"%":""}getTabContentMarginRight(){return this.tabPaneAnimated&&"rtl"===this.dir?this.getTabContentMarginValue()+"%":""}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Os.a),r.Qb(r.h),r.Qb(pe.b,8),r.Qb($p.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-tabset"]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,Kf,1),2&e){let e;r.sc(e=r.ec())&&(t.allTabs=e)}},viewQuery:function(e,t){if(1&e&&r.Kc(Zf,1),2&e){let e;r.sc(e=r.ec())&&(t.tabNavBarRef=e.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(e,t){2&e&&r.Ib("ant-tabs-card","card"===t.nzType||"editable-card"===t.nzType)("ant-tabs-editable","editable-card"===t.nzType)("ant-tabs-editable-card","editable-card"===t.nzType)("ant-tabs-centered",t.nzCentered)("ant-tabs-rtl","rtl"===t.dir)("ant-tabs-top","top"===t.nzTabPosition)("ant-tabs-bottom","bottom"===t.nzTabPosition)("ant-tabs-left","left"===t.nzTabPosition)("ant-tabs-right","right"===t.nzTabPosition)("ant-tabs-default","default"===t.nzSize)("ant-tabs-small","small"===t.nzSize)("ant-tabs-large","large"===t.nzSize)},inputs:{nzTabPosition:"nzTabPosition",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:"nzHideAdd",nzCentered:"nzCentered",nzHideAll:"nzHideAll",nzLinkRouter:"nzLinkRouter",nzLinkExact:"nzLinkExact",nzSelectedIndex:"nzSelectedIndex",nzTabBarExtraContent:"nzTabBarExtraContent"},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],features:[r.Db([{provide:Qf,useExisting:e}])],decls:4,vars:16,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated",4,"ngFor","ngForOf"],[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["nz-tab-close-button","",3,"closeIcon","click"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated"]],template:function(e,t){1&e&&(r.Ec(0,Gf,2,9,"nz-tabs-nav",0),r.Wb(1,"div",1),r.Wb(2,"div",2),r.Ec(3,Bf,1,4,"div",3),r.Vb(),r.Vb()),2&e&&(r.mc("ngIf",t.tabs.length),r.Eb(2),r.Bc("margin-left",t.getTabContentMarginLeft())("margin-right",t.getTabContentMarginRight()),r.Ib("ant-tabs-content-top","top"===t.nzTabPosition)("ant-tabs-content-bottom","bottom"===t.nzTabPosition)("ant-tabs-content-left","left"===t.nzTabPosition)("ant-tabs-content-right","right"===t.nzTabPosition)("ant-tabs-content-animated",t.tabPaneAnimated),r.Eb(1),r.mc("ngForOf",t.tabs))},directives:[o.o,o.n,Zf,o.p,Xf,Et,tr.b,ig,eg],encapsulation:2}),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",String)],e.prototype,"nzType",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",String)],e.prototype,"nzSize",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzAnimated",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",Number)],e.prototype,"nzTabBarGutter",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzHideAdd",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzCentered",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzHideAll",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzLinkRouter",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzLinkExact",void 0),e})(),ag=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,ht,Ge.b,tr.a,be.b,Tt,Sl.b,Sr.b]]}),e})();n("9Gwe"),n("pR72"),n("+YfQ");const cg=["editor"],lg=/^[a-zA-Z0-9_\"\']$/;let ug=(()=>{class e{constructor(){this.variables="",this.variableToType={},this.tabSize=4,this.variablesChange=new r.n,this.variableEditorConfig={mode:"graphql-variables",lineWrapping:!0,lineNumbers:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,tabSize:this.tabSize,indentUnit:this.tabSize,matchBrackets:!0,autoCloseBrackets:!0,keyMap:"sublime",extraKeys:{"Ctrl-Enter":e=>{},"Cmd-Enter":e=>{},"Cmd-Space":e=>e.showHint({completeSingle:!1}),"Ctrl-Space":e=>e.showHint({completeSingle:!1}),"Alt-Space":e=>e.showHint({completeSingle:!1})},theme:"default variable-editor mousetrap",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],lint:{},hintOptions:{completeSingle:!1}}}ngAfterViewInit(){var e;(null===(e=this.editor)||void 0===e?void 0:e.codeMirror)&&this.editor.codeMirror.on("keyup",(e,t)=>this.onKeyUp(e,t))}ngOnChanges(e){var t,n;(null===(t=null==e?void 0:e.variableToType)||void 0===t?void 0:t.currentValue)&&this.updateVariablesToType(e.variableToType.currentValue),(null===(n=null==e?void 0:e.tabSize)||void 0===n?void 0:n.currentValue)&&(this.variableEditorConfig.tabSize=this.tabSize,this.variableEditorConfig.indentUnit=this.tabSize)}ngDoCheck(){var e;rs(null===(e=this.editor)||void 0===e?void 0:e.codeMirror)}onKeyUp(e,t){lg.test(t.key)&&this.editor.codeMirror.execCommand("autocomplete")}updateVariablesToType(e){e&&(this.variableEditorConfig.lint.variableToType=e,this.variableEditorConfig.hintOptions.variableToType=e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-variables-editor"]],viewQuery:function(e,t){if(1&e&&r.Kc(cg,3),2&e){let e;r.sc(e=r.ec())&&(t.editor=e.first)}},inputs:{variables:"variables",variableToType:"variableToType",tabSize:"tabSize"},outputs:{variablesChange:"variablesChange"},features:[r.Cb],decls:3,vars:2,consts:[[1,"set-variable-textarea","mousetrap",3,"options","ngModel","ngModelChange"],["editor",""]],template:function(e,t){1&e&&(r.Wb(0,"ngx-codemirror",0,1),r.dc("ngModelChange",function(e){return t.variablesChange.emit(e)}),r.Vb(),r.Gc(2,"\n")),2&e&&r.mc("options",t.variableEditorConfig)("ngModel",t.variables)},directives:[Ca,ya.l,ya.o],styles:[""]}),e})();n("PJhV");const hg=["*"],dg=["inputElement"],pg=["nz-checkbox",""];let fg=(()=>{class e{constructor(e,t){this.nzOnChange=new r.n,this.checkboxList=[],e.addClass(t.nativeElement,"ant-checkbox-group")}addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){const e=this.checkboxList.filter(e=>e.nzChecked).map(e=>e.nzValue);this.nzOnChange.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.G),r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:hg,decls:1,vars:0,template:function(e,t){1&e&&(r.lc(),r.kc(0))},encapsulation:2,changeDetection:0}),e})(),gg=(()=>{class e{constructor(e,t,n,i,o){this.elementRef=e,this.nzCheckboxWrapperComponent=t,this.cdr=n,this.focusMonitor=i,this.directionality=o,this.dir="ltr",this.destroy$=new fe.a,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new r.n,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.elementRef.nativeElement.classList.add("ant-checkbox-wrapper")}hostClick(e){e.preventDefault(),this.focus(),this.innerCheckedChange(!this.nzChecked)}innerCheckedChange(e){this.nzDisabled||(this.nzChecked=e,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(e){this.nzChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=e,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){var e;this.focusMonitor.monitor(this.elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(fg,8),r.Qb(r.h),r.Qb(Ot),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["","nz-checkbox",""]],viewQuery:function(e,t){if(1&e&&r.Kc(dg,3),2&e){let e;r.sc(e=r.ec())&&(t.inputElement=e.first)}},hostVars:4,hostBindings:function(e,t){1&e&&r.dc("click",function(e){return t.hostClick(e)}),2&e&&r.Ib("ant-checkbox-wrapper-checked",t.nzChecked)("ant-checkbox-rtl","rtl"===t.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[r.Db([{provide:ya.j,useExisting:Object(r.W)(()=>e),multi:!0}])],attrs:pg,ngContentSelectors:hg,decls:6,vars:10,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange","click"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(e,t){1&e&&(r.lc(),r.Wb(0,"span",0),r.Wb(1,"input",1,2),r.dc("ngModelChange",function(e){return t.innerCheckedChange(e)})("click",function(e){return e.stopPropagation()}),r.Vb(),r.Rb(3,"span",3),r.Vb(),r.Wb(4,"span"),r.kc(5),r.Vb()),2&e&&(r.Ib("ant-checkbox-checked",t.nzChecked&&!t.nzIndeterminate)("ant-checkbox-disabled",t.nzDisabled)("ant-checkbox-indeterminate",t.nzIndeterminate),r.Eb(1),r.mc("checked",t.nzChecked)("ngModel",t.nzChecked)("disabled",t.nzDisabled),r.Fb("autofocus",t.nzAutoFocus?"autofocus":null))},directives:[ya.c,ya.l,ya.o],encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzIndeterminate",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzChecked",void 0),e})(),mg=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,ya.i,Tt]]}),e})();const bg=["editor"],vg=/^[a-zA-Z0-9_]$/;let yg=(()=>{class e{constructor(){this.preRequest={},this.preRequestScriptChange=new r.n,this.preRequestEnabledChange=new r.n,this.preRequestEditorConfig={mode:"javascript",lineWrapping:!0,lineNumbers:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,autoCloseBrackets:!0,keyMap:"sublime",theme:"default request-script-editor mousetrap",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete","Cmd-/":e=>e.execCommand("toggleComment"),"Ctrl-/":e=>e.execCommand("toggleComment")},hintOptions:{completeSingle:!1,globalScope:this.createGlobalScope()}}}ngAfterViewInit(){var e;(null===(e=this.editor)||void 0===e?void 0:e.codeMirror)&&this.editor.codeMirror.on("keyup",(e,t)=>this.onKeyUp(e,t))}ngOnChanges(){}ngDoCheck(){rs(this.editor&&this.editor.codeMirror)}onKeyUp(e,t){vg.test(t.key)&&this.editor.codeMirror.execCommand("autocomplete")}createGlobalScope(){return JSON.parse(JSON.stringify({altair:{helpers:{getEnvironment:null,setEnvironment:null,getCookie:null,request:null},importModule:null}}),(e,t)=>t&&"object"==typeof t&&!Array.isArray(t)?Object.assign(Object.create(null),t):t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-pre-request-editor"]],viewQuery:function(e,t){if(1&e&&r.Kc(bg,3),2&e){let e;r.sc(e=r.ec())&&(t.editor=e.first)}},inputs:{preRequest:"preRequest"},outputs:{preRequestScriptChange:"preRequestScriptChange",preRequestEnabledChange:"preRequestEnabledChange"},features:[r.Cb],decls:22,vars:9,consts:[[1,"pre-request-editor"],[1,"pre-request-editor__toggle-wrapper","spacer--small"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"pre-request-textarea","mousetrap",3,"options","ngModel","ngModelChange"],["editor",""],["href","https://altair.sirmuel.design/docs/features/prerequest-scripts.html","target","_blank","aria-label","learn more"],["name","info"]],template:function(e,t){1&e&&(r.Wb(0,"div",0),r.Gc(1,"\n "),r.Wb(2,"div",1),r.Gc(3,"\n "),r.Wb(4,"label",2),r.dc("ngModelChange",function(e){return t.preRequestEnabledChange.next(e)}),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Wb(9,"ngx-codemirror",3,4),r.dc("ngModelChange",function(e){return t.preRequestScriptChange.emit(e)}),r.Vb(),r.Gc(11,"\n \n "),r.Wb(12,"small"),r.Gc(13,"\n "),r.Wb(14,"a",5),r.Gc(15,"\n "),r.Rb(16,"app-icon",6),r.Gc(17),r.hc(18,"translate"),r.Vb(),r.Gc(19,"\n "),r.Vb(),r.Gc(20,"\n"),r.Vb(),r.Gc(21,"\n")),2&e&&(r.Eb(4),r.mc("ngModel",t.preRequest.enabled),r.Eb(1),r.Hc(r.ic(6,5,"PRE_REQUEST_ENABLE_TEXT")),r.Eb(4),r.mc("options",t.preRequestEditorConfig)("ngModel",t.preRequest.script),r.Eb(8),r.Ic("\n ",r.ic(18,7,"LEARN_MORE_TEXT"),"\n "))},directives:[gg,ya.l,ya.o,Ca,Xi.a],pipes:[y.c],encapsulation:2}),e})();const wg=["editor"],_g=/^[a-zA-Z0-9_]$/;let Og=(()=>{class e{constructor(){this.postRequest={},this.postRequestScriptChange=new r.n,this.postRequestEnabledChange=new r.n,this.postRequestEditorConfig={mode:"javascript",lineWrapping:!0,lineNumbers:!0,foldGutter:!0,autoRefresh:!0,dragDrop:!1,autoCloseBrackets:!0,keyMap:"sublime",theme:"default request-script-editor mousetrap",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Ctrl-Space":"autocomplete","Cmd-/":e=>e.execCommand("toggleComment"),"Ctrl-/":e=>e.execCommand("toggleComment")},hintOptions:{completeSingle:!1,globalScope:this.createGlobalScope()}}}ngAfterViewInit(){var e;(null===(e=this.editor)||void 0===e?void 0:e.codeMirror)&&this.editor.codeMirror.on("keyup",(e,t)=>this.onKeyUp(e,t))}ngOnChanges(){}ngDoCheck(){rs(this.editor&&this.editor.codeMirror)}onKeyUp(e,t){_g.test(t.key)&&this.editor.codeMirror.execCommand("autocomplete")}createGlobalScope(){return JSON.parse(JSON.stringify({altair:{helpers:{getEnvironment:null,setEnvironment:null,getCookie:null,request:null},importModule:null,response:{requestType:null,responseTime:null,statusCode:null,body:null,headers:null}}}),(e,t)=>t&&"object"==typeof t&&!Array.isArray(t)?Object.assign(Object.create(null),t):t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-post-request-editor"]],viewQuery:function(e,t){if(1&e&&r.Kc(wg,3),2&e){let e;r.sc(e=r.ec())&&(t.editor=e.first)}},inputs:{postRequest:"postRequest"},outputs:{postRequestScriptChange:"postRequestScriptChange",postRequestEnabledChange:"postRequestEnabledChange"},features:[r.Cb],decls:22,vars:9,consts:[[1,"post-request-editor"],[1,"post-request-editor__toggle-wrapper","spacer--small"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"post-request-textarea","mousetrap",3,"options","ngModel","ngModelChange"],["editor",""],["href","https://altair.sirmuel.design/docs/features/prerequest-scripts.html","target","_blank","aria-label","learn more"],["name","info"]],template:function(e,t){1&e&&(r.Wb(0,"div",0),r.Gc(1,"\n "),r.Wb(2,"div",1),r.Gc(3,"\n "),r.Wb(4,"label",2),r.dc("ngModelChange",function(e){return t.postRequestEnabledChange.next(e)}),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Wb(9,"ngx-codemirror",3,4),r.dc("ngModelChange",function(e){return t.postRequestScriptChange.emit(e)}),r.Vb(),r.Gc(11,"\n \n "),r.Wb(12,"small"),r.Gc(13,"\n "),r.Wb(14,"a",5),r.Gc(15,"\n "),r.Rb(16,"app-icon",6),r.Gc(17),r.hc(18,"translate"),r.Vb(),r.Gc(19,"\n "),r.Vb(),r.Gc(20,"\n"),r.Vb(),r.Gc(21,"\n")),2&e&&(r.Eb(4),r.mc("ngModel",null==t.postRequest?null:t.postRequest.enabled),r.Eb(1),r.Hc(r.ic(6,5,"REQUEST_SCRIPT_ENABLE_TEXT")),r.Eb(4),r.mc("options",t.postRequestEditorConfig)("ngModel",null==t.postRequest?null:t.postRequest.script),r.Eb(8),r.Ic("\n ",r.ic(18,7,"LEARN_MORE_TEXT"),"\n "))},directives:[gg,ya.l,ya.o,Ca,Xi.a],pipes:[y.c],encapsulation:2}),e})();var Cg=n("/bpi");const Eg=["fileEl"];function Sg(e,t){1&e&&(r.Wb(0,"span"),r.Gc(1,"1"),r.Vb())}function Tg(e,t){1&e&&(r.Wb(0,"span"),r.Gc(1,"*"),r.Vb())}const xg=function(e,t){return{"variables-file-item--invalid":e,"variables-file-item--warning":t}},kg=function(e){return{"variables-file-item-switch--enabled":e}};let Ig=(()=>{class e{constructor(){this.fileVariableNameChange=new r.n,this.fileVariableDataChange=new r.n,this.fileVariableIsMultipleChange=new r.n,this.deleteFileVariableChange=new r.n,this.validFileData=[],this.invalidFileData=!1,this.showWarning=!1,this.filesText=""}ngOnInit(){}ngOnChanges(e){var t,n,i,r,o,s,a;(null===(i=null===(n=null===(t=null==e?void 0:e.fileVariable)||void 0===t?void 0:t.currentValue)||void 0===n?void 0:n.data)||void 0===i?void 0:i.length)&&(this.validFileData=e.fileVariable.currentValue.data.filter(e=>e instanceof File),this.invalidFileData=(null===(o=null===(r=this.fileVariable)||void 0===r?void 0:r.data)||void 0===o?void 0:o.length)>this.validFileData.length,this.showWarning=Boolean(!(null===(s=this.fileVariable)||void 0===s?void 0:s.isMultiple)&&(null===(a=this.fileVariable.data)||void 0===a?void 0:a.length)>1),this.filesText=this.invalidFileData?"Invalid file data. Select the file again.":this.showWarning?"In single mode, only the first file will be used.":this.validFileData.length?this.validFileData.map(e=>e.name).join(", "):"No files selected",this.filesText=Object(Ha.j)(this.filesText))}onSelectFiles(){const e=this.fileEl.nativeElement.files;if(e)return this.fileVariableDataChange.emit(Array.from(e))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-variable-file-item"]],viewQuery:function(e,t){if(1&e&&r.Kc(Eg,3),2&e){let e;r.sc(e=r.ec())&&(t.fileEl=e.first)}},inputs:{fileVariable:"fileVariable"},outputs:{fileVariableNameChange:"fileVariableNameChange",fileVariableDataChange:"fileVariableDataChange",fileVariableIsMultipleChange:"fileVariableIsMultipleChange",deleteFileVariableChange:"deleteFileVariableChange"},features:[r.Cb],decls:34,vars:20,consts:[[1,"variables-file-item",3,"ngClass"],[1,"variables-file-item-name-input-wrapper"],[1,"variables-file-item-switch",3,"ngClass","popper","click"],[4,"ngIf"],["type","text","data-tid","file_name",1,"variables-file-item-name-input",3,"placeholder","ngModel","ngModelChange"],[1,"variables-file-item-input-wrapper"],["type","file",1,"variables-file-item-input",3,"change"],["fileEl",""],[1,"variables-file-item-selected-total",3,"popper"],[1,"app-button","variables-file-item-button",3,"click"],["name","paperclip"],[1,"variables-file-item-input-delete",3,"click"]],template:function(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",0),r.Gc(1,"\n "),r.Wb(2,"div",1),r.Gc(3,"\n "),r.Wb(4,"span",2),r.dc("click",function(){return t.fileVariableIsMultipleChange.emit(!(null!=t.fileVariable&&t.fileVariable.isMultiple))}),r.Gc(5,"\n "),r.Ec(6,Sg,2,0,"span",3),r.Gc(7,"\n "),r.Ec(8,Tg,2,0,"span",3),r.Gc(9,"\n "),r.Vb(),r.Gc(10,"\n "),r.Wb(11,"input",4),r.dc("ngModelChange",function(e){return t.fileVariableNameChange.emit(e)}),r.hc(12,"translate"),r.Vb(),r.Gc(13,"\n "),r.Vb(),r.Gc(14,"\n "),r.Wb(15,"div",5),r.Gc(16,"\n "),r.Wb(17,"input",6,7),r.dc("change",function(){return t.onSelectFiles()}),r.Vb(),r.Gc(19,"\n "),r.Wb(20,"span",8),r.Gc(21),r.Vb(),r.Gc(22,"\n "),r.Wb(23,"button",9),r.dc("click",function(){return r.wc(e),r.tc(18).click()}),r.Gc(24,"\n "),r.Rb(25,"app-icon",10),r.Gc(26),r.hc(27,"translate"),r.Vb(),r.Gc(28,"\n "),r.Vb(),r.Gc(29,"\n "),r.Wb(30,"div",11),r.dc("click",function(){return t.deleteFileVariableChange.emit()}),r.Gc(31,"\xd7"),r.Vb(),r.Gc(32,"\n"),r.Vb(),r.Gc(33,"\n")}2&e&&(r.mc("ngClass",r.qc(15,xg,t.invalidFileData,t.showWarning)),r.Eb(4),r.mc("ngClass",r.pc(18,kg,null==t.fileVariable?null:t.fileVariable.isMultiple))("popper","Toggle single/multiple file mode"),r.Eb(2),r.mc("ngIf",!(null!=t.fileVariable&&t.fileVariable.isMultiple)),r.Eb(2),r.mc("ngIf",null==t.fileVariable?null:t.fileVariable.isMultiple),r.Eb(3),r.nc("placeholder",r.ic(12,11,"FILE_NAME_PLACEHOLDER")),r.mc("ngModel",null==t.fileVariable?null:t.fileVariable.name),r.Eb(6),r.Fb("multiple",null!=t.fileVariable&&t.fileVariable.isMultiple?"":null),r.Eb(3),r.mc("popper",t.filesText),r.Eb(1),r.Ic("\n ",t.validFileData.length," file(s)\n "),r.Eb(5),r.Ic("\n ",r.ic(27,13,"FILES_SELECT_FILES"),"\n "))},directives:[o.l,Mo,o.o,ya.e,ya.l,ya.o,Xi.a],pipes:[y.c],encapsulation:2}),e})();const Dg=["editor"];function zg(e,t){if(1&e){const e=r.Xb();r.Wb(0,"app-variable-file-item",19),r.dc("fileVariableNameChange",function(n){r.wc(e);const i=t.index;return r.gc().fileVariableNameChange.emit({index:i,name:n})})("fileVariableDataChange",function(n){r.wc(e);const i=t.index;return r.gc().fileVariableDataChange.emit({index:i,fileData:n})})("fileVariableIsMultipleChange",function(n){r.wc(e);const i=t.index;return r.gc().fileVariableIsMultipleChange.emit({index:i,isMultiple:n})})("deleteFileVariableChange",function(){r.wc(e);const n=t.index;return r.gc().deleteFileVariableChange.emit({index:n})}),r.Vb()}2&e&&r.mc("fileVariable",t.$implicit)}const jg=function(e){return{"show-variables":e}},Ag=function(e){return{hide:e}},Rg=n("i1zs"),Ng=/^[a-zA-Z0-9_@(]$/;let Lg=(()=>{class e{constructor(e,t,n){this.gqlService=e,this.notifyService=t,this.zone=n,this.query="",this.tabSize=2,this.addQueryDepthLimit=2,this.showVariableDialog=!1,this.preRequest={},this.preRequestScriptChange=new r.n,this.preRequestEnabledChange=new r.n,this.postRequest={},this.postRequestScriptChange=new r.n,this.postRequestEnabledChange=new r.n,this.sendRequest=new r.n,this.queryChange=new r.n,this.variablesChange=new r.n,this.toggleVariableDialog=new r.n,this.addFileVariableChange=new r.n,this.fileVariableNameChange=new r.n,this.fileVariableIsMultipleChange=new r.n,this.fileVariableDataChange=new r.n,this.deleteFileVariableChange=new r.n,this.queryEditorStateChange=new r.n,this.showTokenInDocsChange=new r.n,this.selectedIndex=0,this.editorConfig={mode:"graphql",lineWrapping:!0,lineNumbers:!0,foldGutter:!0,tabSize:this.tabSize,indentUnit:this.tabSize,extraKeys:{"Cmd-Space":e=>e.showHint({completeSingle:!0}),"Ctrl-Space":e=>e.showHint({completeSingle:!0}),"Alt-Space":e=>e.showHint({completeSingle:!0}),"Cmd-/":e=>e.execCommand("toggleComment"),"Ctrl-/":e=>e.execCommand("toggleComment"),"Alt-F":"findPersistent","Ctrl-F":"findPersistent","Ctrl-D":e=>this.zone.run(()=>this.onShowInDocsByToken(e)),"Shift-Ctrl-Enter":e=>this.zone.run(()=>this.onFillFields(e)),"Ctrl-Enter":e=>{},"Cmd-Enter":e=>{}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,autoRefresh:!0,dragDrop:!1,lint:{},hintOptions:{completeSingle:!1,render:(e,t,n)=>{e.classList.add("query-editor__autocomplete-item"),e.innerHTML=`\n ${n.text}\n ${n.typeDetail}\n `.trim().replace(/ +/g," ")}},info:{onClick:e=>this.zone.run(()=>this.onShowInDocsByReference(e)),render(){}},jump:{onClick:e=>this.zone.run(()=>this.onShowInDocsByReference(e))}},this.widgets=[],this.updateWidgetTimeout=null}ngOnInit(){this.gqlSchema&&(this.editorConfig.lint={},this.editorConfig.tabSize=this.tabSize||2,this.editorConfig.indentUnit=this.tabSize||2,this.updateEditorSchema(this.gqlSchema))}ngAfterViewInit(){var e;(null===(e=this.editor)||void 0===e?void 0:e.codeMirror)&&(this.editor.codeMirror.on("keyup",(e,t)=>this.onKeyUp(e,t)),this.editor.codeMirror.on("focus",(e,t)=>this.onEditorStateChange(e,t)),this.editor.codeMirror.on("blur",(e,t)=>this.onEditorStateChange(e,t)),this.editor.codeMirror.on("cursorActivity",(e,t)=>this.onEditorStateChange(e,t)),this.editor.codeMirror.on("hasCompletion",(e,t)=>this.onHasCompletion(e,t)),this.editor.codeMirror.on("change",(e,t)=>this.updateWidgets(e,t)))}ngOnChanges(e){var t,n,i;if(null===(t=null==e?void 0:e.gqlSchema)||void 0===t?void 0:t.currentValue){this.updateEditorSchema(e.gqlSchema.currentValue);const t=this.gqlService.validateSchema(e.gqlSchema.currentValue);if(t.length){const e=t.map(e=>"

    "+e.message).join("");this.notifyService.warning(`\n The schema definition is invalid according to the GraphQL specs.\n Linting and other functionalities would be unavailable.\n ${e}\n `,"Altair",{disableTimeOut:!0})}}(null===(n=null==e?void 0:e.tabSize)||void 0===n?void 0:n.currentValue)&&(this.editorConfig.tabSize=this.tabSize,this.editorConfig.indentUnit=this.tabSize),(null===(i=null==e?void 0:e.query)||void 0===i?void 0:i.currentValue)&&(this.selectedIndex=0)}ngDoCheck(){rs(this.editor&&this.editor.codeMirror)}onKeyUp(e,t){Ng.test(t.key)&&this.editor.codeMirror.execCommand("autocomplete")}onEditorStateChange(e,t){const n=e.getDoc().getCursor(),i=e.getDoc().indexFromPos(n),r=e.hasFocus();this.queryEditorStateChange.next({isFocused:r,cursorIndex:i})}onShowInDocsByToken(e){const t=e.getDoc().getCursor(),n=e.getTokenAt(t),i=Rg(this.gqlSchema,n.state);i.fieldDef&&i.parentType?this.showTokenInDocsChange.next({view:"field",parentType:i.parentType.inspect(),name:i.fieldDef.name}):i.type&&this.showTokenInDocsChange.next({view:"type",name:i.type.inspect()}),this.editor.codeMirror.getInputField().blur()}onShowInDocsByReference(e){e.field&&e.type?this.showTokenInDocsChange.next({view:"field",parentType:e.type.inspect(),name:e.field.name}):e.type&&this.showTokenInDocsChange.next({view:"type",name:e.type.inspect()})}onFillFields(e){const t=e.getDoc().getCursor(),n=e.getTokenAt(t),i=this.gqlSchema;if(!i)return;const r=this.gqlService.fillAllFields(i,e.getValue(),t,n,{maxDepth:this.addQueryDepthLimit});this.queryChange.next(r.result);const o=setTimeout(()=>{e.getDoc().setCursor(t),clearTimeout(o)},1)}onHasCompletion(e,t){((e,t,i={})=>{const r=n("VrN/"),o=i.onHintInformationRender,s=i.onClickHintInformation;let a,c,l;r.on(t,"select",(e,t)=>{let n;if(s&&(n=()=>s(e.type)),!a){const e=t.parentNode;if(e){let t;a=document.createElement("div"),a.className="CodeMirror-hint-information",e.appendChild(a),c=document.createElement("div"),c.className="CodeMirror-hint-deprecation",e.appendChild(c),l=document.createElement("div"),l.className="CodeMirror-hint-fill-all-fields",l.innerHTML='\n Fill all fields\n Ctrl+Shift+Enter\n '.trim().replace(/ +/g," "),e.appendChild(l),e.addEventListener("DOMNodeRemoved",t=i=>{i.target===e&&(a&&n&&a.removeEventListener("click",n),e.removeEventListener("DOMNodeRemoved",t),a=null,c=null,l=null,t=void 0)})}}const i=function(e){let t="Self descriptive.",n=!1;return e.description&&(t=e.description),e.type&&e.type.description&&(t=e.type.description),t.length>70&&(n=!0),Pp()(`${t}`.substring(0,70)+(n?"...":""))}(e),r=function(e){return e.type?''+Vp(e.type)+"":""}(e);if(a&&(a.innerHTML='
    '+("

    "===i.slice(0,3)?"

    "+r+i.slice(3):r+i)+"

    "),e.isDeprecated){const t=e.deprecationReason?Pp()(e.deprecationReason):"";c&&(c.innerHTML='Deprecated'+t,c.style.display="block")}else c&&(c.style.display="none");n&&a&&a.addEventListener("click",n),o&&o(a)})})(0,t,{onClickHintInformation:e=>{if(this.gqlSchema){const t=this.gqlSchema.getType(e);t&&this.showTokenInDocsChange.next({view:"type",name:t.inspect()})}}})}updateWidgets(e,t){this.zone.runOutsideAngular(()=>{const t=[];clearTimeout(this.updateWidgetTimeout),this.updateWidgetTimeout=setTimeout(()=>{try{const n=this.gqlService.parseQuery(e.getValue());n.definitions.forEach(e=>{"OperationDefinition"===e.kind&&(e.name&&e.name.value||1===n.definitions.length)&&(M.a.log("WIDGET",e),t.push({operation:e.operation,location:e.loc,operationName:e.name?e.name.value:""}))}),e.operation(()=>{this.widgets.forEach(t=>{e.removeLineWidget(t),t.clear()}),this.widgets=[],t.forEach(({operationName:t,operation:n,location:i})=>{const r=document.createElement("div");r.innerHTML=`► (Run ${n}${t?` ${t}`:""})`,r.className="query-editor__line-widget",r.onclick=()=>{this.zone.run(()=>this.sendRequest.next({operationName:t})),M.a.log("WIDGET listens")},this.widgets.push(e.addLineWidget(i.startToken.line-1,r,{above:!0}))})})}catch(n){}finally{clearTimeout(this.updateWidgetTimeout)}},300)})}updateEditorSchema(e){e&&(M.a.log("Updating schema...",e),this.editorConfig.lint.schema=e,this.editorConfig.hintOptions.schema=e,this.editorConfig.info.schema=e,this.editorConfig.jump.schema=e)}onResize(e){this.resizeFactor=e}trackByIndex(e){return e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(R.GqlService),r.Qb(R.NotifyService),r.Qb(r.B))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-query-editor"]],viewQuery:function(e,t){if(1&e&&r.Kc(Dg,3),2&e){let e;r.sc(e=r.ec())&&(t.editor=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&r.Bc("flex-grow",t.resizeFactor)},inputs:{query:"query",gqlSchema:"gqlSchema",tabSize:"tabSize",addQueryDepthLimit:"addQueryDepthLimit",variables:"variables",showVariableDialog:"showVariableDialog",variableToType:"variableToType",preRequest:"preRequest",postRequest:"postRequest"},outputs:{preRequestScriptChange:"preRequestScriptChange",preRequestEnabledChange:"preRequestEnabledChange",postRequestScriptChange:"postRequestScriptChange",postRequestEnabledChange:"postRequestEnabledChange",sendRequest:"sendRequest",queryChange:"queryChange",variablesChange:"variablesChange",toggleVariableDialog:"toggleVariableDialog",addFileVariableChange:"addFileVariableChange",fileVariableNameChange:"fileVariableNameChange",fileVariableIsMultipleChange:"fileVariableIsMultipleChange",fileVariableDataChange:"fileVariableDataChange",deleteFileVariableChange:"deleteFileVariableChange",queryEditorStateChange:"queryEditorStateChange",showTokenInDocsChange:"showTokenInDocsChange"},features:[r.Cb],decls:60,vars:36,consts:[["nzSize","small","nzTabBarGutter","16",1,"main-view-tabs",3,"nzAnimated","nzSelectedIndex","nzSelectedIndexChange"],[3,"nzTitle"],[1,"query-editor-container"],["ngDefaultControl","",1,"query-editor__input",3,"ngModel","options","ngModelChange"],["editor",""],[1,"variables-editor-container",3,"ngClass"],["track-id","toggle_variables",1,"variables-editor--title",3,"click"],[1,"variables-editor-inner",3,"ngClass"],[1,"variables-editor-input-container"],[3,"variables","variableToType","tabSize","variablesChange"],[1,"variables-files-container"],["track-id","add_file_variable",1,"variables-add-files-button",3,"click"],["href","https://sirmuel.design/working-with-file-uploads-using-altair-graphql-d2f86dc8261f","target","_blank","rel","noopener"],["name","info"],[1,"variables-files-list"],[3,"fileVariable","fileVariableNameChange","fileVariableDataChange","fileVariableIsMultipleChange","deleteFileVariableChange",4,"ngFor","ngForOf","ngForTrackBy"],[3,"preRequest","preRequestScriptChange","preRequestEnabledChange"],[3,"postRequest","postRequestScriptChange","postRequestEnabledChange"],[3,"resizeDirection","resizeChange"],[3,"fileVariable","fileVariableNameChange","fileVariableDataChange","fileVariableIsMultipleChange","deleteFileVariableChange"]],template:function(e,t){1&e&&(r.Wb(0,"nz-tabset",0),r.dc("nzSelectedIndexChange",function(e){return t.selectedIndex=e}),r.Gc(1,"\n "),r.Wb(2,"nz-tab",1),r.hc(3,"translate"),r.Gc(4,"\n "),r.Wb(5,"div",2),r.Gc(6,"\n "),r.Wb(7,"ngx-codemirror",3,4),r.dc("ngModelChange",function(e){return t.queryChange.emit(e)}),r.Vb(),r.Gc(9,"\n "),r.Vb(),r.Gc(10,"\n "),r.Wb(11,"div",5),r.Gc(12,"\n "),r.Wb(13,"div",6),r.dc("click",function(e){return t.toggleVariableDialog.next(e)}),r.Gc(14),r.hc(15,"translate"),r.Vb(),r.Gc(16,"\n "),r.Wb(17,"div",7),r.Gc(18,"\n "),r.Wb(19,"div",8),r.Gc(20,"\n "),r.Wb(21,"app-variables-editor",9),r.dc("variablesChange",function(e){return t.variablesChange.emit(e)}),r.Vb(),r.Gc(22,"\n "),r.Vb(),r.Gc(23,"\n "),r.Wb(24,"div",10),r.Gc(25,"\n "),r.Wb(26,"button",11),r.dc("click",function(){return t.addFileVariableChange.next()}),r.Gc(27),r.hc(28,"translate"),r.Vb(),r.Gc(29,"\n\n "),r.Wb(30,"a",12),r.Gc(31,"\n "),r.Rb(32,"app-icon",13),r.Gc(33),r.hc(34,"translate"),r.Vb(),r.Gc(35,"\n\n "),r.Wb(36,"div",14),r.Gc(37,"\n "),r.Ec(38,zg,1,1,"app-variable-file-item",15),r.Gc(39,"\n "),r.Vb(),r.Gc(40,"\n "),r.Vb(),r.Gc(41,"\n "),r.Vb(),r.Gc(42,"\n "),r.Vb(),r.Gc(43,"\n "),r.Vb(),r.Gc(44,"\n "),r.Wb(45,"nz-tab",1),r.hc(46,"translate"),r.Gc(47,"\n "),r.Wb(48,"app-pre-request-editor",16),r.dc("preRequestScriptChange",function(e){return t.preRequestScriptChange.emit(e)})("preRequestEnabledChange",function(e){return t.preRequestEnabledChange.emit(e)}),r.Vb(),r.Gc(49,"\n "),r.Vb(),r.Gc(50,"\n "),r.Wb(51,"nz-tab",1),r.hc(52,"translate"),r.Gc(53,"\n "),r.Wb(54,"app-post-request-editor",17),r.dc("postRequestScriptChange",function(e){return t.postRequestScriptChange.emit(e)})("postRequestEnabledChange",function(e){return t.postRequestEnabledChange.emit(e)}),r.Vb(),r.Gc(55,"\n "),r.Vb(),r.Gc(56,"\n"),r.Vb(),r.Gc(57,"\n"),r.Wb(58,"app-flex-resizer",18),r.dc("resizeChange",function(e){return t.onResize(e)}),r.Vb(),r.Gc(59,"\n")),2&e&&(r.mc("nzAnimated",!1)("nzSelectedIndex",t.selectedIndex),r.Eb(2),r.mc("nzTitle",r.ic(3,20,"QUERY_TAB")),r.Eb(5),r.mc("ngModel",t.query)("options",t.editorConfig),r.Eb(4),r.mc("ngClass",r.pc(32,jg,t.showVariableDialog)),r.Eb(3),r.Hc(r.ic(15,22,"VARIABLES_TEXT")),r.Eb(3),r.mc("ngClass",r.pc(34,Ag,!t.showVariableDialog)),r.Eb(4),r.mc("variables",null==t.variables?null:t.variables.variables)("variableToType",t.variableToType)("tabSize",t.tabSize),r.Eb(6),r.Hc(r.ic(28,24,"ADD_FILES_TEXT")),r.Eb(6),r.Ic("\n ",r.ic(34,26,"LEARN_MORE_TEXT"),"\n "),r.Eb(5),r.mc("ngForOf",null==t.variables?null:t.variables.files)("ngForTrackBy",t.trackByIndex),r.Eb(7),r.mc("nzTitle",r.ic(46,28,"PRE_REQUEST_TAB")),r.Eb(3),r.mc("preRequest",t.preRequest),r.Eb(3),r.mc("nzTitle",r.ic(52,30,"POST_REQUEST_TAB")),r.Eb(3),r.mc("postRequest",t.postRequest),r.Eb(4),r.mc("resizeDirection","right"))},directives:[sg,Kf,Ca,ya.e,ya.l,ya.o,o.l,ug,Xi.a,o.n,yg,Og,Cg.a,Ig],pipes:[y.c],styles:[""]}),e})();function Mg(e,t){}function Fg(e,t){if(1&e&&(r.Ub(0),r.Ec(1,Mg,0,0,"ng-template",6),r.Tb()),2&e){r.gc(2);const e=r.tc(2);r.Eb(1),r.mc("ngTemplateOutlet",e.template)}}function Pg(e,t){if(1&e&&(r.Ub(0),r.Ec(1,Fg,2,1,"ng-container",5),r.Tb()),2&e){const e=r.gc(),t=r.tc(4);r.Eb(1),r.mc("ngIf",e.nzSimple)("ngIfElse",t.template)}}n("iMDj");const Vg=["containerTemplate"];function Gg(e,t){}const Bg=function(e,t){return{$implicit:e,range:t}};function Wg(e,t){if(1&e&&(r.Wb(0,"li",4),r.Ec(1,Gg,0,0,"ng-template",5),r.Vb()),2&e){const e=r.gc(2);r.Eb(1),r.mc("ngTemplateOutlet",e.showTotal)("ngTemplateOutletContext",r.qc(2,Bg,e.total,e.ranges))}}function $g(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",6),r.dc("gotoIndex",function(t){return r.wc(e),r.gc(2).jumpPage(t)})("diffIndex",function(t){return r.wc(e),r.gc(2).jumpDiff(t)}),r.Vb()}if(2&e){const e=t.$implicit,n=r.gc(2);r.mc("locale",n.locale)("type",e.type)("index",e.index)("disabled",!!e.disabled)("itemRender",n.itemRender)("active",n.pageIndex===e.index)("direction",n.dir)}}function Ug(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",7),r.dc("pageIndexChange",function(t){return r.wc(e),r.gc(2).onPageIndexChange(t)})("pageSizeChange",function(t){return r.wc(e),r.gc(2).onPageSizeChange(t)}),r.Vb()}if(2&e){const e=r.gc(2);r.mc("total",e.total)("locale",e.locale)("disabled",e.disabled)("nzSize",e.nzSize)("showSizeChanger",e.showSizeChanger)("showQuickJumper",e.showQuickJumper)("pageIndex",e.pageIndex)("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)}}function Hg(e,t){if(1&e&&(r.Ec(0,Wg,2,5,"li",1),r.Ec(1,$g,1,7,"li",2),r.Ec(2,Ug,1,9,"div",3)),2&e){const e=r.gc();r.mc("ngIf",e.showTotal),r.Eb(1),r.mc("ngForOf",e.listOfPageItem)("ngForTrackBy",e.trackByPageItem),r.Eb(1),r.mc("ngIf",e.showQuickJumper||e.showSizeChanger)}}const qg=["nz-pagination-item",""];function Qg(e,t){if(1&e&&(r.Wb(0,"a"),r.Gc(1),r.Vb()),2&e){const e=r.gc().page;r.Eb(1),r.Hc(e)}}function Kg(e,t){1&e&&r.Rb(0,"i",9)}function Xg(e,t){1&e&&r.Rb(0,"i",10)}function Yg(e,t){if(1&e&&(r.Wb(0,"button",6),r.Ub(1,2),r.Ec(2,Kg,1,0,"i",7),r.Ec(3,Xg,1,0,"i",8),r.Tb(),r.Vb()),2&e){const e=r.gc(2);r.mc("disabled",e.disabled),r.Eb(1),r.mc("ngSwitch",e.direction),r.Eb(1),r.mc("ngSwitchCase","rtl")}}function Jg(e,t){1&e&&r.Rb(0,"i",10)}function Zg(e,t){1&e&&r.Rb(0,"i",9)}function em(e,t){if(1&e&&(r.Wb(0,"button",6),r.Ub(1,2),r.Ec(2,Jg,1,0,"i",11),r.Ec(3,Zg,1,0,"i",12),r.Tb(),r.Vb()),2&e){const e=r.gc(2);r.mc("disabled",e.disabled),r.Eb(1),r.mc("ngSwitch",e.direction),r.Eb(1),r.mc("ngSwitchCase","rtl")}}function tm(e,t){1&e&&r.Rb(0,"i",20)}function nm(e,t){1&e&&r.Rb(0,"i",21)}function im(e,t){if(1&e&&(r.Ub(0,2),r.Ec(1,tm,1,0,"i",18),r.Ec(2,nm,1,0,"i",19),r.Tb()),2&e){const e=r.gc(4);r.mc("ngSwitch",e.direction),r.Eb(1),r.mc("ngSwitchCase","rtl")}}function rm(e,t){1&e&&r.Rb(0,"i",21)}function om(e,t){1&e&&r.Rb(0,"i",20)}function sm(e,t){if(1&e&&(r.Ub(0,2),r.Ec(1,rm,1,0,"i",22),r.Ec(2,om,1,0,"i",23),r.Tb()),2&e){const e=r.gc(4);r.mc("ngSwitch",e.direction),r.Eb(1),r.mc("ngSwitchCase","rtl")}}function am(e,t){if(1&e&&(r.Wb(0,"div",15),r.Ub(1,2),r.Ec(2,im,3,2,"ng-container",16),r.Ec(3,sm,3,2,"ng-container",16),r.Tb(),r.Wb(4,"span",17),r.Gc(5,"\u2022\u2022\u2022"),r.Vb(),r.Vb()),2&e){const e=r.gc(2).$implicit;r.Eb(1),r.mc("ngSwitch",e),r.Eb(1),r.mc("ngSwitchCase","prev_5"),r.Eb(1),r.mc("ngSwitchCase","next_5")}}function cm(e,t){if(1&e&&(r.Ub(0),r.Wb(1,"a",13),r.Ec(2,am,6,3,"div",14),r.Vb(),r.Tb()),2&e){const e=r.gc().$implicit;r.Eb(1),r.mc("ngSwitch",e)}}function lm(e,t){1&e&&(r.Ub(0,2),r.Ec(1,Qg,2,1,"a",3),r.Ec(2,Yg,4,3,"button",4),r.Ec(3,em,4,3,"button",4),r.Ec(4,cm,3,1,"ng-container",5),r.Tb()),2&e&&(r.mc("ngSwitch",t.$implicit),r.Eb(1),r.mc("ngSwitchCase","page"),r.Eb(1),r.mc("ngSwitchCase","prev"),r.Eb(1),r.mc("ngSwitchCase","next"))}function um(e,t){}const hm=function(e,t){return{$implicit:e,page:t}},dm=["nz-pagination-options",""];function pm(e,t){if(1&e&&r.Rb(0,"nz-option",4),2&e){const e=t.$implicit;r.mc("nzLabel",e.label)("nzValue",e.value)}}function fm(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-select",2),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().onPageSizeChange(t)}),r.Ec(1,pm,1,2,"nz-option",3),r.Vb()}if(2&e){const e=r.gc();r.mc("nzDisabled",e.disabled)("nzSize",e.nzSize)("ngModel",e.pageSize),r.Eb(1),r.mc("ngForOf",e.listOfPageSizeOption)("ngForTrackBy",e.trackByOption)}}function gm(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",5),r.Gc(1),r.Wb(2,"input",6),r.dc("keydown.enter",function(t){return r.wc(e),r.gc().jumpToPageViaInput(t)}),r.Vb(),r.Gc(3),r.Vb()}if(2&e){const e=r.gc();r.Eb(1),r.Ic(" ",e.locale.jump_to," "),r.Eb(1),r.mc("disabled",e.disabled),r.Eb(1),r.Ic(" ",e.locale.page," ")}}function mm(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",1),r.dc("click",function(){return r.wc(e),r.gc().prePage()}),r.Vb(),r.Wb(1,"li",2),r.Wb(2,"input",3),r.dc("keydown.enter",function(t){return r.wc(e),r.gc().jumpToPageViaInput(t)}),r.Vb(),r.Wb(3,"span",4),r.Gc(4,"/"),r.Vb(),r.Gc(5),r.Vb(),r.Wb(6,"li",5),r.dc("click",function(){return r.wc(e),r.gc().nextPage()}),r.Vb()}if(2&e){const e=r.gc();r.mc("disabled",e.isFirstIndex)("direction",e.dir)("itemRender",e.itemRender),r.Fb("title",e.locale.prev_page),r.Eb(1),r.Fb("title",e.pageIndex+"/"+e.lastIndex),r.Eb(1),r.mc("disabled",e.disabled)("value",e.pageIndex),r.Eb(3),r.Ic(" ",e.lastIndex," "),r.Eb(1),r.mc("disabled",e.isLastIndex)("direction",e.dir)("itemRender",e.itemRender),r.Fb("title",null==e.locale?null:e.locale.next_page)}}let bm=(()=>{class e{constructor(e,t,n,i,o,s){this.i18n=e,this.cdr=t,this.breakpointService=n,this.nzConfigService=i,this.directionality=o,this.elementRef=s,this._nzModuleName="pagination",this.nzPageSizeChange=new r.n,this.nzPageIndexChange=new r.n,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new fe.a,this.total$=new cc.a(1),this.elementRef.nativeElement.classList.add("ant-pagination")}validatePageIndex(e,t){return e>t?t:e<1?1:e}onPageIndexChange(e){const t=this.getLastIndex(this.nzTotal,this.nzPageSize),n=this.validatePageIndex(e,t);n===this.nzPageIndex||this.nzDisabled||(this.nzPageIndex=n,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(e){this.nzPageSize=e,this.nzPageSizeChange.emit(e);const t=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>t&&this.onPageIndexChange(t)}onTotalChange(e){const t=this.getLastIndex(e,this.nzPageSize);this.nzPageIndex>t&&Promise.resolve().then(()=>this.onPageIndexChange(t))}getLastIndex(e,t){return Math.ceil(e/t)}ngOnInit(){var e;this.i18n.localeChange.pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.onTotalChange(e)}),this.breakpointService.subscribe(Me).pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.nzResponsive&&(this.size=e===Le.xs?"small":"default",this.cdr.markForCheck())}),null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(e){const{nzHideOnSinglePage:t,nzTotal:n,nzPageSize:i,nzSize:r}=e;n&&this.total$.next(this.nzTotal),(t||n||i)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),r&&(this.size=r.currentValue)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(ms),r.Qb(r.h),r.Qb(Pe),r.Qb(Os.a),r.Qb(pe.b,8),r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-pagination"]],hostVars:8,hostBindings:function(e,t){2&e&&r.Ib("ant-pagination-simple",t.nzSimple)("ant-pagination-disabled",t.nzDisabled)("mini",!t.nzSimple&&"small"===t.size)("ant-pagination-rtl","rtl"===t.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[r.Cb],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(r.Ec(0,Pg,2,2,"ng-container",0),r.Wb(1,"nz-pagination-simple",1,2),r.dc("pageIndexChange",function(e){return t.onPageIndexChange(e)}),r.Vb(),r.Wb(3,"nz-pagination-default",3,4),r.dc("pageIndexChange",function(e){return t.onPageIndexChange(e)})("pageSizeChange",function(e){return t.onPageSizeChange(e)}),r.Vb()),2&e&&(r.mc("ngIf",t.showPagination),r.Eb(1),r.mc("disabled",t.nzDisabled)("itemRender",t.nzItemRender)("locale",t.locale)("pageSize",t.nzPageSize)("total",t.nzTotal)("pageIndex",t.nzPageIndex),r.Eb(2),r.mc("nzSize",t.size)("itemRender",t.nzItemRender)("showTotal",t.nzShowTotal)("disabled",t.nzDisabled)("locale",t.locale)("showSizeChanger",t.nzShowSizeChanger)("showQuickJumper",t.nzShowQuickJumper)("total",t.nzTotal)("pageIndex",t.nzPageIndex)("pageSize",t.nzPageSize)("pageSizeOptions",t.nzPageSizeOptions))},directives:function(){return[o.o,_m,vm,o.t]},encapsulation:2,changeDetection:0}),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",String)],e.prototype,"nzSize",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",Array)],e.prototype,"nzPageSizeOptions",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzShowSizeChanger",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzShowQuickJumper",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzSimple",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzResponsive",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzHideOnSinglePage",void 0),Object(me.b)([Object(_e.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzTotal",void 0),Object(me.b)([Object(_e.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzPageIndex",void 0),Object(me.b)([Object(_e.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzPageSize",void 0),e})(),vm=(()=>{class e{constructor(e,t,n,i){this.cdr=e,this.renderer=t,this.elementRef=n,this.directionality=i,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new r.n,this.pageSizeChange=new r.n,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new fe.a,t.removeChild(t.parentNode(n.nativeElement),n.nativeElement)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(e){this.onPageIndexChange(e)}jumpDiff(e){this.jumpPage(this.pageIndex+e)}trackByPageItem(e,t){return`${t.type}-${t.index}`}onPageIndexChange(e){this.pageIndexChange.next(e)}onPageSizeChange(e){this.pageSizeChange.next(e)}getLastIndex(e,t){return Math.ceil(e/t)}buildIndexes(){const e=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,e)}getListOfPageItem(e,t){const n=(e,t)=>{const n=[];for(let i=e;i<=t;i++)n.push({index:i,type:"page"});return n};return i=t<=9?n(1,t):((e,i)=>{let r=[];const o={type:"prev_5"},s={type:"next_5"},a=n(1,1),c=n(t,t);return r=e<4?[...n(2,5),s]:e{class e{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new r.n,this.gotoIndex=new r.n,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(e){var t,n,i,r;const{locale:o,index:s,type:a}=e;(o||s||a)&&(this.title={page:`${this.index}`,next:null===(t=this.locale)||void 0===t?void 0:t.next_page,prev:null===(n=this.locale)||void 0===n?void 0:n.prev_page,prev_5:null===(i=this.locale)||void 0===i?void 0:i.prev_5,next_5:null===(r=this.locale)||void 0===r?void 0:r.next_5}[this.type])}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(e,t){1&e&&r.dc("click",function(){return t.clickItem()}),2&e&&(r.Fb("title",t.title),r.Ib("ant-pagination-prev","prev"===t.type)("ant-pagination-next","next"===t.type)("ant-pagination-item","page"===t.type)("ant-pagination-jump-prev","prev_5"===t.type)("ant-pagination-jump-prev-custom-icon","prev_5"===t.type)("ant-pagination-jump-next","next_5"===t.type)("ant-pagination-jump-next-custom-icon","next_5"===t.type)("ant-pagination-disabled",t.disabled)("ant-pagination-item-active",t.active))},inputs:{active:"active",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender",locale:"locale"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[r.Cb],attrs:qg,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(e,t){if(1&e&&(r.Ec(0,lm,5,4,"ng-template",null,0,r.Fc),r.Ec(2,um,0,0,"ng-template",1)),2&e){const e=r.tc(1);r.Eb(2),r.mc("ngTemplateOutlet",t.itemRender||e)("ngTemplateOutletContext",r.qc(2,hm,t.type,t.index))}},directives:[o.t,o.q,o.r,o.s,Ge.a],encapsulation:2,changeDetection:0}),e})(),wm=(()=>{class e{constructor(e){this.elementRef=e,this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new r.n,this.pageSizeChange=new r.n,this.listOfPageSizeOption=[],this.elementRef.nativeElement.classList.add("ant-pagination-options")}onPageSizeChange(e){this.pageSize!==e&&this.pageSizeChange.next(e)}jumpToPageViaInput(e){const t=e.target,n=Math.floor(Object(_e.r)(t.value,this.pageIndex));this.pageIndexChange.next(n),t.value=""}trackByOption(e,t){return t.value}ngOnChanges(e){const{pageSize:t,pageSizeOptions:n,locale:i}=e;(t||n||i)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(e=>({value:e,label:`${e} ${this.locale.items_per_page}`})))}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["div","nz-pagination-options",""]],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",locale:"locale"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[r.Cb],attrs:dm,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(e,t){1&e&&(r.Ec(0,fm,2,5,"nz-select",0),r.Ec(1,gm,4,3,"div",1)),2&e&&(r.mc("ngIf",t.showSizeChanger),r.Eb(1),r.mc("ngIf",t.showQuickJumper))},directives:[o.o,Vu,ya.l,ya.o,o.n,Lu],encapsulation:2,changeDetection:0}),e})(),_m=(()=>{class e{constructor(e,t,n,i){this.cdr=e,this.renderer=t,this.elementRef=n,this.directionality=i,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new r.n,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new fe.a,t.removeChild(t.parentNode(n.nativeElement),n.nativeElement)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(e){const t=e.target,n=Object(_e.r)(t.value,this.pageIndex);this.onPageIndexChange(n),t.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(e){this.pageIndexChange.next(e)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(e){const{pageIndex:t,total:n,pageSize:i}=e;(t||n||i)&&this.updateBindingValue()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(r.G),r.Qb(r.l),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-pagination-simple"]],viewQuery:function(e,t){if(1&e&&r.Kc(Vg,3),2&e){let e;r.sc(e=r.ec())&&(t.template=e.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",locale:"locale"},outputs:{pageIndexChange:"pageIndexChange"},features:[r.Cb],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(e,t){1&e&&r.Ec(0,mm,7,12,"ng-template",null,0,r.Fc)},directives:[ym],encapsulation:2,changeDetection:0}),e})(),Om=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,ya.i,qu,bs,Ge.b]]}),e})();const Cm=["*"],Em=["inputElement"],Sm=["nz-radio",""];let Tm=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-radio-button",""]]}),e})(),xm=(()=>{class e{constructor(){this.selected$=new cc.a(1),this.touched$=new fe.a,this.disabled$=new cc.a(1),this.name$=new cc.a(1)}touch(){this.touched$.next()}select(e){this.selected$.next(e)}setDisabled(e){this.disabled$.next(e)}setName(e){this.name$.next(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),km=(()=>{class e{constructor(e,t,n,i,r,o){this.elementRef=e,this.cdr=t,this.focusMonitor=n,this.directionality=i,this.nzRadioService=r,this.nzRadioButtonDirective=o,this.isNgModel=!1,this.destroy$=new fe.a,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}onHostClick(e){e.stopPropagation(),e.preventDefault(),this.nzDisabled||this.isChecked||(this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)))}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(e){this.nzDisabled=e,this.cdr.markForCheck()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.isNgModel=!0,this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnInit(){var e;this.nzRadioService&&(this.nzRadioService.name$.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.name=e,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.nzDisabled=e,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.isChecked=this.nzValue===e,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).subscribe(e=>{e||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.h),r.Qb(Ot),r.Qb(pe.b,8),r.Qb(xm,8),r.Qb(Tm,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(e,t){if(1&e&&r.Kc(Em,1),2&e){let e;r.sc(e=r.ec())&&(t.inputElement=e.first)}},hostVars:16,hostBindings:function(e,t){1&e&&r.dc("click",function(e){return t.onHostClick(e)}),2&e&&r.Ib("ant-radio-wrapper",!t.isRadioButton)("ant-radio-button-wrapper",t.isRadioButton)("ant-radio-wrapper-checked",t.isChecked&&!t.isRadioButton)("ant-radio-button-wrapper-checked",t.isChecked&&t.isRadioButton)("ant-radio-wrapper-disabled",t.nzDisabled&&!t.isRadioButton)("ant-radio-button-wrapper-disabled",t.nzDisabled&&t.isRadioButton)("ant-radio-wrapper-rtl",!t.isRadioButton&&"rtl"===t.dir)("ant-radio-button-wrapper-rtl",t.isRadioButton&&"rtl"===t.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[r.Db([{provide:ya.j,useExisting:Object(r.W)(()=>e),multi:!0}])],attrs:Sm,ngContentSelectors:Cm,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(e,t){1&e&&(r.lc(),r.Wb(0,"span"),r.Rb(1,"input",0,1),r.Rb(3,"span"),r.Vb(),r.Wb(4,"span"),r.kc(5),r.Vb()),2&e&&(r.Ib("ant-radio",!t.isRadioButton)("ant-radio-checked",t.isChecked&&!t.isRadioButton)("ant-radio-disabled",t.nzDisabled&&!t.isRadioButton)("ant-radio-button",t.isRadioButton)("ant-radio-button-checked",t.isChecked&&t.isRadioButton)("ant-radio-button-disabled",t.nzDisabled&&t.isRadioButton),r.Eb(1),r.Ib("ant-radio-input",!t.isRadioButton)("ant-radio-button-input",t.isRadioButton),r.mc("disabled",t.nzDisabled)("checked",t.isChecked),r.Fb("autofocus",t.nzAutoFocus?"autofocus":null)("name",t.name),r.Eb(2),r.Ib("ant-radio-inner",!t.isRadioButton)("ant-radio-button-inner",t.isRadioButton))},encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzDisabled",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzAutoFocus",void 0),e})(),Im=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,o.c,ya.i]]}),e})();const Dm=["*"];function zm(e,t){}function jm(e,t){if(1&e){const e=r.Xb();r.Wb(0,"label",15),r.dc("ngModelChange",function(){r.wc(e);const t=r.gc().$implicit;return r.gc(2).check(t)}),r.Vb()}if(2&e){const e=r.gc().$implicit;r.mc("ngModel",e.checked)}}function Am(e,t){if(1&e){const e=r.Xb();r.Wb(0,"label",16),r.dc("ngModelChange",function(){r.wc(e);const t=r.gc().$implicit;return r.gc(2).check(t)}),r.Vb()}if(2&e){const e=r.gc().$implicit;r.mc("ngModel",e.checked)}}function Rm(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",12),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc(2).check(n)}),r.Ec(1,jm,1,1,"label",13),r.Ec(2,Am,1,1,"label",14),r.Wb(3,"span"),r.Gc(4),r.Vb(),r.Vb()}if(2&e){const e=t.$implicit,n=r.gc(2);r.mc("nzSelected",e.checked),r.Eb(1),r.mc("ngIf",!n.filterMultiple),r.Eb(1),r.mc("ngIf",n.filterMultiple),r.Eb(2),r.Hc(e.text)}}function Nm(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Wb(1,"nz-filter-trigger",3),r.dc("nzVisibleChange",function(t){return r.wc(e),r.gc().onVisibleChange(t)}),r.Rb(2,"i",4),r.Vb(),r.Wb(3,"nz-dropdown-menu",null,5),r.Wb(5,"div",6),r.Wb(6,"ul",7),r.Ec(7,Rm,5,4,"li",8),r.Vb(),r.Wb(8,"div",9),r.Wb(9,"button",10),r.dc("click",function(){return r.wc(e),r.gc().reset()}),r.Gc(10),r.Vb(),r.Wb(11,"button",11),r.dc("click",function(){return r.wc(e),r.gc().confirm()}),r.Gc(12),r.Vb(),r.Vb(),r.Vb(),r.Vb(),r.Tb()}if(2&e){const e=r.tc(4),t=r.gc();r.Eb(1),r.mc("nzVisible",t.isVisible)("nzActive",t.isChecked)("nzDropdownMenu",e),r.Eb(6),r.mc("ngForOf",t.listOfParsedFilter)("ngForTrackBy",t.trackByValue),r.Eb(2),r.mc("disabled",!t.isChecked),r.Eb(1),r.Hc(t.locale.filterReset),r.Eb(2),r.Hc(t.locale.filterConfirm)}}function Lm(e,t){}function Mm(e,t){if(1&e&&r.Rb(0,"i",5),2&e){const e=r.gc();r.Ib("active","ascend"==e.sortOrder)}}function Fm(e,t){if(1&e&&r.Rb(0,"i",6),2&e){const e=r.gc();r.Ib("active","descend"==e.sortOrder)}}const Pm=["nzColumnKey",""];function Vm(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-table-filter",5),r.dc("filterChange",function(t){return r.wc(e),r.gc().onFilterValueChange(t)}),r.Vb()}if(2&e){const e=r.gc(),t=r.tc(2),n=r.tc(4);r.mc("contentTemplate",t)("extraTemplate",n)("customFilter",e.nzCustomFilter)("filterMultiple",e.nzFilterMultiple)("listOfFilter",e.nzFilters)}}function Gm(e,t){}function Bm(e,t){if(1&e&&r.Ec(0,Gm,0,0,"ng-template",6),2&e){const e=r.gc(),t=r.tc(6),n=r.tc(8);r.mc("ngTemplateOutlet",e.nzShowSort?t:n)}}function Wm(e,t){1&e&&(r.kc(0),r.kc(1,1))}function $m(e,t){if(1&e&&r.Rb(0,"nz-table-sorters",7),2&e){const e=r.gc(),t=r.tc(8);r.mc("sortOrder",e.sortOrder)("sortDirections",e.sortDirections)("contentTemplate",t)}}function Um(e,t){1&e&&r.kc(0,2)}const Hm=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],qm=["[nz-th-extra]","nz-filter-trigger","*"],Qm=["nz-table-content",""];function Km(e,t){if(1&e&&r.Rb(0,"col"),2&e){const e=t.$implicit;r.Bc("width",e)("min-width",e)}}function Xm(e,t){}function Ym(e,t){if(1&e&&(r.Wb(0,"thead",3),r.Gc(1,"\n "),r.Ec(2,Xm,0,0,"ng-template",2),r.Gc(3,"\n "),r.Vb()),2&e){const e=r.gc();r.Eb(2),r.mc("ngTemplateOutlet",e.theadTemplate)}}function Jm(e,t){}const Zm=["tdElement"],eb=["nz-table-fixed-row",""];function tb(e,t){}function nb(e,t){if(1&e&&(r.Wb(0,"div",4),r.hc(1,"async"),r.Gc(2,"\n "),r.Ec(3,tb,0,0,"ng-template",5),r.Gc(4,"\n "),r.Vb()),2&e){const e=r.gc(),t=r.tc(9);r.Bc("width",r.ic(1,3,e.hostWidth$),"px"),r.Eb(3),r.mc("ngTemplateOutlet",t)}}function ib(e,t){1&e&&r.kc(0)}const rb=["tableHeaderElement"],ob=["tableBodyElement"];function sb(e,t){if(1&e&&(r.Wb(0,"div",7,8),r.Gc(2,"\n "),r.Rb(3,"table",9),r.Gc(4,"\n "),r.Vb()),2&e){const e=r.gc(2);r.mc("ngStyle",e.bodyStyleMap),r.Eb(3),r.mc("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("contentTemplate",e.contentTemplate)}}function ab(e,t){}const cb=function(e,t){return{$implicit:e,index:t}};function lb(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,ab,0,0,"ng-template",13),r.Gc(3,"\n "),r.Tb()),2&e){const e=t.$implicit,n=t.index,i=r.gc(3);r.Eb(2),r.mc("ngTemplateOutlet",i.virtualTemplate)("ngTemplateOutletContext",r.qc(2,cb,e,n))}}function ub(e,t){if(1&e&&(r.Wb(0,"cdk-virtual-scroll-viewport",10,8),r.Gc(2,"\n "),r.Wb(3,"table",11),r.Gc(4,"\n "),r.Wb(5,"tbody"),r.Gc(6,"\n "),r.Ec(7,lb,4,5,"ng-container",12),r.Gc(8,"\n "),r.Vb(),r.Gc(9,"\n "),r.Vb(),r.Gc(10,"\n "),r.Vb()),2&e){const e=r.gc(2);r.Bc("height",e.data.length?e.scrollY:e.noDateVirtualHeight),r.mc("itemSize",e.virtualItemSize)("maxBufferPx",e.virtualMaxBufferPx)("minBufferPx",e.virtualMinBufferPx),r.Eb(3),r.mc("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth),r.Eb(4),r.mc("cdkVirtualForOf",e.data)("cdkVirtualForTrackBy",e.virtualForTrackBy)}}function hb(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"div",2,3),r.Gc(4,"\n "),r.Rb(5,"table",4),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Ec(8,sb,5,4,"div",5),r.Gc(9,"\n "),r.Ec(10,ub,11,9,"cdk-virtual-scroll-viewport",6),r.Gc(11,"\n "),r.Tb()),2&e){const e=r.gc();r.Eb(2),r.mc("ngStyle",e.headerStyleMap),r.Eb(3),r.mc("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate),r.Eb(3),r.mc("ngIf",!e.virtualTemplate),r.Eb(2),r.mc("ngIf",e.virtualTemplate)}}function db(e,t){if(1&e&&(r.Wb(0,"div",14,8),r.Gc(2,"\n "),r.Rb(3,"table",15),r.Gc(4,"\n "),r.Vb()),2&e){const e=r.gc();r.mc("ngStyle",e.bodyStyleMap),r.Eb(3),r.mc("scrollX",e.scrollX)("listOfColWidth",e.listOfColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",e.contentTemplate)}}function pb(e,t){}function fb(e,t){if(1&e&&(r.Ub(0),r.Ec(1,pb,0,0,"ng-template",10),r.Tb()),2&e){r.gc();const e=r.tc(11);r.Eb(1),r.mc("ngTemplateOutlet",e)}}function gb(e,t){if(1&e&&r.Rb(0,"nz-table-title-footer",11),2&e){const e=r.gc();r.mc("title",e.nzTitle)}}function mb(e,t){if(1&e&&r.Rb(0,"nz-table-inner-scroll",12),2&e){const e=r.gc(),t=r.tc(13),n=r.tc(3);r.mc("data",e.data)("scrollX",e.scrollX)("scrollY",e.scrollY)("contentTemplate",t)("listOfColWidth",e.listOfAutoColWidth)("theadTemplate",e.theadTemplate)("verticalScrollBarWidth",e.verticalScrollBarWidth)("virtualTemplate",e.nzVirtualScrollDirective?e.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",e.nzVirtualItemSize)("virtualMaxBufferPx",e.nzVirtualMaxBufferPx)("virtualMinBufferPx",e.nzVirtualMinBufferPx)("tableMainElement",n)("virtualForTrackBy",e.nzVirtualForTrackBy)}}function bb(e,t){if(1&e&&r.Rb(0,"nz-table-inner-default",13),2&e){const e=r.gc(),t=r.tc(13);r.mc("tableLayout",e.nzTableLayout)("listOfColWidth",e.listOfManualColWidth)("theadTemplate",e.theadTemplate)("contentTemplate",t)}}function vb(e,t){if(1&e&&r.Rb(0,"nz-table-title-footer",14),2&e){const e=r.gc();r.mc("footer",e.nzFooter)}}function yb(e,t){}function wb(e,t){if(1&e&&(r.Ub(0),r.Ec(1,yb,0,0,"ng-template",10),r.Tb()),2&e){r.gc();const e=r.tc(11);r.Eb(1),r.mc("ngTemplateOutlet",e)}}function _b(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-pagination",16),r.dc("nzPageSizeChange",function(t){return r.wc(e),r.gc(2).onPageSizeChange(t)})("nzPageIndexChange",function(t){return r.wc(e),r.gc(2).onPageIndexChange(t)}),r.Vb()}if(2&e){const e=r.gc(2);r.mc("hidden",!e.showPagination)("nzShowSizeChanger",e.nzShowSizeChanger)("nzPageSizeOptions",e.nzPageSizeOptions)("nzItemRender",e.nzItemRender)("nzShowQuickJumper",e.nzShowQuickJumper)("nzHideOnSinglePage",e.nzHideOnSinglePage)("nzShowTotal",e.nzShowTotal)("nzSize","small"===e.nzPaginationType?"small":"default"===e.nzSize?"default":"small")("nzPageSize",e.nzPageSize)("nzTotal",e.nzTotal)("nzSimple",e.nzSimple)("nzPageIndex",e.nzPageIndex)}}function Ob(e,t){if(1&e&&r.Ec(0,_b,1,12,"nz-pagination",15),2&e){const e=r.gc();r.mc("ngIf",e.nzShowPagination&&e.data.length)}}function Cb(e,t){1&e&&r.kc(0)}function Eb(e,t){if(1&e){const e=r.Xb();r.Wb(0,"tr",3),r.dc("listOfAutoWidth",function(t){return r.wc(e),r.gc(2).onListOfAutoWidthChange(t)}),r.Vb()}if(2&e){const e=r.gc().ngIf;r.mc("listOfMeasureColumn",e)}}function Sb(e,t){if(1&e&&(r.Ub(0),r.Ec(1,Eb,1,1,"tr",2),r.Tb()),2&e){const e=t.ngIf,n=r.gc();r.Eb(1),r.mc("ngIf",n.isInsideTable&&e.length)}}function Tb(e,t){if(1&e&&(r.Wb(0,"tr",4),r.Rb(1,"nz-embed-empty",5),r.hc(2,"async"),r.Vb()),2&e){const e=r.gc();r.Eb(1),r.mc("specificContent",r.ic(2,1,e.noResult$))}}const xb=["contentTemplate"];function kb(e,t){1&e&&(r.Gc(0,"\n "),r.kc(1),r.Gc(2,"\n "))}function Ib(e,t){}function Db(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,Ib,0,0,"ng-template",2),r.Gc(3,"\n "),r.Tb()),2&e){r.gc();const e=r.tc(2);r.Eb(2),r.mc("ngTemplateOutlet",e)}}function zb(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Hc(e.title)}}function jb(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Hc(e.footer)}}const Ab=["nz-table-measure-row",""];function Rb(e,t){1&e&&r.Rb(0,"td",1,2)}let Nb=(()=>{class e{constructor(e,t){this.cdr=e,this.elementRef=t,this.nzActive=!1,this.nzVisible=!1,this.nzHasBackdrop=!1,this.nzVisibleChange=new r.n,this.elementRef.nativeElement.classList.add("ant-table-filter-trigger-container")}onVisibleChange(e){this.nzVisible=e,this.nzVisibleChange.next(e)}onFilterClick(e){e.stopPropagation()}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-filter-trigger"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-table-filter-trigger-container-open",t.nzVisible)},inputs:{nzActive:"nzActive",nzVisible:"nzVisible",nzHasBackdrop:"nzHasBackdrop",nzDropdownMenu:"nzDropdownMenu"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],ngContentSelectors:Dm,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzHasBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange","click"]],template:function(e,t){1&e&&(r.lc(),r.Wb(0,"span",0),r.dc("nzVisibleChange",function(e){return t.onVisibleChange(e)})("click",function(e){return t.onFilterClick(e)}),r.kc(1),r.Vb()),2&e&&(r.Ib("active",t.nzActive)("ant-table-filter-open",t.nzVisible),r.mc("nzHasBackdrop",t.nzHasBackdrop)("nzClickHide",!1)("nzDropdownMenu",t.nzDropdownMenu)("nzVisible",t.nzVisible))},directives:[Sr.a],encapsulation:2,changeDetection:0}),e})(),Lb=(()=>{class e{constructor(e,t,n){this.cdr=e,this.i18n=t,this.elementRef=n,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new r.n,this.destroy$=new fe.a,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[],this.elementRef.nativeElement.classList.add("ant-table-filter-column")}trackByValue(e,t){return t.value}check(e){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(t=>t===e?Object.assign(Object.assign({},t),{checked:!e.checked}):t),e.checked=!e.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(t=>Object.assign(Object.assign({},t),{checked:t===e})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(e){this.isVisible=e,e?this.listOfChecked=this.listOfParsedFilter.filter(e=>e.checked).map(e=>e.value):this.emitFilterData()}emitFilterData(){const e=this.listOfParsedFilter.filter(e=>e.checked).map(e=>e.value);Object(_e.c)(this.listOfChecked,e)||this.filterChange.emit(this.filterMultiple?e:e.length>0?e[0]:null)}parseListOfFilter(e,t){return e.map(e=>({text:e.text,value:e.value,checked:!t&&!!e.byDefault}))}getCheckedStatus(e){return e.some(e=>e.checked)}ngOnInit(){this.i18n.localeChange.pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(e){const{listOfFilter:t}=e;t&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h),r.Qb(ms),r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-table-filter"]],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[r.Cb],decls:3,vars:3,consts:[[1,"ant-table-filter-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(r.Wb(0,"span",0),r.Ec(1,zm,0,0,"ng-template",1),r.Vb(),r.Ec(2,Nm,13,8,"ng-container",2)),2&e&&(r.Eb(1),r.mc("ngTemplateOutlet",t.contentTemplate),r.Eb(1),r.mc("ngIf",!t.customFilter)("ngIfElse",t.extraTemplate))},directives:[o.t,o.o,Nb,Ki.a,Ge.a,Sr.c,Ve.c,o.n,ys.a,Cs.a,Ve.e,km,ya.l,ya.o,gg],encapsulation:2,changeDetection:0}),e})(),Mb=(()=>{class e{constructor(e){this.elementRef=e,this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1,this.elementRef.nativeElement.classList.add("ant-table-column-sorters")}ngOnChanges(e){const{sortDirections:t}=e;t&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-table-sorters"]],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[r.Cb],decls:6,vars:5,consts:[[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(e,t){1&e&&(r.Wb(0,"span"),r.Ec(1,Lm,0,0,"ng-template",0),r.Vb(),r.Wb(2,"span",1),r.Wb(3,"span",2),r.Ec(4,Mm,1,2,"i",3),r.Ec(5,Fm,1,2,"i",4),r.Vb(),r.Vb()),2&e&&(r.Eb(1),r.mc("ngTemplateOutlet",t.contentTemplate),r.Eb(1),r.Ib("ant-table-column-sorter-full",t.isDown&&t.isUp),r.Eb(2),r.mc("ngIf",t.isUp),r.Eb(1),r.mc("ngIf",t.isDown))},directives:[o.t,o.o,Ki.a,Ge.a],encapsulation:2,changeDetection:0}),e})(),Fb=(()=>{class e{constructor(e,t){this.renderer=e,this.elementRef=t,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new fe.a,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(e){this.renderer.setStyle(this.elementRef.nativeElement,"left",e)}setAutoRightWidth(e){this.renderer.setStyle(this.elementRef.nativeElement,"right",e)}setIsFirstRight(e){this.setFixClass(e,"ant-table-cell-fix-right-first")}setIsLastLeft(e){this.setFixClass(e,"ant-table-cell-fix-left-last")}setFixClass(e,t){this.renderer.removeClass(this.elementRef.nativeElement,t),e&&this.renderer.addClass(this.elementRef.nativeElement,t)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const e=e=>"string"==typeof e&&""!==e?e:null;this.setAutoLeftWidth(e(this.nzLeft)),this.setAutoRightWidth(e(this.nzRight)),this.changes$.next()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.G),r.Qb(r.l))},e.\u0275dir=r.Lb({type:e,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(e,t){2&e&&(r.Bc("position",t.isFixed?"sticky":null),r.Ib("ant-table-cell-fix-right",t.isFixedRight)("ant-table-cell-fix-left",t.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[r.Cb]}),e})(),Pb=(()=>{class e{constructor(){this.theadTemplate$=new cc.a(1),this.hasFixLeft$=new cc.a(1),this.hasFixRight$=new cc.a(1),this.hostWidth$=new cc.a(1),this.columnCount$=new cc.a(1),this.showEmpty$=new cc.a(1),this.noResult$=new cc.a(1),this.listOfThWidthConfigPx$=new cs.a([]),this.tableWidthConfigPx$=new cs.a([]),this.manualWidthConfigPx$=Object(Se.a)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe(Object(c.a)(([e,t])=>e.length?e:t)),this.listOfAutoWidthPx$=new cc.a(1),this.listOfListOfThWidthPx$=Object(Gc.a)(this.manualWidthConfigPx$,Object(Se.a)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe(Object(c.a)(([e,t])=>e.length===t.length?e.map((e,n)=>"0px"===e?t[n]||null:t[n]||e):t))),this.listOfMeasureColumn$=new cc.a(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe(Object(c.a)(e=>e.map(e=>parseInt(e,10)))),this.enableAutoMeasure$=new cc.a(1)}setTheadTemplate(e){this.theadTemplate$.next(e)}setHasFixLeft(e){this.hasFixLeft$.next(e)}setHasFixRight(e){this.hasFixRight$.next(e)}setTableWidthConfig(e){this.tableWidthConfigPx$.next(e)}setListOfTh(e){let t=0;e.forEach(e=>{t+=e.colspan&&+e.colspan||e.colSpan&&+e.colSpan||1});const n=e.map(e=>e.nzWidth);this.columnCount$.next(t),this.listOfThWidthConfigPx$.next(n)}setListOfMeasureColumn(e){const t=[];e.forEach(e=>{const n=e.colspan&&+e.colspan||e.colSpan&&+e.colSpan||1;for(let i=0;i`${e}px`))}setShowEmpty(e){this.showEmpty$.next(e)}setNoResult(e){this.noResult$.next(e)}setScroll(e,t){const n=!(!e&&!t);n||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(n)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),Vb=(()=>{class e{constructor(e){this.isInsideTable=!1,this.isInsideTable=!!e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Pb,8))},e.\u0275dir=r.Lb({type:e,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-table-cell",t.isInsideTable)}}),e})(),Gb=(()=>{class e{constructor(e){this.cdr=e,this.manualClickOrder$=new fe.a,this.calcOperatorChange$=new fe.a,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new fe.a,this.destroy$=new fe.a,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new r.n,this.nzSortOrderChange=new r.n,this.nzFilterChange=new r.n}getNextSortDirection(e,t){const n=e.indexOf(t);return n===e.length-1?e[0]:e[n+1]}emitNextSortValue(){if(this.nzShowSort){const e=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(e),this.manualClickOrder$.next(this)}}setSortOrder(e){this.sortOrderChange$.next(e)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(e){this.nzFilterChange.emit(e),this.nzFilterValue=e,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.sortOrder!==e&&(this.sortOrder=e,this.nzSortOrderChange.emit(e)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(e){const{nzSortDirections:t,nzFilters:n,nzSortOrder:i,nzSortFn:r,nzFilterFn:o,nzSortPriority:s,nzFilterMultiple:a,nzShowSort:c,nzShowFilter:l}=e;t&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),i&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),c&&(this.isNzShowSortChanged=!0),l&&(this.isNzShowFilterChanged=!0);const u=e=>e&&e.firstChange&&void 0!==e.currentValue;if(!u(i)&&!u(r)||this.isNzShowSortChanged||(this.nzShowSort=!0),u(n)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(n||a)&&this.nzShowFilter){const e=this.nzFilters.filter(e=>e.byDefault).map(e=>e.value);this.nzFilterValue=this.nzFilterMultiple?e:e[0]||null}(r||o||s||n)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.h))},e.\u0275cmp=r.Kb({type:e,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(e,t){1&e&&r.dc("click",function(){return t.emitNextSortValue()}),2&e&&r.Ib("ant-table-column-has-sorters",t.nzShowSort)("ant-table-column-sort","descend"===t.sortOrder||"ascend"===t.sortOrder)},inputs:{nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter",nzColumnKey:"nzColumnKey"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[r.Cb],attrs:Pm,ngContentSelectors:qm,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(e,t){if(1&e&&(r.lc(Hm),r.Ec(0,Vm,1,5,"nz-table-filter",0),r.Ec(1,Bm,1,1,"ng-template",null,1,r.Fc),r.Ec(3,Wm,2,0,"ng-template",null,2,r.Fc),r.Ec(5,$m,1,3,"ng-template",null,3,r.Fc),r.Ec(7,Um,1,0,"ng-template",null,4,r.Fc)),2&e){const e=r.tc(2);r.mc("ngIf",t.nzShowFilter||t.nzCustomFilter)("ngIfElse",e)}},directives:[o.o,Lb,o.t,Mb],encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzShowSort",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzShowFilter",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzCustomFilter",void 0),e})(),Bb=(()=>{class e{constructor(e,t){this.renderer=e,this.elementRef=t,this.changes$=new fe.a,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(e){const{nzWidth:t,colspan:n,rowspan:i,colSpan:r,rowSpan:o}=e;if(n||r){const e=this.colspan||this.colSpan;Object(_e.g)(e)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${e}`)}if(i||o){const e=this.rowspan||this.rowSpan;Object(_e.g)(e)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${e}`)}(t||n)&&this.changes$.next()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.G),r.Qb(r.l))},e.\u0275dir=r.Lb({type:e,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[r.Cb]}),e})(),Wb=(()=>{class e{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(e,t){2&e&&(r.Bc("table-layout",t.tableLayout)("width",t.scrollX)("min-width",t.scrollX?"100%":null),r.Ib("ant-table-fixed",t.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Qm,ngContentSelectors:Dm,decls:9,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(e,t){1&e&&(r.lc(),r.Gc(0,"\n "),r.Ec(1,Km,1,4,"col",0),r.Gc(2,"\n "),r.Ec(3,Ym,4,1,"thead",1),r.Gc(4,"\n "),r.Ec(5,Jm,0,0,"ng-template",2),r.Gc(6,"\n "),r.kc(7),r.Gc(8,"\n ")),2&e&&(r.Eb(1),r.mc("ngForOf",t.listOfColWidth),r.Eb(2),r.mc("ngIf",t.theadTemplate),r.Eb(2),r.mc("ngTemplateOutlet",t.contentTemplate))},directives:[o.n,o.o,o.t],encapsulation:2,changeDetection:0}),e})(),$b=(()=>{class e{constructor(e,t){this.nzTableStyleService=e,this.renderer=t,this.hostWidth$=new cs.a(null),this.enableAutoMeasure$=new cs.a(!1),this.destroy$=new fe.a}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:e,hostWidth$:t}=this.nzTableStyleService;e.pipe(Object(ge.a)(this.destroy$)).subscribe(this.enableAutoMeasure$),t.subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${e}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Pb),r.Qb(r.G))},e.\u0275cmp=r.Kb({type:e,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(e,t){if(1&e&&r.Kc(Zm,1),2&e){let e;r.sc(e=r.ec())&&(t.tdElement=e.first)}},attrs:eb,ngContentSelectors:Dm,decls:11,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(e,t){if(1&e&&(r.lc(),r.Gc(0,"\n "),r.Wb(1,"td",0,1),r.Gc(3,"\n "),r.Ec(4,nb,5,5,"div",2),r.hc(5,"async"),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Ec(8,ib,1,0,"ng-template",null,3,r.Fc),r.Gc(10,"\n ")),2&e){const e=r.tc(9);r.Eb(4),r.mc("ngIf",r.ic(5,2,t.enableAutoMeasure$))("ngIfElse",e)}},directives:[o.o,o.t],pipes:[o.b],encapsulation:2,changeDetection:0}),e})(),Ub=(()=>{class e{constructor(e){this.elementRef=e,this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null,this.elementRef.nativeElement.classList.add("ant-table-container")}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-table-inner-default"]],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:6,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",0),r.Gc(2,"\n "),r.Rb(3,"table",1),r.Gc(4,"\n "),r.Vb(),r.Gc(5,"\n ")),2&e&&(r.Eb(3),r.mc("contentTemplate",t.contentTemplate)("tableLayout",t.tableLayout)("listOfColWidth",t.listOfColWidth)("theadTemplate",t.theadTemplate))},directives:[Wb],encapsulation:2,changeDetection:0}),e})(),Hb=(()=>{class e{constructor(e,t,n,i,r){this.renderer=e,this.ngZone=t,this.platform=n,this.resizeService=i,this.elementRef=r,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=e=>e,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new fe.a,this.scroll$=new fe.a,this.destroy$=new fe.a,this.elementRef.nativeElement.classList.add("ant-table-container")}setScrollPositionClassName(e=!1){const{scrollWidth:t,scrollLeft:n,clientWidth:i}=this.tableBodyElement.nativeElement;t===i&&0!==t||e?(this.renderer.removeClass(this.tableMainElement,"ant-table-ping-left"),this.renderer.removeClass(this.tableMainElement,"ant-table-ping-right")):0===n?(this.renderer.removeClass(this.tableMainElement,"ant-table-ping-left"),this.renderer.addClass(this.tableMainElement,"ant-table-ping-right")):t===n+i?(this.renderer.removeClass(this.tableMainElement,"ant-table-ping-right"),this.renderer.addClass(this.tableMainElement,"ant-table-ping-left")):(this.renderer.addClass(this.tableMainElement,"ant-table-ping-left"),this.renderer.addClass(this.tableMainElement,"ant-table-ping-right"))}ngOnChanges(e){const{scrollX:t,scrollY:n,data:i}=e;if(t||n){const e=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&e?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}i&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const e=this.scroll$.pipe(Object(we.a)(null),Yc(0),Object(u.a)(()=>Object(Wp.a)(this.tableBodyElement.nativeElement,"scroll").pipe(Object(we.a)(!0))),Object(ge.a)(this.destroy$)),t=this.resizeService.subscribe().pipe(Object(ge.a)(this.destroy$)),n=this.data$.pipe(Object(ge.a)(this.destroy$));Object(Gc.a)(e,t,n,this.scroll$).pipe(Object(we.a)(!0),Yc(0),Object(ge.a)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),e.pipe(Object(p.a)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.G),r.Qb(r.B),r.Qb(be.a),r.Qb(Ne),r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-table-inner-scroll"]],viewQuery:function(e,t){if(1&e&&(r.Kc(rb,1,r.l),r.Kc(ob,1,r.l),r.Kc(Sl.d,1,Sl.d)),2&e){let e;r.sc(e=r.ec())&&(t.tableHeaderElement=e.first),r.sc(e=r.ec())&&(t.tableBodyElement=e.first),r.sc(e=r.ec())&&(t.cdkVirtualScrollViewport=e.first)}},inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth",tableMainElement:"tableMainElement"},features:[r.Cb],decls:5,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,hb,12,6,"ng-container",0),r.Gc(2,"\n "),r.Ec(3,db,5,5,"div",1),r.Gc(4,"\n ")),2&e&&(r.Eb(1),r.mc("ngIf",t.scrollY),r.Eb(2),r.mc("ngIf",!t.scrollY))},directives:function(){return[o.o,o.p,Wb,Sl.d,Sl.a,Xb,Sl.c,o.t]},encapsulation:2,changeDetection:0}),e})(),qb=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.O))},e.\u0275dir=r.Lb({type:e,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),e})(),Qb=(()=>{class e{constructor(){this.destroy$=new fe.a,this.pageIndex$=new cs.a(1),this.frontPagination$=new cs.a(!0),this.pageSize$=new cs.a(10),this.listOfData$=new cs.a([]),this.pageIndexDistinct$=this.pageIndex$.pipe(Object(a.a)()),this.pageSizeDistinct$=this.pageSize$.pipe(Object(a.a)()),this.listOfCalcOperator$=new cs.a([]),this.queryParams$=Object(Se.a)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe(Object(ke.a)(0),Object(xe.a)(1),Object(c.a)(([e,t,n])=>({pageIndex:e,pageSize:t,sort:n.filter(e=>e.sortFn).map(e=>({key:e.key,value:e.sortOrder})),filter:n.filter(e=>e.filterFn).map(e=>({key:e.key,value:e.filterValue}))}))),this.listOfDataAfterCalc$=Object(Se.a)([this.listOfData$,this.listOfCalcOperator$]).pipe(Object(c.a)(([e,t])=>{let n=[...e];const i=t.filter(e=>{const{filterValue:t,filterFn:n}=e;return!(null==t||Array.isArray(t)&&0===t.length)&&"function"==typeof n});for(const o of i){const{filterFn:e,filterValue:t}=o;n=n.filter(n=>e(t,n))}const r=t.filter(e=>null!==e.sortOrder&&"function"==typeof e.sortFn).sort((e,t)=>+t.sortPriority-+e.sortPriority);return t.length&&n.sort((e,t)=>{for(const n of r){const{sortFn:i,sortOrder:r}=n;if(i&&r){const n=i(e,t,r);if(0!==n)return"ascend"===r?n:-n}}return 0}),n})),this.listOfFrontEndCurrentPageData$=Object(Se.a)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe(Object(ge.a)(this.destroy$),Object(p.a)(e=>{const[t,n,i]=e;return t<=(Math.ceil(i.length/n)||1)}),Object(c.a)(([e,t,n])=>n.slice((e-1)*t,e*t))),this.listOfCurrentPageData$=this.frontPagination$.pipe(Object(u.a)(e=>e?this.listOfFrontEndCurrentPageData$:this.listOfData$)),this.total$=this.frontPagination$.pipe(Object(u.a)(e=>e?this.listOfDataAfterCalc$:this.listOfData$),Object(c.a)(e=>e.length),Object(a.a)())}updatePageSize(e){this.pageSize$.next(e)}updateFrontPagination(e){this.frontPagination$.next(e)}updatePageIndex(e){this.pageIndex$.next(e)}updateListOfData(e){this.listOfData$.next(e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),Kb=(()=>{class e{constructor(e,t,n,i,o,s,a){this.elementRef=e,this.nzResizeObserver=t,this.nzConfigService=n,this.cdr=i,this.nzTableStyleService=o,this.nzTableDataService=s,this.directionality=a,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=e=>e,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new r.n,this.nzPageIndexChange=new r.n,this.nzQueryParams=new r.n,this.nzCurrentPageDataChange=new r.n,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new fe.a,this.loading$=new cs.a(!1),this.templateMode$=new cs.a(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.elementRef.nativeElement.classList.add("ant-table-wrapper"),this.nzConfigService.getConfigChangeEventForComponent("table").pipe(Object(ge.a)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(e){this.nzTableDataService.updatePageSize(e)}onPageIndexChange(e){this.nzTableDataService.updatePageIndex(e)}ngOnInit(){var e;const{pageIndexDistinct$:t,pageSizeDistinct$:n,listOfCurrentPageData$:i,total$:r,queryParams$:o}=this.nzTableDataService,{theadTemplate$:s,hasFixLeft$:a,hasFixRight$:l}=this.nzTableStyleService;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),o.pipe(Object(ge.a)(this.destroy$)).subscribe(this.nzQueryParams),t.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{e!==this.nzPageIndex&&(this.nzPageIndex=e,this.nzPageIndexChange.next(e))}),n.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{e!==this.nzPageSize&&(this.nzPageSize=e,this.nzPageSizeChange.next(e))}),r.pipe(Object(ge.a)(this.destroy$),Object(p.a)(()=>this.nzFrontPagination)).subscribe(e=>{e!==this.nzTotal&&(this.nzTotal=e,this.cdr.markForCheck())}),i.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.data=e,this.nzCurrentPageDataChange.next(e),this.cdr.markForCheck()}),s.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.theadTemplate=e,this.cdr.markForCheck()}),a.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.hasFixLeft=e,this.cdr.markForCheck()}),l.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.hasFixRight=e,this.cdr.markForCheck()}),Object(Se.a)([r,this.loading$,this.templateMode$]).pipe(Object(c.a)(([e,t,n])=>0===e&&!t&&!n),Object(ge.a)(this.destroy$)).subscribe(e=>{this.nzTableStyleService.setShowEmpty(e)}),this.verticalScrollBarWidth=Object(_e.l)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.listOfAutoColWidth=e,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe(Object(ge.a)(this.destroy$)).subscribe(e=>{this.listOfManualColWidth=e,this.cdr.markForCheck()})}ngOnChanges(e){const{nzScroll:t,nzPageIndex:n,nzPageSize:i,nzFrontPagination:r,nzData:o,nzWidthConfig:s,nzNoResult:a,nzLoading:c,nzTemplateMode:l}=e;n&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),i&&this.nzTableDataService.updatePageSize(this.nzPageSize),o&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),r&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),t&&this.setScrollOnChanges(),s&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),c&&this.loading$.next(this.nzLoading),l&&this.templateMode$.next(this.nzTemplateMode),a&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe(Object(c.a)(([e])=>{const{width:t}=e.target.getBoundingClientRect();return Math.floor(t-(this.scrollY?this.verticalScrollBarWidth:0))}),Object(ge.a)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(pf),r.Qb(Os.a),r.Qb(r.h),r.Qb(Pb),r.Qb(Qb),r.Qb(pe.b,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-table"]],contentQueries:function(e,t,n){if(1&e&&r.Jb(n,qb,1),2&e){let e;r.sc(e=r.ec())&&(t.nzVirtualScrollDirective=e.first)}},viewQuery:function(e,t){if(1&e&&r.Kc(Hb,1),2&e){let e;r.sc(e=r.ec())&&(t.nzTableInnerScrollComponent=e.first)}},hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-table-wrapper-rtl","rtl"===t.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[r.Db([Pb,Qb]),r.Cb],ngContentSelectors:Dm,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(e,t){if(1&e&&(r.lc(),r.Wb(0,"nz-spin",0),r.Ec(1,fb,2,1,"ng-container",1),r.Wb(2,"div",2,3),r.Ec(4,gb,1,1,"nz-table-title-footer",4),r.Ec(5,mb,1,13,"nz-table-inner-scroll",5),r.Ec(6,bb,1,4,"ng-template",null,6,r.Fc),r.Ec(8,vb,1,1,"nz-table-title-footer",7),r.Vb(),r.Ec(9,wb,2,1,"ng-container",1),r.Vb(),r.Ec(10,Ob,1,1,"ng-template",null,8,r.Fc),r.Ec(12,Cb,1,0,"ng-template",null,9,r.Fc)),2&e){const e=r.tc(7);r.mc("nzDelay",t.nzLoadingDelay)("nzSpinning",t.nzLoading)("nzIndicator",t.nzLoadingIndicator),r.Eb(1),r.mc("ngIf","both"===t.nzPaginationPosition||"top"===t.nzPaginationPosition),r.Eb(1),r.Ib("ant-table-rtl","rtl"===t.dir)("ant-table-fixed-header",t.nzData.length&&t.scrollY)("ant-table-fixed-column",t.scrollX)("ant-table-has-fix-left",t.hasFixLeft)("ant-table-has-fix-right",t.hasFixRight)("ant-table-bordered",t.nzBordered)("nz-table-out-bordered",t.nzOuterBordered&&!t.nzBordered)("ant-table-middle","middle"===t.nzSize)("ant-table-small","small"===t.nzSize),r.Eb(2),r.mc("ngIf",t.nzTitle),r.Eb(1),r.mc("ngIf",t.scrollY||t.scrollX)("ngIfElse",e),r.Eb(3),r.mc("ngIf",t.nzFooter),r.Eb(1),r.mc("ngIf","both"===t.nzPaginationPosition||"bottom"===t.nzPaginationPosition)}},directives:function(){return[mh,o.o,o.t,Zb,Hb,Ub,bm]},encapsulation:2,changeDetection:0}),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzFrontPagination",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzTemplateMode",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzShowPagination",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzLoading",void 0),Object(me.b)([Object(_e.a)(),Object(me.c)("design:type",Object)],e.prototype,"nzOuterBordered",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",Object)],e.prototype,"nzLoadingIndicator",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzBordered",void 0),Object(me.b)([Object(Os.b)(),Object(me.c)("design:type",String)],e.prototype,"nzSize",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzShowSizeChanger",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzHideOnSinglePage",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzShowQuickJumper",void 0),Object(me.b)([Object(Os.b)(),Object(_e.a)(),Object(me.c)("design:type",Boolean)],e.prototype,"nzSimple",void 0),e})(),Xb=(()=>{class e{constructor(e){if(this.nzTableStyleService=e,this.isInsideTable=!1,this.showEmpty$=new cs.a(!1),this.noResult$=new cs.a(void 0),this.listOfMeasureColumn$=new cs.a([]),this.destroy$=new fe.a,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:e,noResult$:t,listOfMeasureColumn$:n}=this.nzTableStyleService;t.pipe(Object(ge.a)(this.destroy$)).subscribe(this.noResult$),n.pipe(Object(ge.a)(this.destroy$)).subscribe(this.listOfMeasureColumn$),e.pipe(Object(ge.a)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(e){this.nzTableStyleService.setListOfAutoWidth(e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Pb,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["tbody"]],hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-table-tbody",t.isInsideTable)},ngContentSelectors:Dm,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(e,t){1&e&&(r.lc(),r.Ec(0,Sb,2,1,"ng-container",0),r.hc(1,"async"),r.kc(2),r.Ec(3,Tb,3,3,"tr",1),r.hc(4,"async")),2&e&&(r.mc("ngIf",r.ic(1,2,t.listOfMeasureColumn$)),r.Eb(3),r.mc("ngIf",r.ic(4,4,t.showEmpty$)))},directives:function(){return[o.o,ev,$b,Wl]},pipes:function(){return[o.b]},encapsulation:2,changeDetection:0}),e})(),Yb=(()=>{class e{constructor(e){this.nzTableStyleService=e,this.destroy$=new fe.a,this.listOfFixedColumns$=new cc.a(1),this.listOfColumns$=new cc.a(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe(Object(u.a)(e=>Object(Gc.a)(this.listOfFixedColumns$,...e.map(e=>e.changes$)).pipe(Object(Wc.a)(()=>this.listOfFixedColumns$))),Object(ge.a)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Object(c.a)(e=>e.filter(e=>!1!==e.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe(Object(c.a)(e=>e.filter(e=>!1!==e.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe(Object(u.a)(e=>Object(Gc.a)(this.listOfColumns$,...e.map(e=>e.changes$)).pipe(Object(Wc.a)(()=>this.listOfColumns$))),Object(ge.a)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!e}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe(Object(we.a)(this.listOfCellFixedDirective),Object(ge.a)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe(Object(we.a)(this.listOfNzThDirective),Object(ge.a)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(e=>{e.forEach(t=>t.setIsLastLeft(t===e[e.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(e=>{e.forEach(t=>t.setIsFirstRight(t===e[0]))}),Object(Se.a)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe(Object(ge.a)(this.destroy$)).subscribe(([e,t])=>{t.forEach((n,i)=>{if(n.isAutoLeft){const r=t.slice(0,i).reduce((e,t)=>e+(t.colspan||t.colSpan||1),0),o=e.slice(0,r).reduce((e,t)=>e+t,0);n.setAutoLeftWidth(`${o}px`)}})}),Object(Se.a)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe(Object(ge.a)(this.destroy$)).subscribe(([e,t])=>{t.forEach((n,i)=>{const r=t[t.length-i-1];if(r.isAutoRight){const n=t.slice(t.length-i,t.length).reduce((e,t)=>e+(t.colspan||t.colSpan||1),0),o=e.slice(e.length-n,e.length).reduce((e,t)=>e+t,0);r.setAutoRightWidth(`${o}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(Pb,8))},e.\u0275dir=r.Lb({type:e,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(e,t,n){if(1&e&&(r.Jb(n,Bb,0),r.Jb(n,Fb,0)),2&e){let e;r.sc(e=r.ec())&&(t.listOfNzThDirective=e),r.sc(e=r.ec())&&(t.listOfCellFixedDirective=e)}},hostVars:2,hostBindings:function(e,t){2&e&&r.Ib("ant-table-row",t.isInsideTable)}}),e})(),Jb=(()=>{class e{constructor(e,t,n,i){this.elementRef=e,this.renderer=t,this.nzTableStyleService=n,this.nzTableDataService=i,this.destroy$=new fe.a,this.isInsideTable=!1,this.nzSortOrderChange=new r.n,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const e=this.listOfNzTrDirective.changes.pipe(Object(we.a)(this.listOfNzTrDirective),Object(c.a)(e=>e&&e.first)),t=e.pipe(Object(u.a)(e=>e?e.listOfColumnsChanges$:Bc.a),Object(ge.a)(this.destroy$));t.subscribe(e=>this.nzTableStyleService.setListOfTh(e)),this.nzTableStyleService.enableAutoMeasure$.pipe(Object(u.a)(e=>e?t:Object(v.a)([]))).pipe(Object(ge.a)(this.destroy$)).subscribe(e=>this.nzTableStyleService.setListOfMeasureColumn(e));const n=e.pipe(Object(u.a)(e=>e?e.listOfFixedLeftColumnChanges$:Bc.a),Object(ge.a)(this.destroy$)),i=e.pipe(Object(u.a)(e=>e?e.listOfFixedRightColumnChanges$:Bc.a),Object(ge.a)(this.destroy$));n.subscribe(e=>{this.nzTableStyleService.setHasFixLeft(0!==e.length)}),i.subscribe(e=>{this.nzTableStyleService.setHasFixRight(0!==e.length)})}if(this.nzTableDataService){const e=this.listOfNzThAddOnComponent.changes.pipe(Object(we.a)(this.listOfNzThAddOnComponent));e.pipe(Object(u.a)(()=>Object(Gc.a)(...this.listOfNzThAddOnComponent.map(e=>e.manualClickOrder$))),Object(ge.a)(this.destroy$)).subscribe(e=>{this.nzSortOrderChange.emit({key:e.nzColumnKey,value:e.sortOrder}),e.nzSortFn&&!1===e.nzSortPriority&&this.listOfNzThAddOnComponent.filter(t=>t!==e).forEach(e=>e.clearSortOrder())}),e.pipe(Object(u.a)(t=>Object(Gc.a)(e,...t.map(e=>e.calcOperatorChange$)).pipe(Object(Wc.a)(()=>e))),Object(c.a)(e=>e.filter(e=>!!e.nzSortFn||!!e.nzFilterFn).map(e=>{const{nzSortFn:t,sortOrder:n,nzFilterFn:i,nzFilterValue:r,nzSortPriority:o,nzColumnKey:s}=e;return{key:s,sortFn:t,sortPriority:o,sortOrder:n,filterFn:i,filterValue:r}})),Yc(0),Object(ge.a)(this.destroy$)).subscribe(e=>{this.nzTableDataService.listOfCalcOperator$.next(e)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(r.l),r.Qb(r.G),r.Qb(Pb,8),r.Qb(Qb,8))},e.\u0275cmp=r.Kb({type:e,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(e,t,n){if(1&e&&(r.Jb(n,Yb,1),r.Jb(n,Gb,1)),2&e){let e;r.sc(e=r.ec())&&(t.listOfNzTrDirective=e),r.sc(e=r.ec())&&(t.listOfNzThAddOnComponent=e)}},viewQuery:function(e,t){if(1&e&&r.Kc(xb,3),2&e){let e;r.sc(e=r.ec())&&(t.templateRef=e.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Dm,decls:6,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(e,t){1&e&&(r.lc(),r.Gc(0,"\n "),r.Ec(1,kb,3,0,"ng-template",null,0,r.Fc),r.Gc(3,"\n "),r.Ec(4,Db,4,1,"ng-container",1),r.Gc(5,"\n ")),2&e&&(r.Eb(4),r.mc("ngIf",!t.isInsideTable))},directives:[o.o,o.t],encapsulation:2,changeDetection:0}),e})(),Zb=(()=>{class e{constructor(){this.title=null,this.footer=null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(e,t){2&e&&r.Ib("ant-table-title",null!==t.title)("ant-table-footer",null!==t.footer)},inputs:{title:"title",footer:"footer"},decls:5,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(e,t){1&e&&(r.Gc(0,"\n "),r.Ec(1,zb,2,1,"ng-container",0),r.Gc(2,"\n "),r.Ec(3,jb,2,1,"ng-container",0),r.Gc(4,"\n ")),2&e&&(r.Eb(1),r.mc("nzStringTemplateOutlet",t.title),r.Eb(2),r.mc("nzStringTemplateOutlet",t.footer))},directives:[tr.b],encapsulation:2,changeDetection:0}),e})(),ev=(()=>{class e{constructor(e,t,n){this.nzResizeObserver=e,this.ngZone=t,this.elementRef=n,this.listOfMeasureColumn=[],this.listOfAutoWidth=new r.n,this.destroy$=new fe.a,this.elementRef.nativeElement.classList.add("ant-table-measure-now")}trackByFunc(e,t){return t}ngAfterViewInit(){this.listOfTdElement.changes.pipe(Object(we.a)(this.listOfTdElement)).pipe(Object(u.a)(e=>Object(Se.a)(e.toArray().map(e=>this.nzResizeObserver.observe(e).pipe(Object(c.a)(([e])=>{const{width:t}=e.target.getBoundingClientRect();return Math.floor(t)}))))),Object(ke.a)(16),Object(ge.a)(this.destroy$)).subscribe(e=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(e)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(t){return new(t||e)(r.Qb(pf),r.Qb(r.B),r.Qb(r.l))},e.\u0275cmp=r.Kb({type:e,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(e,t){if(1&e&&r.Kc(Zm,1),2&e){let e;r.sc(e=r.ec())&&(t.listOfTdElement=e)}},inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Ab,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(e,t){1&e&&r.Ec(0,Rb,2,0,"td",0),2&e&&r.mc("ngForOf",t.listOfMeasureColumn)("ngForTrackBy",t.trackByFunc)},directives:[o.n],encapsulation:2,changeDetection:0}),e})(),tv=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[pe.a,Ve.f,ya.i,tr.a,Im,mg,Sr.b,ys.c,o.c,be.b,Om,ff,bh,bs,Ge.b,Ql,Sl.f]]}),e})();function nv(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.hc(2,"json"),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Ic(" ",r.ic(2,1,e.data.responseObj)," ")}}function iv(e,t){if(1&e&&(r.Ub(0),r.Gc(1),r.Tb()),2&e){const e=r.gc();r.Eb(1),r.Ic(" ",e.data.response," ")}}const rv=function(e){return{"subscription-result__list-item--expanded":e}};let ov=(()=>{class e{constructor(){this.data={response:"",responseObj:null,responseTime:0},this.isExpanded=!1}toggleExpanded(){this.isExpanded=!this.isExpanded}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-subscription-result-item"]],inputs:{data:"data"},decls:7,vars:9,consts:[[1,"subscription-result__list-item",3,"ngClass","click"],[1,"subscription-result__list-item-content"],[4,"ngIf"],[1,"subscription-result__list-item-time"]],template:function(e,t){1&e&&(r.Wb(0,"div",0),r.dc("click",function(){return t.toggleExpanded()}),r.Wb(1,"div",1),r.Ec(2,nv,3,3,"ng-container",2),r.Ec(3,iv,2,1,"ng-container",2),r.Vb(),r.Wb(4,"div",3),r.Gc(5),r.hc(6,"date"),r.Vb(),r.Vb()),2&e&&(r.mc("ngClass",r.pc(7,rv,t.isExpanded)),r.Eb(2),r.mc("ngIf",t.data.responseObj),r.Eb(1),r.mc("ngIf",!t.data.responseObj),r.Eb(2),r.Hc(r.jc(6,4,t.data.responseTime,"mediumTime")))},directives:[o.l,o.o],pipes:[o.e,o.h],styles:[""],encapsulation:2}),e})();var sv=n("aEDk");const av=["editor"],cv=["subscriptionResponseList"];function lv(e,t){1&e&&(r.Wb(0,"div",35),r.Gc(1,"\n "),r.Wb(2,"div",36),r.Gc(3,"\n "),r.Wb(4,"div",37),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Wb(8,"div",38),r.Gc(9,"\n "),r.Wb(10,"div",7),r.Gc(11,"\n "),r.Rb(12,"div",39),r.Gc(13,"\n "),r.Rb(14,"div",40),r.Gc(15,"\n "),r.Rb(16,"div",40),r.Gc(17,"\n "),r.Rb(18,"div",40),r.Gc(19,"\n "),r.Vb(),r.Gc(20,"\n "),r.Wb(21,"div",11),r.Gc(22,"\n "),r.Rb(23,"div",40),r.Gc(24,"\n "),r.Vb(),r.Gc(25,"\n "),r.Vb(),r.Gc(26,"\n "),r.Vb(),r.Gc(27,"\n "),r.Vb()),2&e&&(r.Eb(5),r.Ic("\n ",r.ic(6,1,"QUERY_RESULT_NO_RESULT_TEXT"),"\n "))}function uv(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",41),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc().uiActionExecuteChange.next(n)}),r.Gc(1),r.Vb()}if(2&e){const e=t.$implicit;r.Eb(1),r.Ic("\n ",e.title,"\n ")}}function hv(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",42),r.Gc(1,"\n "),r.Wb(2,"button",43),r.dc("click",function(){return r.wc(e),r.gc().clearSubscriptionChange.next()}),r.Gc(3),r.hc(4,"translate"),r.Vb(),r.Gc(5,"\n "),r.Wb(6,"button",44),r.dc("click",function(){return r.wc(e),r.gc().stopSubscriptionChange.next()}),r.Gc(7),r.hc(8,"translate"),r.Vb(),r.Gc(9,"\n "),r.Vb()}2&e&&(r.Eb(3),r.Hc(r.ic(4,2,"SUBSCRIPTIONS_CLEAR_TEXT")),r.Eb(4),r.Hc(r.ic(8,4,"SUBSCRIPTIONS_STOP_TEXT")))}function dv(e,t){1&e&&r.Rb(0,"app-subscription-result-item",45),2&e&&r.mc("data",t.$implicit)}const pv=function(e){return{"subscription-result__float-action-button--active":e}};function fv(e,t){if(1&e){const e=r.Xb();r.Wb(0,"button",46),r.dc("click",function(){return r.wc(e),r.gc().autoscrollSubscriptionResponsesChange.next()}),r.Gc(1),r.hc(2,"translate"),r.Vb()}if(2&e){const e=r.gc();r.mc("ngClass",r.pc(4,pv,e.autoscrollSubscriptionResponses)),r.Eb(1),r.Ic("\n ",r.ic(2,2,"SUBSCRIPTIONS_AUTOSCROLL_TEXT"),"\n ")}}function gv(e,t){if(1&e&&(r.Wb(0,"tr"),r.Gc(1,"\n "),r.Wb(2,"td"),r.Gc(3),r.Vb(),r.Gc(4,"\n "),r.Wb(5,"td"),r.Gc(6),r.Vb(),r.Gc(7,"\n "),r.Vb()),2&e){const e=t.$implicit,n=r.gc();r.Eb(3),r.Hc(e),r.Eb(3),r.Hc(n.responseHeaders[e])}}function mv(e,t){1&e&&(r.Wb(0,"div",47),r.Gc(1),r.hc(2,"translate"),r.Vb()),2&e&&(r.Eb(1),r.Ic("\n ",r.ic(2,1,"RESPONSE_HEADERS_MORE_IN_APPS"),"\n "))}const bv=function(e){return{hide:e}};let vv=(()=>{class e{constructor(){this.queryResult="",this.responseTime=0,this.responseStatus=0,this.responseStatusText="",this.responseHeaders={},this.isSubscribed=!1,this.subscriptionResponses=[],this.subscriptionUrl="",this.tabSize=2,this.autoscrollSubscriptionResponses=!1,this.uiActions=[],this.downloadResultChange=new r.n,this.stopSubscriptionChange=new r.n,this.clearSubscriptionChange=new r.n,this.autoscrollSubscriptionResponsesChange=new r.n,this.uiActionExecuteChange=new r.n,this.isElectron=L.a,this.selectedIndex=0,this.resultEditorConfig={mode:"graphql-results",json:!0,tabSize:this.tabSize,indentUnit:this.tabSize,lineWrapping:!0,lineNumbers:!0,foldGutter:!0,readOnly:!0,dragDrop:!1,autoRefresh:!0,theme:"default query-result",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Alt-F":"findPersistent","Ctrl-F":"findPersistent"}}}ngOnChanges(e){var t,n;if(null===(t=null==e?void 0:e.subscriptionResponses)||void 0===t?void 0:t.currentValue){const e=setTimeout(()=>{this.subscriptionResponseList&&this.autoscrollSubscriptionResponses&&(this.subscriptionResponseList.nativeElement.scrollTop=this.subscriptionResponseList.nativeElement.scrollHeight),clearTimeout(e)},50)}(null===(n=null==e?void 0:e.queryResult)||void 0===n?void 0:n.currentValue)&&setTimeout(()=>{var e;return rs(null===(e=this.editor)||void 0===e?void 0:e.codeMirror,!0)},10),(null==e?void 0:e.isSubscribed)&&(e.isSubscribed.currentValue?this.selectedIndex=1:this.subscriptionResponses.length||(this.selectedIndex=0))}ngDoCheck(){var e;rs(null===(e=this.editor)||void 0===e?void 0:e.codeMirror)}subscriptionResponseTrackBy(e,t){return t.responseTime}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-query-result"]],viewQuery:function(e,t){if(1&e&&(r.Kc(av,3),r.Kc(cv,3)),2&e){let e;r.sc(e=r.ec())&&(t.editor=e.first),r.sc(e=r.ec())&&(t.subscriptionResponseList=e.first)}},inputs:{queryResult:"queryResult",responseTime:"responseTime",responseStatus:"responseStatus",responseStatusText:"responseStatusText",responseHeaders:"responseHeaders",isSubscribed:"isSubscribed",subscriptionResponses:"subscriptionResponses",subscriptionUrl:"subscriptionUrl",tabSize:"tabSize",autoscrollSubscriptionResponses:"autoscrollSubscriptionResponses",uiActions:"uiActions"},outputs:{downloadResultChange:"downloadResultChange",stopSubscriptionChange:"stopSubscriptionChange",clearSubscriptionChange:"clearSubscriptionChange",autoscrollSubscriptionResponsesChange:"autoscrollSubscriptionResponsesChange",uiActionExecuteChange:"uiActionExecuteChange"},features:[r.Cb],decls:119,vars:40,consts:[["nzSize","small","nzTabBarGutter","16",1,"main-view-tabs",3,"nzAnimated","nzSelectedIndex","nzSelectedIndexChange"],[3,"nzTitle","nzDisabled"],[1,"query-result-container"],[1,"query-result__normal-container"],["class","query-result__none",4,"ngIf"],[1,"app-result",3,"ngClass"],[1,"response-stats"],[1,"left"],[1,"response-status-code","response-stats__item"],[1,"response-time","response-stats__item"],["name","clock"],[1,"right"],[1,"query-result__bottom-actions"],["track-id","download_result",1,"query-result__download-button",3,"click"],["name","download"],["class","query-result__download-button",3,"click",4,"ngFor","ngForOf"],[1,"app-query-result-textarea",3,"options","ngModel"],["editor",""],[1,"query-result__subscription-container"],[1,"subscription-result"],[1,"subscription-result__actions"],[1,"subscription-result__actions-left"],[1,"subscription-result__actions-url"],["class","subscription-result__actions-right",4,"ngIf"],[1,"subscription-result__list-wrapper"],["subscriptionResponseList",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[1,"subscription-result__float-actions"],["class","subscription-result__float-action-button",3,"ngClass","click",4,"ngIf"],[3,"nzTitle"],[1,"response-headers__container"],["nzSize","small","nzNoResult","",3,"nzShowPagination","nzTemplateMode"],["smallTable",""],[4,"ngFor","ngForOf"],["class","response-headers__notice",4,"ngIf"],[1,"query-result__none"],[1,"query-result__none-inner"],[1,"query-result__none-subtext"],[1,"query-result__none-art"],[1,"query-result__none-art-button","send"],[1,"query-result__none-art-button"],[1,"query-result__download-button",3,"click"],[1,"subscription-result__actions-right"],["track-id","clear_subscription",1,"subscription-button",3,"click"],["track-id","stop_subscription",1,"subscription-button","subscription-button--stop",3,"click"],[3,"data"],[1,"subscription-result__float-action-button",3,"ngClass","click"],[1,"response-headers__notice"]],template:function(e,t){1&e&&(r.Wb(0,"nz-tabset",0),r.dc("nzSelectedIndexChange",function(e){return t.selectedIndex=e}),r.Gc(1,"\n "),r.Wb(2,"nz-tab",1),r.hc(3,"translate"),r.Gc(4,"\n "),r.Wb(5,"div",2),r.Gc(6,"\n "),r.Wb(7,"div",3),r.Gc(8,"\n "),r.Ec(9,lv,28,3,"div",4),r.Gc(10,"\n "),r.Gc(11,"\n "),r.Wb(12,"div",5),r.Gc(13,"\n "),r.Wb(14,"div",6),r.Gc(15,"\n "),r.Wb(16,"div",7),r.Gc(17,"\n "),r.Wb(18,"span",8),r.Gc(19),r.Vb(),r.Gc(20,"\n "),r.Wb(21,"span",9),r.Rb(22,"app-icon",10),r.Gc(23),r.Vb(),r.Gc(24,"\n "),r.Vb(),r.Gc(25,"\n "),r.Wb(26,"div",11),r.Gc(27,"\n "),r.Vb(),r.Gc(28,"\n "),r.Vb(),r.Gc(29,"\n "),r.Wb(30,"div",12),r.Gc(31,"\n "),r.Wb(32,"button",13),r.dc("click",function(){return t.downloadResultChange.next()}),r.Gc(33,"\n "),r.Rb(34,"app-icon",14),r.Gc(35),r.hc(36,"translate"),r.Vb(),r.Gc(37,"\n "),r.Ec(38,uv,2,1,"button",15),r.Gc(39,"\n "),r.Vb(),r.Gc(40,"\n "),r.Rb(41,"ngx-codemirror",16,17),r.hc(43,"json"),r.Gc(44,"\n "),r.Vb(),r.Gc(45,"\n "),r.Vb(),r.Gc(46,"\n "),r.Vb(),r.Gc(47,"\n "),r.Vb(),r.Gc(48,"\n "),r.Wb(49,"nz-tab",1),r.hc(50,"translate"),r.Gc(51,"\n "),r.Wb(52,"div",2),r.Gc(53,"\n "),r.Wb(54,"div",18),r.Gc(55,"\n "),r.Wb(56,"div",19),r.Gc(57,"\n "),r.Wb(58,"div",20),r.Gc(59,"\n "),r.Wb(60,"div",21),r.Gc(61,"\n "),r.Wb(62,"div",22),r.Gc(63),r.Vb(),r.Gc(64,"\n "),r.Vb(),r.Gc(65,"\n "),r.Ec(66,hv,10,6,"div",23),r.Gc(67,"\n "),r.Vb(),r.Gc(68,"\n "),r.Wb(69,"div",24,25),r.Gc(71,"\n "),r.Ec(72,dv,1,1,"app-subscription-result-item",26),r.Gc(73,"\n "),r.Vb(),r.Gc(74,"\n "),r.Wb(75,"div",27),r.Gc(76,"\n "),r.Ec(77,fv,3,6,"button",28),r.Gc(78,"\n "),r.Vb(),r.Gc(79,"\n "),r.Vb(),r.Gc(80,"\n "),r.Vb(),r.Gc(81,"\n "),r.Vb(),r.Gc(82,"\n "),r.Vb(),r.Gc(83,"\n "),r.Wb(84,"nz-tab",29),r.hc(85,"translate"),r.Gc(86,"\n "),r.Wb(87,"div",2),r.Gc(88,"\n "),r.Wb(89,"div",30),r.Gc(90,"\n "),r.Wb(91,"nz-table",31,32),r.Gc(93,"\n "),r.Wb(94,"thead"),r.Gc(95,"\n "),r.Wb(96,"tr"),r.Gc(97,"\n "),r.Wb(98,"th"),r.Gc(99,"Name"),r.Vb(),r.Gc(100,"\n "),r.Wb(101,"th"),r.Gc(102,"Value"),r.Vb(),r.Gc(103,"\n "),r.Vb(),r.Gc(104,"\n "),r.Vb(),r.Gc(105,"\n "),r.Wb(106,"tbody"),r.Gc(107,"\n "),r.Ec(108,gv,8,2,"tr",33),r.hc(109,"keys"),r.Gc(110,"\n "),r.Vb(),r.Gc(111,"\n "),r.Vb(),r.Gc(112,"\n "),r.Ec(113,mv,3,3,"div",34),r.Gc(114,"\n "),r.Vb(),r.Gc(115,"\n "),r.Vb(),r.Gc(116,"\n "),r.Vb(),r.Gc(117,"\n"),r.Vb(),r.Gc(118,"\n\n")),2&e&&(r.mc("nzAnimated",!1)("nzSelectedIndex",t.selectedIndex),r.Eb(2),r.mc("nzTitle",r.ic(3,26,"QUERY_RESULT_TAB"))("nzDisabled",t.isSubscribed),r.Eb(7),r.mc("ngIf",!t.queryResult),r.Eb(3),r.mc("ngClass",r.pc(38,bv,!t.queryResult)),r.Eb(6),r.Fb("data-status-code",t.responseStatus),r.Eb(1),r.Jc("",t.responseStatus," ",t.responseStatusText,""),r.Eb(4),r.Ic(" ",t.responseTime,"ms"),r.Eb(12),r.Ic("\n ",r.ic(36,28,"QUERY_RESULT_DOWNLOAD_RESULT_BUTTON"),"\n "),r.Eb(3),r.mc("ngForOf",t.uiActions),r.Eb(3),r.mc("options",t.resultEditorConfig)("ngModel",r.ic(43,30,t.queryResult)),r.Eb(8),r.mc("nzTitle",r.ic(50,32,"SUBSCRIPTION_RESULT_TAB"))("nzDisabled",!(t.isSubscribed||null!=t.subscriptionResponses&&t.subscriptionResponses.length)),r.Eb(14),r.Ic("\n ",t.subscriptionUrl,"\n "),r.Eb(3),r.mc("ngIf",t.isSubscribed),r.Eb(6),r.mc("ngForOf",t.subscriptionResponses)("ngForTrackBy",t.subscriptionResponseTrackBy),r.Eb(5),r.mc("ngIf",t.isSubscribed),r.Eb(7),r.mc("nzTitle",r.ic(85,34,"RESPONSE_HEADERS_TAB")),r.Eb(7),r.mc("nzShowPagination",!1)("nzTemplateMode",!0),r.Eb(17),r.mc("ngForOf",r.ic(109,36,t.responseHeaders)),r.Eb(5),r.mc("ngIf",!t.isElectron))},directives:[sg,Kf,o.o,o.l,Xi.a,o.n,Ca,ya.l,ya.o,Kb,Jb,Yb,Vb,Bb,Xb,ov],pipes:[y.c,o.h,sv.a],styles:[""]}),e})();var yv=n("FXUI");const wv=["editor"];function _v(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",4),r.Gc(2,"\n "),r.Wb(3,"div",5),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n ")),2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"SUBSCRIPTION_URL_TEXT")),r.Eb(2),r.Ic("\n ",r.ic(7,4,"SET_SUBSCRIPTION_URL_TEXT"),"\n "))}function Ov(e,t){if(1&e&&(r.Rb(0,"nz-option",16),r.hc(1,"translate")),2&e){const e=t.$implicit;r.mc("nzValue",e.id)("nzLabel",r.ic(1,2,e.copyTag))}}function Cv(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",6),r.Gc(2,"\n "),r.Wb(3,"div",7),r.Gc(4,"\n "),r.Wb(5,"input",8),r.dc("input",function(t){return r.wc(e),r.gc().subscriptionUrlInput(t)}),r.Vb(),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Wb(8,"div",9),r.Gc(9,"\n "),r.Wb(10,"div",10),r.Gc(11),r.hc(12,"translate"),r.Vb(),r.Gc(13,"\n "),r.Wb(14,"nz-select",11),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().updateSubscriptionProviderId(t)}),r.Gc(15,"\n "),r.Ec(16,Ov,2,4,"nz-option",12),r.Gc(17,"\n "),r.Vb(),r.Gc(18,"\n "),r.Vb(),r.Gc(19,"\n\n "),r.Wb(20,"div",9),r.Gc(21,"\n "),r.Wb(22,"div",10),r.Gc(23),r.hc(24,"translate"),r.Vb(),r.Gc(25,"\n "),r.Wb(26,"div",13),r.Gc(27,"\n "),r.Wb(28,"ngx-codemirror",14,15),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().subscriptionConnectionParamsChange.emit(t)}),r.Vb(),r.Gc(30,"\n "),r.Vb(),r.Gc(31,"\n "),r.Vb(),r.Gc(32,"\n "),r.Vb(),r.Gc(33,"\n ")}if(2&e){const e=r.gc();r.Eb(5),r.mc("value",e.subscriptionUrl),r.Eb(6),r.Hc(r.ic(12,8,"SUBSCRIPTION_TYPE_TITLE")),r.Eb(3),r.mc("ngModel",e.selectedSubscriptionProviderId),r.Eb(2),r.mc("ngForOf",e.subscriptionProviders)("ngForTrackBy",e.trackById),r.Eb(7),r.Hc(r.ic(24,10,"SUBSCRIPTION_CONNECTION_PARAMS_TEXT")),r.Eb(5),r.mc("ngModel",e.subscriptionConnectionParams)("options",e.subscriptionConnectionParamsEditorConfig)}}function Ev(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",17),r.Gc(2,"\n "),r.Wb(3,"button",18),r.dc("click",function(t){return r.wc(e),r.gc().toggleDialogChange.next(t)}),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n ")}2&e&&(r.Eb(4),r.Hc(r.ic(5,1,"SAVE_BUTTON")))}let Sv=(()=>{class e{constructor(){this.subscriptionUrl="",this.subscriptionConnectionParams="",this.selectedSubscriptionProviderId="",this.subscriptionProviders=[],this.showDialog=!1,this.toggleDialogChange=new r.n,this.subscriptionUrlChange=new r.n,this.subscriptionConnectionParamsChange=new r.n,this.subscriptionProviderIdChange=new r.n,this.subscriptionConnectionParamsEditorConfig={mode:"javascript",json:!0,lineWrapping:!0,dragDrop:!1,autoRefresh:!0,theme:"default subscription-params",gutters:[],autoCloseBrackets:!0,matchBrackets:!0,lint:{},hintOptions:{completeSingle:!1},jump:{}}}ngOnChanges(){}ngDoCheck(){rs(this.editor&&this.editor.codeMirror)}subscriptionUrlInput(e){e.target&&this.subscriptionUrlChange.emit(e.target.value)}updateSubscriptionProviderId(e){this.subscriptionProviderIdChange.emit(e)}trackById(e,t){return t.id}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-subscription-url-dialog"]],viewQuery:function(e,t){if(1&e&&r.Kc(wv,1),2&e){let e;r.sc(e=r.ec())&&(t.editor=e.first)}},inputs:{subscriptionUrl:"subscriptionUrl",subscriptionConnectionParams:"subscriptionConnectionParams",selectedSubscriptionProviderId:"selectedSubscriptionProviderId",subscriptionProviders:"subscriptionProviders",showDialog:"showDialog"},outputs:{toggleDialogChange:"toggleDialogChange",subscriptionUrlChange:"subscriptionUrlChange",subscriptionConnectionParamsChange:"subscriptionConnectionParamsChange",subscriptionProviderIdChange:"subscriptionProviderIdChange"},features:[r.Cb],decls:12,vars:4,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],[1,"app-dialog-section"],["type","url","placeholder","ws://example.com/subscriptions",1,"dialog-input",3,"value","input"],[1,"subscription-params-section"],[1,"subscription-params-title"],[1,"dialog-select",3,"ngModel","ngModelChange"],[3,"nzValue","nzLabel",4,"ngFor","ngForOf","ngForTrackBy"],[1,"subscription-params-editor-wrapper"],[1,"subscription-params__input",3,"ngModel","options","ngModelChange"],["editor",""],[3,"nzValue","nzLabel"],[1,"app-dialog-footer"],["track-id","close_set_subscription_dialog",1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(r.Wb(0,"nz-modal",0),r.dc("nzVisibleChange",function(e){return t.toggleDialogChange.next(e)})("nzOnCancel",function(e){return t.toggleDialogChange.next(e)}),r.Gc(1,"\n "),r.Ec(2,_v,9,6,"ng-template",null,1,r.Fc),r.Gc(4,"\n\n "),r.Ec(5,Cv,34,12,"ng-template",null,2,r.Fc),r.Gc(7,"\n\n "),r.Ec(8,Ev,8,3,"ng-template",null,3,r.Fc),r.Gc(10,"\n"),r.Vb(),r.Gc(11,"\n")),2&e){const e=r.tc(3),n=r.tc(6),i=r.tc(9);r.mc("nzVisible",t.showDialog)("nzTitle",e)("nzContent",n)("nzFooter",i)}},directives:[ha,Vu,ya.l,ya.o,o.n,Ca,Lu],pipes:[y.c],encapsulation:2}),e})();function Tv(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",4),r.Gc(2,"\n "),r.Wb(3,"div",5),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n ")),2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"HISTORY_TEXT")),r.Eb(2),r.Ic("\n ",r.ic(7,4,"HISTORY_SUB_TEXT"),"\n "))}function xv(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",9),r.dc("click",function(){r.wc(e);const n=t.index;return r.gc(2).restoreHistory(n)}),r.Gc(1),r.Vb()}if(2&e){const e=t.$implicit;r.Eb(1),r.Ic("\n ",e.query,"\n ")}}function kv(e,t){if(1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",6),r.Gc(2,"\n "),r.Wb(3,"div",7),r.Gc(4,"\n "),r.Ec(5,xv,2,1,"div",8),r.Gc(6,"\n "),r.Vb(),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n ")),2&e){const e=r.gc();r.Eb(5),r.mc("ngForOf",e.historyList)("ngForTrackBy",e.trackByIndex)}}function Iv(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",10),r.Gc(2,"\n "),r.Wb(3,"button",11),r.dc("click",function(t){return r.wc(e),r.gc().toggleDialogChange.next(t)}),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6,"\n "),r.Wb(7,"button",12),r.dc("click",function(){return r.wc(e),r.gc().clearHistory()}),r.Gc(8),r.hc(9,"translate"),r.Vb(),r.Gc(10,"\n "),r.Vb(),r.Gc(11,"\n ")}2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"DONE_BUTTON")),r.Eb(4),r.Hc(r.ic(9,4,"HISTORY_CLEAR_TEXT")))}let Dv=(()=>{class e{constructor(){this.historyList=[],this.showDialog=!1,this.toggleDialogChange=new r.n,this.restoreHistoryChange=new r.n,this.clearHistoryChange=new r.n}ngOnInit(){}restoreHistory(e){this.restoreHistoryChange.next(e),this.toggleDialogChange.next()}clearHistory(){this.clearHistoryChange.next()}trackByIndex(e){return e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-history-dialog"]],inputs:{historyList:"historyList",showDialog:"showDialog"},outputs:{toggleDialogChange:"toggleDialogChange",restoreHistoryChange:"restoreHistoryChange",clearHistoryChange:"clearHistoryChange"},decls:12,vars:4,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],[1,"history-container"],["class","history-item",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"history-item",3,"click"],[1,"app-dialog-footer"],["track-id","close_history_dialog",1,"app-button","active-primary","right",3,"click"],["track-id","clear_history_items",1,"app-button","active-secondary","left",3,"click"]],template:function(e,t){if(1&e&&(r.Wb(0,"nz-modal",0),r.dc("nzVisibleChange",function(e){return t.toggleDialogChange.next(e)})("nzOnCancel",function(e){return t.toggleDialogChange.next(e)}),r.Gc(1,"\n "),r.Ec(2,Tv,9,6,"ng-template",null,1,r.Fc),r.Gc(4,"\n\n "),r.Ec(5,kv,9,2,"ng-template",null,2,r.Fc),r.Gc(7,"\n\n "),r.Ec(8,Iv,12,6,"ng-template",null,3,r.Fc),r.Gc(10,"\n"),r.Vb(),r.Gc(11,"\n")),2&e){const e=r.tc(3),n=r.tc(6),i=r.tc(9);r.mc("nzVisible",t.showDialog)("nzTitle",e)("nzContent",n)("nzFooter",i)}},directives:[ha,o.n],pipes:[y.c],encapsulation:2}),e})();function zv(e,t){if(1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",4),r.Gc(2,"\n "),r.Wb(3,"div",5),r.Gc(4),r.Vb(),r.Gc(5),r.Vb(),r.Gc(6,"\n ")),2&e){const e=r.gc();r.Eb(4),r.Hc(e.heading),r.Eb(1),r.Ic("\n ",e.subheading,"\n ")}}function jv(e,t){1&e&&(r.Gc(0,"\n "),r.kc(1),r.Gc(2,"\n "))}function Av(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Gc(1,"\n "),r.Wb(2,"div",7),r.Gc(3,"\n "),r.Wb(4,"button",8),r.dc("click",function(t){return r.wc(e),r.gc(2).onClickSave(t)}),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Tb()}2&e&&(r.Eb(5),r.Hc(r.ic(6,1,"SAVE_BUTTON")))}function Rv(e,t){if(1&e&&(r.Gc(0,"\n "),r.Ec(1,Av,9,3,"ng-container",6),r.Gc(2,"\n ")),2&e){const e=r.gc();r.Eb(1),r.mc("ngIf",e.showFooter)}}const Nv=["*"];let Lv=(()=>{class e{constructor(){this.showDialog=!1,this.heading="[DIALOG_HEADING]",this.subheading="[DIALOG_SUBHEADING]",this.showFooter=!0,this.toggleDialog=new r.n,this.saveChange=new r.n}ngOnInit(){}onClickSave(e){this.toggleDialog.emit(e),this.saveChange.emit(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-dialog"]],inputs:{showDialog:"showDialog",heading:"heading",subheading:"subheading",showFooter:"showFooter"},outputs:{toggleDialog:"toggleDialog",saveChange:"saveChange"},ngContentSelectors:Nv,decls:12,vars:4,consts:[[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[4,"ngIf"],[1,"app-dialog-footer"],[1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(r.lc(),r.Wb(0,"nz-modal",0),r.dc("nzVisibleChange",function(e){return t.toggleDialog.next(e)})("nzOnCancel",function(){return t.toggleDialog.next()}),r.Gc(1,"\n "),r.Ec(2,zv,7,2,"ng-template",null,1,r.Fc),r.Gc(4,"\n\n "),r.Ec(5,jv,3,0,"ng-template",null,2,r.Fc),r.Gc(7,"\n\n "),r.Ec(8,Rv,3,1,"ng-template",null,3,r.Fc),r.Gc(10,"\n"),r.Vb(),r.Gc(11,"\n")),2&e){const e=r.tc(3),n=r.tc(6),i=r.tc(9);r.mc("nzVisible",t.showDialog)("nzTitle",e)("nzContent",n)("nzFooter",i)}},directives:[ha,o.o],pipes:[y.c],styles:[""]}),e})();function Mv(e,t){if(1&e&&r.Rb(0,"nz-option",6),2&e){const e=t.$implicit;r.mc("nzValue",e.id)("nzLabel",e.title)}}function Fv(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",2),r.Gc(1),r.hc(2,"translate"),r.Wb(3,"input",8),r.dc("ngModelChange",function(t){return r.wc(e),r.gc().newCollectionTitle=t}),r.hc(4,"translate"),r.Vb(),r.Gc(5,"\n "),r.Vb()}if(2&e){const e=r.gc();r.Eb(1),r.Ic("\n ",r.ic(2,3,"SAVE_TO_COLLECTION_COLLECTION_NAME"),"\n "),r.Eb(2),r.mc("ngModel",e.newCollectionTitle),r.Fb("aria-label",r.ic(4,5,"SAVE_TO_COLLECTION_COLLECTION_NAME"))}}let Pv=(()=>{class e{constructor(){this.showDialog=!1,this.windowTitle="",this.collections=[],this.toggleDialogChange=new r.n,this.createCollectionAndSaveQueryToCollectionChange=new r.n,this.saveQueryToCollectionChange=new r.n,this.newCollectionQueryTitle=this.windowTitle,this.newCollectionTitle="",this.collectionId=null}ngOnChanges(e){e&&e.windowTitle&&e.windowTitle.currentValue&&(this.windowTitle=e.windowTitle.currentValue,this.reset())}ngOnInit(){}createCollectionAndSaveQueryToCollection(){this.createCollectionAndSaveQueryToCollectionChange.emit({queryName:this.newCollectionQueryTitle,collectionName:this.newCollectionTitle}),this.reset()}saveQueryToCollection(){this.saveQueryToCollectionChange.emit({queryName:this.newCollectionQueryTitle,collectionId:this.collectionId}),this.reset()}onSaveChange(){return this.collectionId&&-1!==this.collectionId?this.saveQueryToCollection():this.createCollectionAndSaveQueryToCollection()}reset(){this.newCollectionQueryTitle=this.windowTitle,this.newCollectionTitle="",this.collectionId=null}trackById(e,t){return t.id}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-add-collection-query-dialog"]],inputs:{showDialog:"showDialog",windowTitle:"windowTitle",collections:"collections"},outputs:{toggleDialogChange:"toggleDialogChange",createCollectionAndSaveQueryToCollectionChange:"createCollectionAndSaveQueryToCollectionChange",saveQueryToCollectionChange:"saveQueryToCollectionChange"},features:[r.Cb],decls:35,vars:25,consts:[[3,"showDialog","heading","subheading","toggleDialog","saveChange"],[1,"add-to-collection-wrapper"],[1,"app-dialog-section"],["type","text","data-test-id","collection-query-name",1,"dialog-input",3,"ngModel","ngModelChange"],["name","collection","nzPlaceHolder","Choose",1,"dialog-block",3,"ngModel","ngModelChange"],[3,"nzValue","nzLabel",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzValue","nzLabel"],["class","app-dialog-section",4,"ngIf"],["type","text","data-test-id","new-collection-name",1,"dialog-input",3,"ngModel","ngModelChange"]],template:function(e,t){1&e&&(r.Wb(0,"app-dialog",0),r.dc("toggleDialog",function(e){return t.toggleDialogChange.emit(e)})("saveChange",function(){return t.onSaveChange()}),r.hc(1,"translate"),r.hc(2,"translate"),r.Gc(3,"\n "),r.Wb(4,"div",1),r.Gc(5,"\n "),r.Wb(6,"div",2),r.Gc(7),r.hc(8,"translate"),r.Wb(9,"input",3),r.dc("ngModelChange",function(e){return t.newCollectionQueryTitle=e}),r.hc(10,"translate"),r.Vb(),r.Gc(11,"\n "),r.Vb(),r.Gc(12,"\n "),r.Wb(13,"div",2),r.Gc(14,"\n "),r.Wb(15,"nz-form-label"),r.Gc(16),r.hc(17,"translate"),r.Vb(),r.Gc(18,"\n "),r.Wb(19,"nz-form-control"),r.Gc(20,"\n "),r.Wb(21,"nz-select",4),r.dc("ngModelChange",function(e){return t.collectionId=e}),r.Gc(22,"\n "),r.Ec(23,Mv,1,2,"nz-option",5),r.Gc(24,"\n "),r.Rb(25,"nz-option",6),r.hc(26,"translate"),r.Gc(27,"\n "),r.Vb(),r.Gc(28,"\n "),r.Vb(),r.Gc(29,"\n "),r.Vb(),r.Gc(30,"\n "),r.Ec(31,Fv,6,7,"div",7),r.Gc(32,"\n "),r.Vb(),r.Gc(33,"\n"),r.Vb(),r.Gc(34,"\n")),2&e&&(r.mc("showDialog",t.showDialog)("heading",r.ic(1,13,"SAVE_TO_COLLECTION_HEADER"))("subheading",r.ic(2,15,"SAVE_TO_COLLCTION_SUBTEXT")),r.Eb(7),r.Ic("\n ",r.ic(8,17,"SAVE_TO_COLLECTION_NAME_OF_QUERY"),"\n "),r.Eb(2),r.mc("ngModel",t.newCollectionQueryTitle),r.Fb("aria-label",r.ic(10,19,"SAVE_TO_COLLECTION_NAME_OF_QUERY")),r.Eb(7),r.Hc(r.ic(17,21,"SAVE_TO_COLLECTION_SELECT_COLLECTION")),r.Eb(5),r.mc("ngModel",t.collectionId),r.Eb(2),r.mc("ngForOf",t.collections)("ngForTrackBy",t.trackById),r.Eb(2),r.mc("nzValue",-1)("nzLabel",r.ic(26,23,"SAVE_TO_COLLECTION_OR_CREATE_NEW_COLLECTION_LABEL")),r.Eb(6),r.mc("ngIf",-1===t.collectionId))},directives:[Lv,ya.e,ya.l,ya.o,uc,kc,Tc,Vu,o.n,Lu,o.o],pipes:[y.c],encapsulation:2}),e})();var Vv=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const Gv=function(e){return{"anim-rotate":e}};function Bv(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",19),r.Gc(1,"\n "),r.Wb(2,"div",20),r.Gc(3,"\n "),r.Rb(4,"img",21),r.hc(5,"async"),r.Gc(6),r.hc(7,"translate"),r.Wb(8,"div",22),r.Gc(9,"\n "),r.Wb(10,"button",23),r.dc("click",function(){return r.wc(e),r.gc().cancelRequest()}),r.Gc(11),r.hc(12,"translate"),r.Vb(),r.Gc(13,"\n "),r.Vb(),r.Gc(14,"\n "),r.Vb(),r.Gc(15,"\n "),r.Vb()}if(2&e){const e=r.gc();let t=null;r.mc("@fadeInOutAnimation",void 0),r.Eb(4),r.mc("ngClass",r.pc(10,Gv,null==(t=r.ic(5,4,e.layout$))?null:t.isLoading)),r.Eb(2),r.Ic(" ",r.ic(7,6,"LOADING_INDICATOR_TEXT"),"\n "),r.Eb(5),r.Hc(r.ic(12,8,"CANCEL_TEXT"))}}function Wv(e,t){1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",24),r.Gc(2,"\n "),r.Wb(3,"div",25),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n ")),2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"HEADERS_TEXT")),r.Eb(2),r.Ic("\n ",r.ic(7,4,"SET_HEADERS_DIALOG_SUBTEXT"),"\n "))}const $v=function(e){return{"set-header-input-container--disabled":e}};function Uv(e,t){if(1&e){const e=r.Xb();r.Wb(0,"div",28),r.Gc(1,"\n "),r.Wb(2,"label",29),r.dc("ngModelChange",function(n){r.wc(e);const i=t.index;return r.gc(2).headerEnabledChange(n,i)}),r.Vb(),r.Gc(3,"\n "),r.Wb(4,"div",30),r.Gc(5,"\n "),r.Wb(6,"app-fancy-input",31),r.dc("ngModelChange",function(n){r.wc(e);const i=t.index;return r.gc(2).headerKeyChange(n,i)})("submit",function(){return r.wc(e),r.gc(2).toggleHeader()}),r.Vb(),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Wb(9,"div",30),r.Gc(10,"\n "),r.Wb(11,"app-fancy-input",32),r.dc("ngModelChange",function(n){r.wc(e);const i=t.index;return r.gc(2).headerValueChange(n,i)})("submit",function(){return r.wc(e),r.gc(2).toggleHeader()}),r.Vb(),r.Gc(12,"\n "),r.Vb(),r.Gc(13,"\n "),r.Wb(14,"button",33),r.dc("click",function(){r.wc(e);const n=t.index;return r.gc(2).removeHeader(n)}),r.Gc(15,"\xd7"),r.Vb(),r.Gc(16,"\n "),r.Vb()}if(2&e){const e=t.$implicit;r.mc("ngClass",r.pc(4,$v,!e.enabled)),r.Eb(2),r.mc("ngModel",e.enabled),r.Eb(4),r.mc("ngModel",e.key),r.Eb(5),r.mc("ngModel",e.value)}}function Hv(e,t){if(1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",26),r.Gc(2,"\n "),r.Ec(3,Uv,17,6,"div",27),r.hc(4,"async"),r.Gc(5,"\n "),r.Vb(),r.Gc(6,"\n ")),2&e){const e=r.gc();r.Eb(3),r.mc("ngForOf",r.ic(4,2,e.headers$))("ngForTrackBy",e.trackByFn)}}function qv(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"div",34),r.Gc(2,"\n "),r.Wb(3,"button",35),r.dc("click",function(){return r.wc(e),r.gc().addHeader()}),r.Gc(4),r.hc(5,"translate"),r.Vb(),r.Gc(6,"\n "),r.Wb(7,"button",36),r.dc("click",function(){return r.wc(e),r.gc().toggleHeader()}),r.Gc(8),r.hc(9,"translate"),r.Vb(),r.Gc(10,"\n "),r.Vb(),r.Gc(11,"\n ")}2&e&&(r.Eb(4),r.Hc(r.ic(5,2,"ADD_HEADER_TEXT")),r.Eb(4),r.Hc(r.ic(9,4,"SAVE_BUTTON")))}const Qv=function(e){return{"hide-doc":e}};let Kv=(()=>{let e=class{constructor(e,t,n,i,r){this.gql=e,this.notifyService=t,this.store=n,this.windowService=i,this.subscriptionProviderRegistry=r,this.apiUrl="",this.query="",this.showHeaderDialog=!1,this.showVariableDialog=!1,this.showSubscriptionUrlDialog=!1,this.showHistoryDialog=!1,this.showAddToCollectionDialog=!1,this.showPreRequestDialog=!0,this.gqlSchema=null,this.subscriptionUrl="",this.subscriptionConnectionParams="",this.availableSubscriptionProviders=this.subscriptionProviderRegistry.getAllProviderData(),this.selectedSubscriptionProviderId="",this.historyList=[]}ngOnInit(){this.addQueryDepthLimit$=this.store.pipe(Object(g.q)(e=>e.settings.addQueryDepthLimit)),this.tabSize$=this.store.pipe(Object(g.q)(e=>e.settings.tabSize)),this.collections$=this.store.pipe(Object(g.q)(e=>e.collection.list)),this.query$=this.getWindowState().pipe(Object(g.q)(O.m)),this.queryResult$=this.getWindowState().pipe(Object(g.q)(O.l)),this.showDocs$=this.getWindowState().pipe(Object(g.q)(O.v)),this.docView$=this.getWindowState().pipe(Object(g.q)(O.c)),this.docsIsLoading$=this.getWindowState().pipe(Object(g.q)(O.d)),this.headers$=this.getWindowState().pipe(Object(g.q)(O.f)),this.variables$=this.getWindowState().pipe(Object(g.q)(O.z)),this.introspection$=this.getWindowState().pipe(Object(g.q)(O.g)),this.allowIntrospection$=this.getWindowState().pipe(Object(g.q)(O.a)),this.schemaLastUpdatedAt$=this.getWindowState().pipe(Object(g.q)(O.t)),this.responseStatus$=this.getWindowState().pipe(Object(g.q)(O.p)),this.responseTime$=this.getWindowState().pipe(Object(g.q)(O.r)),this.responseStatusText$=this.getWindowState().pipe(Object(g.q)(O.q)),this.responseHeaders$=this.getWindowState().pipe(Object(g.q)(O.o)),this.isSubscribed$=this.getWindowState().pipe(Object(g.q)(O.A)),this.subscriptionResponses$=this.getWindowState().pipe(Object(g.q)(O.y)),this.autoscrollSubscriptionResponses$=this.getWindowState().pipe(Object(g.q)(O.b)),this.selectedOperation$=this.getWindowState().pipe(Object(g.q)(O.u)),this.queryOperations$=this.getWindowState().pipe(Object(g.q)(O.k)),this.streamState$=this.getWindowState().pipe(Object(g.q)(O.x)),this.currentCollection$=this.getWindowState().pipe(Object(u.a)(e=>e&&e.layout.collectionId?this.collections$.pipe(Object(c.a)(t=>t.find(t=>t.id===e.layout.collectionId))):Bc.a)),this.preRequest$=this.getWindowState().pipe(Object(g.q)(O.j)),this.postRequest$=this.getWindowState().pipe(Object(g.q)(O.i)),this.layout$=this.getWindowState().pipe(Object(g.q)(O.h)),this.resultPaneUiActions$=this.store.select(O.s),this.store.pipe(Object(F.b)(this),Object(c.a)(e=>e.windows[this.windowId]),Object(a.a)()).subscribe(e=>{if(!e)return!1;const t=this.query;this.apiUrl=e.query.url;const n=e.query.query||"";if(this.query=n,this.showHeaderDialog=e.dialogs.showHeaderDialog,this.showVariableDialog=e.dialogs.showVariableDialog,this.showSubscriptionUrlDialog=e.dialogs.showSubscriptionUrlDialog,this.showHistoryDialog=e.dialogs.showHistoryDialog,this.showAddToCollectionDialog=e.dialogs.showAddToCollectionDialog,this.showPreRequestDialog=e.dialogs.showPreRequestDialog,this.subscriptionUrl=e.query.subscriptionUrl,this.subscriptionConnectionParams=e.query.subscriptionConnectionParams||"",this.selectedSubscriptionProviderId=e.query.subscriptionProviderId||lp.b,this.historyList=e.history.list,this.gql.isSchema(e.schema.schema))this.gqlSchema=e.schema.schema;else{const t=this.gql.getIntrospectionSchema(e.schema.introspection);t&&this.store.dispatch(new np.n(this.windowId,t))}if(t!==this.query&&this.gqlSchema)try{this.variableToType=cp()(this.gqlSchema,this.gql.parseQuery(n))}catch(i){}}),this.windowService.setupWindow(this.windowId)}setApiUrl(e){e!==this.apiUrl&&(this.store.dispatch(new C.Z({url:e},this.windowId)),this.store.dispatch(new C.K(this.windowId)))}setApiMethod(e){this.store.dispatch(new C.M({httpVerb:e},this.windowId))}sendRequest(e={}){e.operationName&&this.store.dispatch(new C.T(this.windowId,{selectedOperation:e.operationName})),this.store.dispatch(new C.L(this.windowId))}cancelRequest(){this.store.dispatch(new C.g(this.windowId))}selectOperation(e){this.store.dispatch(new C.T(this.windowId,{selectedOperation:e})),this.sendRequest()}setQueryEditorState(e){this.store.dispatch(new C.O(this.windowId,e))}startSubscription(){this.store.dispatch(new C.ab(this.windowId))}stopSubscription(){this.store.dispatch(new C.bb(this.windowId))}clearSubscription(){this.store.dispatch(new C.X(this.windowId,{list:[]}))}toggleAutoscrollSubscriptionResponses(){this.store.dispatch(new C.db(this.windowId))}updateQuery(e){this.store.dispatch(new C.N(e,this.windowId))}toggleHeader(e){this.showHeaderDialog!==e&&this.store.dispatch(new E.h(this.windowId))}toggleVariableDialog(e){this.showVariableDialog!==e&&this.store.dispatch(new E.l(this.windowId))}toggleSubscriptionUrlDialog(e){this.showSubscriptionUrlDialog!==e&&this.store.dispatch(new E.k(this.windowId))}toggleHistoryDialog(e){this.showHistoryDialog!==e&&this.store.dispatch(new E.i(this.windowId))}toggleAddToCollectionDialog(e){this.showAddToCollectionDialog!==e&&this.store.dispatch(new E.g(this.windowId))}togglePreRequestDialog(e){this.showPreRequestDialog!==e&&this.store.dispatch(new E.j(this.windowId))}setDocView(e){this.store.dispatch(new tp.d(this.windowId,{docView:e}))}onShowTokenInDocs(e){this.setDocView(e),this.showDocs$.pipe(Object(l.a)(1),Object(F.b)(this)).subscribe({next:e=>{e||this.toggleDocs()}})}toggleDocs(){this.store.dispatch(new tp.h(this.windowId))}reloadDocs(){this.store.dispatch(new C.K(this.windowId))}addHeader(){this.store.dispatch(new Zd.b(this.windowId))}headerKeyChange(e,t){this.store.dispatch(new Zd.g({val:e,i:t},this.windowId))}headerValueChange(e,t){this.store.dispatch(new Zd.h({val:e,i:t},this.windowId))}headerEnabledChange(e,t){this.store.dispatch(new Zd.f({val:e,i:t},this.windowId))}removeHeader(e){this.store.dispatch(new Zd.j(e,this.windowId))}updateVariables(e){this.store.dispatch(new ep.l(e,this.windowId))}addFileVariable(){this.store.dispatch(new ep.b(this.windowId))}updateFileVariableName({index:e,name:t}){this.store.dispatch(new ep.k(this.windowId,{index:e,name:t}))}updateFileVariableIsMultiple({index:e,isMultiple:t}){this.store.dispatch(new ep.j(this.windowId,{index:e,isMultiple:t}))}updateFileVariableData({index:e,fileData:t}){this.store.dispatch(new ep.i(this.windowId,{index:e,fileData:t}))}deleteFileVariable({index:e}){this.store.dispatch(new ep.d(this.windowId,{index:e}))}updateSubscriptionUrl(e){this.store.dispatch(new C.Y({subscriptionUrl:e},this.windowId))}updateSubscriptionConnectionParams(e){this.store.dispatch(new C.V(this.windowId,{connectionParams:e}))}updateSubscriptionProviderId(e){this.store.dispatch(new C.W(this.windowId,{providerId:e}))}updatePreRequestScript(e){this.store.dispatch(new rp.d(this.windowId,{script:e}))}updatePreRequestEnabled(e){this.store.dispatch(new rp.c(this.windowId,{enabled:e}))}updatePostRequestScript(e){this.store.dispatch(new op.d(this.windowId,{script:e}))}updatePostRequestEnabled(e){this.store.dispatch(new op.c(this.windowId,{enabled:e}))}addQueryToEditor(e){this.store.dispatch(new C.N(`${this.query}\n${e.query}`,this.windowId)),e.meta.hasArgs&&this.notifyService.warning("Fill in the arguments for the query!")}downloadResult(){this.store.dispatch(new C.l(this.windowId))}restoreHistory(e){this.historyList[e]&&this.store.dispatch(new C.N(this.historyList[e].query,this.windowId))}clearHistory(){this.store.dispatch(new ip.d(this.windowId,{}))}createCollectionAndSaveQueryToCollection({queryName:e="",collectionName:t=""}){this.store.dispatch(new D.b({collectionTitle:t,windowId:this.windowId,windowTitle:e})),this.onCloseAddToCollectionDialog()}saveQueryToCollection({queryName:e="",collectionId:t=0}){this.store.dispatch(new D.q({windowId:this.windowId,collectionId:t,windowTitle:e})),this.onCloseAddToCollectionDialog()}updateQueryInCollection(){this.store.dispatch(new D.x({windowId:this.windowId}))}onCloseAddToCollectionDialog(){this.toggleAddToCollectionDialog(!1)}exportSDL(){this.store.dispatch(new np.b(this.windowId))}loadSchemaFromSDL(){this.store.dispatch(new np.d(this.windowId))}onExecuteUiAction(e){e.execute()}exportWindowData(){this.store.dispatch(new T.d({windowId:this.windowId}))}trackByFn(e){return e}getWindowState(){return this.store.pipe(Object(g.q)(O.E(this.windowId)))}trackById(e,t){return t.id}};return e.\u0275fac=function(t){return new(t||e)(r.Qb(R.GqlService),r.Qb(R.NotifyService),r.Qb(g.h),r.Qb(R.WindowService),r.Qb(R.SubscriptionProviderRegistryService))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-window"]],inputs:{windowId:"windowId"},decls:82,vars:130,consts:[[1,"app-window__content"],["class","window-loader",4,"ngIf"],[3,"apiUrl","httpVerb","isSubscribed","isLoading","showDocs","selectedOperation","queryOperations","streamState","currentCollection","urlChange","httpVerbChange","sendRequest","toggleDocsChange","reloadDocsChange","addToCollectionChange","selectedOperationChange","exportWindowChange","updateQueryInCollectionChange"],[1,"main-content-area"],["data-resize-container","",1,"main-content-row"],[3,"query","gqlSchema","tabSize","variables","showVariableDialog","addQueryDepthLimit","variableToType","preRequest","postRequest","queryChange","sendRequest","variablesChange","toggleVariableDialog","addFileVariableChange","fileVariableNameChange","fileVariableIsMultipleChange","fileVariableDataChange","deleteFileVariableChange","queryEditorStateChange","showTokenInDocsChange","preRequestScriptChange","preRequestEnabledChange","postRequestScriptChange","postRequestEnabledChange"],["queryEditor",""],[3,"queryResult","responseTime","responseStatus","responseStatusText","responseHeaders","isSubscribed","subscriptionResponses","subscriptionUrl","tabSize","autoscrollSubscriptionResponses","uiActions","downloadResultChange","stopSubscriptionChange","clearSubscriptionChange","autoscrollSubscriptionResponsesChange","uiActionExecuteChange"],[3,"docView","gqlSchema","allowIntrospection","ngClass","isLoading","addQueryDepthLimit","tabSize","lastUpdatedAt","setDocViewChange","toggleDocsChange","addQueryToEditorChange","exportSDLChange","loadSchemaChange"],[1,"dialogs"],[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],["modalFooter",""],[3,"subscriptionUrl","subscriptionConnectionParams","subscriptionProviders","selectedSubscriptionProviderId","showDialog","toggleDialogChange","subscriptionUrlChange","subscriptionConnectionParamsChange","subscriptionProviderIdChange"],[3,"historyList","showDialog","toggleDialogChange","restoreHistoryChange","clearHistoryChange"],[3,"showDialog","windowTitle","collections","toggleDialogChange","saveQueryToCollectionChange","createCollectionAndSaveQueryToCollectionChange"],[3,"showDialog","heading","subheading","toggleDialog"],[3,"preRequest","preRequestScriptChange","preRequestEnabledChange"],[1,"window-loader"],[1,"window-loader__content"],["src","assets/img/logo.svg","alt","",1,"loader-img","anim",3,"ngClass"],[1,"window-loader__actions"],["track-id","cancel_request",1,"app-button","cancel-request-button",3,"click"],[1,"app-dialog-header"],[1,"app-dialog-title"],[1,"app-dialog-body"],["class","set-header-input-container",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"set-header-input-container",3,"ngClass"],["nz-checkbox","",3,"ngModel","ngModelChange"],[1,"set-header-input-column"],["placeholder","Header key",1,"set-header-input",3,"ngModel","ngModelChange","submit"],["placeholder","Header value",1,"set-header-input",3,"ngModel","ngModelChange","submit"],[1,"header-input-remove-button",3,"click"],[1,"app-dialog-footer"],["track-id","add_header",1,"app-button","active-grey","left",3,"click"],[1,"app-button","active-primary","right",3,"click"]],template:function(e,t){if(1&e&&(r.Wb(0,"div",0),r.Gc(1,"\n "),r.Ec(2,Bv,16,12,"div",1),r.hc(3,"async"),r.Gc(4,"\n "),r.Wb(5,"app-url-box",2),r.dc("urlChange",function(e){return t.setApiUrl(e)})("httpVerbChange",function(e){return t.setApiMethod(e)})("sendRequest",function(){return t.sendRequest()})("toggleDocsChange",function(){return t.toggleDocs()})("reloadDocsChange",function(){return t.reloadDocs()})("addToCollectionChange",function(){return t.toggleAddToCollectionDialog(!0)})("selectedOperationChange",function(e){return t.selectOperation(e)})("exportWindowChange",function(){return t.exportWindowData()})("updateQueryInCollectionChange",function(){return t.updateQueryInCollection()}),r.hc(6,"async"),r.hc(7,"async"),r.hc(8,"async"),r.hc(9,"async"),r.hc(10,"async"),r.hc(11,"async"),r.hc(12,"async"),r.hc(13,"async"),r.Vb(),r.Gc(14,"\n "),r.Wb(15,"div",3),r.Gc(16,"\n "),r.Wb(17,"div",4),r.Gc(18,"\n "),r.Wb(19,"app-query-editor",5,6),r.dc("queryChange",function(e){return t.updateQuery(e)})("sendRequest",function(e){return t.sendRequest(e)})("variablesChange",function(e){return t.updateVariables(e)})("toggleVariableDialog",function(e){return t.toggleVariableDialog(e)})("addFileVariableChange",function(){return t.addFileVariable()})("fileVariableNameChange",function(e){return t.updateFileVariableName(e)})("fileVariableIsMultipleChange",function(e){return t.updateFileVariableIsMultiple(e)})("fileVariableDataChange",function(e){return t.updateFileVariableData(e)})("deleteFileVariableChange",function(e){return t.deleteFileVariable(e)})("queryEditorStateChange",function(e){return t.setQueryEditorState(e)})("showTokenInDocsChange",function(e){return t.onShowTokenInDocs(e)})("preRequestScriptChange",function(e){return t.updatePreRequestScript(e)})("preRequestEnabledChange",function(e){return t.updatePreRequestEnabled(e)})("postRequestScriptChange",function(e){return t.updatePostRequestScript(e)})("postRequestEnabledChange",function(e){return t.updatePostRequestEnabled(e)}),r.hc(21,"async"),r.hc(22,"async"),r.hc(23,"async"),r.hc(24,"async"),r.hc(25,"async"),r.Vb(),r.Gc(26,"\n "),r.Wb(27,"app-query-result",7),r.dc("downloadResultChange",function(){return t.downloadResult()})("stopSubscriptionChange",function(){return t.stopSubscription()})("clearSubscriptionChange",function(){return t.clearSubscription()})("autoscrollSubscriptionResponsesChange",function(){return t.toggleAutoscrollSubscriptionResponses()})("uiActionExecuteChange",function(e){return t.onExecuteUiAction(e)}),r.hc(28,"async"),r.hc(29,"async"),r.hc(30,"async"),r.hc(31,"async"),r.hc(32,"async"),r.hc(33,"async"),r.hc(34,"async"),r.hc(35,"async"),r.hc(36,"async"),r.hc(37,"async"),r.Vb(),r.Gc(38,"\n "),r.Wb(39,"app-doc-viewer",8),r.dc("setDocViewChange",function(e){return t.setDocView(e)})("toggleDocsChange",function(){return t.toggleDocs()})("addQueryToEditorChange",function(e){return t.addQueryToEditor(e)})("exportSDLChange",function(){return t.exportSDL()})("loadSchemaChange",function(){return t.loadSchemaFromSDL()}),r.hc(40,"async"),r.hc(41,"async"),r.hc(42,"async"),r.hc(43,"async"),r.hc(44,"async"),r.hc(45,"async"),r.hc(46,"async"),r.Vb(),r.Gc(47,"\n "),r.Vb(),r.Gc(48,"\n "),r.Vb(),r.Gc(49,"\n "),r.Wb(50,"div",9),r.Gc(51,"\n "),r.Wb(52,"nz-modal",10),r.dc("nzVisibleChange",function(e){return t.toggleHeader(e)})("nzOnCancel",function(){return t.toggleHeader()}),r.Gc(53,"\n "),r.Ec(54,Wv,9,6,"ng-template",null,11,r.Fc),r.Gc(56,"\n\n "),r.Ec(57,Hv,7,4,"ng-template",null,12,r.Fc),r.Gc(59,"\n\n "),r.Ec(60,qv,12,6,"ng-template",null,13,r.Fc),r.Gc(62,"\n "),r.Vb(),r.Gc(63,"\n "),r.Wb(64,"app-subscription-url-dialog",14),r.dc("toggleDialogChange",function(e){return t.toggleSubscriptionUrlDialog(e)})("subscriptionUrlChange",function(e){return t.updateSubscriptionUrl(e)})("subscriptionConnectionParamsChange",function(e){return t.updateSubscriptionConnectionParams(e)})("subscriptionProviderIdChange",function(e){return t.updateSubscriptionProviderId(e)}),r.Vb(),r.Gc(65,"\n "),r.Wb(66,"app-history-dialog",15),r.dc("toggleDialogChange",function(e){return t.toggleHistoryDialog(e)})("restoreHistoryChange",function(e){return t.restoreHistory(e)})("clearHistoryChange",function(){return t.clearHistory()}),r.Vb(),r.Gc(67,"\n "),r.Wb(68,"app-add-collection-query-dialog",16),r.dc("toggleDialogChange",function(e){return t.toggleAddToCollectionDialog(e)})("saveQueryToCollectionChange",function(e){return t.saveQueryToCollection(e)})("createCollectionAndSaveQueryToCollectionChange",function(e){return t.createCollectionAndSaveQueryToCollection(e)}),r.hc(69,"async"),r.hc(70,"async"),r.Vb(),r.Gc(71,"\n "),r.Wb(72,"app-dialog",17),r.dc("toggleDialog",function(e){return t.togglePreRequestDialog(e)}),r.hc(73,"translate"),r.hc(74,"translate"),r.Gc(75,"\n "),r.Wb(76,"app-pre-request-editor",18),r.dc("preRequestScriptChange",function(e){return t.updatePreRequestScript(e)})("preRequestEnabledChange",function(e){return t.updatePreRequestEnabled(e)}),r.hc(77,"async"),r.Vb(),r.Gc(78,"\n "),r.Vb(),r.Gc(79,"\n "),r.Vb(),r.Gc(80,"\n"),r.Vb(),r.Gc(81,"\n")),2&e){const e=r.tc(55),n=r.tc(58),i=r.tc(61);let o=null,s=null,a=null,c=null;r.Eb(2),r.mc("ngIf",null==(o=r.ic(3,56,t.layout$))?null:o.isLoading),r.Eb(3),r.mc("apiUrl",t.apiUrl)("httpVerb",null==(s=r.ic(6,58,t.query$))?null:s.httpVerb)("isSubscribed",r.ic(7,60,t.isSubscribed$))("isLoading",null==(a=r.ic(8,62,t.layout$))?null:a.isLoading)("showDocs",r.ic(9,64,t.showDocs$))("selectedOperation",r.ic(10,66,t.selectedOperation$))("queryOperations",r.ic(11,68,t.queryOperations$))("streamState",r.ic(12,70,t.streamState$))("currentCollection",r.ic(13,72,t.currentCollection$)),r.Eb(14),r.mc("query",t.query)("gqlSchema",t.gqlSchema)("tabSize",r.ic(21,74,t.tabSize$))("variables",r.ic(22,76,t.variables$))("showVariableDialog",t.showVariableDialog)("addQueryDepthLimit",r.ic(23,78,t.addQueryDepthLimit$))("variableToType",t.variableToType)("preRequest",r.ic(24,80,t.preRequest$))("postRequest",r.ic(25,82,t.postRequest$)),r.Eb(8),r.mc("queryResult",r.ic(28,84,t.queryResult$))("responseTime",r.ic(29,86,t.responseTime$))("responseStatus",r.ic(30,88,t.responseStatus$))("responseStatusText",r.ic(31,90,t.responseStatusText$))("responseHeaders",r.ic(32,92,t.responseHeaders$))("isSubscribed",r.ic(33,94,t.isSubscribed$))("subscriptionResponses",r.ic(34,96,t.subscriptionResponses$))("subscriptionUrl",t.subscriptionUrl)("tabSize",r.ic(35,98,t.tabSize$))("autoscrollSubscriptionResponses",r.ic(36,100,t.autoscrollSubscriptionResponses$))("uiActions",r.ic(37,102,t.resultPaneUiActions$)),r.Eb(12),r.mc("docView",r.ic(40,104,t.docView$))("gqlSchema",t.gqlSchema)("allowIntrospection",r.ic(41,106,t.allowIntrospection$))("ngClass",r.pc(128,Qv,!r.ic(42,108,t.showDocs$)))("isLoading",r.ic(43,110,t.docsIsLoading$))("addQueryDepthLimit",r.ic(44,112,t.addQueryDepthLimit$))("tabSize",r.ic(45,114,t.tabSize$))("lastUpdatedAt",r.ic(46,116,t.schemaLastUpdatedAt$)),r.Eb(13),r.mc("nzVisible",t.showHeaderDialog)("nzTitle",e)("nzContent",n)("nzFooter",i),r.Eb(12),r.mc("subscriptionUrl",t.subscriptionUrl)("subscriptionConnectionParams",t.subscriptionConnectionParams)("subscriptionProviders",t.availableSubscriptionProviders)("selectedSubscriptionProviderId",t.selectedSubscriptionProviderId)("showDialog",t.showSubscriptionUrlDialog),r.Eb(2),r.mc("historyList",t.historyList)("showDialog",t.showHistoryDialog),r.Eb(2),r.mc("showDialog",t.showAddToCollectionDialog)("windowTitle",null==(c=r.ic(69,118,t.layout$))?null:c.title)("collections",r.ic(70,120,t.collections$)),r.Eb(4),r.mc("showDialog",t.showPreRequestDialog)("heading",r.ic(73,122,"PRE_REQUEST_EDITOR_HEADER"))("subheading",r.ic(74,124,"PRE_REQUEST_EDITOR_SUBTEXT")),r.Eb(4),r.mc("preRequest",r.ic(77,126,t.preRequest$))}},directives:[o.o,Ap,Lg,vv,yv.a,o.l,ha,Sv,Dv,Pv,Lv,yg,o.n,gg,ya.l,ya.o,mp],pipes:[o.b,y.c],encapsulation:2,data:{animation:[sp.a]}}),e=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Object(F.a)({checkProperties:!0}),Vv("design:paramtypes",[R.GqlService,R.NotifyService,g.h,R.WindowService,R.SubscriptionProviderRegistryService])],e),e})();var Xv=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function Yv(e,t){1&e&&(r.Wb(0,"div",73),r.Gc(1,"\n "),r.Wb(2,"div",74),r.Gc(3,"\n "),r.Wb(4,"div",75),r.Gc(5,"\n "),r.Rb(6,"img",76),r.Gc(7,"\n "),r.Vb(),r.Gc(8,"\n "),r.Wb(9,"div",77),r.Gc(10,"\n "),r.Rb(11,"span",78),r.Gc(12,"\n "),r.Rb(13,"span",78),r.Gc(14,"\n "),r.Rb(15,"span",78),r.Gc(16,"\n "),r.Vb(),r.Gc(17,"\n "),r.Vb(),r.Gc(18,"\n "),r.Vb())}function Jv(e,t){if(1&e&&(r.Gc(0,"\n "),r.Wb(1,"div",84),r.Gc(2,"\n "),r.Wb(3,"div",85),r.Gc(4),r.Vb(),r.Gc(5,"\n "),r.Vb(),r.Gc(6,"\n ")),2&e){const e=r.gc().$implicit;r.Eb(4),r.Hc(e.title)}}function Zv(e,t){if(1&e&&(r.Gc(0,"\n "),r.Rb(1,"app-element-wrapper",86),r.Gc(2,"\n ")),2&e){const e=r.gc().$implicit;r.Eb(1),r.mc("element",e.element)}}function ey(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",79),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc().togglePanelActive(n)}),r.Gc(1,"\n "),r.Rb(2,"app-icon",80),r.Gc(3,"\n "),r.Wb(4,"nz-modal",81),r.dc("nzVisibleChange",function(){r.wc(e);const n=t.$implicit;return r.gc().togglePanelActive(n)})("nzOnCancel",function(){r.wc(e);const n=t.$implicit;return r.gc().togglePanelActive(n)}),r.Gc(5,"\n "),r.Ec(6,Jv,7,1,"ng-template",null,82,r.Fc),r.Gc(8,"\n\n "),r.Ec(9,Zv,3,1,"ng-template",null,83,r.Fc),r.Gc(11,"\n "),r.Vb(),r.Gc(12,"\n "),r.Vb()}if(2&e){const e=t.$implicit,n=r.tc(7),i=r.tc(10);r.mc("nzSelected",e.isActive)("popper",e.title)("popperPlacement","bottom"),r.Eb(4),r.mc("nzVisible",e.isActive)("nzTitle",n)("nzContent",i)("nzFooter",null)}}function ty(e,t){if(1&e&&(r.Wb(0,"span"),r.Gc(1,"\n "),r.Rb(2,"app-icon",87),r.Gc(3,"\n "),r.Wb(4,"span"),r.Gc(5),r.hc(6,"async"),r.Vb(),r.Gc(7,"\n "),r.Vb()),2&e){const e=r.gc();let t=null;r.Eb(5),r.Hc(null==(t=r.ic(6,1,e.activeEnvironment$))?null:t.title)}}function ny(e,t){1&e&&(r.Wb(0,"span"),r.Gc(1,"\n "),r.Rb(2,"app-icon",88),r.Gc(3,"\n "),r.Wb(4,"span"),r.Gc(5),r.hc(6,"translate"),r.Vb(),r.Gc(7,"\n "),r.Vb()),2&e&&(r.Eb(5),r.Hc(r.ic(6,1,"NO_ENVIRONMENT_TEXT")))}const iy=function(e){return{active:e}};function ry(e,t){if(1&e){const e=r.Xb();r.Wb(0,"li",91),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc(2).selectActiveEnvironment(n.id)}),r.hc(1,"async"),r.Gc(2),r.Vb()}if(2&e){const e=t.$implicit,n=r.gc(2);r.mc("ngClass",r.pc(4,iy,e.id===r.ic(1,2,n.activeEnvironment$))),r.Eb(2),r.Ic("\n ",e.title,"\n ")}}function oy(e,t){if(1&e){const e=r.Xb();r.Ub(0),r.Gc(1,"\n "),r.Ec(2,ry,3,6,"li",89),r.hc(3,"async"),r.Gc(4,"\n "),r.Wb(5,"li",14),r.dc("click",function(){return r.wc(e),r.gc().selectActiveEnvironment(null)}),r.Gc(6),r.hc(7,"translate"),r.Vb(),r.Gc(8,"\n "),r.Rb(9,"li",90),r.Gc(10,"\n "),r.Tb()}if(2&e){const e=r.gc();r.Eb(2),r.mc("ngForOf",r.ic(3,3,e.environments$).subEnvironments)("ngForTrackBy",e.trackById),r.Eb(4),r.Ic("\n ",r.ic(7,5,"NO_ENVIRONMENT_TEXT"),"\n ")}}function sy(e,t){if(1&e&&r.Rb(0,"nz-alert",92),2&e){r.gc();const e=r.tc(87);r.mc("nzMessage",e)}}function ay(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"span",93),r.Gc(2,"\n Disclaimer: The web app has limitations enforced by the WHATWG spec. For the best experience and functionality, use the desktop app or browser extensions instead.\n "),r.Vb(),r.Gc(3,"\n "),r.Wb(4,"button",94),r.dc("click",function(t){return r.wc(e),r.gc().openWebAppLimitationPost(t)}),r.Gc(5,"Learn more"),r.Vb(),r.Gc(6,"\n ")}}const cy=function(e){return{"side-menu-item--active":e}};function ly(e,t){if(1&e){const e=r.Xb();r.Wb(0,"a",95),r.dc("click",function(){r.wc(e);const n=t.$implicit;return r.gc().togglePanelActive(n)}),r.Gc(1,"\n "),r.Wb(2,"div",25),r.Gc(3,"\n "),r.Rb(4,"app-icon",80),r.Gc(5,"\n "),r.Vb(),r.Gc(6,"\n "),r.Wb(7,"div",27),r.Gc(8),r.Vb(),r.Gc(9,"\n "),r.Vb()}if(2&e){const e=t.$implicit;r.mc("ngClass",r.pc(3,cy,e.isActive)),r.Fb("aria-label",e.title),r.Eb(8),r.Ic("\n ",e.title,"\n ")}}function uy(e,t){if(1&e&&r.Rb(0,"app-element-wrapper",86),2&e){const e=r.gc().$implicit;r.mc("element",e.element)}}function hy(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Ec(2,uy,1,1,"app-element-wrapper",96),r.Gc(3,"\n "),r.Tb()),2&e){const e=t.$implicit;r.Eb(2),r.mc("ngIf",e.isActive)}}function dy(e,t){if(1&e&&(r.Ub(0),r.Gc(1,"\n "),r.Rb(2,"app-window",97),r.Gc(3,"\n "),r.Tb()),2&e){const e=t.$implicit,n=r.gc();r.Eb(2),r.Ib("hide",e!==n.activeWindowId),r.mc("windowId",e)}}function py(e,t){if(1&e){const e=r.Xb();r.Wb(0,"nz-alert",98),r.dc("nzOnClose",function(){return r.wc(e),r.gc().hideDonationAlert()}),r.Vb()}if(2&e){r.gc();const e=r.tc(331);r.mc("nzMessage",e)}}function fy(e,t){if(1&e){const e=r.Xb();r.Gc(0,"\n "),r.Wb(1,"span",93),r.Gc(2,"\n Do you find this app useful? Would you mind supporting its development?\n "),r.Vb(),r.Gc(3,"\n "),r.Wb(4,"button",99),r.dc("click",function(t){return r.wc(e),r.gc().openDonationPage(t)}),r.Gc(5,"Donate"),r.Vb(),r.Gc(6,"\n ")}}const gy=function(e){return{"app-header__logo-wrapper--experimental":e}};let my=(()=>{let e=class{constructor(e,t,n,i,r,o,s,f,y,w,_){this.windowService=e,this.store=t,this.translate=n,this.donationService=i,this.electronApp=r,this.keybinder=o,this.pluginRegistry=s,this.pluginEvent=f,this.collectionService=y,this.themeRegistry=w,this.altairConfig=_,this.windowIds=[],this.windows={},this.closedWindows=[],this.activeWindowId="",this.isElectron=L.a,this.isReady=!1,this.showDonationAlert=!1,this.showImportCurlDialog=!1,this.showEditCollectionDialog=!1,this.showCollections=!1,this.appVersion=A.a.version,this.isWebApp=_.isWebApp,this.settings$=this.store.pipe(Object(g.q)("settings")).pipe(Object(a.a)()),this.theme$=this.settings$.pipe(Object(c.a)(e=>{const t=this.themeRegistry.getTheme(e.theme)||{isSystem:!0},n={type:{fontSize:{...e["theme.fontsize"]&&{remBase:e["theme.fontsize"]}}},editor:{...e["theme.editorFontSize"]&&{fontSize:e["theme.editorFontSize"]},...e["theme.editorFontFamily"]&&{fontFamily:{default:e["theme.editorFontFamily"]}}}};return this.themeRegistry.mergeThemes(t,n,e.themeConfig||{})})),this.collection$=this.store.select("collection"),this.windowsMeta$=this.store.select("windowsMeta"),this.environments$=this.store.select("environments"),this.sortedCollections$=this.store.select(O.D),this.activeEnvironment$=this.environments$.pipe(Object(c.a)(e=>{if(e.activeSubEnvironment)return e.subEnvironments.find(t=>t.id===e.activeSubEnvironment)})),this.sidebarPanels$=this.store.select(O.w),this.headerPanels$=this.store.select(O.e),this.setDefaultLanguage(),this.setAvailableLanguages();const C=this.getAppLanguage();Object(m.a)([this.translate.use(C),this.store.pipe(Object(l.a)(1),Object(u.a)(e=>(e.settings["plugin.list"]&&e.settings["plugin.list"].forEach(e=>{const t=this.pluginRegistry.getPluginInfoFromString(e);t&&this.pluginRegistry.fetchPlugin(t.name,t)}),Object(b.a)(this.pluginRegistry.pluginsReady()))),Object(h.a)(7e3),Object(d.a)(e=>Object(v.a)("Plugins were not ready on time!")))]).pipe(Object(F.b)(this)).subscribe(()=>{this.isReady=!0,this.pluginEvent.emit("app-ready",!0)}),this.settings$.pipe(Object(c.a)(e=>e.language),Object(p.a)(e=>!!e),Object(a.a)(),Object(F.b)(this)).subscribe(e=>{this.translate.use(e)}),this.electronApp.connect(),this.keybinder.connect(),this.windowIds$=this.store.select("windows").pipe(Object(c.a)(e=>Object.keys(e))),this.store.pipe(Object(F.b)(this)).subscribe(e=>{this.windows=e.windows,this.windowIds=Object.keys(e.windows),this.closedWindows=e.local.closedWindows,this.showDonationAlert=e.donation.showAlert,this.showImportCurlDialog=e.windowsMeta.showImportCurlDialog,this.showEditCollectionDialog=e.windowsMeta.showEditCollectionDialog,e.windowsMeta.windowIds?this.windowIds=e.windowsMeta.windowIds.filter(e=>!!this.windows[e]):this.store.dispatch(new x.o({ids:this.windowIds})),this.activeWindowId=e.windowsMeta.activeWindowId,M.a.log(e.windows,this.windowIds),!this.windowIds.length||this.activeWindowId&&e.windows[this.activeWindowId]||this.store.dispatch(new x.l({windowId:this.windowIds[0]}))}),this.windowIds.length||this.newWindow()}setDefaultLanguage(){this.translate.setDefaultLang("default")}setAvailableLanguages(){const e=Object.keys(this.altairConfig.languages);this.translate.addLangs(e)}checkLanguageAvailability(e){return this.translate.getLangs().includes(e)}getAppLanguage(){const e=this.translate.getDefaultLang(),t=this.translate.getBrowserLang();return this.checkLanguageAvailability(t)&&!this.altairConfig.isTranslateMode?t:e}newWindow(){this.windowService.newWindow().pipe(Object(f.a)(),Object(F.b)(this)).subscribe(({url:e,windowId:t})=>{this.store.dispatch(new x.l({windowId:t})),e&&this.store.dispatch(new C.K(t))})}setActiveWindow(e){this.store.dispatch(new x.l({windowId:e}))}removeWindow(e){this.windowService.removeWindow(e).pipe(Object(F.b)(this)).subscribe()}duplicateWindow(e){this.windowService.duplicateWindow(e)}setWindowName({windowId:e="",windowName:t=""}){this.store.dispatch(new S.e(e,{title:t,setByUser:!0}))}repositionWindow({currentPosition:e,newPosition:t}){this.store.dispatch(new x.b({currentPosition:e,newPosition:t}))}reopenClosedWindow(){this.store.dispatch(new T.l)}importWindow(){this.store.dispatch(new T.g)}importWindowFromCurl(e){this.store.dispatch(new T.h({data:e}))}showSettingsDialog(){this.store.dispatch(new x.t({value:!0}))}hideSettingsDialog(){this.store.dispatch(new x.t({value:!1}))}setSettingsJson(e){this.store.dispatch(new k.b({value:e}))}setShowImportCurlDialog(e){this.store.dispatch(new x.r({value:e}))}prettifyCode(){this.store.dispatch(new C.n(this.activeWindowId))}compressQuery(){this.store.dispatch(new C.h(this.activeWindowId))}clearEditor(){this.store.dispatch(new C.N("",this.activeWindowId))}copyAsCurl(){this.store.dispatch(new C.j(this.activeWindowId))}convertToNamedQuery(){this.store.dispatch(new C.i(this.activeWindowId))}refactorQuery(){this.store.dispatch(new C.p(this.activeWindowId))}toggleHeader(e){this.store.dispatch(new E.h(this.activeWindowId))}toggleVariableDialog(e){this.store.dispatch(new E.l(this.activeWindowId))}toggleSubscriptionUrlDialog(e){this.store.dispatch(new E.k(this.activeWindowId))}toggleHistoryDialog(e){this.store.dispatch(new E.i(this.activeWindowId))}togglePreRequestDialog(e){this.store.dispatch(new E.j(this.activeWindowId))}toggleEnvironmentManager(e){this.store.dispatch(new x.q({value:e}))}togglePluginManager(e){this.store.dispatch(new x.s({value:e}))}updateBaseEnvironmentJson(e){this.store.dispatch(new z.l(e))}updateSubEnvironmentJson(e){this.store.dispatch(new z.m(e))}updateSubEnvironmentTitle(e){this.store.dispatch(new z.n(e))}addNewSubEnvironment(){this.store.dispatch(new z.b({id:_()()}))}deleteSubEnvironment(e){this.store.dispatch(new z.d(e)),this.selectActiveEnvironment()}selectActiveEnvironment(e){this.store.dispatch(new z.h({id:e}))}repositionSubEnvironments({currentPosition:e,newPosition:t}){this.store.dispatch(new z.f({currentPosition:e,newPosition:t}))}toggleCollections(){this.showCollections=!this.showCollections}loadCollections(){this.store.dispatch(new D.l)}selectQueryFromCollection({query:e,collectionId:t,windowIdInCollection:n}){const i=Object.keys(this.windows).filter(e=>this.windows[e].layout.windowIdInCollection===n);i.length?this.setActiveWindow(i[0]):this.windowService.importWindowData({...e,collectionId:t,windowIdInCollection:n},{fixedTitle:!0})}deleteQueryFromCollection({collectionId:e,query:t}){this.store.dispatch(new D.f({collectionId:e,query:t}))}deleteCollection({collectionId:e}){this.store.dispatch(new D.e({collectionId:e}))}exportCollection({collectionId:e}){this.store.dispatch(new D.h({collectionId:e}))}importCollection(){this.store.dispatch(new D.j)}toggleEditCollectionDialog({collection:e}){this.store.dispatch(new D.r({collection:e})),this.store.dispatch(new x.p({value:!0}))}setShowEditCollectionDialog(e){this.store.dispatch(new x.p({value:e}))}updateCollection({collection:e}){this.store.dispatch(new D.w({collectionId:e.id,collection:e}))}sortCollections({sortBy:e=""}){this.store.dispatch(new D.t({sortBy:e}))}togglePanelActive(e){this.store.dispatch(new j.q({panelId:e.id,isActive:!e.isActive}))}fileDropped(e){var t=this;return Object(s.a)(function*(){if(e&&e.length)try{yield t.windowService.handleImportedFile(e)}catch(n){M.a.log(n);try{yield t.collectionService.handleImportedFile(e)}catch(i){M.a.log(i)}}})()}hideDonationAlert(){this.store.dispatch(new I.b)}openDonationPage(e){this.donationService.donated(),this.externalLink(e,this.altairConfig.donation.url),this.hideDonationAlert()}openWebAppLimitationPost(e){this.externalLink(e,"https://sirmuel.design/altair-graphql-web-app-limitations-b671a0a460b8")}externalLink(e,t){if(e.preventDefault(),window.process&&window.process.versions.electron)window.require("electron").shell.openExternal(t);else{const e=window.open(t,"_blank");e&&e.focus()}}trackById(e,t){return t.id}ngOnDestroy(){}};return e.\u0275fac=function(t){return new(t||e)(r.Qb(R.WindowService),r.Qb(g.h),r.Qb(y.d),r.Qb(R.DonationService),r.Qb(R.ElectronAppService),r.Qb(R.KeybinderService),r.Qb(R.PluginRegistryService),r.Qb(P.a),r.Qb(R.QueryCollectionService),r.Qb(R.ThemeRegistryService),r.Qb(N.a))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-altair"]],decls:337,vars:171,consts:[["appFileDrop","",1,"app-wrapper",3,"appTheme","onFileDropped"],[1,"main-container"],["class","loading-screen styled",4,"ngIf"],[1,"app-header"],[1,"branding","app-header__logo-wrapper",3,"ngClass"],["src","assets/img/logo.svg","alt","logo",1,"header-logo"],[3,"windows","windowIds","activeWindowId","closedWindows","isElectron","newWindowChange","activeWindowChange","removeWindowChange","duplicateWindowChange","windowNameChange","repositionWindowChange","reopenClosedWindowChange"],[1,"header-actions"],["nz-menu","","nzMode","horizontal",1,"app-header__menu","app-header__menu-item--icon",3,"nzSelectable"],["nz-menu-item","",3,"nzSelected","popper","popperPlacement","click",4,"ngFor","ngForOf","ngForTrackBy"],["nz-menu-item","","nz-dropdown","","nzTrigger","click",3,"nzDropdownMenu"],[4,"ngIf"],["environmentsMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click"],["nz-menu-item","","nz-dropdown","","nzTrigger","click",1,"app-header__menu-item","app-header__menu-item--icon",3,"nzDropdownMenu"],["name","settings"],["settingsMenu","nzDropdownMenu"],["nzBanner","",3,"nzMessage",4,"ngIf"],["webappLimitation",""],[1,"inner-layout"],[1,"main-container-inner"],[1,"app-side-menu"],[1,"side-menu__main"],["track-id","show_set_headers",1,"side-menu-item",3,"click"],[1,"side-menu-item-icon"],["name","loader"],[1,"side-menu-item-label"],["track-id","show_set_variables",1,"side-menu-item",3,"click"],["name","box"],["track-id","show_set_subscription_url",1,"side-menu-item",3,"click"],["name","repeat"],["track-id","show_history",1,"side-menu-item",3,"click"],["name","watch"],[1,"side-menu-item",3,"click"],["name","code"],[1,"side-menu-divider"],[1,"side-menu-item"],["name","briefcase"],[1,"side-menu-item-submenu"],["track-id","prettify",1,"submenu-item",3,"click"],[1,"submenu-item-icon"],["name","sun"],[1,"submenu-item-label"],["track-id","compress_query",1,"submenu-item",3,"click"],["name","minimize-2"],["track-id","clear",1,"submenu-item",3,"click"],["name","trash-2"],["track-id","copy_as_curl",1,"submenu-item",3,"click"],["name","terminal"],["track-id","convert_to_named_query",1,"submenu-item",3,"click"],["name","tag"],[1,"submenu-item",3,"click"],["name","disc"],[1,"side-menu__panels"],["class","side-menu-item",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"side-menu__main-bottom"],["name","grid"],["track-id","show_collections",1,"side-menu-item",3,"ngClass","click"],["name","folder"],[1,"side-menu__extra"],[3,"showCollections","collections","sortBy","loadCollectionsChange","selectQueryChange","deleteQueryChange","deleteCollectionChange","editCollectionChange","exportCollectionChange","importCollectionChange","sortCollectionsChange"],[1,"sidebar__panels"],[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngFor","ngForOf"],[1,"dialogs"],[3,"showEnvironmentManager","environments","toggleDialogChange","baseEnvironmentJsonChange","subEnvironmentJsonChange","subEnvironmentTitleChange","addSubEnvironmentChange","deleteSubEnvironmentChange","repositionSubEnvironmentsChange"],[3,"showPluginManager","settings","toggleDialogChange","settingsJsonChange"],[3,"showSettingsDialog","settings","appVersion","toggleDialogChange","settingsJsonChange"],[3,"showImportCurlDialog","toggleDialogChange","importCurlChange"],[3,"showEditCollectionDialog","collection","toggleDialogChange","updateCollectionChange"],["nzBanner","","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["supportDevelopment",""],[1,"loading-screen","styled"],[1,"loading-screen-inner"],[1,"loading-screen-logo-container"],["src","assets/img/logo_350.svg","alt","Altair"],[1,"loading-screen-loading-indicator"],[1,"loading-indicator-dot"],["nz-menu-item","",3,"nzSelected","popper","popperPlacement","click"],["name","cpu"],[3,"nzVisible","nzTitle","nzContent","nzFooter","nzVisibleChange","nzOnCancel"],["modalTitle",""],["modalContent",""],[1,"app-dialog-header"],[1,"app-dialog-title"],[3,"element"],["name","eye"],["name","eye-off"],["nz-menu-item","",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["nz-menu-divider",""],["nz-menu-item","",3,"ngClass","click"],["nzBanner","",3,"nzMessage"],[1,"alert-text"],["track-id","web_app_disclaimer_learn_more",1,"btn","alert-action",3,"click"],[1,"side-menu-item",3,"ngClass","click"],[3,"element",4,"ngIf"],[3,"windowId"],["nzBanner","","nzCloseable","",3,"nzMessage","nzOnClose"],["track-id","donate",1,"btn","alert-action",3,"click"]],template:function(e,t){if(1&e&&(r.Wb(0,"div",0),r.dc("onFileDropped",function(e){return t.fileDropped(e)}),r.hc(1,"async"),r.Gc(2,"\n"),r.Wb(3,"nz-layout",1),r.Gc(4,"\n "),r.Ec(5,Yv,19,0,"div",2),r.Gc(6,"\n "),r.Wb(7,"nz-header",3),r.Gc(8,"\n "),r.Wb(9,"div",4),r.hc(10,"async"),r.Gc(11,"\n "),r.Rb(12,"img",5),r.Gc(13,"\n "),r.Vb(),r.Gc(14,"\n\n "),r.Wb(15,"app-window-switcher",6),r.dc("newWindowChange",function(){return t.newWindow()})("activeWindowChange",function(e){return t.setActiveWindow(e)})("removeWindowChange",function(e){return t.removeWindow(e)})("duplicateWindowChange",function(e){return t.duplicateWindow(e)})("windowNameChange",function(e){return t.setWindowName(e)})("repositionWindowChange",function(e){return t.repositionWindow(e)})("reopenClosedWindowChange",function(){return t.reopenClosedWindow()}),r.Vb(),r.Gc(16,"\n "),r.Wb(17,"div",7),r.Gc(18,"\n "),r.Wb(19,"ul",8),r.Gc(20,"\n\n "),r.Ec(21,ey,13,7,"li",9),r.hc(22,"async"),r.Gc(23,"\n\n "),r.Wb(24,"li",10),r.Gc(25,"\n "),r.Ec(26,ty,8,3,"span",11),r.hc(27,"async"),r.Gc(28,"\n "),r.Ec(29,ny,8,3,"span",11),r.hc(30,"async"),r.Gc(31,"\n "),r.Vb(),r.Gc(32,"\n "),r.Wb(33,"nz-dropdown-menu",null,12),r.Gc(35,"\n "),r.Wb(36,"ul",13),r.Gc(37,"\n "),r.Ec(38,oy,11,7,"ng-container",11),r.hc(39,"async"),r.Gc(40,"\n "),r.Wb(41,"li",14),r.dc("click",function(){return t.toggleEnvironmentManager(!0)}),r.Gc(42),r.hc(43,"translate"),r.Vb(),r.Gc(44,"\n "),r.Vb(),r.Gc(45,"\n "),r.Vb(),r.Gc(46,"\n "),r.Wb(47,"li",15),r.Gc(48,"\n "),r.Rb(49,"app-icon",16),r.Gc(50,"\n "),r.Vb(),r.Gc(51,"\n "),r.Wb(52,"nz-dropdown-menu",null,17),r.Gc(54,"\n "),r.Wb(55,"ul",13),r.Gc(56,"\n "),r.Wb(57,"li",14),r.dc("click",function(){return t.importWindow()}),r.Gc(58),r.hc(59,"translate"),r.Vb(),r.Gc(60,"\n "),r.Wb(61,"li",14),r.dc("click",function(){return t.setShowImportCurlDialog(!0)}),r.Gc(62),r.hc(63,"translate"),r.Vb(),r.Gc(64,"\n "),r.Wb(65,"li",14),r.dc("click",function(){return t.showSettingsDialog()}),r.Gc(66),r.hc(67,"translate"),r.Vb(),r.Gc(68,"\n "),r.Wb(69,"li",14),r.dc("click",function(e){return t.externalLink(e,"https://github.com/imolorhe/altair")}),r.Gc(70),r.hc(71,"translate"),r.Vb(),r.Gc(72,"\n "),r.Wb(73,"li",14),r.dc("click",function(e){return t.externalLink(e,"https://github.com/imolorhe/altair/issues/new?template=Bug_report.md")}),r.Gc(74),r.hc(75,"translate"),r.Vb(),r.Gc(76,"\n "),r.Vb(),r.Gc(77,"\n "),r.Vb(),r.Gc(78,"\n "),r.Vb(),r.Gc(79,"\n "),r.Vb(),r.Gc(80,"\n "),r.Vb(),r.Gc(81,"\n "),r.Wb(82,"nz-layout"),r.Gc(83,"\n "),r.Ec(84,sy,1,1,"nz-alert",18),r.Gc(85,"\n "),r.Ec(86,ay,7,0,"ng-template",null,19,r.Fc),r.Gc(88,"\n "),r.Wb(89,"nz-layout",20),r.Gc(90,"\n "),r.Wb(91,"nz-content",21),r.Gc(92,"\n "),r.Wb(93,"div",22),r.Gc(94,"\n "),r.Wb(95,"div",23),r.Gc(96,"\n "),r.Wb(97,"a",24),r.dc("click",function(){return t.toggleHeader(!0)}),r.hc(98,"translate"),r.Gc(99,"\n "),r.Wb(100,"div",25),r.Gc(101,"\n "),r.Rb(102,"app-icon",26),r.Gc(103,"\n "),r.Vb(),r.Gc(104,"\n "),r.Wb(105,"div",27),r.Gc(106),r.hc(107,"translate"),r.Vb(),r.Gc(108,"\n "),r.Vb(),r.Gc(109,"\n "),r.Wb(110,"a",28),r.dc("click",function(){return t.toggleVariableDialog()}),r.hc(111,"translate"),r.Gc(112,"\n "),r.Wb(113,"div",25),r.Gc(114,"\n "),r.Rb(115,"app-icon",29),r.Gc(116,"\n "),r.Vb(),r.Gc(117,"\n "),r.Wb(118,"div",27),r.Gc(119),r.hc(120,"translate"),r.Vb(),r.Gc(121,"\n "),r.Vb(),r.Gc(122,"\n "),r.Wb(123,"a",30),r.dc("click",function(){return t.toggleSubscriptionUrlDialog(!0)}),r.hc(124,"translate"),r.Gc(125,"\n "),r.Wb(126,"div",25),r.Gc(127,"\n "),r.Rb(128,"app-icon",31),r.Gc(129,"\n "),r.Vb(),r.Gc(130,"\n "),r.Wb(131,"div",27),r.Gc(132),r.hc(133,"translate"),r.Vb(),r.Gc(134,"\n "),r.Vb(),r.Gc(135,"\n "),r.Wb(136,"a",32),r.dc("click",function(){return t.toggleHistoryDialog(!0)}),r.hc(137,"translate"),r.Gc(138,"\n "),r.Wb(139,"div",25),r.Gc(140,"\n "),r.Rb(141,"app-icon",33),r.Gc(142,"\n "),r.Vb(),r.Gc(143,"\n "),r.Wb(144,"div",27),r.Gc(145),r.hc(146,"translate"),r.Vb(),r.Gc(147,"\n "),r.Vb(),r.Gc(148,"\n "),r.Wb(149,"a",34),r.dc("click",function(){return t.togglePreRequestDialog(!0)}),r.hc(150,"translate"),r.Gc(151,"\n "),r.Wb(152,"div",25),r.Gc(153,"\n "),r.Rb(154,"app-icon",35),r.Gc(155,"\n "),r.Vb(),r.Gc(156,"\n "),r.Wb(157,"div",27),r.Gc(158),r.hc(159,"translate"),r.Vb(),r.Gc(160,"\n "),r.Vb(),r.Gc(161,"\n "),r.Rb(162,"div",36),r.Gc(163,"\n "),r.Wb(164,"div",37),r.Gc(165,"\n "),r.Wb(166,"div",25),r.Gc(167,"\n "),r.Rb(168,"app-icon",38),r.Gc(169,"\n "),r.Vb(),r.Gc(170,"\n "),r.Wb(171,"div",39),r.Gc(172,"\n "),r.Wb(173,"a",40),r.dc("click",function(){return t.prettifyCode()}),r.hc(174,"translate"),r.Gc(175,"\n "),r.Wb(176,"div",41),r.Gc(177,"\n "),r.Rb(178,"app-icon",42),r.Gc(179,"\n "),r.Vb(),r.Gc(180,"\n "),r.Wb(181,"div",43),r.Gc(182),r.hc(183,"translate"),r.Vb(),r.Gc(184,"\n "),r.Vb(),r.Gc(185,"\n "),r.Wb(186,"a",44),r.dc("click",function(){return t.compressQuery()}),r.hc(187,"translate"),r.Gc(188,"\n "),r.Wb(189,"div",41),r.Gc(190,"\n "),r.Rb(191,"app-icon",45),r.Gc(192,"\n "),r.Vb(),r.Gc(193,"\n "),r.Wb(194,"div",43),r.Gc(195),r.hc(196,"translate"),r.Vb(),r.Gc(197,"\n "),r.Vb(),r.Gc(198,"\n "),r.Wb(199,"a",46),r.dc("click",function(){return t.clearEditor()}),r.hc(200,"translate"),r.Gc(201,"\n "),r.Wb(202,"div",41),r.Gc(203,"\n "),r.Rb(204,"app-icon",47),r.Gc(205,"\n "),r.Vb(),r.Gc(206,"\n "),r.Wb(207,"div",43),r.Gc(208),r.hc(209,"translate"),r.Vb(),r.Gc(210,"\n "),r.Vb(),r.Gc(211,"\n "),r.Wb(212,"a",48),r.dc("click",function(){return t.copyAsCurl()}),r.hc(213,"translate"),r.Gc(214,"\n "),r.Wb(215,"div",41),r.Gc(216,"\n "),r.Rb(217,"app-icon",49),r.Gc(218,"\n "),r.Vb(),r.Gc(219,"\n "),r.Wb(220,"div",43),r.Gc(221),r.hc(222,"translate"),r.Vb(),r.Gc(223,"\n "),r.Vb(),r.Gc(224,"\n "),r.Wb(225,"a",50),r.dc("click",function(){return t.convertToNamedQuery()}),r.hc(226,"translate"),r.Gc(227,"\n "),r.Wb(228,"div",41),r.Gc(229,"\n "),r.Rb(230,"app-icon",51),r.Gc(231,"\n "),r.Vb(),r.Gc(232,"\n "),r.Wb(233,"div",43),r.Gc(234),r.hc(235,"translate"),r.Vb(),r.Gc(236,"\n "),r.Vb(),r.Gc(237,"\n "),r.Wb(238,"a",52),r.dc("click",function(){return t.refactorQuery()}),r.hc(239,"translate"),r.Gc(240,"\n "),r.Wb(241,"div",41),r.Gc(242,"\n "),r.Rb(243,"app-icon",53),r.Gc(244,"\n "),r.Vb(),r.Gc(245,"\n "),r.Wb(246,"div",43),r.Gc(247),r.hc(248,"translate"),r.Vb(),r.Gc(249,"\n "),r.Vb(),r.Gc(250,"\n "),r.Vb(),r.Gc(251,"\n "),r.Vb(),r.Gc(252,"\n "),r.Rb(253,"div",36),r.Gc(254,"\n \n "),r.Wb(255,"div",54),r.Gc(256,"\n "),r.Ec(257,ly,10,5,"a",55),r.hc(258,"async"),r.Gc(259,"\n "),r.Vb(),r.Gc(260,"\n \n "),r.Wb(261,"div",56),r.Gc(262,"\n "),r.Wb(263,"a",34),r.dc("click",function(){return t.togglePluginManager(!0)}),r.hc(264,"translate"),r.Gc(265,"\n "),r.Wb(266,"div",25),r.Gc(267,"\n "),r.Rb(268,"app-icon",57),r.Gc(269,"\n "),r.Vb(),r.Gc(270,"\n "),r.Wb(271,"div",27),r.Gc(272),r.hc(273,"translate"),r.Vb(),r.Gc(274,"\n "),r.Vb(),r.Gc(275,"\n "),r.Wb(276,"a",58),r.dc("click",function(){return t.toggleCollections()}),r.hc(277,"translate"),r.Gc(278,"\n "),r.Wb(279,"div",25),r.Gc(280,"\n "),r.Rb(281,"app-icon",59),r.Gc(282,"\n "),r.Vb(),r.Gc(283,"\n "),r.Wb(284,"div",27),r.Gc(285),r.hc(286,"translate"),r.Vb(),r.Gc(287,"\n "),r.Vb(),r.Gc(288,"\n "),r.Vb(),r.Gc(289,"\n "),r.Vb(),r.Gc(290,"\n "),r.Wb(291,"div",60),r.Gc(292,"\n "),r.Wb(293,"app-query-collections",61),r.dc("loadCollectionsChange",function(){return t.loadCollections()})("selectQueryChange",function(e){return t.selectQueryFromCollection(e)})("deleteQueryChange",function(e){return t.deleteQueryFromCollection(e)})("deleteCollectionChange",function(e){return t.deleteCollection(e)})("editCollectionChange",function(e){return t.toggleEditCollectionDialog(e)})("exportCollectionChange",function(e){return t.exportCollection(e)})("importCollectionChange",function(){return t.importCollection()})("sortCollectionsChange",function(e){return t.sortCollections(e)}),r.hc(294,"async"),r.hc(295,"async"),r.Vb(),r.Gc(296,"\n "),r.Vb(),r.Gc(297,"\n "),r.Wb(298,"div",62),r.Gc(299,"\n "),r.Ec(300,hy,4,1,"ng-container",63),r.hc(301,"async"),r.Gc(302,"\n "),r.Vb(),r.Gc(303,"\n "),r.Vb(),r.Gc(304,"\n "),r.Ec(305,dy,4,3,"ng-container",64),r.Gc(306,"\n "),r.Vb(),r.Gc(307,"\n "),r.Wb(308,"div",65),r.Gc(309,"\n "),r.Wb(310,"app-environment-manager",66),r.dc("toggleDialogChange",function(e){return t.toggleEnvironmentManager(!!e)})("baseEnvironmentJsonChange",function(e){return t.updateBaseEnvironmentJson(e)})("subEnvironmentJsonChange",function(e){return t.updateSubEnvironmentJson(e)})("subEnvironmentTitleChange",function(e){return t.updateSubEnvironmentTitle(e)})("addSubEnvironmentChange",function(){return t.addNewSubEnvironment()})("deleteSubEnvironmentChange",function(e){return t.deleteSubEnvironment(e)})("repositionSubEnvironmentsChange",function(e){return t.repositionSubEnvironments(e)}),r.hc(311,"async"),r.hc(312,"async"),r.Vb(),r.Gc(313,"\n "),r.Wb(314,"app-plugin-manager",67),r.dc("toggleDialogChange",function(e){return t.togglePluginManager(!!e)})("settingsJsonChange",function(e){return t.setSettingsJson(e)}),r.hc(315,"async"),r.hc(316,"async"),r.Vb(),r.Gc(317,"\n "),r.Wb(318,"app-settings-dialog",68),r.dc("toggleDialogChange",function(e){return e?t.showSettingsDialog():t.hideSettingsDialog()})("settingsJsonChange",function(e){return t.setSettingsJson(e)}),r.hc(319,"async"),r.hc(320,"async"),r.Vb(),r.Gc(321,"\n "),r.Wb(322,"app-import-curl-dialog",69),r.dc("toggleDialogChange",function(e){return t.setShowImportCurlDialog(e)})("importCurlChange",function(e){return t.importWindowFromCurl(e)}),r.Vb(),r.Gc(323,"\n "),r.Wb(324,"app-edit-collection-dialog",70),r.dc("toggleDialogChange",function(e){return t.setShowEditCollectionDialog(e)})("updateCollectionChange",function(e){return t.updateCollection(e)}),r.hc(325,"async"),r.Vb(),r.Gc(326,"\n "),r.Vb(),r.Gc(327,"\n "),r.Ec(328,py,1,1,"nz-alert",71),r.Gc(329,"\n "),r.Ec(330,fy,7,0,"ng-template",null,72,r.Fc),r.Gc(332,"\n "),r.Vb(),r.Gc(333,"\n "),r.Vb(),r.Gc(334,"\n "),r.Vb(),r.Gc(335,"\n"),r.Vb(),r.Gc(336,"\n")),2&e){const e=r.tc(34),n=r.tc(53);let i=null,o=null,s=null,a=null,c=null,l=null,u=null;r.mc("appTheme",r.ic(1,69,t.theme$)),r.Eb(5),r.mc("ngIf",!t.isReady),r.Eb(4),r.mc("ngClass",r.pc(167,gy,null==(i=r.ic(10,71,t.settings$))?null:i.enableExperimental)),r.Eb(6),r.mc("windows",t.windows)("windowIds",t.windowIds)("activeWindowId",t.activeWindowId)("closedWindows",t.closedWindows)("isElectron",t.isElectron),r.Eb(4),r.mc("nzSelectable",!1),r.Eb(2),r.mc("ngForOf",r.ic(22,73,t.headerPanels$))("ngForTrackBy",t.trackById),r.Eb(3),r.mc("nzDropdownMenu",e),r.Eb(2),r.mc("ngIf",r.ic(27,75,t.activeEnvironment$)),r.Eb(3),r.mc("ngIf",!r.ic(30,77,t.activeEnvironment$)),r.Eb(9),r.mc("ngIf",null==(o=r.ic(39,79,t.environments$))?null:o.subEnvironments.length),r.Eb(4),r.Ic("\n ",r.ic(43,81,"ENVIRONMENTS_BUTTON"),"...\n "),r.Eb(5),r.mc("nzDropdownMenu",n),r.Eb(11),r.Hc(r.ic(59,83,"IMPORT_WINDOW_TEXT")),r.Eb(4),r.Hc(r.ic(63,85,"IMPORT_WINDOW_FROM_CURL_TEXT")),r.Eb(4),r.Hc(r.ic(67,87,"SETTINGS_TEXT")),r.Eb(4),r.Hc(r.ic(71,89,"STAR_ON_GITHUB_TEXT")),r.Eb(4),r.Hc(r.ic(75,91,"REPORT_BUG_TEXT")),r.Eb(10),r.mc("ngIf",t.isWebApp),r.Eb(13),r.Fb("aria-label",r.ic(98,93,"SET_HEADERS_BUTTON")),r.Eb(9),r.Ic("\n ",r.ic(107,95,"SET_HEADERS_BUTTON"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(111,97,"SET_VARIABLES_BUTTON")),r.Eb(9),r.Ic("\n ",r.ic(120,99,"SET_VARIABLES_BUTTON"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(124,101,"SUBSCRIPTION_URL_TEXT")),r.Eb(9),r.Ic("\n ",r.ic(133,103,"SUBSCRIPTION_URL_TEXT"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(137,105,"HISTORY_TEXT")),r.Eb(9),r.Ic("\n ",r.ic(146,107,"HISTORY_TEXT"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(150,109,"PRE_REQUEST_EDITOR_HEADER")),r.Eb(9),r.Ic("\n ",r.ic(159,111,"PRE_REQUEST_EDITOR_HEADER"),"\n "),r.Eb(15),r.Fb("aria-label",r.ic(174,113,"PRETTIFY_BUTTON")),r.Eb(9),r.Ic("\n ",r.ic(183,115,"PRETTIFY_BUTTON"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(187,117,"COMPRESS_QUERY_BUTTON")),r.Eb(9),r.Ic("\n ",r.ic(196,119,"COMPRESS_QUERY_BUTTON"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(200,121,"CLEAR_BUTTON")),r.Eb(9),r.Ic("\n ",r.ic(209,123,"CLEAR_BUTTON"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(213,125,"COPY_AS_CURL_BUTTON")),r.Eb(9),r.Ic("\n ",r.ic(222,127,"COPY_AS_CURL_BUTTON"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(226,129,"CONVERT_TO_NAMED_QUERY_BUTTON")),r.Eb(9),r.Ic("\n ",r.ic(235,131,"CONVERT_TO_NAMED_QUERY_BUTTON"),"\n "),r.Eb(4),r.Fb("aria-label",r.ic(239,133,"REFACTOR_QUERY_BUTTON")),r.Eb(9),r.Ic("\n ",r.ic(248,135,"REFACTOR_QUERY_BUTTON"),"\n "),r.Eb(10),r.mc("ngForOf",r.ic(258,137,t.sidebarPanels$))("ngForTrackBy",t.trackById),r.Eb(6),r.Fb("aria-label",r.ic(264,139,"PLUGINS_TEXT")),r.Eb(9),r.Ic("\n ",r.ic(273,141,"PLUGINS_TEXT"),"\n "),r.Eb(4),r.mc("ngClass",r.pc(169,cy,t.showCollections)),r.Fb("aria-label",r.ic(277,143,"COLLECTIONS_TEXT")),r.Eb(9),r.Ic("\n ",r.ic(286,145,"COLLECTIONS_TEXT"),"\n "),r.Eb(8),r.mc("showCollections",t.showCollections)("collections",r.ic(294,147,t.sortedCollections$))("sortBy",null==(s=r.ic(295,149,t.collection$))?null:s.sortBy),r.Eb(7),r.mc("ngForOf",r.ic(301,151,t.sidebarPanels$))("ngForTrackBy",t.trackById),r.Eb(5),r.mc("ngForOf",t.windowIds),r.Eb(5),r.mc("showEnvironmentManager",null==(a=r.ic(311,153,t.windowsMeta$))?null:a.showEnvironmentManager)("environments",r.ic(312,155,t.environments$)),r.Eb(4),r.mc("showPluginManager",null==(c=r.ic(315,157,t.windowsMeta$))?null:c.showPluginManager)("settings",r.ic(316,159,t.settings$)),r.Eb(4),r.mc("showSettingsDialog",null==(l=r.ic(319,161,t.windowsMeta$))?null:l.showSettingsDialog)("settings",r.ic(320,163,t.settings$))("appVersion",t.appVersion),r.Eb(4),r.mc("showImportCurlDialog",t.showImportCurlDialog),r.Eb(2),r.mc("showEditCollectionDialog",t.showEditCollectionDialog)("collection",null==(u=r.ic(325,165,t.collection$))?null:u.activeCollection),r.Eb(4),r.mc("ngIf",t.showDonationAlert)}},directives:[V,de,nt,o.o,et,o.l,Er,Ve.c,o.n,Ki.a,Ve.e,Sr.a,Sr.c,Xi.a,Ze,is,Ra,Ua,kd,jd,Md,Mo,ha,Pd,Ve.d,Yd,Kv],pipes:[o.b,y.c],encapsulation:2}),e=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Object(F.a)({checkProperties:!0}),Xv("design:paramtypes",[R.WindowService,g.h,y.d,R.DonationService,R.ElectronAppService,R.KeybinderService,R.PluginRegistryService,P.a,R.QueryCollectionService,R.ThemeRegistryService,N.a])],e),e})(),by=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Kb({type:e,selectors:[["app-root"]],decls:2,vars:0,template:function(e,t){1&e&&(r.Rb(0,"app-altair"),r.Gc(1,"\n"))},directives:[my],encapsulation:2}),e})();var vy=n("tk/3"),yy=n("9jGm"),wy=n("agSv");class _y{constructor(e,t="/assets/i18n/",n=".json"){this.http=e,this.prefix=t,this.suffix=n}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}}var Oy=n("ReVU"),Cy=n("31Lz"),Ey=n("EzuI"),Sy=n("dPL8"),Ty=n("8mtn");const xy={AlertTriangle:'\n \n',AlertCircle:'\n \n',Archive:'\n \n',ArrowLeft:'\n \n',Book:'\n \n',Box:'\n \n',Briefcase:'\n \n',CheckCircle:'\n \n',ChevronDown:'\n \n',Circle:'\n \n',Clock:'\n \n',Code:'\n \n',Copy:'\n \n',Cpu:'\n \n',Camera:'\n \n',Disc:'\n \n',Download:'\n \n',Edit:'\n \n',Eye:'\n \n',EyeOff:'\n \n',File:'\n \n',FilePlus:'\n \n',Folder:'\n \n',FolderMinus:'\n \n',FolderPlus:'\n \n',Github:'\n \n',Grid:'\n \n',Heart:'\n \n',Home:'\n \n',Info:'\n \n',MoreVertical:'\n \n',MoreHorizontal:'\n \n',Paperclip:'\n \n',RefreshCcw:'\n \n',Settings:'\n \n',Save:'\n \n',Trash2:'\n \n',Loader:'\n \n',LogIn:'',Minimize2:'\n \n',PlusSquare:'\n \n',PlusCircle:'\n \n',Repeat:'\n \n',Sidebar:'\n \n',Sun:'\n \n',Terminal:'\n \n',Tag:'\n \n',Watch:'\n \n',X:'\n \n',XCircle:'\n \n',XSquare:'\n \n'};let ky=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c,Ty.b.pick(xy)],Ty.b]}),e})();const Iy=[ys.c,Hc,jc,yl,mg,Ic,ag,qu,ma,Sr.b,Vc,bd,Im,Jd,rt,Ve.f,ac,lr,tv];let Dy=(()=>{class e{static forRoot(){return{ngModule:e,providers:[]}}}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c,y.b.forRoot(),Cy.b,Qi,sv.b,Ey.b,Gt.forRoot(),Fo.forRoot({applyClass:"tooltip-content",trigger:"hover"}),Na.b.forRoot(),ky,Sy.a.forRoot({position:"top-center",reverseOrder:!0,dismissible:!0,closeStyle:{backgroundImage:"none"}}),...Iy],y.b,Cy.b,Qi,sv.b,Gt,Ey.b,Fo,Na.b,ky,Sy.a,ys.c,Hc,jc,yl,mg,Ic,ag,qu,ma,Sr.b,Vc,bd,Im,Jd,rt,Ve.f,ac,lr,tv]}),e})();var zy=n("zp1y"),jy=n("g9RT"),Ay=n("W2+O"),Ry=n("nQNJ");const Ny=n("m8Fq");let Ly=(()=>{class e{constructor(e,t,n,i,r,o,s,a,l,h){this.actions$=e,this.gqlService=t,this.notifyService=n,this.dbService=i,this.donationService=r,this.electronAppService=o,this.environmentService=s,this.preRequestService=a,this.subscriptionProviderRegistryService=l,this.store=h,this.sendQueryRequest$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.r,C.c),Object(zy.a)(this.store,(e,t)=>({state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>e.action.type===C.c?(this.store.dispatch(new S.g(e.windowId)),Bc.a):(e.data.query.query||"").trim()?Object(v.a)(e):Bc.a),Object(u.a)(e=>this.getPrerequestTransformedData$(e)),Object(u.a)(e=>e?Object(v.a)(e).pipe(Object(u.a)(e=>{const{response:t,transformedData:n}=e,i=(t.data.query.query||"").trim();let r=this.environmentService.hydrate(t.data.query.url),o=this.environmentService.hydrate(t.data.variables.variables),s=this.environmentService.hydrateHeaders(t.data.headers),a=t.data.query.selectedOperation;if(n&&(r=this.environmentService.hydrate(t.data.query.url,{activeEnvironment:n.environment}),o=this.environmentService.hydrate(t.data.variables.variables,{activeEnvironment:n.environment}),s=this.environmentService.hydrateHeaders(t.data.headers,{activeEnvironment:n.environment})),!r||!Ny.isUri(r))return this.notifyService.error("The URL is invalid!"),this.store.dispatch(new S.g(t.windowId)),Bc.a;if(t.data.history.list.filter(e=>e.query&&e.query.trim()===i.trim()).length||this.store.dispatch(new ip.b(t.windowId,{query:i,limit:t.state.settings.historyDepth})),this.gqlService.isSubscriptionQuery(i))return M.a.log("Your query is a SUBSCRIPTION!!!"),this.store.dispatch(t.data.query.subscriptionUrl?new C.ab(t.windowId):new E.k(t.windowId)),Bc.a;try{const e=this.gqlService.getSelectedOperationData({query:i,selectedOperation:a,selectIfOneOperation:!0,queryCursorIndex:t.data.query.queryEditorState&&t.data.query.queryEditorState.isFocused?t.data.query.queryEditorState.cursorIndex:void 0});if(this.store.dispatch(new C.P(t.windowId,{operations:e.operations})),a=e.selectedOperation,e.requestSelectedOperationFromUser)return this.notifyService.error("You have more than one query operations.\n You need to select the one you want to run from the dropdown."),Bc.a}catch(p){return this.store.dispatch(new C.T(t.windowId,{selectedOperation:""})),this.notifyService.error(p.message),Bc.a}this.store.dispatch(new S.f(t.windowId));let l=0,h="";try{o&&JSON.parse(o)}catch(p){return this.notifyService.error("Looks like your variables is not a valid JSON string."),this.store.dispatch(new S.g(t.windowId)),Bc.a}return this.electronAppService.setHeaders(s),this.gqlService.hasInvalidFileVariable(t.data.variables.files)?(this.notifyService.error("\n You have some invalid file variables.

    \n You need to provide a file and file name, when uploading files.\n Check your files in the variables section.

    \n Note: Files don't persist after restarting Altair.\n ","Altair",{disableTimeOut:!0}),Bc.a):(M.a.log("Sending.."),this.gqlService.sendRequest(r,{query:i,variables:o,headers:s,method:t.data.query.httpVerb,selectedOperation:a,files:t.data.variables.files,withCredentials:t.state.settings["request.withCredentials"]}).pipe(Object(u.a)(e=>this.handlePostRequestTransforms$(Ry.b.QUERY,e,t)),Object(c.a)(e=>e?(l=e.data.response.status,h=e.data.response.statusText,e.data):null),Object(c.a)(e=>{const n=(null==e?void 0:e.response.body)?{...null==e?void 0:e.response.body}:null==e?void 0:e.response.body;return n&&t.state.settings["response.hideExtensions"]&&Reflect.deleteProperty(n,"extensions"),this.store.dispatch(new C.Q(n,t.windowId)),this.store.dispatch(new C.R(t.windowId,{headers:null==e?void 0:e.meta.headers})),e}),Object(d.a)(e=>{let n="Server Error. Check that your server is up and running. You can check the console for more details on the network errors.";return M.a.log(e),l=e.status,h=e.statusText,e.status&&(n=e.error),this.store.dispatch(new C.Q(n,t.windowId)),Object(v.a)(null)}),Object(c.a)(e=>{this.store.dispatch(new C.S(t.windowId,{responseStatus:l,responseTime:e?e.meta.responseTime:0,responseStatusText:h})),this.store.dispatch(new S.g(t.windowId))}),Object(d.a)(e=>(M.a.error("Error sending the request",e),Bc.a))))}),Object(d.a)(e=>(M.a.error("Error sending the request",e),Bc.a))):Bc.a)),{dispatch:!1}),this.showUrlSetAlert$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.G),Object(u.a)(e=>{const t=this.environmentService.hydrate(e.payload.url);return Ny.isUri(t)?this.notifyService.success("URL has been set."):this.notifyService.error("The URL is invalid!"),Bc.a})),{dispatch:!1}),this.getGqlSchema$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(np.f,np.g),Object(u.a)(e=>{const t=this.gqlService.getIntrospectionSchema(e.payload);return t?Object(v.a)(new np.n(e.windowId,t)):Bc.a}))),this.setSchemaSDL$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(np.i),Object(u.a)(e=>{const t=e.payload;return t&&this.gqlService.getSDL(t).then(t=>this.store.dispatch(new np.o(e.windowId,{sdl:t}))).catch(e=>{M.a.error(e);const t=e.message?e.message:e.toString();this.notifyService.error(`Could not set schema SDL. Error: ${t}`)}),Bc.a})),{dispatch:!1}),this.loadSDLSchema$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(np.c),Object(u.a)(e=>(Object(Ha.h)({accept:".gql"}).then(t=>{try{const n=this.gqlService.sdlToSchema(t);if(n)return this.notifyService.success("Loaded schema successfully"),this.store.dispatch(new np.n(e.windowId,n))}catch(n){const e=n.message?n.message:n.toString();this.notifyService.error(`There was a problem loading the schema. Error: ${e}`),M.a.error("Error while loading schema",n)}}),Bc.a))),{dispatch:!1}),this.getIntrospectionForUrl$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.q),Object(zy.a)(this.store,(e,t)=>({state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>this.getPrerequestTransformedData$(e)),Object(u.a)(e=>{if(!e)return Bc.a;const{response:t,transformedData:n}=e;let i=this.environmentService.hydrate(t.data.query.url),r=this.environmentService.hydrateHeaders(t.data.headers);return n&&(i=this.environmentService.hydrate(t.data.query.url,{activeEnvironment:n.environment}),r=this.environmentService.hydrateHeaders(t.data.headers,{activeEnvironment:n.environment})),i?(this.store.dispatch(new tp.e(t.windowId)),this.gqlService.getIntrospectionRequest(i,{method:t.data.query.httpVerb,headers:r,withCredentials:t.state.settings["request.withCredentials"]}).pipe(Object(u.a)(e=>this.handlePostRequestTransforms$(Ry.b.INTROSPECTION,e,t)),Object(d.a)(e=>{this.store.dispatch(new tp.f(t.windowId));const n=e.error||e,i=n.message?n.message:e.message?e.message:n.toString();let r=!0;return n.errors&&n.errors.forEach(e=>{"GRAPHQL_VALIDATION_ERROR"===e.code&&(r=!1)}),r?this.notifyService.error(`\n Seems like something is broken. Please check that the URL is valid,\n and the server is up and running properly.\n
    \n ${i}\n `):(this.store.dispatch(new np.k(!1,t.windowId)),this.notifyService.error("\n Looks like this server does not support introspection.\n Please check with the server administrator.\n ")),Object(v.a)(null)}),Object(c.a)(n=>{var i,r;if(this.store.dispatch(new tp.f(t.windowId)),!n)return Bc.a;const o=null===(i=n.data.response.body)||void 0===i?void 0:i.data,s=null===(r=n.data.response.headers)||void 0===r?void 0:r.get("X-GraphQL-Event-Stream");return e.response.data.stream.url===s&&e.response.data.stream.client||(this.store.dispatch(new jy.j(t.windowId,{streamUrl:s||""})),this.store.dispatch(s?new jy.k(t.windowId):new jy.l(t.windowId))),o?(this.store.dispatch(new np.k(!0,t.windowId)),this.store.dispatch(new np.m(t.windowId,{epoch:Date.now()})),this.store.dispatch(new np.l(o,t.windowId))):this.store.dispatch(new np.l(o,t.windowId)),Bc.a}),Object(d.a)(e=>(M.a.error(e),this.notifyService.error(e.message),Bc.a)))):Bc.a})),{dispatch:!1}),this.notifyExperimental$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(S.a),Object(u.a)(()=>this.dbService.getItem("exp_add_query_seen")),Object(u.a)(e=>e?Bc.a:(this.notifyService.info("\n This feature is experimental, and still in beta.\n Click here to submit bugs, improvements, etc.\n ",void 0,{data:{url:"https://github.com/imolorhe/altair/issues/new"}}),this.dbService.setItem("exp_add_query_seen",!0)))),{dispatch:!1}),this.downloadResult$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.k),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>(Object(Ha.c)(e.data.query.response,e.data.layout.title),Bc.a))),{dispatch:!1}),this.startSubscription$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.I),Object(zy.a)(this.store,(e,t)=>({state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>this.getPrerequestTransformedData$(e)),Object(u.a)(e=>{var t;if(!e)return Bc.a;const{response:n,transformedData:i}=e;let r={},o=this.environmentService.hydrate(n.data.query.subscriptionUrl),s=this.environmentService.hydrate(n.data.query.query||""),a=this.environmentService.hydrate(n.data.variables.variables),c={},l=n.data.query.selectedOperation,h=this.environmentService.hydrateHeaders(n.data.headers);i&&(o=this.environmentService.hydrate(n.data.query.subscriptionUrl,{activeEnvironment:i.environment}),s=this.environmentService.hydrate(n.data.query.query||"",{activeEnvironment:i.environment}),a=this.environmentService.hydrate(n.data.variables.variables,{activeEnvironment:i.environment}),h=this.environmentService.hydrateHeaders(n.data.headers,{activeEnvironment:i.environment})),this.electronAppService.setHeaders(h);const d=(e,t)=>(Array.isArray(e)&&(e=e[0]),this.notifyService.error(`\n An error occurred in subscription.
    \n Error: ${t=t||e.message||e.stack}\n `),this.store.dispatch(new C.bb(n.windowId)),Bc.a);try{a&&(c=JSON.parse(a))}catch(p){return d(p,"Your variables is not a valid JSON object.")}try{const e=this.gqlService.getSelectedOperationData({query:s,selectedOperation:l,queryCursorIndex:n.data.query.queryEditorState&&n.data.query.queryEditorState.isFocused?n.data.query.queryEditorState.cursorIndex:void 0,selectIfOneOperation:!0});this.store.dispatch(new C.P(n.windowId,{operations:e.operations})),l=e.selectedOperation}catch(p){return this.store.dispatch(new C.T(n.windowId,{selectedOperation:""})),this.notifyService.error(p.message),Bc.a}try{(null===(t=n.data.query.subscriptionClient)||void 0===t?void 0:t.close)&&n.data.query.subscriptionClient.close();try{const e=this.environmentService.hydrate(n.data.query.subscriptionConnectionParams);r=e?JSON.parse(e):{}}catch(p){return this.store.dispatch(new E.k(n.windowId)),d(p,"Your connection parameters is not a valid JSON object.")}const e=n.data.query.subscriptionProviderId||lp.b,{getProviderClass:i}=this.subscriptionProviderRegistryService.getProviderData(e);return Object(b.a)(i()).pipe(Object(u.a)(e=>{const t=new e(o,r,{onConnected:e=>{if(e)return M.a.log("Subscription connection error",e),d(e);M.a.log("Connected subscription.")}});try{t.execute({query:s,variables:c,operationName:l||void 0}).subscribe({next:e=>{let t="";try{t=JSON.stringify(e)}catch(p){M.a.error("Invalid subscription response format."),t="ERROR: Invalid subscription response format."}this.store.dispatch(new C.b(n.windowId,{response:t,responseObj:e,responseTime:(new Date).getTime()})),this.notifyService.pushNotify(t,n.data.layout.title,{onclick:()=>{this.store.dispatch(new x.l({windowId:n.windowId}))}}),M.a.log(e)},error:e=>(M.a.log("Err",e),d(e)),complete:()=>{M.a.log("Subscription complete.")}})}catch(i){return d(i)}return Object(v.a)(new C.U(n.windowId,{subscriptionClient:t}))}))}catch(p){return M.a.error("An error occurred starting the subscription.",p),d(p)}}))),this.stopSubscription$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.J),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>{var t;return(null===(t=e.data.query.subscriptionClient)||void 0===t?void 0:t.close)&&e.data.query.subscriptionClient.close(),Object(v.a)(new C.U(e.windowId,{subscriptionClient:null}))}))),this.prettifyQuery$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.m),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e,settings:t.settings})),Object(u.a)(e=>(this.gqlService.prettify(e.data.query.query||"",e.settings.tabSize).then(t=>{if(t)return this.store.dispatch(new C.N(t,e.windowId))}).catch(e=>{M.a.log(e);const t=e.message?e.message:e.toString();this.notifyService.error(`Your query does not appear to be valid. Please check it. Error: ${t}`)}),Bc.a))),{dispatch:!1}),this.compressQuery$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.d),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>(M.a.log("We compress.."),this.gqlService.compress(e.data.query.query||"").then(t=>{if(M.a.log("Compressed.."),t)return this.store.dispatch(new C.N(t,e.windowId))}).catch(e=>{M.a.log(e);const t=e.message?e.message:e.toString();this.notifyService.error(`Your query does not appear to be valid. Please check it. Error: ${t}`)}),Bc.a))),{dispatch:!1}),this.exportSDL$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(np.a),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>(e.data.schema.schema&&this.gqlService.getSDL(e.data.schema.schema).then(e=>{e&&Object(Ha.b)(e,"sdl",{fileType:"gql"})}).catch(e=>{const t=e.message?e.message:e.toString();this.notifyService.error(`Could not export SDL. Your schema might be invalid. Error: ${t}`)}),Bc.a))),{dispatch:!1}),this.copyAsCurl$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.f),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>{const t=this.environmentService.hydrate(e.data.query.url),n=this.environmentService.hydrate(e.data.query.query||""),i=this.environmentService.hydrate(e.data.variables.variables);try{const r=Object(Ay.a)({url:t,method:e.data.query.httpVerb,headers:e.data.headers.reduce((e,t)=>(e[t.key]=this.environmentService.hydrate(t.value),e),{}),data:{query:n,variables:JSON.parse(i)}});M.a.log(r),Object(Ha.a)(r),this.notifyService.success("Copied cURL command to clipboard.")}catch(r){M.a.log("Error while copying as curl",r)}return Bc.a})),{dispatch:!1}),this.convertToNamedQuery$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.e),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>{try{const t=this.gqlService.nameQuery(e.data.query.query||"");if(t)return Object(v.a)(new C.N(t,e.windowId))}catch(t){M.a.log(t);const e=t.message?t.message:t.toString();this.notifyService.error(`Your query does not appear to be valid. Please check it. Error: ${e}`)}return Bc.a}))),this.refactorQuery$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.o),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>{try{if(e.data.query.query&&e.data.schema.schema){const n=this.gqlService.refactorQuery(e.data.query.query,e.data.schema.schema);if(n&&n.query){try{this.store.dispatch(new ep.l(JSON.stringify({...JSON.parse(e.data.variables.variables),...n.variables},null,2),e.windowId))}catch(t){return this.notifyService.error("Looks like your variables are not formatted properly"),Bc.a}return Object(v.a)(new C.N(n.query,e.windowId))}}}catch(n){M.a.log(n);const e=n.message?n.message:n.toString();this.notifyService.error(`Your query does not appear to be valid. Please check it. Error: ${e}`)}return Bc.a}))),this.showDonationAlert$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.r),Object(u.a)(()=>this.donationService.trackAndCheckIfEligible()),Object(u.a)(e=>e?Object(v.a)(new I.d):Bc.a))),this.startStreamClient$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(jy.e),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>{if(!e.data.stream.url)return Bc.a;const t=new URL(this.environmentService.hydrate(e.data.query.url)),n=new URL(this.environmentService.hydrate(e.data.stream.url),t);if(t.host!==n.host)return this.notifyService.error(`\n The stream and endpoint domains do not match. Please check your server implementation.\n [${t.host} != ${n.host}]\n `),Bc.a;try{e.data.stream.client&&this.gqlService.closeStreamClient(e.data.stream.client);let t=0;const i=this.gqlService.createStreamClient(n.href);let r=e.action.payload.backoff||200;return i.addEventListener("message",()=>{clearTimeout(t),this.store.dispatch(new C.K(e.windowId))},!1),i.addEventListener("open",()=>{this.store.dispatch(new jy.i(e.windowId,{failed:null})),this.store.dispatch(new jy.h(e.windowId,{connected:!0})),r=200,clearTimeout(t)},!1),i.addEventListener("error",n=>{this.store.dispatch(new jy.i(e.windowId,{failed:n})),t=window.setTimeout(()=>{r=Math.min(1.7*r,3e4),this.store.dispatch(new jy.k(e.windowId,{backoff:r})),clearTimeout(t)},r)},!1),Object(v.a)(new jy.g(e.windowId,{streamClient:i}))}catch(i){return M.a.error("An error occurred starting the stream.",i),Bc.a}}))),this.stopStreamClient$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(jy.f),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>(e.data.stream.client&&this.gqlService.closeStreamClient(e.data.stream.client),Object(v.a)(new jy.g(e.windowId,{streamClient:null})))))),this.setDynamicWindowTitle$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.t,C.v),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.windowId],windowId:e.windowId,windowIds:t.windowsMeta.windowIds,action:e})),Object(u.a)(e=>{const t=e.data.query.query;if(!e.data.layout.hasDynamicTitle)return Bc.a;if(t){const n=this.gqlService.parseQuery(t).definitions.filter(e=>{var t;return"OperationDefinition"===e.kind&&Boolean(null===(t=e.name)||void 0===t?void 0:t.value)}).map(e=>e.name.value);if(n.length){const t=n[0];return Object(v.a)(new S.e(e.windowId,{title:t}))}}return Object(v.a)(new S.e(e.windowId,{title:`Window ${e.windowIds.length}`}))})))}getPrerequestTransformedData$(e){return Object(v.a)(e).pipe(Object(u.a)(e=>{if(!e)return Bc.a;const t=(e.data.query.query||"").trim();return function(e,t=Bc.a,n=Bc.a){return Object(ss.a)(()=>e()?t:n)}(()=>e.data.preRequest.enabled,new Te.a(n=>{try{this.preRequestService.executeScript(e.data.preRequest.script,{environment:this.environmentService.getActiveEnvironment(),headers:e.data.headers,query:t,variables:e.data.variables.variables}).then(t=>{n.next({response:e,transformedData:t}),n.complete()}).catch(e=>{M.a.error(e),this.notifyService.error(e.message,"Pre-request error"),n.next(null),n.complete()})}catch(i){M.a.error(i),this.notifyService.error(i.message,"Pre-request error"),n.next(null),n.complete()}}),Object(v.a)({response:e,transformedData:null}))}))}handlePostRequestTransforms$(e,t,n){return n.data.postRequest.enabled?Object(b.a)(this.preRequestService.executeScript(n.data.postRequest.script,{environment:this.environmentService.getActiveEnvironment(),headers:n.data.headers,query:n.data.query.query||"",variables:n.data.variables.variables,requestType:e,response:t})).pipe(Object(c.a)(e=>({transformedData:e,data:t}))):Object(v.a)({transformedData:null,data:t})}}return e.\u0275fac=function(t){return new(t||e)(r.ac(yy.a),r.ac(R.GqlService),r.ac(R.NotifyService),r.ac(R.DbService),r.ac(R.DonationService),r.ac(R.ElectronAppService),r.ac(R.EnvironmentService),r.ac(R.PreRequestService),r.ac(R.SubscriptionProviderRegistryService),r.ac(g.h))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();var My=n("1uah"),Fy=n("9tIO");let Py=(()=>{class e{constructor(e,t,n){this.actions$=e,this.store=t,this.windowService=n,this.addWindowID$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(T.a),Object(zy.a)(this.store,(e,t)=>({windows:t.windows,windowIds:t.windowsMeta.windowIds,action:e})),Object(u.a)(e=>{const t=Object.keys(e.windows),n=e.windowIds,i=[...n,...t.filter(e=>!n.includes(e))];return Object(v.a)(new x.o({ids:i}))}))),this.removeWindowID$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(T.i),Object(zy.a)(this.store,(e,t)=>({windows:t.windows,windowIds:t.windowsMeta.windowIds,action:e})),Object(u.a)(e=>{const t=Object.keys(e.windows),n=e.windowIds.filter(e=>t.includes(e));return Object(v.a)(new x.o({ids:n}))}))),this.reopenClosedWindow$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(T.j),Object(zy.a)(this.store,(e,t)=>({closedWindows:t.local.closedWindows,windows:t.windows,windowIds:t.windowsMeta.windowIds,action:e})),Object(u.a)(e=>{const t=e.closedWindows[e.closedWindows.length-1];if(!t||!t.windowId)return Bc.a;const n=t.windowId,i=e.windows;if(i[n])return Bc.a;i[n]=t,this.store.dispatch(new T.n(Object.values(i))),this.windowService.setupWindow(n);const r=[...e.windowIds,n];return this.store.dispatch(new x.o({ids:r})),Object(v.a)(new x.l({windowId:n}))}),Object(lt.a)(()=>{this.store.dispatch(new j.i)}))),this.exportWindow$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(T.c),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e})),Object(u.a)(e=>Object(My.a)(Object(v.a)(e),this.windowService.getWindowExportData(e.windowId))),Object(u.a)(([e,t])=>(Object(Ha.c)(t,e.data.layout.title,{fileType:"agq"}),Bc.a))),{dispatch:!1}),this.importWindow$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(T.e),Object(u.a)(e=>(Object(Ha.h)({accept:".agq"}).then(e=>{this.windowService.importWindowDataFromJson(e)}),Bc.a))),{dispatch:!1}),this.importWindowFromCurl$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(T.f),Object(u.a)(e=>(e.payload&&this.windowService.importWindowDataFromCurl(e.payload.data),Bc.a))),{dispatch:!1})}}return e.\u0275fac=function(t){return new(t||e)(r.ac(yy.a),r.ac(g.h),r.ac(Fy.a))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),Vy=(()=>{class e{constructor(e,t,n,i,r){this.actions$=e,this.store=t,this.collectionService=n,this.windowService=i,this.notifyService=r,this.createCollectionAndSaveQueryToCollection$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.a),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e})),Object(u.a)(e=>Object(My.a)(Object(v.a)(e),this.windowService.getWindowExportData(e.windowId))),Object(u.a)(([e,t])=>{const n=t;return e.action.payload.windowTitle&&(n.windowName=e.action.payload.windowTitle),this.collectionService.create({title:e.action.payload.collectionTitle,queries:[n]})}),Object(lt.a)(()=>this.notifyService.success("Created collection.")),Object(c.a)(()=>new D.l))),this.saveQueryToCollection$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.m),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e})),Object(u.a)(e=>Object(m.a)([Object(v.a)(e),this.windowService.getWindowExportData(e.windowId)])),Object(u.a)(([e,t])=>{const n=t;return e.action.payload.windowTitle&&(n.windowName=e.action.payload.windowTitle),this.collectionService.addQuery(e.action.payload.collectionId,n)}),Object(lt.a)(()=>this.notifyService.success("Added query to collection.")),Object(c.a)(()=>new D.l))),this.updateQueryInCollection$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.v),Object(zy.a)(this.store,(e,t)=>({data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e})),Object(u.a)(e=>Object(m.a)([Object(v.a)(e),this.windowService.getWindowExportData(e.windowId)])),Object(u.a)(([e,t])=>e.data.layout.collectionId&&e.data.layout.windowIdInCollection?this.collectionService.updateQuery(e.data.layout.collectionId,e.data.layout.windowIdInCollection,t):Bc.a),Object(lt.a)(()=>this.notifyService.success("Updated query in collection.")),Object(c.a)(()=>new D.l))),this.loadCollections$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.k),Object(u.a)(e=>this.collectionService.getAll()),Object(c.a)(e=>new D.s({collections:e})))),this.deleteQueryFromCollection$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.d),Object(u.a)(e=>this.collectionService.deleteQuery(e.payload.collectionId,e.payload.query)),Object(lt.a)(()=>this.notifyService.success("Deleted query from collection.")),Object(c.a)(()=>new D.l))),this.updateCollection$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.u),Object(u.a)(e=>this.collectionService.updateCollection(e.payload.collectionId,e.payload.collection)),Object(lt.a)(()=>this.notifyService.success("Updated collection.")),Object(c.a)(()=>new D.l))),this.deleteCollection$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.c),Object(u.a)(e=>this.collectionService.deleteCollection(e.payload.collectionId)),Object(lt.a)(()=>this.notifyService.success("Deleted query from collection.")),Object(c.a)(()=>new D.l))),this.exportCollection$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.g),Object(u.a)(e=>this.collectionService.getExportCollectionData(e.payload.collectionId)),Object(u.a)(e=>(e&&Object(Ha.c)(e,e.title,{fileType:"agc"}),Bc.a))),{dispatch:!1}),this.importCollection$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(D.i),Object(u.a)(()=>Object(b.a)(Object(Ha.h)({accept:".agc"}))),Object(u.a)(e=>this.collectionService.importCollectionDataFromJson(e)),Object(lt.a)(()=>this.notifyService.success("Successfully imported collection.")),Object(c.a)(()=>new D.l),Object(d.a)(e=>{const t=e.message?e.message:e.toString();return this.notifyService.error(`Something went wrong importing collection. Error: ${t}`),Bc.a})))}}return e.\u0275fac=function(t){return new(t||e)(r.ac(yy.a),r.ac(g.h),r.ac(R.QueryCollectionService),r.ac(R.WindowService),r.ac(R.NotifyService))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),Gy=(()=>{class e{constructor(e,t,n){this.actions$=e,this.store=t,this.pluginEventService=n,this.onSetQuery$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.t),Object(zy.a)(this.store,(e,t)=>({state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>(this.pluginEventService.emit("query.change",{windowId:e.windowId,data:e.data.query.query||""}),Bc.a))),{dispatch:!1}),this.onSetSDL$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(np.j),Object(zy.a)(this.store,(e,t)=>({state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>(this.pluginEventService.emit("sdl.change",{windowId:e.windowId,data:e.data.schema.sdl}),Bc.a))),{dispatch:!1}),this.onSetActiveWindow$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(x.c),Object(zy.a)(this.store,(e,t)=>({state:t,data:t.windows[e.payload.windowId],windowId:e.payload.windowId,action:e})),Object(u.a)(e=>(this.pluginEventService.emit("current-window.change",{windowId:e.windowId}),Bc.a))),{dispatch:!1}),this.onSetQueryResult$=Object(yy.d)(()=>this.actions$.pipe(Object(yy.e)(C.x),Object(zy.a)(this.store,(e,t)=>({state:t,data:t.windows[e.windowId],windowId:e.windowId,action:e})),Object(u.a)(e=>(this.pluginEventService.emit("query-result.change",{windowId:e.windowId,data:e.action.payload}),Bc.a))),{dispatch:!1})}}return e.\u0275fac=function(t){return new(t||e)(r.ac(yy.a),r.ac(g.h),r.ac(R.PluginEventService))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})(),By=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)}}),e})(),Wy=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)}}),e})();var $y=n("XhxL");function Uy(e,t){if(1&e&&(r.Wb(0,"div",2),r.Gc(1,". "),r.Rb(2,"div",3),r.Vb()),2&e){const e=r.gc();r.Eb(2),r.mc("nzTooltipTitle",e.resolvedValue)}}const Hy=function(e){return{"fancy-input-marker__invalid":e}};let qy=(()=>{class e{constructor(e){this.environmentService=e,this.section={content:""},this.activeEnvironment={},this.resolvedValue=""}ngOnInit(){}ngOnChanges(e){this.resolvedValue=this.environmentService.hydrate(this.section.content)}}return e.\u0275fac=function(t){return new(t||e)(r.Qb($y.a))},e.\u0275cmp=r.Kb({type:e,selectors:[["app-fancy-input-marker"]],inputs:{section:"section",activeEnvironment:"activeEnvironment"},features:[r.Cb],decls:3,vars:5,consts:[[3,"ngClass"],["class","value-indicator__wrapper",4,"ngIf"],[1,"value-indicator__wrapper"],["nz-tooltip","",1,"value-indicator",3,"nzTooltipTitle"]],template:function(e,t){1&e&&(r.Wb(0,"mark",0),r.Gc(1),r.Vb(),r.Ec(2,Uy,3,1,"div",1)),2&e&&(r.mc("ngClass",r.pc(3,Hy,!t.resolvedValue)),r.Eb(1),r.Hc(t.section.content),r.Eb(1),r.mc("ngIf",t.resolvedValue))},directives:[o.l,o.o,ar],encapsulation:2,changeDetection:0}),e})(),Qy=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c,ya.i,Dy]]}),e})();r.zc(El,[uc,kc,o.o,o.n,nh,lc,Ec,Tc],[y.c]);let Ky=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c,ya.i,Ea,Wy,By,Dy,Qy]]}),e})();r.zc(mp,[ya.e,ya.l,ya.o,o.n,o.o,qy],[]);let Xy=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c,ya.i,Dy,Ky]]}),e})(),Yy=(()=>{class e{}return e.\u0275mod=r.Ob({type:e}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c,ya.i,Dy,Ky]]}),e})();var Jy=n("z6cu");let Zy=(()=>{class e{intercept(e,t){return t.handle(e).pipe(Object(d.a)(e=>{let t="";return t=e.error instanceof ErrorEvent?`Error: ${e.error.message}`:`Error Code: ${e.status}\nMessage: ${e.message}`,Object(Jy.a)(e)}))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();var ew=n("306n"),tw=n.n(ew);let nw=(()=>{class e{constructor(e){this.injector=e}handleError(e){if(e instanceof vy.e)M.a.error("Backend returned status code: ",e.status),M.a.error("Response body:",e.message);else{const t=this.injector.get(R.NotifyService),n=e.message?e.message:e.toString(),i=`Bug: Application error: ${n}`,r=`Error message: ${n}\n\nError stack:\n\n\`\`\`\n${e.stack}\n\`\`\``,o=tw()({user:"imolorhe",repo:"altair",title:i,body:r,labels:["bug-report"],template:"Bug_report.md"});M.a.error("Application error:",n),t.error(`An error occured: ${n}`),t.warning("If you think this is a bug, click here to report the bug.","Altair",{disableTimeOut:!0,data:{url:o}})}}}return e.\u0275fac=function(t){return new(t||e)(r.ac(r.t))},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();var iw=n("tAZD"),rw=n.n(iw);let ow=(()=>{class e extends ot.g{_createContainer(){const e=document.createElement("div");e.classList.add("cdk-overlay-container"),e.classList.add("app-overlay-container");const t=document.querySelector(".app-wrapper");t&&(t.appendChild(e),this._containerElement=e)}}return e.\u0275fac=function(t){return sw(t||e)},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();const sw=r.Yb(ow);var aw=n("D08x"),cw=n("BTCl");let lw=(()=>{class e{bootstrap(){var e=this;return Object(s.a)(function*(){e.initialState=yield Object(cw.b)({updateFromLocalStorage:!0})})()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Mb({token:e,factory:e.\u0275fac}),e})();function uw(e){return new _y(e,"./assets/i18n/",".json")}var hw;Object(o.C)(rw.a),hw=R,Object.keys(hw).map(function(e){return hw[e]});const dw=[R.ApiService,R.GqlService,R.DbService,R.WindowService,R.NotifyService,R.DonationService,R.ElectronAppService,R.KeybinderService,R.StorageService,R.QueryCollectionService,R.EnvironmentService,R.PluginRegistryService,R.PluginEventService,R.PreRequestService,R.ThemeRegistryService,R.SubscriptionProviderRegistryService,R.PluginContextService,R.BackupService,Oy.a,lw,{provide:vy.a,useClass:Zy,multi:!0},{provide:r.m,useClass:nw},{provide:ot.g,useClass:ow},{provide:r.d,deps:[lw],multi:!0,useFactory:function(e){return()=>e.bootstrap()}}];let pw=(()=>{class e{constructor(e,t,n){e.donePromise.then(()=>t.dispatch(new aw.b({initialState:n.initialState})))}static forRoot(){return{ngModule:e,providers:[{provide:O.C,useValue:Object(O.n)()}]}}}return e.\u0275mod=r.Ob({type:e,bootstrap:[my]}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)(r.ac(r.e),r.ac(g.h),r.ac(lw))},providers:dw,imports:[[i.a,as.b,ya.i,vy.d,Dy.forRoot(),Qi.forRoot({animation:150}),Ky,Xy,Qy,Yy,By,g.j.forRoot(O.C,{metaReducers:O.B,runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),yy.b.forRoot([Ly,Py,Vy,Gy]),wy.a.instrument({logOnly:A.a.production}),y.b.forRoot({loader:{provide:y.a,useFactory:uw,deps:[vy.c]}})]]}),e})(),fw=(()=>{class e{}return e.\u0275mod=r.Ob({type:e,bootstrap:[by]}),e.\u0275inj=r.Nb({factory:function(t){return new(t||e)},imports:[[o.c,i.a,pw.forRoot()]]}),e})();const gw=()=>{var e;e=function(e){const t=this.href||"";if(t.replace(/#.*$/,""))if(e.preventDefault(),window.process&&window.process.versions.electron)window.require("electron").shell.openExternal(t);else{const e=window.open(t,"_blank");e&&e.focus()}},document.body.addEventListener("click",function(t){t.target&&t.target.matches("a")&&e.apply(t.target,[t])})},mw=["__ALTAIR_ENDPOINT_URL__","__ALTAIR_SUBSCRIPTIONS_ENDPOINT__","__ALTAIR_INITIAL_QUERY__","__ALTAIR_INITIAL_VARIABLES__","__ALTAIR_INITIAL_HEADERS__","__ALTAIR_INITIAL_PRE_REQUEST_SCRIPT__","__ALTAIR_INSTANCE_STORAGE_NAMESPACE__"],bw=e=>{console.warn("DEPRECATION NOTICE: Configuring altair using global variables is deprecated, and will be removed in a future version."),console.warn(`You set [window.${e}], which is deprecated.`),console.warn("Use 'AltairGraphQL.init(opts)' instead.")};let vw=!1;window.AltairGraphQL={init(e={}){if(vw)return;const t=new N.a(e);Object(N.c)(t),A.a.production&&Object(r.V)(),i.d([{provide:N.a,useValue:t}]).bootstrapModule(fw,{preserveWhitespaces:!0}).then(e=>{const t=e.injector.get(r.g).components[0];Object(i.c)(t)}).catch(e=>M.a.log("Error bootstrapping application:",e)),gw(),mw.forEach(e=>{window[e]&&bw(e),Object.defineProperty(window,e,{get:()=>window[e],set(t){bw(e),window[e]=t}})}),vw=!0},plugins:{}}},zdgv:function(e,t,n){"use strict";var i=n("NSes"),r=Object.create;e.exports=function(){var e=0,t=[],n=r(null);return{get:function(e){var n,r=0,o=t,s=e.length;if(0===s)return o[s]||null;if(o=o[s]){for(;r{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new s(e,n))}}class s{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new a(e,this.observables,this.project))}}class a extends i.a{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const i=t.length;this.values=new Array(i);for(let r=0;r0){const e=i.indexOf(n);-1!==e&&i.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},zpYP:function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return"object"==i(e)&&null!==e}n.d(t,"a",function(){return r})},zs8F:function(e,t,n){"use strict";var i=n("GpRL"),r=n("lq5y"),o=Function.prototype.bind,s=Function.prototype.call,a=Object.keys,c=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(n,l){var u,h=arguments[2],d=arguments[3];return n=Object(r(n)),i(l),u=a(n),d&&u.sort("function"==typeof d?o.call(d,n):void 0),"function"!=typeof e&&(e=u[e]),s.call(e,u,function(e,i){return c.call(n,e)?s.call(l,h,n[e],e,n,i):t})}}},zsKT:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i=n("y4cC");function r(e){return o(e.source,Object(i.a)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,i=a(n)+e.body,r=t.line-1,o=t.line+(e.locationOffset.line-1),c=t.column+(1===t.line?n:0),l="".concat(e.name,":").concat(o,":").concat(c,"\n"),u=i.split(/\r\n|[\n\r]/g),h=u[r];if(h.length>120){for(var d=Math.floor(c/80),p=c%80,f=[],g=0;g



    © 2015 - 2024 Weber Informatics LLC | Privacy Policy