From 57d5b0295b086e8e3d72711d8af5018affd4bba8 Mon Sep 17 00:00:00 2001 From: qligier Date: Wed, 5 Apr 2023 12:32:34 +0000 Subject: [PATCH] Update the Angular GUI --- matchbox-server/src/main/resources/static/index.html | 4 ++-- .../{main.24ea129955a6ae56.js => main.fbfc438a723e0325.js} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename matchbox-server/src/main/resources/static/{main.24ea129955a6ae56.js => main.fbfc438a723e0325.js} (99%) diff --git a/matchbox-server/src/main/resources/static/index.html b/matchbox-server/src/main/resources/static/index.html index 46b55896c73..72e52884e29 100644 --- a/matchbox-server/src/main/resources/static/index.html +++ b/matchbox-server/src/main/resources/static/index.html @@ -5,10 +5,10 @@ - + - + \ No newline at end of file diff --git a/matchbox-server/src/main/resources/static/main.24ea129955a6ae56.js b/matchbox-server/src/main/resources/static/main.fbfc438a723e0325.js similarity index 99% rename from matchbox-server/src/main/resources/static/main.24ea129955a6ae56.js rename to matchbox-server/src/main/resources/static/main.fbfc438a723e0325.js index 38e7c9d0759..4db8d83fe14 100644 --- a/matchbox-server/src/main/resources/static/main.24ea129955a6ae56.js +++ b/matchbox-server/src/main/resources/static/main.fbfc438a723e0325.js @@ -1 +1 @@ -(self.webpackChunkmatchbox_formfiller=self.webpackChunkmatchbox_formfiller||[]).push([[179],{5424:(ye,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.Ucum=void 0,j.Ucum={dimLen_:7,validOps_:[".","/"],codeSep_:": ",valMsgStart_:"Did you mean ",valMsgEnd_:"?",cnvMsgStart_:"We assumed you meant ",cnvMsgEnd_:".",openEmph_:" ->",closeEmph_:"<- ",openEmphHTML_:'',closeEmphHTML_:"",bracesMsg_:"FYI - annotations (text in curly braces {}) are ignored, except that an annotation without a leading symbol implies the default unit 1 (the unity).",needMoleWeightMsg_:"Did you wish to convert between mass and moles? The molecular weight of the substance represented by the units is required to perform the conversion.",csvCols_:{"case-sensitive code":"csCode_","LOINC property":"loincProperty_","name (display)":"name_",synonyms:"synonyms_",source:"source_",category:"category_",Guidance:"guidance_"},inputKey_:"case-sensitive code",specUnits_:{"B[10.nV]":"specialUnitOne","[m/s2/Hz^(1/2)]":"specialUnitTwo"}}},6227:(ye,j,p)=>{"use strict";j.R=void 0;var f=p(5424),v=p(5984);class m{constructor(d){if(0===f.Ucum.dimLen_)throw new Error("Dimension.setDimensionLen must be called before Dimension constructor");if(null==d)this.assignZero();else if(d instanceof Array){if(d.length!==f.Ucum.dimLen_)throw new Error(`Parameter error, incorrect length of vector passed to Dimension constructor, vector = ${JSON.stringify(d)}`);this.dimVec_=[];for(let u=0;u=f.Ucum.dimLen_)throw new Error("Parameter error, invalid element number specified for Dimension constructor");this.assignZero(),this.dimVec_[d]=1}}setElementAt(d,u){if(!v(d)||d<0||d>=f.Ucum.dimLen_)throw new Error(`Dimension.setElementAt called with an invalid index position (${d})`);this.dimVec_||this.assignZero(),null==u&&(u=1),this.dimVec_[d]=u}getElementAt(d){if(!v(d)||d<0||d>=f.Ucum.dimLen_)throw new Error(`Dimension.getElementAt called with an invalid index position (${d})`);let u=null;return this.dimVec_&&(u=this.dimVec_[d]),u}getProperty(d){return this["_"===d.charAt(d.length-1)?d:d+"_"]}toString(){let d=null;return this.dimVec_&&(d="["+this.dimVec_.join(", ")+"]"),d}add(d){if(!d instanceof m)throw new Error(`Dimension.add called with an invalid parameter - ${typeof d} instead of a Dimension object`);if(this.dimVec_&&d.dimVec_)for(let u=0;u{"use strict";j.DP=function(r){const s=r&&r.config;if(s){if(s.length&&r.data){const i=m(s);return r.data.map(d.bind(null,i))}return r.data}return r};function m(r){return r.map(s=>Array.isArray(s)?s:[s])}function d(r,s){let i={};return r.forEach((c,l)=>{let g=i;for(let y=0;y{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.Prefix=void 0,p(5424),j.Prefix=class{constructor(m){if(null==m.code_||null==m.name_||null==m.value_||void 0===m.exp_)throw new Error("Prefix constructor called missing one or more parameters. Prefix codes (cs or ci), name, value and exponent must all be specified and all but the exponent must not be null.");this.code_=m.code_,this.ciCode_=m.ciCode_,this.name_=m.name_,this.printSymbol_=m.printSymbol_,this.value_="string"==typeof m.value_?parseFloat(m.value_):m.value_,this.exp_=m.exp_}getValue(){return this.value_}getCode(){return this.code_}getCiCode(){return this.ciCode_}getName(){return this.name_}getPrintSymbol(){return this.printSymbol_}getExp(){return this.exp_}equals(m){return this.code_===m.code_&&this.ciCode_===m.ciCode_&&this.name_===m.name_&&this.printSymbol_===m.printSymbol_&&this.value_===m.value_&&this.exp_===m.exp_}}},5361:(ye,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.PrefixTables=j.PrefixTablesFactory=void 0;class p{constructor(){this.byCode_={},this.byValue_={}}prefixCount(){return Object.keys(this.byCode_).length}allPrefixesByValue(){let m="",o=Object.keys(this.byValue_),d=o.length;for(let u=0;u{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var n=new class{constructor(){this.funcs={},this.funcs.cel={cnvTo:function(v){return v-273.15},cnvFrom:function(v){return v+273.15}},this.funcs.degf={cnvTo:function(v){return v-459.67},cnvFrom:function(v){return v+459.67}},this.funcs.degre={cnvTo:function(v){return v-273.15},cnvFrom:function(v){return v+273.15}},this.funcs.ph={cnvTo:function(v){return-Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,-v)}},this.funcs.ln={cnvTo:function(v){return Math.log(v)},cnvFrom:function(v){return Math.exp(v)}},this.funcs["2ln"]={cnvTo:function(v){return 2*Math.log(v)},cnvFrom:function(v){return Math.exp(v/2)}},this.funcs.lg={cnvTo:function(v){return Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,v)}},this.funcs["10lg"]={cnvTo:function(v){return 10*Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,v/10)}},this.funcs["20lg"]={cnvTo:function(v){return 20*Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,v/20)}},this.funcs["2lg"]={cnvTo:function(v){return 2*Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,v/2)}},this.funcs.lgtimes2=this.funcs["2lg"],this.funcs.ld={cnvTo:function(v){return Math.log(v)/Math.LN2},cnvFrom:function(v){return Math.pow(2,v)}},this.funcs["100tan"]={cnvTo:function(v){return 100*Math.tan(v)},cnvFrom:function(v){return Math.atan(v/100)}},this.funcs.tanTimes100=this.funcs["100tan"],this.funcs.sqrt={cnvTo:function(v){return Math.sqrt(v)},cnvFrom:function(v){return v*v}},this.funcs.inv={cnvTo:function(v){return 1/v},cnvFrom:function(v){return 1/v}},this.funcs.hpX={cnvTo:function(v){return-this.funcs.lg(v)},cnvFrom:function(v){return Math.pow(10,-v)}},this.funcs.hpC={cnvTo:function(v){return-this.func.ln(v)/this.funcs.ln(100)},cnvFrom:function(v){return Math.pow(100,-v)}},this.funcs.hpM={cnvTo:function(v){return-this.funcs.ln(v)/this.funcs.ln(1e3)},cnvFrom:function(v){return Math.pow(1e3,-v)}},this.funcs.hpQ={cnvTo:function(v){return-this.funcs.ln(v)/this.funcs.ln(5e4)},cnvFrom:function(v){return Math.pow(5e4,-v)}}}forName(v){v=v.toLowerCase();let m=this.funcs[v];if(null===m)throw new Error(`Requested function ${v} is not defined`);return m}isDefined(v){return v=v.toLowerCase(),null!==this.funcs[v]}};j.default=n},4693:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.isNumericString=function(o){let d=""+o;return!isNaN(d)&&!isNaN(parseFloat(d))},j.isIntegerUnit=function(o){return/^\d+$/.test(o)},j.getSynonyms=function(o){let d={},h={};if(h=n.getInstance().getUnitBySynonym(o),h.units){d.status="succeeded";let r=h.units.length;d.units=[];for(let s=0;s{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.ucumJsonDefs=j.UcumJsonDefs=void 0;var n=p(3355),f=p(5361),v=p(8897),m=p(8334),o=p(4784).DP;class d{loadJsonDefs(){const r=p(8210);if(r.prefixes=o(r.prefixes),r.units=o(r.units),0===m.UnitTables.getInstance().unitsCount()){let s=f.PrefixTables.getInstance(),i=r.prefixes,c=i.length;for(let E=0;E{"use strict";j.n=void 0;var f=p(6395),v=function(s){if(s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var i=m();if(i&&i.has(s))return i.get(s);var c={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in s)if(Object.prototype.hasOwnProperty.call(s,g)){var y=l?Object.getOwnPropertyDescriptor(s,g):null;y&&(y.get||y.set)?Object.defineProperty(c,g,y):c[g]=s[g]}return c.default=s,i&&i.set(s,c),c}(p(4693));function m(){if("function"!=typeof WeakMap)return null;var s=new WeakMap;return m=function(){return s},s}var d=p(5424).Ucum,u=p(8334).UnitTables,h=p(5744).T;class r{constructor(){0===u.getInstance().unitsCount()&&f.ucumJsonDefs.loadJsonDefs(),this.uStrParser_=h.getInstance()}useHTMLInMessages(i){void 0===i&&(i=!0),this.uStrParser_.useHTMLInMessages(i)}useBraceMsgForEachString(i){void 0===i&&(i=!0),this.uStrParser_.useBraceMsgForEachString(i)}validateUnitString(i,c,l){void 0===c&&(c=!1),void 0===l&&(l="validate");let g=this.getSpecifiedUnit(i,l,c),y=g.unit,E={};return E=y?{status:g.origString===i?"valid":"invalid",ucumCode:g.origString,unit:{code:y.csCode_,name:y.name_,guidance:y.guidance_}}:{status:g.origString&&null!==g.origString?"invalid":"error",ucumCode:null},g.suggestions&&(E.suggestions=g.suggestions),E.msg=g.retMsg,E}convertUnitTo(i,c,l,g,y){void 0===g&&(g=!1),void 0===y&&(y=null);let E={status:"failed",toVal:null,msg:[]};if(i&&(i=i.trim()),(!i||""==i)&&(E.status="error",E.msg.push('No "from" unit expression specified.')),(null===c||isNaN(c)||"number"!=typeof c&&!v.isNumericString(c))&&(E.status="error",E.msg.push('No "from" value, or an invalid "from" value, was specified.')),l&&(l=l.trim()),(!l||""==l)&&(E.status="error",E.msg.push('No "to" unit expression specified.')),"error"!==E.status)try{let T=null,D=this.getSpecifiedUnit(i,"convert",g);T=D.unit,D.retMsg&&(E.msg=E.msg.concat(D.retMsg)),D.suggestions&&(E.suggestions={},E.suggestions.from=D.suggestions),T||E.msg.push(`Unable to find a unit for ${i}, so no conversion could be performed.`);let O=null;if(D=this.getSpecifiedUnit(l,"convert",g),O=D.unit,D.retMsg&&(E.msg=E.msg.concat(D.retMsg)),D.suggestions&&(E.suggestions||(E.suggestions={}),E.suggestions.to=D.suggestions),O||E.msg.push(`Unable to find a unit for ${l}, so no conversion could be performed.`),T&&O)try{if(y){if(0!==T.moleExp_&&0!==O.moleExp_)throw new Error("A molecular weight was specified but a mass <-> mole conversion cannot be executed for two mole-based units. No conversion was attempted.");if(0===T.moleExp_&&0===O.moleExp_)throw new Error("A molecular weight was specified but a mass <-> mole conversion cannot be executed when neither unit is mole-based. No conversion was attempted.");if(!T.isMoleMassCommensurable(O))throw new Error(`Sorry. ${i} cannot be converted to ${l}.`);E.toVal=0!==T.moleExp_?T.convertMolToMass(c,O,y):T.convertMassToMol(c,O,y)}else E.toVal=O.convertFrom(c,T);E.status="succeeded",E.fromUnit=T,E.toUnit=O}catch(w){E.status="failed",E.msg.push(w.message)}}catch(T){E.status=T.message==d.needMoleWeightMsg_?"failed":"error",E.msg.push(T.message)}return E}checkSynonyms(i){let c={};return null==i?(c.status="error",c.msg="No term specified for synonym search."):c=v.getSynonyms(i),c}getSpecifiedUnit(i,c,l){void 0===l&&(l=!1);let g={retMsg:[]};if(i){let y=u.getInstance();i=i.trim();let E=y.getUnitByCode(i);if(E)g.unit=E,g.origString=i;else try{let T=this.uStrParser_.parseString(i,c,l);g.unit=T[0],g.origString=T[1],T[2]&&(g.retMsg=T[2]),g.suggestions=T[3]}catch(T){console.log(`Unit requested for unit string ${i}.request unsuccessful; error thrown = `+T.message),g.retMsg.unshift(`${i} is not a valid unit. ${T.message}`)}}else g.retMsg.push("No unit string specified.");return g}commensurablesList(i){let c=[],l=null,g=this.getSpecifiedUnit(i,"validate",!1),y=g.unit;if(g.retMsg.length>0&&(c=g.retMsg),y){let E=null,T=y.getProperty("dim_");if(T){try{E=T.getProperty("dimVec_")}catch(D){c.push(D.message),"Dimension does not have requested property(dimVec_)"===D.message&&(E=null)}E&&(l=u.getInstance().getUnitsByDimension(E))}else c.push("No commensurable units were found for "+i)}else c.push(`Could not find unit ${i}.`);return[l,c]}}j.n=r,r.getInstance=function(){return new r}},1334:(ye,j,p)=>{"use strict";j.ng=void 0,p(5424);var v=p(4854).n;j.ng=v,p(8334)},8897:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.Unit=void 0;var i,n=(i=p(8287))&&i.__esModule?i:{default:i},f=function(i){if(i&&i.__esModule)return i;if(null===i||"object"!=typeof i&&"function"!=typeof i)return{default:i};var c=v();if(c&&c.has(i))return c.get(i);var l={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in i)if(Object.prototype.hasOwnProperty.call(i,y)){var E=g?Object.getOwnPropertyDescriptor(i,y):null;E&&(E.get||E.set)?Object.defineProperty(l,y,E):l[y]=i[y]}return l.default=i,c&&c.set(i,l),l}(p(4693));function v(){if("function"!=typeof WeakMap)return null;var i=new WeakMap;return v=function(){return i},i}var h,d=p(5424).Ucum,u=p(6227).R,r=p(5984);class s{constructor(c={}){this.isBase_=c.isBase_||!1,this.name_=c.name_||"",this.csCode_=c.csCode_||"",this.ciCode_=c.ciCode_||"",this.property_=c.property_||"",this.magnitude_=c.magnitude_||1,this.dim_=null==c.dim_?new u:void 0!==c.dim_.dimVec_?new u(c.dim_.dimVec_):c.dim_ instanceof u?c.dim_:c.dim_ instanceof Array||r(c.dim_)?new u(c.dim_):new u,this.printSymbol_=c.printSymbol_||null,this.class_=c.class_||null,this.isMetric_=c.isMetric_||!1,this.variable_=c.variable_||null,this.cnv_=c.cnv_||null,this.cnvPfx_=c.cnvPfx_||1,this.isSpecial_=c.isSpecial_||!1,this.isArbitrary_=c.isArbitrary_||!1,this.moleExp_=c.moleExp_||0,this.synonyms_=c.synonyms_||null,this.source_=c.source_||null,this.loincProperty_=c.loincProperty_||null,this.category_=c.category_||null,this.guidance_=c.guidance_||null,this.csUnitString_=c.csUnitString_||null,this.ciUnitString_=c.ciUnitString_||null,this.baseFactorStr_=c.baseFactorStr_||null,this.baseFactor_=c.baseFactor_||null,this.defError_=c.defError_||!1}assignUnity(){return this.name_="",this.magnitude_=1,this.dim_||(this.dim_=new u),this.dim_.assignZero(),this.cnv_=null,this.cnvPfx_=1,this}assignVals(c){for(let l in c){let g="_"===!l.charAt(l.length-1)?l+"_":l;if(!this.hasOwnProperty(g))throw new Error(`Parameter error; ${l} is not a property of a Unit`);this[g]=c[l]}}clone(){let c=new s;return Object.getOwnPropertyNames(this).forEach(l=>{"dim_"===l?c.dim_=this.dim_?this.dim_.clone():null:c[l]=this[l]}),c}assign(c){Object.getOwnPropertyNames(c).forEach(l=>{"dim_"===l?this.dim_=c.dim_?c.dim_.clone():null:this[l]=c[l]})}equals(c){return this.magnitude_===c.magnitude_&&this.cnv_===c.cnv_&&this.cnvPfx_===c.cnvPfx_&&(null===this.dim_&&null===c.dim_||this.dim_.equals(c.dim_))}fullEquals(c){let l=Object.keys(this).sort(),g=Object.keys(c).sort(),y=l.length,E=y===g.length;for(let T=0;T0){let l=c.replace("/","!").replace(".","/").replace("!",".");switch(l.charAt(0)){case".":c=l.substr(1);break;case"/":c=l;break;default:c="/"+l}}return c}_concatStrs(c,l,g,y,E){return this._buildOneString(c,y,E)+l+this._buildOneString(g,y,E)}_buildOneString(c,l,g){let y="";return y=f.isNumericString(c)||"("===c.charAt(0)||"["===c.charAt(0)?c:/[./* ]/.test(c)?l+c+g:c,y}power(c){if(null!=this.cnv_)throw new Error(`Attempt to raise a non-ratio unit, ${this.name_}, to a power.`);let g=this.csCode_.match(/([./]|[^./]+)/g),y=g.length;for(let E=0;E=0;w--){let A=parseInt(T[w]);if(!r(A)){if(("-"===T[w]||"+"===T[w])&&w--,w{"use strict";j.T=void 0;var f=function(s){if(s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var i=v();if(i&&i.has(s))return i.get(s);var c={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in s)if(Object.prototype.hasOwnProperty.call(s,g)){var y=l?Object.getOwnPropertyDescriptor(s,g):null;y&&(y.get||y.set)?Object.defineProperty(c,g,y):c[g]=s[g]}return c.default=s,i&&i.set(s,c),c}(p(4693));function v(){if("function"!=typeof WeakMap)return null;var s=new WeakMap;return v=function(){return s},s}var o=p(5424).Ucum,d=p(8897).Unit,u=p(8334).UnitTables,h=p(5361).PrefixTables;class r{constructor(){this.utabs_=u.getInstance(),this.pfxTabs_=h.getInstance(),this.openEmph_=o.openEmph_,this.closeEmph_=o.closeEmph_,this.bracesMsg_="",this.parensFlag_="parens_placeholder",this.pFlagLen_=this.parensFlag_.length,this.braceFlag_="braces_placeholder",this.bFlagLen_=this.braceFlag_.length,this.vcMsgStart_=null,this.vcMsgEnd_=null,this.retMsg_=[],this.parensUnits_=[],this.annotations_=[],this.suggestions=[]}useHTMLInMessages(i){void 0===i||i?(this.openEmph_=o.openEmphHTML_,this.closeEmph_=o.closeEmphHTML_):(this.openEmph_=o.openEmph_,this.closeEmph_=o.closeEmph_)}useBraceMsgForEachString(i){this.bracesMsg_=void 0===i||i?o.bracesMsg_:""}parseString(i,c,l){if(""===(i=i.trim())||null===i)throw new Error("Please specify a unit expression to be validated.");"validate"===c?(this.vcMsgStart_=o.valMsgStart_,this.vcMsgEnd_=o.valMsgEnd_):(this.vcMsgStart_=o.cnvMsgStart_,this.vcMsgEnd_=o.cnvMsgEnd_),this.suggestions_=void 0===l||!1===l?null:[],this.retMsg_=[],this.parensUnits_=[],this.annotations_=[];let g=i,y=[];if(i=this._getAnnotations(i),this.retMsg_.length>0)y[0]=null,y[1]=null;else{let T=null;for(T in o.specUnits_)for(;-1!==i.indexOf(T);)i=i.replace(T,o.specUnits_[T]);if(i.indexOf(" ")>-1)throw new Error("Blank spaces are not allowed in unit expressions.");y=this._parseTheString(i,g);let D=y[0];(f.isIntegerUnit(D)||"number"==typeof D)&&(D=new d({csCode_:g,magnitude_:D,name_:g}),y[0]=D)}return y[2]=this.retMsg_,this.suggestions_&&this.suggestions_.length>0&&(y[3]=this.suggestions_),y}_parseTheString(i,c){let l=null,g=this.retMsg_.length>0,y=this._processParens(i,c);g=y[2];let E=[];if(!g){let T=this._makeUnitsArray(i=y[0],c=y[1]);if(g=T[2],!g){E=T[0],c=T[1];let D=E.length;for(let O=0;O=0){let A=this._getParensUnit(w,c);g||(g=A[1]),g||(E[O].un=A[0])}else{let A=this._makeUnit(w,c);null===A[0]?g=!0:(E[O].un=A[0],c=A[1])}}}}return g||(null===E[0]||" "===E[0]||null==E[0].un)&&0===this.retMsg_.length&&(this.retMsg_.push(`Unit string (${c}) did not contain anything that could be used to create a unit, or else something that is not handled yet by this package. Sorry`),g=!0),g||(l=this._performUnitArithmetic(E,c)),[l,c]}_getAnnotations(i){let c=i.indexOf("{");for(;c>=0;){let g=i.indexOf("}");if(g<0)this.retMsg_.push("Missing closing brace for annotation starting at "+this.openEmph_+i.substr(c)+this.closeEmph_),c=-1;else{let y=i.substring(c,g+1),E=this.annotations_.length.toString();i=i.replace(y,this.braceFlag_+E+this.braceFlag_),this.annotations_.push(y),c=i.indexOf("{")}}let l=i.indexOf("}");return l>=0&&this.retMsg_.push("Missing opening brace for closing brace found at "+this.openEmph_+i.substring(0,l+1)+this.closeEmph_),i}_processParens(i,c){let l=[],g=0,y=!1,E=this.parensUnits_.length,T=0;for(;""!==i&&!y;){let D=0,O=0,w=i.indexOf("(");if(w<0){let A=i.indexOf(")");if(A>=0){let S=`Missing open parenthesis for close parenthesis at ${i.substring(0,A+T)}${this.openEmph_}${i.substr(A,1)}${this.closeEmph_}`;A0&&(l[g++]=i.substr(0,w));let S=0,M=w+1;for(;M0&&(O=i.substr(0,D-1));let w=i.lastIndexOf(this.parensFlag_),A=null;w+this.pFlagLen_=0){let M=this._getAnnoText(O,c);if(M[1]||M[2])throw new Error(`Text found before the parentheses (${O}) included an annotation along with other text for parenthetical unit ${y.csCode_}`);this.retMsg_.push(`The annotation ${M[0]} before the unit code is invalid.\n`+this.vcMsgStart_+(i+=M[0])+this.vcMsgEnd_)}else this.suggestions_?l="succeeded"!==this._getSuggestions(O):(this.retMsg_.push(`${O} preceding the unit code ${i} is invalid. Unable to make a substitution.`),l=!0);if(A)if(A.indexOf(this.braceFlag_)>=0){let M=this._getAnnoText(A,c);if(M[1]||M[2])throw new Error(`Text found after the parentheses (${A}) included an annotation along with other text for parenthetical unit ${y.csCode_}`);i+=M[0]}else f.isNumericString(A)?(i+=A,y=y.power(Number(A)),this.retMsg_.push(`An exponent (${A}) following a parenthesis is invalid as of revision 1.9 of the UCUM Specification.\n `+this.vcMsgStart_+i+this.vcMsgEnd_)):this.suggestions_?l="succeeded"!==this._getSuggestions(O):(this.retMsg_.push(`Text ${A} following the unit code ${i} is invalid. Unable to make a substitution.`),l=!0);return l||(y?f.isIntegerUnit(y)?y=new d({csCode_:y,magnitude_:y,name_:y}):y.csCode_=i:y=new d({csCode_:i,magnitude_:1,name_:i})),[y,l]}_getAnnoText(i,c){let l=i.indexOf(this.braceFlag_),g=l>0?i.substring(0,l):null;0!==l&&(i=i.substr(l));let y=i.indexOf(this.braceFlag_,1),E=y+this.bFlagLen_=this.annotations_.length)throw new Error(`Processing Error - invalid annotation index ${T} found in ${i} that was created from ${c}`);return[i=this.annotations_[D],g,E]}_getSuggestions(i){let c=f.getSynonyms(i);if("succeeded"===c.status){let l={};l.msg=`${i} is not a valid UCUM code. We found possible units that might be what was meant:`,l.invalidUnit=i;let g=c.units.length;l.units=[];for(let y=0;y=0){let g=this._getUnitWithAnnotation(i,c);l=g[0],l&&(c=g[1])}else{if(i.indexOf("^")>-1){let g=i.replace("^","*");l=this.utabs_.getUnitByCode(g),l&&(l=l.clone(),l.csCode_=l.csCode_.replace("*","^"),l.ciCode_=l.ciCode_.replace("*","^"))}if(!l){let g="["+i+"]";l=this.utabs_.getUnitByCode(g),l&&(l=l.clone(),c=c.replace(i,g),this.retMsg_.push(`${i} is not a valid unit expression, but ${g} is.\n`+this.vcMsgStart_+`${g} (${l.name_})${this.vcMsgEnd_}`))}if(!l){let g=this.utabs_.getUnitByName(i);if(g&&g.length>0){l=g[0].clone();let y="The UCUM code for "+i+" is "+l.csCode_+".\n"+this.vcMsgStart_+l.csCode_+this.vcMsgEnd_,E=!1;for(let O=0;O"+ne+"",csCode_:F+ne,ciCode_:b+ne,printSymbol_:L+""+ne+""})}}else l=null,this.suggestions_?this._getSuggestions(g):this.retMsg_.push(`${g} is not a valid UCUM code.`)}}return[l,c]}_getUnitWithAnnotation(i,c){let l=null,g=this._getAnnoText(i,c),y=g[0],E=g[1],T=g[2];this.bracesMsg_&&-1===this.retMsg_.indexOf(this.bracesMsg_)&&this.retMsg_.push(this.bracesMsg_);let D=this.retMsg_.length;if(E||T)if(E&&!T)if(f.isIntegerUnit(E))l=E;else{let O=this._makeUnit(E,c);O[0]?(l=O[0],l.csCode_+=y,c=O[1]):this.retMsg_.push(`Unable to find a unit for ${E} that precedes the annotation ${y}.`)}else if(!E&&T)if(f.isIntegerUnit(T))l=T+y,this.retMsg_.push(`The annotation ${y} before the ``${T} is invalid.\n`+this.vcMsgStart_+l+this.vcMsgEnd_);else{let O=this._makeUnit(T,c);O[0]?(l=O[0],l.csCode_+=y,c=l.csCode_,this.retMsg_.push(`The annotation ${y} before the unit code is invalid.\n`+this.vcMsgStart_+l.csCode_+this.vcMsgEnd_)):this.retMsg_.push(`Unable to find a unit for ${E} that follows the annotation ${y}.`)}else this.retMsg_.push(`Unable to find a unit for ${E}${y}${T}.\nWe are not sure how to interpret text both before and after the annotation. Sorry`);else{let O="["+y.substring(1,y.length-1)+"]",w=this._makeUnit(O,c);w[0]?(l=w[0],c=c.replace(y,O),this.retMsg_.push(`${y} is not a valid unit expression, but ${O} is.\n`+this.vcMsgStart_+`${O} (${l.name_})${this.vcMsgEnd_}`)):(this.retMsg_.length>D&&this.retMsg_.pop(),i=1,l=1)}return[l,c]}_performUnitArithmetic(i,c){let l=i[0].un;f.isIntegerUnit(l)&&(l=new d({csCode_:l,magnitude_:Number(l),name_:l}));let g=i.length,y=!1;for(let E=1;E{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.UnitTables=void 0;var n=p(5424).Ucum,v=new class{constructor(){this.unitNames_={},this.unitCodes_={},this.codeOrder_=[],this.unitStrings_={},this.unitDimensions_={},this.unitSynonyms_={},this.massDimIndex_=0}unitsCount(){return Object.keys(this.unitCodes_).length}addUnit(d){d.name_&&this.addUnitName(d),this.addUnitCode(d),this.addUnitString(d);try{d.dim_.getProperty("dimVec_")&&this.addUnitDimension(d)}catch(h){}}addUnitName(d){let u=d.name_;if(!u)throw new Error(`UnitTables.addUnitName called for a unit with no name. Unit code = ${d.csCode_}.`);this.unitNames_[u]?this.unitNames_[u].push(d):this.unitNames_[u]=[d]}addUnitCode(d){let u=d.csCode_;if(!u)throw new Error("UnitTables.addUnitCode called for unit that has no code.");if(this.unitCodes_[u])throw new Error(`UnitTables.addUnitCode called, already contains entry for unit with code = ${u}`);if(this.unitCodes_[u]=d,this.codeOrder_.push(u),"g"==u){let h=d.dim_.dimVec_,r=0;for(;r=1&&(h=d.substr(u+n.codeSep_.length),d=d.substr(0,u));let r=this.unitNames_[d];if(r){let s=r.length;if(h&&s>1){let i=0;for(;r[i].csCode_!==h&&i0&&(h+=u),"dim_"===d[E])h+=null!=y.dim_&&y.dim_.dimVec_ instanceof Array?"["+y.dim_.dimVec_.join(",")+"]":"";else{let T=y[d[E]];h+="string"==typeof T?T.replace(/[\n\r]/g," "):T}h+="\r\n"}}return h}printUnits(d,u){void 0===d&&(d=!1),void 0===u&&(u="|");let h="",r=this.codeOrder_.length,s="csCode"+u;d&&(s+="ciCode"+u),s+="name"+u,d&&(s+="isBase"+u),s+="magnitude"+u+"dimension"+u+"from unit(s)"+u+"value"+u+"function"+u,d&&(s+="property"+u+"printSymbol"+u+"synonyms"+u+"source"+u+"class"+u+"isMetric"+u+"variable"+u+"isSpecial"+u+"isAbitrary"+u),s+="comment",h=s+"\n";for(let i=0;i{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.AppComponent=void 0;const n=p(655),m=(p(6165),p(2466),(0,n.__importStar)(p(5e3))),o=(0,n.__importStar)(p(2466)),d=(0,n.__importStar)(p(6165)),u=(0,n.__importStar)(p(4594)),h=(0,n.__importStar)(p(4202)),r=(0,n.__importStar)(p(7423)),s=(0,n.__importStar)(p(2181)),i=(0,n.__importStar)(p(5245));class c{constructor(g,y){g.setDefaultLang("de"),g.use(g.getBrowserLang()),"https://ahdis.github.io"===location.origin?(console.log("note: using ahdis test systems for matchbox and mag"+location.origin),y.changeFhirMicroService("https://test.ahdis.ch/matchboxv3/fhir"),y.changeMagMicroService("https://test.ahdis.ch/mag-pmp/fhir")):console.log("running at "+location.origin)}}j.AppComponent=c,c.\u0275fac=function(g){return new(g||c)(m.\u0275\u0275directiveInject(o.TranslateService),m.\u0275\u0275directiveInject(d.FhirConfigService))},c.\u0275cmp=m.\u0275\u0275defineComponent({type:c,selectors:[["app-root"]],decls:53,vars:1,consts:[["color","primary","role","header"],["routerLink","/",1,"home-link"],[1,"logo-container"],["src","assets/matchbox_logo_color.png"],[1,"example-fill-remaining-space"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","/"],["mat-menu-item","","routerLink","/CapabilityStatement"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/fhirpath"],["mat-menu-item","","routerLink","/mappinglanguage"],["mat-menu-item","","routerLink","/transform"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/settings"],[1,"mat-typography"]],template:function(g,y){if(1&g&&(m.\u0275\u0275elementStart(0,"mat-toolbar",0),m.\u0275\u0275elementStart(1,"div",1),m.\u0275\u0275elementStart(2,"div",2),m.\u0275\u0275element(3,"img",3),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(4,"span",4),m.\u0275\u0275elementStart(5,"span"),m.\u0275\u0275elementStart(6,"button",5),m.\u0275\u0275elementStart(7,"mat-icon"),m.\u0275\u0275text(8,"more_vert"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(9,"mat-menu",null,6),m.\u0275\u0275elementStart(11,"button",7),m.\u0275\u0275elementStart(12,"mat-icon"),m.\u0275\u0275text(13,"home"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(14,"span"),m.\u0275\u0275text(15,"Home"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(16,"button",8),m.\u0275\u0275elementStart(17,"mat-icon"),m.\u0275\u0275text(18,"info"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(19,"span"),m.\u0275\u0275text(20,"CapabilityStatement"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(21,"button",9),m.\u0275\u0275elementStart(22,"mat-icon"),m.\u0275\u0275text(23,"info"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(24,"span"),m.\u0275\u0275text(25,"IGs ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(26,"button",10),m.\u0275\u0275elementStart(27,"mat-icon"),m.\u0275\u0275text(28,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(29,"span"),m.\u0275\u0275text(30,"FHIRPath ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(31,"button",11),m.\u0275\u0275elementStart(32,"mat-icon"),m.\u0275\u0275text(33,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(34,"span"),m.\u0275\u0275text(35,"FHIR mapping language ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(36,"button",12),m.\u0275\u0275elementStart(37,"mat-icon"),m.\u0275\u0275text(38,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(39,"span"),m.\u0275\u0275text(40,"Transform ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(41,"button",13),m.\u0275\u0275elementStart(42,"mat-icon"),m.\u0275\u0275text(43,"Validate"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(44,"span"),m.\u0275\u0275text(45,"Validate ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(46,"button",14),m.\u0275\u0275elementStart(47,"mat-icon"),m.\u0275\u0275text(48,"settings"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(49,"span"),m.\u0275\u0275text(50,"Settings"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(51,"main",15),m.\u0275\u0275element(52,"router-outlet"),m.\u0275\u0275elementEnd()),2&g){const E=m.\u0275\u0275reference(10);m.\u0275\u0275advance(6),m.\u0275\u0275property("matMenuTriggerFor",E)}},directives:[u.MatToolbar,h.RouterLink,r.MatButton,s.MatMenuTrigger,i.MatIcon,s.MatMenu,s.MatMenuItem,h.RouterOutlet],styles:[".example-fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{padding-left:0}mat-toolbar[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;height:100%;width:160px;justify-content:center;align-items:center}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:calc(100% - 1.2em)}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}@media screen and (min-width: 1020px){main[_ngcontent-%COMP%]{padding:3rem 0;width:1000px}}"]})},6747:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.AppModule=j.createTranslateLoader=void 0;const n=p(655),f=p(520),v=p(4202),m=p(2466),o=p(1744),d=p(5041),u=p(7901),h=p(4090),r=p(5067),s=p(6218),i=p(4586),c=p(4466),l=p(7206),g=p(2756),y=p(719),E=p(3026),T=p(6114),D=(0,n.__importStar)(p(5e3)),S=((0,n.__importStar)(p(4202)),(0,n.__importStar)(p(2466)),(0,n.__importStar)(p(6114)),[{path:"",component:r.HomeComponent},{path:"fhirpath",component:h.FhirPathComponent},{path:"mappinglanguage",component:s.MappingLanguageComponent},{path:"CapabilityStatement",component:u.CapabilityStatementComponent},{path:"igs",component:l.IgsComponent},{path:"settings",component:i.SettingsComponent},{path:"transform",component:y.TransformComponent},{path:"validate",component:E.ValidateComponent}]);function M(b){return new o.TranslateHttpLoader(b,"./assets/i18n/",".json")}j.createTranslateLoader=M;class I{}j.AppModule=I,I.\u0275fac=function(L){return new(L||I)},I.\u0275mod=D.\u0275\u0275defineNgModule({type:I,bootstrap:[d.AppComponent]}),I.\u0275inj=D.\u0275\u0275defineInjector({providers:[{provide:g.HIGHLIGHT_OPTIONS,useValue:{coreLibraryLoader:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(5241))),lineNumbersLoader:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(859))),languages:{json:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(7652))),xml:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(1891)))}}}],imports:[[c.SharedModule,f.HttpClientModule,g.HighlightModule,v.RouterModule.forRoot(S,{useHash:!0,relativeLinkResolution:"legacy"}),m.TranslateModule.forRoot({loader:{provide:m.TranslateLoader,useFactory:M,deps:[f.HttpClient]}}),T.OAuthModule.forRoot()]]})},7901:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.CapabilityStatementComponent=void 0;const n=p(655),v=(p(6165),(0,n.__importStar)(p(5e3))),m=(0,n.__importStar)(p(6165)),o=(0,n.__importStar)(p(9224)),d=(0,n.__importStar)(p(2756)),u=(0,n.__importStar)(p(9808)),h=(0,n.__importStar)(p(7322));function r(c,l){if(1&c&&(v.\u0275\u0275elementStart(0,"li"),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&c){const g=l.$implicit;v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate1(" ",g.diagnostics," ")}}function s(c,l){if(1&c&&(v.\u0275\u0275elementStart(0,"mat-error"),v.\u0275\u0275elementStart(1,"ul"),v.\u0275\u0275template(2,r,2,1,"li",3),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd()),2&c){const g=v.\u0275\u0275nextContext();v.\u0275\u0275advance(2),v.\u0275\u0275property("ngForOf",g.operationOutcome.issue)}}class i{constructor(l){this.data=l,this.client=l.getFhirClient(),this.client.capabilityStatement().then(g=>{this.operationOutcome=void 0,this.capabilitystatement=g}).catch(g=>{this.capabilitystatement=void 0,this.operationOutcome=g.response.data})}getJson(){return JSON.stringify(this.capabilitystatement,null,2)}ngOnInit(){}ngOnDestroy(){}}j.CapabilityStatementComponent=i,i.\u0275fac=function(l){return new(l||i)(v.\u0275\u0275directiveInject(m.FhirConfigService))},i.\u0275cmp=v.\u0275\u0275defineComponent({type:i,selectors:[["app-capability-statement"]],decls:8,vars:4,consts:[[1,"display"],[3,"highlight","lineNumbers"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(l,g){1&l&&(v.\u0275\u0275elementStart(0,"mat-card",0),v.\u0275\u0275elementStart(1,"mat-card-content"),v.\u0275\u0275elementStart(2,"mat-card-header"),v.\u0275\u0275elementStart(3,"mat-card-title"),v.\u0275\u0275text(4),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(5,"pre"),v.\u0275\u0275element(6,"code",1),v.\u0275\u0275elementEnd(),v.\u0275\u0275template(7,s,3,1,"mat-error",2),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd()),2&l&&(v.\u0275\u0275advance(4),v.\u0275\u0275textInterpolate(g.client.baseUrl),v.\u0275\u0275advance(2),v.\u0275\u0275property("highlight",g.getJson())("lineNumbers",!0),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",g.operationOutcome))},directives:[o.MatCard,o.MatCardContent,o.MatCardHeader,o.MatCardTitle,d.Highlight,u.NgIf,h.MatError,u.NgForOf],styles:[".display[_ngcontent-%COMP%]{display:inline-block}"]})},4090:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.FhirPathComponent=void 0;const n=p(655),m=(p(5e3),p(6315),p(3075)),o=p(3460),d=(0,n.__importStar)(p(5e3)),u=(0,n.__importStar)(p(6315)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(7322)),s=(0,n.__importStar)(p(7531)),i=(0,n.__importStar)(p(3075)),c=(0,n.__importStar)(p(2756));class l{constructor(y,E){this.fhirPathService=y,this.cd=E,this.fhirPathExpression=new m.FormControl,this.fhirPathExpression.valueChanges.pipe((0,o.debounceTime)(400),(0,o.distinctUntilChanged)()).subscribe(T=>{if(console.log("called with "+T),T)try{this.fhirPathResult=this.fhirPathService.evaluate(this.resource,T)}catch(D){console.log(D),this.fhirPathResult=void 0}else this.fhirPathResult=void 0})}fileChange(y){const E=new FileReader;if(y.target.files&&y.target.files.length){const[T]=y.target.files;E.readAsText(T),E.onload=()=>{this.resource=JSON.parse(E.result),this.cd.markForCheck()}}}getFhirPathResult(){return JSON.stringify(this.fhirPathResult,null,2)}getJson(){return JSON.stringify(this.resource,null,2)}ngOnInit(){}}j.FhirPathComponent=l,l.\u0275fac=function(y){return new(y||l)(d.\u0275\u0275directiveInject(u.FhirPathService),d.\u0275\u0275directiveInject(d.ChangeDetectorRef))},l.\u0275cmp=d.\u0275\u0275defineComponent({type:l,selectors:[["app-fhir-path"]],decls:15,vars:5,consts:[[1,"display"],["matInput","",3,"formControl"],[3,"highlight","lineNumbers"],["type","file","placeholder","Upload resource","accept",".json",3,"change"]],template:function(y,E){1&y&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"mat-form-field"),d.\u0275\u0275elementStart(3,"mat-label"),d.\u0275\u0275text(4,"FHIRPath Expression"),d.\u0275\u0275elementEnd(),d.\u0275\u0275element(5,"input",1),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"div"),d.\u0275\u0275text(7,"Result"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"pre"),d.\u0275\u0275element(9,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"div"),d.\u0275\u0275text(11,"Resource"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"input",3),d.\u0275\u0275listener("change",function(D){return E.fileChange(D)}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(13,"pre"),d.\u0275\u0275element(14,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&y&&(d.\u0275\u0275advance(5),d.\u0275\u0275property("formControl",E.fhirPathExpression),d.\u0275\u0275advance(4),d.\u0275\u0275property("highlight",E.getFhirPathResult())("lineNumbers",!0),d.\u0275\u0275advance(5),d.\u0275\u0275property("highlight",E.getJson())("lineNumbers",!0))},directives:[h.MatCard,h.MatCardContent,r.MatFormField,r.MatLabel,s.MatInput,i.DefaultValueAccessor,i.NgControlStatus,i.FormControlDirective,c.Highlight],styles:[".display[_ngcontent-%COMP%]{display:inline-block}"]})},6165:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.FhirConfigService=void 0;const n=p(655),f=(0,n.__importDefault)(p(6336)),v=(0,n.__importStar)(p(5e3));class m{constructor(){}changeFhirMicroService(d){localStorage.setItem("fhirMicroServer",d)}changeMagMicroService(d){localStorage.setItem("magMicroService",d)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")||"/matchboxv3/fhir"}getMobileAccessGatewayService(){return localStorage.getItem("magMicroService")||"/mag/fhir"}getMobileAccessGatewayLoginUrl(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/authorize")}getMobileAccessGatewayTokenEndpoint(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/token")}getMobileAccessGatewayAssertionEndpoint(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/assertion")}getRedirectUri(){return location.origin+location.pathname+"#/mag"}getClientId(){return this.getRedirectUri().indexOf("localhost")>=0?"matchboxdev":"matchbox"}getClientSecret(){return"cd8455fc-e294-465a-8c86-35ae468c6b2f"}getFhirClient(){return new f.default({baseUrl:this.getFhirMicroService()})}getMobileAccessGatewayClient(){return new f.default({baseUrl:this.getMobileAccessGatewayService()})}getAuthCodeFlowConfig(){return{loginUrl:this.getMobileAccessGatewayLoginUrl(),redirectUri:this.getRedirectUri(),tokenEndpoint:this.getMobileAccessGatewayTokenEndpoint(),clientId:this.getClientId(),responseType:"code",scope:"todo",dummyClientSecret:this.getClientSecret(),showDebugInformation:!0,timeoutFactor:.75}}}j.FhirConfigService=m,m.\u0275fac=function(d){return new(d||m)},m.\u0275prov=v.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})},6315:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.FhirPathService=void 0;const n=p(655),f=p(2729),v=(0,n.__importStar)(p(5e3));class m{evaluate(d,u){return(0,f.evaluate)(d,u,null)}evaluateToString(d,u){const h=this.evaluate(d,u);return h&&h instanceof Array&&1===h.length?h[0]:null}getOauthUriToken(d){return this.evaluateToString(d,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='token').valueUri")}getOauthUriAuthorize(d){return this.evaluateToString(d,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='authorize').valueUri")}}j.FhirPathService=m,m.\u0275fac=function(d){return new(d||m)},m.\u0275prov=v.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})},5067:(ye,j,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(j,"__esModule",{value:!0}),j.HomeComponent=void 0;const f=p(655),o=(p(6165),p(4202),(0,f.__importDefault)(p(4147))),d=(0,f.__importStar)(p(5e3)),u=(0,f.__importStar)(p(6165)),h=(0,f.__importStar)(p(4202)),r=(0,f.__importStar)(p(9224)),s=(0,f.__importStar)(p(2181)),i=(0,f.__importStar)(p(5245));class c{constructor(g,y){this.router=y,this.version=o.default.version,this.client=g.getFhirClient()}ngOnInit(){return n(function*(){})()}}j.HomeComponent=c,c.\u0275fac=function(g){return new(g||c)(d.\u0275\u0275directiveInject(u.FhirConfigService),d.\u0275\u0275directiveInject(h.Router))},c.\u0275cmp=d.\u0275\u0275defineComponent({type:c,selectors:[["app-home"]],decls:22,vars:1,consts:[[1,"primary"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/settings"],["href","https://www.ahdis.ch"]],template:function(g,y){1&g&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"button",1),d.\u0275\u0275elementStart(3,"mat-icon"),d.\u0275\u0275text(4,"Validate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"span"),d.\u0275\u0275text(6,"Validate ..."),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(7,"button",2),d.\u0275\u0275elementStart(8,"mat-icon"),d.\u0275\u0275text(9,"info"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"span"),d.\u0275\u0275text(11,"IGs ..."),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"button",3),d.\u0275\u0275elementStart(13,"mat-icon"),d.\u0275\u0275text(14,"settings"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(15,"span"),d.\u0275\u0275text(16,"Settings"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(17,"mat-card-footer"),d.\u0275\u0275elementStart(18,"p"),d.\u0275\u0275text(19),d.\u0275\u0275elementStart(20,"a",4),d.\u0275\u0275text(21,"contact"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&g&&(d.\u0275\u0275advance(19),d.\u0275\u0275textInterpolate1("version: ",y.version," "))},directives:[r.MatCard,r.MatCardContent,s.MatMenuItem,h.RouterLink,i.MatIcon,r.MatCardFooter],styles:[".mat-card.primary[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mat-card.primary[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .mat-subheading-2[_ngcontent-%COMP%]{margin:1rem 0 0}.mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] mat-tab-body>div{box-shadow:0 0 5px -3px #000 inset}.mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%]{padding:0 1.5rem 1.5rem}.mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-top:1rem;margin:0}"]})},7206:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.IgsComponent=void 0;const n=p(655),v=(p(6165),p(6346)),m=p(3075),o=(0,n.__importDefault)(p(1455)),u=(p(6315),(0,n.__importStar)(p(5e3))),h=(0,n.__importStar)(p(6165)),r=(0,n.__importStar)(p(6315)),s=(0,n.__importStar)(p(9224)),i=(0,n.__importStar)(p(6346)),c=(0,n.__importStar)(p(7850)),l=(0,n.__importStar)(p(7322)),g=(0,n.__importStar)(p(7531)),y=(0,n.__importStar)(p(3075)),E=(0,n.__importStar)(p(7423)),T=(0,n.__importStar)(p(9808)),D=(0,n.__importStar)(p(773)),O=(0,n.__importStar)(p(7259));function w(ie,ae){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",20),u.\u0275\u0275text(1,"Package Id"),u.\u0275\u0275elementEnd())}function A(ie,ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const le=ae.$implicit,Oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(Oe.getPackageId(le))}}function S(ie,ae){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",21),u.\u0275\u0275text(1,"Version"),u.\u0275\u0275elementEnd())}function M(ie,ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell",21),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const le=ae.$implicit,Oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(Oe.getVersion(le))}}function I(ie,ae){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",20),u.\u0275\u0275text(1,"Title"),u.\u0275\u0275elementEnd())}function b(ie,ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const le=ae.$implicit,Oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(Oe.getTitle(le))}}function L(ie,ae){1&ie&&u.\u0275\u0275element(0,"mat-header-row")}function F(ie,ae){if(1&ie){const le=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"mat-row",22),u.\u0275\u0275listener("click",function(){const Ye=u.\u0275\u0275restoreView(le).$implicit;return u.\u0275\u0275nextContext().selectRow(Ye)}),u.\u0275\u0275elementEnd()}}function ne(ie,ae){if(1&ie){const le=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275text(1,"\xa0 "),u.\u0275\u0275elementStart(2,"button",23),u.\u0275\u0275listener("click",function(){return u.\u0275\u0275restoreView(le),u.\u0275\u0275nextContext().onUpdate()}),u.\u0275\u0275text(3,"Update"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()}}function Y(ie,ae){if(1&ie){const le=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275text(1,"\xa0 "),u.\u0275\u0275elementStart(2,"button",23),u.\u0275\u0275listener("click",function(){return u.\u0275\u0275restoreView(le),u.\u0275\u0275nextContext().onDelete()}),u.\u0275\u0275text(3,"Delete"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()}}function Q(ie,ae){1&ie&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275element(1,"mat-progress-spinner",24),u.\u0275\u0275elementContainerEnd())}function te(ie,ae){if(1&ie&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275element(1,"app-operation-outcome",25),u.\u0275\u0275elementContainerEnd()),2&ie){const le=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("operationOutcome",le.operationOutcome)("title",le.errMsg)}}const $=function(){return["packageId","version","title"]};class J{constructor(ae,le){this.data=ae,this.fhirPathService=le,this.length=100,this.pageSize=1e3,this.pageIndex=0,this.pageSizeOptions=[this.pageSize],this.dataSource=new v.MatTableDataSource,this.update=!1,this.query={_sort:"title"},this.client=ae.getFhirClient(),this.addPackageId=new m.FormControl("",[m.Validators.required,m.Validators.minLength(1)]),this.addVersion=new m.FormControl("current",[m.Validators.required,m.Validators.minLength(1)]),this.addUrl=new m.FormControl("url"),this.search()}search(){this.client.search({resourceType:"ImplementationGuide",searchParams:this.query}).then(ae=>{this.pageIndex=0,this.setBundle(ae),this.selection=void 0,this.addPackageId.setValue(""),this.addVersion.setValue(""),this.addUrl.setValue("")}).catch(ae=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=ae.response.data}),this.update=!1}getPackageId(ae){const le=ae.resource;return le.packageId?le.packageId:""}getTitle(ae){const le=ae.resource;return le.title?le.title:""}getVersion(ae){const le=ae.resource;return le.version?le.version:""}getPackageUrl(ae){return this.fhirPathService.evaluateToString(ae.resource,"extension.where(url='http://ahdis.ch/fhir/extension/packageUrl').valueUri")}setBundle(ae){this.bundle=ae,this.dataSource.data=this.bundle.entry,this.length=this.bundle.total,this.selection=void 0}ngOnInit(){}selectRow(ae){this.selection=ae.resource,this.addPackageId.setValue(this.selection.packageId),this.addUrl.setValue(this.getPackageUrl(ae));let le=this.selection.version;le&&le.endsWith(" (current)")&&(le=le.substring(0,le.length-10)),this.addVersion.setValue(le)}onSubmit(){if(J.log("onSubmit "+this.addPackageId.value),this.errMsg=null,this.addPackageId.invalid||this.addVersion.invalid)return void(this.errMsg="Please provide package name");let ae=this.addPackageId.value.trim();ae.indexOf("#")>0&&(ae.substring(0,ae.indexOf("#")-1),this.addVersion.setValue(ae.substring(0,ae.indexOf("#")+1))),this.addPackageId.setValue(ae);const le=this.addVersion.value.trim();this.addVersion.setValue(le),this.update=!0,this.client.create({resourceType:"ImplementationGuide",body:{resourceType:"ImplementationGuide",name:ae,version:le,packageId:ae,url:this.addUrl.value},options:{headers:{Prefer:"return=OperationOutcome"}}}).then(Oe=>{this.errMsg="Created Implementation Guide"+this.addPackageId.value,this.operationOutcome=Oe,this.search()}).catch(Oe=>{this.errMsg="Error creating Implementation Guide "+this.addPackageId.value,this.operationOutcome=Oe.response.data,this.update=!1})}goToPage(ae){ae.pageIndex>this.pageIndex?this.client.nextPage({bundle:this.bundle}).then(le=>{this.pageIndex=ae.pageIndex,this.setBundle(le),this.selection=void 0,console.log("next page called ")}):this.client.prevPage({bundle:this.bundle}).then(le=>{this.pageIndex=ae.pageIndex,this.setBundle(le),this.selection=void 0,console.log("previous page called ")})}onUpdate(){this.errMsg=null,this.selection.name=this.addPackageId.value,this.selection.version=this.addVersion.value,this.selection.packageId=this.addPackageId.value,this.selection.url=this.addUrl.value,this.update=!0,this.client.update({resourceType:this.selection.resourceType,id:this.selection.id,body:this.selection,options:{headers:{Prefer:"return=OperationOutcome"}}}).then(ae=>{this.errMsg="Updated Implementation Guide "+this.selection.packageId,this.operationOutcome=ae,this.search()}).catch(ae=>{this.errMsg="Error updating Implementation Guide "+this.selection.packageId,this.operationOutcome=ae.response.data,this.update=!1})}onDelete(){this.errMsg=null,this.update=!0,this.client.delete({resourceType:this.selection.resourceType,id:this.selection.id,options:{headers:{Prefer:"return=OperationOutcome","X-Cascade":"delete"}}}).then(ae=>{this.errMsg="Deleted Implementation Guide Resource "+this.selection.packageId,this.operationOutcome=ae,this.search()}).catch(ae=>{this.errMsg="Error deleting Implementation Guide "+this.selection.packageId,this.operationOutcome=ae.response.data,this.update=!1})}}j.IgsComponent=J,J.log=(0,o.default)("app:"),J.\u0275fac=function(ae){return new(ae||J)(u.\u0275\u0275directiveInject(h.FhirConfigService),u.\u0275\u0275directiveInject(r.FhirPathService))},J.\u0275cmp=u.\u0275\u0275defineComponent({type:J,selectors:[["app-igs"]],decls:45,vars:16,consts:[[1,"card-igs"],[3,"dataSource"],["table",""],["matColumnDef","packageId"],["class","packageId",4,"matHeaderCellDef"],["class","packageId",4,"matCellDef"],["matColumnDef","version"],["class","version",4,"matHeaderCellDef"],["class","version",4,"matCellDef"],["matColumnDef","title",1,"title"],[4,"matCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],[3,"pageIndex","length","pageSize","pageSizeOptions","page"],[1,"Search"],["matInput","",3,"formControl"],[2,"width","50vw"],["href","https://packages.fhir.org"],["mat-raised-button","","color","primary","type","submit",3,"click"],[4,"ngIf"],[1,"packageId"],[1,"version"],[3,"click"],["mat-button","","type","submit",3,"click"],["mode","indeterminate"],[3,"operationOutcome","title"]],template:function(ae,le){1&ae&&(u.\u0275\u0275elementStart(0,"mat-card",0),u.\u0275\u0275elementStart(1,"mat-card-content"),u.\u0275\u0275elementStart(2,"mat-card-header"),u.\u0275\u0275elementStart(3,"mat-card-title"),u.\u0275\u0275text(4,"FHIR ImplementationGuides installed on server"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"mat-table",1,2),u.\u0275\u0275elementContainerStart(7,3),u.\u0275\u0275template(8,w,2,0,"mat-header-cell",4),u.\u0275\u0275template(9,A,2,1,"mat-cell",5),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(10,6),u.\u0275\u0275template(11,S,2,0,"mat-header-cell",7),u.\u0275\u0275template(12,M,2,1,"mat-cell",8),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(13,9),u.\u0275\u0275template(14,I,2,0,"mat-header-cell",4),u.\u0275\u0275template(15,b,2,1,"mat-cell",10),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(16,L,1,0,"mat-header-row",11),u.\u0275\u0275template(17,F,1,0,"mat-row",12),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(18,"mat-paginator",13),u.\u0275\u0275listener("page",function(Le){return le.goToPage(Le)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(19,"mat-card",14),u.\u0275\u0275elementStart(20,"mat-card-content"),u.\u0275\u0275elementStart(21,"mat-form-field"),u.\u0275\u0275elementStart(22,"mat-label"),u.\u0275\u0275text(23,"PackageId"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(24,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(25," \xa0 "),u.\u0275\u0275elementStart(26,"mat-form-field"),u.\u0275\u0275elementStart(27,"mat-label"),u.\u0275\u0275text(28,"Version"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(29,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(30," \xa0 "),u.\u0275\u0275elementStart(31,"mat-form-field",16),u.\u0275\u0275elementStart(32,"mat-label"),u.\u0275\u0275text(33,"Package url (optional, use only if not available through "),u.\u0275\u0275elementStart(34,"a",17),u.\u0275\u0275text(35,"packages.fhir.org"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(36,")"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(37,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(38,"mat-card-actions"),u.\u0275\u0275elementStart(39,"button",18),u.\u0275\u0275listener("click",function(){return le.onSubmit()}),u.\u0275\u0275text(40," Upload "),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(41,ne,4,0,"ng-container",19),u.\u0275\u0275template(42,Y,4,0,"ng-container",19),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(43,Q,2,0,"ng-container",19),u.\u0275\u0275template(44,te,2,2,"ng-container",19)),2&ae&&(u.\u0275\u0275advance(5),u.\u0275\u0275property("dataSource",le.dataSource),u.\u0275\u0275advance(11),u.\u0275\u0275property("matHeaderRowDef",u.\u0275\u0275pureFunction0(14,$)),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",u.\u0275\u0275pureFunction0(15,$)),u.\u0275\u0275advance(1),u.\u0275\u0275property("pageIndex",le.pageIndex)("length",le.length)("pageSize",le.pageSize)("pageSizeOptions",le.pageSizeOptions),u.\u0275\u0275advance(6),u.\u0275\u0275property("formControl",le.addPackageId),u.\u0275\u0275advance(5),u.\u0275\u0275property("formControl",le.addVersion),u.\u0275\u0275advance(8),u.\u0275\u0275property("formControl",le.addUrl),u.\u0275\u0275advance(4),u.\u0275\u0275property("ngIf",le.selection),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",le.selection),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",le.update),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",le.errMsg))},directives:[s.MatCard,s.MatCardContent,s.MatCardHeader,s.MatCardTitle,i.MatTable,i.MatColumnDef,i.MatHeaderCellDef,i.MatCellDef,i.MatHeaderRowDef,i.MatRowDef,c.MatPaginator,l.MatFormField,l.MatLabel,g.MatInput,y.DefaultValueAccessor,y.NgControlStatus,y.FormControlDirective,s.MatCardActions,E.MatButton,T.NgIf,i.MatHeaderCell,i.MatCell,i.MatHeaderRow,i.MatRow,D.MatProgressSpinner,O.OperationOutcomeComponent],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.mat-form-field.url[_ngcontent-%COMP%]{width:200px}.mat-table[_ngcontent-%COMP%]{margin:1rem}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-table[_ngcontent-%COMP%] .mat-cell.title[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.title[_ngcontent-%COMP%]{flex:2;justify-content:flex-end}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:first-child{padding-left:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-child{padding-right:1rem}.card-igs[_ngcontent-%COMP%]{margin-bottom:10px}"]})},6218:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.MappingLanguageComponent=void 0;const n=p(655),m=(p(5e3),p(6165),p(3075)),o=p(3460),d=(0,n.__importDefault)(p(1455)),u=(0,n.__importStar)(p(5e3)),h=(0,n.__importStar)(p(6165)),r=(0,n.__importStar)(p(9224)),s=(0,n.__importStar)(p(7322)),i=(0,n.__importStar)(p(7531)),c=(0,n.__importStar)(p(3075)),l=(0,n.__importStar)(p(9808));function g(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&w){const S=A.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1(" ",S.diagnostics," ")}}function y(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"mat-error"),u.\u0275\u0275elementStart(1,"ul"),u.\u0275\u0275template(2,g,2,1,"li",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&w){const S=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",S.operationOutcome.issue)}}function E(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"mat-hint"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&w){const S=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1("Successfully created on server: ",S.structureMap.url,"")}}function T(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&w){const S=A.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1(" ",S.diagnostics," ")}}function D(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"mat-error"),u.\u0275\u0275elementStart(1,"ul"),u.\u0275\u0275template(2,T,2,1,"li",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&w){const S=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",S.operationOutcomeTransformed.issue)}}class O{constructor(A,S){this.cd=A,this.data=S,this.client=S.getFhirClient(),this.source=new m.FormControl,this.map=new m.FormControl,this.structureMap=null,this.map.valueChanges.pipe((0,o.debounceTime)(1e3),(0,o.distinctUntilChanged)()).subscribe(M=>{O.log("create StructureMap"),this.client.create({resourceType:"StructureMap",body:M,headers:{accept:"application/fhir+json","content-type":"text/fhir-mapping"}}).then(I=>{this.operationOutcome=null,this.structureMap=I,this.transform()}).catch(I=>{this.structureMap=null,this.operationOutcome=I.response.data})}),this.source.valueChanges.pipe((0,o.debounceTime)(1e3),(0,o.distinctUntilChanged)()).subscribe(M=>this.transform())}transform(){O.log("transform Source");let A=JSON.parse(this.source.value);null!=this.structureMap&&this.client.operation({name:"transform?source="+encodeURIComponent(this.structureMap.url),resourceType:"StructureMap",input:A}).then(S=>{this.operationOutcomeTransformed=null,this.transformed=S}).catch(S=>{this.transformed=null,this.operationOutcomeTransformed=S.response.data})}ngOnInit(){}fileSource(A){const S=new FileReader;if(A.target.files&&A.target.files.length){const[M]=A.target.files;S.readAsText(M),S.onload=()=>{this.source.setValue(S.result),this.cd.markForCheck()}}}fileChange(A){const S=new FileReader;if(A.target.files&&A.target.files.length){const[M]=A.target.files;S.readAsText(M),S.onload=()=>{this.map.setValue(S.result),this.cd.markForCheck()}}}}j.MappingLanguageComponent=O,O.log=(0,d.default)("app:"),O.\u0275fac=function(A){return new(A||O)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(h.FhirConfigService))},O.\u0275cmp=u.\u0275\u0275defineComponent({type:O,selectors:[["app-mapping-language"]],decls:31,vars:8,consts:[[1,"card-maps"],[1,"fixtextarea"],["type","file","placeholder","Upload source","accept",".json",3,"change"],["matNativeControl","","rows","15","cols","400",3,"formControl"],["type","file","placeholder","Upload map","accept",".map",3,"change"],["matNativeControl","","rows","20","cols","400",3,"formControl"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(A,S){1&A&&(u.\u0275\u0275elementStart(0,"mat-card",0),u.\u0275\u0275elementStart(1,"mat-card-content"),u.\u0275\u0275elementStart(2,"mat-card-header"),u.\u0275\u0275elementStart(3,"mat-card-title"),u.\u0275\u0275text(4,"Source"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"mat-form-field",1),u.\u0275\u0275elementStart(6,"mat-card-actions"),u.\u0275\u0275elementStart(7,"input",2),u.\u0275\u0275listener("change",function(I){return S.fileSource(I)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(8,"textarea",3),u.\u0275\u0275text(9," "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(10,"mat-card",0),u.\u0275\u0275elementStart(11,"mat-card-content"),u.\u0275\u0275elementStart(12,"mat-card-header"),u.\u0275\u0275elementStart(13,"mat-card-title"),u.\u0275\u0275text(14,"FHIR Mapping Language map"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(15,"mat-form-field",1),u.\u0275\u0275elementStart(16,"mat-card-actions"),u.\u0275\u0275elementStart(17,"input",4),u.\u0275\u0275listener("change",function(I){return S.fileChange(I)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(18,"textarea",5),u.\u0275\u0275text(19," "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(20,y,3,1,"mat-error",6),u.\u0275\u0275template(21,E,2,1,"mat-hint",6),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(22,"mat-card",0),u.\u0275\u0275elementStart(23,"mat-card-content"),u.\u0275\u0275elementStart(24,"mat-card-header"),u.\u0275\u0275elementStart(25,"mat-card-title"),u.\u0275\u0275text(26,"Transformed"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(27,D,3,1,"mat-error",6),u.\u0275\u0275elementStart(28,"pre"),u.\u0275\u0275text(29),u.\u0275\u0275pipe(30,"json"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&A&&(u.\u0275\u0275advance(8),u.\u0275\u0275property("formControl",S.source),u.\u0275\u0275advance(10),u.\u0275\u0275property("formControl",S.map),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",S.operationOutcome),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",S.structureMap),u.\u0275\u0275advance(6),u.\u0275\u0275property("ngIf",S.operationOutcomeTransformed),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind1(30,6,S.transformed)))},directives:[r.MatCard,r.MatCardContent,r.MatCardHeader,r.MatCardTitle,s.MatFormField,r.MatCardActions,i.MatInput,c.DefaultValueAccessor,c.NgControlStatus,c.FormControlDirective,l.NgIf,s.MatError,l.NgForOf,s.MatHint],pipes:[l.JsonPipe],styles:[".fixtextarea[_ngcontent-%COMP%]{display:inline}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})},7259:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.OperationOutcomeComponent=void 0;const n=p(655),v=(p(5e3),(0,n.__importStar)(p(5682))),m=(0,n.__importStar)(p(5e3)),o=(0,n.__importStar)(p(9224)),d=(0,n.__importStar)(p(9808)),u=["editor"];function h(g,y){if(1&g&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1),m.\u0275\u0275elementContainerEnd()),2&g){const E=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",E.diagnostics," ")}}function r(g,y){if(1&g&&(m.\u0275\u0275elementStart(0,"li",5),m.\u0275\u0275text(1),m.\u0275\u0275elementEnd()),2&g){const E=y.$implicit;m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",E," ")}}function s(g,y){if(1&g&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275elementStart(1,"ol"),m.\u0275\u0275template(2,r,2,1,"li",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementContainerEnd()),2&g){const E=m.\u0275\u0275nextContext().$implicit,T=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(2),m.\u0275\u0275property("ngForOf",T.getSliceInfo(E))}}function i(g,y){if(1&g){const E=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"div",5),m.\u0275\u0275elementStart(1,"a",6),m.\u0275\u0275listener("click",function(){const O=m.\u0275\u0275restoreView(E).$implicit,w=m.\u0275\u0275nextContext(2);return w.scroll(w.getLineNo(O))}),m.\u0275\u0275text(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275text(3,":"),m.\u0275\u0275element(4,"br"),m.\u0275\u0275template(5,h,2,1,"ng-container",1),m.\u0275\u0275template(6,s,3,1,"ng-container",1),m.\u0275\u0275elementEnd()}if(2&g){const E=y.$implicit,T=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(1),m.\u0275\u0275classMap(E.severity),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate2("",T.getLineFromExtension(E),": ",T.getLocation(E),""),m.\u0275\u0275advance(3),m.\u0275\u0275property("ngIf",0==T.hasSliceInfo(E)),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",T.hasSliceInfo(E))}}function c(g,y){if(1&g&&(m.\u0275\u0275elementStart(0,"div"),m.\u0275\u0275template(1,i,7,7,"div",4),m.\u0275\u0275elementEnd()),2&g){const E=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275property("ngForOf",E.outcome.issue)}}class l{constructor(){this.mode="ace/mode/json"}ngOnInit(){}ngAfterViewInit(){var y;this.editor&&this.editor.nativeElement&&(v.config.set("fontSize","11px"),v.config.set("basePath","https://unpkg.com/ace-builds@1.4.12/src-noconflict"),this.aceEditor=v.edit(this.editor.nativeElement),this.aceEditor.setOption("useWorker",!1),this.aceEditor.setTheme("ace/theme/chrome"),(null===(y=this.mode)||void 0===y?void 0:y.indexOf("xml"))>=0?this.aceEditor.session.setMode("ace/mode/xml"):this.aceEditor.session.setMode("ace/mode/json"),this.aceEditor.session.setValue(this.content),this.aceEditor.setReadOnly(!0),this.aceEditor.on("change",()=>{console.log(this.aceEditor.getValue())}),this.updateAnnotations())}updateAnnotations(){var y,E;const T=[];if(this.outcome&&this.aceEditor){const D=this.aceEditor.session.getMarkers();if(D){const O=Object.keys(D);for(let w of O)this.aceEditor.session.removeMarker(D[w].id)}null===(y=this.outcome.issue)||void 0===y||y.forEach(O=>this.aceEditor.getSession().addMarker(new v.Range(this.getLineNo(O)-1,0,this.getLineNo(O)-1,1),this.getLineAceClass(O),"fullLine",!0)),null===(E=this.outcome.issue)||void 0===E||E.forEach(O=>T.push({row:this.getLineNo(O)-1,column:0,text:O.diagnostics,type:this.getErrorType(O)})),this.aceEditor.session.setAnnotations(T)}}getErrorType(y){switch(y.severity){case"fatal":case"error":return"error";case"warning":case"information":return"warning"}return""}set json(y){this.content=y,this.ngAfterViewInit()}set operationOutcome(y){var E,T;this.outcome=y,this.outcome&&(null===(E=this.outcome.issue)||void 0===E?void 0:E.length)>0&&(null===(T=this.outcome.issue)||void 0===T||T.sort((D,O)=>this.getLineNo(D)-this.getLineNo(O)),this.ngAfterViewInit())}getJson(){return this.content}getLineAceClass(y){return"ace-highlight-"+(null==y?void 0:y.severity)}getLineNo(y){var E;return(null===(E=y.extension)||void 0===E?void 0:E.length)>0?y.extension[0].valueInteger:0}hasSliceInfo(y){var E;return(null===(E=null==y?void 0:y.diagnostics)||void 0===E?void 0:E.indexOf("Slice info:"))>=0}getSliceInfo(y){var E;let T=null==y?void 0:y.diagnostics.substring((null===(E=null==y?void 0:y.diagnostics)||void 0===E?void 0:E.indexOf("Slice info: 1.)"))+15).trimLeft(),D=new RegExp("[\\d]+[\\.][\\)]");return T.split(D)}getLineFromExtension(y){var E;return(null===(E=y.extension)||void 0===E?void 0:E.length)>0?"L"+y.extension[0].valueInteger:""}getLocation(y){var E;return(null===(E=y.location)||void 0===E?void 0:E.length)>0?y.location[0]:""}scroll(y){(y-=1)<0&&(y=0),this.aceEditor.scrollToLine(y,!1,!0,null)}}j.OperationOutcomeComponent=l,l.\u0275fac=function(y){return new(y||l)},l.\u0275cmp=m.\u0275\u0275defineComponent({type:l,selectors:[["app-operation-outcome"]],viewQuery:function(y,E){if(1&y&&m.\u0275\u0275viewQuery(u,5),2&y){let T;m.\u0275\u0275queryRefresh(T=m.\u0275\u0275loadQuery())&&(E.editor=T.first)}},inputs:{mode:"mode",title:"title",json:"json",operationOutcome:"operationOutcome"},decls:8,vars:2,consts:[[1,"card-maps"],[4,"ngIf"],[1,"app-ace-editor",2,"width","100%","height","500px"],["editor",""],["class","issue",4,"ngFor","ngForOf"],[1,"issue"],[3,"click"]],template:function(y,E){1&y&&(m.\u0275\u0275elementStart(0,"mat-card",0),m.\u0275\u0275elementStart(1,"mat-card-content"),m.\u0275\u0275elementStart(2,"mat-card-header"),m.\u0275\u0275elementStart(3,"mat-card-title"),m.\u0275\u0275text(4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(5,c,2,1,"div",1),m.\u0275\u0275element(6,"div",2,3),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()),2&y&&(m.\u0275\u0275advance(4),m.\u0275\u0275textInterpolate(E.title),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",E.outcome))},directives:[o.MatCard,o.MatCardContent,o.MatCardHeader,o.MatCardTitle,d.NgIf,d.NgForOf],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.app-ace-editor[_ngcontent-%COMP%]{border:2px solid #f8f9fa;box-shadow:0 .5rem 1rem #00000026}.issue[_ngcontent-%COMP%]{border:2px solid #f8f9fa;padding:2px}.fatal[_ngcontent-%COMP%]{background:#cc3300}.error[_ngcontent-%COMP%]{background:#ff9966}.warning[_ngcontent-%COMP%]{background:#ffe69e}.information[_ngcontent-%COMP%]{background:#cde8a5} .ace-highlight-fatal{position:absolute;background:#cc3300;opacity:.4} .ace-highlight-error{position:absolute;background:#ff9966;opacity:.4} .ace-highlight-warning{position:absolute;background:#ffcc00;opacity:.4} .ace-highlight-information{position:absolute;background:#99cc33;opacity:.4}"]})},4586:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.SettingsComponent=void 0;const n=p(655),v=(p(6165),(0,n.__importDefault)(p(1455))),o=(p(4202),(0,n.__importStar)(p(5e3))),d=(0,n.__importStar)(p(6165)),u=(0,n.__importStar)(p(4202)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(3075)),s=(0,n.__importStar)(p(7322)),i=(0,n.__importStar)(p(4107)),c=(0,n.__importStar)(p(9808)),l=(0,n.__importStar)(p(508));function g(E,T){if(1&E&&(o.\u0275\u0275elementStart(0,"mat-option",2),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&E){const D=T.$implicit;o.\u0275\u0275property("value",D),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",D," ")}}class y{constructor(T,D){this.data=T,this.router=D,this.fhirServers=["https://test.ahdis.ch/matchboxv3/fhir","https://gazelle.ihe.net/matchbox/fhir","https://ehealthsuisse.ihe-europe.net/matchbox/fhir","https://hapi.fhir.org/baseR4","http://hapi.fhir.org/baseR4","http://tx.fhir.org/r4/","http://test.fhir.org/r4","https://test.ahdis.ch/mag-cara/fhir","https://test.ahdis.ch/mag-pmp/fhir","https://test.ahdis.ch/mag-bfh/fhir","https://test.ahdis.ch/mag-test-emedo/fhir","http://localhost:8080/matchboxv3/fhir","http://localhost:9090/mag-pmp/fhir","http://localhost:9090/mag-cara/fhir","https://fhir-mapping-lab.azurewebsites.net/"],this.client=T.getFhirClient()}ngOnInit(){this.baseUrlFhir=this.data.getFhirMicroService()}getFhirSelectedValue(){return this.baseUrlFhir}setFhirSelectedValue(T){(0,v.default)("setting new server to "+T),this.data.changeFhirMicroService(T)}}j.SettingsComponent=y,y.\u0275fac=function(T){return new(T||y)(o.\u0275\u0275directiveInject(d.FhirConfigService),o.\u0275\u0275directiveInject(u.Router))},y.\u0275cmp=o.\u0275\u0275defineComponent({type:y,selectors:[["app-settings"]],decls:7,vars:2,consts:[["placeholder","FHIR Server","name","selectserver",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(T,D){1&T&&(o.\u0275\u0275elementStart(0,"mat-card"),o.\u0275\u0275elementStart(1,"mat-card-content"),o.\u0275\u0275elementStart(2,"form"),o.\u0275\u0275elementStart(3,"mat-form-field"),o.\u0275\u0275elementStart(4,"mat-select",0),o.\u0275\u0275listener("ngModelChange",function(w){return D.setFhirSelectedValue(w)}),o.\u0275\u0275template(5,g,2,2,"mat-option",1),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(6,"br"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&T&&(o.\u0275\u0275advance(4),o.\u0275\u0275property("ngModel",D.getFhirSelectedValue()),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",D.fhirServers))},directives:[h.MatCard,h.MatCardContent,r.\u0275NgNoValidate,r.NgControlStatusGroup,r.NgForm,s.MatFormField,i.MatSelect,r.NgControlStatus,r.NgModel,c.NgForOf,l.MatOption],styles:[""]})},4466:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.SharedModule=void 0;const n=p(655),f=p(9808),v=p(3075),m=p(6360),o=p(2313),d=p(1079),u=p(7423),h=p(9224),r=p(7446),s=p(508),i=p(4703),c=p(4834),l=p(7322),g=p(5245),y=p(7531),E=p(2181),T=p(7850),D=p(9814),O=p(4107),w=p(2368),A=p(8029),S=p(6346),M=p(3251),I=p(4594),b=p(2466),L=p(773),F=(0,n.__importStar)(p(5e3)),ne=[f.CommonModule,o.BrowserModule,m.BrowserAnimationsModule,v.FormsModule,v.ReactiveFormsModule,b.TranslateModule,d.MatAutocompleteModule,u.MatButtonModule,h.MatCardModule,r.MatCheckboxModule,c.MatDividerModule,l.MatFormFieldModule,g.MatIconModule,y.MatInputModule,E.MatMenuModule,T.MatPaginatorModule,O.MatSelectModule,A.MatSliderModule,w.MatSlideToggleModule,S.MatTableModule,I.MatToolbarModule,M.MatTabsModule,i.MatDatepickerModule,s.MatNativeDateModule,D.MatRadioModule,L.MatProgressSpinnerModule];class Q{}j.SharedModule=Q,Q.\u0275fac=function($){return new($||Q)},Q.\u0275mod=F.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=F.\u0275\u0275defineInjector({imports:[ne,f.CommonModule,o.BrowserModule,m.BrowserAnimationsModule,v.FormsModule,v.ReactiveFormsModule,b.TranslateModule,d.MatAutocompleteModule,u.MatButtonModule,h.MatCardModule,r.MatCheckboxModule,c.MatDividerModule,l.MatFormFieldModule,g.MatIconModule,y.MatInputModule,E.MatMenuModule,T.MatPaginatorModule,O.MatSelectModule,A.MatSliderModule,w.MatSlideToggleModule,S.MatTableModule,I.MatToolbarModule,M.MatTabsModule,i.MatDatepickerModule,s.MatNativeDateModule,D.MatRadioModule,L.MatProgressSpinnerModule]})},719:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.TransformComponent=void 0;const n=p(655),m=(p(5e3),p(6165),p(3075)),o=p(3460),d=(0,n.__importStar)(p(5e3)),u=(0,n.__importStar)(p(6165)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(68)),s=(0,n.__importStar)(p(2756)),i=(0,n.__importStar)(p(7322)),c=(0,n.__importStar)(p(4107)),l=(0,n.__importStar)(p(3075)),g=(0,n.__importStar)(p(9808)),y=(0,n.__importStar)(p(508));function E(w,A){if(1&w&&(d.\u0275\u0275elementStart(0,"mat-option",7),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&w){const S=A.$implicit;d.\u0275\u0275propertyInterpolate("value",S.url),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(S.name)}}function T(w,A){if(1&w&&(d.\u0275\u0275elementStart(0,"li"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&w){const S=A.$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",S.diagnostics," ")}}function D(w,A){if(1&w&&(d.\u0275\u0275elementStart(0,"mat-error"),d.\u0275\u0275elementStart(1,"ul"),d.\u0275\u0275template(2,T,2,1,"li",8),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&w){const S=d.\u0275\u0275nextContext();d.\u0275\u0275advance(2),d.\u0275\u0275property("ngForOf",S.operationOutcomeTransformed.issue)}}class O{constructor(A,S){this.data=A,this.cd=S,this.query={_summary:"true",_sort:"name"},this.panelOpenState=!1,this.client=A.getFhirClient(),this.client.search({resourceType:"StructureMap",searchParams:this.query}).then(M=>(this.setMaps(M),M)),this.selectedMap=new m.FormControl,this.selectedMap.valueChanges.pipe((0,o.debounceTime)(400),(0,o.distinctUntilChanged)()).subscribe(M=>{this.selectedUrl=M,this.transform()})}transform(){null!=this.source&&null!=this.selectedUrl&&this.client.operation({name:"transform?source="+encodeURIComponent(this.selectedUrl),resourceType:"StructureMap",input:this.source,options:{headers:{"content-type":this.mimeType}}}).then(A=>{this.operationOutcomeTransformed=null,this.transformed=A}).catch(A=>{this.transformed=null,this.operationOutcomeTransformed=A.response.data})}getSource(){return this.source}getMapped(){return JSON.stringify(this.transformed,null,2)}setMaps(A){this.structureMaps=A.entry.map(S=>S.resource)}ngOnInit(){}addFile(A){this.transformed=null,("application/json"===A.contentType||A.name.endsWith(".json"))&&(this.mimeType="application/fhir+json"),("application/xml"===A.contentType||A.name.endsWith(".xml"))&&(this.mimeType="application/fhir+xml");const S=new FileReader;S.readAsText(A.blob),S.onload=()=>{this.source=S.result}}}j.TransformComponent=O,O.\u0275fac=function(A){return new(A||O)(d.\u0275\u0275directiveInject(u.FhirConfigService),d.\u0275\u0275directiveInject(d.ChangeDetectorRef))},O.\u0275cmp=d.\u0275\u0275defineComponent({type:O,selectors:[["app-transform"]],decls:24,vars:8,consts:[[1,"card-maps"],[3,"addFiles"],[3,"highlight","lineNumbers"],["appearance","fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],[4,"ngFor","ngForOf"]],template:function(A,S){1&A&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"mat-card-header"),d.\u0275\u0275elementStart(3,"mat-card-title"),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"div"),d.\u0275\u0275text(6,"Resource"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(7,"app-upload",1),d.\u0275\u0275listener("addFiles",function(I){return S.addFile(I)}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"pre"),d.\u0275\u0275element(9,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"mat-card",0),d.\u0275\u0275elementStart(11,"mat-form-field",3),d.\u0275\u0275elementStart(12,"mat-label"),d.\u0275\u0275text(13,"Map for transforming"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(14,"mat-select",4),d.\u0275\u0275template(15,E,2,2,"mat-option",5),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(16,"mat-card",0),d.\u0275\u0275elementStart(17,"mat-card-content"),d.\u0275\u0275elementStart(18,"mat-card-header"),d.\u0275\u0275elementStart(19,"mat-card-title"),d.\u0275\u0275text(20,"Transformed"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(21,D,3,1,"mat-error",6),d.\u0275\u0275elementStart(22,"pre"),d.\u0275\u0275element(23,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&A&&(d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(S.client.baseUrl),d.\u0275\u0275advance(5),d.\u0275\u0275property("highlight",S.getSource())("lineNumbers",!0),d.\u0275\u0275advance(5),d.\u0275\u0275property("formControl",S.selectedMap),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",S.structureMaps),d.\u0275\u0275advance(6),d.\u0275\u0275property("ngIf",S.operationOutcomeTransformed),d.\u0275\u0275advance(2),d.\u0275\u0275property("highlight",S.getMapped())("lineNumbers",!0))},directives:[h.MatCard,h.MatCardContent,h.MatCardHeader,h.MatCardTitle,r.UploadComponent,s.Highlight,i.MatFormField,i.MatLabel,c.MatSelect,l.NgControlStatus,l.FormControlDirective,g.NgForOf,g.NgIf,y.MatOption,i.MatError],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})},68:(ye,j,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(j,"__esModule",{value:!0}),j.UploadComponent=void 0;const f=p(655),v=p(5e3),m=(0,f.__importStar)(p(5e3)),o=(0,f.__importStar)(p(5245)),d=(0,f.__importStar)(p(7423));class u{constructor(){this.addFiles=new v.EventEmitter,this.dragCounter=0}checkStatus(r){if(!r.ok)throw new Error(`HTTP ${r.status} - ${r.statusText}`);return r}onDrop(r){r.preventDefault(),this.dragCounter=0;const s=r.target.files||r.dataTransfer.items;if(s)for(let c=0;c0))},directives:[o.MatIcon,d.MatButton],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.attachment-field[_ngcontent-%COMP%]{border-radius:5px;background:#f0f3f6}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;display:flex;align-items:center;height:40px}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .attachment-name[_ngcontent-%COMP%]{flex:1;padding:0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .attachment-size[_ngcontent-%COMP%]:last-child{margin-right:1rem}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;line-height:inherit}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%]{text-align:center;padding:2rem;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.attachment-field[_ngcontent-%COMP%] .drop-zone.file-over[_ngcontent-%COMP%]{background:#e0e6ec}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{line-height:3rem}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%] .bold-text[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0})},3026:(ye,j,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(j,"__esModule",{value:!0}),j.ValidateComponent=void 0;const f=p(655),o=(p(5e3),p(6165),p(3075)),d=(0,f.__importDefault)(p(4956)),u=(0,f.__importDefault)(p(1654)),h=p(6346),r=(0,f.__importStar)(p(5e3)),s=(0,f.__importStar)(p(6165)),i=(0,f.__importStar)(p(9224)),c=(0,f.__importStar)(p(68)),l=(0,f.__importStar)(p(7322)),g=(0,f.__importStar)(p(4107)),y=(0,f.__importStar)(p(3075)),E=(0,f.__importStar)(p(9808)),T=(0,f.__importStar)(p(7423)),D=(0,f.__importStar)(p(6346)),O=(0,f.__importStar)(p(2181)),w=(0,f.__importStar)(p(5245)),A=(0,f.__importStar)(p(508)),S=(0,f.__importStar)(p(773)),M=(0,f.__importStar)(p(7259)),I=(0,f.__importStar)(p(7531));function b(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-option",26),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275property("value",Ee),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function L(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-option",26),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275property("value",Ee),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function F(Bt,Et){1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"mat-progress-spinner",27),r.\u0275\u0275elementContainerEnd())}function ne(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"app-operation-outcome",28),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("operationOutcome",Ee.operationOutcome)("title",Ee.errMsg)}}function Y(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",29),r.\u0275\u0275text(1,"Resource"),r.\u0275\u0275elementEnd())}function Q(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",29),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ee.name)}}function te(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",30),r.\u0275\u0275text(1,"Profile/IG"),r.\u0275\u0275elementEnd())}function $(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function J(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee.ig," ")}}function ie(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",30),r.\u0275\u0275elementStart(1,"div"),r.\u0275\u0275template(2,$,2,1,"div",31),r.\u0275\u0275template(3,J,2,1,"div",7),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",Ee.profiles),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.ig)}}function ae(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Errors"),r.\u0275\u0275elementEnd())}function le(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getErrors():"-"," ")}}function Oe(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Warnings"),r.\u0275\u0275elementEnd())}function Le(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getWarnings():"-"," ")}}function Ye(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Info"),r.\u0275\u0275elementEnd())}function Je(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getInfos():"-"," ")}}function gt(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Remove"),r.\u0275\u0275elementEnd())}function Ue(Bt,Et){if(1&Bt){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275elementStart(1,"button",33),r.\u0275\u0275listener("click",function(){const x=r.\u0275\u0275restoreView(Ee).$implicit;return r.\u0275\u0275nextContext().remove(x)}),r.\u0275\u0275elementStart(2,"mat-icon"),r.\u0275\u0275text(3,"remove"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function tt(Bt,Et){1&Bt&&r.\u0275\u0275element(0,"mat-header-row")}function at(Bt,Et){if(1&Bt){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-row",34),r.\u0275\u0275listener("click",function(){const x=r.\u0275\u0275restoreView(Ee).$implicit;return r.\u0275\u0275nextContext().selectRow(x)}),r.\u0275\u0275elementEnd()}}function ft(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div",2),r.\u0275\u0275elementStart(1,"mat-form-field",36),r.\u0275\u0275elementStart(2,"mat-label"),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"input",37),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(Ee.param.name),r.\u0275\u0275advance(1),r.\u0275\u0275property("formControl",Ee.formControl)}}function vt(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275template(1,ft,5,2,"div",35),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",Ee.validatorSettings)}}function yt(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"app-operation-outcome",38),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("mode",Ee.selectedEntry.mimetype)("operationOutcome",Ee.operationOutcome)("json",Ee.json)("title",Ee.validationOutcomeTitle())}}const ot=function(){return["name","profile","error","warning","info","action"]};class _t{constructor(Et){this.param=Et,this.formControl=new o.FormControl}isValueSet(){return null!=this.valueBoolean||null!=this.valueString}}class At{constructor(Et,Ee,fe,H){this.name=Et,this.json=Ee,this.mimetype=fe,this.profiles=H}getErrors(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&("error"===fe.severity||"fatal"===fe.severity)).length}getWarnings(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&"warning"===fe.severity).length}getInfos(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&"information"===fe.severity).length}}class Tt{constructor(Et,Ee){this.data=Et,this.cd=Ee,this.selectedIg=null,this.validatorSettings=new Array,this.dataSource=new h.MatTableDataSource,this.showSettings=!1,this.client=Et.getFhirClient(),this.client.capabilityStatement().then(fe=>{this.capabilitystatement=fe,this.client.read({resourceType:"OperationDefinition",id:"-s-validate"}).then(H=>{var x;null===(x=H.parameter)||void 0===x||x.forEach(U=>{"profile"==U.name&&(this.profiles=U.targetProfile)}),H.parameter.filter(U=>"in"==U.use&&"resource"!=U.name&&"profile"!=U.name&&"ig"!=U.name).forEach(U=>{this.validatorSettings.push(new _t(U))})})}).catch(fe=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=fe.response.data}),this.client.search({resourceType:"ImplementationGuide",searchParams:{_sort:"title"}}).then(fe=>{this.igs=fe.entry.map(H=>H.resource.packageId+"#"+H.resource.version).sort()}).catch(fe=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=fe.response.data}),this.validationInProgress=0}getSelectedProfile(){return this.selectedProfile}setSelectedProfile(Et){this.selectedProfile=Et}getSelectedIg(){return this.selectedIg}setSelectedIg(Et){this.selectedIg=Et}getProfiles(){return this.profiles}addFile(Et){this.validationInProgress+=1,("application/json"===Et.contentType||Et.name.endsWith(".json"))&&this.addJson(Et.blob),("application/xml"===Et.contentType||Et.name.endsWith(".xml"))&&this.addXml(Et.blob),Et.name.endsWith(".tgz")&&this.addPackage(Et.blob),this.validationInProgress-=1}addXml(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsText(Et),Ee.onload=()=>{this.cd.markForCheck();let H=new At(Et.name,Ee.result,"application/fhir+xml",null);this.selectRow(H),null!=this.selectedProfile&&(H.profiles=[this.selectedProfile]),this.validate(H)}}addJson(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsText(Et),Ee.onload=()=>{this.cd.markForCheck();let H=new At(Et.name,Ee.result,"application/fhir+json",null);this.selectRow(H),null!=this.selectedProfile&&(H.profiles=[this.selectedProfile]),this.validate(H)}}onValidateIg(){let Et="";null!=this.selectedIg&&(Et=this.selectedIg.endsWith(" (current)")?this.selectedIg.substring(0,this.selectedIg.length-10):this.selectedIg,Et=Et.replace("#","-"),this.fetchData(this.client.baseUrl+"/ImplementationGuide/"+Et))}fetchData(Et){var Ee=this;return n(function*(){const fe=yield fetch(Et,{cache:"no-store",headers:{Accept:"application/gzip"}}),x=(fe.headers.get("Content-Type"),yield fe.blob());Ee.addPackage(x)})()}addPackage(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsArrayBuffer(Et),Ee.onload=()=>{if(this.package=Ee.result,this.cd.markForCheck(),null!=this.package){const fe=d.default.inflate(new Uint8Array(this.package)),H=new Array;let x=null,U=null;const Z=this;(0,u.default)(fe.buffer).then(function(_e){H.forEach(Be=>{Be.ig=U,Be.fhirVersion=x,Z.validate(Be)})},function(_e){},function(_e){var Be,$e,st,ut;if((null===(Be=_e.name)||void 0===Be?void 0:Be.indexOf("package.json"))>=0){let St=new TextDecoder("utf-8"),Xt=JSON.parse(St.decode(_e.buffer));x=Xt.fhirVersions[0],U=Xt.name+"#"+Xt.version}if((null===($e=_e.name)||void 0===$e?void 0:$e.indexOf("example"))>=0&&-1==(null===(st=_e.name)||void 0===st?void 0:st.indexOf(".index.json"))){let St=_e.name;St.startsWith("package/example/")&&(St=St.substring("package/example/".length)),St.startsWith("example/")&&(St=St.substring("example/".length));let Xt=new TextDecoder("utf-8"),tn=JSON.parse(Xt.decode(_e.buffer)),Dt=null===(ut=tn.meta)||void 0===ut?void 0:ut.profile;for(let et=0;et0))return;fe="?profile="+encodeURIComponent(Et.profiles[0]),null!=Et.ig&&(fe+="&ig="+encodeURIComponent(Et.ig))}catch(H){}for(let H=0;H0&&(fe+="&"+this.validatorSettings[H].param.name+"="+encodeURIComponent(this.validatorSettings[H].formControl.value));this.validationInProgress+=1,this.client.operation({name:"validate"+fe,resourceType:void 0,input:Et.json,options:{headers:{accept:"application/fhir+json","content-type":Et.mimetype}}}).then(H=>{this.validationInProgress-=1,Et.operationOutcome=H,this.dataSource.data.push(Et),this.dataSource.data=this.dataSource.data,0==this.validationInProgress&&this.selectRow(Et)}).catch(H=>{this.validationInProgress-=1})}selectRow(Et){var Ee,fe;if(this.errMsg="",this.selectedEntry=Et,Et){if(this.operationOutcome=Et.operationOutcome,this.json=Et.json,this.resourceName="",this.resourceId="","application/fhir+json"===Et.mimetype)try{const H=JSON.parse(this.json);(null==H?void 0:H.resourceType)&&(this.resourceName=H.resourceType,this.resourceId=H.id),this.selectedProfile=null===(fe=null===(Ee=H.meta)||void 0===Ee?void 0:Ee.profile)||void 0===fe?void 0:fe[0],null==this.selectedProfile&&(null==H?void 0:H.resourceType)&&(this.selectedProfile="http://hl7.org/fhir/StructureDefinition/"+H.resourceType)}catch(H){this.errMsg=H.message}if("application/fhir+xml"===Et.mimetype){let H=this.json.indexOf("",x);if(x0&&(Z=Z.substring(0,_e)),_e=Z.indexOf(":"),_e>0&&(Z=Z.substring(_e+1)),this.resourceName=Z;let Be=this.json.indexOf("profile",U);if(Be>0){let $e=this.json.indexOf('value="',Be)+7,st=this.json.indexOf('"',$e);$e0),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.errMsg),r.\u0275\u0275advance(6),r.\u0275\u0275property("dataSource",Ee.dataSource),r.\u0275\u0275advance(20),r.\u0275\u0275property("matHeaderRowDef",r.\u0275\u0275pureFunction0(13,ot)),r.\u0275\u0275advance(1),r.\u0275\u0275property("matRowDefColumns",r.\u0275\u0275pureFunction0(14,ot)),r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",Ee.showSettings),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.operationOutcome))},directives:[i.MatCard,i.MatCardContent,i.MatCardHeader,i.MatCardTitle,c.UploadComponent,l.MatFormField,g.MatSelect,y.NgControlStatus,y.NgModel,E.NgForOf,i.MatCardActions,T.MatButton,E.NgIf,D.MatTable,D.MatColumnDef,D.MatHeaderCellDef,D.MatCellDef,D.MatHeaderRowDef,D.MatRowDef,O.MatMenuItem,w.MatIcon,A.MatOption,S.MatProgressSpinner,M.OperationOutcomeComponent,D.MatHeaderCell,D.MatCell,D.MatHeaderRow,D.MatRow,l.MatLabel,I.MatInput,y.DefaultValueAccessor,y.FormControlDirective],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.mat-table[_ngcontent-%COMP%]{margin:1rem}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-table[_ngcontent-%COMP%] .mat-cell.name[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.name[_ngcontent-%COMP%]{flex:2}.mat-table[_ngcontent-%COMP%] .mat-cell.profile[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.profile[_ngcontent-%COMP%]{flex:4}.mat-table[_ngcontent-%COMP%] .mat-cell.res[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.res[_ngcontent-%COMP%]{flex:.5;justify-content:flex-end}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:first-child{padding-left:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-child{padding-right:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .cell-content[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%] .cell-content[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-field-group[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;display:flex;flex-direction:row}.form-field-group[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.column50[_ngcontent-%COMP%]{width:40%}"]})},2340:(ye,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.environment=void 0,j.environment={production:!0}},4431:(ye,j,p)=>{"use strict";const v=(0,p(655).__importStar)(p(2313)),m=p(5e3),o=p(6747);p(2340).environment.production&&(0,m.enableProdMode)(),v.platformBrowser().bootstrapModule(o.AppModule).catch(u=>console.log(u))},2466:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{TranslateModule:()=>Y,TranslateLoader:()=>i,TranslateFakeLoader:()=>c,USE_STORE:()=>I,USE_DEFAULT_LANG:()=>b,TranslateService:()=>L,MissingTranslationHandler:()=>l,FakeMissingTranslationHandler:()=>g,TranslateParser:()=>A,TranslateDefaultParser:()=>S,TranslateCompiler:()=>y,TranslateFakeCompiler:()=>E,TranslateDirective:()=>F,TranslatePipe:()=>ne,TranslateStore:()=>M});var n=p(5e3),f=p(1086),v=p(6787),m=p(6498),o=p(1961),d=p(2986),u=p(8117),h=p(4850),r=p(864),s=p(7545);class i{}let c=(()=>{class Q extends i{getTranslation($){return(0,f.of)({})}}return Q.\u0275fac=function(){let te;return function(J){return(te||(te=n.\u0275\u0275getInheritedFactory(Q)))(J||Q)}}(),Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();class l{}let g=(()=>{class Q{handle($){return $.key}}return Q.\u0275fac=function($){return new($||Q)},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();class y{}let E=(()=>{class Q extends y{compile($,J){return $}compileTranslations($,J){return $}}return Q.\u0275fac=function(){let te;return function(J){return(te||(te=n.\u0275\u0275getInheritedFactory(Q)))(J||Q)}}(),Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();function T(Q,te){if(Q===te)return!0;if(null===Q||null===te)return!1;if(Q!=Q&&te!=te)return!0;let ie,ae,le,$=typeof Q;if($==typeof te&&"object"==$){if(!Array.isArray(Q)){if(Array.isArray(te))return!1;for(ae in le=Object.create(null),Q){if(!T(Q[ae],te[ae]))return!1;le[ae]=!0}for(ae in te)if(!(ae in le)&&void 0!==te[ae])return!1;return!0}if(!Array.isArray(te))return!1;if((ie=Q.length)==te.length){for(ae=0;ae{O(te[J])?J in Q?$[J]=w(Q[J],te[J]):Object.assign($,{[J]:te[J]}):Object.assign($,{[J]:te[J]})}),$}class A{}let S=(()=>{class Q extends A{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate($,J){let ie;return ie="string"==typeof $?this.interpolateString($,J):"function"==typeof $?this.interpolateFunction($,J):$,ie}getValue($,J){let ie=J.split(".");J="";do{J+=ie.shift(),!D($)||!D($[J])||"object"!=typeof $[J]&&ie.length?ie.length?J+=".":$=void 0:($=$[J],J="")}while(ie.length);return $}interpolateFunction($,J){return $(J)}interpolateString($,J){return J?$.replace(this.templateMatcher,(ie,ae)=>{let le=this.getValue(J,ae);return D(le)?le:ie}):$}}return Q.\u0275fac=function(){let te;return function(J){return(te||(te=n.\u0275\u0275getInheritedFactory(Q)))(J||Q)}}(),Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();class M{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.EventEmitter,this.onLangChange=new n.EventEmitter,this.onDefaultLangChange=new n.EventEmitter}}const I=new n.InjectionToken("USE_STORE"),b=new n.InjectionToken("USE_DEFAULT_LANG");let L=(()=>{class Q{constructor($,J,ie,ae,le,Oe=!0,Le=!1){this.store=$,this.currentLoader=J,this.compiler=ie,this.parser=ae,this.missingTranslationHandler=le,this.useDefaultLang=Oe,this.isolate=Le,this.pending=!1,this._onTranslationChange=new n.EventEmitter,this._onLangChange=new n.EventEmitter,this._onDefaultLangChange=new n.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang($){this.isolate?this._defaultLang=$:this.store.defaultLang=$}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang($){this.isolate?this._currentLang=$:this.store.currentLang=$}get langs(){return this.isolate?this._langs:this.store.langs}set langs($){this.isolate?this._langs=$:this.store.langs=$}get translations(){return this.isolate?this._translations:this.store.translations}set translations($){this.isolate?this._translations=$:this.store.translations=$}setDefaultLang($){if($===this.defaultLang)return;let J=this.retrieveTranslations($);void 0!==J?(this.defaultLang||(this.defaultLang=$),J.pipe((0,d.q)(1)).subscribe(ie=>{this.changeDefaultLang($)})):this.changeDefaultLang($)}getDefaultLang(){return this.defaultLang}use($){if($===this.currentLang)return(0,f.of)(this.translations[$]);let J=this.retrieveTranslations($);return void 0!==J?(this.currentLang||(this.currentLang=$),J.pipe((0,d.q)(1)).subscribe(ie=>{this.changeLang($)}),J):(this.changeLang($),(0,f.of)(this.translations[$]))}retrieveTranslations($){let J;return void 0===this.translations[$]&&(this._translationRequests[$]=this._translationRequests[$]||this.getTranslation($),J=this._translationRequests[$]),J}getTranslation($){this.pending=!0;const J=this.currentLoader.getTranslation($).pipe((0,u.B)());return this.loadingTranslations=J.pipe((0,d.q)(1),(0,h.U)(ie=>this.compiler.compileTranslations(ie,$)),(0,u.B)()),this.loadingTranslations.subscribe(ie=>{this.translations[$]=ie,this.updateLangs(),this.pending=!1},ie=>{this.pending=!1}),J}setTranslation($,J,ie=!1){J=this.compiler.compileTranslations(J,$),this.translations[$]=ie&&this.translations[$]?w(this.translations[$],J):J,this.updateLangs(),this.onTranslationChange.emit({lang:$,translations:this.translations[$]})}getLangs(){return this.langs}addLangs($){$.forEach(J=>{-1===this.langs.indexOf(J)&&this.langs.push(J)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult($,J,ie){let ae;if(J instanceof Array){let le={},Oe=!1;for(let Le of J)le[Le]=this.getParsedResult($,Le,ie),"function"==typeof le[Le].subscribe&&(Oe=!0);if(Oe){let Le;for(let Ye of J){let Je="function"==typeof le[Ye].subscribe?le[Ye]:(0,f.of)(le[Ye]);Le=void 0===Le?Je:(0,v.T)(Le,Je)}return Le.pipe((0,r.q)(),(0,h.U)(Ye=>{let Je={};return Ye.forEach((gt,Ue)=>{Je[J[Ue]]=gt}),Je}))}return le}if($&&(ae=this.parser.interpolate(this.parser.getValue($,J),ie)),void 0===ae&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ae=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],J),ie)),void 0===ae){let le={key:J,translateService:this};void 0!==ie&&(le.interpolateParams=ie),ae=this.missingTranslationHandler.handle(le)}return void 0!==ae?ae:J}get($,J){if(!D($)||!$.length)throw new Error('Parameter "key" required');if(this.pending)return m.y.create(ie=>{let ae=Oe=>{ie.next(Oe),ie.complete()},le=Oe=>{ie.error(Oe)};this.loadingTranslations.subscribe(Oe=>{"function"==typeof(Oe=this.getParsedResult(Oe,$,J)).subscribe?Oe.subscribe(ae,le):ae(Oe)},le)});{let ie=this.getParsedResult(this.translations[this.currentLang],$,J);return"function"==typeof ie.subscribe?ie:(0,f.of)(ie)}}stream($,J){if(!D($)||!$.length)throw new Error('Parameter "key" required');return(0,o.z)(this.get($,J),this.onLangChange.pipe((0,s.w)(ie=>{const ae=this.getParsedResult(ie.translations,$,J);return"function"==typeof ae.subscribe?ae:(0,f.of)(ae)})))}instant($,J){if(!D($)||!$.length)throw new Error('Parameter "key" required');let ie=this.getParsedResult(this.translations[this.currentLang],$,J);if(void 0!==ie.subscribe){if($ instanceof Array){let ae={};return $.forEach((le,Oe)=>{ae[$[Oe]]=$[Oe]}),ae}return $}return ie}set($,J,ie=this.currentLang){this.translations[ie][$]=this.compiler.compile(J,ie),this.updateLangs(),this.onTranslationChange.emit({lang:ie,translations:this.translations[ie]})}changeLang($){this.currentLang=$,this.onLangChange.emit({lang:$,translations:this.translations[$]}),this.defaultLang||this.changeDefaultLang($)}changeDefaultLang($){this.defaultLang=$,this.onDefaultLangChange.emit({lang:$,translations:this.translations[$]})}reloadLang($){return this.resetLang($),this.getTranslation($)}resetLang($){this._translationRequests[$]=void 0,this.translations[$]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let $=window.navigator.languages?window.navigator.languages[0]:null;return $=$||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==$.indexOf("-")&&($=$.split("-")[0]),-1!==$.indexOf("_")&&($=$.split("_")[0]),$}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let $=window.navigator.languages?window.navigator.languages[0]:null;return $=$||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,$}}return Q.\u0275fac=function($){return new($||Q)(n.\u0275\u0275inject(M),n.\u0275\u0275inject(i),n.\u0275\u0275inject(y),n.\u0275\u0275inject(A),n.\u0275\u0275inject(l),n.\u0275\u0275inject(b),n.\u0275\u0275inject(I))},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})(),F=(()=>{class Q{constructor($,J,ie){this.translateService=$,this.element=J,this._ref=ie,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(ae=>{ae.lang===this.translateService.currentLang&&this.checkNodes(!0,ae.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(ae=>{this.checkNodes(!0,ae.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(ae=>{this.checkNodes(!0)}))}set translate($){$&&(this.key=$,this.checkNodes())}set translateParams($){T(this.currentParams,$)||(this.currentParams=$,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes($=!1,J){let ie=this.element.nativeElement.childNodes;ie.length||(this.setContent(this.element.nativeElement,this.key),ie=this.element.nativeElement.childNodes);for(let ae=0;ae{le!==$&&(J.lastKey=$),J.originalContent||(J.originalContent=this.getContent(J)),J.currentValue=D(le)?le:J.originalContent||$,this.setContent(J,this.key?J.currentValue:J.originalContent.replace($,J.currentValue)),this._ref.markForCheck()};if(D(ie)){let le=this.translateService.getParsedResult(ie,$,this.currentParams);"function"==typeof le.subscribe?le.subscribe(ae):ae(le)}else this.translateService.get($,this.currentParams).subscribe(ae)}}getContent($){return D($.textContent)?$.textContent:$.data}setContent($,J){D($.textContent)?$.textContent=J:$.data=J}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return Q.\u0275fac=function($){return new($||Q)(n.\u0275\u0275directiveInject(L),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),Q})(),ne=(()=>{class Q{constructor($,J){this.translate=$,this._ref=J,this.value=""}updateValue($,J,ie){let ae=le=>{this.value=void 0!==le?le:$,this.lastKey=$,this._ref.markForCheck()};if(ie){let le=this.translate.getParsedResult(ie,$,J);"function"==typeof le.subscribe?le.subscribe(ae):ae(le)}this.translate.get($,J).subscribe(ae)}transform($,...J){if(!$||0===$.length)return $;if(T($,this.lastKey)&&T(J,this.lastParams))return this.value;let ie;if(D(J[0])&&J.length)if("string"==typeof J[0]&&J[0].length){let ae=J[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{ie=JSON.parse(ae)}catch(le){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${J[0]}`)}}else"object"==typeof J[0]&&!Array.isArray(J[0])&&(ie=J[0]);return this.lastKey=$,this.lastParams=J,this.updateValue($,ie),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ae=>{this.lastKey&&ae.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue($,ie,ae.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ae=>{this.lastKey&&(this.lastKey=null,this.updateValue($,ie,ae.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue($,ie))})),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 Q.\u0275fac=function($){return new($||Q)(n.\u0275\u0275directiveInject(L,16),n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},Q.\u0275pipe=n.\u0275\u0275definePipe({name:"translate",type:Q,pure:!1}),Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})(),Y=(()=>{class Q{static forRoot($={}){return{ngModule:Q,providers:[$.loader||{provide:i,useClass:c},$.compiler||{provide:y,useClass:E},$.parser||{provide:A,useClass:S},$.missingTranslationHandler||{provide:l,useClass:g},M,{provide:I,useValue:$.isolate},{provide:b,useValue:$.useDefaultLang},L]}}static forChild($={}){return{ngModule:Q,providers:[$.loader||{provide:i,useClass:c},$.compiler||{provide:y,useClass:E},$.parser||{provide:A,useClass:S},$.missingTranslationHandler||{provide:l,useClass:g},{provide:I,useValue:$.isolate},{provide:b,useValue:$.useDefaultLang},L]}}}return Q.\u0275fac=function($){return new($||Q)},Q.\u0275mod=n.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=n.\u0275\u0275defineInjector({}),Q})()},1744:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{TranslateHttpLoader:()=>n});class n{constructor(v,m="/assets/i18n/",o=".json"){this.http=v,this.prefix=m,this.suffix=o}getTranslation(v){return this.http.get(`${this.prefix}${v}${this.suffix}`)}}},5682:(ye,j,p)=>{ye=p.nmd(ye),function(){var f=function(){return this}();!f&&"undefined"!=typeof window&&(f=window);var v=function(r,s,i){"string"==typeof r?(2==arguments.length&&(i=s),v.modules[r]||(v.payloads[r]=i,v.modules[r]=null)):v.original?v.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};v.modules={},v.payloads={};var r,s,m=function(r,s,i){if("string"==typeof s){var c=u(r,s);if(null!=c)return i&&i(),c}else if("[object Array]"===Object.prototype.toString.call(s)){for(var l=[],g=0,y=s.length;g=0?parseFloat((d.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((d.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),f.isOldIE=f.isIE&&f.isIE<9,f.isGecko=f.isMozilla=d.match(/ Gecko\/\d+/),f.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),f.isWebKit=parseFloat(d.split("WebKit/")[1])||void 0,f.isChrome=parseFloat(d.split(" Chrome/")[1])||void 0,f.isEdge=parseFloat(d.split(" Edge/")[1])||void 0,f.isAIR=d.indexOf("AdobeAIR")>=0,f.isAndroid=d.indexOf("Android")>=0,f.isChromeOS=d.indexOf(" CrOS ")>=0,f.isIOS=/iPad|iPhone|iPod/.test(d)&&!window.MSStream,f.isIOS&&(f.isMac=!0),f.isMobile=f.isIOS||f.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("./useragent");f.buildDom=function i(c,l,g){if("string"==typeof c&&c){var y=document.createTextNode(c);return l&&l.appendChild(y),y}if(!Array.isArray(c))return c&&c.appendChild&&l&&l.appendChild(c),c;if("string"!=typeof c[0]||!c[0]){for(var E=[],T=0;T=1.5,m.isChromeOS&&(f.HI_DPI=!1),"undefined"!=typeof document){var s=document.createElement("div");f.HI_DPI&&void 0!==s.style.transform&&(f.HAS_CSS_TRANSFORMS=!0),!m.isEdge&&void 0!==s.style.animationName&&(f.HAS_CSS_ANIMATION=!0),s=null}f.translate=f.HAS_CSS_TRANSFORMS?function(i,c,l){i.style.transform="translate("+Math.round(c)+"px, "+Math.round(l)+"px)"}:function(i,c,l){i.style.top=Math.round(l)+"px",i.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,f,v){"use strict";f.inherits=function(m,o){m.super_=o,m.prototype=Object.create(o.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})},f.mixin=function(m,o){for(var d in o)m[d]=o[d];return m},f.implement=function(m,o){f.mixin(m,o)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,f,v){"use strict";var m=n("./oop"),o=function(){var u,h,d={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(h in d.FUNCTION_KEYS)u=d.FUNCTION_KEYS[h].toLowerCase(),d[u]=parseInt(h,10);for(h in d.PRINTABLE_KEYS)u=d.PRINTABLE_KEYS[h].toLowerCase(),d[u]=parseInt(h,10);return m.mixin(d,d.MODIFIER_KEYS),m.mixin(d,d.PRINTABLE_KEYS),m.mixin(d,d.FUNCTION_KEYS),d.enter=d.return,d.escape=d.esc,d.del=d.delete,d[173]="-",function(){for(var r=["cmd","ctrl","alt","shift"],s=Math.pow(2,r.length);s--;)d.KEY_MODS[s]=r.filter(function(i){return s&d.KEY_MODS[i]}).join("-")+"-"}(),d.KEY_MODS[0]="",d.KEY_MODS[-1]="input-",d}();m.mixin(f,o),f.keyCodeToString=function(d){var u=o[d];return"string"!=typeof u&&(u=String.fromCharCode(d)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,f,v){"use strict";var h,m=n("./keys"),o=n("./useragent"),d=null,u=0;function s(){return null==h&&function(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){h={passive:!1}}})}catch(D){}}(),h}function i(D,O,w){this.elem=D,this.type=O,this.callback=w}i.prototype.destroy=function(){l(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=f.addListener=function(D,O,w,A){D.addEventListener(O,w,s()),A&&A.$toDestroy.push(new i(D,O,w))},l=f.removeListener=function(D,O,w){D.removeEventListener(O,w,s())};f.stopEvent=function(D){return f.stopPropagation(D),f.preventDefault(D),!1},f.stopPropagation=function(D){D.stopPropagation&&D.stopPropagation()},f.preventDefault=function(D){D.preventDefault&&D.preventDefault()},f.getButton=function(D){return"dblclick"==D.type?0:"contextmenu"==D.type||o.isMac&&D.ctrlKey&&!D.altKey&&!D.shiftKey?2:D.button},f.capture=function(D,O,w){var A=D&&D.ownerDocument||document;function S(M){O&&O(M),w&&w(M),l(A,"mousemove",O),l(A,"mouseup",S),l(A,"dragstart",S)}return c(A,"mousemove",O),c(A,"mouseup",S),c(A,"dragstart",S),S},f.addMouseWheelListener=function(D,O,w){"onmousewheel"in D?c(D,"mousewheel",function(A){void 0!==A.wheelDeltaX?(A.wheelX=-A.wheelDeltaX/8,A.wheelY=-A.wheelDeltaY/8):(A.wheelX=0,A.wheelY=-A.wheelDelta/8),O(A)},w):"onwheel"in D?c(D,"wheel",function(A){switch(A.deltaMode){case A.DOM_DELTA_PIXEL:A.wheelX=.35*A.deltaX||0,A.wheelY=.35*A.deltaY||0;break;case A.DOM_DELTA_LINE:case A.DOM_DELTA_PAGE:A.wheelX=5*(A.deltaX||0),A.wheelY=5*(A.deltaY||0)}O(A)},w):c(D,"DOMMouseScroll",function(A){A.axis&&A.axis==A.HORIZONTAL_AXIS?(A.wheelX=5*(A.detail||0),A.wheelY=0):(A.wheelX=0,A.wheelY=5*(A.detail||0)),O(A)},w)},f.addMultiMouseDownListener=function(D,O,w,A,S){var I,b,L,M=0,F={2:"dblclick",3:"tripleclick",4:"quadclick"};function ne(Y){if(0!==f.getButton(Y)?M=0:Y.detail>1?++M>4&&(M=1):M=1,o.isIE){var Q=Math.abs(Y.clientX-I)>5||Math.abs(Y.clientY-b)>5;(!L||Q)&&(M=1),L&&clearTimeout(L),L=setTimeout(function(){L=null},O[M-1]||600),1==M&&(I=Y.clientX,b=Y.clientY)}if(Y._clicks=M,w[A]("mousedown",Y),M>4)M=0;else if(M>1)return w[A](F[M],Y)}Array.isArray(D)||(D=[D]),D.forEach(function(Y){c(Y,"mousedown",ne,S)})};var g=function(D){return 0|(D.ctrlKey?1:0)|(D.altKey?2:0)|(D.shiftKey?4:0)|(D.metaKey?8:0)};function y(D,O,w){var A=g(O);if(!o.isMac&&d){if(O.getModifierState&&(O.getModifierState("OS")||O.getModifierState("Win"))&&(A|=8),d.altGr){if(3==(3&A))return;d.altGr=0}if(18===w||17===w){var S="location"in O?O.location:O.keyLocation;17===w&&1===S?1==d[w]&&(u=O.timeStamp):18===w&&3===A&&2===S&&O.timeStamp-u<50&&(d.altGr=!0)}}if(w in m.MODIFIER_KEYS&&(w=-1),A||13!==w||3!==(S="location"in O?O.location:O.keyLocation)||(D(O,A,-w),!O.defaultPrevented)){if(o.isChromeOS&&8&A){if(D(O,A,w),O.defaultPrevented)return;A&=-9}return!!(A||w in m.FUNCTION_KEYS||w in m.PRINTABLE_KEYS)&&D(O,A,w)}}function E(){d=Object.create(null)}if(f.getModifierString=function(D){return m.KEY_MODS[g(D)]},f.addCommandKeyListener=function(D,O,w){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var A=null;c(D,"keydown",function(M){A=M.keyCode},w),c(D,"keypress",function(M){return y(O,M,A)},w)}else{var S=null;c(D,"keydown",function(M){d[M.keyCode]=(d[M.keyCode]||0)+1;var I=y(O,M,M.keyCode);return S=M.defaultPrevented,I},w),c(D,"keypress",function(M){S&&(M.ctrlKey||M.altKey||M.shiftKey||M.metaKey)&&(f.stopEvent(M),S=null)},w),c(D,"keyup",function(M){d[M.keyCode]=null},w),d||(E(),c(window,"focus",E))}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var T=1;f.nextTick=function(D,O){O=O||window;var w="zero-timeout-message-"+T++,A=function(S){S.data==w&&(f.stopPropagation(S),l(O,"message",A),D())};c(O,"message",A),O.postMessage(w,"*")}}f.$idleBlocked=!1,f.onIdle=function(D,O){return setTimeout(function w(){f.$idleBlocked?setTimeout(w,100):D()},O)},f.$idleBlockId=null,f.blockIdle=function(D){f.$idleBlockId&&clearTimeout(f.$idleBlockId),f.$idleBlocked=!0,f.$idleBlockId=setTimeout(function(){f.$idleBlocked=!1},D||100)},f.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),f.nextFrame=f.nextFrame?f.nextFrame.bind(window):function(D){setTimeout(D,17)}}),ace.define("ace/range",["require","exports","module"],function(n,f,v){"use strict";var o=function(d,u,h,r){this.start={row:d,column:u},this.end={row:h,column:r}};(function(){this.isEqual=function(d){return this.start.row===d.start.row&&this.end.row===d.end.row&&this.start.column===d.start.column&&this.end.column===d.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(d,u){return 0==this.compare(d,u)},this.compareRange=function(d){var u,h=d.end,r=d.start;return 1==(u=this.compare(h.row,h.column))?1==(u=this.compare(r.row,r.column))?2:0==u?1:0:-1==u?-2:-1==(u=this.compare(r.row,r.column))?-1:1==u?42:0},this.comparePoint=function(d){return this.compare(d.row,d.column)},this.containsRange=function(d){return 0==this.comparePoint(d.start)&&0==this.comparePoint(d.end)},this.intersects=function(d){var u=this.compareRange(d);return-1==u||0==u||1==u},this.isEnd=function(d,u){return this.end.row==d&&this.end.column==u},this.isStart=function(d,u){return this.start.row==d&&this.start.column==u},this.setStart=function(d,u){"object"==typeof d?(this.start.column=d.column,this.start.row=d.row):(this.start.row=d,this.start.column=u)},this.setEnd=function(d,u){"object"==typeof d?(this.end.column=d.column,this.end.row=d.row):(this.end.row=d,this.end.column=u)},this.inside=function(d,u){return 0==this.compare(d,u)&&!(this.isEnd(d,u)||this.isStart(d,u))},this.insideStart=function(d,u){return 0==this.compare(d,u)&&!this.isEnd(d,u)},this.insideEnd=function(d,u){return 0==this.compare(d,u)&&!this.isStart(d,u)},this.compare=function(d,u){return this.isMultiLine()||d!==this.start.row?dthis.end.row?1:this.start.row===d?u>=this.start.column?0:-1:this.end.row===d?u<=this.end.column?0:1:0:uthis.end.column?1:0},this.compareStart=function(d,u){return this.start.row==d&&this.start.column==u?-1:this.compare(d,u)},this.compareEnd=function(d,u){return this.end.row==d&&this.end.column==u?1:this.compare(d,u)},this.compareInside=function(d,u){return this.end.row==d&&this.end.column==u?1:this.start.row==d&&this.start.column==u?-1:this.compare(d,u)},this.clipRows=function(d,u){if(this.end.row>u)var h={row:u+1,column:0};else this.end.rowu)var r={row:u+1,column:0};else this.start.row0;)1&u&&(h+=d),(u>>=1)&&(d+=d);return h};var m=/^\s\s*/,o=/\s\s*$/;f.stringTrimLeft=function(d){return d.replace(m,"")},f.stringTrimRight=function(d){return d.replace(o,"")},f.copyObject=function(d){var u={};for(var h in d)u[h]=d[h];return u},f.copyArray=function(d){for(var u=[],h=0,r=d.length;hDate.now()-50)||(m=!1)},cancel:function(){m=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,f,v){"use strict";var m=n("../lib/event"),o=n("../lib/useragent"),d=n("../lib/dom"),u=n("../lib/lang"),h=n("../clipboard"),r=o.isChrome<18,s=o.isIE,i=o.isChrome>63,c=400,l=n("../lib/keys"),g=l.KEY_MODS,y=o.isIOS,E=y?/\s/:/\n/,T=o.isMobile;f.TextInput=function(O,w){var A=d.createElement("textarea");A.className="ace_text-input",A.setAttribute("wrap","off"),A.setAttribute("autocorrect","off"),A.setAttribute("autocapitalize","off"),A.setAttribute("spellcheck",!1),A.style.opacity="0",O.insertBefore(A,O.firstChild);var S=!1,M=!1,I=!1,b=!1,L="";T||(A.style.fontSize="1px");var F=!1,ne=!1,Y="",Q=0,te=0,$=0;try{var J=document.activeElement===A}catch(H){}m.addListener(A,"blur",function(H){ne||(w.onBlur(H),J=!1)},w),m.addListener(A,"focus",function(H){if(!ne){if(J=!0,o.isEdge)try{if(!document.hasFocus())return}catch(x){}w.onFocus(H),o.isEdge?setTimeout(ie):ie()}},w),this.$focusScroll=!1,this.focus=function(){if(L||i||"browser"==this.$focusScroll)return A.focus({preventScroll:!0});var H=A.style.top;A.style.position="fixed",A.style.top="0px";try{var x=0!=A.getBoundingClientRect().top}catch(_e){return}var U=[];if(x)for(var Z=A.parentElement;Z&&1==Z.nodeType;)U.push(Z),Z.setAttribute("ace_nocontext",!0),Z=!Z.parentElement&&Z.getRootNode?Z.getRootNode().host:Z.parentElement;A.focus({preventScroll:!0}),x&&U.forEach(function(_e){_e.removeAttribute("ace_nocontext")}),setTimeout(function(){A.style.position="","0px"==A.style.top&&(A.style.top=H)},0)},this.blur=function(){A.blur()},this.isFocused=function(){return J},w.on("beforeEndOperation",function(){var H=w.curOp,x=H&&H.command&&H.command.name;"insertstring"!=x&&(I&&x&&(H.docChanged||H.selectionChanged)&&(Y=A.value="",ot()),ie())});var ie=y?function(H){if(J&&(!S||H)&&!b){H||(H="");var x="\n ab"+H+"cde fg\n";x!=A.value&&(A.value=Y=x);var Z=4+(H.length||(w.selection.isEmpty()?0:1));(4!=Q||te!=Z)&&A.setSelectionRange(4,Z),Q=4,te=Z}}:function(){if(!I&&!b&&(J||Le)){I=!0;var H=0,x=0,U="";if(w.session){var Z=w.selection,_e=Z.getRange(),Be=Z.cursor.row;if(H=_e.start.column,x=_e.end.column,U=w.session.getLine(Be),_e.start.row!=Be){var $e=w.session.getLine(Be-1);H=_e.start.rowBe+1?st.length:x,x+=U.length+1,U=U+"\n"+st}else T&&Be>0&&(U="\n"+U,x+=1,H+=1);U.length>c&&(H0&&Y[St]==H[St];)St++,_e--;for($e=$e.slice(St),St=1;Be>0&&Y.length-St>Q-1&&Y[Y.length-St]==H[H.length-St];)St++,Be--;st-=St-1,ut-=St-1;var Xt=$e.length-St+1;if(Xt<0&&(_e=-Xt,Xt=0),$e=$e.slice(0,Xt),!(x||$e||st||_e||Be||ut))return"";b=!0;var tn=!1;return o.isAndroid&&". "==$e&&($e=" ",tn=!0),$e&&!_e&&!Be&&!st&&!ut||F?w.onTextInput($e):w.onTextInput($e,{extendLeft:_e,extendRight:Be,restoreStart:st,restoreEnd:ut}),b=!1,Y=H,Q=U,te=Z,$=ut,tn?"\n":$e},Je=function(H){if(I)return yt();if(H&&H.inputType){if("historyUndo"==H.inputType)return w.execCommand("undo");if("historyRedo"==H.inputType)return w.execCommand("redo")}var x=A.value,U=Ye(x,!0);(x.length>500||E.test(U)||T&&Q<1&&Q==te)&&ie()},gt=function(H,x,U){var Z=H.clipboardData||window.clipboardData;if(Z&&!r){var _e=s||U?"Text":"text/plain";try{return x?!1!==Z.setData(_e,x):Z.getData(_e)}catch(Be){if(!U)return gt(Be,x,!0)}}},Ue=function(H,x){var U=w.getCopyText();if(!U)return m.preventDefault(H);gt(H,U)?(y&&(ie(U),S=U,setTimeout(function(){S=!1},10)),x?w.onCut():w.onCopy(),m.preventDefault(H)):(S=!0,A.value=U,A.select(),setTimeout(function(){S=!1,ie(),x?w.onCut():w.onCopy()}))},tt=function(H){Ue(H,!0)},at=function(H){Ue(H,!1)},ft=function(H){var x=gt(H);h.pasteCancelled()||("string"==typeof x?(x&&w.onPaste(x,H),o.isIE&&setTimeout(ie),m.preventDefault(H)):(A.value="",M=!0))};m.addCommandKeyListener(A,w.onCommandKey.bind(w),w),m.addListener(A,"select",function(H){I||(S?S=!1:function(H){return 0===H.selectionStart&&H.selectionEnd>=Y.length&&H.value===Y&&Y&&H.selectionEnd!==te}(A)?(w.selectAll(),ie()):T&&A.selectionStart!=Q&&ie())},w),m.addListener(A,"input",Je,w),m.addListener(A,"cut",tt,w),m.addListener(A,"copy",at,w),m.addListener(A,"paste",ft,w),(!("oncut"in A)||!("oncopy"in A)||!("onpaste"in A))&&m.addListener(O,"keydown",function(H){if((!o.isMac||H.metaKey)&&H.ctrlKey)switch(H.keyCode){case 67:at(H);break;case 86:ft(H);break;case 88:tt(H)}},w);var yt=function(){if(I&&w.onCompositionUpdate&&!w.$readOnly){if(F)return _t();I.useTextareaForIME?w.onCompositionUpdate(A.value):(Ye(A.value),I.markerRange&&(I.context&&(I.markerRange.start.column=I.selectionStart=I.context.compositionStartOffset),I.markerRange.end.column=I.markerRange.start.column+te-I.selectionStart+$))}},ot=function(H){!w.onCompositionEnd||w.$readOnly||(I=!1,w.onCompositionEnd(),w.off("mousedown",_t),H&&Je())};function _t(){ne=!0,A.blur(),A.focus(),ne=!1}var Bt,At=u.delayedCall(yt,50).schedule.bind(null,null);function Et(){clearTimeout(Bt),Bt=setTimeout(function(){L&&(A.style.cssText=L,L=""),w.renderer.$isMousePressed=!1,w.renderer.$keepTextAreaAtCursor&&w.renderer.$moveTextAreaToCursor()},0)}m.addListener(A,"compositionstart",function(H){if(!I&&w.onCompositionStart&&!w.$readOnly&&(I={},!F)){H.data&&(I.useTextareaForIME=!1),setTimeout(yt,0),w._signal("compositionStart"),w.on("mousedown",_t);var x=w.getSelectionRange();x.end.row=x.start.row,x.end.column=x.start.column,I.markerRange=x,I.selectionStart=Q,w.onCompositionStart(I),I.useTextareaForIME?(Y=A.value="",Q=0,te=0):(A.msGetInputContext&&(I.context=A.msGetInputContext()),A.getInputContext&&(I.context=A.getInputContext()))}},w),m.addListener(A,"compositionupdate",yt,w),m.addListener(A,"keyup",function(H){27==H.keyCode&&A.value.lengthte&&"\n"==Y[ut]?St=l.end:stte&&Y.slice(0,ut).split("\n").length>2?St=l.down:ut>te&&" "==Y[ut-1]?(St=l.right,Xt=g.option):(ut>te||ut==te&&te!=Q&&st==ut)&&(St=l.right),st!==ut&&(Xt|=g.shift),St){if(!x.onCommandKey({},Xt,St)&&x.commands){St=l.keyCodeToString(St);var Dt=x.commands.findKeyCommand(Xt,St);Dt&&x.execCommand(Dt)}Q=st,te=ut,ie("")}}};document.addEventListener("selectionchange",Be),x.on("destroy",function(){document.removeEventListener("selectionchange",Be)})}(0,w,A)},f.$setUserAgentForTests=function(O,w){T=O,y=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("../lib/useragent");function u(s){s.$clickSelection=null;var i=s.editor;i.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),i.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),i.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),i.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),i.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(l){s[l]=this[l]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}function r(s,i){if(s.start.row==s.end.row)var c=2*i.column-s.start.column-s.end.column;else if(s.start.row!=s.end.row-1||s.start.column||s.end.column)c=2*i.row-s.start.row-s.end.row;else c=i.column-4;return c<0?{cursor:s.start,anchor:s.end}:{cursor:s.end,anchor:s.start}}(function(){this.onMouseDown=function(s){var i=s.inSelection(),c=s.getDocumentPosition();this.mousedownEvent=s;var l=this.editor,g=s.getButton();return 0!==g?((l.getSelectionRange().isEmpty()||1==g)&&l.selection.moveToPosition(c),void(2==g&&(l.textInput.onContextMenu(s.domEvent),m.isMozilla||s.preventDefault()))):(this.mousedownEvent.time=Date.now(),!i||l.isFocused()||(l.focus(),!this.$focusTimeout||this.$clickSelection||l.inMultiSelectMode)?(this.captureMouse(s),this.startSelect(c,s.domEvent._clicks>1),s.preventDefault()):(this.setState("focusWait"),void this.captureMouse(s)))},this.startSelect=function(s,i){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var c=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?c.selection.selectToPosition(s):i||c.selection.moveToPosition(s),i||this.select(),c.renderer.scroller.setCapture&&c.renderer.scroller.setCapture(),c.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var s,i=this.editor,c=i.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var l=this.$clickSelection.comparePoint(c);if(-1==l)s=this.$clickSelection.end;else if(1==l)s=this.$clickSelection.start;else{var g=r(this.$clickSelection,c);c=g.cursor,s=g.anchor}i.selection.setSelectionAnchor(s.row,s.column)}i.selection.selectToPosition(c),i.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(s){var i,c=this.editor,l=c.renderer.screenToTextCoordinates(this.x,this.y),g=c.selection[s](l.row,l.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(g.start),E=this.$clickSelection.comparePoint(g.end);if(-1==y&&E<=0)i=this.$clickSelection.end,(g.end.row!=l.row||g.end.column!=l.column)&&(l=g.start);else if(1==E&&y>=0)i=this.$clickSelection.start,(g.start.row!=l.row||g.start.column!=l.column)&&(l=g.end);else if(-1==y&&1==E)l=g.end,i=g.start;else{var T=r(this.$clickSelection,l);l=T.cursor,i=T.anchor}c.selection.setSelectionAnchor(i.row,i.column)}c.selection.selectToPosition(l),c.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var s=function(s,i,c,l){return Math.sqrt(Math.pow(c-s,2)+Math.pow(l-i,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),i=Date.now();(s>0||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(s){var i=s.getDocumentPosition(),c=this.editor,g=c.session.getBracketRange(i);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=c.selection.getWordRange(i.row,i.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},this.onTripleClick=function(s){var i=s.getDocumentPosition(),c=this.editor;this.setState("selectByLines");var l=c.getSelectionRange();l.isMultiLine()&&l.contains(i.row,i.column)?(this.$clickSelection=c.selection.getLineRange(l.start.row),this.$clickSelection.end=c.selection.getLineRange(l.end.row).end):this.$clickSelection=c.selection.getLineRange(i.row),this.select()},this.onQuadClick=function(s){var i=this.editor;i.selectAll(),this.$clickSelection=i.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var i=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var c=this.$lastScroll,l=s.domEvent.timeStamp,g=l-c.t,y=g?s.wheelX/g:c.vx,E=g?s.wheelY/g:c.vy;g<550&&(y=(y+c.vx)/2,E=(E+c.vy)/2);var T=Math.abs(y/E),D=!1;if(T>=1&&i.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(D=!0),T<=1&&i.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(D=!0),D?c.allowed=l:l-c.allowed<550&&(Math.abs(y)<=1.5*Math.abs(c.vx)&&Math.abs(E)<=1.5*Math.abs(c.vy)?(D=!0,c.allowed=l):c.allowed=0),c.t=l,c.vx=y,c.vy=E,D)return i.renderer.scrollBy(s.wheelX*s.speed,s.wheelY*s.speed),s.stop()}}}).call(u.prototype),f.DefaultHandlers=u}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(n,f,v){"use strict";n("./lib/oop");var o=n("./lib/dom");function d(u){this.isOpen=!1,this.$element=null,this.$parentNode=u}(function(){this.$init=function(){return this.$element=o.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(u){this.getElement().textContent=u},this.setHtml=function(u){this.getElement().innerHTML=u},this.setPosition=function(u,h){this.getElement().style.left=u+"px",this.getElement().style.top=h+"px"},this.setClassName=function(u){o.addCssClass(this.getElement(),u)},this.show=function(u,h,r){null!=u&&this.setText(u),null!=h&&null!=r&&this.setPosition(h,r),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(d.prototype),f.Tooltip=d}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(n,f,v){"use strict";var m=n("../lib/dom"),o=n("../lib/oop"),d=n("../lib/event"),u=n("../tooltip").Tooltip;function r(s){u.call(this,s)}o.inherits(r,u),function(){this.setPosition=function(s,i){var c=window.innerWidth||document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight,g=this.getWidth(),y=this.getHeight();(s+=15)+g>c&&(s-=s+g-c),(i+=15)+y>l&&(i-=20+y),u.prototype.setPosition.call(this,s,i)}}.call(r.prototype),f.GutterHandler=function(s){var g,y,E,i=s.editor,c=i.renderer.$gutterLayer,l=new r(i.container);function D(){g&&(g=clearTimeout(g)),E&&(l.hide(),E=null,i._signal("hideGutterTooltip",l),i.off("mousewheel",D))}function O(w){l.setPosition(w.x,w.y)}s.editor.setDefaultHandler("guttermousedown",function(w){if(i.isFocused()&&0==w.getButton()&&"foldWidgets"!=c.getRegion(w)){var S=w.getDocumentPosition().row,M=i.session.selection;if(w.getShiftKey())M.selectTo(S,0);else{if(2==w.domEvent.detail)return i.selectAll(),w.preventDefault();s.$clickSelection=i.selection.getLineRange(S)}return s.setState("selectByLines"),s.captureMouse(w),w.preventDefault()}}),s.editor.setDefaultHandler("guttermousemove",function(w){if(m.hasCssClass(w.domEvent.target||w.domEvent.srcElement,"ace_fold-widget"))return D();E&&s.$tooltipFollowsMouse&&O(w),y=w,!g&&(g=setTimeout(function(){g=null,y&&!s.isMousePressed?function(){var w=y.getDocumentPosition().row,A=c.$annotations[w];if(!A)return D();if(w==i.session.getLength()){var M=i.renderer.pixelToScreenCoordinates(0,y.y).row,I=y.$pos;if(M>i.session.documentToScreenRow(I.row,I.column))return D()}if(E!=A)if(E=A.text.join("
"),l.setHtml(E),l.show(),i._signal("showGutterTooltip",l),i.on("mousewheel",D),s.$tooltipFollowsMouse)O(y);else{var L=y.domEvent.target.getBoundingClientRect(),F=l.getElement().style;F.left=L.right+"px",F.top=L.bottom+"px"}}():D()},50))}),d.addListener(i.renderer.$gutter,"mouseout",function(w){y=null,E&&!g&&(g=setTimeout(function(){g=null,D()},50))},i),i.on("changeSession",D)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("../lib/event"),o=n("../lib/useragent"),d=f.MouseEvent=function(u,h){this.domEvent=u,this.editor=h,this.x=this.clientX=u.clientX,this.y=this.clientY=u.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){m.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){m.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var h=this.editor.getSelectionRange();if(h.isEmpty())this.$inSelection=!1;else{var r=this.getDocumentPosition();this.$inSelection=h.contains(r.row,r.column)}return this.$inSelection},this.getButton=function(){return m.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(d.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("../lib/dom"),o=n("../lib/event"),d=n("../lib/useragent");function s(c){var l=c.editor,g=m.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent="\xa0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(Le){c[Le]=this[Le]},this),l.on("mousedown",this.onMouseDown.bind(c));var T,D,O,w,A,S,I,b,L,F,ne,E=l.container,M=0;function te(){var Le=S;(function(Le,Ye){var Je=Date.now();F&&Ye&&Le.row==Ye.row&&Ye&&Le.column==Ye.column?i(ne.x,ne.y,D,O)>5?F=null:Je-F>=200&&(l.renderer.scrollCursorIntoView(),F=null):(l.moveCursorToPosition(Le),F=Je,ne={x:D,y:O})})(S=l.renderer.screenToTextCoordinates(D,O),Le),function(Le,Ye){var Je=Date.now(),gt=l.renderer.layerConfig.lineHeight,Ue=l.renderer.layerConfig.characterWidth,tt=l.renderer.scroller.getBoundingClientRect(),at={x:{left:D-tt.left,right:tt.right-D},y:{top:O-tt.top,bottom:tt.bottom-O}},ft=Math.min(at.x.left,at.x.right),vt=Math.min(at.y.top,at.y.bottom),yt={row:Le.row,column:Le.column};ft/Ue<=2&&(yt.column+=at.x.left=200&&l.renderer.scrollCursorIntoView(yt):L=Je:L=null}(S,Le)}function $(){A=l.selection.toOrientedRange(),T=l.session.addMarker(A,"ace_selection",l.getSelectionStyle()),l.clearSelection(),l.isFocused()&&l.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),te(),w=setInterval(te,20),M=0,o.addListener(document,"mousemove",ae)}function J(){clearInterval(w),l.session.removeMarker(T),T=null,l.selection.fromOrientedRange(A),l.isFocused()&&!b&&l.$resetCursorStyle(),A=null,S=null,M=0,L=null,F=null,o.removeListener(document,"mousemove",ae)}this.onDragStart=function(Le){if(this.cancelDrag||!E.draggable){var Ye=this;return setTimeout(function(){Ye.startSelect(),Ye.captureMouse(Le)},0),Le.preventDefault()}A=l.getSelectionRange();var Je=Le.dataTransfer;Je.effectAllowed=l.getReadOnly()?"copy":"copyMove",l.container.appendChild(g),Je.setDragImage&&Je.setDragImage(g,0,0),setTimeout(function(){l.container.removeChild(g)}),Je.clearData(),Je.setData("Text",l.session.getTextRange()),b=!0,this.setState("drag")},this.onDragEnd=function(Le){E.draggable=!1,b=!1,this.setState(null),l.getReadOnly()||(!I&&"move"==Le.dataTransfer.dropEffect&&l.session.remove(l.getSelectionRange()),l.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Le){if(!l.getReadOnly()&&le(Le.dataTransfer))return D=Le.clientX,O=Le.clientY,T||$(),M++,Le.dataTransfer.dropEffect=I=Oe(Le),o.preventDefault(Le)},this.onDragOver=function(Le){if(!l.getReadOnly()&&le(Le.dataTransfer))return D=Le.clientX,O=Le.clientY,T||($(),M++),null!==ie&&(ie=null),Le.dataTransfer.dropEffect=I=Oe(Le),o.preventDefault(Le)},this.onDragLeave=function(Le){if(--M<=0&&T)return J(),I=null,o.preventDefault(Le)},this.onDrop=function(Le){if(S){var Ye=Le.dataTransfer;if(b)switch(I){case"move":A=A.contains(S.row,S.column)?{start:S,end:S}:l.moveText(A,S);break;case"copy":A=l.moveText(A,S,!0)}else{var Je=Ye.getData("Text");A={start:S,end:l.session.insert(S,Je)},l.focus(),I=null}return J(),o.preventDefault(Le)}},o.addListener(E,"dragstart",this.onDragStart.bind(c),l),o.addListener(E,"dragend",this.onDragEnd.bind(c),l),o.addListener(E,"dragenter",this.onDragEnter.bind(c),l),o.addListener(E,"dragover",this.onDragOver.bind(c),l),o.addListener(E,"dragleave",this.onDragLeave.bind(c),l),o.addListener(E,"drop",this.onDrop.bind(c),l);var ie=null;function ae(){null==ie&&(ie=setTimeout(function(){null!=ie&&T&&J()},20))}function le(Le){var Ye=Le.types;return!Ye||Array.prototype.some.call(Ye,function(Je){return"text/plain"==Je||"Text"==Je})}function Oe(Le){var Ye=["copy","copymove","all","uninitialized"],gt=d.isMac?Le.altKey:Le.ctrlKey,Ue="uninitialized";try{Ue=Le.dataTransfer.effectAllowed.toLowerCase()}catch(at){}var tt="none";return gt&&Ye.indexOf(Ue)>=0?tt="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(Ue)>=0?tt="move":Ye.indexOf(Ue)>=0&&(tt="copy"),tt}}function i(c,l,g,y){return Math.sqrt(Math.pow(g-c,2)+Math.pow(y-l,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor;c.container.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging"),c.renderer.setCursorStyle(d.isWin?"default":"move"),this.setState("dragReady")},this.onMouseDrag=function(c){var l=this.editor.container;d.isIE&&"dragReady"==this.state&&i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&l.dragDrop(),"dragWait"===this.state&&i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var l=this.editor,g=c.inSelection(),y=c.getButton();if(1===(c.domEvent.detail||1)&&0===y&&g){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var T=c.domEvent.target||c.domEvent.srcElement;"unselectable"in T&&(T.unselectable="on"),l.getDragDelay()?(d.isWebKit&&(this.cancelDrag=!0,l.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(s.prototype),f.DragdropHandler=s}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,f,v){"use strict";var m=n("./mouse_event").MouseEvent,o=n("../lib/event"),d=n("../lib/dom");f.addTouchListeners=function(u,h){var s,i,c,l,g,y,T,A,S,r="scroll",E=0,D=0,O=0,w=0;function I(){S||function(){var Y=window.navigator&&window.navigator.clipboard,Q=!1,$=function(J){var ie=J.target.getAttribute("action");if("more"==ie||!Q)return Q=!Q,function(){var J=h.getCopyText(),ie=h.session.getUndoManager().hasUndo();S.replaceChild(d.buildDom(Q?["span",!J&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],J&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],J&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],Y&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],ie&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),S.firstChild)}();"paste"==ie?Y.readText().then(function(ae){h.execCommand(ie,ae)}):ie&&(("cut"==ie||"copy"==ie)&&(Y?Y.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(ie)),S.firstChild.style.display="none",Q=!1,"openCommandPallete"!=ie&&h.focus()};S=d.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(J){r="menu",J.stopPropagation(),J.preventDefault(),h.textInput.focus()},ontouchend:function(J){J.stopPropagation(),J.preventDefault(),$(J)},onclick:$},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}();var Y=h.selection.cursor,Q=h.renderer.textToScreenCoordinates(Y.row,Y.column),te=h.renderer.textToScreenCoordinates(0,0).pageX,$=h.renderer.scrollLeft,J=h.container.getBoundingClientRect();S.style.top=Q.pageY-J.top-3+"px",Q.pageX-J.left1)return clearTimeout(g),g=null,c=-1,void(r="zoom");A=h.$mouseHandler.isMousePressed=!0;var te=h.renderer.layerConfig.lineHeight,$=h.renderer.layerConfig.lineHeight,J=Y.timeStamp;l=J;var ie=Q[0],ae=ie.clientX,le=ie.clientY;Math.abs(s-ae)+Math.abs(i-le)>te&&(c=-1),s=Y.clientX=ae,i=Y.clientY=le,O=w=0;var Oe=new m(Y,h);if(T=Oe.getDocumentPosition(),J-c<500&&1==Q.length&&!E)D++,Y.preventDefault(),Y.button=0,function(){g=null,clearTimeout(g),h.selection.moveToPosition(T);var Y=D>=2?h.selection.getLineRange(T.row):h.session.getBracketRange(T);Y&&!Y.isEmpty()?h.selection.setRange(Y):h.selection.selectWord(),r="wait"}();else{D=0;var Le=h.selection.cursor,Ye=h.selection.isEmpty()?Le:h.selection.anchor,Je=h.renderer.$cursorLayer.getPixelPosition(Le,!0),gt=h.renderer.$cursorLayer.getPixelPosition(Ye,!0),Ue=h.renderer.scroller.getBoundingClientRect(),tt=h.renderer.layerConfig.offset,at=h.renderer.scrollLeft,ft=function(ot,_t){return(ot/=$)*ot+(_t=_t/te-.75)*_t};if(Y.clientXyt?"cursor":"anchor"),r=yt<3.5?"anchor":vt<3.5?"cursor":"scroll",g=setTimeout(L,450)}c=J},h),o.addListener(u,"touchend",function(Y){A=h.$mouseHandler.isMousePressed=!1,y&&clearInterval(y),"zoom"==r?(r="",E=0):g?(h.selection.moveToPosition(T),E=0,I()):"scroll"==r?(E+=60,y=setInterval(function(){E--<=0&&(clearInterval(y),y=null),Math.abs(O)<.01&&(O=0),Math.abs(w)<.01&&(w=0),E<20&&(O*=.9),E<20&&(w*=.9);var Y=h.session.getScrollTop();h.renderer.scrollBy(10*O,10*w),Y==h.session.getScrollTop()&&(E=0)},10),b()):I(),clearTimeout(g),g=null},h),o.addListener(u,"touchmove",function(Y){g&&(clearTimeout(g),g=null);var Q=Y.touches;if(!(Q.length>1||"zoom"==r)){var te=Q[0],$=s-te.clientX,J=i-te.clientY;if("wait"==r){if(!($*$+J*J>4))return Y.preventDefault();r="cursor"}s=te.clientX,i=te.clientY,Y.clientX=te.clientX,Y.clientY=te.clientY;var ie=Y.timeStamp,ae=ie-l;if(l=ie,"scroll"==r){var le=new m(Y,h);le.speed=1,le.wheelX=$,le.wheelY=J,10*Math.abs($)1&&(D=E[E.length-2]);var w=s[y+"Path"];return null==w?w=s.basePath:"/"==T&&(y=T=""),w&&"/"!=w.slice(-1)&&(w+="/"),w+y+T+D+this.get("suffix")},f.setModuleUrl=function(g,y){return s.$moduleUrls[g]=y},f.$loading={},f.loadModule=function(g,y){var E,T;Array.isArray(g)&&(T=g[0],g=g[1]);try{E=n(g)}catch(O){}if(E&&!f.$loading[g])return y&&y(E);if(f.$loading[g]||(f.$loading[g]=[]),f.$loading[g].push(y),!(f.$loading[g].length>1)){var D=function(){n([g],function(O){f._emit("load.module",{name:g,module:O});var w=f.$loading[g];f.$loading[g]=null,w.forEach(function(A){A&&A(O)})})};if(!f.get("packaged"))return D();d.loadScript(f.moduleUrl(g,T),D),i()}};var i=function(){!s.basePath&&!s.workerPath&&!s.modePath&&!s.themePath&&!Object.keys(s.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),i=function(){})};function c(g){if(r&&r.document){s.packaged=g||n.packaged||v.packaged||r.define&&p.amdD.packaged;for(var y={},E="",T=document.currentScript||document._currentScript,O=(T&&T.ownerDocument||document).getElementsByTagName("script"),w=0;w=at){for(_t=ot+1;_t=at;)_t++;for(At=ot,Tt=_t-1;At=ft.length||2!=(_t=vt[yt-1])&&3!=_t||2!=(At=ft[yt+1])&&3!=At?4:(h&&(At=3),At==_t?At:4);case 10:return 2==(_t=yt>0?vt[yt-1]:5)&&yt+10&&2==vt[yt-1])return 2;if(h)return 4;for(Bt=yt+1,Tt=ft.length;Bt=1425&&Et<=2303||64286==Et)&&(1==_t||7==_t))return 1}return yt<1||5==(_t=ft[yt-1])?4:vt[yt-1];case 5:return h=!1,s=!0,d;case 6:return i=!0,4;case 13:case 14:case 16:case 17:case 15:h=!1;case 18:return 4}}function Ue(at){var ft=at.charCodeAt(0),vt=ft>>8;return 0==vt?ft>191?0:Oe[ft]:5==vt?/[\u0591-\u05f4]/.test(at)?1:0:6==vt?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(at)?12:/[\u0660-\u0669\u066b-\u066c]/.test(at)?3:1642==ft?Y:/[\u06f0-\u06f9]/.test(at)?2:7:32==vt&&ft<=8287?Le[255&ft]:254==vt&&ft>=65136?7:4}f.L=0,f.R=1,f.EN=2,f.ON_R=3,f.AN=4,f.R_H=5,f.B=6,f.RLE=7,f.DOT="\xb7",f.doBidiReorder=function(at,ft,vt){if(at.length<2)return{};var yt=at.split(""),ot=new Array(yt.length),_t=new Array(yt.length),At=[];d=vt?1:0,function(at,ft,vt,yt){var ot=d?y:g,_t=null,At=null,Tt=null,Bt=0,Et=null,fe=-1,H=null,x=null,U=[];if(!yt)for(H=0,yt=[];H0)if(16==Et){for(H=fe;H-1){for(H=fe;H=0&&8==yt[Z];Z--)ft[Z]=d}}(yt,At,yt.length,ft);for(var Tt=0;Tt7&&ft[Tt]<13||4===ft[Tt]||18===ft[Tt])?At[Tt]=f.ON_R:Tt>0&&"\u0644"===yt[Tt-1]&&/\u0622|\u0623|\u0625|\u0627/.test(yt[Tt])&&(At[Tt-1]=At[Tt]=f.R_H,Tt++);for(yt[yt.length-1]===f.DOT&&(At[yt.length-1]=f.B),"\u202b"===yt[0]&&(At[0]=f.RLE),Tt=0;Tt=0&&(h=this.session.$docRowCache[s])}return h},this.getSplitIndex=function(){var h=0,r=this.session.$screenRowCache;if(r.length)for(var s,i=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-h>0&&(s=this.session.$getRowCacheIndex(r,this.currentRow-h-1))===i;)i=s,h++;else h=this.currentRow;return h},this.updateRowLine=function(h,r){void 0===h&&(h=this.getDocumentRow());var i=h===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(h),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var c=this.session.$wrapData[h];c&&(void 0===r&&(r=this.getSplitIndex()),r>0&&c.length?(this.wrapIndent=c.indent,this.wrapOffset=this.wrapIndent*this.charWidths[m.L],this.line=rr?this.session.getOverwrite()?h:h-1:r,i=m.getVisualFromLogicalIdx(s,this.bidiMap),c=this.bidiMap.bidiLevels,l=0;!this.session.getOverwrite()&&h<=r&&c[i]%2!=0&&i++;for(var g=0;gr&&c[i]%2==0&&(l+=this.charWidths[c[i]]),this.wrapIndent&&(l+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(l+=this.rtlLineOffset),l},this.getSelections=function(h,r){var c,s=this.bidiMap,i=s.bidiLevels,l=[],g=0,y=Math.min(h,r)-this.wrapIndent,E=Math.max(h,r)-this.wrapIndent,T=!1,D=!1,O=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,A=0;A=y&&ws+l/2;){if(s+=l,i===c.length-1){l=0;break}l=this.charWidths[c[++i]]}return i>0&&c[i-1]%2!=0&&c[i]%2==0?(h0&&c[i-1]%2==0&&c[i]%2!=0?r=1+(h>s?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===c.length-1&&0===l&&c[i-1]%2==0||!this.isRtlDir&&0===i&&c[i]%2!=0?r=1+this.bidiMap.logicalFromVisual[i]:(i>0&&c[i-1]%2!=0&&0!==l&&i--,r=this.bidiMap.logicalFromVisual[i]),0===r&&this.isRtlDir&&r++,r+this.wrapIndent}}).call(u.prototype),f.BidiHandler=u}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,f,v){"use strict";var m=n("./lib/oop"),o=n("./lib/lang"),d=n("./lib/event_emitter").EventEmitter,u=n("./range").Range,h=function(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var s=this;this.cursor.on("change",function(i){s.$cursorChanged=!0,s.$silent||s._emit("changeCursor"),!s.$isEmpty&&!s.$silent&&s._emit("changeSelection"),!s.$keepDesiredColumnOnChange&&i.old.column!=i.value.column&&(s.$desiredColumn=null)}),this.anchor.on("change",function(){s.$anchorChanged=!0,!s.$isEmpty&&!s.$silent&&s._emit("changeSelection")})};(function(){m.implement(this,d),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(r,s){this.$isEmpty=!1,this.anchor.setPosition(r,s)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var r=this.anchor,s=this.lead;return r.row>s.row||r.row==s.row&&r.column>s.column},this.getRange=function(){var r=this.anchor,s=this.lead;return this.$isEmpty?u.fromPoints(s,s):this.isBackwards()?u.fromPoints(s,r):u.fromPoints(r,s)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(r,s){var i=s?r.end:r.start,c=s?r.start:r.end;this.$setSelection(i.row,i.column,c.row,c.column)},this.$setSelection=function(r,s,i,c){if(!this.$silent){var l=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,s),this.cursor.setPosition(i,c),this.$isEmpty=!u.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||l!=this.$isEmpty||g)&&this._emit("changeSelection")}},this.$moveSelection=function(r){var s=this.lead;this.$isEmpty&&this.setSelectionAnchor(s.row,s.column),r.call(this)},this.selectTo=function(r,s){this.$moveSelection(function(){this.moveCursorTo(r,s)})},this.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},this.moveTo=function(r,s){this.clearSelection(),this.moveCursorTo(r,s)},this.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(r,s){if(void 0===s){var i=r||this.lead;r=i.row,s=i.column}return this.session.getWordRange(r,s)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var r=this.getCursor(),s=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(s)},this.getLineRange=function(r,s){var c,i="number"==typeof r?r:this.lead.row,l=this.session.getFoldLine(i);return l?(i=l.start.row,c=l.end.row):c=i,!0===s?new u(i,0,c,this.session.getLine(c).length):new u(i,0,c+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(r,s,i){var c=r.column,l=r.column+s;return i<0&&(c=r.column-s,l=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(c,l).split(" ").length-1==s},this.moveCursorLeft=function(){var s,r=this.lead.getPosition();if(s=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(s.start.row,s.start.column);else if(0===r.column)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var s,r=this.lead.getPosition();if(s=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(s.end.row,s.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(s.column=c)}}this.moveCursorTo(s.row,s.column)},this.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,s=this.doc.getLine(r).length;this.moveCursorTo(r,s)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var r=this.lead.row,s=this.lead.column,i=this.doc.getLine(r),c=i.substring(s);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var l=this.session.getFoldAt(r,s,1);if(!l)return this.session.nonTokenRe.exec(c)&&(s+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,c=i.substring(s)),s>=i.length?(this.moveCursorTo(r,i.length),this.moveCursorRight(),void(r0&&this.moveCursorWordLeft());this.session.tokenRe.exec(l)&&(s-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,s)}},this.$shortWordEndIndex=function(r){var i,s=0,c=/\s/,l=this.session.tokenRe;if(l.lastIndex=0,this.session.tokenRe.exec(r))s=this.session.tokenRe.lastIndex;else{for(;(i=r[s])&&c.test(i);)s++;if(s<1)for(l.lastIndex=0;(i=r[s])&&!l.test(i);)if(l.lastIndex=0,s++,c.test(i)){if(s>2){s--;break}for(;(i=r[s])&&c.test(i);)s++;if(s>2)break}}return l.lastIndex=0,s},this.moveCursorShortWordRight=function(){var r=this.lead.row,s=this.lead.column,i=this.doc.getLine(r),c=i.substring(s),l=this.session.getFoldAt(r,s,1);if(l)return this.moveCursorTo(l.end.row,l.end.column);if(s==i.length){var g=this.doc.getLength();do{r++,c=this.doc.getLine(r)}while(r0&&/^\s*$/.test(c));s=c.length,/\s+$/.test(c)||(c="")}var l=o.stringReverse(c),g=this.$shortWordEndIndex(l);return this.moveCursorTo(r,s-g)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(r,s){var c,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===s&&(0!==r&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(c=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(c/this.session.$bidiHandler.charWidths[0])):c=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=r&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var l=this.session.lineWidgets[this.lead.row];r<0?r-=l.rowsAbove||0:r>0&&(r+=l.rowCount-(l.rowsAbove||0))}var g=this.session.screenToDocumentPosition(i.row+r,i.column,c);this.moveCursorTo(g.row,g.column+s,0===s)},this.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},this.moveCursorTo=function(r,s,i){var c=this.session.getFoldAt(r,s,1);c&&(r=c.start.row,s=c.start.column),this.$keepDesiredColumnOnChange=!0;var l=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(l.charAt(s))&&l.charAt(s-1)&&(this.lead.row==r&&this.lead.column==s+1?s-=1:s+=1),this.lead.setPosition(r,s),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(r,s,i){var c=this.session.screenToDocumentPosition(r,s);this.moveCursorTo(c.row,c.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(r){var s=this.getRange();return r?(r.start.column=s.start.column,r.start.row=s.start.row,r.end.column=s.end.column,r.end.row=s.end.row):r=s,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},this.getRangeOfMovements=function(r){var s=this.getCursor();try{r(this);var i=this.getCursor();return u.fromPoints(s,i)}catch(c){return u.fromPoints(s,s)}finally{this.moveCursorToPosition(s)}},this.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(s){var i=s.clone();return i.isBackwards=s.cursor==s.start,i});else(r=this.getRange()).isBackwards=this.isBackwards();return r},this.fromJSON=function(r){if(null==r.start){if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var s=r.length;s--;){var i=u.fromPoints(r[s].start,r[s].end);r[s].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}r=r[0]}this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},this.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var s=this.ranges.length;s--;)if(!this.ranges[s].isEqual(r[s]))return!1;return!0}}).call(h.prototype),f.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(n,f,v){"use strict";var m=n("./config"),o=2e3,d=function(u){for(var h in this.states=u,this.regExps={},this.matchMappings={},this.states){for(var r=this.states[h],s=[],i=0,c=this.matchMappings[h]={defaultToken:"text"},l="g",g=[],y=0;y1?this.$applyToken:E.token),D>1&&(/\\\d/.test(E.regex)?T=E.regex.replace(/\\([0-9]+)/g,function(O,w){return"\\"+(parseInt(w,10)+i+1)}):(D=1,T=this.removeCapturingGroups(E.regex)),!E.splitRegex&&"string"!=typeof E.token&&g.push(E)),c[i]=y,i+=D,s.push(T),E.onMatch||(E.onMatch=null)}}s.length||(c[0]=0,s.push("$")),g.forEach(function(O){O.splitRegex=this.createSplitterRegexp(O.regex,l)},this),this.regExps[h]=new RegExp("("+s.join(")|(")+")|($)",l)}};(function(){this.$setMaxTokenCount=function(u){o=0|u},this.$applyToken=function(u){var h=this.splitRegex.exec(u).slice(1),r=this.token.apply(this,h);if("string"==typeof r)return[{type:r,value:u}];for(var s=[],i=0,c=r.length;iE){var M=u.substring(E,S-A.length);D.type==O?D.value+=M:(D.type&&y.push(D),D={type:O,value:M})}for(var I=0;Io){for(T>2*u.length&&this.reportError("infinite loop with in ace tokenizer",{startState:h,line:u});E1&&r[0]!==s&&r.unshift("#tmp",s),{tokens:y,state:r.length?r:s}},this.reportError=m.reportError}).call(d.prototype),f.Tokenizer=d}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(n,f,v){"use strict";var m=n("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,r){if(r)for(var s in h){for(var i=h[s],c=0;c=this.$rowTokens.length;){if(this.$row+=1,d||(d=this.$session.getLength()),this.$row>=d)return this.$row=d-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var d=this.$rowTokens,u=this.$tokenIndex,h=d[u].start;if(void 0!==h)return h;for(h=0;u>0;)h+=d[u-=1].value.length;return h},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var d=this.$rowTokens[this.$tokenIndex],u=this.getCurrentTokenColumn();return new m(this.$row,u,this.$row,u+d.value.length)}}).call(o.prototype),f.TokenIterator=o}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,f,v){"use strict";var s,m=n("../../lib/oop"),o=n("../behaviour").Behaviour,d=n("../../token_iterator").TokenIterator,u=n("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],r=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i={},c={'"':'"',"'":"'"},l=function(E){var T=-1;if(E.multiSelect&&(T=E.selection.index,i.rangeCount!=E.multiSelect.rangeCount&&(i={rangeCount:E.multiSelect.rangeCount})),i[T])return s=i[T];s=i[T]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(E,T,D,O){var w=E.end.row-E.start.row;return{text:D+T+O,selection:[0,E.start.column+1,w,E.end.column+(w?0:1)]}},y=function(E){this.add("braces","insertion",function(T,D,O,w,A){var S=O.getCursorPosition(),M=w.doc.getLine(S.row);if("{"==A){l(O);var I=O.getSelectionRange(),b=w.doc.getTextRange(I);if(""!==b&&"{"!==b&&O.getWrapBehavioursEnabled())return g(I,b,"{","}");if(y.isSaneInsertion(O,w))return/[\]\}\)]/.test(M[S.column])||O.inMultiSelectMode||E&&E.braces?(y.recordAutoInsert(O,w,"}"),{text:"{}",selection:[1,1]}):(y.recordMaybeInsert(O,w,"{"),{text:"{",selection:[1,1]})}else if("}"==A){if(l(O),"}"==M.substring(S.column,S.column+1)&&null!==w.$findOpeningBracket("}",{column:S.column+1,row:S.row})&&y.isAutoInsertedClosing(S,M,A))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==A||"\r\n"==A){l(O);var ne="";if(y.isMaybeInsertedClosing(S,M)&&(ne=u.stringRepeat("}",s.maybeInsertedBrackets),y.clearMaybeInsertedClosing()),"}"===M.substring(S.column,S.column+1)){var Y=w.findMatchingBracket({row:S.row,column:S.column+1},"}");if(!Y)return null;var Q=this.$getIndent(w.getLine(Y.row))}else{if(!ne)return void y.clearMaybeInsertedClosing();Q=this.$getIndent(M)}var te=Q+w.getTabString();return{text:"\n"+te+"\n"+Q+ne,selection:[1,te.length,1,te.length]}}y.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(T,D,O,w,A){var S=w.doc.getTextRange(A);if(!A.isMultiLine()&&"{"==S){if(l(O),"}"==w.doc.getLine(A.start.row).substring(A.end.column,A.end.column+1))return A.end.column++,A;s.maybeInsertedBrackets--}}),this.add("parens","insertion",function(T,D,O,w,A){if("("==A){l(O);var S=O.getSelectionRange(),M=w.doc.getTextRange(S);if(""!==M&&O.getWrapBehavioursEnabled())return g(S,M,"(",")");if(y.isSaneInsertion(O,w))return y.recordAutoInsert(O,w,")"),{text:"()",selection:[1,1]}}else if(")"==A){l(O);var I=O.getCursorPosition(),b=w.doc.getLine(I.row);if(")"==b.substring(I.column,I.column+1)&&null!==w.$findOpeningBracket(")",{column:I.column+1,row:I.row})&&y.isAutoInsertedClosing(I,b,A))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(T,D,O,w,A){var S=w.doc.getTextRange(A);if(!A.isMultiLine()&&"("==S&&(l(O),")"==w.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)))return A.end.column++,A}),this.add("brackets","insertion",function(T,D,O,w,A){if("["==A){l(O);var S=O.getSelectionRange(),M=w.doc.getTextRange(S);if(""!==M&&O.getWrapBehavioursEnabled())return g(S,M,"[","]");if(y.isSaneInsertion(O,w))return y.recordAutoInsert(O,w,"]"),{text:"[]",selection:[1,1]}}else if("]"==A){l(O);var I=O.getCursorPosition(),b=w.doc.getLine(I.row);if("]"==b.substring(I.column,I.column+1)&&null!==w.$findOpeningBracket("]",{column:I.column+1,row:I.row})&&y.isAutoInsertedClosing(I,b,A))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(T,D,O,w,A){var S=w.doc.getTextRange(A);if(!A.isMultiLine()&&"["==S&&(l(O),"]"==w.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)))return A.end.column++,A}),this.add("string_dquotes","insertion",function(T,D,O,w,A){var S=w.$mode.$quotes||c;if(1==A.length&&S[A]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(A))return;l(O);var M=A,I=O.getSelectionRange(),b=w.doc.getTextRange(I);if(""!==b&&(1!=b.length||!S[b])&&O.getWrapBehavioursEnabled())return g(I,b,M,M);if(!b){var L=O.getCursorPosition(),F=w.doc.getLine(L.row),ne=F.substring(L.column-1,L.column),Y=F.substring(L.column,L.column+1),Q=w.getTokenAt(L.row,L.column),te=w.getTokenAt(L.row,L.column+1);if("\\"==ne&&Q&&/escape/.test(Q.type))return null;var ie,$=Q&&/string|escape/.test(Q.type),J=!te||/string|escape/.test(te.type);if(Y==M)(ie=$!==J)&&/string\.end/.test(te.type)&&(ie=!1);else{if($&&!J||$&&J)return null;var ae=w.$mode.tokenRe;ae.lastIndex=0;var le=ae.test(ne);ae.lastIndex=0;var Oe=ae.test(ne);if(le||Oe||Y&&!/[\s;,.})\]\\]/.test(Y))return null;var Le=F[L.column-2];if(ne==M&&(Le==M||ae.test(Le)))return null;ie=!0}return{text:ie?M+M:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(T,D,O,w,A){var S=w.$mode.$quotes||c,M=w.doc.getTextRange(A);if(!A.isMultiLine()&&S.hasOwnProperty(M)&&(l(O),w.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)==M))return A.end.column++,A})};y.isSaneInsertion=function(E,T){var D=E.getCursorPosition(),O=new d(T,D.row,D.column);if(!this.$matchTokenType(O.getCurrentToken()||"text",h)){if(/[)}\]]/.test(E.session.getLine(D.row)[D.column]))return!0;var w=new d(T,D.row,D.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",h))return!1}return O.stepForward(),O.getCurrentTokenRow()!==D.row||this.$matchTokenType(O.getCurrentToken()||"text",r)},y.$matchTokenType=function(E,T){return T.indexOf(E.type||E)>-1},y.recordAutoInsert=function(E,T,D){var O=E.getCursorPosition(),w=T.doc.getLine(O.row);this.isAutoInsertedClosing(O,w,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=O.row,s.autoInsertedLineEnd=D+w.substr(O.column),s.autoInsertedBrackets++},y.recordMaybeInsert=function(E,T,D){var O=E.getCursorPosition(),w=T.doc.getLine(O.row);this.isMaybeInsertedClosing(O,w)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=O.row,s.maybeInsertedLineStart=w.substr(0,O.column)+D,s.maybeInsertedLineEnd=w.substr(O.column),s.maybeInsertedBrackets++},y.isAutoInsertedClosing=function(E,T,D){return s.autoInsertedBrackets>0&&E.row===s.autoInsertedRow&&D===s.autoInsertedLineEnd[0]&&T.substr(E.column)===s.autoInsertedLineEnd},y.isMaybeInsertedClosing=function(E,T){return s.maybeInsertedBrackets>0&&E.row===s.maybeInsertedRow&&T.substr(E.column)===s.maybeInsertedLineEnd&&T.substr(0,E.column)==s.maybeInsertedLineStart},y.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},y.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},m.inherits(y,o),f.CstyleBehaviour=y}),ace.define("ace/unicode",["require","exports","module"],function(n,f,v){"use strict";for(var m=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,d=[],u=0;u2?Je%A!=A-1:Je%A==0}}else{if(!this.blockComment)return!1;M=this.blockComment.start;var I=this.blockComment.end,L=(b=new RegExp("^(\\s*)(?:"+r.escapeRegExp(M)+")"),new RegExp("(?:"+r.escapeRegExp(I)+")\\s*$"));F=function(ie,ae){Y(ie,ae)||(!D||/\S/.test(ie))&&(T.insertInLine({row:ae,column:ie.length},I),T.insertInLine({row:ae,column:w},M))},ne=function(ie,ae){var le;(le=ie.match(L))&&T.removeInLine(ae,ie.length-le[0].length,ie.length),(le=ie.match(b))&&T.removeInLine(ae,le[1].length,le[0].length)},Y=function(ie,ae){if(b.test(ie))return!0;for(var le=g.getTokens(ae),Oe=0;Oeie.length&&(J=ie.length)}),w==1/0&&(w=J,D=!1,O=!1),S&&w%A!=0&&(w=Math.floor(w/A)*A),$(O?ne:F)},this.toggleBlockComment=function(l,g,y,E){var T=this.blockComment;if(T){!T.start&&T[0]&&(T=T[0]);var S,M,O=(D=new s(g,E.row,E.column)).getCurrentToken(),A=g.selection.toOrientedRange();if(O&&/comment/.test(O.type)){for(var I,b;O&&/comment/.test(O.type);){if(-1!=(L=O.value.indexOf(T.start))){var F=D.getCurrentTokenRow(),ne=D.getCurrentTokenColumn()+L;I=new i(F,ne,F,ne+T.start.length);break}O=D.stepBackward()}var D;for(O=(D=new s(g,E.row,E.column)).getCurrentToken();O&&/comment/.test(O.type);){var L;if(-1!=(L=O.value.indexOf(T.end))){F=D.getCurrentTokenRow(),ne=D.getCurrentTokenColumn()+L,b=new i(F,ne,F,ne+T.end.length);break}O=D.stepForward()}b&&g.remove(b),I&&(g.remove(I),S=I.start.row,M=-T.start.length)}else M=T.start.length,S=y.start.row,g.insert(y.end,T.end),g.insert(y.start,T.start);A.start.row==S&&(A.start.column+=M),A.end.row==S&&(A.end.column+=M),g.selection.fromOrientedRange(A)}},this.getNextLineIndent=function(l,g,y){return this.$getIndent(g)},this.checkOutdent=function(l,g,y){return!1},this.autoOutdent=function(l,g,y){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){for(var g in this.$embeds=[],this.$modes={},l)if(l[g]){var y=l[g],E=y.prototype.$id,T=m.$modes[E];T||(m.$modes[E]=T=new y),m.$modes[g]||(m.$modes[g]=T),this.$embeds.push(g),this.$modes[g]=T}var D=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(g=0;gthis.row)){var s=function(r,s,i){var c="insert"==r.action,l=(c?1:-1)*(r.end.row-r.start.row),g=(c?1:-1)*(r.end.column-r.start.column),y=r.start,E=c?y:r.end;return u(s,y,i)?{row:s.row,column:s.column}:u(E,s,!i)?{row:s.row+l,column:s.column+(s.row==E.row?g:0)}:{row:y.row,column:y.column}}(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(r,s,i){var c;if(c=i?{row:r,column:s}:this.$clipPositionToDocument(r,s),this.row!=c.row||this.column!=c.column){var l={row:this.row,column:this.column};this.row=c.row,this.column=c.column,this._signal("change",{old:l,value:c})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(r,s){var i={};return r>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):r<0?(i.row=0,i.column=0):(i.row=r,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,s))),s<0&&(i.column=0),i}}).call(d.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,f,v){"use strict";var m=n("./lib/oop"),o=n("./apply_delta").applyDelta,d=n("./lib/event_emitter").EventEmitter,u=n("./range").Range,h=n("./anchor").Anchor,r=function(s){this.$lines=[""],0===s.length?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){m.implement(this,d),this.setValue=function(s){var i=this.getLength()-1;this.remove(new u(0,0,i,this.getLine(i).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,i){return new h(this,s,i)},this.$split=0==="aaa".split(/a/).length?function(s){return s.replace(/\r\n|\r/g,"\n").split("\n")}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){var i=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=i?i[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return"\r\n"==s||"\r"==s||"\n"==s},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,i){return this.$lines.slice(s,i+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){var i;if(s.start.row===s.end.row)i=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{(i=this.getLines(s.start.row,s.end.row))[0]=(i[0]||"").substring(s.start.column);var c=i.length-1;s.end.row-s.start.row==c&&(i[c]=i[c].substring(0,s.end.column))}return i},this.insertLines=function(s,i){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,i)},this.removeLines=function(s,i){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,i)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,i){return this.getLength()<=1&&this.$detectNewLine(i),this.insertMergedLines(s,this.$split(i))},this.insertInLine=function(s,i){var c=this.clippedPos(s.row,s.column),l=this.pos(s.row,s.column+i.length);return this.applyDelta({start:c,end:l,action:"insert",lines:[i]},!0),this.clonePos(l)},this.clippedPos=function(s,i){var c=this.getLength();void 0===s?s=c:s<0?s=0:s>=c&&(s=c-1,i=void 0);var l=this.getLine(s);return null==i&&(i=l.length),{row:s,column:i=Math.min(Math.max(i,0),l.length)}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,i){return{row:s,column:i}},this.$clipPosition=function(s){var i=this.getLength();return s.row>=i?(s.row=Math.max(0,i-1),s.column=this.getLine(i-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,i){var c=0;(s=Math.min(Math.max(s,0),this.getLength()))0,l=i=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,i){return s instanceof u||(s=u.fromPoints(s.start,s.end)),0===i.length&&s.isEmpty()?s.start:i==this.getTextRange(s)?s.end:(this.remove(s),i?this.insert(s.start,i):s.start)},this.applyDeltas=function(s){for(var i=0;i=0;i--)this.revertDelta(s[i])},this.applyDelta=function(s,i){var c="insert"==s.action;(c?s.lines.length<=1&&!s.lines[0]:!u.comparePoints(s.start,s.end))||(c&&s.lines.length>2e4?this.$splitAndapplyLargeDelta(s,2e4):(o(this.$lines,s,i),this._signal("change",s)))},this.$safeApplyDelta=function(s){var i=this.$lines.length;("remove"==s.action&&s.start.row20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=i,-1==c&&(c=i),g<=c&&r.fireUpdateEvent(g,c)}}};(function(){m.implement(this,o),this.setTokenizer=function(u){this.tokenizer=u,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(u){this.doc=u,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(u,h){this._signal("update",{data:{first:u,last:h}})},this.start=function(u){this.currentLine=Math.min(u||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(u){var h=u.start.row,r=u.end.row-h;if(0===r)this.lines[h]=null;else if("remove"==u.action)this.lines.splice(h,r+1,null),this.states.splice(h,r+1,null);else{var s=Array(r+1);s.unshift(h,1),this.lines.splice.apply(this.lines,s),this.states.splice.apply(this.states,s)}this.currentLine=Math.min(h,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(u){return this.lines[u]||this.$tokenizeRow(u)},this.getState=function(u){return this.currentLine==u&&this.$tokenizeRow(u),this.states[u]||"start"},this.$tokenizeRow=function(u){var h=this.doc.getLine(u),s=this.tokenizer.getLineTokens(h,this.states[u-1],u);return this.states[u]+""!=s.state+""?(this.states[u]=s.state,this.lines[u+1]=null,this.currentLine>u+1&&(this.currentLine=u+1)):this.currentLine==u&&(this.currentLine=u+1),this.lines[u]=s.tokens}}).call(d.prototype),f.BackgroundTokenizer=d}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,f,v){"use strict";var m=n("./lib/lang"),d=(n("./lib/oop"),n("./range").Range),u=function(h,r,s){this.setRegexp(h),this.clazz=r,this.type=s||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},this.update=function(h,r,s,i){if(this.regExp)for(var l=i.lastRow,g=i.firstRow;g<=l;g++){var y=this.cache[g];null==y&&((y=m.getMatchOffsets(s.getLine(g),this.regExp)).length>this.MAX_RANGES&&(y=y.slice(0,this.MAX_RANGES)),y=y.map(function(T){return new d(g,T.offset,g,T.offset+T.length)}),this.cache[g]=y.length?y:"");for(var E=y.length;E--;)r.drawSingleLineMarker(h,y[E].toScreenRange(s),this.clazz,i)}}}).call(u.prototype),f.SearchHighlight=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,f,v){"use strict";var m=n("../range").Range;function o(d,u){this.foldData=d,Array.isArray(u)?this.folds=u:u=this.folds=[u];var h=u[u.length-1];this.range=new m(u[0].start.row,u[0].start.column,h.end.row,h.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(r){r.setFoldLine(this)},this)}(function(){this.shiftRow=function(d){this.start.row+=d,this.end.row+=d,this.folds.forEach(function(u){u.start.row+=d,u.end.row+=d})},this.addFold=function(d){if(d.sameRow){if(d.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(d),this.folds.sort(function(u,h){return-u.range.compareEnd(h.start.row,h.start.column)}),this.range.compareEnd(d.start.row,d.start.column)>0?(this.end.row=d.end.row,this.end.column=d.end.column):this.range.compareStart(d.end.row,d.end.column)<0&&(this.start.row=d.start.row,this.start.column=d.start.column)}else if(d.start.row==this.end.row)this.folds.push(d),this.end.row=d.end.row,this.end.column=d.end.column;else{if(d.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(d),this.start.row=d.start.row,this.start.column=d.start.column}d.foldLine=this},this.containsRow=function(d){return d>=this.start.row&&d<=this.end.row},this.walk=function(d,u,h){var i,c,r=0,s=this.folds,g=!0;null==u&&(u=this.end.row,h=this.end.column);for(var y=0;y0)){var g=o(u,c.start);return 0===l?h&&0!==g?-i-2:i:g>0||0===g&&!h?i:-i-1}}return-i-1},this.add=function(u){var h=!u.isEmpty(),r=this.pointIndex(u.start,h);r<0&&(r=-r-1);var s=this.pointIndex(u.end,h,r);return s<0?s=-s-1:s++,this.ranges.splice(r,s-r,u)},this.addList=function(u){for(var h=[],r=u.length;r--;)h.push.apply(h,this.add(u[r]));return h},this.substractPoint=function(u){var h=this.pointIndex(u);if(h>=0)return this.ranges.splice(h,1)},this.merge=function(){for(var s,u=[],h=this.ranges,r=(h=h.sort(function(l,g){return o(l.start,g.start)}))[0],i=1;i=0},this.containsPoint=function(u){return this.pointIndex(u)>=0},this.rangeAtPoint=function(u){var h=this.pointIndex(u);if(h>=0)return this.ranges[h]},this.clipRows=function(u,h){var r=this.ranges;if(r[0].start.row>h||r[r.length-1].start.row=s);l++);if("insert"==u.action){for(var E=i-s,T=-h.column+r.column;ls);l++)if(y.start.row==s&&y.start.column>=h.column&&(y.start.column==h.column&&this.$bias<=0||(y.start.column+=T,y.start.row+=E)),y.end.row==s&&y.end.column>=h.column){if(y.end.column==h.column&&this.$bias<0)continue;y.end.column==h.column&&T>0&&ly.start.column&&y.end.column==c[l+1].start.column&&(y.end.column-=T),y.end.column+=T,y.end.row+=E}}else for(E=s-i,T=h.column-r.column;li);l++)y.end.rowh.column)&&(y.end.column=h.column,y.end.row=h.row):(y.end.column+=T,y.end.row+=E):y.end.row>i&&(y.end.row+=E),y.start.rowh.column)&&(y.start.column=h.column,y.start.row=h.row):(y.start.column+=T,y.start.row+=E):y.start.row>i&&(y.start.row+=E);if(0!=E&&l=r)return l;if(l.end.row>r)return null}return null},this.getNextFoldLine=function(r,s){var i=this.$foldData,c=0;for(s&&(c=i.indexOf(s)),-1==c&&(c=0);c=r)return l}return null},this.getFoldedRowCount=function(r,s){for(var i=this.$foldData,c=s-r+1,l=0;l=s){E=r?c-=s-E:c=0);break}y>=r&&(c-=E>=r?y-E:y-r+1)}return c},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(s,i){return s.start.row-i.start.row}),r},this.addFold=function(r,s){var l,i=this.$foldData,c=!1;r instanceof d?l=r:(l=new d(s,r)).collapseChildren=s.collapseChildren,this.$clipRangeToDocument(l.range);var g=l.start.row,y=l.start.column,E=l.end.row,T=l.end.column,D=this.getFoldAt(g,y,1),O=this.getFoldAt(E,T,-1);if(D&&O==D)return D.addSubFold(l);D&&!D.range.isStart(g,y)&&this.removeFold(D),O&&!O.range.isEnd(E,T)&&this.removeFold(O);var w=this.getFoldsInRange(l.range);w.length>0&&(this.removeFolds(w),l.collapseChildren||w.forEach(function(I){l.addSubFold(I)}));for(var A=0;A0&&this.foldAll(r.start.row+1,r.end.row,r.collapseChildren-1),r.subFolds=[]},this.expandFolds=function(r){r.forEach(function(s){this.expandFold(s)},this)},this.unfold=function(r,s){var i,c;if(null==r)i=new m(0,0,this.getLength(),0),null==s&&(s=!0);else if("number"==typeof r)i=new m(r,0,r,this.getLine(r).length);else if("row"in r)i=m.fromPoints(r,r);else{if(Array.isArray(r))return c=[],r.forEach(function(g){c=c.concat(this.unfold(g))},this),c;i=r}for(var l=c=this.getFoldsInRangeList(i);1==c.length&&m.comparePoints(c[0].start,i.start)<0&&m.comparePoints(c[0].end,i.end)>0;)this.expandFolds(c),c=this.getFoldsInRangeList(i);if(0!=s?this.removeFolds(c):this.expandFolds(c),l.length)return l},this.isRowFolded=function(r,s){return!!this.getFoldLine(r,s)},this.getRowFoldEnd=function(r,s){var i=this.getFoldLine(r,s);return i?i.end.row:r},this.getRowFoldStart=function(r,s){var i=this.getFoldLine(r,s);return i?i.start.row:r},this.getFoldDisplayLine=function(r,s,i,c,l){null==c&&(c=r.start.row),null==l&&(l=0),null==s&&(s=r.end.row),null==i&&(i=this.getLine(s).length);var g=this.doc,y="";return r.walk(function(E,T,D,O){if(!(TT)break}while(l&&y.test(l.type));l=c.stepBackward()}else l=c.getCurrentToken();return E.end.row=c.getCurrentTokenRow(),E.end.column=c.getCurrentTokenColumn()+l.value.length-2,E}},this.foldAll=function(r,s,i,c){null==i&&(i=1e5);var l=this.foldWidgets;if(l){s=s||this.getLength();for(var g=r=r||0;g=r&&(g=y.end.row,y.collapseChildren=i,this.addFold("...",y))}}},this.foldToLevel=function(r){for(this.foldAll();r-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(s){for(var i=r.getTokens(s),c=0;c=0;){var g=i[c];if(null==g&&(g=i[c]=this.getFoldWidget(c)),"start"==g){var y=this.getFoldWidgetRange(c);if(l||(l=y),y&&y.end.row>=r)break}c--}return{range:-1!==c&&y,firstRange:l}},this.onFoldWidgetClick=function(r,s){if(!this.$toggleFoldWidget(r,{children:(s=s.domEvent).shiftKey,all:s.ctrlKey||s.metaKey,siblings:s.altKey})){var l=s.target||s.srcElement;l&&/ace_fold-widget/.test(l.className)&&(l.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,s){if(this.getFoldWidget){var i=this.getFoldWidget(r),c=this.getLine(r),l="end"===i?-1:1,g=this.getFoldAt(r,-1===l?0:c.length,l);if(g)return s.children||s.all?this.removeFold(g):this.expandFold(g),g;var y=this.getFoldWidgetRange(r,!0);if(y&&!y.isMultiLine()&&(g=this.getFoldAt(y.start.row,y.start.column,1))&&y.isEqual(g.range))return this.removeFold(g),g;if(s.siblings){var E=this.getParentFoldRangeData(r);if(E.range)var T=E.range.start.row+1,D=E.range.end.row;this.foldAll(T,D,s.all?1e4:0)}else s.children?(D=y?y.end.row:this.getLength(),this.foldAll(r+1,D,s.all?1e4:0)):y&&(s.all&&(y.collapseChildren=1e4),this.addFold("...",y));return y}},this.toggleFoldWidget=function(r){var s=this.selection.getCursor().row;s=this.getRowFoldStart(s);var i=this.$toggleFoldWidget(s,{});if(!i){var c=this.getParentFoldRangeData(s,!0);if(i=c.range||c.firstRange){var l=this.getFoldAt(s=i.start.row,this.getLine(s).length,1);l?this.removeFold(l):this.addFold("...",i)}}},this.updateFoldWidgets=function(r){var s=r.start.row,i=r.end.row-s;if(0===i)this.foldWidgets[s]=null;else if("remove"==r.action)this.foldWidgets.splice(s,i+1,null);else{var c=Array(i+1);c.unshift(s,1),this.foldWidgets.splice.apply(this.foldWidgets,c)}},this.tokenizerUpdateFoldWidgets=function(r){var s=r.data;s.first!=s.last&&this.foldWidgets.length>s.first&&this.foldWidgets.splice(s.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,f,v){"use strict";var m=n("../token_iterator").TokenIterator,o=n("../range").Range;f.BracketMatch=function(){this.findMatchingBracket=function(u,h){if(0==u.column)return null;var r=h||this.getLine(u.row).charAt(u.column-1);if(""==r)return null;var s=r.match(/([\(\[\{])|([\)\]\}])/);return s?s[1]?this.$findClosingBracket(s[1],u):this.$findOpeningBracket(s[2],u):null},this.getBracketRange=function(u){var s,h=this.getLine(u.row),r=!0,i=h.charAt(u.column-1),c=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(c||(i=h.charAt(u.column),u={row:u.row,column:u.column+1},c=i&&i.match(/([\(\[\{])|([\)\]\}])/),r=!1),!c)return null;if(c[1]){if(!(l=this.$findClosingBracket(c[1],u)))return null;s=o.fromPoints(u,l),r||(s.end.column++,s.start.column--),s.cursor=s.end}else{var l;if(!(l=this.$findOpeningBracket(c[2],u)))return null;s=o.fromPoints(l,u),r||(s.start.column++,s.end.column--),s.cursor=s.start}return s},this.getMatchingBracketRanges=function(u){var h=this.getLine(u.row),r=h.charAt(u.column-1),s=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(s||(r=h.charAt(u.column),u={row:u.row,column:u.column+1},s=r&&r.match(/([\(\[\{])|([\)\]\}])/)),!s)return null;var i=new o(u.row,u.column-1,u.row,u.column),c=s[1]?this.$findClosingBracket(s[1],u):this.$findOpeningBracket(s[2],u);return c?[i,new o(c.row,c.column,c.row,c.column+1)]:[i]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(u,h,r){var s=this.$brackets[u],i=1,c=new m(this,h.row,h.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),l){r||(r=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var g=h.column-c.getCurrentTokenColumn()-2,y=l.value;;){for(;g>=0;){var E=y.charAt(g);if(E==s){if(0==(i-=1))return{row:c.getCurrentTokenRow(),column:g+c.getCurrentTokenColumn()}}else E==u&&(i+=1);g-=1}do{l=c.stepBackward()}while(l&&!r.test(l.type));if(null==l)break;g=(y=l.value).length-1}return null}},this.$findClosingBracket=function(u,h,r){var s=this.$brackets[u],i=1,c=new m(this,h.row,h.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),l){r||(r=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var g=h.column-c.getCurrentTokenColumn();;){for(var y=l.value,E=y.length;gF&&(this.$docRowCache.splice(F,L),this.$screenRowCache.splice(F,L))},this.$getRowCacheIndex=function(b,L){for(var F=0,ne=b.length-1;F<=ne;){var Y=F+ne>>1,Q=b[Y];if(L>Q)F=Y+1;else{if(!(L=L);Q++);return(ne=F[Q])?(ne.index=Q,ne.start=Y-ne.value.length,ne):null},this.setUndoManager=function(b){if(this.$undoManager=b,this.$informUndoManager&&this.$informUndoManager.cancel(),b){var L=this;b.addSession(this),this.$syncInformUndoManager=function(){L.$informUndoManager.cancel(),L.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(b){this.setOption("useSoftTabs",b)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(b){this.setOption("tabSize",b)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(b){return this.$useSoftTabs&&b.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(b){this.setOption("navigateWithinSoftTabs",b)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(b){this.setOption("overwrite",b)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(b,L){this.$decorations[b]||(this.$decorations[b]=""),this.$decorations[b]+=" "+L,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(b,L){this.$decorations[b]=(this.$decorations[b]||"").replace(" "+L,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(b){this.$breakpoints=[];for(var L=0;L0&&(ne=!!F.charAt(L-1).match(this.tokenRe)),ne||(ne=!!F.charAt(L).match(this.tokenRe)),ne)var Y=this.tokenRe;else Y=/^\s+$/.test(F.slice(L-1,L+1))?/\s/:this.nonTokenRe;var Q=L;if(Q>0){do{Q--}while(Q>=0&&F.charAt(Q).match(Y));Q++}for(var te=L;teb&&(b=L.screenWidth)}),this.lineWidgetWidth=b},this.$computeWidth=function(b){if(this.$modified||b){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var L=this.doc.getAllLines(),F=this.$rowLengthCache,ne=0,Y=0,Q=this.$foldData[Y],te=Q?Q.start.row:1/0,$=L.length,J=0;J<$;J++){if(J>te){if((J=Q.end.row+1)>=$)break;te=(Q=this.$foldData[Y++])?Q.start.row:1/0}null==F[J]&&(F[J]=this.$getStringScreenWidth(L[J])[0]),F[J]>ne&&(ne=F[J])}this.screenWidth=ne}},this.getLine=function(b){return this.doc.getLine(b)},this.getLines=function(b,L){return this.doc.getLines(b,L)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(b){return this.doc.getTextRange(b||this.selection.getRange())},this.insert=function(b,L){return this.doc.insert(b,L)},this.remove=function(b){return this.doc.remove(b)},this.removeFullLines=function(b,L){return this.doc.removeFullLines(b,L)},this.undoChanges=function(b,L){if(b.length){this.$fromUndo=!0;for(var F=b.length-1;-1!=F;F--){var ne=b[F];"insert"==ne.action||"remove"==ne.action?this.doc.revertDelta(ne):ne.folds&&this.addFolds(ne.folds)}!L&&this.$undoSelect&&(b.selectionBefore?this.selection.fromJSON(b.selectionBefore):this.selection.setRange(this.$getUndoSelection(b,!0))),this.$fromUndo=!1}},this.redoChanges=function(b,L){if(b.length){this.$fromUndo=!0;for(var F=0;Fb.end.column&&(Q.start.column+=$),Q.end.row==b.end.row&&Q.end.column>b.end.column&&(Q.end.column+=$)),te&&Q.start.row>=b.end.row&&(Q.start.row+=te,Q.end.row+=te)),Q.end=this.insert(Q.start,ne),Y.length){var J=b.start,ie=Q.start,te=ie.row-J.row,$=ie.column-J.column;this.addFolds(Y.map(function(Oe){return(Oe=Oe.clone()).start.row==J.row&&(Oe.start.column+=$),Oe.end.row==J.row&&(Oe.end.column+=$),Oe.start.row+=te,Oe.end.row+=te,Oe}))}return Q},this.indentRows=function(b,L,F){F=F.replace(/\t/g,this.getTabString());for(var ne=b;ne<=L;ne++)this.doc.insertInLine({row:ne,column:0},F)},this.outdentRows=function(b){for(var L=b.collapseRows(),F=new i(0,0,0,0),ne=this.getTabSize(),Y=L.start.row;Y<=L.end.row;++Y){var Q=this.getLine(Y);F.start.row=Y,F.end.row=Y;for(var te=0;te0){var ne;if((ne=this.getRowFoldEnd(L+F))>this.doc.getLength()-1)return 0;Y=ne-L}else b=this.$clipRowToDocument(b),Y=(L=this.$clipRowToDocument(L))-b+1;var Q=new i(b,0,L,Number.MAX_VALUE),te=this.getFoldsInRange(Q).map(function(J){return(J=J.clone()).start.row+=Y,J.end.row+=Y,J}),$=0==F?this.doc.getLines(b,L):this.doc.removeFullLines(b,L);return this.doc.insertFullLines(b+Y,$),te.length&&this.addFolds(te),Y},this.moveLinesUp=function(b,L){return this.$moveLines(b,L,-1)},this.moveLinesDown=function(b,L){return this.$moveLines(b,L,1)},this.duplicateLines=function(b,L){return this.$moveLines(b,L,0)},this.$clipRowToDocument=function(b){return Math.max(0,Math.min(b,this.doc.getLength()-1))},this.$clipColumnToRow=function(b,L){return L<0?0:Math.min(this.doc.getLine(b).length,L)},this.$clipPositionToDocument=function(b,L){if(L=Math.max(0,L),b<0)b=0,L=0;else{var F=this.doc.getLength();b>=F?(b=F-1,L=this.doc.getLine(F-1).length):L=Math.min(this.doc.getLine(b).length,L)}return{row:b,column:L}},this.$clipRangeToDocument=function(b){b.start.row<0?(b.start.row=0,b.start.column=0):b.start.column=this.$clipColumnToRow(b.start.row,b.start.column);var L=this.doc.getLength()-1;return b.end.row>L?(b.end.row=L,b.end.column=this.doc.getLine(L).length):b.end.column=this.$clipColumnToRow(b.end.row,b.end.column),b},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(b){if(b!=this.$useWrapMode){if(this.$useWrapMode=b,this.$modified=!0,this.$resetRowCache(0),b){var L=this.getLength();this.$wrapData=Array(L),this.$updateWrapData(0,L-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(b,L){(this.$wrapLimitRange.min!==b||this.$wrapLimitRange.max!==L)&&(this.$wrapLimitRange={min:b,max:L},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(b,L){var F=this.$wrapLimitRange;F.max<0&&(F={min:L,max:L});var ne=this.$constrainWrapLimit(b,F.min,F.max);return ne!=this.$wrapLimit&&ne>1&&(this.$wrapLimit=ne,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(b,L,F){return L&&(b=Math.max(L,b)),F&&(b=Math.min(F,b)),b},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(b){this.setWrapLimitRange(b,b)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(b){var L=this.$useWrapMode,F=b.action,ne=b.start,Y=b.end,Q=ne.row,te=Y.row,$=te-Q,J=null;if(this.$updating=!0,0!=$)if("remove"===F){this[L?"$wrapData":"$rowLengthCache"].splice(Q,$);var ie=this.$foldData;J=this.getFoldsInRange(b),this.removeFolds(J);var le=0;if(ae=this.getFoldLine(Y.row)){ae.addRemoveChars(Y.row,Y.column,ne.column-Y.column),ae.shiftRow(-$);var Oe=this.getFoldLine(Q);Oe&&Oe!==ae&&(Oe.merge(ae),ae=Oe),le=ie.indexOf(ae)+1}for(;le=Y.row&&ae.shiftRow(-$);te=Q}else{var Le=Array($);Le.unshift(Q,0);var Ye=L?this.$wrapData:this.$rowLengthCache;if(Ye.splice.apply(Ye,Le),ie=this.$foldData,le=0,ae=this.getFoldLine(Q)){var Je=ae.range.compareInside(ne.row,ne.column);0==Je?(ae=ae.split(ne.row,ne.column))&&(ae.shiftRow($),ae.addRemoveChars(te,0,Y.column-ne.column)):-1==Je&&(ae.addRemoveChars(Q,0,Y.column-ne.column),ae.shiftRow($)),le=ie.indexOf(ae)+1}for(;le=Q&&ae.shiftRow($)}}else $=Math.abs(b.start.column-b.end.column),"remove"===F&&(J=this.getFoldsInRange(b),this.removeFolds(J),$=-$),(ae=this.getFoldLine(Q))&&ae.addRemoveChars(Q,ne.column,$);return L&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,L?this.$updateWrapData(Q,te):this.$updateRowLengthCache(Q,te),J},this.$updateRowLengthCache=function(b,L,F){this.$rowLengthCache[b]=null,this.$rowLengthCache[L]=null},this.$updateWrapData=function(b,L){var te,$,F=this.doc.getAllLines(),ne=this.getTabSize(),Y=this.$wrapData,Q=this.$wrapLimit,J=b;for(L=Math.min(L,F.length-1);J<=L;)($=this.getFoldLine(J,$))?(te=[],$.walk(function(ie,ae,le,Oe){var Le;if(null!=ie){(Le=this.$getDisplayTokens(ie,te.length))[0]=D;for(var Ye=1;Ye=4352&&b<=4447||b>=4515&&b<=4519||b>=4602&&b<=4607||b>=9001&&b<=9002||b>=11904&&b<=11929||b>=11931&&b<=12019||b>=12032&&b<=12245||b>=12272&&b<=12283||b>=12288&&b<=12350||b>=12353&&b<=12438||b>=12441&&b<=12543||b>=12549&&b<=12589||b>=12593&&b<=12686||b>=12688&&b<=12730||b>=12736&&b<=12771||b>=12784&&b<=12830||b>=12832&&b<=12871||b>=12880&&b<=13054||b>=13056&&b<=19903||b>=19968&&b<=42124||b>=42128&&b<=42182||b>=43360&&b<=43388||b>=44032&&b<=55203||b>=55216&&b<=55238||b>=55243&&b<=55291||b>=63744&&b<=64255||b>=65040&&b<=65049||b>=65072&&b<=65106||b>=65108&&b<=65126||b>=65128&&b<=65131||b>=65281&&b<=65376||b>=65504&&b<=65510)}this.$computeWrapSplits=function(b,L,F){if(0==b.length)return[];var ne=[],Y=b.length,Q=0,te=0,$=this.$wrapAsCode,J=this.$indentedSoftWrap,ie=L<=Math.max(2*F,8)||!1===J?0:Math.floor(L/2);function le(Je){for(var gt=Je-Q,Ue=Q;UeL-Oe;){var Le=Q+L-Oe;if(b[Le-1]>=10&&b[Le]>=10)le(Le);else if(b[Le]!=D&&b[Le]!=O){for(var Ye=Math.max(Le-(L-(L>>2)),Q-1);Le>Ye&&b[Le]Ye&&b[Le]Ye&&9==b[Le];)Le--}else for(;Le>Ye&&b[Le]<10;)Le--;Le>Ye?le(++Le):(2==b[Le=Q+L]&&Le--,le(Le-Oe))}else{for(;Le!=Q-1&&b[Le]!=D;Le--);if(Le>Q){le(Le);continue}for(Le=Q+L;Le39&&Q<48||Q>57&&Q<64?F.push(9):Q>=4352&&I(Q)?F.push(1,2):F.push(1)}return F},this.$getStringScreenWidth=function(b,L,F){if(0==L)return[0,0];var ne,Y;for(null==L&&(L=1/0),F=F||0,Y=0;Y=4352&&I(ne)?F+=2:F+=1,!(F>L));Y++);return[F,Y]},this.lineWidgets=null,this.getRowLength=function(b){var L=1;return this.lineWidgets&&(L+=this.lineWidgets[b]&&this.lineWidgets[b].rowCount||0),this.$useWrapMode&&this.$wrapData[b]?this.$wrapData[b].length+L:L},this.getRowLineCount=function(b){return this.$useWrapMode&&this.$wrapData[b]?this.$wrapData[b].length+1:1},this.getRowWrapIndent=function(b){if(this.$useWrapMode){var L=this.screenToDocumentPosition(b,Number.MAX_VALUE),F=this.$wrapData[L.row];return F.length&&F[0]=0){$=ie[ae],Y=this.$docRowCache[ae];var Oe=b>ie[le-1]}else Oe=!le;for(var Le=this.getLength()-1,Ye=this.getNextFoldLine(Y),Je=Ye?Ye.start.row:1/0;$<=b&&!($+(J=this.getRowLength(Y))>b||Y>=Le);)$+=J,++Y>Je&&(Je=(Ye=this.getNextFoldLine(Y=Ye.end.row+1,Ye))?Ye.start.row:1/0),Oe&&(this.$docRowCache.push(Y),this.$screenRowCache.push($));if(Ye&&Ye.start.row<=Y)ne=this.getFoldDisplayLine(Ye),Y=Ye.start.row;else{if($+J<=b||Y>Le)return{row:Le,column:this.getLine(Le).length};ne=this.getLine(Y),Ye=null}var gt=0,Ue=Math.floor(b-$);if(this.$useWrapMode){var tt=this.$wrapData[Y];tt&&(te=tt[Ue],Ue>0&&tt.length&&(gt=tt.indent,ne=ne.substring(Q=tt[Ue-1]||tt[tt.length-1])))}return void 0!==F&&this.$bidiHandler.isBidiRow($+Ue,Y,Ue)&&(L=this.$bidiHandler.offsetToCol(F)),Q+=this.$getStringScreenWidth(ne,L-gt)[1],this.$useWrapMode&&Q>=te&&(Q=te-1),Ye?Ye.idxToPosition(Q):{row:Y,column:Q}},this.documentToScreenPosition=function(b,L){if(void 0===L)var F=this.$clipPositionToDocument(b.row,b.column);else F=this.$clipPositionToDocument(b,L);var Q,ne=0,Y=null;(Q=this.getFoldAt(b=F.row,L=F.column,1))&&(b=Q.start.row,L=Q.start.column);var te,$=0,J=this.$docRowCache,ie=this.$getRowCacheIndex(J,b),ae=J.length;if(ae&&ie>=0){$=J[ie],ne=this.$screenRowCache[ie];var le=b>J[ae-1]}else le=!ae;for(var Oe=this.getNextFoldLine($),Le=Oe?Oe.start.row:1/0;$=Le){if((te=Oe.end.row+1)>b)break;Le=(Oe=this.getNextFoldLine(te,Oe))?Oe.start.row:1/0}else te=$+1;ne+=this.getRowLength($),$=te,le&&(this.$docRowCache.push($),this.$screenRowCache.push(ne))}var Ye="";Oe&&$>=Le?(Ye=this.getFoldDisplayLine(Oe,b,L),Y=Oe.start.row):(Ye=this.getLine(b).substring(0,L),Y=b);var Je=0;if(this.$useWrapMode){var gt=this.$wrapData[Y];if(gt){for(var Ue=0;Ye.length>=gt[Ue];)ne++,Ue++;Ye=Ye.substring(gt[Ue-1]||0,Ye.length),Je=Ue>0?gt.indent:0}}return this.lineWidgets&&this.lineWidgets[$]&&this.lineWidgets[$].rowsAbove&&(ne+=this.lineWidgets[$].rowsAbove),{row:ne,column:Je+this.$getStringScreenWidth(Ye)[0]}},this.documentToScreenColumn=function(b,L){return this.documentToScreenPosition(b,L).column},this.documentToScreenRow=function(b,L){return this.documentToScreenPosition(b,L).row},this.getScreenLength=function(){var b=0,L=null;if(this.$useWrapMode)for(var Y=this.$wrapData.length,Q=0,ne=0,te=(L=this.$foldData[ne++])?L.start.row:1/0;Qte&&(Q=L.end.row+1,te=(L=this.$foldData[ne++])?L.start.row:1/0)}else{b=this.getLength();var F=this.$foldData;for(ne=0;neF);Q++);return[ne,Q]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=I}.call(y.prototype),n("./edit_session/folding").Folding.call(y.prototype),n("./edit_session/bracket_match").BracketMatch.call(y.prototype),u.defineOptions(y.prototype,"session",{wrap:{set:function(E){if(E&&"off"!=E?"free"==E?E=!0:"printMargin"==E?E=-1:"string"==typeof E&&(E=parseInt(E,10)||!1):E=!1,this.$wrap!=E)if(this.$wrap=E,E){var T="number"==typeof E?E:null;this.setWrapLimitRange(T,T),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(E){(E="auto"==E?"text"!=this.$mode.type:"text"!=E)!=this.$wrapAsCode&&(this.$wrapAsCode=E,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(E){this.$useWorker=E,this.$stopWorker(),E&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(E){(E=parseInt(E))>0&&this.$tabSize!==E&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=E,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(E){this.setFoldStyle(E)},handlesSet:!0},overwrite:{set:function(E){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(E){this.doc.setNewLineMode(E)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(E){this.setMode(E)},get:function(){return this.$modeId},handlesSet:!0}}),f.EditSession=y}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,f,v){"use strict";var m=n("./lib/lang"),o=n("./lib/oop"),d=n("./range").Range,u=function(){this.$options={}};(function(){this.set=function(r){return o.mixin(this.$options,r),this},this.getOptions=function(){return m.copyObject(this.$options)},this.setOptions=function(r){this.$options=r},this.find=function(r){var s=this.$options,i=this.$matchIterator(r,s);if(!i)return!1;var c=null;return i.forEach(function(l,g,y,E){return c=new d(l,g,y,E),!(g==E&&s.start&&s.start.start&&0!=s.skipCurrent&&c.isEqual(s.start)&&(c=null,1))}),c},this.findAll=function(r){var s=this.$options;if(!s.needle)return[];this.$assembleRegExp(s);var i=s.range,c=i?r.getLines(i.start.row,i.end.row):r.doc.getAllLines(),l=[],g=s.re;if(s.$isMultiLine){var T,y=g.length,E=c.length-y;e:for(var D=g.offset||0;D<=E;D++){for(var O=0;OS||(l.push(T=new d(D,S,D+y-1,M)),y>2&&(D=D+y-2))}}else for(var I=0;Ine&&l[O].end.row==i.end.row;)O--;for(l=l.slice(I,O+1),I=0,O=l.length;I=E;S--)if(w(S,Number.MAX_VALUE,A))return;if(0!=s.wrap)for(S=T,E=y.row;S>=E;S--)if(w(S,Number.MAX_VALUE,A))return}};else D=function(S){var M=y.row;if(!w(M,y.column,S)){for(M+=1;M<=T;M++)if(w(M,0,S))return;if(0!=s.wrap)for(M=E,T=y.row;M<=T;M++)if(w(M,0,S))return}};if(s.$isMultiLine)var O=i.length,w=function(A,S,M){var I=c?A-O+1:A;if(!(I<0||I+O>r.getLength())){var b=r.getLine(I),L=b.search(i[0]);if(!(!c&&LS)&&M(I,L,I+O-1,ne))return!0}}};else w=c?function(S,M,I){var F,b=r.getLine(S),L=[],ne=0;for(i.lastIndex=0;F=i.exec(b);){if(ne=F.index,!(Y=F[0].length)){if(ne>=b.length)break;i.lastIndex=ne+=1}if(F.index+Y>M)break;L.push(F.index,Y)}for(var Q=L.length-1;Q>=0;Q-=2){var Y,te=L[Q-1];if(I(S,te,S,te+(Y=L[Q])))return!0}}:function(S,M,I){var L,F,b=r.getLine(S);for(i.lastIndex=M;F=i.exec(b);){var ne=F[0].length;if(I(S,L=F.index,S,L+ne))return!0;if(!ne&&(i.lastIndex=L+=1,L>=b.length))return!1}};return{forEach:D}}}).call(u.prototype),f.Search=u}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("../lib/keys"),o=n("../lib/useragent"),d=m.KEY_MODS;function u(r,s){this.platform=s||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(r),this.$singleCommand=!0}function h(r,s){u.call(this,r,s),this.$singleCommand=!1}h.prototype=u.prototype,function(){function r(s){return"object"==typeof s&&s.bindKey&&s.bindKey.position||(s.isDefault?-100:0)}this.addCommand=function(s){this.commands[s.name]&&this.removeCommand(s),this.commands[s.name]=s,s.bindKey&&this._buildKeyHash(s)},this.removeCommand=function(s,i){var c=s&&("string"==typeof s?s:s.name);s=this.commands[c],i||delete this.commands[c];var l=this.commandKeyBinding;for(var g in l){var y=l[g];if(y==s)delete l[g];else if(Array.isArray(y)){var E=y.indexOf(s);-1!=E&&(y.splice(E,1),1==y.length&&(l[g]=y[0]))}}},this.bindKey=function(s,i,c){if("object"==typeof s&&s&&(null==c&&(c=s.position),s=s[this.platform]),s){if("function"==typeof i)return this.addCommand({exec:i,bindKey:s,name:i.name||s});s.split("|").forEach(function(l){var g="";if(-1!=l.indexOf(" ")){var y=l.split(/\s+/);l=y.pop(),y.forEach(function(D){var O=this.parseKeys(D);this._addCommandToBinding(g+=(g?" ":"")+(d[O.hashId]+O.key),"chainKeys")},this),g+=" "}var E=this.parseKeys(l);this._addCommandToBinding(g+(d[E.hashId]+E.key),i,c)},this)}},this._addCommandToBinding=function(s,i,c){var g,l=this.commandKeyBinding;if(i)if(!l[s]||this.$singleCommand)l[s]=i;else{Array.isArray(l[s])?-1!=(g=l[s].indexOf(i))&&l[s].splice(g,1):l[s]=[l[s]],"number"!=typeof c&&(c=r(i));var y=l[s];for(g=0;gc);g++);y.splice(g,0,i)}else delete l[s]},this.addCommands=function(s){s&&Object.keys(s).forEach(function(i){var c=s[i];if(c){if("string"==typeof c)return this.bindKey(c,i);"function"==typeof c&&(c={exec:c}),"object"==typeof c&&(c.name||(c.name=i),this.addCommand(c))}},this)},this.removeCommands=function(s){Object.keys(s).forEach(function(i){this.removeCommand(s[i])},this)},this.bindKeys=function(s){Object.keys(s).forEach(function(i){this.bindKey(i,s[i])},this)},this._buildKeyHash=function(s){this.bindKey(s.bindKey,s)},this.parseKeys=function(s){var i=s.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(T){return T}),c=i.pop(),l=m[c];if(m.FUNCTION_KEYS[l])c=m.FUNCTION_KEYS[l].toLowerCase();else{if(!i.length)return{key:c,hashId:-1};if(1==i.length&&"shift"==i[0])return{key:c.toUpperCase(),hashId:-1}}for(var g=0,y=i.length;y--;){var E=m.KEY_MODS[i[y]];if(null==E)return"undefined"!=typeof console&&console.error("invalid modifier "+i[y]+" in "+s),!1;g|=E}return{key:c,hashId:g}},this.findKeyCommand=function(i,c){return this.commandKeyBinding[d[i]+c]},this.handleKeyboard=function(s,i,c,l){if(!(l<0)){var g=d[i]+c,y=this.commandKeyBinding[g];return s.$keyChain&&(s.$keyChain+=" "+g,y=this.commandKeyBinding[s.$keyChain]||y),!y||"chainKeys"!=y&&"chainKeys"!=y[y.length-1]?(s.$keyChain&&(i&&4!=i||1!=c.length?(-1==i||l>0)&&(s.$keyChain=""):s.$keyChain=s.$keyChain.slice(0,-g.length-1)),{command:y}):(s.$keyChain=s.$keyChain||g,{command:"null"})}},this.getStatusText=function(s,i){return i.$keyChain||""}}.call(u.prototype),f.HashHandler=u,f.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,f,v){"use strict";var m=n("../lib/oop"),o=n("../keyboard/hash_handler").MultiHashHandler,d=n("../lib/event_emitter").EventEmitter,u=function(h,r){o.call(this,r,h),this.byName=this.commands,this.setDefaultHandler("exec",function(s){return s.command.exec(s.editor,s.args||{})})};m.inherits(u,o),function(){m.implement(this,d),this.exec=function(h,r,s){if(Array.isArray(h)){for(var i=h.length;i--;)if(this.exec(h[i],r,s))return!0;return!1}if("string"==typeof h&&(h=this.commands[h]),!h||r&&r.$readOnly&&!h.readOnly||0!=this.$checkCommandState&&h.isAvailable&&!h.isAvailable(r))return!1;var c={editor:r,command:h,args:s};return c.returnValue=this._emit("exec",c),this._signal("afterExec",c),!1!==c.returnValue},this.toggleRecording=function(h){if(!this.$inReplay)return h&&h._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(r){this.macro.push([r.command,r.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(h){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(h);try{this.$inReplay=!0,this.macro.forEach(function(r){"string"==typeof r?this.exec(r,h):this.exec(r[0],h,r[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(h){return h.map(function(r){return"string"!=typeof r[0]&&(r[0]=r[0].name),r[1]||(r=r[0]),r})}}.call(u.prototype),f.CommandManager=u}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,f,v){"use strict";var m=n("../lib/lang"),o=n("../config"),d=n("../range").Range;function u(r,s){return{win:r,mac:s}}f.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:u("Ctrl-,","Command-,"),exec:function(r){o.loadModule("ace/ext/settings_menu",function(s){s.init(r),r.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:u("Alt-E","F4"),exec:function(r){o.loadModule("./ext/error_marker",function(s){s.showErrorMarker(r,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:u("Alt-Shift-E","Shift-F4"),exec:function(r){o.loadModule("./ext/error_marker",function(s){s.showErrorMarker(r,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:u("Ctrl-A","Command-A"),exec:function(r){r.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:u(null,"Ctrl-L"),exec:function(r){r.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:u("Ctrl-L","Command-L"),exec:function(r,s){"number"==typeof s&&!isNaN(s)&&r.gotoLine(s),r.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:u("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(r){r.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:u("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(r){r.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:u("F2","F2"),exec:function(r){r.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:u("Alt-F2","Alt-F2"),exec:function(r){r.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:u("Alt-0","Command-Option-0"),exec:function(r){r.session.foldAll(),r.session.unfold(r.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:u("Alt-Shift-0","Command-Option-Shift-0"),exec:function(r){r.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:u("Ctrl-K","Command-G"),exec:function(r){r.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:u("Ctrl-Shift-K","Command-Shift-G"),exec:function(r){r.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:u("Alt-K","Ctrl-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:u("Alt-Shift-K","Ctrl-Shift-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:u("Ctrl-F","Command-F"),exec:function(r){o.loadModule("ace/ext/searchbox",function(s){s.Search(r)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(r){r.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:u("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(r){r.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:u("Ctrl-Home","Command-Home|Command-Up"),exec:function(r){r.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:u("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(r){r.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:u("Up","Up|Ctrl-P"),exec:function(r,s){r.navigateUp(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:u("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(r){r.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:u("Ctrl-End","Command-End|Command-Down"),exec:function(r){r.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:u("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(r){r.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:u("Down","Down|Ctrl-N"),exec:function(r,s){r.navigateDown(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:u("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(r){r.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:u("Ctrl-Left","Option-Left"),exec:function(r){r.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:u("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:u("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(r){r.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:u("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(r){r.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:u("Left","Left|Ctrl-B"),exec:function(r,s){r.navigateLeft(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:u("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(r){r.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:u("Ctrl-Right","Option-Right"),exec:function(r){r.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:u("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:u("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(r){r.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:u("Shift-Right","Shift-Right"),exec:function(r){r.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:u("Right","Right|Ctrl-F"),exec:function(r,s){r.navigateRight(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(r){r.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:u(null,"Option-PageDown"),exec:function(r){r.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:u("PageDown","PageDown|Ctrl-V"),exec:function(r){r.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(r){r.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:u(null,"Option-PageUp"),exec:function(r){r.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(r){r.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:u("Ctrl-Up",null),exec:function(r){r.renderer.scrollBy(0,-2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:u("Ctrl-Down",null),exec:function(r){r.renderer.scrollBy(0,2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:u("Ctrl-Alt-E","Command-Option-E"),exec:function(r){r.commands.toggleRecording(r)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:u("Ctrl-Shift-E","Command-Shift-E"),exec:function(r){r.commands.replay(r)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:u("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(r){r.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:u("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(r){r.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:u("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(r){r.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:u(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(r){},readOnly:!0},{name:"cut",description:"Cut",exec:function(r){var i=r.$copyWithEmptySelection&&r.selection.isEmpty()?r.selection.getLineRange():r.selection.getRange();r._emit("cut",i),i.isEmpty()||r.session.remove(i),r.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(r,s){r.$handlePaste(s)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:u("Ctrl-D","Command-D"),exec:function(r){r.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:u("Ctrl-Shift-D","Command-Shift-D"),exec:function(r){r.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:u("Ctrl-Alt-S","Command-Alt-S"),exec:function(r){r.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:u("Ctrl-/","Command-/"),exec:function(r){r.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:u("Ctrl-Shift-/","Command-Shift-/"),exec:function(r){r.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:u("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(r){r.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:u("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(r){r.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:u("Ctrl-H","Command-Option-F"),exec:function(r){o.loadModule("ace/ext/searchbox",function(s){s.Search(r,!0)})}},{name:"undo",description:"Undo",bindKey:u("Ctrl-Z","Command-Z"),exec:function(r){r.undo()}},{name:"redo",description:"Redo",bindKey:u("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(r){r.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:u("Alt-Shift-Up","Command-Option-Up"),exec:function(r){r.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:u("Alt-Up","Option-Up"),exec:function(r){r.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:u("Alt-Shift-Down","Command-Option-Down"),exec:function(r){r.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:u("Alt-Down","Option-Down"),exec:function(r){r.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:u("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(r){r.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:u("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(r){r.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:u("Shift-Delete",null),exec:function(r){if(!r.selection.isEmpty())return!1;r.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:u("Alt-Backspace","Command-Backspace"),exec:function(r){r.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:u("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(r){r.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:u("Ctrl-Shift-Backspace",null),exec:function(r){var s=r.selection.getRange();s.start.column=0,r.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:u("Ctrl-Shift-Delete",null),exec:function(r){var s=r.selection.getRange();s.end.column=Number.MAX_VALUE,r.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:u("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(r){r.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:u("Ctrl-Delete","Alt-Delete"),exec:function(r){r.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:u("Shift-Tab","Shift-Tab"),exec:function(r){r.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:u("Tab","Tab"),exec:function(r){r.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:u("Ctrl-[","Ctrl-["),exec:function(r){r.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:u("Ctrl-]","Ctrl-]"),exec:function(r){r.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(r,s){r.insert(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(r,s){r.insert(m.stringRepeat(s.text||"",s.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:u(null,"Ctrl-O"),exec:function(r){r.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:u("Alt-Shift-X","Ctrl-T"),exec:function(r){r.transposeLetters()},multiSelectAction:function(r){r.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:u("Ctrl-U","Ctrl-U"),exec:function(r){r.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:u("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(r){r.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:u(null,null),exec:function(r){r.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:u("Ctrl-Shift-L","Command-Shift-L"),exec:function(r){var s=r.selection.getRange();s.start.column=s.end.column=0,s.end.row++,r.selection.setRange(s,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:u(null,null),exec:function(r){for(var s=r.selection.isBackwards(),i=s?r.selection.getSelectionLead():r.selection.getSelectionAnchor(),c=s?r.selection.getSelectionAnchor():r.selection.getSelectionLead(),l=r.session.doc.getLine(i.row).length,y=r.session.doc.getTextRange(r.selection.getRange()).replace(/\n\s*/," ").length,E=r.session.doc.getLine(i.row),T=i.row+1;T<=c.row+1;T++){var D=m.stringTrimLeft(m.stringTrimRight(r.session.doc.getLine(T)));0!==D.length&&(D=" "+D),E+=D}c.row+10?(r.selection.moveCursorTo(i.row,i.column),r.selection.selectTo(i.row,i.column+y)):(l=r.session.doc.getLine(i.row).length>l?l+1:l,r.selection.moveCursorTo(i.row,l))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:u(null,null),exec:function(r){var s=r.session.doc.getLength()-1,i=r.session.doc.getLine(s).length,c=r.selection.rangeList.ranges,l=[];c.length<1&&(c=[r.selection.getRange()]);for(var g=0;g=F.lastRow||L.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==b&&this.renderer.animateScrolling(this.curOp.scrollTop)}var ne=this.selection.toJSON();this.curOp.selectionAfter=ne,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(ne),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(M){if(this.$mergeUndoDeltas){var I=this.prevOp,b=this.$mergeableCommands,L=I.command&&M.command.name==I.command.name;if("insertstring"==M.command.name){var F=M.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),L=L&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(I.args)),this.mergeNextCommand=!0}else L=L&&-1!==b.indexOf(M.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(L=!1),L?this.session.mergeUndoDeltas=!0:-1!==b.indexOf(M.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(M,I){if(M&&"string"==typeof M&&"ace"!=M){this.$keybindingId=M;var b=this;D.loadModule(["keybinding",M],function(L){b.$keybindingId==M&&b.keyBinding.setKeyboardHandler(L&&L.handler),I&&I()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(M),I&&I()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(M){if(this.session!=M){this.curOp&&this.endOperation(),this.curOp={};var I=this.session;if(I){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var b=this.session.getSelection();b.off("changeCursor",this.$onCursorChange),b.off("changeSelection",this.$onSelectionChange)}this.session=M,M?(this.$onDocumentChange=this.onDocumentChange.bind(this),M.on("change",this.$onDocumentChange),this.renderer.setSession(M),this.$onChangeMode=this.onChangeMode.bind(this),M.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),M.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),M.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),M.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),M.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),M.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=M.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(M)),this._signal("changeSession",{session:M,oldSession:I}),this.curOp=null,I&&I._signal("changeEditor",{oldEditor:this}),M&&M._signal("changeEditor",{editor:this}),M&&M.bgTokenizer&&M.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(M,I){return this.session.doc.setValue(M),I?1==I?this.navigateFileEnd():-1==I&&this.navigateFileStart():this.selectAll(),M},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(M){this.renderer.onResize(M)},this.setTheme=function(M,I){this.renderer.setTheme(M,I)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(M){this.renderer.setStyle(M)},this.unsetStyle=function(M){this.renderer.unsetStyle(M)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(M){this.setOption("fontSize",M)},this.$highlightBrackets=function(){if(!this.$highlightPending){var M=this;this.$highlightPending=!0,setTimeout(function(){M.$highlightPending=!1;var I=M.session;if(I&&I.bgTokenizer){I.$bracketHighlight&&(I.$bracketHighlight.markerIds.forEach(function(F){I.removeMarker(F)}),I.$bracketHighlight=null);var b=I.getMatchingBracketRanges(M.getCursorPosition());if(!b&&I.$mode.getMatching&&(b=I.$mode.getMatching(M.session)),b){var L="ace_bracket";Array.isArray(b)?1==b.length&&(L="ace_error_bracket"):b=[b],2==b.length&&(0==g.comparePoints(b[0].end,b[1].start)?b=[g.fromPoints(b[0].start,b[1].end)]:0==g.comparePoints(b[0].start,b[1].end)&&(b=[g.fromPoints(b[1].start,b[0].end)])),I.$bracketHighlight={ranges:b,markerIds:b.map(function(F){return I.addMarker(F,L,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var M=this;this.$highlightTagPending=!0,setTimeout(function(){M.$highlightTagPending=!1;var I=M.session;if(I&&I.bgTokenizer){var b=M.getCursorPosition(),L=new O(M.session,b.row,b.column),F=L.getCurrentToken();if(!F||!/\b(?:tag-open|tag-name)/.test(F.type))return I.removeMarker(I.$tagHighlight),void(I.$tagHighlight=null);if(-1===F.type.indexOf("tag-open")||(F=L.stepForward())){var ne=F.value,Y=F.value,Q=0,te=L.stepBackward();if("<"===te.value)do{te=F,(F=L.stepForward())&&(-1!==F.type.indexOf("tag-name")?ne===(Y=F.value)&&("<"===te.value?Q++:""===F.value&&Q--)}while(F&&Q>=0);else{do{if(F=te,te=L.stepBackward(),F)if(-1!==F.type.indexOf("tag-name"))ne===F.value&&("<"===te.value?Q++:""===F.value){for(var $=0,J=te;J;){if(-1!==J.type.indexOf("tag-name")&&J.value===ne){Q--;break}if("<"===J.value)break;J=L.stepBackward(),$++}for(var ie=0;ie<$;ie++)L.stepForward()}}while(te&&Q<=0);L.stepForward()}if(!F)return I.removeMarker(I.$tagHighlight),void(I.$tagHighlight=null);var ae=L.getCurrentTokenRow(),le=L.getCurrentTokenColumn(),Oe=new g(ae,le,ae,le+F.value.length),Le=I.$backMarkers[I.$tagHighlight];I.$tagHighlight&&null!=Le&&0!==Oe.compareRange(Le.range)&&(I.removeMarker(I.$tagHighlight),I.$tagHighlight=null),I.$tagHighlight||(I.$tagHighlight=I.addMarker(Oe,"ace_bracket","text"))}}},50)}},this.focus=function(){var M=this;setTimeout(function(){M.isFocused()||M.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(M){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",M))},this.onBlur=function(M){!this.$isFocused||(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",M))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(M){this.renderer.updateLines(M.start.row,M.start.row==M.end.row?M.end.row:1/0,this.session.$useWrapMode),this._signal("change",M),this.$cursorChange()},this.onTokenizerUpdate=function(M){var I=M.data;this.renderer.updateLines(I.first,I.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var I,M=this.getSession();if(this.$highlightActiveLine&&(("line"!=this.$selectionStyle||!this.selection.isMultiLine())&&(I=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(I=!1),this.renderer.$maxLines&&1===this.session.getLength()&&!(this.renderer.$minLines>1)&&(I=!1)),M.$highlightLineMarker&&!I)M.removeMarker(M.$highlightLineMarker.id),M.$highlightLineMarker=null;else if(!M.$highlightLineMarker&&I){var b=new g(I.row,I.column,I.row,1/0);b.id=M.addMarker(b,"ace_active-line","screenLine"),M.$highlightLineMarker=b}else I&&(M.$highlightLineMarker.start.row=I.row,M.$highlightLineMarker.end.row=I.row,M.$highlightLineMarker.start.column=I.column,M._signal("changeBackMarker"))},this.onSelectionChange=function(M){var I=this.session;if(I.$selectionMarker&&I.removeMarker(I.$selectionMarker),I.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var b=this.selection.getRange(),L=this.getSelectionStyle();I.$selectionMarker=I.addMarker(b,"ace_selection",L)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var M=this.session,I=this.getSelectionRange();if(!I.isEmpty()&&!I.isMultiLine()){var b=I.start.column,L=I.end.column,F=M.getLine(I.start.row),ne=F.substring(b,L);if(!(ne.length>5e3)&&/[\w\d]/.test(ne)){var Y=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:ne}),Q=F.substring(b-1,L+1);if(Y.test(Q))return Y}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(M){this.renderer.updateText(),this._emit("changeMode",M)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var M=this.getSelectedText(),I=this.session.doc.getNewLineCharacter(),b=!1;if(!M&&this.$copyWithEmptySelection){b=!0;for(var L=this.selection.getAllRanges(),F=0;FJ.search(/\S|$/)){var Q=J.substr(F.column).search(/\S|$/);b.doc.removeInLine(F.row,F.column,F.column+Q)}}this.clearSelection();var te=F.column,$=b.getState(F.row),ie=(J=b.getLine(F.row),L.checkOutdent($,J,M));if(b.insert(F,M),ne&&ne.selection&&this.selection.setSelectionRange(2==ne.selection.length?new g(F.row,te+ne.selection[0],F.row,te+ne.selection[1]):new g(F.row+ne.selection[0],ne.selection[1],F.row+ne.selection[2],ne.selection[3])),this.$enableAutoIndent){if(b.getDocument().isNewLine(M)){var ae=L.getNextLineIndent($,J.slice(0,F.column),b.getTabString());b.insert({row:F.row+1,column:0},ae)}ie&&L.autoOutdent($,b,F.row)}},this.autoIndent=function(){var b,L,M=this.session,I=M.getMode();if(this.selection.isEmpty())b=0,L=M.doc.getLength()-1;else{var F=this.getSelectionRange();b=F.start.row,L=F.end.row}for(var te,$,J,ne="",Y="",Q="",ie=M.getTabString(),ae=b;ae<=L;ae++)ae>0&&(ne=M.getState(ae-1),Y=M.getLine(ae-1),Q=I.getNextLineIndent(ne,Y,ie)),te=M.getLine(ae),Q!==($=I.$getIndent(te))&&($.length>0&&(J=new g(ae,0,ae,$.length),M.remove(J)),Q.length>0&&M.insert({row:ae,column:0},Q)),I.autoOutdent(ne,M,ae)},this.onTextInput=function(M,I){if(!I)return this.keyBinding.onTextInput(M);this.startOperation({command:{name:"insertstring"}});var b=this.applyComposition.bind(this,M,I);this.selection.rangeCount?this.forEachSelection(b):b(),this.endOperation()},this.applyComposition=function(M,I){var b;(I.extendLeft||I.extendRight)&&((b=this.selection.getRange()).start.column-=I.extendLeft,b.end.column+=I.extendRight,b.start.column<0&&(b.start.row--,b.start.column+=this.session.getLine(b.start.row).length+1),this.selection.setRange(b),!M&&!b.isEmpty()&&this.remove()),(M||!this.selection.isEmpty())&&this.insert(M,!0),(I.restoreStart||I.restoreEnd)&&((b=this.selection.getRange()).start.column-=I.restoreStart,b.end.column-=I.restoreEnd,this.selection.setRange(b))},this.onCommandKey=function(M,I,b){return this.keyBinding.onCommandKey(M,I,b)},this.setOverwrite=function(M){this.session.setOverwrite(M)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(M){this.setOption("scrollSpeed",M)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(M){this.setOption("dragDelay",M)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(M){this.setOption("selectionStyle",M)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(M){this.setOption("highlightActiveLine",M)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(M){this.setOption("highlightGutterLine",M)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(M){this.setOption("highlightSelectedWord",M)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(M){this.renderer.setAnimatedScroll(M)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(M){this.renderer.setShowInvisibles(M)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(M){this.renderer.setDisplayIndentGuides(M)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(M){this.renderer.setShowPrintMargin(M)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(M){this.renderer.setPrintMarginColumn(M)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(M){this.setOption("readOnly",M)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(M){this.setOption("behavioursEnabled",M)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(M){this.setOption("wrapBehavioursEnabled",M)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(M){this.setOption("showFoldWidgets",M)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(M){this.setOption("fadeFoldWidgets",M)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(M){this.selection.isEmpty()&&("left"==M?this.selection.selectLeft():this.selection.selectRight());var I=this.getSelectionRange();if(this.getBehavioursEnabled()){var b=this.session,L=b.getState(I.start.row),F=b.getMode().transformAction(L,"deletion",this,b,I);if(0===I.end.column){var ne=b.getTextRange(I);if("\n"==ne[ne.length-1]){var Y=b.getLine(I.end.row);/^\s+$/.test(Y)&&(I.end.column=Y.length)}}F&&(I=F)}this.session.remove(I),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var M=this.getSelectionRange();M.start.column==M.end.column&&M.start.row==M.end.row&&(M.end.column=0,M.end.row++),this.session.remove(M),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var M=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(M)},this.transposeLetters=function(){if(this.selection.isEmpty()){var M=this.getCursorPosition(),I=M.column;if(0!==I){var L,F,b=this.session.getLine(M.row);IQ.toLowerCase()?1:0});var F=new g(0,0,0,0);for(L=M.first;L<=M.last;L++){var ne=I.getLine(L);F.start.row=L,F.end.row=L,F.end.column=ne.length,I.replace(F,b[L-M.first])}},this.toggleCommentLines=function(){var M=this.session.getState(this.getCursorPosition().row),I=this.$getSelectedRows();this.session.getMode().toggleCommentLines(M,this.session,I.first,I.last)},this.toggleBlockComment=function(){var M=this.getCursorPosition(),I=this.session.getState(M.row),b=this.getSelectionRange();this.session.getMode().toggleBlockComment(I,this.session,b,M)},this.getNumberAt=function(M,I){var b=/[\-]?[0-9]+(?:\.[0-9]+)?/g;b.lastIndex=0;for(var L=this.session.getLine(M);b.lastIndex=I)return{value:F[0],start:F.index,end:F.index+F[0].length}}return null},this.modifyNumber=function(M){var I=this.selection.getCursor().row,b=this.selection.getCursor().column,L=new g(I,b-1,I,b),F=this.session.getTextRange(L);if(!isNaN(parseFloat(F))&&isFinite(F)){var ne=this.getNumberAt(I,b);if(ne){var Y=ne.value.indexOf(".")>=0?ne.start+ne.value.indexOf(".")+1:ne.end,Q=ne.start+ne.value.length-Y,te=parseFloat(ne.value);te*=Math.pow(10,Q),te+=M*=Y!==ne.end&&b=Y&&ne<=Q&&(b=Je,te.selection.clearSelection(),te.moveCursorTo(M,Y+L),te.selection.selectTo(M,Q+L)),Y=Q});for(var J,$=this.$toggleWordPairs,ie=0;ie<$.length;ie++)for(var ae=$[ie],le=0;le<=1;le++){var Oe=+!le,Le=b.match(new RegExp("^\\s?_?("+d.escapeRegExp(ae[le])+")\\s?$","i"));Le&&b.match(new RegExp("([_]|^|\\s)("+d.escapeRegExp(Le[1])+")($|\\s)","g"))&&(J=b.replace(new RegExp(d.escapeRegExp(ae[le]),"i"),function(Je){var gt=ae[Oe];return Je.toUpperCase()==Je?gt=gt.toUpperCase():Je.charAt(0).toUpperCase()==Je.charAt(0)&&(gt=gt.substr(0,0)+ae[Oe].charAt(0).toUpperCase()+gt.substr(1)),gt}),this.insert(J),J="")}},this.removeLines=function(){var M=this.$getSelectedRows();this.session.removeFullLines(M.first,M.last),this.clearSelection()},this.duplicateSelection=function(){var M=this.selection,I=this.session,b=M.getRange(),L=M.isBackwards();if(b.isEmpty()){var F=b.start.row;I.duplicateLines(F,F)}else{var ne=L?b.start:b.end,Y=I.insert(ne,I.getTextRange(b),!1);b.start=ne,b.end=Y,M.setSelectionRange(b,L)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(M,I,b){return this.session.moveText(M,I,b)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(M,I){var b,L,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var ne=F.toOrientedRange();b=this.$getSelectedRows(ne),L=this.session.$moveLines(b.first,b.last,I?0:M),I&&-1==M&&(L=0),ne.moveBy(L,0),F.fromOrientedRange(ne)}else{var Y=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var Q=0,te=0,$=Y.length,J=0;J<$;J++){var ie=J;Y[J].moveBy(Q,0);for(var ae=(b=this.$getSelectedRows(Y[J])).first,le=b.last;++J<$;){te&&Y[J].moveBy(te,0);var Oe=this.$getSelectedRows(Y[J]);if(I&&Oe.first!=le)break;if(!I&&Oe.first>le+1)break;le=Oe.last}for(J--,Q=this.session.$moveLines(ae,le,I?0:M),I&&-1==M&&(ie=J+1);ie<=J;)Y[ie].moveBy(Q,0),ie++;I||(Q=0),te+=Q}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(M){return M=(M||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(M.start.row),last:this.session.getRowFoldEnd(M.end.row)}},this.onCompositionStart=function(M){this.renderer.showComposition(M)},this.onCompositionUpdate=function(M){this.renderer.setCompositionText(M)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(M){return M>=this.getFirstVisibleRow()&&M<=this.getLastVisibleRow()},this.isRowFullyVisible=function(M){return M>=this.renderer.getFirstFullyVisibleRow()&&M<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(M,I){var b=this.renderer,L=this.renderer.layerConfig,F=M*Math.floor(L.height/L.lineHeight);!0===I?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):!1===I&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var ne=b.scrollTop;b.scrollBy(0,F*L.lineHeight),null!=I&&b.scrollCursorIntoView(null,.5),b.animateScrolling(ne)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(M){this.renderer.scrollToRow(M)},this.scrollToLine=function(M,I,b,L){this.renderer.scrollToLine(M,I,b,L)},this.centerSelection=function(){var M=this.getSelectionRange(),I={row:Math.floor(M.start.row+(M.end.row-M.start.row)/2),column:Math.floor(M.start.column+(M.end.column-M.start.column)/2)};this.renderer.alignCursor(I,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(M,I){this.selection.moveCursorTo(M,I)},this.moveCursorToPosition=function(M){this.selection.moveCursorToPosition(M)},this.jumpToMatching=function(M,I){var b=this.getCursorPosition(),L=new O(this.session,b.row,b.column),F=L.getCurrentToken(),ne=F||L.stepForward();if(ne){var Y,J,Q=!1,te={},$=b.column-ne.start,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(ne.value.match(/[{}()\[\]]/g)){for(;$=0;--ne)this.$tryReplace(b[ne],M)&&L++;return this.selection.setSelectionRange(F),L},this.$tryReplace=function(M,I){var b=this.session.getTextRange(M);return null!==(I=this.$search.replace(b,I))?(M.end=this.session.replace(M,I),M):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(M,I,b){I||(I={}),"string"==typeof M||M instanceof RegExp?I.needle=M:"object"==typeof M&&m.mixin(I,M);var L=this.selection.getRange();null==I.needle&&((M=this.session.getTextRange(L)||this.$search.$options.needle)||(L=this.session.getWordRange(L.start.row,L.start.column),M=this.session.getTextRange(L)),this.$search.set({needle:M})),this.$search.set(I),I.start||this.$search.set({start:L});var F=this.$search.find(this.session);return I.preventScroll?F:F?(this.revealRange(F,b),F):(I.backwards?L.start=L.end:L.end=L.start,void this.selection.setRange(L))},this.findNext=function(M,I){this.find({skipCurrent:!0,backwards:!1},M,I)},this.findPrevious=function(M,I){this.find(M,{skipCurrent:!0,backwards:!0},I)},this.revealRange=function(M,I){this.session.unfold(M),this.selection.setSelectionRange(M);var b=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(M.start,M.end,.5),!1!==I&&this.renderer.animateScrolling(b)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(M){M.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(M){if(M){var I,b=this,L=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var ne=this.on("changeSelection",function(){L=!0}),Y=this.renderer.on("beforeRender",function(){L&&(I=b.renderer.container.getBoundingClientRect())}),Q=this.renderer.on("afterRender",function(){if(L&&I&&(b.isFocused()||b.searchBox&&b.searchBox.isFocused())){var te=b.renderer,$=te.$cursorLayer.$pixelPos,J=te.layerConfig,ie=$.top-J.offset;null!=(L=$.top>=0&&ie+I.top<0||!($.topwindow.innerHeight)&&null)&&(F.style.top=ie+"px",F.style.left=$.left+"px",F.style.height=J.lineHeight+"px",F.scrollIntoView(L)),L=I=null}});this.setAutoScrollEditorIntoView=function(te){te||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",ne),this.renderer.off("afterRender",Q),this.renderer.off("beforeRender",Y))}}},this.$resetCursorStyle=function(){var M=this.$cursorStyle||"ace",I=this.renderer.$cursorLayer;!I||(I.setSmoothBlinking(/smooth/.test(M)),I.isBlinking=!this.$readOnly&&"wide"!=M,o.setCssClass(I.element,"ace_slim-cursors",/slim/.test(M)))},this.prompt=function(M,I,b){var L=this;D.loadModule("./ext/prompt",function(F){F.prompt(L,M,I,b)})}}.call(A.prototype),D.defineOptions(A.prototype,"editor",{selectionStyle:{set:function(M){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:M})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(M){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(M){this.textInput.setReadOnly(M),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(M){this.textInput.setCopyWithEmptySelection(M)},initialValue:!1},cursorStyle:{set:function(M){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(M){this.setAutoScrollEditorIntoView(M)}},keyboardHandler:{set:function(M){this.setKeyboardHandler(M)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(M){this.session.setValue(M)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(M){this.setSession(M)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(M){this.renderer.$gutterLayer.setShowLineNumbers(M),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),M&&this.$relativeLineNumbers?S.attach(this):S.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(M){this.$showLineNumbers&&M?S.attach(this):S.detach(this)}},placeholder:{set:function(M){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var I=this.session&&(this.renderer.$composition||this.getValue());if(I&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(I||this.renderer.placeholderNode)!I&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var b=o.createElement("div");b.className="ace_placeholder",b.textContent=this.$placeholder||"",this.renderer.placeholderNode=b,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var S={getText:function(M,I){return(Math.abs(M.selection.lead.row-I)||I+1+(I<9?"\xb7":""))+""},getWidth:function(M,I,b){return Math.max(I.toString().length,(b.lastRow+1).toString().length,2)*b.characterWidth},update:function(M,I){I.renderer.$loop.schedule(I.renderer.CHANGE_GUTTER)},attach:function(M){M.renderer.$gutterLayer.$renderer=this,M.on("changeSelection",this.update),this.update(null,M)},detach:function(M){M.renderer.$gutterLayer.$renderer==this&&(M.renderer.$gutterLayer.$renderer=null),M.off("changeSelection",this.update),this.update(null,M)}};f.Editor=A}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,f,v){"use strict";var m=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(S){this.$session=S},this.add=function(S,M,I){this.$fromUndo||S!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),(!1===M||!this.lastDeltas)&&(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),S.id=this.$rev=++this.$maxRev),("remove"==S.action||"insert"==S.action)&&(this.$lastDelta=S),this.lastDeltas.push(S))},this.addSelection=function(S,M){this.selections.push({value:S,rev:M||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(S,M){null==M&&(M=this.$rev+1);for(var I=this.$undoStack,b=I.length;b--;){var L=I[b][0];if(L.id<=S)break;L.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(S){null==S&&(S=this.$rev),this.mark=S},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(S){return S?c(S):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)}}).call(m.prototype);var d=n("./range").Range,u=d.comparePoints;function s(S){return{row:S.row,column:S.column}}function c(S){if(S=S||this,Array.isArray(S))return S.map(c).join("\n");var M="";return S.action?(M="insert"==S.action?"+":"-",M+="["+S.lines+"]"):S.value&&(M=Array.isArray(S.value)?S.value.map(l).join("\n"):l(S.value)),S.start&&(M+=l(S)),(S.id||S.rev)&&(M+="\t("+(S.id||S.rev)+")"),M}function l(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function g(S,M){var I="insert"==S.action,b="insert"==M.action;if(I&&b)if(u(M.start,S.end)>=0)T(M,S,-1);else{if(!(u(M.start,S.start)<=0))return null;T(S,M,1)}else if(I&&!b)if(u(M.start,S.end)>=0)T(M,S,-1);else{if(!(u(M.end,S.start)<=0))return null;T(S,M,-1)}else if(!I&&b)if(u(M.start,S.start)>=0)T(M,S,1);else{if(!(u(M.start,S.start)<=0))return null;T(S,M,1)}else if(!I&&!b)if(u(M.start,S.start)>=0)T(M,S,1);else{if(!(u(M.end,S.start)<=0))return null;T(S,M,-1)}return[M,S]}function y(S,M){for(var I=S.length;I--;)for(var b=0;b=0?T(S,M,-1):(u(S.start,M.start)<=0||T(S,d.fromPoints(M.start,S.start),-1),T(M,S,1));else if(!I&&b)u(M.start,S.end)>=0?T(M,S,-1):(u(M.start,S.start)<=0||T(M,d.fromPoints(S.start,M.start),-1),T(S,M,1));else if(!I&&!b)if(u(M.start,S.end)>=0)T(M,S,-1);else{var L,F;if(!(u(M.end,S.start)<=0))return u(S.start,M.start)<0&&(L=S,S=O(S,M.start)),u(S.end,M.end)>0&&(F=O(S,M.end)),D(M.end,S.start,S.end,-1),F&&!L&&(S.lines=F.lines,S.start=F.start,S.end=F.end,F=S),[M,L,F].filter(Boolean);T(S,M,-1)}return[M,S]}function T(S,M,I){D(S.start,M.start,M.end,I),D(S.end,M.start,M.end,I)}function D(S,M,I,b){S.row==(1==b?M:I).row&&(S.column+=b*(I.column-M.column)),S.row+=b*(I.row-M.row)}function O(S,M){var I=S.lines,b=S.end;S.end=s(M);var L=S.end.row-S.start.row,F=I.splice(L,I.length),ne=L?M.column:M.column-S.start.column;return I.push(F[0].substring(0,ne)),F[0]=F[0].substr(ne),{start:s(M),end:b,lines:F,action:S.action}}function w(S,M){M=function(S){return{start:s(S.start),end:s(S.end),action:S.action,lines:S.lines.slice()}}(M);for(var I=S.length;I--;){for(var b=S[I],L=0;LE&&(E=(y=c.getNextFoldLine(O=y.end.row+1,y))?y.start.row:1/0),O>g){for(;this.$lines.getLength()>D+1;)this.$lines.pop();break}(T=this.$lines.get(++D))?T.row=O:(T=this.$lines.createCell(O,i,this.session,s),this.$lines.push(T)),this.$renderCell(T,i,y,O),O++}this._signal("afterRender"),this.$updateGutterWidth(i)},this.$updateGutterWidth=function(i){var c=this.session,l=c.gutterRenderer||this.$renderer,g=c.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||c.$useWrapMode)&&(y=c.getLength()+g-1);var E=l?l.getWidth(c,y,i):y.toString().length*i.characterWidth,T=this.$padding||this.$computePadding();(E+=T.left+T.right)!==this.gutterWidth&&!isNaN(E)&&(this.gutterWidth=E,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",E))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var i=this.session.selection.getCursor();this.$cursorRow!==i.row&&(this.$cursorRow=i.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!this.$cursorCell||this.$cursorCell.row!=i){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var c=this.$lines.cells;this.$cursorCell=null;for(var l=0;l=this.$cursorRow){if(g.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(!(l>0&&y&&y.start.row==c[l-1].row))break;g=c[l-1]}g.element.className="ace_gutter-active-line "+g.element.className,this.$cursorCell=g;break}}}}},this.scrollLines=function(i){var c=this.config;if(this.config=i,this.$updateCursorRow(),this.$lines.pageChanged(c,i))return this.update(i);this.$lines.moveContainer(i);var l=Math.min(i.lastRow+i.gutterOffset,this.session.getLength()-1),g=this.oldLastRow;if(this.oldLastRow=l,!c||g0;y--)this.$lines.shift();if(g>l)for(y=this.session.getFoldedRowCount(l+1,g);y>0;y--)this.$lines.pop();i.firstRowg&&this.$lines.push(this.$renderLines(i,g+1,l)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(i)},this.$renderLines=function(i,c,l){for(var g=[],y=c,E=this.session.getNextFoldLine(y),T=E?E.start.row:1/0;y>T&&(T=(E=this.session.getNextFoldLine(y=E.end.row+1,E))?E.start.row:1/0),!(y>l);){var D=this.$lines.createCell(y,i,this.session,s);this.$renderCell(D,i,E,y),g.push(D),y++}return g},this.$renderCell=function(i,c,l,g){var y=i.element,E=this.session,T=y.childNodes[0],D=y.childNodes[1],O=E.$firstLineNumber,w=E.$breakpoints,A=E.$decorations,S=E.gutterRenderer||this.$renderer,M=this.$showFoldWidgets&&E.foldWidgets,I=l?l.start.row:Number.MAX_VALUE,b="ace_gutter-cell ";if(this.$highlightGutterLine&&(g==this.$cursorRow||l&&g=I&&this.$cursorRow<=l.end.row)&&(b+="ace_gutter-active-line ",this.$cursorCell!=i&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=i)),w[g]&&(b+=w[g]),A[g]&&(b+=A[g]),this.$annotations[g]&&(b+=this.$annotations[g].className),y.className!=b&&(y.className=b),M){var L=M[g];null==L&&(L=M[g]=E.getFoldWidget(g))}L?(b="ace_fold-widget ace_"+L,D.className!=(b+="start"==L&&g==I&&gl.right-c.right?"foldWidgets":void 0}}).call(r.prototype),f.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,f,v){"use strict";var m=n("../range").Range,o=n("../lib/dom"),d=function(u){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",u.appendChild(this.element)};(function(){function u(h,r,s,i){return(h?1:0)|(r?2:0)|(s?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(h){this.$padding=h},this.setSession=function(h){this.session=h},this.setMarkers=function(h){this.markers=h},this.elt=function(h,r){var s=-1!=this.i&&this.element.childNodes[this.i];s?this.i++:(s=document.createElement("div"),this.element.appendChild(s),this.i=-1),s.style.cssText=r,s.className=h},this.update=function(h){if(h){var r;for(var s in this.config=h,this.i=0,this.markers){var i=this.markers[s];if(i.range){var c=i.range.clipRows(h.firstRow,h.lastRow);if(!c.isEmpty())if(c=c.toScreenRange(this.session),i.renderer){var l=this.$getTop(c.start.row,h);i.renderer(r,c,this.$padding+c.start.column*h.characterWidth,l,h)}else"fullLine"==i.type?this.drawFullLineMarker(r,c,i.clazz,h):"screenLine"==i.type?this.drawScreenLineMarker(r,c,i.clazz,h):c.isMultiLine()?"text"==i.type?this.drawTextMarker(r,c,i.clazz,h):this.drawMultiLineMarker(r,c,i.clazz,h):this.drawSingleLineMarker(r,c,i.clazz+" ace_start ace_br15",h)}else i.update(r,this,this.session,h)}if(-1!=this.i)for(;this.iO,E==y),i,E==y?0:1,c)},this.drawMultiLineMarker=function(h,r,s,i,c){var T,l=this.$padding,g=i.lineHeight,y=this.$getTop(r.start.row,i),E=l+r.start.column*i.characterWidth;if(c=c||"",this.session.$bidiHandler.isBidiRow(r.start.row)?((T=r.clone()).end.row=T.start.row,T.end.column=this.session.getLine(T.start.row).length,this.drawBidiSingleLineMarker(h,T,s+" ace_br1 ace_start",i,null,c)):this.elt(s+" ace_br1 ace_start","height:"+g+"px;right:0;top:"+y+"px;left:"+E+"px;"+(c||"")),this.session.$bidiHandler.isBidiRow(r.end.row)?((T=r.clone()).start.row=T.end.row,T.start.column=0,this.drawBidiSingleLineMarker(h,T,s+" ace_br12",i,null,c)):(y=this.$getTop(r.end.row,i),this.elt(s+" ace_br12","height:"+g+"px;width:"+r.end.column*i.characterWidth+"px;top:"+y+"px;left:"+l+"px;"+(c||""))),!((g=(r.end.row-r.start.row-1)*i.lineHeight)<=0)){y=this.$getTop(r.start.row+1,i);var O=(r.start.column?1:0)|(r.end.column?0:8);this.elt(s+(O?" ace_br"+O:""),"height:"+g+"px;right:0;top:"+y+"px;left:"+l+"px;"+(c||""))}},this.drawSingleLineMarker=function(h,r,s,i,c,l){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(h,r,s,i,c,l);var g=i.lineHeight,y=(r.end.column+(c||0)-r.start.column)*i.characterWidth,E=this.$getTop(r.start.row,i);this.elt(s,"height:"+g+"px;width:"+y+"px;top:"+E+"px;left:"+(this.$padding+r.start.column*i.characterWidth)+"px;"+(l||""))},this.drawBidiSingleLineMarker=function(h,r,s,i,c,l){var g=i.lineHeight,y=this.$getTop(r.start.row,i),E=this.$padding;this.session.$bidiHandler.getSelections(r.start.column,r.end.column).forEach(function(D){this.elt(s,"height:"+g+"px;width:"+D.width+(c||0)+"px;top:"+y+"px;left:"+(E+D.left)+"px;"+(l||""))},this)},this.drawFullLineMarker=function(h,r,s,i,c){var l=this.$getTop(r.start.row,i),g=i.lineHeight;r.start.row!=r.end.row&&(g+=this.$getTop(r.end.row,i)-l),this.elt(s,"height:"+g+"px;top:"+l+"px;left:0;right:0;"+(c||""))},this.drawScreenLineMarker=function(h,r,s,i,c){var l=this.$getTop(r.start.row,i);this.elt(s,"height:"+i.lineHeight+"px;top:"+l+"px;left:0;right:0;"+(c||""))}}).call(d.prototype),f.Marker=d}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(n,f,v){"use strict";var m=n("../lib/oop"),o=n("../lib/dom"),d=n("../lib/lang"),u=n("./lines").Lines,h=n("../lib/event_emitter").EventEmitter,r=function(s){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",s.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new u(this.element)};(function(){m.implement(this,h),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var s=this.session.doc,c="\n"==s.getNewLineCharacter()&&"windows"!=s.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=c)return this.EOL_CHAR=c,!0},this.setPadding=function(s){this.$padding=s,this.element.style.margin="0 "+s+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(s){this.$fontMetrics=s,this.$fontMetrics.on("changeCharacterSize",function(i){this._signal("changeCharacterSize",i)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(s){this.session=s,s&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(s){return this.showInvisibles!=s&&(this.showInvisibles=s,"string"==typeof s?(this.showSpaces=/tab/i.test(s),this.showTabs=/space/i.test(s),this.showEOL=/eol/i.test(s)):this.showSpaces=this.showTabs=this.showEOL=s,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(s){return this.displayIndentGuides!=s&&(this.displayIndentGuides=s,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var s=this.session.getTabSize();this.tabSize=s;for(var i=this.$tabStrings=[0],c=1;cw&&(w=(O=this.session.getNextFoldLine(D=O.end.row+1,O))?O.start.row:1/0),!(D>g);){var A=y[E++];if(A){this.dom.removeChildren(A),this.$renderLine(A,D,D==w&&O),T&&(A.style.top=this.$lines.computeLineTop(D,s,this.session)+"px");var S=s.lineHeight*this.session.getRowLength(D)+"px";A.style.height!=S&&(T=!0,A.style.height=S)}D++}if(T)for(;E0;g--)this.$lines.shift();if(i.lastRow>s.lastRow)for(g=this.session.getFoldedRowCount(s.lastRow+1,i.lastRow);g>0;g--)this.$lines.pop();s.firstRowi.lastRow&&this.$lines.push(this.$renderLinesFragment(s,i.lastRow+1,s.lastRow))},this.$renderLinesFragment=function(s,i,c){for(var l=[],g=i,y=this.session.getNextFoldLine(g),E=y?y.start.row:1/0;g>E&&(E=(y=this.session.getNextFoldLine(g=y.end.row+1,y))?y.start.row:1/0),!(g>c);){var T=this.$lines.createCell(g,s,this.session),D=T.element;this.dom.removeChildren(D),o.setStyle(D.style,"height",this.$lines.computeLineHeight(g,s,this.session)+"px"),o.setStyle(D.style,"top",this.$lines.computeLineTop(g,s,this.session)+"px"),this.$renderLine(D,g,g==E&&y),D.className=this.$useLineGroups()?"ace_line_group":"ace_line",l.push(T),g++}return l},this.update=function(s){this.$lines.moveContainer(s),this.config=s;for(var i=s.firstRow,c=s.lastRow,l=this.$lines;l.getLength();)l.pop();l.push(this.$renderLinesFragment(s,i,c))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(s,i,c,l){for(var T,g=this,y=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,E=this.dom.createFragment(this.element),D=0;T=y.exec(l);){var O=T[1],w=T[2],A=T[3],S=T[4],M=T[5];if(g.showSpaces||!w){var I=D!=T.index?l.slice(D,T.index):"";if(D=T.index+T[0].length,I&&E.appendChild(this.dom.createTextNode(I,this.element)),O){var b=g.session.getScreenTabSize(i+T.index);E.appendChild(g.$tabStrings[b].cloneNode(!0)),i+=b-1}else w?g.showSpaces?((L=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",L.textContent=d.stringRepeat(g.SPACE_CHAR,w.length),E.appendChild(L)):E.appendChild(this.com.createTextNode(w,this.element)):A?((L=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",L.textContent=d.stringRepeat(g.SPACE_CHAR,A.length),E.appendChild(L)):S?(i+=1,(L=this.dom.createElement("span")).style.width=2*g.config.characterWidth+"px",L.className=g.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",L.textContent=g.showSpaces?g.SPACE_CHAR:S,E.appendChild(L)):M&&(i+=1,(L=this.dom.createElement("span")).style.width=2*g.config.characterWidth+"px",L.className="ace_cjk",L.textContent=M,E.appendChild(L))}}if(E.appendChild(this.dom.createTextNode(D?l.slice(D):l,this.element)),this.$textToken[c.type])s.appendChild(E);else{var F="ace_"+c.type.replace(/\./g," ace_"),L=this.dom.createElement("span");"fold"==c.type&&(L.style.width=c.value.length*this.config.characterWidth+"px"),L.className=F,L.appendChild(E),s.appendChild(L)}return i+l.length},this.renderIndentGuide=function(s,i,c){var l=i.search(this.$indentGuideRe);if(l<=0||l>=c)return i;if(" "==i[0]){for(var g=(l-=l%this.tabSize)/this.tabSize,y=0;y=y;)E=this.$renderToken(T,E,O,w.substring(0,y-l)),w=w.substring(y-l),l=y,T=this.$createLineElement(),s.appendChild(T),T.appendChild(this.dom.createTextNode(d.stringRepeat("\xa0",c.indent),this.element)),E=0,y=c[++g]||Number.MAX_VALUE;0!=w.length&&(l+=w.length,E=this.$renderToken(T,E,O,w))}}c[c.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(T,E,null,"",!0)},this.$renderSimpleLine=function(s,i){var c=0,l=i[0],g=l.value;this.displayIndentGuides&&(g=this.renderIndentGuide(s,g)),g&&(c=this.$renderToken(s,c,l,g));for(var y=1;ythis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(s,c,l,g);c=this.$renderToken(s,c,l,g)}},this.$renderOverflowMessage=function(s,i,c,l,g){c&&this.$renderToken(s,i,c,l.slice(0,this.MAX_LINE_LENGTH-i));var y=this.dom.createElement("span");y.className="ace_inline_button ace_keyword ace_toggle_wrap",y.textContent=g?"":"",s.appendChild(y)},this.$renderLine=function(s,i,c){if(!c&&0!=c&&(c=this.session.getFoldLine(i)),c)var l=this.$getFoldLineTokens(i,c);else l=this.session.getTokens(i);var g=s;if(l.length){var y=this.session.getRowSplitData(i);y&&y.length?(this.$renderWrappedLine(s,l,y),g=s.lastChild):(g=s,this.$useLineGroups()&&(g=this.$createLineElement(),s.appendChild(g)),this.$renderSimpleLine(g,l))}else this.$useLineGroups()&&(g=this.$createLineElement(),s.appendChild(g));if(this.showEOL&&g){c&&(i=c.end.row);var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_eol",E.textContent=i==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,g.appendChild(E)}},this.$getFoldLineTokens=function(s,i){var c=this.session,l=[],y=c.getTokens(s);return i.walk(function(E,T,D,O,w){null!=E?l.push({type:"fold",value:E}):(w&&(y=c.getTokens(T)),y.length&&function(E,T,D){for(var O=0,w=0;w+E[O].value.lengthD-T&&(A=A.substring(0,D-T)),l.push({type:E[O].type,value:A}),w=T+A.length,O+=1);wD?{type:E[O].type,value:A.substring(0,D-w)}:E[O]),w+=A.length,O+=1}}(y,O,D))},i.end.row,this.session.getLine(i.end.row).length),l},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(r.prototype),f.Text=r}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,f,v){"use strict";var m=n("../lib/dom"),o=function(d){this.element=m.createElement("div"),this.element.className="ace_layer ace_cursor-layer",d.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),m.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(d){for(var u=this.cursors,h=u.length;h--;)m.setStyle(u[h].style,"opacity",d?"":"0")},this.$startCssAnimation=function(){for(var d=this.cursors,u=d.length;u--;)d[u].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&m.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,m.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(d){this.$padding=d},this.setSession=function(d){this.session=d},this.setBlinking=function(d){d!=this.isBlinking&&(this.isBlinking=d,this.restartTimer())},this.setBlinkInterval=function(d){d!=this.blinkInterval&&(this.blinkInterval=d,this.restartTimer())},this.setSmoothBlinking=function(d){d!=this.smoothBlinking&&(this.smoothBlinking=d,m.setCssClass(this.element,"ace_smooth-blinking",d),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var d=m.createElement("div");return d.className="ace_cursor",this.element.appendChild(d),this.cursors.push(d),d},this.removeCursor=function(){if(this.cursors.length>1){var d=this.cursors.pop();return d.parentNode.removeChild(d),d}},this.hideCursor=function(){this.isVisible=!1,m.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,m.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var d=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,m.removeCssClass(this.element,"ace_smooth-blinking")),d(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&m.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),m.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var u=function(){this.timeoutId=setTimeout(function(){d(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){d(!0),u()},this.blinkInterval),u()}else this.$stopCssAnimation()},this.getPixelPosition=function(d,u){if(!this.config||!this.session)return{left:0,top:0};d||(d=this.session.selection.getCursor());var h=this.session.documentToScreenPosition(d);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(h.row,d.row)?this.session.$bidiHandler.getPosLeft(h.column):h.column*this.config.characterWidth),top:(h.row-(u?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(d,u){return d.top>=0&&d.topd.height+d.offset||i.top<0)&&h>1)){var c=this.cursors[r++]||this.addCursor(),l=c.style;this.drawCursor?this.drawCursor(c,i,d,u[h],this.session):this.isCursorInView(i,d)?(m.setStyle(l,"display","block"),m.translate(c,i.left,i.top),m.setStyle(l,"width",Math.round(d.characterWidth)+"px"),m.setStyle(l,"height",d.lineHeight+"px")):m.setStyle(l,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=i,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(d){d!=this.overwrite&&(this.overwrite=d,d?m.addCssClass(this.element,"ace_overwrite-cursors"):m.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),f.Cursor=o}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,f,v){"use strict";var m=n("./lib/oop"),o=n("./lib/dom"),d=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter,h=32768,r=function(c){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),c.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addListener(this.element,"scroll",this.onScroll.bind(this)),d.addListener(this.element,"mousedown",d.preventDefault)};(function(){m.implement(this,u),this.setVisible=function(c){this.element.style.display=c?"":"none",this.isVisible=c,this.coeff=1}}).call(r.prototype);var s=function(c,l){r.call(this,c),this.scrollTop=0,this.scrollHeight=0,l.$scrollbarWidth=this.width=o.scrollbarWidth(c.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};m.inherits(s,r),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var c=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-c)/(this.coeff-c)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(c){this.element.style.height=c+"px"},this.setInnerHeight=this.setScrollHeight=function(c){this.scrollHeight=c,c>h?(this.coeff=h/c,c=h):1!=this.coeff&&(this.coeff=1),this.inner.style.height=c+"px"},this.setScrollTop=function(c){this.scrollTop!=c&&(this.skipEvent=!0,this.scrollTop=c,this.element.scrollTop=c*this.coeff)}}.call(s.prototype);var i=function(c,l){r.call(this,c),this.scrollLeft=0,this.height=l.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};m.inherits(i,r),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(c){this.element.style.width=c+"px"},this.setInnerWidth=function(c){this.inner.style.width=c+"px"},this.setScrollWidth=function(c){this.inner.style.width=c+"px"},this.setScrollLeft=function(c){this.scrollLeft!=c&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=c)}}.call(i.prototype),f.ScrollBar=s,f.ScrollBarV=s,f.ScrollBarH=i,f.VScrollBar=s,f.HScrollBar=i}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,f,v){"use strict";var m=n("./lib/event"),o=function(d,u){this.onRender=d,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=u||window;var h=this;this._flush=function(r){h.pending=!1;var s=h.changes;if(s&&(m.blockIdle(100),h.changes=0,h.onRender(s)),h.changes){if(h.$recursionLimit--<0)return;h.schedule()}else h.$recursionLimit=2}};(function(){this.schedule=function(d){this.changes=this.changes|d,this.changes&&!this.pending&&(m.nextFrame(this._flush),this.pending=!0)},this.clear=function(d){var u=this.changes;return this.changes=0,u}}).call(o.prototype),f.RenderLoop=o}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,f,v){var m=n("../lib/oop"),o=n("../lib/dom"),d=n("../lib/lang"),u=n("../lib/event"),h=n("../lib/useragent"),r=n("../lib/event_emitter").EventEmitter,s=256,i="function"==typeof ResizeObserver,c=200,l=f.FontMetrics=function(g){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=d.stringRepeat("X",s),this.$characterSize={width:0,height:0},i?this.$addObserver():this.checkForSizeChanges()};(function(){m.implement(this,r),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(g,y){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",h.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=y?"hidden":"visible"},this.checkForSizeChanges=function(g){if(void 0===g&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var y=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=y&&y.width===g.width&&y.height===g.height,this._emit("changeCharacterSize",{data:g})}},this.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(y){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=u.onIdle(function y(){g.checkForSizeChanges(),u.onIdle(y,500)},500)},this.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(g){var y={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/s};return 0===y.width||0===y.height?null:y},this.$measureCharWidth=function(g){return this.$main.textContent=d.stringRepeat(g,s),this.$main.getBoundingClientRect().width/s},this.getCharacterWidth=function(g){var y=this.charSizes[g];return void 0===y&&(y=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),y},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function g(y){return y&&y.parentElement?(window.getComputedStyle(y).zoom||1)*g(y.parentElement):1},this.$initTransformMeasureNodes=function(){var g=function(y,E){return["div",{style:"position: absolute;top:"+y+"px;left:"+E+"px;"}]};this.els=o.buildDom([g(0,0),g(c,0),g(0,c),g(c,c)],this.el)},this.transformCoordinates=function(g,y){function T(ie,ae,le){var Oe=ie[1]*ae[0]-ie[0]*ae[1];return[(-ae[1]*le[0]+ae[0]*le[1])/Oe,(+ie[1]*le[0]-ie[0]*le[1])/Oe]}function D(ie,ae){return[ie[0]-ae[0],ie[1]-ae[1]]}function O(ie,ae){return[ie[0]+ae[0],ie[1]+ae[1]]}function w(ie,ae){return[ie*ae[0],ie*ae[1]]}function A(ie){var ae=ie.getBoundingClientRect();return[ae.left,ae.top]}g&&(g=w(1/this.$getZoom(this.el),g)),this.els||this.$initTransformMeasureNodes();var S=A(this.els[0]),M=A(this.els[1]),I=A(this.els[2]),b=A(this.els[3]),L=T(D(b,M),D(b,I),D(O(M,I),O(b,S))),F=w(1+L[0],D(M,S)),ne=w(1+L[1],D(I,S));if(y){var Y=y,Q=L[0]*Y[0]/c+L[1]*Y[1]/c+1,te=O(w(Y[0],F),w(Y[1],ne));return O(w(1/Q/c,te),S)}var $=D(g,S),J=T(D(F,w(L[0],$)),D(ne,w(L[1],$)),$);return w(c,J)}}).call(l.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("./lib/oop"),o=n("./lib/dom"),d=n("./config"),u=n("./layer/gutter").Gutter,h=n("./layer/marker").Marker,r=n("./layer/text").Text,s=n("./layer/cursor").Cursor,i=n("./scrollbar").HScrollBar,c=n("./scrollbar").VScrollBar,l=n("./renderloop").RenderLoop,g=n("./layer/font_metrics").FontMetrics,y=n("./lib/event_emitter").EventEmitter,E='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',T=n("./lib/useragent"),D=T.isIE;o.importCssString(E,"ace_editor.css",!1);var O=function(w,A){var S=this;this.container=w||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(A),null==d.get("useStrictCSP")&&d.set("useStrictCSP",!1),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new u(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new h(this.content);var M=this.$textLayer=new r(this.content);this.canvas=M.element,this.$markerFront=new h(this.content),this.$cursorLayer=new s(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new i(this.container,this),this.scrollBarV.on("scroll",function(I){S.$scrollAnimation||S.session.setScrollTop(I.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function(I){S.$scrollAnimation||S.session.setScrollLeft(I.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(I){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",I)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!T.isIOS,this.$loop=new l(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),d.resetOptions(this),d._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,m.implement(this,y),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(w){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=w,w&&this.scrollMargin.top&&w.getScrollTop()<=0&&w.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(w),this.$markerBack.setSession(w),this.$markerFront.setSession(w),this.$gutterLayer.setSession(w),this.$textLayer.setSession(w),w&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(w,A,S){if(void 0===A&&(A=1/0),this.$changedLines?(this.$changedLines.firstRow>w&&(this.$changedLines.firstRow=w),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(w){w?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(w,A,S,M){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=w?1:0;var I=this.container;M||(M=I.clientHeight||I.scrollHeight),S||(S=I.clientWidth||I.scrollWidth);var b=this.$updateCachedSize(w,A,S,M);if(!this.$size.scrollerHeight||!S&&!M)return this.resizing=0;w&&(this.$gutterLayer.$padding=null),w?this.$renderChanges(b|this.$changes,!0):this.$loop.schedule(b|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(w,A,S,M){var I=0,b=this.$size,L={width:b.width,height:b.height,scrollerHeight:b.scrollerHeight,scrollerWidth:b.scrollerWidth};if((M-=this.$extraHeight||0)&&(w||b.height!=M)&&(b.height=M,I|=this.CHANGE_SIZE,b.scrollerHeight=b.height,this.$horizScroll&&(b.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",I|=this.CHANGE_SCROLL),S&&(w||b.width!=S)){I|=this.CHANGE_SIZE,b.width=S,null==A&&(A=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=A,o.setStyle(this.scrollBarH.element.style,"left",A+"px"),o.setStyle(this.scroller.style,"left",A+this.margin.left+"px"),b.scrollerWidth=Math.max(0,S-A-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",F),o.setStyle(this.scroller.style,"right",F),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||w)&&(I|=this.CHANGE_FULL)}return b.$dirty=!S||!M,I&&this._signal("resize",L),I},this.onGutterResize=function(w){var A=this.$showGutter?w:0;A!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,A,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var A=Math.floor((this.$size.scrollerWidth-2*this.$padding)/this.characterWidth);return this.session.adjustWrapLimit(A,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(w){this.setOption("animatedScroll",w)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(w){this.setOption("showInvisibles",w),this.session.$bidiHandler.setShowInvisibles(w)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(w){this.setOption("displayIndentGuides",w)},this.setShowPrintMargin=function(w){this.setOption("showPrintMargin",w)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(w){this.setOption("printMarginColumn",w)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(w){return this.setOption("showGutter",w)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},this.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var w=o.createElement("div");w.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",w.appendChild(this.$printMarginEl),this.content.insertBefore(w,this.content.firstChild)}var A=this.$printMarginEl.style;A.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",A.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var w=this.textarea.style,A=this.$composition;if(!this.$keepTextAreaAtCursor&&!A)return void o.translate(this.textarea,-100,0);var S=this.$cursorLayer.$pixelPos;if(S){A&&A.markerRange&&(S=this.$cursorLayer.getPixelPosition(A.markerRange.start,!0));var M=this.layerConfig,I=S.top,b=S.left,L=A&&A.useTextareaForIME?this.lineHeight:D?0:1;if((I-=M.offset)<0||I>M.height-L)return void o.translate(this.textarea,0,0);var F=1,ne=this.$size.height-L;A?A.useTextareaForIME?F=this.characterWidth*this.session.$getStringScreenWidth(this.textarea.value)[0]:I+=this.lineHeight+2:I+=this.lineHeight,(b-=this.scrollLeft)>this.$size.scrollerWidth-F&&(b=this.$size.scrollerWidth-F),b+=this.gutterWidth+this.margin.left,o.setStyle(w,"height",L+"px"),o.setStyle(w,"width",F+"px"),o.translate(this.textarea,Math.min(b,this.$size.scrollerWidth-F),Math.min(I,ne))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var w=this.layerConfig,A=w.lastRow;return this.session.documentToScreenRow(A,0)*w.lineHeight-this.session.getScrollTop()>w.height-w.lineHeight?A-1:A},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(w){this.$padding=w,this.$textLayer.setPadding(w),this.$cursorLayer.setPadding(w),this.$markerFront.setPadding(w),this.$markerBack.setPadding(w),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(w,A,S,M){var I=this.scrollMargin;I.top=0|w,I.bottom=0|A,I.right=0|M,I.left=0|S,I.v=I.top+I.bottom,I.h=I.left+I.right,I.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-I.top),this.updateFull()},this.setMargin=function(w,A,S,M){var I=this.margin;I.top=0|w,I.bottom=0|A,I.right=0|M,I.left=0|S,I.v=I.top+I.bottom,I.h=I.left+I.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(w){this.setOption("hScrollBarAlwaysVisible",w)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(w){this.setOption("vScrollBarAlwaysVisible",w)},this.$updateScrollBarV=function(){var w=this.layerConfig.maxHeight,A=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&this.scrollTop>(w-=(A-this.lineHeight)*this.$scrollPastEnd)-A&&(w=this.scrollTop+A,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(w+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(w,A){if(this.$changes&&(w|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(w||A)){if(this.$size.$dirty)return this.$changes|=w,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",w),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var S=this.layerConfig;if(w&this.CHANGE_FULL||w&this.CHANGE_SIZE||w&this.CHANGE_TEXT||w&this.CHANGE_LINES||w&this.CHANGE_SCROLL||w&this.CHANGE_H_SCROLL){if(w|=this.$computeLayerConfig()|this.$loop.clear(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var M=this.scrollTop+(S.firstRow-this.layerConfig.firstRow)*this.lineHeight;M>0&&(this.scrollTop=M,w|=this.CHANGE_SCROLL,w|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),w&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-S.offset);var b=S.minHeight+"px";o.setStyle(this.content.style,"width",S.width+2*this.$padding+"px"),o.setStyle(this.content.style,"height",b)}return w&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),w&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),void this._signal("afterRender",w)):w&this.CHANGE_SCROLL?(this.$changedLines=null,w&this.CHANGE_TEXT||w&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(w&this.CHANGE_GUTTER||w&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),void this._signal("afterRender",w)):(w&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S)):w&this.CHANGE_LINES?(this.$updateLines()||w&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S):w&this.CHANGE_TEXT||w&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(S):w&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),w&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),w&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),w&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),void this._signal("afterRender",w))}this.$changes|=w},this.$autosize=function(){var w=this.session.getScreenLength()*this.lineHeight,A=this.$maxLines*this.lineHeight,S=Math.min(A,Math.max((this.$minLines||1)*this.lineHeight,w))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var I=!(S<=2*this.lineHeight)&&w>A;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||I!=this.$vScroll){I!=this.$vScroll&&(this.$vScroll=I,this.scrollBarV.setVisible(I));var b=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,b,S),this.desiredHeight=S,this._signal("autosize")}},this.$computeLayerConfig=function(){var w=this.session,A=this.$size,S=A.height<=2*this.lineHeight,I=this.session.getScreenLength()*this.lineHeight,b=this.$getLongestLine(),L=!S&&(this.$hScrollBarAlwaysVisible||A.scrollerWidth-b-2*this.$padding<0),F=this.$horizScroll!==L;F&&(this.$horizScroll=L,this.scrollBarH.setVisible(L));var ne=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Y=A.scrollerHeight+this.lineHeight,Q=!this.$maxLines&&this.$scrollPastEnd?(A.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;I+=Q;var te=this.scrollMargin;this.session.setScrollTop(Math.max(-te.top,Math.min(this.scrollTop,I-A.scrollerHeight+te.bottom))),this.session.setScrollLeft(Math.max(-te.left,Math.min(this.scrollLeft,b+2*this.$padding-A.scrollerWidth+te.right)));var $=!S&&(this.$vScrollBarAlwaysVisible||A.scrollerHeight-I+Q<0||this.scrollTop>te.top),J=ne!==$;J&&(this.$vScroll=$,this.scrollBarV.setVisible($));var Le,Ye,ie=this.scrollTop%this.lineHeight,ae=Math.ceil(Y/this.lineHeight)-1,le=Math.max(0,Math.round((this.scrollTop-ie)/this.lineHeight)),Oe=le+ae,Je=this.lineHeight;le=w.screenToDocumentRow(le,0);var gt=w.getFoldLine(le);gt&&(le=gt.start.row),Le=w.documentToScreenRow(le,0),Ye=w.getRowLength(le)*Je,Oe=Math.min(w.screenToDocumentRow(Oe,0),w.getLength()-1),Y=A.scrollerHeight+w.getRowLength(Oe)*Je+Ye,ie=this.scrollTop-Le*Je;var Ue=0;return(this.layerConfig.width!=b||F)&&(Ue=this.CHANGE_H_SCROLL),(F||J)&&(Ue|=this.$updateCachedSize(!0,this.gutterWidth,A.width,A.height),this._signal("scrollbarVisibilityChanged"),J&&(b=this.$getLongestLine())),this.layerConfig={width:b,padding:this.$padding,firstRow:le,firstRowScreen:Le,lastRow:Oe,lineHeight:Je,characterWidth:this.characterWidth,minHeight:Y,maxHeight:I,offset:ie,gutterOffset:Je?Math.max(0,Math.ceil((ie+A.height-A.scrollerHeight)/Je)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(b-this.$padding),Ue},this.$updateLines=function(){if(this.$changedLines){var w=this.$changedLines.firstRow,A=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(w>S.lastRow+1||Athis.$textLayer.MAX_LINE_LENGTH&&(w=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(w*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(w,A){this.$gutterLayer.addGutterDecoration(w,A)},this.removeGutterDecoration=function(w,A){this.$gutterLayer.removeGutterDecoration(w,A)},this.updateBreakpoints=function(w){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(w){this.$gutterLayer.setAnnotations(w),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(w,A,S){this.scrollCursorIntoView(w,S),this.scrollCursorIntoView(A,S)},this.scrollCursorIntoView=function(w,A,S){if(0!==this.$size.scrollerHeight){var M=this.$cursorLayer.getPixelPosition(w),I=M.left,b=M.top,L=S&&S.top||0,F=S&&S.bottom||0,ne=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;ne+L>b?(A&&ne+L>b+this.lineHeight&&(b-=A*this.$size.scrollerHeight),0===b&&(b=-this.scrollMargin.top),this.session.setScrollTop(b)):ne+this.$size.scrollerHeight-FI?(I=1-this.scrollMargin.top||A>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||w<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||w>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(w,A){var S;if(this.$hasCssTransforms){S={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([w,A]);w=M[1]-this.gutterWidth-this.margin.left,A=M[0]}else S=this.scroller.getBoundingClientRect();var I=w+this.scrollLeft-S.left-this.$padding,b=I/this.characterWidth,L=Math.floor((A+this.scrollTop-S.top)/this.lineHeight),F=this.$blockCursor?Math.floor(b):Math.round(b);return{row:L,column:F,side:b-F>0?1:-1,offsetX:I}},this.screenToTextCoordinates=function(w,A){var S;if(this.$hasCssTransforms){S={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([w,A]);w=M[1]-this.gutterWidth-this.margin.left,A=M[0]}else S=this.scroller.getBoundingClientRect();var I=w+this.scrollLeft-S.left-this.$padding,b=I/this.characterWidth,L=this.$blockCursor?Math.floor(b):Math.round(b),F=Math.floor((A+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(L,0),I)},this.textToScreenCoordinates=function(w,A){var S=this.scroller.getBoundingClientRect(),M=this.session.documentToScreenPosition(w,A),I=this.$padding+(this.session.$bidiHandler.isBidiRow(M.row,w)?this.session.$bidiHandler.getPosLeft(M.column):Math.round(M.column*this.characterWidth));return{pageX:S.left+I-this.scrollLeft,pageY:S.top+M.row*this.lineHeight-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(w){this.$composition=w,w.cssText||(w.cssText=this.textarea.style.cssText),null==w.useTextareaForIME&&(w.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):w.markerId=this.session.addMarker(w.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(w){var A=this.session.selection.cursor;this.addToken(w,"composition_placeholder",A.row,A.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var w=this.session.selection.cursor;this.removeExtraToken(w.row,w.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(w,A,S,M){var I=this.session;I.bgTokenizer.lines[S]=null;var b={type:A,value:w},L=I.getTokens(S);if(null==M)L.push(b);else for(var F=0,ne=0;ne50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(s.prototype),f.UIWorkerClient=function(c,l,g){var y=null,E=!1,T=Object.create(d),D=[],O=new s({messageBuffer:D,terminate:function(){},postMessage:function(A){D.push(A),y&&(E?setTimeout(w):w())}});O.setEmitSync=function(A){E=A};var w=function(){var A=D.shift();A.command?y[A.command].apply(y,A.args):A.event&&T._signal(A.event,A.data)};return T.postMessage=function(A){O.onMessage({data:A})},T.callback=function(A,S){this.postMessage({type:"call",id:S,data:A})},T.emit=function(A,S){this.postMessage({type:"event",name:A,data:S})},u.loadModule(["worker",l],function(A){for(y=new A[g](T);D.length;)w()}),O},f.WorkerClient=s,f.createWorker=r}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,f,v){"use strict";var m=n("./range").Range,o=n("./lib/event_emitter").EventEmitter,d=n("./lib/oop"),u=function(h,r,s,i,c,l){var g=this;this.length=r,this.session=h,this.doc=h.getDocument(),this.mainClass=c,this.othersClass=l,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=s;var y=h.getUndoManager().$undoStack||h.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=y.length,this.setup(),h.selection.on("changeCursor",this.$onCursorChange)};(function(){d.implement(this,o),this.setup=function(){var h=this,r=this.doc,s=this.session;this.selectionBefore=s.selection.toJSON(),s.selection.inMultiSelectMode&&s.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=s.addMarker(new m(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(c){var l=r.createAnchor(c.row,c.column);l.$insertRight=!0,l.detach(),h.others.push(l)}),s.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var h=this.session,r=this;this.othersActive=!0,this.others.forEach(function(s){s.markerId=h.addMarker(new m(s.row,s.column,s.row,s.column+r.length),r.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var h=0;h=this.pos.column&&r.start.column<=this.pos.column+this.length+1,c=r.start.column-this.pos.column;if(this.updateAnchors(h),i&&(this.length+=s),i&&!this.session.$fromUndo)if("insert"===h.action)for(var l=this.others.length-1;l>=0;l--)this.doc.insertMergedLines(y={row:(g=this.others[l]).row,column:g.column+c},h.lines);else if("remove"===h.action)for(l=this.others.length-1;l>=0;l--){var g,y;this.doc.remove(new m((y={row:(g=this.others[l]).row,column:g.column+c}).row,y.column,y.row,y.column-s))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(h){this.pos.onChange(h);for(var r=this.others.length;r--;)this.others[r].onChange(h);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var h=this,r=this.session,s=function(c,l){r.removeMarker(c.markerId),c.markerId=r.addMarker(new m(c.row,c.column,c.row,c.column+h.length),l,null,!1)};s(this.pos,this.mainClass);for(var i=this.others.length;i--;)s(this.others[i],this.othersClass)}},this.onCursorChange=function(h){if(!this.$updating&&this.session){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",h)):(this.hideOtherMarkers(),this._emit("cursorLeave",h))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var h=this.session.getUndoManager(),r=(h.$undoStack||h.$undostack).length-this.$undoStackDepth,s=0;s1?o.multiSelect.joinSelections():o.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(o){o.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(o){o.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(o){o.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],f.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(o){o.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(o){return o&&o.inMultiSelectMode}}];var m=n("../keyboard/hash_handler").HashHandler;f.keyboardHandler=new m(f.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,f,v){var m=n("./range_list").RangeList,o=n("./range").Range,d=n("./selection").Selection,u=n("./mouse/multi_select_handler").onMouseDown,h=n("./lib/event"),r=n("./lib/lang"),s=n("./commands/multi_select_commands");f.commands=s.defaultCommands.concat(s.multiSelectCommands);var c=new(0,n("./search").Search),g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(O,w){if(O){if(!this.inMultiSelectMode&&0===this.rangeCount){var A=this.toOrientedRange();if(this.rangeList.add(A),this.rangeList.add(O),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),w||this.fromOrientedRange(O);this.rangeList.removeAll(),this.rangeList.add(A),this.$onAddRange(A)}O.cursor||(O.cursor=O.end);var S=this.rangeList.add(O);return this.$onAddRange(O),S.length&&this.$onRemoveRange(S),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(O)}},this.toSingleRange=function(O){O=O||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),O&&this.fromOrientedRange(O)},this.substractPoint=function(O){var w=this.rangeList.substractPoint(O);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var O=this.rangeList.merge();O.length&&this.$onRemoveRange(O)},this.$onAddRange=function(O){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(O),this._signal("addRange",{range:O})},this.$onRemoveRange=function(O){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();O.push(w),this.rangeCount=0}for(var A=O.length;A--;){var S=this.ranges.indexOf(O[A]);this.ranges.splice(S,1)}this._signal("removeRange",{ranges:O}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(w=w||this.ranges[0])&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new m,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var O=this.ranges.length?this.ranges:[this.getRange()],w=[],A=0;A1){var O=this.rangeList.ranges,w=O[O.length-1],A=o.fromPoints(O[0].start,w.end);this.toSingleRange(),this.setSelectionRange(A,w.cursor==w.start)}else{var S=this.session.documentToScreenPosition(this.cursor),M=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(S,M).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(O,w,A){var S=[],M=O.column0;)ie--;if(ie>0)for(var ae=0;S[ae].isEmpty();)ae++;for(var le=ie;le>=ae;le--)S[le].isEmpty()&&S.splice(le,1)}return S}}.call(d.prototype);var y=n("./editor").Editor;function E(O,w){return O.row==w.row&&O.column==w.column}function T(O){O.$multiselectOnSessionChange||(O.$onAddRange=O.$onAddRange.bind(O),O.$onRemoveRange=O.$onRemoveRange.bind(O),O.$onMultiSelect=O.$onMultiSelect.bind(O),O.$onSingleSelect=O.$onSingleSelect.bind(O),O.$multiselectOnSessionChange=f.onSessionChange.bind(O),O.$checkMultiselectChange=O.$checkMultiselectChange.bind(O),O.$multiselectOnSessionChange(O),O.on("changeSession",O.$multiselectOnSessionChange),O.on("mousedown",u),O.commands.addCommands(s.defaultCommands),function(O){if(O.textInput){var w=O.textInput.getElement(),A=!1;h.addListener(w,"keydown",function(M){O.$blockSelectEnabled&&18==M.keyCode&&!(M.ctrlKey||M.shiftKey||M.metaKey)?A||(O.renderer.setMouseCursor("crosshair"),A=!0):A&&S()},O),h.addListener(w,"keyup",S,O),h.addListener(w,"blur",S,O)}function S(M){A&&(O.renderer.setMouseCursor(""),A=!1)}}(O))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(O){O.cursor||(O.cursor=O.end);var w=this.getSelectionStyle();return O.marker=this.session.addMarker(O,"ace_selection",w),this.session.$selectionMarkers.push(O),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,O},this.removeSelectionMarker=function(O){if(O.marker){this.session.removeMarker(O.marker);var w=this.session.$selectionMarkers.indexOf(O);-1!=w&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(O){for(var w=this.session.$selectionMarkers,A=O.length;A--;){var S=O[A];if(S.marker){this.session.removeMarker(S.marker);var M=w.indexOf(S);-1!=M&&w.splice(M,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(O){this.addSelectionMarker(O.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(O){this.removeSelectionMarkers(O.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(O){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(O){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(O){var w=O.command,A=O.editor;if(A.multiSelect){if(w.multiSelectAction)"forEach"==w.multiSelectAction?S=A.forEachSelection(w,O.args):"forEachLine"==w.multiSelectAction?S=A.forEachSelection(w,O.args,!0):"single"==w.multiSelectAction?(A.exitMultiSelectMode(),S=w.exec(A,O.args||{})):S=w.multiSelectAction(A,O.args||{});else{var S=w.exec(A,O.args||{});A.multiSelect.addRange(A.multiSelect.toOrientedRange()),A.multiSelect.mergeOverlappingRanges()}return S}},this.forEachSelection=function(O,w,A){if(!this.inVirtualSelectionMode){var ne,M=1==A||A&&A.$byLines,I=this.session,b=this.selection,F=(A&&A.keepOrder?b:b.rangeList).ranges;if(!F.length)return O.exec?O.exec(this,w||{}):O(this,w||{});var Y=b._eventRegistry;b._eventRegistry={};var Q=new d(I);this.inVirtualSelectionMode=!0;for(var te=F.length;te--;){if(M)for(;te>0&&F[te].start.row==F[te-1].end.row;)te--;Q.fromOrientedRange(F[te]),Q.index=te,this.selection=I.selection=Q;var $=O.exec?O.exec(this,w||{}):O(this,w||{});!ne&&void 0!==$&&(ne=$),Q.toOrientedRange(F[te])}Q.detach(),this.selection=I.selection=b,this.inVirtualSelectionMode=!1,b._eventRegistry=Y,b.mergeOverlappingRanges(),b.ranges[0]&&b.fromOrientedRange(b.ranges[0]);var J=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),J&&J.from==J.to&&this.renderer.animateScrolling(J.from),ne}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var O="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,A=[],S=0;Ste&&(te=ae.column),Oe<$&&($=Oe),Oe});A.forEach(function(ie,ae){var le=ie.cursor,Oe=te-le.column,Le=J[ae]-$;Oe>Le?O.insert(le,r.stringRepeat(" ",Oe-Le)):O.remove(new o(le.row,le.column,le.row,le.column-Oe+Le)),ie.start.column=ie.end.column=te,ie.start.row=ie.end.row=le.row,ie.cursor=ie.end}),w.fromOrientedRange(A[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var I=this.selection.getRange(),b=I.start.row,L=I.end.row,F=b==L;if(F){var Y,ne=this.session.getLength();do{Y=this.session.getLine(L)}while(/[=:]/.test(Y)&&++L0);b<0&&(b=0),L>=ne&&(L=ne-1)}var Q=this.session.removeFullLines(b,L);Q=this.$reAlignText(Q,F),this.session.insert({row:b,column:0},Q.join("\n")+"\n"),F||(I.start.column=0,I.end.column=Q[Q.length-1].length),this.selection.setRange(I)}},this.$reAlignText=function(O,w){var M,I,b,A=!0,S=!0;return O.map(function(Q){var te=Q.match(/(\s*)(.*?)(\s*)([=:].*)/);return te?null==M?(M=te[1].length,I=te[2].length,b=te[3].length,te):(M+I+b!=te[1].length+te[2].length+te[3].length&&(S=!1),M!=te[1].length&&(A=!1),M>te[1].length&&(M=te[1].length),Ite[3].length&&(b=te[3].length),te):[Q]}).map(w?F:A?S?function(Q){return Q[2]?L(M+I-Q[2].length)+Q[2]+L(b)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]}:F:function(Q){return Q[2]?L(M)+Q[2]+L(b)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]});function L(Q){return r.stringRepeat(" ",Q)}function F(Q){return Q[2]?L(M)+Q[2]+L(I-Q[2].length+b)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]}}}).call(y.prototype),f.onSessionChange=function(O){var w=O.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var A=O.oldSession;A&&(A.multiSelect.off("addRange",this.$onAddRange),A.multiSelect.off("removeRange",this.$onRemoveRange),A.multiSelect.off("multiSelect",this.$onMultiSelect),A.multiSelect.off("singleSelect",this.$onSingleSelect),A.multiSelect.lead.off("change",this.$checkMultiselectChange),A.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},f.MultiSelect=T,n("./config").defineOptions(y.prototype,"editor",{enableMultiselect:{set:function(O){T(this),O?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",u)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",u))},value:!0},enableBlockSelect:{set:function(O){this.$blockSelectEnabled=O},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,f,v){"use strict";var m=n("../../range").Range,o=f.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(d,u,h){var r=d.getLine(h);return this.foldingStartMarker.test(r)?"start":"markbeginend"==u&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(d,u,h){return null},this.indentationBlock=function(d,u,h){var r=/\S/,s=d.getLine(u),i=s.search(r);if(-1!=i){for(var c=h||s.length,l=d.getLength(),g=u,y=u;++ug){var D=d.getLine(y).length;return new m(g,c,y,D)}}},this.openingBracketBlock=function(d,u,h,r,s){var i={row:h,column:r+1},c=d.$findClosingBracket(u,i,s);if(c){var l=d.foldWidgets[c.row];return null==l&&(l=d.getFoldWidget(c.row)),"start"==l&&c.row>i.row&&(c.row--,c.column=d.getLine(c.row).length),m.fromPoints(i,c)}},this.closingBracketBlock=function(d,u,h,r,s){var i={row:h,column:r},c=d.$findOpeningBracket(u,i);if(c)return c.column++,i.column--,m.fromPoints(c,i)}}).call(o.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(n,f,v){"use strict";f.isDark=!1,f.cssClass="ace-tm",f.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',f.$id="ace/theme/textmate",n("../lib/dom").importCssString(f.cssText,f.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,f,v){"use strict";var m=n("./lib/dom");function o(d){this.session=d,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(d){var u;return u=this.lineWidgets&&this.lineWidgets[d]&&this.lineWidgets[d].rowCount||0,this.$useWrapMode&&this.$wrapData[d]?this.$wrapData[d].length+1+u:1+u},this.$getWidgetScreenLength=function(){var d=0;return this.lineWidgets.forEach(function(u){u&&u.rowCount&&!u.hidden&&(d+=u.rowCount)}),d},this.$onChangeEditor=function(d){this.attach(d.editor)},this.attach=function(d){d&&d.widgetManager&&d.widgetManager!=this&&d.widgetManager.detach(),this.editor!=d&&(this.detach(),this.editor=d,d&&(d.widgetManager=this,d.renderer.on("beforeRender",this.measureWidgets),d.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(d){var u=this.editor;if(u){this.editor=null,u.widgetManager=null,u.renderer.off("beforeRender",this.measureWidgets),u.renderer.off("afterRender",this.renderWidgets);var h=this.session.lineWidgets;h&&h.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},this.updateOnFold=function(d,u){var h=u.lineWidgets;if(h&&d.action){for(var r=d.data,s=r.start.row,i=r.end.row,c="add"==d.action,l=s+1;lu[h].column&&h++,i.unshift(h,0),u.splice.apply(u,i),this.$updateRows()}}},this.$updateRows=function(){var d=this.session.lineWidgets;if(d){var u=!0;d.forEach(function(h,r){if(h)for(u=!1,h.row=r;h.$oldWidget;)h.$oldWidget.row=r,h=h.$oldWidget}),u&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(d){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var u=this.session.lineWidgets[d.row];return u&&(d.$oldWidget=u,u.el&&u.el.parentNode&&(u.el.parentNode.removeChild(u.el),u._inDocument=!1)),this.session.lineWidgets[d.row]=d,d},this.addLineWidget=function(d){if(this.$registerLineWidget(d),d.session=this.session,!this.editor)return d;var u=this.editor.renderer;d.html&&!d.el&&(d.el=m.createElement("div"),d.el.innerHTML=d.html),d.el&&(m.addCssClass(d.el,"ace_lineWidgetContainer"),d.el.style.position="absolute",d.el.style.zIndex=5,u.container.appendChild(d.el),d._inDocument=!0,d.coverGutter||(d.el.style.zIndex=3),null==d.pixelHeight&&(d.pixelHeight=d.el.offsetHeight)),null==d.rowCount&&(d.rowCount=d.pixelHeight/u.layerConfig.lineHeight);var h=this.session.getFoldAt(d.row,0);if(d.$fold=h,h){var r=this.session.lineWidgets;d.row!=h.end.row||r[h.start.row]?d.hidden=!0:r[h.start.row]=d}return this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows(),this.renderWidgets(null,u),this.onWidgetChanged(d),d},this.removeLineWidget=function(d){if(d._inDocument=!1,d.session=null,d.el&&d.el.parentNode&&d.el.parentNode.removeChild(d.el),d.editor&&d.editor.destroy)try{d.editor.destroy()}catch(h){}if(this.session.lineWidgets){var u=this.session.lineWidgets[d.row];if(u==d)this.session.lineWidgets[d.row]=d.$oldWidget,d.$oldWidget&&this.onWidgetChanged(d.$oldWidget);else for(;u;){if(u.$oldWidget==d){u.$oldWidget=d.$oldWidget;break}u=u.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(d){for(var u=this.session.lineWidgets,h=u&&u[d],r=[];h;)r.push(h),h=h.$oldWidget;return r},this.onWidgetChanged=function(d){this.session._changedWidgets.push(d),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(d,u){var h=this.session._changedWidgets,r=u.layerConfig;if(h&&h.length){for(var s=1/0,i=0;i0&&!r[s];)s--;this.firstRow=h.firstRow,this.lastRow=h.lastRow,u.$cursorLayer.config=h;for(var c=s;c<=i;c++){var l=r[c];if(l&&l.el){if(l.hidden){l.el.style.top=-100-(l.pixelHeight||0)+"px";continue}l._inDocument||(l._inDocument=!0,u.container.appendChild(l.el));var g=u.$cursorLayer.getPixelPosition({row:c,column:0},!0).top;l.coverLine||(g+=h.lineHeight*this.session.getRowLineCount(l.row)),l.el.style.top=g-h.offset+"px";var y=l.coverGutter?0:u.gutterWidth;l.fixedWidth||(y-=u.scrollLeft),l.el.style.left=y+"px",l.fullWidth&&l.screenWidth&&(l.el.style.minWidth=h.width+2*h.padding+"px"),l.el.style.right=l.fixedWidth?u.scrollBar.getWidth()+"px":""}}}}}).call(o.prototype),f.LineWidgets=o}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(n,f,v){"use strict";var m=n("../line_widgets").LineWidgets,o=n("../lib/dom"),d=n("../range").Range;f.showErrorMarker=function(r,s){var i=r.session;i.widgetManager||(i.widgetManager=new m(i),i.widgetManager.attach(r));var c=r.getCursorPosition(),l=c.row,g=i.widgetManager.getWidgetsAtRow(l).filter(function(M){return"errorMarker"==M.type})[0];g?g.destroy():l-=s;var E,y=function(r,s,i){var c=r.getAnnotations().sort(d.comparePoints);if(c.length){var l=function(r,s,i){for(var c=0,l=r.length-1;c<=l;){var g=c+l>>1,y=i(s,r[g]);if(y>0)c=g+1;else{if(!(y<0))return g;l=g-1}}return-(c+1)}(c,{row:s,column:-1},d.comparePoints);l<0&&(l=-l-1),l>=c.length?l=i>0?0:c.length-1:0===l&&i<0&&(l=c.length-1);var g=c[l];if(g&&i){if(g.row===s){do{g=c[l+=i]}while(g&&g.row===s);if(!g)return c.slice()}var y=[];s=g.row;do{y[i<0?"unshift":"push"](g),g=c[l+=i]}while(g&&g.row==s);return y.length&&y}}}(i,l,s);if(y){var T=y[0];c.column=(T.pos&&"number"!=typeof T.column?T.pos.sc:T.column)||0,c.row=T.row,E=r.renderer.$gutterLayer.$annotations[c.row]}else{if(g)return;E={text:["Looks good!"],className:"ace_ok"}}r.session.unfold(c.row),r.selection.moveToPosition(c);var D={row:c.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},O=D.el.appendChild(o.createElement("div")),w=D.el.appendChild(o.createElement("div"));w.className="error_widget_arrow "+E.className;var A=r.renderer.$cursorLayer.getPixelPosition(c).left;w.style.left=A+r.renderer.gutterWidth-5+"px",D.el.className="error_widget_wrapper",O.className="error_widget "+E.className,O.innerHTML=E.text.join("
"),O.appendChild(o.createElement("div"));var S=function(M,I,b){if(0===I&&("esc"===b||"return"===b))return D.destroy(),{command:"null"}};D.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(S),i.widgetManager.removeLineWidget(D),r.off("changeSelection",D.destroy),r.off("changeSession",D.destroy),r.off("mouseup",D.destroy),r.off("change",D.destroy))},r.keyBinding.addKeyboardHandler(S),r.on("changeSelection",D.destroy),r.on("changeSession",D.destroy),r.on("mouseup",D.destroy),r.on("change",D.destroy),r.session.widgetManager.addLineWidget(D),D.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:D.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(n,f,v){"use strict";n("./lib/fixoldbrowsers");var m=n("./lib/dom"),o=n("./lib/event"),d=n("./range").Range,u=n("./editor").Editor,h=n("./edit_session").EditSession,r=n("./undomanager").UndoManager,s=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),f.config=n("./config"),f.require=n,f.define=p.amdD,f.edit=function(i,c){if("string"==typeof i){var l=i;if(!(i=document.getElementById(l)))throw new Error("ace.edit can't find div #"+l)}if(i&&i.env&&i.env.editor instanceof u)return i.env.editor;var g="";if(i&&/input|textarea/i.test(i.tagName)){var y=i;g=y.value,i=m.createElement("pre"),y.parentNode.replaceChild(i,y)}else i&&(g=i.textContent,i.innerHTML="");var E=f.createEditSession(g),T=new u(new s(i),E,c),D={document:E,editor:T,onResize:T.resize.bind(T,null)};return y&&(D.textarea=y),o.addListener(window,"resize",D.onResize),T.on("destroy",function(){o.removeListener(window,"resize",D.onResize),D.editor.container.env=null}),T.container.env=T.env=D,T},f.createEditSession=function(i,c){var l=new h(i,c);return l.setUndoManager(new r),l},f.Range=d,f.Editor=u,f.EditSession=h,f.UndoManager=r,f.VirtualRenderer=s,f.version=f.config.version}),ace.require(["ace/ace"],function(n){for(var f in n&&(n.config.init(!0),n.define=ace.define),window.ace||(window.ace=n),n)n.hasOwnProperty(f)&&(window.ace[f]=n[f]);window.ace.default=window.ace,ye&&(ye.exports=window.ace)})},9426:ye=>{function j(){}ye.exports=j,ye.exports.HttpsAgent=j},5618:function(){var ye;ye="undefined"!=typeof self?self:this,function(p){var n_searchParams="URLSearchParams"in ye,n_iterable="Symbol"in ye&&"iterator"in Symbol,n_blob="FileReader"in ye&&"Blob"in ye&&function(){try{return new Blob,!0}catch(I){return!1}}(),n_formData="FormData"in ye,n_arrayBuffer="ArrayBuffer"in ye;if(n_arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(I){return I&&v.indexOf(Object.prototype.toString.call(I))>-1};function o(I){if("string"!=typeof I&&(I=String(I)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(I))throw new TypeError("Invalid character in header field name");return I.toLowerCase()}function d(I){return"string"!=typeof I&&(I=String(I)),I}function u(I){var b={next:function(){var L=I.shift();return{done:void 0===L,value:L}}};return n_iterable&&(b[Symbol.iterator]=function(){return b}),b}function h(I){this.map={},I instanceof h?I.forEach(function(b,L){this.append(L,b)},this):Array.isArray(I)?I.forEach(function(b){this.append(b[0],b[1])},this):I&&Object.getOwnPropertyNames(I).forEach(function(b){this.append(b,I[b])},this)}function r(I){if(I.bodyUsed)return Promise.reject(new TypeError("Already read"));I.bodyUsed=!0}function s(I){return new Promise(function(b,L){I.onload=function(){b(I.result)},I.onerror=function(){L(I.error)}})}function i(I){var b=new FileReader,L=s(b);return b.readAsArrayBuffer(I),L}function g(I){if(I.slice)return I.slice(0);var b=new Uint8Array(I.byteLength);return b.set(new Uint8Array(I)),b.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(I){this._bodyInit=I,I?"string"==typeof I?this._bodyText=I:n_blob&&Blob.prototype.isPrototypeOf(I)?this._bodyBlob=I:n_formData&&FormData.prototype.isPrototypeOf(I)?this._bodyFormData=I:n_searchParams&&URLSearchParams.prototype.isPrototypeOf(I)?this._bodyText=I.toString():n_arrayBuffer&&n_blob&&function(I){return I&&DataView.prototype.isPrototypeOf(I)}(I)?(this._bodyArrayBuffer=g(I.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(I)||m(I))?this._bodyArrayBuffer=g(I):this._bodyText=I=Object.prototype.toString.call(I):this._bodyText="",this.headers.get("content-type")||("string"==typeof I?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n_searchParams&&URLSearchParams.prototype.isPrototypeOf(I)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n_blob&&(this.blob=function(){var I=r(this);if(I)return I;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?r(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(i)}),this.text=function(){var I=r(this);if(I)return I;if(this._bodyBlob)return function(I){var b=new FileReader,L=s(b);return b.readAsText(I),L}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(I){for(var b=new Uint8Array(I),L=new Array(b.length),F=0;F-1?b:I}(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}function O(I){var b=new FormData;return I.trim().split("&").forEach(function(L){if(L){var F=L.split("="),ne=F.shift().replace(/\+/g," "),Y=F.join("=").replace(/\+/g," ");b.append(decodeURIComponent(ne),decodeURIComponent(Y))}}),b}function w(I){var b=new h;return I.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(F){var ne=F.split(":"),Y=ne.shift().trim();if(Y){var Q=ne.join(":").trim();b.append(Y,Q)}}),b}function A(I,b){b||(b={}),this.type="default",this.status=void 0===b.status?200:b.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in b?b.statusText:"OK",this.headers=new h(b.headers),this.url=b.url||"",this._initBody(I)}D.prototype.clone=function(){return new D(this,{body:this._bodyInit})},y.call(D.prototype),y.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},A.error=function(){var I=new A(null,{status:0,statusText:""});return I.type="error",I};var S=[301,302,303,307,308];A.redirect=function(I,b){if(-1===S.indexOf(b))throw new RangeError("Invalid status code");return new A(null,{status:b,headers:{location:I}})},p.DOMException=ye.DOMException;try{new p.DOMException}catch(I){p.DOMException=function(b,L){this.message=b,this.name=L;var F=Error(b);this.stack=F.stack},p.DOMException.prototype=Object.create(Error.prototype),p.DOMException.prototype.constructor=p.DOMException}function M(I,b){return new Promise(function(L,F){var ne=new D(I,b);if(ne.signal&&ne.signal.aborted)return F(new p.DOMException("Aborted","AbortError"));var Y=new XMLHttpRequest;function Q(){Y.abort()}Y.onload=function(){var te={status:Y.status,statusText:Y.statusText,headers:w(Y.getAllResponseHeaders()||"")};te.url="responseURL"in Y?Y.responseURL:te.headers.get("X-Request-URL"),L(new A("response"in Y?Y.response:Y.responseText,te))},Y.onerror=function(){F(new TypeError("Network request failed"))},Y.ontimeout=function(){F(new TypeError("Network request failed"))},Y.onabort=function(){F(new p.DOMException("Aborted","AbortError"))},Y.open(ne.method,ne.url,!0),"include"===ne.credentials?Y.withCredentials=!0:"omit"===ne.credentials&&(Y.withCredentials=!1),"responseType"in Y&&n_blob&&(Y.responseType="blob"),ne.headers.forEach(function(te,$){Y.setRequestHeader($,te)}),ne.signal&&(ne.signal.addEventListener("abort",Q),Y.onreadystatechange=function(){4===Y.readyState&&ne.signal.removeEventListener("abort",Q)}),Y.send(void 0===ne._bodyInit?null:ne._bodyInit)})}M.polyfill=!0,ye.fetch||(ye.fetch=M,ye.Headers=h,ye.Request=D,ye.Response=A),p.Headers=h,p.Request=D,p.Response=A,p.fetch=M,Object.defineProperty(p,"__esModule",{value:!0})}({})},7664:ye=>{ye.exports=function(n){var f=new Date(n.getTime()),v=f.getTimezoneOffset();return f.setSeconds(0,0),6e4*v+f.getTime()%6e4}},6937:(ye,j,p)=>{var n=p(6910);ye.exports=function(v,m){var o=n(v),d=Number(m);return o.setDate(o.getDate()+d),o}},2500:(ye,j,p)=>{var n=p(7862);ye.exports=function(m,o){var d=Number(o);return n(m,36e5*d)}},7862:(ye,j,p)=>{var n=p(6910);ye.exports=function(v,m){var o=n(v).getTime(),d=Number(m);return new Date(o+d)}},8091:(ye,j,p)=>{var n=p(7862);ye.exports=function(m,o){var d=Number(o);return n(m,6e4*d)}},4992:(ye,j,p)=>{var n=p(6910),f=p(5490);ye.exports=function(m,o){var d=n(m),u=Number(o),h=d.getMonth()+u,r=new Date(0);r.setFullYear(d.getFullYear(),h,1),r.setHours(0,0,0,0);var s=f(r);return d.setMonth(h,Math.min(s,d.getDate())),d}},734:(ye,j,p)=>{var n=p(7862);ye.exports=function(v,m){var o=Number(m);return n(v,1e3*o)}},5213:(ye,j,p)=>{var n=p(6937);ye.exports=function(v,m){var o=Number(m);return n(v,7*o)}},2486:(ye,j,p)=>{var n=p(4992);ye.exports=function(v,m){var o=Number(m);return n(v,12*o)}},5490:(ye,j,p)=>{var n=p(6910);ye.exports=function(v){var m=n(v),o=m.getFullYear(),d=m.getMonth(),u=new Date(0);return u.setFullYear(o,d+1,0),u.setHours(0,0,0,0),u.getDate()}},9882:ye=>{ye.exports=function(p){return p instanceof Date}},6910:(ye,j,p)=>{var n=p(7664),f=p(9882),v=36e5,m=6e4,d=/[T ]/,u=/:/,h=/^(\d{2})$/,r=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],s=/^(\d{4})/,i=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],c=/^-(\d{2})$/,l=/^-?(\d{3})$/,g=/^-?(\d{2})-?(\d{2})$/,y=/^-?W(\d{2})$/,E=/^-?W(\d{2})-?(\d{1})$/,T=/^(\d{2}([.,]\d*)?)$/,D=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,O=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/([Z+-].*)$/,A=/^(Z)$/,S=/^([+-])(\d{2})$/,M=/^([+-])(\d{2}):?(\d{2})$/;function Q(te,$,J){$=$||0,J=J||0;var ie=new Date(0);ie.setUTCFullYear(te,0,4);var le=7*$+J+1-(ie.getUTCDay()||7);return ie.setUTCDate(ie.getUTCDate()+le),ie}ye.exports=function(te,$){if(f(te))return new Date(te.getTime());if("string"!=typeof te)return new Date(te);var ie=($||{}).additionalDigits;ie=null==ie?2:Number(ie);var ae=function(te){var ie,$={},J=te.split(d);if(u.test(J[0])?($.date=null,ie=J[0]):($.date=J[0],ie=J[1]),ie){var ae=w.exec(ie);ae?($.time=ie.replace(ae[1],""),$.timezone=ae[1]):$.time=ie}return $}(te),le=function(te,$){var ae,J=r[$],ie=i[$];if(ae=s.exec(te)||ie.exec(te)){var le=ae[1];return{year:parseInt(le,10),restDateString:te.slice(le.length)}}if(ae=h.exec(te)||J.exec(te)){var Oe=ae[1];return{year:100*parseInt(Oe,10),restDateString:te.slice(Oe.length)}}return{year:null}}(ae.date,ie),Ye=function(te,$){if(null===$)return null;var J,ie,ae;if(0===te.length)return(ie=new Date(0)).setUTCFullYear($),ie;if(J=c.exec(te))return ie=new Date(0),ae=parseInt(J[1],10)-1,ie.setUTCFullYear($,ae),ie;if(J=l.exec(te)){ie=new Date(0);var Oe=parseInt(J[1],10);return ie.setUTCFullYear($,0,Oe),ie}if(J=g.exec(te)){ie=new Date(0),ae=parseInt(J[1],10)-1;var Le=parseInt(J[2],10);return ie.setUTCFullYear($,ae,Le),ie}return(J=y.exec(te))?Q($,parseInt(J[1],10)-1):(J=E.exec(te))?Q($,parseInt(J[1],10)-1,parseInt(J[2],10)-1):null}(le.restDateString,le.year);if(Ye){var Ue,Je=Ye.getTime(),gt=0;if(ae.time&&(gt=function(te){var $,J,ie;if($=T.exec(te))return(J=parseFloat($[1].replace(",",".")))%24*v;if($=D.exec(te))return J=parseInt($[1],10),ie=parseFloat($[2].replace(",",".")),J%24*v+ie*m;if($=O.exec(te)){J=parseInt($[1],10),ie=parseInt($[2],10);var ae=parseFloat($[3].replace(",","."));return J%24*v+ie*m+1e3*ae}return null}(ae.time)),ae.timezone)Ue=function(te){var $,J;return($=A.exec(te))?0:($=S.exec(te))?(J=60*parseInt($[2],10),"+"===$[1]?-J:J):($=M.exec(te))?(J=60*parseInt($[2],10)+parseInt($[3],10),"+"===$[1]?-J:J):0}(ae.timezone)*m;else{var tt=Je+gt,at=new Date(tt);Ue=n(at);var ft=new Date(tt);ft.setDate(at.getDate()+1);var vt=n(ft)-n(at);vt>0&&(Ue+=vt)}return new Date(Je+gt+Ue)}return new Date(te)}},1455:(ye,j,p)=>{j.formatArgs=function(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+ye.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;u.splice(1,0,h,"color: inherit");let r=0,s=0;u[0].replace(/%[a-zA-Z%]/g,i=>{"%%"!==i&&(r++,"%c"===i&&(s=r))}),u.splice(s,0,h)},j.save=function(u){try{u?j.storage.setItem("debug",u):j.storage.removeItem("debug")}catch(h){}},j.load=function(){let u;try{u=j.storage.getItem("debug")}catch(h){}return!u&&"undefined"!=typeof process&&"env"in process&&(u=process.env.DEBUG),u},j.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},j.storage=function(){try{return localStorage}catch(u){}}(),j.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),j.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],j.log=console.debug||console.log||(()=>{}),ye.exports=p(3283)(j);const{formatters:d}=ye.exports;d.j=function(u){try{return JSON.stringify(u)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}},3283:(ye,j,p)=>{ye.exports=function(f){function m(c){let l,y,E,g=null;function T(...D){if(!T.enabled)return;const O=T,w=Number(new Date);O.diff=w-(l||w),O.prev=l,O.curr=w,l=w,D[0]=m.coerce(D[0]),"string"!=typeof D[0]&&D.unshift("%O");let S=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(I,b)=>{if("%%"===I)return"%";S++;const L=m.formatters[b];return"function"==typeof L&&(I=L.call(O,D[S]),D.splice(S,1),S--),I}),m.formatArgs.call(O,D),(O.log||m.log).apply(O,D)}return T.namespace=c,T.useColors=m.useColors(),T.color=m.selectColor(c),T.extend=o,T.destroy=m.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==g?g:(y!==m.namespaces&&(y=m.namespaces,E=m.enabled(c)),E),set:D=>{g=D}}),"function"==typeof m.init&&m.init(T),T}function o(c,l){const g=m(this.namespace+(void 0===l?":":l)+c);return g.log=this.log,g}function r(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}return m.debug=m,m.default=m,m.coerce=function(c){return c instanceof Error?c.stack||c.message:c},m.disable=function(){const c=[...m.names.map(r),...m.skips.map(r).map(l=>"-"+l)].join(",");return m.enable(""),c},m.enable=function(c){let l;m.save(c),m.namespaces=c,m.names=[],m.skips=[];const g=("string"==typeof c?c:"").split(/[\s,]+/),y=g.length;for(l=0;l{m[c]=f[c]}),m.names=[],m.skips=[],m.formatters={},m.selectColor=function(c){let l=0;for(let g=0;g{"use strict";var j="%[a-f0-9]{2}",p=new RegExp("("+j+")|([^%]+?)","gi"),n=new RegExp("("+j+")+","gi");function f(o,d){try{return[decodeURIComponent(o.join(""))]}catch(r){}if(1===o.length)return o;var u=o.slice(0,d=d||1),h=o.slice(d);return Array.prototype.concat.call([],f(u),f(h))}function v(o){try{return decodeURIComponent(o)}catch(h){for(var d=o.match(p)||[],u=1;u=64;){for(D=g[0],O=g[1],w=g[2],A=g[3],S=g[4],M=g[5],I=g[6],b=g[7],F=0;F<16;F++)l[F]=(255&y[ne=E+4*F])<<24|(255&y[ne+1])<<16|(255&y[ne+2])<<8|255&y[ne+3];for(F=16;F<64;F++)l[F]=((Y=((L=l[F-2])>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+l[F-7]|0)+((Q=((L=l[F-15])>>>7|L<<25)^(L>>>18|L<<14)^L>>>3)+l[F-16]|0);for(F=0;F<64;F++)Y=(((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&M^~S&I)|0)+(b+(v[F]+l[F]|0)|0)|0,Q=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&O^D&w^O&w)|0,b=I,I=M,M=S,S=A+Y|0,A=w,w=O,O=D,D=Y+Q|0;g[0]+=D,g[1]+=O,g[2]+=w,g[3]+=A,g[4]+=S,g[5]+=M,g[6]+=I,g[7]+=b,E+=64,T-=64}return E}var o=function(){function l(){this.digestLength=f.digestLength,this.blockSize=f.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return l.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},l.prototype.clean=function(){for(var g=0;g0){for(;this.bufferLength<64&&y>0;)this.buffer[this.bufferLength++]=g[E++],y--;64===this.bufferLength&&(m(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(y>=64&&(E=m(this.temp,this.state,g,E,y),y%=64);y>0;)this.buffer[this.bufferLength++]=g[E++],y--;return this},l.prototype.finish=function(g){if(!this.finished){var y=this.bytesHashed,E=this.bufferLength,T=y/536870912|0,D=y<<3,O=y%64<56?64:128;this.buffer[E]=128;for(var w=E+1;w>>24&255,this.buffer[O-7]=T>>>16&255,this.buffer[O-6]=T>>>8&255,this.buffer[O-5]=T>>>0&255,this.buffer[O-4]=D>>>24&255,this.buffer[O-3]=D>>>16&255,this.buffer[O-2]=D>>>8&255,this.buffer[O-1]=D>>>0&255,m(this.temp,this.state,this.buffer,0,O),this.finished=!0}for(w=0;w<8;w++)g[4*w+0]=this.state[w]>>>24&255,g[4*w+1]=this.state[w]>>>16&255,g[4*w+2]=this.state[w]>>>8&255,g[4*w+3]=this.state[w]>>>0&255;return this},l.prototype.digest=function(){var g=new Uint8Array(this.digestLength);return this.finish(g),g},l.prototype._saveState=function(g){for(var y=0;ythis.blockSize)(new o).update(g).finish(y).clean();else for(var E=0;E1&&g.update(l),y&&g.update(y),g.update(E),g.finish(l),E[0]++}f.HMAC=d,f.hash=u,f.default=u,f.hmac=h;var s=new Uint8Array(f.digestLength);f.hkdf=function(l,g,y,E){void 0===g&&(g=s),void 0===E&&(E=32);for(var T=new Uint8Array([1]),D=h(g,l),O=new d(D),w=new Uint8Array(O.digestLength),A=w.length,S=new Uint8Array(E),M=0;M>>24&255,O[1]=I>>>16&255,O[2]=I>>>8&255,O[3]=I>>>0&255,T.reset(),T.update(g),T.update(O),T.finish(A);for(var b=0;b{ye.exports=class{constructor(n){this.capabilityStatement=n}serverCan(n){return this.supportFor({capabilityType:"interaction",where:{code:n}})}resourceCan(n,f){return this.supportFor({resourceType:n,capabilityType:"interaction",where:{code:f}})}serverSearch(n){return this.supportFor({capabilityType:"searchParam",where:{name:n}})}resourceSearch(n,f){return this.supportFor({resourceType:n,capabilityType:"searchParam",where:{name:f}})}supportFor({resourceType:n,capabilityType:f,where:v}={}){let m;if(m=n?this.resourceCapabilities({resourceType:n}):this.serverCapabilities(),!m)return!1;const o=m[f];if(v&&o){const d=Object.keys(v)[0];return void 0!==o.find(h=>h[d]===v[d])}return void 0!==o}interactionsFor({resourceType:n}={}){const f=this.resourceCapabilities({resourceType:n});return void 0===f?[]:f.interaction.map(v=>v.code)}searchParamsFor({resourceType:n}={}){const f=this.resourceCapabilities({resourceType:n});return void 0===f||void 0===f.searchParam?[]:f.searchParam.map(v=>v.name)}resourceCapabilities({resourceType:n}={}){return this.serverCapabilities().resource.find(m=>m.type===n)}capabilityContents({resourceType:n,capabilityType:f}={}){const v=this.resourceCapabilities({resourceType:n});if(void 0!==v)return v[f]}serverCapabilities(){return this.capabilityStatement.rest.find(n=>"server"===n.mode)}}},6336:(ye,j,p)=>{var n=p(8926).default;const f=p(3230),{authFromCapability:v,authFromWellKnown:m}=p(231),o=p(3302),d=p(6357),u=p(8279),{createQueryString:h,validResourceType:r}=p(7800),{FetchQueue:s}=p(7011),{deprecatePaginationArgs:i,deprecateHeaders:c}=p(4712),l=p(5457);ye.exports=class{constructor({baseUrl:E,customHeaders:T,requestOptions:D,requestSigner:O,bearerToken:w}={}){this.httpClient=new o({baseUrl:E,customHeaders:T,requestOptions:D,requestSigner:O}),w&&(this.httpClient.bearerToken=w),this.resolver=new d(this),this.pagination=new u(this.httpClient)}static httpFor(E){return{request:o.requestFor(E),response:o.responseFor(E)}}get baseUrl(){return this.httpClient&&this.httpClient.baseUrl}set baseUrl(E){this.httpClient&&(this.httpClient.baseUrl=E)}get customHeaders(){return this.httpClient.customHeaders}set customHeaders(E){this.httpClient.customHeaders=E}set bearerToken(E){this.httpClient.bearerToken=E}resolve({reference:E,context:T,headers:D,options:O={}}={}){return this.resolver.resolve({reference:E,context:T,options:c(O,D)})}smartAuthMetadata({headers:E,options:T={}}={}){var D=this;return n(function*(){const O={options:c(T,E)};O.options.headers||(O.options.headers={}),O.options.headers.accept="application/fhir+json,application/json";const w=D.baseUrl.replace(/\/*$/,"/"),A=new s,S=A.buildJob(),M=A.buildJob(),I=A.buildJob(),b=[];return new Promise((L,F)=>{function ne(Y){b.push(Y)===A.numJobs&&F(new Error(b.map(Q=>Q.message).join("; ")))}D.httpClient.request("GET",`${w}.well-known/smart-configuration`,M.addSignalOption(O)).then(Y=>(A.safeAbortOthers(M),L(m(Y)))).catch(Y=>ne(Y)),D.capabilityStatement(S.addSignalOption(O)).then(Y=>(A.safeAbortOthers(S),L(v(Y)))).catch(Y=>ne(Y)),D.httpClient.request("GET",`${w}.well-known/openid-configuration`,I.addSignalOption(O)).then(Y=>(A.safeAbortOthers(I),L(m(Y)))).catch(Y=>ne(Y))})})()}capabilityStatement({headers:E,options:T={}}={}){return this.metadata||(this.metadata=this.httpClient.get("metadata",c(T,E))),this.metadata}request(E,{method:T="GET",options:D={},body:O}={}){return D.method&&D.method!==T&&console.warn(`WARNING: 'options.method' has been specified: ${D.method} but will be ignored. Use 'method' instead.`),this.httpClient.request(T,E,D,O)}read({resourceType:E,id:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.get(`${E}/${T}`,c(O,D))}vread({resourceType:E,id:T,version:D,headers:O,options:w={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.get(`${E}/${T}/_history/${D}`,c(w,O))}create({resourceType:E,body:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.post(E,T,c(O,D))}delete({resourceType:E,id:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.delete(`${E}/${T}`,c(O,D))}update({resourceType:E,id:T,searchParams:D,body:O,headers:w,options:A={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);if(T&&D)throw new Error("Conditional update with search params cannot be with id",E);if(D){const S=h(D);return this.httpClient.put(`${E}?${S}`,O,c(A,w))}return this.httpClient.put(`${E}/${T}`,O,c(A,w))}patch({resourceType:E,id:T,JSONPatch:D,headers:O,options:w={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);const S={...c(w,O).headers||{},"Content-Type":"application/json-patch+json"};return this.httpClient.patch(`${E}/${T}`,D,{...w,headers:S})}batch({body:E,headers:T,options:D={}}={}){return this.httpClient.post("/",E,c(D,T))}transaction({body:E,headers:T,options:D={}}={}){return this.httpClient.post("/",E,c(D,T))}operation({name:E,resourceType:T,id:D,method:O="POST",input:w,options:A={}}={}){const S=["/"];if(T){if(!r(T))throw new Error("Invalid resourceType",T);S.push(`${T}/`)}return D&&S.push(`${D}/`),S.push(`${E.startsWith("$")?E:`$${E}`}`),"POST"===O.toUpperCase()?this.httpClient.post(S.join(""),w,A):"GET"===O.toUpperCase()?(w&&S.push(`?${f.stringify(w)}`),this.httpClient.get(S.join(""),A)):void 0}nextPage(E,T){const{bundle:D,options:O={}}=i(E,T);return this.pagination.nextPage(D,O)}prevPage(E,T){const{bundle:D,options:O={}}=i(E,T);return this.pagination.prevPage(D,O)}search({resourceType:E,compartment:T,searchParams:D,headers:O,options:w={}}={}){if(E&&!r(E))throw new Error("Invalid resourceType",E);if(T&&E)return this.compartmentSearch({resourceType:E,compartment:T,searchParams:D,options:c(w,O)});if(E)return this.resourceSearch({resourceType:E,searchParams:D,options:c(w,O)});if(D instanceof Object&&Object.keys(D).length>0)return this.systemSearch({searchParams:D,options:c(w,O)});throw new Error("search requires either searchParams or a resourceType")}resourceSearch({resourceType:E,searchParams:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);let w=E;return O.postSearch&&(w+="/_search"),this.baseSearch({searchPath:w,searchParams:T,headers:D,options:O})}systemSearch({searchParams:E,headers:T,options:D={}}={}){return this.baseSearch({searchPath:"/_search",searchParams:E,headers:T,options:D})}compartmentSearch({resourceType:E,compartment:T,searchParams:D,headers:O,options:w={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);const{resourceType:A,id:S}=T;if(!r(A))throw new Error("Invalid compartmentType",A);let M=`/${A}/${S}/${E}`;return w.postSearch&&(M+="/_search"),this.baseSearch({searchPath:M,searchParams:D,headers:O,options:w})}baseSearch({searchPath:E,searchParams:T,headers:D,options:O}){const w=h(T),A=c(O,D);return this[O.postSearch?"postSearch":"getSearch"](E,w,A)}postSearch(E,T,D){const w={"Content-Type":"application/x-www-form-urlencoded",...D.headers},A={...D,headers:w};return this.httpClient.post(E,T,A)}getSearch(E,T,D){let O=E;return T&&(O+=`?${T}`),this.httpClient.get(O,D)}history({resourceType:E,id:T,headers:D,options:O={}}={}){if(E&&!r(E))throw new Error("Invalid resourceType",E);return T&&E?this.resourceHistory({resourceType:E,id:T,options:c(O,D)}):E?this.typeHistory({resourceType:E,options:c(O,D)}):this.systemHistory({options:c(O,D)})}resourceHistory({resourceType:E,id:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.get(`${E}/${T}/_history`,c(O,D))}typeHistory({resourceType:E,headers:T,options:D={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.get(`${E}/_history`,c(D,T))}systemHistory({headers:E,options:T={}}={}){return this.httpClient.get("_history",c(T,E))}},ye.exports.CapabilityTool=l},4712:ye=>{ye.exports={deprecateHeaders:(n,f)=>f?(console.warn("WARNING: headers is deprecated and will be removed in the next major version. Use options.headers instead."),console.warn(JSON.stringify(f,null," ")),{headers:f,...n}):n,deprecatePaginationArgs:(n,f)=>{if(Object.prototype.hasOwnProperty.call(n,"resourceType")){console.warn("WARNING: positional parameters for pagination methods are deprecated and will be removed in the next major version. Call with ({ bundle, options }) rather than (bundle, headers)");const v={bundle:n};return f&&(v.options={headers:f}),v}return n}}},7011:(ye,j,p)=>{const{AbortController:n}=p(2398);class f{constructor(){this.controller=new n,this.resolving=!1}addSignalOption(o){return{signal:this.controller.signal,...o}}safeAbort(){this.resolving||this.controller.abort()}}ye.exports={FetchQueue:class{constructor(){this.jobs=[],this.numJobs=0}buildJob(){const o=new f;return this.numJobs=this.jobs.push(o),o}safeAbortOthers(o){o.resolving=!0;for(let d=0,u=this.numJobs;d{ye.exports={fhirReferenceRegEx:/^((http|https):\/\/([A-Za-z0-9\\.:%$]*\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodySite|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Conformance|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DataElement|DecisionSupportRule|DecisionSupportServiceModule|DetectedIssue|Device|DeviceComponent|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseRequest|DeviceUseStatement|DiagnosticOrder|DiagnosticReport|DiagnosticRequest|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|EligibilityRequest|EligibilityResponse|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EntryDefinition|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExpansionProfile|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceRequest|GuidanceResponse|HealthcareService|ImagingExcerpt|ImagingManifest|ImagingObjectSelection|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|ImplementationGuideInput|ImplementationGuideOutput|InsurancePlan|Invoice|ItemInstance|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationOrder|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductClinicals|MedicinalProductContraindication|MedicinalProductDeviceSpec|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|ModuleDefinition|ModuleMetadata|MolecularSequence|NamingSystem|NutritionOrder|NutritionRequest|Observation|ObservationDefinition|OccupationalData|OperationDefinition|OperationOutcome|Order|OrderResponse|OrderSet|Organization|OrganizationAffiliation|OrganizationRole|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|ProcedureRequest|ProcessRequest|ProcessResponse|ProductPlan|Protocol|Provenance|Questionnaire|QuestionnaireResponse|ReferralRequest|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|Sequence|ServiceDefinition|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|UserSession|ValueSet|VerificationResult|VisionPrescription)\/[A-Za-z0-9\-.]{1,256}(\/_history\/[A-Za-z0-9\-.]{1,256})?$/}},3302:(ye,j,p)=>{var n=p(8926).default;p(6604).polyfill(),p(5618);const{logRequestError:f,logRequestInfo:v,logResponseInfo:m}=p(6988),o={accept:"application/fhir+json"},d="__response",u="__request";let r,s,h=!1;try{r=p(9426),s=p(9426).HttpsAgent,h=!0}catch(y){v("HTTP Agent is not available")}const i=new WeakMap;function l({status:y,data:E,method:T,headers:D,url:O}){const w={response:{status:y,data:E},config:{method:T,url:O,headers:D}};return f(w),w}ye.exports=class Fl{static lcKeys(E){return E&&Object.keys(E).reduce((T,D)=>(T[D.toLowerCase()]=E[D],T),{})}constructor({baseUrl:E,customHeaders:T={},requestOptions:D={},requestSigner:O}){this.baseUrl=E,this.customHeaders=T,this.baseRequestOptions=D,this.requestSigner=O}set baseUrl(E){if(!E)throw new Error("baseUrl cannot be blank");if("string"!=typeof E)throw new Error("baseUrl must be a string");this.baseUrlValue=E}get baseUrl(){return this.baseUrlValue}static responseFor(E){return E[d]}static requestFor(E){return E[u]}set bearerToken(E){this.authHeader={authorization:`Bearer ${E}`}}requestBuilder(E,T,D,O){const w={...this.baseRequestOptions,...D,method:E,body:(y=O,"string"==typeof y?y:JSON.stringify(y))};var y;let A={};return h||(A={keepalive:!Object.prototype.hasOwnProperty.call(w,"keepalive")||w.keepalive}),Object.assign(w,A,{headers:new Headers(this.mergeHeaders(D.headers))},function(y,E={}){const T={baseUrl:y,agentOptions:E};return h?(i.get(T)||(y.startsWith("https")?i.set(T,{agent:new s(E)}):i.set(T,{agent:new r(E)})),i.get(T)):{}}(this.baseUrl,w)),this.requestSigner&&this.requestSigner(T,w),new Request(T,w)}request(E,T,D={},O){var w=this;return n(function*(){const A=w.expandUrl(T),S=w.requestBuilder(E,A,D,O);v(E,A,S.headers);const M=yield fetch(S),{status:I,headers:b}=M;m({status:I,response:M});const L=yield M.text();let F={};if(L)try{F=JSON.parse(L)}catch(ne){throw F=L,l({status:I,data:F,method:E,headers:b,url:A})}if(!M.ok)throw l({status:I,data:F,method:E,headers:b,url:A});return Object.defineProperty(F,d,{writable:!1,enumerable:!1,value:M}),Object.defineProperty(F,u,{writable:!1,enumerable:!1,value:S}),F})()}get(E,T){var D=this;return n(function*(){return D.request("GET",E,T)})()}delete(E,T){var D=this;return n(function*(){return D.request("DELETE",E,T)})()}put(E,T,D={}){var O=this;return n(function*(){const w={"content-type":"application/fhir+json",...Fl.lcKeys(D.headers)},A={...D,headers:w};return O.request("PUT",E,A,T)})()}post(E,T,D={}){var O=this;return n(function*(){const w={"content-type":"application/fhir+json",...Fl.lcKeys(D.headers)},A={...D,headers:w};return O.request("POST",E,A,T)})()}patch(E,T,D){var O=this;return n(function*(){return O.request("PATCH",E,D,T)})()}expandUrl(E=""){return E.toLowerCase().startsWith("http")?E:this.baseUrl.endsWith("/")&&E.startsWith("/")?this.baseUrl+E.slice(1):this.baseUrl.endsWith("/")||E.startsWith("/")?this.baseUrl+E:`${this.baseUrl}/${E}`}mergeHeaders(E){const{lcKeys:T}=Fl;return{...T(o),...T(this.authHeader),...T(this.customHeaders),...T(E)}}}},6988:(ye,j,p)=>{const n=p(642),f=p(1455)("fhir-kit-client:error"),v=p(1455)("fhir-kit-client:info");function m(s){return n(s)}function o(s){return m(s.raw&&"function"==typeof s.raw?s.raw():s)}ye.exports={logRequestError:function(s){!f.enabled||(f("!!! Error"),s.response&&f(` Status: ${s.response.status}`),s.config&&(f(` ${s.config.method.toUpperCase()}: ${s.config.url}`),f(` Headers: ${o(s.config.headers)}`)),s.response&&s.response.data&&f(m(s.response.data)),f("!!! Request Error"))},logRequestInfo:function(s,i,c){!v.enabled||(i&&v(`Request: ${s.toUpperCase()} ${i.toString()}`),v(`Request Headers: ${o(c)}`))},logResponseInfo:function(s){!v.enabled||(v(`Response: ${s.status}`),s.data&&v(m(s.data)))},logError:function(s){!f.enabled||f(s)}}},8279:ye=>{ye.exports=class{constructor(n){this.httpClient=n}nextPage(n,{headers:f}={}){const v=n.link.find(m=>"next"===m.relation);return v?this.httpClient.get(v.url,{headers:f}):void 0}prevPage(n,{headers:f}={}){const v=n.link.find(m=>m.relation.match(/^prev(ious)?$/));return v?this.httpClient.get(v.url,{headers:f}):void 0}}},6357:(ye,j,p)=>{var n=p(8926).default;const{splitReference:f}=p(7800),{deprecateHeaders:v}=p(4712);ye.exports=class{constructor(m){this.client=m}resolve({reference:m,context:o,headers:d,options:u={}}={}){var h=this;return n(function*(){return void 0===o?m.startsWith("http")?h.resolveAbsoluteReference(m,v(u,d)):h.client.httpClient.get(m,v(u,d)):m.startsWith("#")?h.resolveContainedReference(m,o):h.resolveBundleReference(m,o,v(u,d))})()}resolveAbsoluteReference(m,o){var d=this;return n(function*(){if(m.startsWith(d.client.baseUrl))return d.client.httpClient.get(m,o);const{baseUrl:u,resourceType:h,id:r}=f(m);return new(p(6336))({baseUrl:u}).read({resourceType:h,id:r,options:o})})()}resolveContainedReference(m,o){if(o.contained){const d=m.slice(1),u=o.contained.find(h=>h.id===d);if(u)return u}throw new Error(`Unable to resolve contained reference: ${m}`)}resolveBundleReference(m,o,d){var u=this;return n(function*(){const h=new RegExp(`(^|/)${m}$`),r=o.entry.find(s=>h.test(s.fullUrl));return r?r.resource:u.resolve({reference:m,options:d})})()}}},231:(ye,j,p)=>{const{logError:f}=p(6988);ye.exports={authFromCapability:function(o){const d={};try{return o.rest.forEach(u=>{u.security.extension.find(r=>"http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris"===r.url).extension.forEach(r=>{switch(r.url){case"authorize":d.authorizeUrl=new URL(r.valueUri);break;case"token":d.tokenUrl=new URL(r.valueUri);break;case"register":d.registerUrl=new URL(r.valueUri);break;case"manage":d.manageUrl=new URL(r.valueUri)}})}),d}catch(u){return f(u),d}},authFromWellKnown:function(o){const{authorization_endpoint:d,token_endpoint:u,registration_endpoint:h}=o;return{authorizeUrl:d&&new URL(d),tokenUrl:u&&new URL(u),registerUrl:h&&new URL(h)}}}},7800:(ye,j,p)=>{const n=p(3230),{fhirReferenceRegEx:f}=p(3113);ye.exports={createQueryString:function(d){if(d instanceof Object&&Object.keys(d).length>0)return n.stringify(d)},splitReference:function(d){if(!d.match(f))throw new Error(`${d} is not a recognized FHIR reference`);let u,h=d;d.startsWith("http")&&([,u]=f.exec(d),h=d.slice(u.length),u.endsWith("/")&&(u=u.slice(0,-1)));const[r,s]=h.split("/");return{baseUrl:u,resourceType:r,id:s}},validResourceType:function(d){return!d.startsWith("/")&&!d.includes(":")&&/\S/.test(d)}}},6665:(ye,j,p)=>{var n=p(8443).Token,f=p(3805).Lexer,v=p(210).Interval;function m(){return this}function o(d){return m.call(this),this.tokenSource=d,this.tokens=[],this.index=-1,this.fetchedEOF=!1,this}(o.prototype=Object.create(m.prototype)).constructor=o,o.prototype.mark=function(){return 0},o.prototype.release=function(d){},o.prototype.reset=function(){this.seek(0)},o.prototype.seek=function(d){this.lazyInit(),this.index=this.adjustSeekIndex(d)},o.prototype.get=function(d){return this.lazyInit(),this.tokens[d]},o.prototype.consume=function(){if(!(this.index>=0&&(this.fetchedEOF?this.index0)||this.fetch(u)>=u},o.prototype.fetch=function(d){if(this.fetchedEOF)return 0;for(var u=0;u=this.tokens.length&&(u=this.tokens.length-1);for(var s=d;s=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[u]},o.prototype.adjustSeekIndex=function(d){return d},o.prototype.lazyInit=function(){-1===this.index&&this.setup()},o.prototype.setup=function(){this.sync(0),this.index=this.adjustSeekIndex(0)},o.prototype.setTokenSource=function(d){this.tokenSource=d,this.tokens=[],this.index=-1,this.fetchedEOF=!1},o.prototype.nextTokenOnChannel=function(d,u){if(this.sync(d),d>=this.tokens.length)return-1;for(var h=this.tokens[d];h.channel!==this.channel;){if(h.type===n.EOF)return-1;this.sync(d+=1),h=this.tokens[d]}return d},o.prototype.previousTokenOnChannel=function(d,u){for(;d>=0&&this.tokens[d].channel!==u;)d-=1;return d},o.prototype.getHiddenTokensToRight=function(d,u){if(void 0===u&&(u=-1),this.lazyInit(),d<0||d>=this.tokens.length)throw d+" not in 0.."+this.tokens.length-1;var h=this.nextTokenOnChannel(d+1,f.DEFAULT_TOKEN_CHANNEL);return this.filterForChannel(d+1,-1===h?this.tokens.length-1:h,u)},o.prototype.getHiddenTokensToLeft=function(d,u){if(void 0===u&&(u=-1),this.lazyInit(),d<0||d>=this.tokens.length)throw d+" not in 0.."+this.tokens.length-1;var h=this.previousTokenOnChannel(d-1,f.DEFAULT_TOKEN_CHANNEL);return h===d-1?null:this.filterForChannel(h+1,d-1,u)},o.prototype.filterForChannel=function(d,u,h){for(var r=[],s=d;s=this.tokens.length&&(h=this.tokens.length-1);for(var r="",s=u;s{var n=p(8443).CommonToken;function f(){return this}function v(m){return f.call(this),this.copyText=void 0!==m&&m,this}(v.prototype=Object.create(f.prototype)).constructor=v,v.DEFAULT=new v,v.prototype.create=function(m,o,d,u,h,r,s,i){var c=new n(m,o,u,h,r);return c.line=s,c.column=i,null!==d?c.text=d:this.copyText&&null!==m[1]&&(c.text=m[1].getText(h,r)),c},v.prototype.createThin=function(m,o){var d=new n(null,m);return d.text=o,d},j.$=v},2430:(ye,j,p)=>{var n=p(8443).Token,f=p(6665).B;function v(m,o){return f.call(this,m),this.channel=void 0===o?n.DEFAULT_CHANNEL:o,this}(v.prototype=Object.create(f.prototype)).constructor=v,v.prototype.adjustSeekIndex=function(m){return this.nextTokenOnChannel(m,this.channel)},v.prototype.LB=function(m){if(0===m||this.index-m<0)return null;for(var o=this.index,d=1;d<=m;)o=this.previousTokenOnChannel(o-1,this.channel),d+=1;return o<0?null:this.tokens[o]},v.prototype.LT=function(m){if(this.lazyInit(),0===m)return null;if(m<0)return this.LB(-m);for(var o=this.index,d=1;d{var n=p(8443).Token;function v(m,o){return this.name="",this.strdata=m,this.decodeToUnicodeCodePoints=o||!1,function(m){if(m._index=0,m.data=[],m.decodeToUnicodeCodePoints)for(var o=0;o=this._size)throw"cannot consume EOF";this._index+=1},v.prototype.LA=function(m){if(0===m)return 0;m<0&&(m+=1);var o=this._index+m-1;return o<0||o>=this._size?n.EOF:this.data[o]},v.prototype.LT=function(m){return this.LA(m)},v.prototype.mark=function(){return-1},v.prototype.release=function(m){},v.prototype.seek=function(m){this._index=m<=this._index?m:Math.min(m,this._size)},v.prototype.getText=function(m,o){if(o>=this._size&&(o=this._size-1),m>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var d="",u=m;u<=o;u++)d+=String.fromCodePoint(this.data[u]);return d}return this.strdata.slice(m,o+1)},v.prototype.toString=function(){return this.strdata},j.InputStream=v},210:(ye,j,p)=>{var n=p(8443).Token;function f(m,o){return this.start=m,this.stop=o,this}function v(){this.intervals=null,this.readOnly=!1}f.prototype.contains=function(m){return m>=this.start&&m=d.stop?(this.intervals.pop(m+1),this.reduce(m)):o.stop>=d.start&&(this.intervals[m]=new f(o.start,d.stop),this.intervals.pop(m+1))}},v.prototype.complement=function(m,o){var d=new v;d.addInterval(new f(m,o+1));for(var u=0;uu.start&&m.stop=u.stop?(this.intervals.splice(o,1),o-=1):m.start":"'"+String.fromCharCode(d.start)+"'":"'"+String.fromCharCode(d.start)+"'..'"+String.fromCharCode(d.stop-1)+"'")}return m.length>1?"{"+m.join(", ")+"}":m[0]},v.prototype.toIndexString=function(){for(var m=[],o=0;o":d.start.toString():d.start.toString()+".."+(d.stop-1).toString())}return m.length>1?"{"+m.join(", ")+"}":m[0]},v.prototype.toTokenString=function(m,o){for(var d=[],u=0;u1?"{"+d.join(", ")+"}":d[0]},v.prototype.elementName=function(m,o,d){return d===n.EOF?"":d===n.EPSILON?"":m[d]||o[d]},j.Interval=f,j.V=v},8802:(ye,j,p)=>{var n=p(8065).Set,f=p(8065).BitSet,v=p(8443).Token,m=p(2348).m,d=(p(210),p(210).V),u=p(9855).RuleStopState,h=p(7131).RuleTransition,r=p(7131).NotSetTransition,s=p(7131).WildcardTransition,i=p(7131).AbstractPredicateTransition,c=p(4825),l=c.predictionContextFromRuleContext,g=c.PredictionContext,y=c.SingletonPredictionContext;function E(T){this.atn=T}E.HIT_PRED=v.INVALID_TYPE,E.prototype.getDecisionLookahead=function(T){if(null===T)return null;for(var D=T.transitions.length,O=[],w=0;w{var n=p(8443).Token,f=p(3788).c,v=p(5207).$,m=p(6071).RecognitionException,o=p(6071).LexerNoViableAltException;function u(h){return f.call(this),this._input=h,this._factory=v.DEFAULT,this._tokenFactorySourcePair=[this,h],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=n.DEFAULT_CHANNEL,this._type=n.INVALID_TYPE,this._modeStack=[],this._mode=u.DEFAULT_MODE,this._text=null,this}(u.prototype=Object.create(f.prototype)).constructor=u,u.DEFAULT_MODE=0,u.MORE=-2,u.SKIP=-3,u.DEFAULT_TOKEN_CHANNEL=n.DEFAULT_CHANNEL,u.HIDDEN=n.HIDDEN_CHANNEL,u.MIN_CHAR_VALUE=0,u.MAX_CHAR_VALUE=1114111,u.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._token=null,this._type=n.INVALID_TYPE,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=u.DEFAULT_MODE,this._modeStack=[],this._interp.reset()},u.prototype.nextToken=function(){if(null===this._input)throw"nextToken requires a non-null input stream.";var h=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var r=!1;;){this._type=n.INVALID_TYPE;var s=u.SKIP;try{s=this._interp.match(this._input,this._mode)}catch(i){if(!(i instanceof m))throw console.log(i.stack),i;this.notifyListeners(i),this.recover(i)}if(this._input.LA(1)===n.EOF&&(this._hitEOF=!0),this._type===n.INVALID_TYPE&&(this._type=s),this._type===u.SKIP){r=!0;break}if(this._type!==u.MORE)break}if(!r)return null===this._token&&this.emit(),this._token}}finally{this._input.release(h)}},u.prototype.skip=function(){this._type=u.SKIP},u.prototype.more=function(){this._type=u.MORE},u.prototype.mode=function(h){this._mode=h},u.prototype.pushMode=function(h){this._interp.debug&&console.log("pushMode "+h),this._modeStack.push(this._mode),this.mode(h)},u.prototype.popMode=function(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode},Object.defineProperty(u.prototype,"inputStream",{get:function(){return this._input},set:function(h){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=h,this._tokenFactorySourcePair=[this,this._input]}}),Object.defineProperty(u.prototype,"sourceName",{get:function(){return this._input.sourceName}}),u.prototype.emitToken=function(h){this._token=h},u.prototype.emit=function(){var h=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(h),h},u.prototype.emitEOF=function(){var s=this._factory.create(this._tokenFactorySourcePair,n.EOF,null,n.DEFAULT_CHANNEL,this._input.index,this._input.index-1,this.line,this.column);return this.emitToken(s),s},Object.defineProperty(u.prototype,"type",{get:function(){return this.type},set:function(h){this._type=h}}),Object.defineProperty(u.prototype,"line",{get:function(){return this._interp.line},set:function(h){this._interp.line=h}}),Object.defineProperty(u.prototype,"column",{get:function(){return this._interp.column},set:function(h){this._interp.column=h}}),u.prototype.getCharIndex=function(){return this._input.index},Object.defineProperty(u.prototype,"text",{get:function(){return null!==this._text?this._text:this._interp.getText(this._input)},set:function(h){this._text=h}}),u.prototype.getAllTokens=function(){for(var h=[],r=this.nextToken();r.type!==n.EOF;)h.push(r),r=this.nextToken();return h},u.prototype.notifyListeners=function(h){var i=this._input.getText(this._tokenStartCharIndex,this._input.index),c="token recognition error at: '"+this.getErrorDisplay(i)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,c,h)},u.prototype.getErrorDisplay=function(h){for(var r=[],s=0;s":"\n"===h?"\\n":"\t"===h?"\\t":"\r"===h?"\\r":h},u.prototype.getCharErrorDisplay=function(h){return"'"+this.getErrorDisplayForChar(h)+"'"},u.prototype.recover=function(h){this._input.LA(1)!==n.EOF&&(h instanceof o?this._interp.consume(this._input):this._input.consume())},j.Lexer=u},6554:(ye,j,p)=>{var n=p(8443).Token,f=p(1029).ParseTreeListener,v=p(3788).c,m=p(7675).t,o=p(3031).ATNDeserializer,d=p(7360).W,u=p(1029).TerminalNode,h=p(1029).ErrorNode;function r(c){return f.call(this),this.parser=c,this}function s(c){return v.call(this),this._input=null,this._errHandler=new m,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(c),this}(r.prototype=Object.create(f.prototype)).constructor=r,r.prototype.enterEveryRule=function(c){console.log("enter "+this.parser.ruleNames[c.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},r.prototype.visitTerminal=function(c){console.log("consume "+c.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])},r.prototype.exitEveryRule=function(c){console.log("exit "+this.parser.ruleNames[c.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},(s.prototype=Object.create(v.prototype)).contructor=s,s.bypassAltsAtnCache={},s.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()},s.prototype.match=function(c){var l=this.getCurrentToken();return l.type===c?(this._errHandler.reportMatch(this),this.consume()):(l=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===l.tokenIndex&&this._ctx.addErrorNode(l)),l},s.prototype.matchWildcard=function(){var c=this.getCurrentToken();return c.type>0?(this._errHandler.reportMatch(this),this.consume()):(c=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===c.tokenIndex&&this._ctx.addErrorNode(c)),c},s.prototype.getParseListeners=function(){return this._parseListeners||[]},s.prototype.addParseListener=function(c){if(null===c)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(c)},s.prototype.removeParseListener=function(c){if(null!==this._parseListeners){var l=this._parseListeners.indexOf(c);l>=0&&this._parseListeners.splice(l,1),0===this._parseListeners.length&&(this._parseListeners=null)}},s.prototype.removeParseListeners=function(){this._parseListeners=null},s.prototype.triggerEnterRuleEvent=function(){if(null!==this._parseListeners){var c=this._ctx;this._parseListeners.map(function(l){l.enterEveryRule(c),c.enterRule(l)})}},s.prototype.triggerExitRuleEvent=function(){if(null!==this._parseListeners){var c=this._ctx;this._parseListeners.slice(0).reverse().map(function(l){c.exitRule(l),l.exitEveryRule(c)})}},s.prototype.getTokenFactory=function(){return this._input.tokenSource._factory},s.prototype.setTokenFactory=function(c){this._input.tokenSource._factory=c},s.prototype.getATNWithBypassAlts=function(){var c=this.getSerializedATN();if(null===c)throw"The current parser does not support an ATN with bypass alternatives.";var l=this.bypassAltsAtnCache[c];if(null===l){var g=new d;g.generateRuleBypassTransitions=!0,l=new o(g).deserialize(c),this.bypassAltsAtnCache[c]=l}return l};var i=p(3805).Lexer;s.prototype.compileParseTreePattern=function(c,l,g){if(null===(g=g||null)&&null!==this.getTokenStream()){var y=this.getTokenStream().tokenSource;y instanceof i&&(g=y)}if(null===g)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(g,this).compile(c,l)},s.prototype.getInputStream=function(){return this.getTokenStream()},s.prototype.setInputStream=function(c){this.setTokenStream(c)},s.prototype.getTokenStream=function(){return this._input},s.prototype.setTokenStream=function(c){this._input=null,this.reset(),this._input=c},s.prototype.getCurrentToken=function(){return this._input.LT(1)},s.prototype.notifyErrorListeners=function(c,l,g){g=g||null,null===(l=l||null)&&(l=this.getCurrentToken()),this._syntaxErrors+=1;var y=l.line,E=l.column;this.getErrorListenerDispatch().syntaxError(this,l,y,E,c,g)},s.prototype.consume=function(){var c=this.getCurrentToken();c.type!==n.EOF&&this.getInputStream().consume();var g,l=null!==this._parseListeners&&this._parseListeners.length>0;return(this.buildParseTrees||l)&&((g=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(c):this._ctx.addTokenNode(c)).invokingState=this.state,l&&this._parseListeners.map(function(y){g instanceof h||void 0!==g.isErrorNode&&g.isErrorNode()?y.visitErrorNode(g):g instanceof u&&y.visitTerminal(g)})),c},s.prototype.addContextToParseTree=function(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)},s.prototype.enterRule=function(c,l,g){this.state=l,this._ctx=c,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()},s.prototype.exitRule=function(){this._ctx.stop=this._input.LT(-1),null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx},s.prototype.enterOuterAlt=function(c,l){c.setAltNumber(l),this.buildParseTrees&&this._ctx!==c&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(c)),this._ctx=c},s.prototype.getPrecedence=function(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]},s.prototype.enterRecursionRule=function(c,l,g,y){this.state=l,this._precedenceStack.push(y),this._ctx=c,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()},s.prototype.pushNewRecursionContext=function(c,l,g){var y=this._ctx;y.parentCtx=c,y.invokingState=l,y.stop=this._input.LT(-1),this._ctx=c,this._ctx.start=y.start,this.buildParseTrees&&this._ctx.addChild(y),null!==this._parseListeners&&this.triggerEnterRuleEvent()},s.prototype.unrollRecursionContexts=function(c){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var l=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==c;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=c;l.parentCtx=c,this.buildParseTrees&&null!==c&&c.addChild(l)},s.prototype.getInvokingContext=function(c){for(var l=this._ctx;null!==l;){if(l.ruleIndex===c)return l;l=l.parentCtx}return null},s.prototype.precpred=function(c,l){return l>=this._precedenceStack[this._precedenceStack.length-1]},s.prototype.inContext=function(c){return!1},s.prototype.isExpectedToken=function(c){var l=this._interp.atn,g=this._ctx,E=l.nextTokens(l.states[this.state]);if(E.contains(c))return!0;if(!E.contains(n.EPSILON))return!1;for(;null!==g&&g.invokingState>=0&&E.contains(n.EPSILON);){if((E=l.nextTokens(l.states[g.invokingState].transitions[0].followState)).contains(c))return!0;g=g.parentCtx}return!(!E.contains(n.EPSILON)||c!==n.EOF)},s.prototype.getExpectedTokens=function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)},s.prototype.getExpectedTokensWithinCurrentRule=function(){var c=this._interp.atn;return c.nextTokens(c.states[this.state])},s.prototype.getRuleIndex=function(c){var l=this.getRuleIndexMap()[c];return null!==l?l:-1},s.prototype.getRuleInvocationStack=function(c){null===(c=c||null)&&(c=this._ctx);for(var l=[];null!==c;){var g=c.ruleIndex;l.push(g<0?"n/a":this.ruleNames[g]),c=c.parentCtx}return l},s.prototype.getDFAStrings=function(){return this._interp.decisionToDFA.toString()},s.prototype.dumpDFA=function(){for(var c=!1,l=0;l0&&(c&&console.log(),this.printer.println("Decision "+g.decision+":"),this.printer.print(g.toString(this.literalNames,this.symbolicNames)),c=!0)}},s.prototype.getSourceName=function(){return this._input.sourceName},s.prototype.setTrace=function(c){c?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new r(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)},j.Parser=s},911:(ye,j,p)=>{var n=p(61).r,f=p(1029),v=f.INVALID_INTERVAL,m=f.TerminalNode,o=f.TerminalNodeImpl,d=f.ErrorNodeImpl,u=p(210).Interval;function h(s,i){n.call(this,s=s||null,i=i||null),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}function r(s,i,c){return h.call(s,i),this.ruleIndex=c,this}(h.prototype=Object.create(n.prototype)).constructor=h,h.prototype.copyFrom=function(s){this.parentCtx=s.parentCtx,this.invokingState=s.invokingState,this.children=null,this.start=s.start,this.stop=s.stop,s.children&&(this.children=[],s.children.map(function(i){i instanceof d&&(this.children.push(i),i.parentCtx=this)},this))},h.prototype.enterRule=function(s){},h.prototype.exitRule=function(s){},h.prototype.addChild=function(s){return null===this.children&&(this.children=[]),this.children.push(s),s},h.prototype.removeLastChild=function(){null!==this.children&&this.children.pop()},h.prototype.addTokenNode=function(s){var i=new o(s);return this.addChild(i),i.parentCtx=this,i},h.prototype.addErrorNode=function(s){var i=new d(s);return this.addChild(i),i.parentCtx=this,i},h.prototype.getChild=function(s,i){if(null===this.children||s<0||s>=this.children.length)return null;if(null===(i=i||null))return this.children[s];for(var c=0;c=this.children.length)return null;for(var c=0;c{var n=p(61).r,f=p(8065).Hash,v=p(8065).Map;function m(T){this.cachedHashCode=T}function o(){return this.cache=new v,this}function d(T,D){var O,w=new f;null!==T?w.update(T,D):w.update(1),O=w.finish(),m.call(this,O),this.parentCtx=T,this.returnState=D}function u(){return d.call(this,null,m.EMPTY_RETURN_STATE),this}function h(T,D){var O=new f;O.update(T,D);var w=O.finish();return m.call(this,w),this.parents=T,this.returnStates=D,this}m.EMPTY=null,m.EMPTY_RETURN_STATE=2147483647,m.id=m.globalNodeCount=1,m.prototype.isEmpty=function(){return this===m.EMPTY},m.prototype.hasEmptyPath=function(){return this.getReturnState(this.length-1)===m.EMPTY_RETURN_STATE},m.prototype.hashCode=function(){return this.cachedHashCode},m.prototype.updateHashCode=function(T){T.update(this.cachedHashCode)},o.prototype.add=function(T){if(T===m.EMPTY)return m.EMPTY;var D=this.cache.get(T)||null;return null!==D?D:(this.cache.put(T,T),T)},o.prototype.get=function(T){return this.cache.get(T)||null},Object.defineProperty(o.prototype,"length",{get:function(){return this.cache.length}}),(d.prototype=Object.create(m.prototype)).contructor=d,d.create=function(T,D){return D===m.EMPTY_RETURN_STATE&&null===T?m.EMPTY:new d(T,D)},Object.defineProperty(d.prototype,"length",{get:function(){return 1}}),d.prototype.getParent=function(T){return this.parentCtx},d.prototype.getReturnState=function(T){return this.returnState},d.prototype.equals=function(T){return this===T||T instanceof d&&this.hashCode()===T.hashCode()&&this.returnState===T.returnState&&(null==this.parentCtx?null==T.parentCtx:this.parentCtx.equals(T.parentCtx))},d.prototype.toString=function(){var T=null===this.parentCtx?"":this.parentCtx.toString();return 0===T.length?this.returnState===m.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+T},(u.prototype=Object.create(d.prototype)).constructor=u,u.prototype.isEmpty=function(){return!0},u.prototype.getParent=function(T){return null},u.prototype.getReturnState=function(T){return this.returnState},u.prototype.equals=function(T){return this===T},u.prototype.toString=function(){return"$"},m.EMPTY=new u,(h.prototype=Object.create(m.prototype)).constructor=h,h.prototype.isEmpty=function(){return this.returnStates[0]===m.EMPTY_RETURN_STATE},Object.defineProperty(h.prototype,"length",{get:function(){return this.returnStates.length}}),h.prototype.getParent=function(T){return this.parents[T]},h.prototype.getReturnState=function(T){return this.returnStates[T]},h.prototype.equals=function(T){return this===T||T instanceof h&&this.hashCode()===T.hashCode()&&this.returnStates===T.returnStates&&this.parents===T.parents},h.prototype.toString=function(){if(this.isEmpty())return"[]";for(var T="[",D=0;D0&&(T+=", "),this.returnStates[D]!==m.EMPTY_RETURN_STATE?(T+=this.returnStates[D],null!==this.parents[D]?T=T+" "+this.parents[D]:T+="null"):T+="$";return T+"]"},j.merge=function s(T,D,O,w){if(T===D)return T;if(T instanceof d&&D instanceof d)return function(T,D,O,w){if(null!==w){var A=w.get(T,D);if(null!==A||null!==(A=w.get(D,T)))return A}var S=function(T,D,O){if(O){if(T===m.EMPTY||D===m.EMPTY)return m.EMPTY}else{if(T===m.EMPTY&&D===m.EMPTY)return m.EMPTY;if(T===m.EMPTY)return new h([D.parentCtx,null],[D.returnState,m.EMPTY_RETURN_STATE]);if(D===m.EMPTY)return new h([T.parentCtx,null],[T.returnState,m.EMPTY_RETURN_STATE])}return null}(T,D,O);if(null!==S)return null!==w&&w.set(T,D,S),S;if(T.returnState===D.returnState){var M=s(T.parentCtx,D.parentCtx,O,w);if(M===T.parentCtx)return T;if(M===D.parentCtx)return D;var I=d.create(M,T.returnState);return null!==w&&w.set(T,D,I),I}var b=null;if((T===D||null!==T.parentCtx&&T.parentCtx===D.parentCtx)&&(b=T.parentCtx),null!==b){var F=[T.returnState,D.returnState];T.returnState>D.returnState&&(F[0]=D.returnState,F[1]=T.returnState);var L=new h(ne=[b,b],F);return null!==w&&w.set(T,D,L),L}F=[T.returnState,D.returnState];var ne=[T.parentCtx,D.parentCtx];T.returnState>D.returnState&&(F[0]=D.returnState,F[1]=T.returnState,ne=[D.parentCtx,T.parentCtx]);var Y=new h(ne,F);return null!==w&&w.set(T,D,Y),Y}(T,D,O,w);if(O){if(T instanceof u)return T;if(D instanceof u)return D}return T instanceof d&&(T=new h([T.getParent()],[T.returnState])),D instanceof d&&(D=new h([D.getParent()],[D.returnState])),function(T,D,O,w){if(null!==w){var A=w.get(T,D);if(null!==A||null!==(A=w.get(D,T)))return A}for(var S=0,M=0,I=0,b=[],L=[];S{var n=p(8443).Token,f=p(1911).s,v=p(1911).N;function m(){return this._listeners=[f.INSTANCE],this._interp=null,this._stateNumber=-1,this}m.tokenTypeMapCache={},m.ruleIndexMapCache={},m.prototype.checkVersion=function(o){"4.8"!==o&&console.log("ANTLR runtime and generated code versions disagree: 4.8!="+o)},m.prototype.addErrorListener=function(o){this._listeners.push(o)},m.prototype.removeErrorListeners=function(){this._listeners=[]},m.prototype.getTokenTypeMap=function(){var o=this.getTokenNames();if(null===o)throw"The current recognizer does not provide a list of token names.";var d=this.tokenTypeMapCache[o];return void 0===d&&((d=o.reduce(function(u,h,r){u[h]=r})).EOF=n.EOF,this.tokenTypeMapCache[o]=d),d},m.prototype.getRuleIndexMap=function(){var o=this.ruleNames;if(null===o)throw"The current recognizer does not provide a list of rule names.";var d=this.ruleIndexMapCache[o];return void 0===d&&(d=o.reduce(function(u,h,r){u[h]=r}),this.ruleIndexMapCache[o]=d),d},m.prototype.getTokenType=function(o){var d=this.getTokenTypeMap()[o];return void 0!==d?d:n.INVALID_TYPE},m.prototype.getErrorHeader=function(o){return"line "+o.getOffendingToken().line+":"+o.getOffendingToken().column},m.prototype.getTokenErrorDisplay=function(o){if(null===o)return"";var d=o.text;return null===d&&(d=o.type===n.EOF?"":"<"+o.type+">"),"'"+(d=d.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"))+"'"},m.prototype.getErrorListenerDispatch=function(){return new v(this._listeners)},m.prototype.sempred=function(o,d,u){return!0},m.prototype.precpred=function(o,d){return!0},Object.defineProperty(m.prototype,"state",{get:function(){return this._stateNumber},set:function(o){this._stateNumber=o}}),j.c=m},61:(ye,j,p)=>{var n=p(1029).RuleNode,f=p(1029).INVALID_INTERVAL,v=p(1828).INVALID_ALT_NUMBER;function m(d,u){return n.call(this),this.parentCtx=d||null,this.invokingState=u||-1,this}(m.prototype=Object.create(n.prototype)).constructor=m,m.prototype.depth=function(){for(var d=0,u=this;null!==u;)u=u.parentCtx,d+=1;return d},m.prototype.isEmpty=function(){return-1===this.invokingState},m.prototype.getSourceInterval=function(){return f},m.prototype.getRuleContext=function(){return this},m.prototype.getPayload=function(){return this},m.prototype.getText=function(){return 0===this.getChildCount()?"":this.children.map(function(d){return d.getText()}).join("")},m.prototype.getAltNumber=function(){return v},m.prototype.setAltNumber=function(d){},m.prototype.getChild=function(d){return null},m.prototype.getChildCount=function(){return 0},m.prototype.accept=function(d){return d.visitChildren(this)},j.r=m;var o=p(2565).Trees;m.prototype.toStringTree=function(d,u){return o.toStringTree(this,d,u)},m.prototype.toString=function(d,u){d=d||null,u=u||null;for(var h=this,r="[";null!==h&&h!==u;){if(null===d)h.isEmpty()||(r+=h.invokingState);else{var s=h.ruleIndex;r+=s>=0&&s{function p(){return this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null,this}function n(f,v,m,o,d){return p.call(this),this.source=void 0!==f?f:n.EMPTY_SOURCE,this.type=void 0!==v?v:null,this.channel=void 0!==m?m:p.DEFAULT_CHANNEL,this.start=void 0!==o?o:-1,this.stop=void 0!==d?d:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=f[0].line,this.column=f[0].column):this.column=-1,this}p.INVALID_TYPE=0,p.EPSILON=-2,p.MIN_USER_TOKEN_TYPE=1,p.EOF=-1,p.DEFAULT_CHANNEL=0,p.HIDDEN_CHANNEL=1,Object.defineProperty(p.prototype,"text",{get:function(){return this._text},set:function(f){this._text=f}}),p.prototype.getTokenSource=function(){return this.source[0]},p.prototype.getInputStream=function(){return this.source[1]},(n.prototype=Object.create(p.prototype)).constructor=n,n.EMPTY_SOURCE=[null,null],n.prototype.clone=function(){var f=new n(this.source,this.type,this.channel,this.start,this.stop);return f.tokenIndex=this.tokenIndex,f.line=this.line,f.column=this.column,f.text=this.text,f},Object.defineProperty(n.prototype,"text",{get:function(){if(null!==this._text)return this._text;var f=this.getInputStream();if(null===f)return null;var v=f.size;return this.start"},set:function(f){this._text=f}}),n.prototype.toString=function(){var f=this.text;return f=null!==f?f.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+f+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"},j.Token=p,j.CommonToken=n},8065:(ye,j)=>{function p(l){return"["+l.join(", ")+"]"}function n(l,g){return l.equals(g)}function f(l){return l.hashCode()}function v(l,g){return this.data={},this.hashFunction=l||f,this.equalsFunction=g||n,this}function m(){return this.data=[],this}function o(l,g){return this.data={},this.hashFunction=l||f,this.equalsFunction=g||n,this}function d(){return this.data={},this}function u(l){return this.defaultMapCtor=l||o,this.cacheMap=new this.defaultMapCtor,this}function h(){return this.count=0,this.hash=0,this}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){var l,g,y,E,T,O,A,S,M=this.toString();for(g=M.length-(l=3&M.length),y=String.prototype.seed,T=3432918353,O=461845907,S=0;S>>16)*T&65535)<<16)&4294967295)<<15|A>>>17))*O+(((A>>>16)*O&65535)<<16)&4294967295)<<13|y>>>19))+((5*(y>>>16)&65535)<<16)&4294967295))+((58964+(E>>>16)&65535)<<16);switch(A=0,l){case 3:A^=(255&M.charCodeAt(S+2))<<16;case 2:A^=(255&M.charCodeAt(S+1))<<8;case 1:y^=A=(65535&(A=(A=(65535&(A^=255&M.charCodeAt(S)))*T+(((A>>>16)*T&65535)<<16)&4294967295)<<15|A>>>17))*O+(((A>>>16)*O&65535)<<16)&4294967295}return y^=M.length,y=2246822507*(65535&(y^=y>>>16))+((2246822507*(y>>>16)&65535)<<16)&4294967295,y=3266489909*(65535&(y^=y>>>13))+((3266489909*(y>>>16)&65535)<<16)&4294967295,(y^=y>>>16)>>>0},Object.defineProperty(v.prototype,"length",{get:function(){var l=0;for(var g in this.data)0===g.indexOf("hash_")&&(l+=this.data[g].length);return l}}),v.prototype.add=function(l){var y="hash_"+this.hashFunction(l);if(y in this.data){for(var E=this.data[y],T=0;T>>17,y*=461845907,this.count=this.count+1;var E=this.hash^y;this.hash=E=5*(E=E<<13|E>>>19)+3864292196}}},h.prototype.finish=function(){var l=this.hash^4*this.count;return l^=l>>>16,l*=2246822507,l^=l>>>13,(l*=3266489909)^l>>>16},u.prototype.get=function(l,g){var y=this.cacheMap.get(l)||null;return null===y?null:y.get(g)||null},u.prototype.set=function(l,g,y){var E=this.cacheMap.get(l)||null;null===E&&(E=new this.defaultMapCtor,this.cacheMap.put(l,E)),E.put(g,y)},j.Hash=h,j.Set=v,j.Map=o,j.BitSet=m,j.AltDict=d,j.DoubleDict=u,j.hashStuff=function(){var l=new h;return l.update.apply(l,arguments),l.finish()},j.escapeWhitespace=function(l,g){return l=l.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),g&&(l=l.replace(/ /g,"\xb7")),l},j.arrayToString=p,j.titleCase=function(l){return l.replace(/\w\S*/g,function(g){return g.charAt(0).toUpperCase()+g.substr(1)})},j.equalArrays=function(l,g){if(!Array.isArray(l)||!Array.isArray(g))return!1;if(l==g)return!0;if(l.length!=g.length)return!1;for(var y=0;y{var n=p(8802).u,f=p(210).V;function v(o,d){return this.grammarType=o,this.maxTokenType=d,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[],this}v.prototype.nextTokensInContext=function(o,d){return new n(this).LOOK(o,null,d)},v.prototype.nextTokensNoContext=function(o){return null!==o.nextTokenWithinRule||(o.nextTokenWithinRule=this.nextTokensInContext(o,null),o.nextTokenWithinRule.readOnly=!0),o.nextTokenWithinRule},v.prototype.nextTokens=function(o,d){return void 0===d?this.nextTokensNoContext(o):this.nextTokensInContext(o,d)},v.prototype.addState=function(o){null!==o&&(o.atn=this,o.stateNumber=this.states.length),this.states.push(o)},v.prototype.removeState=function(o){this.states[o.stateNumber]=null},v.prototype.defineDecisionState=function(o){return this.decisionToState.push(o),o.decision=this.decisionToState.length-1,o.decision},v.prototype.getDecisionState=function(o){return 0===this.decisionToState.length?null:this.decisionToState[o]};var m=p(8443).Token;v.prototype.getExpectedTokens=function(o,d){if(o<0||o>=this.states.length)throw"Invalid state number.";var h=this.nextTokens(this.states[o]);if(!h.contains(m.EPSILON))return h;var r=new f;for(r.addSet(h),r.removeOne(m.EPSILON);null!==d&&d.invokingState>=0&&h.contains(m.EPSILON);)h=this.nextTokens(this.states[d.invokingState].transitions[0].followState),r.addSet(h),r.removeOne(m.EPSILON),d=d.parentCtx;return h.contains(m.EPSILON)&&r.addOne(m.EOF),r},v.INVALID_ALT_NUMBER=0,j.ATN=v},2348:(ye,j,p)=>{var n=p(9855).DecisionState,f=p(4636).dP,v=p(8065).Hash;function m(u,h){if(null===u){var r={state:null,alt:null,context:null,semanticContext:null};return h&&(r.reachesIntoOuterContext=0),r}var s={};return s.state=u.state||null,s.alt=void 0===u.alt?null:u.alt,s.context=u.context||null,s.semanticContext=u.semanticContext||null,h&&(s.reachesIntoOuterContext=u.reachesIntoOuterContext||0,s.precedenceFilterSuppressed=u.precedenceFilterSuppressed||!1),s}function o(u,h){return this.checkContext(u,h),u=m(u),h=m(h,!0),this.state=null!==u.state?u.state:h.state,this.alt=null!==u.alt?u.alt:h.alt,this.context=null!==u.context?u.context:h.context,this.semanticContext=null!==u.semanticContext?u.semanticContext:null!==h.semanticContext?h.semanticContext:f.NONE,this.reachesIntoOuterContext=h.reachesIntoOuterContext,this.precedenceFilterSuppressed=h.precedenceFilterSuppressed,this}function d(u,h){return o.call(this,u,h),this.lexerActionExecutor=u.lexerActionExecutor||(null!==h?h.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==h&&this.checkNonGreedyDecision(h,this.state),this}o.prototype.checkContext=function(u,h){null==u.context&&(null===h||null==h.context)&&(this.context=null)},o.prototype.hashCode=function(){var u=new v;return this.updateHashCode(u),u.finish()},o.prototype.updateHashCode=function(u){u.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)},o.prototype.equals=function(u){return this===u||u instanceof o&&this.state.stateNumber===u.state.stateNumber&&this.alt===u.alt&&(null===this.context?null===u.context:this.context.equals(u.context))&&this.semanticContext.equals(u.semanticContext)&&this.precedenceFilterSuppressed===u.precedenceFilterSuppressed},o.prototype.hashCodeForConfigSet=function(){var u=new v;return u.update(this.state.stateNumber,this.alt,this.semanticContext),u.finish()},o.prototype.equalsForConfigSet=function(u){return this===u||u instanceof o&&this.state.stateNumber===u.state.stateNumber&&this.alt===u.alt&&this.semanticContext.equals(u.semanticContext)},o.prototype.toString=function(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==f.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"},(d.prototype=Object.create(o.prototype)).constructor=d,d.prototype.updateHashCode=function(u){u.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)},d.prototype.equals=function(u){return this===u||u instanceof d&&this.passedThroughNonGreedyDecision==u.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(u.lexerActionExecutor):!u.lexerActionExecutor)&&o.prototype.equals.call(this,u)},d.prototype.hashCodeForConfigSet=d.prototype.hashCode,d.prototype.equalsForConfigSet=d.prototype.equals,d.prototype.checkNonGreedyDecision=function(u,h){return u.passedThroughNonGreedyDecision||h instanceof n&&h.nonGreedy},j.m=o,j.P=d},9186:(ye,j,p)=>{var n=p(1828).ATN,f=p(8065),v=f.Hash,m=f.Set,o=p(4636).dP,d=p(4825).merge;function u(i){return i.hashCodeForConfigSet()}function h(i,c){return i===c||null!==i&&null!==c&&i.equalsForConfigSet(c)}function r(i){return this.configLookup=new m(u,h),this.fullCtx=void 0===i||i,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1,this}function s(){return r.call(this),this.configLookup=new m,this}r.prototype.add=function(i,c){if(void 0===c&&(c=null),this.readOnly)throw"This set is readonly";i.semanticContext!==o.NONE&&(this.hasSemanticContext=!0),i.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var l=this.configLookup.add(i);if(l===i)return this.cachedHashCode=-1,this.configs.push(i),!0;var y=d(l.context,i.context,!this.fullCtx,c);return l.reachesIntoOuterContext=Math.max(l.reachesIntoOuterContext,i.reachesIntoOuterContext),i.precedenceFilterSuppressed&&(l.precedenceFilterSuppressed=!0),l.context=y,!0},r.prototype.getStates=function(){for(var i=new m,c=0;c{function p(n){return void 0===n&&(n=null),this.readOnly=!1,this.verifyATN=null===n||n.verifyATN,this.generateRuleBypassTransitions=null!==n&&n.generateRuleBypassTransitions,this}(p.defaultOptions=new p).readOnly=!0,j.W=p},3031:(ye,j,p)=>{var n=p(8443).Token,f=p(1828).ATN,v=p(6796).n,m=p(9855),o=m.ATNState,d=m.BasicState,u=m.DecisionState,h=m.BlockStartState,r=m.BlockEndState,s=m.LoopEndState,i=m.RuleStartState,c=m.RuleStopState,l=m.TokensStartState,g=m.PlusLoopbackState,y=m.StarLoopbackState,E=m.StarLoopEntryState,T=m.PlusBlockStartState,D=m.StarBlockStartState,O=m.BasicBlockStartState,w=p(7131),A=w.Transition,S=w.AtomTransition,M=w.SetTransition,I=w.NotSetTransition,b=w.RuleTransition,L=w.RangeTransition,F=w.ActionTransition,ne=w.EpsilonTransition,Y=w.WildcardTransition,Q=w.PredicateTransition,te=w.PrecedencePredicateTransition,$=p(210).V,ie=(p(210),p(7360).W),ae=p(3822),le=ae.LexerActionType,Oe=ae.LexerSkipAction,Le=ae.LexerChannelAction,Ye=ae.LexerCustomAction,Je=ae.LexerMoreAction,gt=ae.LexerTypeAction,Ue=ae.LexerPushModeAction,tt=ae.LexerPopModeAction,at=ae.LexerModeAction,vt="59627784-3BE5-417A-B9EB-8131A7286089",yt=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",vt];function At(Ee,fe){var H=[];return H[Ee-1]=fe,H.map(function(x){return fe})}function Tt(Ee){return null==Ee&&(Ee=ie.defaultOptions),this.deserializationOptions=Ee,this.stateFactories=null,this.actionFactories=null,this}Tt.prototype.isFeatureSupported=function(Ee,fe){var H=yt.indexOf(Ee);return!(H<0)&&yt.indexOf(fe)>=H},Tt.prototype.deserialize=function(Ee){this.reset(Ee),this.checkVersion(),this.checkUUID();var fe=this.readATN();this.readStates(fe),this.readRules(fe),this.readModes(fe);var H=[];return this.readSets(fe,H,this.readInt.bind(this)),this.isFeatureSupported(vt,this.uuid)&&this.readSets(fe,H,this.readInt32.bind(this)),this.readEdges(fe,H),this.readDecisions(fe),this.readLexerActions(fe),this.markPrecedenceDecisions(fe),this.verifyATN(fe),this.deserializationOptions.generateRuleBypassTransitions&&fe.grammarType===v.PARSER&&(this.generateRuleBypassTransitions(fe),this.verifyATN(fe)),fe},Tt.prototype.reset=function(Ee){var H=Ee.split("").map(function(x){var U=x.charCodeAt(0);return U>1?U-2:U+65534});H[0]=Ee.charCodeAt(0),this.data=H,this.pos=0},Tt.prototype.checkVersion=function(){var Ee=this.readInt();if(3!==Ee)throw"Could not deserialize ATN with version "+Ee+" (expected 3)."},Tt.prototype.checkUUID=function(){var Ee=this.readUUID();if(yt.indexOf(Ee)<0)throw"59627784-3BE5-417A-B9EB-8131A7286089";this.uuid=Ee},Tt.prototype.readATN=function(){var Ee=this.readInt(),fe=this.readInt();return new f(Ee,fe)},Tt.prototype.readStates=function(Ee){for(var fe,H,x,U=[],Z=[],_e=this.readInt(),Be=0;Be<_e;Be++){var $e=this.readInt();if($e!==o.INVALID_TYPE){var st=this.readInt();65535===st&&(st=-1);var ut=this.stateFactory($e,st);if($e===o.LOOP_END){var St=this.readInt();U.push([ut,St])}else if(ut instanceof h){var Xt=this.readInt();Z.push([ut,Xt])}Ee.addState(ut)}else Ee.addState(null)}for(fe=0;fe0;)U.addTransition(ut.transitions[St-1]),ut.transitions=ut.transitions.slice(-1);Ee.ruleToStartState[fe].addTransition(new ne(U)),Z.addTransition(new ne(Be));var Xt=new d;Ee.addState(Xt),Xt.addTransition(new S(Z,Ee.ruleToTokenType[fe])),U.addTransition(new ne(Xt))},Tt.prototype.stateIsEndStateFor=function(Ee,fe){if(Ee.ruleIndex!==fe||!(Ee instanceof E))return null;var H=Ee.transitions[Ee.transitions.length-1].target;return H instanceof s&&H.epsilonOnlyTransitions&&H.transitions[0].target instanceof c?Ee:null},Tt.prototype.markPrecedenceDecisions=function(Ee){for(var fe=0;fe=0:H.transitions.length<=1||H instanceof c)}},Tt.prototype.checkCondition=function(Ee,fe){if(!Ee)throw null==fe&&(fe="IllegalState"),fe},Tt.prototype.readInt=function(){return this.data[this.pos++]},Tt.prototype.readInt32=function(){return this.readInt()|this.readInt()<<16},Tt.prototype.readLong=function(){return 4294967295&this.readInt32()|this.readInt32()<<32};var Et=function(){for(var Ee=[],fe=0;fe<256;fe++)Ee[fe]=(fe+256).toString(16).substr(1).toUpperCase();return Ee}();Tt.prototype.readUUID=function(){for(var Ee=[],fe=7;fe>=0;fe--){var H=this.readInt();Ee[2*fe+1]=255&H,Ee[2*fe]=H>>8&255}return Et[Ee[0]]+Et[Ee[1]]+Et[Ee[2]]+Et[Ee[3]]+"-"+Et[Ee[4]]+Et[Ee[5]]+"-"+Et[Ee[6]]+Et[Ee[7]]+"-"+Et[Ee[8]]+Et[Ee[9]]+"-"+Et[Ee[10]]+Et[Ee[11]]+Et[Ee[12]]+Et[Ee[13]]+Et[Ee[14]]+Et[Ee[15]]},Tt.prototype.edgeFactory=function(Ee,fe,H,x,U,Z,_e,Be){var $e=Ee.states[x];switch(fe){case A.EPSILON:return new ne($e);case A.RANGE:return new L($e,0!==_e?n.EOF:U,Z);case A.RULE:return new b(Ee.states[U],Z,_e,$e);case A.PREDICATE:return new Q($e,U,Z,0!==_e);case A.PRECEDENCE:return new te($e,U);case A.ATOM:return new S($e,0!==_e?n.EOF:U);case A.ACTION:return new F($e,U,Z,0!==_e);case A.SET:return new M($e,Be[U]);case A.NOT_SET:return new I($e,Be[U]);case A.WILDCARD:return new Y($e);default:throw"The specified transition type: "+fe+" is not valid."}},Tt.prototype.stateFactory=function(Ee,fe){if(null===this.stateFactories){var H=[];H[o.INVALID_TYPE]=null,H[o.BASIC]=function(){return new d},H[o.RULE_START]=function(){return new i},H[o.BLOCK_START]=function(){return new O},H[o.PLUS_BLOCK_START]=function(){return new T},H[o.STAR_BLOCK_START]=function(){return new D},H[o.TOKEN_START]=function(){return new l},H[o.RULE_STOP]=function(){return new c},H[o.BLOCK_END]=function(){return new r},H[o.STAR_LOOP_BACK]=function(){return new y},H[o.STAR_LOOP_ENTRY]=function(){return new E},H[o.PLUS_LOOP_BACK]=function(){return new g},H[o.LOOP_END]=function(){return new s},this.stateFactories=H}if(Ee>this.stateFactories.length||null===this.stateFactories[Ee])throw"The specified state type "+Ee+" is not valid.";var x=this.stateFactories[Ee]();if(null!==x)return x.ruleIndex=fe,x},Tt.prototype.lexerActionFactory=function(Ee,fe,H){if(null===this.actionFactories){var x=[];x[le.CHANNEL]=function(U,Z){return new Le(U)},x[le.CUSTOM]=function(U,Z){return new Ye(U,Z)},x[le.MODE]=function(U,Z){return new at(U)},x[le.MORE]=function(U,Z){return Je.INSTANCE},x[le.POP_MODE]=function(U,Z){return tt.INSTANCE},x[le.PUSH_MODE]=function(U,Z){return new Ue(U)},x[le.SKIP]=function(U,Z){return Oe.INSTANCE},x[le.TYPE]=function(U,Z){return new gt(U)},this.actionFactories=x}if(Ee>this.actionFactories.length||null===this.actionFactories[Ee])throw"The specified lexer action type "+Ee+" is not valid.";return this.actionFactories[Ee](fe,H)},j.ATNDeserializer=Tt},7601:(ye,j,p)=>{var n=p(1399).B,f=p(9186).B,v=p(4825).getCachedPredictionContext,m=p(8065).Map;function o(d,u){return this.atn=d,this.sharedContextCache=u,this}o.ERROR=new n(2147483647,new f),o.prototype.getCachedContext=function(d){if(null===this.sharedContextCache)return d;var u=new m;return v(d,this.sharedContextCache,u)},j.f=o},9855:(ye,j)=>{function n(){return this.atn=null,this.stateNumber=n.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function f(){return n.call(this),this.stateType=n.BASIC,this}function v(){return n.call(this),this.decision=-1,this.nonGreedy=!1,this}function m(){return v.call(this),this.endState=null,this}function o(){return m.call(this),this.stateType=n.BLOCK_START,this}function d(){return n.call(this),this.stateType=n.BLOCK_END,this.startState=null,this}function u(){return n.call(this),this.stateType=n.RULE_STOP,this}function h(){return n.call(this),this.stateType=n.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function r(){return v.call(this),this.stateType=n.PLUS_LOOP_BACK,this}function s(){return m.call(this),this.stateType=n.PLUS_BLOCK_START,this.loopBackState=null,this}function i(){return m.call(this),this.stateType=n.STAR_BLOCK_START,this}function c(){return n.call(this),this.stateType=n.STAR_LOOP_BACK,this}function l(){return v.call(this),this.stateType=n.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}function g(){return n.call(this),this.stateType=n.LOOP_END,this.loopBackState=null,this}function y(){return v.call(this),this.stateType=n.TOKEN_START,this}n.INVALID_TYPE=0,n.BASIC=1,n.RULE_START=2,n.BLOCK_START=3,n.PLUS_BLOCK_START=4,n.STAR_BLOCK_START=5,n.TOKEN_START=6,n.RULE_STOP=7,n.BLOCK_END=8,n.STAR_LOOP_BACK=9,n.STAR_LOOP_ENTRY=10,n.PLUS_LOOP_BACK=11,n.LOOP_END=12,n.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],n.INVALID_STATE_NUMBER=-1,n.prototype.toString=function(){return this.stateNumber},n.prototype.equals=function(E){return E instanceof n&&this.stateNumber===E.stateNumber},n.prototype.isNonGreedyExitState=function(){return!1},n.prototype.addTransition=function(E,T){void 0===T&&(T=-1),0===this.transitions.length?this.epsilonOnlyTransitions=E.isEpsilon:this.epsilonOnlyTransitions!==E.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===T?this.transitions.push(E):this.transitions.splice(T,1,E)},(f.prototype=Object.create(n.prototype)).constructor=f,(v.prototype=Object.create(n.prototype)).constructor=v,(m.prototype=Object.create(v.prototype)).constructor=m,(o.prototype=Object.create(m.prototype)).constructor=o,(d.prototype=Object.create(n.prototype)).constructor=d,(u.prototype=Object.create(n.prototype)).constructor=u,(h.prototype=Object.create(n.prototype)).constructor=h,(r.prototype=Object.create(v.prototype)).constructor=r,(s.prototype=Object.create(m.prototype)).constructor=s,(i.prototype=Object.create(m.prototype)).constructor=i,(c.prototype=Object.create(n.prototype)).constructor=c,(l.prototype=Object.create(v.prototype)).constructor=l,(g.prototype=Object.create(n.prototype)).constructor=g,(y.prototype=Object.create(v.prototype)).constructor=y,j.ATNState=n,j.BasicState=f,j.DecisionState=v,j.BlockStartState=m,j.BlockEndState=d,j.LoopEndState=g,j.RuleStartState=h,j.RuleStopState=u,j.TokensStartState=y,j.PlusLoopbackState=r,j.StarLoopbackState=c,j.StarLoopEntryState=l,j.PlusBlockStartState=s,j.StarBlockStartState=i,j.BasicBlockStartState=o},6796:(ye,j)=>{function p(){}p.LEXER=0,p.PARSER=1,j.n=p},6244:(ye,j,p)=>{var n=p(8443).Token,f=p(3805).Lexer,v=p(1828).ATN,m=p(7601).f,o=p(1399).B,u=(p(9186),p(9186).s),h=p(4825).PredictionContext,r=p(4825).SingletonPredictionContext,s=p(9855).RuleStopState,i=p(2348).P,c=p(7131).Transition,l=p(1305).W,g=p(6071).LexerNoViableAltException;function y(D){D.index=-1,D.line=0,D.column=-1,D.dfaState=null}function E(){return y(this),this}function T(D,O,w,A){return m.call(this,O,A),this.decisionToDFA=w,this.recog=D,this.startIndex=-1,this.line=1,this.column=0,this.mode=f.DEFAULT_MODE,this.prevAccept=new E,this}E.prototype.reset=function(){y(this)},(T.prototype=Object.create(m.prototype)).constructor=T,T.debug=!1,T.dfa_debug=!1,T.MIN_DFA_EDGE=0,T.MAX_DFA_EDGE=127,T.match_calls=0,T.prototype.copyState=function(D){this.column=D.column,this.line=D.line,this.mode=D.mode,this.startIndex=D.startIndex},T.prototype.match=function(D,O){this.match_calls+=1,this.mode=O;var w=D.mark();try{this.startIndex=D.index,this.prevAccept.reset();var A=this.decisionToDFA[O];return null===A.s0?this.matchATN(D):this.execATN(D,A.s0)}finally{D.release(w)}},T.prototype.reset=function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=f.DEFAULT_MODE},T.prototype.matchATN=function(D){var O=this.atn.modeToStartState[this.mode];T.debug&&console.log("matchATN mode "+this.mode+" start: "+O);var w=this.mode,A=this.computeStartState(D,O),S=A.hasSemanticContext;A.hasSemanticContext=!1;var M=this.addDFAState(A);S||(this.decisionToDFA[this.mode].s0=M);var I=this.execATN(D,M);return T.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[w].toLexerString()),I},T.prototype.execATN=function(D,O){T.debug&&console.log("start state closure="+O.configs),O.isAcceptState&&this.captureSimState(this.prevAccept,D,O);for(var w=D.LA(1),A=O;;){T.debug&&console.log("execATN loop starting closure: "+A.configs);var S=this.getExistingTargetState(A,w);if(null===S&&(S=this.computeTargetState(D,A,w)),S===m.ERROR||(w!==n.EOF&&this.consume(D),S.isAcceptState&&(this.captureSimState(this.prevAccept,D,S),w===n.EOF)))break;w=D.LA(1),A=S}return this.failOrAccept(this.prevAccept,D,A.configs,w)},T.prototype.getExistingTargetState=function(D,O){if(null===D.edges||OT.MAX_DFA_EDGE)return null;var w=D.edges[O-T.MIN_DFA_EDGE];return void 0===w&&(w=null),T.debug&&null!==w&&console.log("reuse state "+D.stateNumber+" edge to "+w.stateNumber),w},T.prototype.computeTargetState=function(D,O,w){var A=new u;return this.getReachableConfigSet(D,O.configs,A,w),0===A.items.length?(A.hasSemanticContext||this.addDFAEdge(O,w,m.ERROR),m.ERROR):this.addDFAEdge(O,w,null,A)},T.prototype.failOrAccept=function(D,O,w,A){if(null!==this.prevAccept.dfaState)return this.accept(O,D.dfaState.lexerActionExecutor,this.startIndex,D.index,D.line,D.column),D.dfaState.prediction;if(A===n.EOF&&O.index===this.startIndex)return n.EOF;throw new g(this.recog,O,this.startIndex,w)},T.prototype.getReachableConfigSet=function(D,O,w,A){for(var S=v.INVALID_ALT_NUMBER,M=0;MT.MAX_DFA_EDGE||(T.debug&&console.log("EDGE "+D+" -> "+w+" upon "+O),null===D.edges&&(D.edges=[]),D.edges[O-T.MIN_DFA_EDGE]=w),w},T.prototype.addDFAState=function(D){for(var O=new o(null,D),w=null,A=0;A{function p(){}function n(i){return this.actionType=i,this.isPositionDependent=!1,this}function f(){return n.call(this,p.SKIP),this}function v(i){return n.call(this,p.TYPE),this.type=i,this}function m(i){return n.call(this,p.PUSH_MODE),this.mode=i,this}function o(){return n.call(this,p.POP_MODE),this}function d(){return n.call(this,p.MORE),this}function u(i){return n.call(this,p.MODE),this.mode=i,this}function h(i,c){return n.call(this,p.CUSTOM),this.ruleIndex=i,this.actionIndex=c,this.isPositionDependent=!0,this}function r(i){return n.call(this,p.CHANNEL),this.channel=i,this}function s(i,c){return n.call(this,c.actionType),this.offset=i,this.action=c,this.isPositionDependent=!0,this}p.CHANNEL=0,p.CUSTOM=1,p.MODE=2,p.MORE=3,p.POP_MODE=4,p.PUSH_MODE=5,p.SKIP=6,p.TYPE=7,n.prototype.hashCode=function(){var i=new Hash;return this.updateHashCode(i),i.finish()},n.prototype.updateHashCode=function(i){i.update(this.actionType)},n.prototype.equals=function(i){return this===i},(f.prototype=Object.create(n.prototype)).constructor=f,f.INSTANCE=new f,f.prototype.execute=function(i){i.skip()},f.prototype.toString=function(){return"skip"},(v.prototype=Object.create(n.prototype)).constructor=v,v.prototype.execute=function(i){i.type=this.type},v.prototype.updateHashCode=function(i){i.update(this.actionType,this.type)},v.prototype.equals=function(i){return this===i||i instanceof v&&this.type===i.type},v.prototype.toString=function(){return"type("+this.type+")"},(m.prototype=Object.create(n.prototype)).constructor=m,m.prototype.execute=function(i){i.pushMode(this.mode)},m.prototype.updateHashCode=function(i){i.update(this.actionType,this.mode)},m.prototype.equals=function(i){return this===i||i instanceof m&&this.mode===i.mode},m.prototype.toString=function(){return"pushMode("+this.mode+")"},(o.prototype=Object.create(n.prototype)).constructor=o,o.INSTANCE=new o,o.prototype.execute=function(i){i.popMode()},o.prototype.toString=function(){return"popMode"},(d.prototype=Object.create(n.prototype)).constructor=d,d.INSTANCE=new d,d.prototype.execute=function(i){i.more()},d.prototype.toString=function(){return"more"},(u.prototype=Object.create(n.prototype)).constructor=u,u.prototype.execute=function(i){i.mode(this.mode)},u.prototype.updateHashCode=function(i){i.update(this.actionType,this.mode)},u.prototype.equals=function(i){return this===i||i instanceof u&&this.mode===i.mode},u.prototype.toString=function(){return"mode("+this.mode+")"},(h.prototype=Object.create(n.prototype)).constructor=h,h.prototype.execute=function(i){i.action(null,this.ruleIndex,this.actionIndex)},h.prototype.updateHashCode=function(i){i.update(this.actionType,this.ruleIndex,this.actionIndex)},h.prototype.equals=function(i){return this===i||i instanceof h&&this.ruleIndex===i.ruleIndex&&this.actionIndex===i.actionIndex},(r.prototype=Object.create(n.prototype)).constructor=r,r.prototype.execute=function(i){i._channel=this.channel},r.prototype.updateHashCode=function(i){i.update(this.actionType,this.channel)},r.prototype.equals=function(i){return this===i||i instanceof r&&this.channel===i.channel},r.prototype.toString=function(){return"channel("+this.channel+")"},(s.prototype=Object.create(n.prototype)).constructor=s,s.prototype.execute=function(i){this.action.execute(i)},s.prototype.updateHashCode=function(i){i.update(this.actionType,this.offset,this.action)},s.prototype.equals=function(i){return this===i||i instanceof s&&this.offset===i.offset&&this.action===i.action},j.LexerActionType=p,j.LexerSkipAction=f,j.LexerChannelAction=r,j.LexerCustomAction=h,j.LexerIndexedCustomAction=s,j.LexerMoreAction=d,j.LexerTypeAction=v,j.LexerPushModeAction=m,j.LexerPopModeAction=o,j.LexerModeAction=u},1305:(ye,j,p)=>{var n=p(8065).hashStuff,f=p(3822).LexerIndexedCustomAction;function v(m){return this.lexerActions=null===m?[]:m,this.cachedHashCode=n(m),this}v.append=function(m,o){return new v(null===m?[o]:m.lexerActions.concat([o]))},v.prototype.fixOffsetBeforeMatch=function(m){for(var o=null,d=0;d{var n=p(8065),f=n.Set,v=n.BitSet,m=n.DoubleDict,o=p(1828).ATN,d=p(9855).ATNState,u=p(2348).m,h=p(9186).B,r=p(8443).Token,s=p(1399).B,i=p(1399).PredPrediction,c=p(7601).f,l=p(2655).PredictionMode,g=p(61).r,E=(p(911),p(4636).dP),D=(p(9855),p(9855).RuleStopState),O=p(4825).PredictionContext,w=p(210).Interval,A=p(7131),S=A.Transition,M=A.SetTransition,I=A.NotSetTransition,b=A.RuleTransition,L=A.ActionTransition,F=p(6071).NoViableAltException,ne=p(4825).SingletonPredictionContext,Y=p(4825).predictionContextFromRuleContext;function Q(te,$,J,ie){return c.call(this,$,ie),this.parser=te,this.decisionToDFA=J,this.predictionMode=l.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this}(Q.prototype=Object.create(c.prototype)).constructor=Q,Q.prototype.debug=!1,Q.prototype.debug_closure=!1,Q.prototype.debug_add=!1,Q.prototype.debug_list_atn_decisions=!1,Q.prototype.dfa_debug=!1,Q.prototype.retry_debug=!1,Q.prototype.reset=function(){},Q.prototype.adaptivePredict=function(te,$,J){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+$+" exec LA(1)=="+this.getLookaheadName(te)+" line "+te.LT(1).line+":"+te.LT(1).column),this._input=te,this._startIndex=te.index,this._outerContext=J;var ie=this.decisionToDFA[$];this._dfa=ie;var ae=te.mark(),le=te.index;try{var Oe;if(null===(Oe=ie.precedenceDfa?ie.getPrecedenceStartState(this.parser.getPrecedence()):ie.s0)){null===J&&(J=g.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+ie.decision+" exec LA(1)=="+this.getLookaheadName(te)+", outerContext="+J.toString(this.parser.ruleNames));var Ye=this.computeStartState(ie.atnStartState,g.EMPTY,!1);ie.precedenceDfa?(ie.s0.configs=Ye,Ye=this.applyPrecedenceFilter(Ye),Oe=this.addDFAState(ie,new s(null,Ye)),ie.setPrecedenceStartState(this.parser.getPrecedence(),Oe)):(Oe=this.addDFAState(ie,new s(null,Ye)),ie.s0=Oe)}var Je=this.execATN(ie,Oe,te,le,J);return this.debug&&console.log("DFA after predictATN: "+ie.toString(this.parser.literalNames)),Je}finally{this._dfa=null,this.mergeCache=null,te.seek(le),te.release(ae)}},Q.prototype.execATN=function(te,$,J,ie,ae){(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+te.decision+" exec LA(1)=="+this.getLookaheadName(J)+" line "+J.LT(1).line+":"+J.LT(1).column);var le,Oe=$;this.debug&&console.log("s0 = "+$);for(var Le=J.LA(1);;){var Ye=this.getExistingTargetState(Oe,Le);if(null===Ye&&(Ye=this.computeTargetState(te,Oe,Le)),Ye===c.ERROR){var Je=this.noViableAlt(J,ae,Oe.configs,ie);if(J.seek(ie),(le=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(Oe.configs,ae))!==o.INVALID_ALT_NUMBER)return le;throw Je}if(Ye.requiresFullContext&&this.predictionMode!==l.SLL){var gt=null;if(null!==Ye.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var Ue=J.index;if(Ue!==ie&&J.seek(ie),1===(gt=this.evalSemanticContext(Ye.predicates,ae,!0)).length)return this.debug&&console.log("Full LL avoided"),gt.minValue();Ue!==ie&&J.seek(Ue)}this.dfa_debug&&console.log("ctx sensitive state "+ae+" in "+Ye);var at=this.computeStartState(te.atnStartState,ae,!0);return this.reportAttemptingFullContext(te,gt,Ye.configs,ie,J.index),this.execATNWithFullContext(te,Ye,at,J,ie,ae)}if(Ye.isAcceptState){if(null===Ye.predicates)return Ye.prediction;var ft=J.index;J.seek(ie);var vt=this.evalSemanticContext(Ye.predicates,ae,!0);if(0===vt.length)throw this.noViableAlt(J,ae,Ye.configs,ie);return 1===vt.length||this.reportAmbiguity(te,Ye,ie,ft,!1,vt,Ye.configs),vt.minValue()}Oe=Ye,Le!==r.EOF&&(J.consume(),Le=J.LA(1))}},Q.prototype.getExistingTargetState=function(te,$){var J=te.edges;return null===J?null:J[$+1]||null},Q.prototype.computeTargetState=function(te,$,J){var ie=this.computeReachSet($.configs,J,!1);if(null===ie)return this.addDFAEdge(te,$,J,c.ERROR),c.ERROR;var ae=new s(null,ie),le=this.getUniqueAlt(ie);if(this.debug){var Oe=l.getConflictingAltSubsets(ie);console.log("SLL altSubSets="+n.arrayToString(Oe)+", previous="+$.configs+", configs="+ie+", predict="+le+", allSubsetsConflict="+l.allSubsetsConflict(Oe)+", conflictingAlts="+this.getConflictingAlts(ie))}return le!==o.INVALID_ALT_NUMBER?(ae.isAcceptState=!0,ae.configs.uniqueAlt=le,ae.prediction=le):l.hasSLLConflictTerminatingPrediction(this.predictionMode,ie)&&(ae.configs.conflictingAlts=this.getConflictingAlts(ie),ae.requiresFullContext=!0,ae.isAcceptState=!0,ae.prediction=ae.configs.conflictingAlts.minValue()),ae.isAcceptState&&ae.configs.hasSemanticContext&&(this.predicateDFAState(ae,this.atn.getDecisionState(te.decision)),null!==ae.predicates&&(ae.prediction=o.INVALID_ALT_NUMBER)),this.addDFAEdge(te,$,J,ae)},Q.prototype.predicateDFAState=function(te,$){var J=$.transitions.length,ie=this.getConflictingAltsOrUniqueAlt(te.configs),ae=this.getPredsForAmbigAlts(ie,te.configs,J);null!==ae?(te.predicates=this.getPredicatePredictions(ie,ae),te.prediction=o.INVALID_ALT_NUMBER):te.prediction=ie.minValue()},Q.prototype.execATNWithFullContext=function(te,$,J,ie,ae,le){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+J);var Le=!1,Ye=null,Je=J;ie.seek(ae);for(var gt=ie.LA(1),Ue=-1;;){if(null===(Ye=this.computeReachSet(Je,gt,!0))){var tt=this.noViableAlt(ie,le,Je,ae);ie.seek(ae);var at=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(Je,le);if(at!==o.INVALID_ALT_NUMBER)return at;throw tt}var ft=l.getConflictingAltSubsets(Ye);if(this.debug&&console.log("LL altSubSets="+ft+", predict="+l.getUniqueAlt(ft)+", resolvesToJustOneViableAlt="+l.resolvesToJustOneViableAlt(ft)),Ye.uniqueAlt=this.getUniqueAlt(Ye),Ye.uniqueAlt!==o.INVALID_ALT_NUMBER){Ue=Ye.uniqueAlt;break}if(this.predictionMode!==l.LL_EXACT_AMBIG_DETECTION){if((Ue=l.resolvesToJustOneViableAlt(ft))!==o.INVALID_ALT_NUMBER)break}else if(l.allSubsetsConflict(ft)&&l.allSubsetsEqual(ft)){Le=!0,Ue=l.getSingleViableAlt(ft);break}Je=Ye,gt!==r.EOF&&(ie.consume(),gt=ie.LA(1))}return Ye.uniqueAlt!==o.INVALID_ALT_NUMBER?(this.reportContextSensitivity(te,Ue,Ye,ae,ie.index),Ue):(this.reportAmbiguity(te,$,ae,ie.index,Le,null,Ye),Ue)},Q.prototype.computeReachSet=function(te,$,J){this.debug&&console.log("in computeReachSet, starting closure: "+te),null===this.mergeCache&&(this.mergeCache=new m);for(var ie=new h(J),ae=null,le=0;le0&&(le=this.getAltThatFinishedDecisionEntryRule(ae))!==o.INVALID_ALT_NUMBER?le:o.INVALID_ALT_NUMBER},Q.prototype.getAltThatFinishedDecisionEntryRule=function(te){for(var $=[],J=0;J0||ie.state instanceof D&&ie.context.hasEmptyPath())&&$.indexOf(ie.alt)<0&&$.push(ie.alt)}return 0===$.length?o.INVALID_ALT_NUMBER:Math.min.apply(null,$)},Q.prototype.splitAccordingToSemanticValidity=function(te,$){for(var J=new h(te.fullCtx),ie=new h(te.fullCtx),ae=0;ae50))throw"problem";if(te.state instanceof D){if(!te.context.isEmpty()){for(var Le=0;Le=0&&(tt+=1)}this.closureCheckingStopState(Ue,$,J,gt,ae,tt,Oe)}}},Q.prototype.canDropLoopEntryEdgeInLeftRecursiveRule=function(te){var $=te.state;if($.stateType!=d.STAR_LOOP_ENTRY||$.stateType!=d.STAR_LOOP_ENTRY||!$.isPrecedenceDecision||te.context.isEmpty()||te.context.hasEmptyPath())return!1;for(var J=te.context.length,ie=0;ie=0?this.parser.ruleNames[te]:""},Q.prototype.getEpsilonTarget=function(te,$,J,ie,ae,le){switch($.serializationType){case S.RULE:return this.ruleTransition(te,$);case S.PRECEDENCE:return this.precedenceTransition(te,$,J,ie,ae);case S.PREDICATE:return this.predTransition(te,$,J,ie,ae);case S.ACTION:return this.actionTransition(te,$);case S.EPSILON:return new u({state:$.target},te);case S.ATOM:case S.RANGE:case S.SET:return le&&$.matches(r.EOF,0,1)?new u({state:$.target},te):null;default:return null}},Q.prototype.actionTransition=function(te,$){return this.debug&&console.log("ACTION edge "+$.ruleIndex+":"+(-1==$.actionIndex?65535:$.actionIndex)),new u({state:$.target},te)},Q.prototype.precedenceTransition=function(te,$,J,ie,ae){this.debug&&(console.log("PRED (collectPredicates="+J+") "+$.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+n.arrayToString(this.parser.getRuleInvocationStack())));var le=null;if(J&&ie)if(ae){var Oe=this._input.index;this._input.seek(this._startIndex);var Le=$.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(Oe),Le&&(le=new u({state:$.target},te))}else{var Ye=E.andContext(te.semanticContext,$.getPredicate());le=new u({state:$.target,semanticContext:Ye},te)}else le=new u({state:$.target},te);return this.debug&&console.log("config from pred transition="+le),le},Q.prototype.predTransition=function(te,$,J,ie,ae){this.debug&&(console.log("PRED (collectPredicates="+J+") "+$.ruleIndex+":"+$.predIndex+", ctx dependent="+$.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+n.arrayToString(this.parser.getRuleInvocationStack())));var le=null;if(J&&($.isCtxDependent&&ie||!$.isCtxDependent))if(ae){var Oe=this._input.index;this._input.seek(this._startIndex);var Le=$.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(Oe),Le&&(le=new u({state:$.target},te))}else{var Ye=E.andContext(te.semanticContext,$.getPredicate());le=new u({state:$.target,semanticContext:Ye},te)}else le=new u({state:$.target},te);return this.debug&&console.log("config from pred transition="+le),le},Q.prototype.ruleTransition=function(te,$){this.debug&&console.log("CALL rule "+this.getRuleName($.target.ruleIndex)+", ctx="+te.context);var ie=ne.create(te.context,$.followState.stateNumber);return new u({state:$.target,context:ie},te)},Q.prototype.getConflictingAlts=function(te){var $=l.getConflictingAltSubsets(te);return l.getAlts($)},Q.prototype.getConflictingAltsOrUniqueAlt=function(te){var $=null;return te.uniqueAlt!==o.INVALID_ALT_NUMBER?($=new v).add(te.uniqueAlt):$=te.conflictingAlts,$},Q.prototype.getTokenName=function(te){if(te===r.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(te>=this.parser.literalNames.length&&te>=this.parser.symbolicNames.length))return(this.parser.literalNames[te]||this.parser.symbolicNames[te])+"<"+te+">";console.log(te+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+te},Q.prototype.getLookaheadName=function(te){return this.getTokenName(te.LA(1))},Q.prototype.dumpDeadEndConfigs=function(te){console.log("dead end configs: ");for(var $=te.getDeadEndConfigs(),J=0;J<$.length;J++){var ie=$[J],ae="no edges";if(ie.state.transitions.length>0){var le=ie.state.transitions[0];le instanceof AtomTransition?ae="Atom "+this.getTokenName(le.label):le instanceof M&&(ae=(le instanceof I?"~":"")+"Set "+le.set)}console.error(ie.toString(this.parser,!0)+":"+ae)}},Q.prototype.noViableAlt=function(te,$,J,ie){return new F(this.parser,te,te.get(ie),te.LT(1),J,$)},Q.prototype.getUniqueAlt=function(te){for(var $=o.INVALID_ALT_NUMBER,J=0;J "+ie+" upon "+this.getTokenName(J)),null===ie?null:(ie=this.addDFAState(te,ie),null===$||J<-1||J>this.atn.maxTokenType||(null===$.edges&&($.edges=[]),$.edges[J+1]=ie,this.debug&&console.log("DFA=\n"+te.toString(null===this.parser?null:this.parser.literalNames,null===this.parser?null:this.parser.symbolicNames))),ie)},Q.prototype.addDFAState=function(te,$){if($==c.ERROR)return $;var J=te.states.get($);return null!==J?J:($.stateNumber=te.states.length,$.configs.readOnly||($.configs.optimizeConfigs(this),$.configs.setReadonly(!0)),te.states.add($),this.debug&&console.log("adding new DFA state: "+$),$)},Q.prototype.reportAttemptingFullContext=function(te,$,J,ie,ae){if(this.debug||this.retry_debug){var le=new w(ie,ae+1);console.log("reportAttemptingFullContext decision="+te.decision+":"+J+", input="+this.parser.getTokenStream().getText(le))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,te,ie,ae,$,J)},Q.prototype.reportContextSensitivity=function(te,$,J,ie,ae){if(this.debug||this.retry_debug){var le=new w(ie,ae+1);console.log("reportContextSensitivity decision="+te.decision+":"+J+", input="+this.parser.getTokenStream().getText(le))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,te,ie,ae,$,J)},Q.prototype.reportAmbiguity=function(te,$,J,ie,ae,le,Oe){if(this.debug||this.retry_debug){var Le=new w(J,ie+1);console.log("reportAmbiguity "+le+":"+Oe+", input="+this.parser.getTokenStream().getText(Le))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,te,J,ie,ae,le,Oe)},j.ParserATNSimulator=Q},2655:(ye,j,p)=>{p(8065);var f=p(8065).Map,v=p(8065).BitSet,m=p(8065).AltDict,o=p(1828).ATN,d=p(9855).RuleStopState,u=p(9186).B,h=p(2348).m,r=p(4636).dP,i=(p(8065),p(8065).hashStuff);function l(){return this}p(8065),l.SLL=0,l.LL=1,l.LL_EXACT_AMBIG_DETECTION=2,l.hasSLLConflictTerminatingPrediction=function(g,y){if(l.allConfigsInRuleStopStates(y))return!0;if(g===l.SLL&&y.hasSemanticContext){for(var E=new u,T=0;T1)return!0;return!1},l.allSubsetsEqual=function(g){for(var y=null,E=0;E{var n=p(8065).Set,f=p(8065).Hash;function v(){return this}function m(h,r,s){return v.call(this),this.ruleIndex=void 0===h?-1:h,this.predIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==s&&s,this}function o(h){v.call(this),this.precedence=void 0===h?0:h}function d(h,r){v.call(this);var s=new n;h instanceof d?h.opnds.map(function(l){s.add(l)}):s.add(h),r instanceof d?r.opnds.map(function(l){s.add(l)}):s.add(r);var i=o.filterPrecedencePredicates(s);if(i.length>0){var c=null;i.map(function(l){(null===c||l.precedence0){var c=i.sort(function(g,y){return g.compareTo(y)});s.add(c[c.length-1])}return this.opnds=s.values(),this}v.prototype.hashCode=function(){var h=new f;return this.updateHashCode(h),h.finish()},v.prototype.evaluate=function(h,r){},v.prototype.evalPrecedence=function(h,r){return this},v.andContext=function(h,r){if(null===h||h===v.NONE)return r;if(null===r||r===v.NONE)return h;var s=new d(h,r);return 1===s.opnds.length?s.opnds[0]:s},v.orContext=function(h,r){if(null===h)return r;if(null===r)return h;if(h===v.NONE||r===v.NONE)return v.NONE;var s=new u(h,r);return 1===s.opnds.length?s.opnds[0]:s},(m.prototype=Object.create(v.prototype)).constructor=m,v.NONE=new m,m.prototype.evaluate=function(h,r){return h.sempred(this.isCtxDependent?r:null,this.ruleIndex,this.predIndex)},m.prototype.updateHashCode=function(h){h.update(this.ruleIndex,this.predIndex,this.isCtxDependent)},m.prototype.equals=function(h){return this===h||h instanceof m&&this.ruleIndex===h.ruleIndex&&this.predIndex===h.predIndex&&this.isCtxDependent===h.isCtxDependent},m.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},(o.prototype=Object.create(v.prototype)).constructor=o,o.prototype.evaluate=function(h,r){return h.precpred(r,this.precedence)},o.prototype.evalPrecedence=function(h,r){return h.precpred(r,this.precedence)?v.NONE:null},o.prototype.compareTo=function(h){return this.precedence-h.precedence},o.prototype.updateHashCode=function(h){h.update(31)},o.prototype.equals=function(h){return this===h||h instanceof o&&this.precedence===h.precedence},o.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},o.filterPrecedencePredicates=function(h){var r=[];return h.values().map(function(s){s instanceof o&&r.push(s)}),r},(d.prototype=Object.create(v.prototype)).constructor=d,d.prototype.equals=function(h){return this===h||h instanceof d&&this.opnds===h.opnds},d.prototype.updateHashCode=function(h){h.update(this.opnds,"AND")},d.prototype.evaluate=function(h,r){for(var s=0;s3?h.slice(3):h},(u.prototype=Object.create(v.prototype)).constructor=u,u.prototype.constructor=function(h){return this===h||h instanceof u&&this.opnds===h.opnds},u.prototype.updateHashCode=function(h){h.update(this.opnds,"OR")},u.prototype.evaluate=function(h,r){for(var s=0;s3?h.slice(3):h},j.dP=v,j.u5=o,j.$G=m},7131:(ye,j,p)=>{var n=p(8443).Token,v=(p(210),p(210).V),m=p(4636).$G,o=p(4636).u5;function d(D){if(null==D)throw"target cannot be null.";return this.target=D,this.isEpsilon=!1,this.label=null,this}function u(D,O){return d.call(this,D),this.label_=O,this.label=this.makeLabel(),this.serializationType=d.ATOM,this}function h(D,O,w,A){return d.call(this,D),this.ruleIndex=O,this.precedence=w,this.followState=A,this.serializationType=d.RULE,this.isEpsilon=!0,this}function r(D,O){return d.call(this,D),this.serializationType=d.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=O,this}function s(D,O,w){return d.call(this,D),this.serializationType=d.RANGE,this.start=O,this.stop=w,this.label=this.makeLabel(),this}function i(D){return d.call(this,D),this}function c(D,O,w,A){return i.call(this,D),this.serializationType=d.PREDICATE,this.ruleIndex=O,this.predIndex=w,this.isCtxDependent=A,this.isEpsilon=!0,this}function l(D,O,w,A){return d.call(this,D),this.serializationType=d.ACTION,this.ruleIndex=O,this.actionIndex=void 0===w?-1:w,this.isCtxDependent=void 0!==A&&A,this.isEpsilon=!0,this}function g(D,O){return d.call(this,D),this.serializationType=d.SET,null!=O?this.label=O:(this.label=new v,this.label.addOne(n.INVALID_TYPE)),this}function y(D,O){return g.call(this,D,O),this.serializationType=d.NOT_SET,this}function E(D){return d.call(this,D),this.serializationType=d.WILDCARD,this}function T(D,O){return i.call(this,D),this.serializationType=d.PRECEDENCE,this.precedence=O,this.isEpsilon=!0,this}d.EPSILON=1,d.RANGE=2,d.RULE=3,d.PREDICATE=4,d.ATOM=5,d.ACTION=6,d.SET=7,d.NOT_SET=8,d.WILDCARD=9,d.PRECEDENCE=10,d.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],d.serializationTypes={EpsilonTransition:d.EPSILON,RangeTransition:d.RANGE,RuleTransition:d.RULE,PredicateTransition:d.PREDICATE,AtomTransition:d.ATOM,ActionTransition:d.ACTION,SetTransition:d.SET,NotSetTransition:d.NOT_SET,WildcardTransition:d.WILDCARD,PrecedencePredicateTransition:d.PRECEDENCE},(u.prototype=Object.create(d.prototype)).constructor=u,u.prototype.makeLabel=function(){var D=new v;return D.addOne(this.label_),D},u.prototype.matches=function(D,O,w){return this.label_===D},u.prototype.toString=function(){return this.label_},(h.prototype=Object.create(d.prototype)).constructor=h,h.prototype.matches=function(D,O,w){return!1},(r.prototype=Object.create(d.prototype)).constructor=r,r.prototype.matches=function(D,O,w){return!1},r.prototype.toString=function(){return"epsilon"},(s.prototype=Object.create(d.prototype)).constructor=s,s.prototype.makeLabel=function(){var D=new v;return D.addRange(this.start,this.stop),D},s.prototype.matches=function(D,O,w){return D>=this.start&&D<=this.stop},s.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},(i.prototype=Object.create(d.prototype)).constructor=i,(c.prototype=Object.create(i.prototype)).constructor=c,c.prototype.matches=function(D,O,w){return!1},c.prototype.getPredicate=function(){return new m(this.ruleIndex,this.predIndex,this.isCtxDependent)},c.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},(l.prototype=Object.create(d.prototype)).constructor=l,l.prototype.matches=function(D,O,w){return!1},l.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},(g.prototype=Object.create(d.prototype)).constructor=g,g.prototype.matches=function(D,O,w){return this.label.contains(D)},g.prototype.toString=function(){return this.label.toString()},(y.prototype=Object.create(g.prototype)).constructor=y,y.prototype.matches=function(D,O,w){return D>=O&&D<=w&&!g.prototype.matches.call(this,D,O,w)},y.prototype.toString=function(){return"~"+g.prototype.toString.call(this)},(E.prototype=Object.create(d.prototype)).constructor=E,E.prototype.matches=function(D,O,w){return D>=O&&D<=w},E.prototype.toString=function(){return"."},(T.prototype=Object.create(i.prototype)).constructor=T,T.prototype.matches=function(D,O,w){return!1},T.prototype.getPredicate=function(){return new o(this.precedence)},T.prototype.toString=function(){return this.precedence+" >= _p"},j.Transition=d,j.AtomTransition=u,j.SetTransition=g,j.NotSetTransition=y,j.RuleTransition=h,j.ActionTransition=l,j.EpsilonTransition=r,j.RangeTransition=s,j.WildcardTransition=E,j.PredicateTransition=c,j.PrecedencePredicateTransition=T,j.AbstractPredicateTransition=i},8900:(ye,j,p)=>{j.ATN=p(1828).ATN,j.ATNDeserializer=p(3031).ATNDeserializer,j.LexerATNSimulator=p(6244).LexerATNSimulator,j.ParserATNSimulator=p(3464).ParserATNSimulator,j.PredictionMode=p(2655).PredictionMode},2490:(ye,j,p)=>{var n=p(8065).Set,f=p(1399).B,v=p(9855).StarLoopEntryState,m=p(9186).B,o=p(5846).DFASerializer,d=p(5846).LexerDFASerializer;function u(h,r){if(void 0===r&&(r=0),this.atnStartState=h,this.decision=r,this._states=new n,this.s0=null,this.precedenceDfa=!1,h instanceof v&&h.isPrecedenceDecision){this.precedenceDfa=!0;var s=new f(null,new m);s.edges=[],s.isAcceptState=!1,s.requiresFullContext=!1,this.s0=s}return this}u.prototype.getPrecedenceStartState=function(h){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return h<0||h>=this.s0.edges.length?null:this.s0.edges[h]||null},u.prototype.setPrecedenceStartState=function(h,r){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";h<0||(this.s0.edges[h]=r)},u.prototype.setPrecedenceDfa=function(h){if(this.precedenceDfa!==h){if(this._states=new DFAStatesSet,h){var r=new f(null,new m);r.edges=[],r.isAcceptState=!1,r.requiresFullContext=!1,this.s0=r}else this.s0=null;this.precedenceDfa=h}},Object.defineProperty(u.prototype,"states",{get:function(){return this._states}}),u.prototype.sortedStates=function(){return this._states.values().sort(function(r,s){return r.stateNumber-s.stateNumber})},u.prototype.toString=function(h,r){return null===this.s0?"":new o(this,h=h||null,r=r||null).toString()},u.prototype.toLexerString=function(){return null===this.s0?"":new d(this).toString()},j.DFA=u},5846:(ye,j)=>{function p(f,v,m){return this.dfa=f,this.literalNames=v||[],this.symbolicNames=m||[],this}function n(f){return p.call(this,f,null),this}p.prototype.toString=function(){if(null===this.dfa.s0)return null;for(var f="",v=this.dfa.sortedStates(),m=0;m")).concat(this.getStateString(h))).concat("\n"))}}return 0===f.length?null:f},p.prototype.getEdgeLabel=function(f){return 0===f?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[f-1]||this.symbolicNames[f-1]:String.fromCharCode(f-1)},p.prototype.getStateString=function(f){var v=(f.isAcceptState?":":"")+"s"+f.stateNumber+(f.requiresFullContext?"^":"");return f.isAcceptState?null!==f.predicates?v+"=>"+f.predicates.toString():v+"=>"+f.prediction.toString():v},(n.prototype=Object.create(p.prototype)).constructor=n,n.prototype.getEdgeLabel=function(f){return"'"+String.fromCharCode(f)+"'"},j.DFASerializer=p,j.LexerDFASerializer=n},1399:(ye,j,p)=>{var n=p(9186).B,f=p(8065),v=f.Hash,m=f.Set;function o(u,h){return this.alt=h,this.pred=u,this}function d(u,h){return null===u&&(u=-1),null===h&&(h=new n),this.stateNumber=u,this.configs=h,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}o.prototype.toString=function(){return"("+this.pred+", "+this.alt+")"},d.prototype.getAltSet=function(){var u=new m;if(null!==this.configs)for(var h=0;h{j.DFA=p(2490).DFA,j.DFASerializer=p(5846).DFASerializer,j.LexerDFASerializer=p(5846).LexerDFASerializer,j.PredPrediction=p(1399).PredPrediction},3456:(ye,j,p)=>{var n=p(8065).BitSet,f=p(1911).ErrorListener,v=p(210).Interval;function m(o){return f.call(this),this.exactOnly=o=o||!0,this}(m.prototype=Object.create(f.prototype)).constructor=m,m.prototype.reportAmbiguity=function(o,d,u,h,r,s,i){if(!this.exactOnly||r){var c="reportAmbiguity d="+this.getDecisionDescription(o,d)+": ambigAlts="+this.getConflictingAlts(s,i)+", input='"+o.getTokenStream().getText(new v(u,h))+"'";o.notifyErrorListeners(c)}},m.prototype.reportAttemptingFullContext=function(o,d,u,h,r,s){var i="reportAttemptingFullContext d="+this.getDecisionDescription(o,d)+", input='"+o.getTokenStream().getText(new v(u,h))+"'";o.notifyErrorListeners(i)},m.prototype.reportContextSensitivity=function(o,d,u,h,r,s){var i="reportContextSensitivity d="+this.getDecisionDescription(o,d)+", input='"+o.getTokenStream().getText(new v(u,h))+"'";o.notifyErrorListeners(i)},m.prototype.getDecisionDescription=function(o,d){var u=d.decision,h=d.atnStartState.ruleIndex,r=o.ruleNames;if(h<0||h>=r.length)return""+u;var s=r[h]||null;return null===s||0===s.length?""+u:u+" ("+s+")"},m.prototype.getConflictingAlts=function(o,d){if(null!==o)return o;for(var u=new n,h=0;h{function p(){return this}function n(){return p.call(this),this}function f(v){if(p.call(this),null===v)throw"delegates";return this.delegates=v,this}p.prototype.syntaxError=function(v,m,o,d,u,h){},p.prototype.reportAmbiguity=function(v,m,o,d,u,h,r){},p.prototype.reportAttemptingFullContext=function(v,m,o,d,u,h){},p.prototype.reportContextSensitivity=function(v,m,o,d,u,h){},(n.prototype=Object.create(p.prototype)).constructor=n,n.INSTANCE=new n,n.prototype.syntaxError=function(v,m,o,d,u,h){console.error("line "+o+":"+d+" "+u)},(f.prototype=Object.create(p.prototype)).constructor=f,f.prototype.syntaxError=function(v,m,o,d,u,h){this.delegates.map(function(r){r.syntaxError(v,m,o,d,u,h)})},f.prototype.reportAmbiguity=function(v,m,o,d,u,h,r){this.delegates.map(function(s){s.reportAmbiguity(v,m,o,d,u,h,r)})},f.prototype.reportAttemptingFullContext=function(v,m,o,d,u,h){this.delegates.map(function(r){r.reportAttemptingFullContext(v,m,o,d,u,h)})},f.prototype.reportContextSensitivity=function(v,m,o,d,u,h){this.delegates.map(function(r){r.reportContextSensitivity(v,m,o,d,u,h)})},j.ErrorListener=p,j.s=n,j.N=f},7675:(ye,j,p)=>{var n=p(8443).Token,f=p(6071),v=f.NoViableAltException,m=f.InputMismatchException,o=f.FailedPredicateException,d=f.ParseCancellationException,u=p(9855).ATNState,h=p(210).Interval,r=p(210).V;function s(){}function i(){return s.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function c(){return i.call(this),this}s.prototype.reset=function(l){},s.prototype.recoverInline=function(l){},s.prototype.recover=function(l,g){},s.prototype.sync=function(l){},s.prototype.inErrorRecoveryMode=function(l){},s.prototype.reportError=function(l){},(i.prototype=Object.create(s.prototype)).constructor=i,i.prototype.reset=function(l){this.endErrorCondition(l)},i.prototype.beginErrorCondition=function(l){this.errorRecoveryMode=!0},i.prototype.inErrorRecoveryMode=function(l){return this.errorRecoveryMode},i.prototype.endErrorCondition=function(l){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},i.prototype.reportMatch=function(l){this.endErrorCondition(l)},i.prototype.reportError=function(l,g){this.inErrorRecoveryMode(l)||(this.beginErrorCondition(l),g instanceof v?this.reportNoViableAlternative(l,g):g instanceof m?this.reportInputMismatch(l,g):g instanceof o?this.reportFailedPredicate(l,g):(console.log("unknown recognition error type: "+g.constructor.name),console.log(g.stack),l.notifyErrorListeners(g.getOffendingToken(),g.getMessage(),g)))},i.prototype.recover=function(l,g){this.lastErrorIndex===l.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(l.state)>=0&&l.consume(),this.lastErrorIndex=l._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(l.state);var y=this.getErrorRecoverySet(l);this.consumeUntil(l,y)},i.prototype.sync=function(l){if(!this.inErrorRecoveryMode(l)){var g=l._interp.atn.states[l.state],y=l.getTokenStream().LA(1),E=l.atn.nextTokens(g);if(!E.contains(n.EPSILON)&&!E.contains(y))switch(g.stateType){case u.BLOCK_START:case u.STAR_BLOCK_START:case u.PLUS_BLOCK_START:case u.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(l))return;throw new m(l);case u.PLUS_LOOP_BACK:case u.STAR_LOOP_BACK:this.reportUnwantedToken(l);var T=new r;T.addSet(l.getExpectedTokens());var D=T.addSet(this.getErrorRecoverySet(l));this.consumeUntil(l,D)}}},i.prototype.reportNoViableAlternative=function(l,g){var E,y=l.getTokenStream();E=null!==y?g.startToken.type===n.EOF?"":y.getText(new h(g.startToken.tokenIndex,g.offendingToken.tokenIndex)):"";var T="no viable alternative at input "+this.escapeWSAndQuote(E);l.notifyErrorListeners(T,g.offendingToken,g)},i.prototype.reportInputMismatch=function(l,g){var y="mismatched input "+this.getTokenErrorDisplay(g.offendingToken)+" expecting "+g.getExpectedTokens().toString(l.literalNames,l.symbolicNames);l.notifyErrorListeners(y,g.offendingToken,g)},i.prototype.reportFailedPredicate=function(l,g){l.notifyErrorListeners("rule "+l.ruleNames[l._ctx.ruleIndex]+" "+g.message,g.offendingToken,g)},i.prototype.reportUnwantedToken=function(l){if(!this.inErrorRecoveryMode(l)){this.beginErrorCondition(l);var g=l.getCurrentToken(),T="extraneous input "+this.getTokenErrorDisplay(g)+" expecting "+this.getExpectedTokens(l).toString(l.literalNames,l.symbolicNames);l.notifyErrorListeners(T,g,null)}},i.prototype.reportMissingToken=function(l){if(!this.inErrorRecoveryMode(l)){this.beginErrorCondition(l);var g=l.getCurrentToken(),E="missing "+this.getExpectedTokens(l).toString(l.literalNames,l.symbolicNames)+" at "+this.getTokenErrorDisplay(g);l.notifyErrorListeners(E,g,null)}},i.prototype.recoverInline=function(l){var g=this.singleTokenDeletion(l);if(null!==g)return l.consume(),g;if(this.singleTokenInsertion(l))return this.getMissingSymbol(l);throw new m(l)},i.prototype.singleTokenInsertion=function(l){var g=l.getTokenStream().LA(1),y=l._interp.atn;return!!y.nextTokens(y.states[l.state].transitions[0].target,l._ctx).contains(g)&&(this.reportMissingToken(l),!0)},i.prototype.singleTokenDeletion=function(l){var g=l.getTokenStream().LA(2);if(this.getExpectedTokens(l).contains(g)){this.reportUnwantedToken(l),l.consume();var E=l.getCurrentToken();return this.reportMatch(l),E}return null},i.prototype.getMissingSymbol=function(l){var T,g=l.getCurrentToken(),E=this.getExpectedTokens(l).first();T=E===n.EOF?"":"";var D=g,O=l.getTokenStream().LT(-1);return D.type===n.EOF&&null!==O&&(D=O),l.getTokenFactory().create(D.source,E,T,n.DEFAULT_CHANNEL,-1,-1,D.line,D.column)},i.prototype.getExpectedTokens=function(l){return l.getExpectedTokens()},i.prototype.getTokenErrorDisplay=function(l){if(null===l)return"";var g=l.text;return null===g&&(g=l.type===n.EOF?"":"<"+l.type+">"),this.escapeWSAndQuote(g)},i.prototype.escapeWSAndQuote=function(l){return"'"+(l=(l=(l=l.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"},i.prototype.getErrorRecoverySet=function(l){for(var g=l._interp.atn,y=l._ctx,E=new r;null!==y&&y.invokingState>=0;){var O=g.nextTokens(g.states[y.invokingState].transitions[0].followState);E.addSet(O),y=y.parentCtx}return E.removeOne(n.EPSILON),E},i.prototype.consumeUntil=function(l,g){for(var y=l.getTokenStream().LA(1);y!==n.EOF&&!g.contains(y);)l.consume(),y=l.getTokenStream().LA(1)},(c.prototype=Object.create(i.prototype)).constructor=c,c.prototype.recover=function(l,g){for(var y=l._ctx;null!==y;)y.exception=g,y=y.parentCtx;throw new d(g)},c.prototype.recoverInline=function(l){this.recover(l,new m(l))},c.prototype.sync=function(l){},j.BailErrorStrategy=c,j.t=i},6071:(ye,j,p)=>{var n=p(7131).PredicateTransition;function f(h){return Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,f):new Error,this.message=h.message,this.recognizer=h.recognizer,this.input=h.input,this.ctx=h.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function v(h,r,s,i){return f.call(this,{message:"",recognizer:h,input:r,ctx:null}),this.startIndex=s,this.deadEndConfigs=i,this}function m(h,r,s,i,c,l){l=l||h._ctx,i=i||h.getCurrentToken(),s=s||h.getCurrentToken(),r=r||h.getInputStream(),f.call(this,{message:"",recognizer:h,input:r,ctx:l}),this.deadEndConfigs=c,this.startToken=s,this.offendingToken=i}function o(h){f.call(this,{message:"",recognizer:h,input:h.getInputStream(),ctx:h._ctx}),this.offendingToken=h.getCurrentToken()}function d(h,r,s){f.call(this,{message:this.formatMessage(r,s||null),recognizer:h,input:h.getInputStream(),ctx:h._ctx});var c=h._interp.atn.states[h.state].transitions[0];return c instanceof n?(this.ruleIndex=c.ruleIndex,this.predicateIndex=c.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=r,this.offendingToken=h.getCurrentToken(),this}function u(){return Error.call(this),Error.captureStackTrace(this,u),this}(f.prototype=Object.create(Error.prototype)).constructor=f,f.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},f.prototype.toString=function(){return this.message},(v.prototype=Object.create(f.prototype)).constructor=v,v.prototype.toString=function(){var h="";return this.startIndex>=0&&this.startIndex{j.RecognitionException=p(6071).RecognitionException,j.NoViableAltException=p(6071).NoViableAltException,j.LexerNoViableAltException=p(6071).LexerNoViableAltException,j.InputMismatchException=p(6071).InputMismatchException,j.FailedPredicateException=p(6071).FailedPredicateException,j.DiagnosticErrorListener=p(3456).DiagnosticErrorListener,j.BailErrorStrategy=p(7675).BailErrorStrategy,j.ErrorListener=p(1911).ErrorListener},4185:()=>{String.prototype.codePointAt||function(){"use strict";var ye=function(){try{var p={},n=Object.defineProperty,f=n(p,p,p)&&n}catch(v){}return f}(),j=function(p){if(null==this)throw TypeError();var n=String(this),f=n.length,v=p?Number(p):0;if(v!=v&&(v=0),!(v<0||v>=f)){var o,m=n.charCodeAt(v);return m>=55296&&m<=56319&&f>v+1&&(o=n.charCodeAt(v+1))>=56320&&o<=57343?1024*(m-55296)+o-56320+65536:m}};ye?ye(String.prototype,"codePointAt",{value:j,configurable:!0,writable:!0}):String.prototype.codePointAt=j}()},9767:()=>{var ye,j,p,n;String.fromCodePoint||(ye=function(){try{var f={},v=Object.defineProperty,m=v(f,f,f)&&v}catch(o){}return m}(),j=String.fromCharCode,p=Math.floor,n=function(f){var v=16384,m=[],u=-1,h=arguments.length;if(!h)return"";for(var r="";++u1114111||p(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?m.push(s):m.push(55296+((s-=65536)>>10),s%1024+56320),(u+1==h||m.length>v)&&(r+=j.apply(null,m),m.length=0)}return r},ye?ye(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n)},1029:(ye,j,p)=>{var n=p(8443).Token,f=p(210).Interval,v=new f(-1,-2);function o(){return this}function d(){return o.call(this),this}function u(){return d.call(this),this}function h(){return u.call(this),this}function r(){return u.call(this),this}function s(){return r.call(this),this}function i(){return this}function c(){return this}function l(E){return r.call(this),this.parentCtx=null,this.symbol=E,this}function g(E){return l.call(this,E),this}function y(){return this}p(8065),(d.prototype=Object.create(o.prototype)).constructor=d,(u.prototype=Object.create(d.prototype)).constructor=u,(h.prototype=Object.create(u.prototype)).constructor=h,(r.prototype=Object.create(u.prototype)).constructor=r,(s.prototype=Object.create(r.prototype)).constructor=s,i.prototype.visit=function(E){return Array.isArray(E)?E.map(function(T){return T.accept(this)},this):E.accept(this)},i.prototype.visitChildren=function(E){return E.children?this.visit(E.children):null},i.prototype.visitTerminal=function(E){},i.prototype.visitErrorNode=function(E){},c.prototype.visitTerminal=function(E){},c.prototype.visitErrorNode=function(E){},c.prototype.enterEveryRule=function(E){},c.prototype.exitEveryRule=function(E){},(l.prototype=Object.create(r.prototype)).constructor=l,l.prototype.getChild=function(E){return null},l.prototype.getSymbol=function(){return this.symbol},l.prototype.getParent=function(){return this.parentCtx},l.prototype.getPayload=function(){return this.symbol},l.prototype.getSourceInterval=function(){if(null===this.symbol)return v;var E=this.symbol.tokenIndex;return new f(E,E)},l.prototype.getChildCount=function(){return 0},l.prototype.accept=function(E){return E.visitTerminal(this)},l.prototype.getText=function(){return this.symbol.text},l.prototype.toString=function(){return this.symbol.type===n.EOF?"":this.symbol.text},(g.prototype=Object.create(l.prototype)).constructor=g,g.prototype.isErrorNode=function(){return!0},g.prototype.accept=function(E){return E.visitErrorNode(this)},y.prototype.walk=function(E,T){if(T instanceof s||void 0!==T.isErrorNode&&T.isErrorNode())E.visitErrorNode(T);else if(T instanceof r)E.visitTerminal(T);else{this.enterRule(E,T);for(var O=0;O{var n=p(8065),f=p(8443).Token,m=(p(1029),p(1029).ErrorNode),o=p(1029).TerminalNode,d=p(911).ParserRuleContext,u=p(61).r,h=p(1828).INVALID_ALT_NUMBER;function r(){}r.toStringTree=function(s,i,c){i=i||null,null!==(c=c||null)&&(i=c.ruleNames);var l=r.getNodeText(s,i);l=n.escapeWhitespace(l,!1);var g=s.getChildCount();if(0===g)return l;var y="("+l+" ";g>0&&(l=r.toStringTree(s.getChild(0),i),y=y.concat(l));for(var E=1;E{var n=p(1029);j.Trees=p(2565).Trees,j.RuleNode=n.RuleNode,j.ParseTreeListener=n.ParseTreeListener,j.ParseTreeVisitor=n.ParseTreeVisitor,j.ParseTreeWalker=n.ParseTreeWalker},3853:ye=>{ye.exports={aggregateMacro:function(p,n,f){return p.reduce((v,m,o)=>(this.$index=o,this.$total=n(m)),this.$total=f)}}},3142:(ye,j,p)=>{var n=p(9640),f={};function v(m,o){if(0==o.length)return!0;for(var d=0;d1)throw new Error("Expected singleton on right side of contains, got "+JSON.stringify(o));return v(m,o)},f.in=function(m,o){if(0==m.length)return[];if(0==o.length)return!1;if(m.length>1)throw new Error("Expected singleton on right side of in, got "+JSON.stringify(o));return v(o,m)},ye.exports=f},6856:(ye,j,p)=>{var n={},f=p(6127);n.union=function(v,m){return f.distinctFn(v.concat(m))},n.combineFn=function(v,m){return v.concat(m)},ye.exports=n},9397:ye=>{ye.exports={reset:function(){this.nowDate=new Date,this.today=null,this.now=null,this.localTimezoneOffset=null},today:null,now:null}},3425:(ye,j,p)=>{var n={};const f=p(2563),v=p(9397),m=f.FP_DateTime;n.now=function(){if(!v.now){var d=m.isoDateTime(v.nowDate);v.now=new m(d)}return v.now},n.today=function(){if(!v.today){var d=m.isoDate(v.nowDate);v.today=new m(d)}return v.today},ye.exports=n},9640:(ye,j,p)=>{var f=p(2563).FP_Type,v=p(4569),m=p(5192),o=Array.prototype.slice,d=Object.keys,u=function(g){return"[object Arguments]"==Object.prototype.toString.call(g)};function h(g){return"string"==typeof g||g instanceof String}function r(g){return!isNaN(parseFloat(g))&&isFinite(g)}function s(g){return g.toUpperCase().replace(/\s+/," ")}var i=function(g,y,E){if(E||(E={}),(g=v.valData(g))===(y=v.valData(y)))return!0;if(E.fuzzy){if(h(g)&&h(y))return s(g)==s(y);if(r(g)&&r(y))return m.isEquivalent(g,y)}else if("number"==typeof g&&"number"==typeof y)return m.isEqual(g,y);if(g instanceof Date&&y instanceof Date)return g.getTime()===y.getTime();if(!g||!y||"object"!=typeof g&&"object"!=typeof y)return E.strict?g===y:g==y;var T=g instanceof f,D=y instanceof f;if(T&&D)return E.fuzzy?g.equivalentTo(y):g.equals(y);if(T||D){let O,w;T?(O=g,w=y):(O=y,w=g);let A="string"==typeof w;if(A){let S=O.constructor.checkString(w);A=!!S&&(E.fuzzy?g.equivalentTo(S):O.equals(S))}return A}return function(g,y,E){var T,D;if(c(g)||c(y)||g.prototype!==y.prototype)return!1;if(u(g)||u(y))return g=u(g)?o.call(g):g,y=u(y)?o.call(y):y,i(g,y,E);try{var O=d(g),w=d(y)}catch(A){return!1}if(O.length!=w.length)return!1;for(O.sort(),w.sort(),T=O.length-1;T>=0;T--)if(O[T]!=w[T])return!1;if(1===O.length)return i(g[D=O[0]],y[D],E);for(T=O.length-1;T>=0;T--)if(!i(g[D=O[T]],y[D],E))return!1;return typeof g==typeof y}(g,y,E)};function c(g){return null==g}ye.exports=i},2066:(ye,j,p)=>{var n=p(4569),f=p(9640),v=p(2563);const m=v.FP_Type,o=v.FP_DateTime,d=v.FP_Time;var u={};function h(i,c){return n.isEmpty(i)||n.isEmpty(c)?[]:f(i,c)}function r(i,c){return n.isEmpty(i)&&n.isEmpty(c)?[!0]:n.isEmpty(i)||n.isEmpty(c)?[]:f(i,c,{fuzzy:!0})}function s(i,c){let l=null;n.assertAtMostOne(i,"Singleton was expected"),n.assertAtMostOne(c,"Singleton was expected"),i=n.valData(i[0]),c=n.valData(c[0]);let g=i.constructor,y=c.constructor;var E;return g!=y&&(g!==String||y!==o&&y!==d?y===String&&(g===o||g===d)&&(E=g.checkString(c))&&(l=[i,E]):(E=y.checkString(i))&&(l=[E,c]),l||n.raiseError('Type of "'+i+'" ('+g.name+') did not match type of "'+c+'" ('+y.name+")","InequalityExpression")),l||[i,c]}u.equal=function(i,c){return h(i,c)},u.unequal=function(i,c){var l=h(i,c);return void 0===l?void 0:!l},u.equival=function(i,c){return r(i,c)},u.unequival=function(i,c){return!r(i,c)},u.lt=function(i,c){if(!i.length||!c.length)return[];const[l,g]=s(i,c);if(l instanceof m){const y=l.compare(g);return null===y?[]:y<0}return l0}return l>g},u.lte=function(i,c){if(!i.length||!c.length)return[];const[l,g]=s(i,c);if(l instanceof m){const y=l.compare(g);return null===y?[]:y<=0}return l<=g},u.gte=function(i,c){if(!i.length||!c.length)return[];const[l,g]=s(i,c);if(l instanceof m){const y=l.compare(g);return null===y?[]:y>=0}return l>=g},ye.exports=u},6127:(ye,j,p)=>{const n=p(4569),f=p(8774),v=p(9502),m={};function o(h){return JSON.stringify(d(h))}function d(h){return"object"==typeof h?Array.isArray(h)?h.map(d):Object.keys(h).sort().reduce((r,s)=>(r[s]=d(h[s]),r),{}):h}function u(h,r){let s=h.length<=r.length;if(s){var i={};for(let c=0,l=h.length;c0){let s={};for(let i=0,c=h.length;i{const n=p(9410),f=p(4569);p(7070);const v=p(9397);let m={},o=p(6127),d=p(8774),u=p(3853),h=p(6856),r=p(9502),s=p(2066),i=p(3142),c=p(2492),l=p(9835),g=p(5948),y=p(3425),E=p(2306);const T=p(2563),{FP_DateTime:D,FP_Time:O,FP_Quantity:w,FP_Type:A,ResourceNode:S,TypeInfo:M}=T;let I=S.makeResNode;function b(J,ie,ae,le){if("Expr"===ae)return function(Le){return J.$this=Le,m.doEval(J,f.arraify(Le),le)};if("AnyAtRoot"===ae)return J.$this=J.dataRoot,m.doEval(J,J.dataRoot,le);if("Identifier"===ae){if("TermExpression"==le.type)return le.text;throw new Error("Expected identifier node, got "+JSON.stringify(le))}if("TypeSpecifier"===ae)return m.TypeSpecifier(J,ie,le);J.$this=ie;var Oe=m.doEval(J,ie,le);if("Any"===ae)return Oe;if(Array.isArray(ae)){if(0==Oe.length)return[];ae=ae[0]}return r.singleton(Oe,ae)}function F(J){return null==J||f.isEmpty(J)}function ne(J,ie,ae,le){var Oe=m.invocationTable[ie];if(Oe&&Oe.fn){var Le=le?le.length:0;if(2!=Le)throw new Error("Infix invoke should have arity 2");var Ye=Oe.arity[Le];if(Ye){for(var Je=[],gt=0;gt":{fn:s.gt,arity:{2:["Any","Any"]},nullable:!0},"<=":{fn:s.lte,arity:{2:["Any","Any"]},nullable:!0},">=":{fn:s.gte,arity:{2:["Any","Any"]},nullable:!0},containsOp:{fn:i.contains,arity:{2:["Any","Any"]}},inOp:{fn:i.in,arity:{2:["Any","Any"]}},isOp:{fn:T.isFn,arity:{2:["Any","TypeSpecifier"]}},"&":{fn:c.amp,arity:{2:["String","String"]}},"+":{fn:c.plus,arity:{2:["Any","Any"]},nullable:!0},"-":{fn:c.minus,arity:{2:["Any","Any"]},nullable:!0},"*":{fn:c.mul,arity:{2:["Number","Number"]},nullable:!0},"/":{fn:c.div,arity:{2:["Number","Number"]},nullable:!0},mod:{fn:c.mod,arity:{2:["Number","Number"]},nullable:!0},div:{fn:c.intdiv,arity:{2:["Number","Number"]},nullable:!0},or:{fn:E.orOp,arity:{2:[["Boolean"],["Boolean"]]}},and:{fn:E.andOp,arity:{2:[["Boolean"],["Boolean"]]}},xor:{fn:E.xorOp,arity:{2:[["Boolean"],["Boolean"]]}},implies:{fn:E.impliesOp,arity:{2:[["Boolean"],["Boolean"]]}}},m.InvocationExpression=function(J,ie,ae){return ae.children.reduce(function(le,Oe){return m.doEval(J,le,Oe)},ie)},m.TermExpression=function(J,ie,ae){return ie&&(ie=ie.map(le=>le instanceof Object&&le.resourceType?I(le,le.resourceType):le)),m.doEval(J,ie,ae.children[0])},m.PolarityExpression=function(J,ie,ae){var le=ae.terminalNodeText[0],Oe=m.doEval(J,ie,ae.children[0]);if(1!=Oe.length)throw new Error("Unary "+le+" can only be applied to an individual number.");if("number"!=typeof Oe[0]||isNaN(Oe[0]))throw new Error("Unary "+le+" can only be applied to a number.");return"-"===le&&(Oe[0]=-Oe[0]),Oe},m.TypeSpecifier=function(J,ie,ae){let le,Oe;const Le=ae.text.split(".").map(Ye=>Ye.replace(/(^`|`$)/g,""));switch(Le.length){case 2:[le,Oe]=Le;break;case 1:[Oe]=Le;break;default:throw new Error("Expected TypeSpecifier node, got "+JSON.stringify(ae))}return new M({namespace:le,name:Oe})},m.ExternalConstantTerm=function(J,ie,ae){var Le=m.Identifier(J,ie,ae.children[0].children[0])[0],Ye=J.vars[Le];if(!(Le in J.vars))throw new Error("Attempting to access an undefined environment variable: "+Le);return null==Ye?[]:Ye instanceof Array?Ye:[Ye]},m.LiteralTerm=function(J,ie,ae){var le=ae.children[0];return le?m.doEval(J,ie,le):[ae.text]},m.StringLiteral=function(J,ie,ae){var le=ae.text.replace(/(^'|'$)/g,"");return[le=le.replace(/\\(u\d{4}|.)/g,function(Oe,Le){switch(Oe){case"\\r":return"\r";case"\\n":return"\n";case"\\t":return"\t";case"\\f":return"\f";default:return Le.length>1?String.fromCharCode("0x"+Le.slice(1)):Le}})]},m.BooleanLiteral=function(J,ie,ae){return"true"===ae.text?[!0]:[!1]},m.QuantityLiteral=function(J,ie,ae){var le=ae.children[0],Oe=Number(le.terminalNodeText[0]),Le=le.children[0],Ye=Le.terminalNodeText[0];return!Ye&&Le.children&&(Ye=Le.children[0].terminalNodeText[0]),[new w(Oe,Ye)]},m.DateTimeLiteral=function(J,ie,ae){var le=ae.text.slice(1);return[new D(le)]},m.TimeLiteral=function(J,ie,ae){var le=ae.text.slice(1);return[new O(le)]},m.NumberLiteral=function(J,ie,ae){return[Number(ae.text)]},m.Identifier=function(J,ie,ae){return[ae.text.replace(/(^`|`$)/g,"")]},m.InvocationTerm=function(J,ie,ae){return m.doEval(J,ie,ae.children[0])},m.MemberInvocation=function(J,ie,ae){const le=m.doEval(J,ie,ae.children[0])[0],Oe=J.model;return ie?f.isCapitalized(le)?ie.filter(Le=>Le instanceof S&&Le.path===le):ie.reduce(function(Le,Ye){var Je=(Ye=I(Ye)).path+"."+le;if(Oe){let at=Oe.pathsDefinedElsewhere[Je];at&&(Je=at)}let gt,Ue,tt=Oe&&Oe.choiceTypePaths[Je];if(tt)for(let at of tt){if(gt=Ye.data[le+at],void 0!==gt){Je=at,Ue=Ye.data["_"+le];break}gt=Ye._data[le]}else gt=Ye.data[le],void 0!==gt?Ue=Ye.data["_"+le]:gt=Ye._data[le],"extension"===le&&(Je="Extension");return f.isSome(gt)&&(Array.isArray(gt)?Le=Le.concat(gt.map((at,ft)=>I(at,Je,Ue&&Ue[ft]))):Le.push(I(gt,Je,Ue))),Le},[]):[]},m.IndexerExpression=function(J,ie,ae){const Oe=ae.children[1];var Le=m.doEval(J,ie,ae.children[0]),Ye=m.doEval(J,ie,Oe);if(f.isEmpty(Ye))return[];var Je=parseInt(Ye[0]);return Le&&f.isSome(Je)&&Le.length>Je&&Je>=0?[Le[Je]]:[]},m.Functn=function(J,ie,ae){return ae.children.map(function(le){return m.doEval(J,ie,le)})},m.realizeParams=function(J,ie,ae){return ae&&ae[0]&&ae[0].children?ae[0].children.map(function(le){return m.doEval(J,ie,le)}):[]},m.FunctionInvocation=function(J,ie,ae){var le=m.doEval(J,ie,ae.children[0]);const Oe=le[0];return le.shift(),function(J,ie,ae,le){var Le,Oe=m.invocationTable[ie];if(Oe){if(Oe.arity){var Ye=le?le.length:0,Je=Oe.arity[Ye];if(Je){for(var gt=[],Ue=0;Ue{const n=p(4569),{TypeInfo:f,ResourceNode:v}=p(2563);ye.exports={whereMacro:function(o,d){return!1===o||o?n.flatten(o.filter((u,h)=>(this.$index=h,d(u)[0]))):[]},extension:function(o,d){return!1!==o&&!o||!d?[]:n.flatten(o.map((u,h)=>{this.$index=h;const r=u&&(u.data&&u.data.extension||u._data&&u._data.extension);return r?r.filter(s=>s.url===d).map(s=>v.makeResNode(s,"Extension")):[]}))},selectMacro:function(o,d){return!1===o||o?n.flatten(o.map((u,h)=>(this.$index=h,d(u)))):[]},repeatMacro:function(o,d){if(!1!==o&&!o)return[];for(var u=[],h=o,s=null;0!=h.length;)(s=d(h.shift()))&&(u=u.concat(s),h=h.concat(s));return u},singleFn:function(o){return 1==o.length?o:0==o.length?[]:{$status:"error",$error:"Expected single"}},firstFn:function(o){return o[0]},lastFn:function(o){return o[o.length-1]},tailFn:function(o){return o.slice(1,o.length)},takeFn:function(o,d){return o.slice(0,d)},skipFn:function(o,d){return o.slice(d,o.length)},ofTypeFn:function(o,d){return o.filter(u=>f.fromValue(u).is(d))}}},2306:ye=>{ye.exports={orOp:function(p,n){if(Array.isArray(n)){if(!0===p)return!0;if(!1===p)return[];if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n||[]:p||n},andOp:function(p,n){if(Array.isArray(n)){if(!0===p)return[];if(!1===p)return!1;if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n&&[]:p&&n},xorOp:function(p,n){return Array.isArray(p)||Array.isArray(n)?[]:p&&!n||!p&&n},impliesOp:function(p,n){if(Array.isArray(n)){if(!0===p)return[];if(!1===p)return!0;if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n||[]:!1===p||p&&n}}},2492:(ye,j,p)=>{var n=p(2563);let{FP_TimeBase:f,FP_Quantity:v}=n;const m=p(4569);var o={};function d(h){let r=m.valData(h);if("number"!=typeof r){if(1==r.length&&"number"==typeof(r=m.valData(r[0])))return r;throw new Error("Expected number, but got "+JSON.stringify(r||h))}return r}function u(h){return"number"!=typeof h&&0==h.length}o.amp=function(h,r){return(h||"")+(r||"")},o.plus=function(h,r){if(1==h.length&&1==r.length){var s=m.valData(h[0]),i=m.valData(r[0]);if("string"==typeof s&&"string"==typeof i||"number"==typeof s&&"number"==typeof i)return s+i;if(s instanceof f&&i instanceof v)return s.plus(i)}throw new Error("Cannot "+JSON.stringify(h)+" + "+JSON.stringify(r))},o.minus=function(h,r){if(1==h.length&&1==r.length){var s=m.valData(h[0]),i=m.valData(r[0]);if("number"==typeof s&&"number"==typeof i)return s-i;if(s instanceof f&&i instanceof v)return s.plus(new v(-i.value,i.unit))}throw new Error("Cannot "+JSON.stringify(h)+" - "+JSON.stringify(r))},o.mul=function(h,r){return h*r},o.div=function(h,r){return h/r},o.intdiv=function(h,r){return Math.floor(h/r)},o.mod=function(h,r){return h%r},o.abs=function(h){if(u(h))return[];{let r=d(h);return Math.abs(r)}},o.ceiling=function(h){if(u(h))return[];{let r=d(h);return Math.ceil(r)}},o.exp=function(h){if(u(h))return[];{let r=d(h);return Math.exp(r)}},o.floor=function(h){if(u(h))return[];{let r=d(h);return Math.floor(r)}},o.ln=function(h){if(u(h))return[];{let r=d(h);return Math.log(r)}},o.log=function(h,r){if(u(h)||u(r))return[];{let s=d(h),i=d(r);return Math.log(s)/Math.log(i)}},o.power=function(h,r){if(u(h)||u(r))return[];{let s=d(h),i=d(r);return s<0&&Math.floor(i)!=i?[]:Math.pow(s,i)}},o.round=function(h,r){if(u(h))return[];{let s=d(h);if(u(r))return Math.round(s);{let i=d(r),c=Math.pow(10,i);return Math.round(s*c)/c}}},o.sqrt=function(h){if(u(h))return[];{let r=d(h);return r<0?[]:Math.sqrt(r)}},o.truncate=function(h){if(u(h))return[];{let r=d(h);return Math.trunc(r)}},ye.exports=o},9502:(ye,j,p)=>{var n=p(4569),f=p(2563);const{FP_Quantity:v}=f;var m={iifMacro:function(l,g,y,E){return n.isTrue(g(l))?y(l):E?E(l):[]},traceFn:function(l,g){return console.log("TRACE:["+(g||"")+"]",JSON.stringify(l,null," ")),l}},o=/^[+-]?\d+$/;m.toInteger=function(l){if(1!==l.length)return[];var g=n.valData(l[0]);return!1===g?0:!0===g?1:"number"==typeof g?Number.isInteger(g)?g:[]:"string"==typeof g&&o.test(g)?parseInt(g):[]};const d=/^((\+|-)?\d+(\.\d+)?)\s*(('[^']+')|([a-zA-Z]+))?$/;m.toQuantity=function(l,g){let y;if(g&&!v.mapTimeUnitsToUCUMCode[g]&&(g=`'${g}'`),l.length>1)throw new Error("Could not convert to quantity: input collection contains multiple items");if(1===l.length){const T=n.valData(l[0]);let D;if("number"==typeof T)y=new v(T,"'1'");else if(T instanceof v)y=T;else if("boolean"==typeof T)y=new v(T?1:0,"'1'");else if("string"==typeof T&&(D=d.exec(T))){const O=D[1],w=D[5],A=D[6];(!A||v.mapTimeUnitsToUCUMCode[A])&&(y=new v(Number(O),w||A||"'1'"))}y&&g&&y.unit!==g&&(y=v.convUnitTo(y.unit,y.value,g))}return y||[]};var h=/^[+-]?\d+(\.\d+)?$/;function r(l){let g=l.slice(3);m["to"+g]=function(y){var E=[];if(y.length>1)throw Error("to "+g+" called for a collection of length "+y.length);if(1===y.length){var T=f[l].checkString(n.valData(y[0]));T&&(E=T)}return E}}m.toDecimal=function(l){if(1!==l.length)return[];var g=n.valData(l[0]);return!1===g?0:!0===g?1:"number"==typeof g?g:"string"==typeof g&&h.test(g)?parseFloat(g):[]},m.toString=function(l){return 1!==l.length?[]:n.valData(l[0]).toString()},r("FP_DateTime"),r("FP_Time");const s=["true","t","yes","y","1","1.0"].reduce((l,g)=>(l[g]=!0,l),{}),i=["false","f","no","n","0","0.0"].reduce((l,g)=>(l[g]=!0,l),{});m.toBoolean=function(l){if(1!==l.length)return[];const g=n.valData(l[0]);switch(typeof g){case"boolean":return g;case"number":if(1===g)return!0;if(0===g)return!1;break;case"string":const y=g.toLowerCase();if(s[y])return!0;if(i[y])return!1}return[]},m.createConvertsToFn=function(l,g){return"string"==typeof g?function(y){return 1!==y.length?[]:typeof l(y)===g}:function(y){return 1!==y.length?[]:l(y)instanceof g}};const c={Integer:function(l){const g=n.valData(l[0]);if(Number.isInteger(g))return g},Boolean:function(l){const g=n.valData(l[0]);return!0===g||!1===g?g:1===l.length||void 0},Number:function(l){const g=n.valData(l[0]);if("number"==typeof g)return g},String:function(l){const g=n.valData(l[0]);if("string"==typeof g)return g}};m.singleton=function(l,g){if(l.length>1)throw new Error("Unexpected collection"+JSON.stringify(l)+"; expected singleton of type "+g);if(0===l.length)return[];const y=c[g];if(y){const E=y(l);if(void 0!==E)return E;throw new Error(`Expected ${g.toLowerCase()}, but got: ${JSON.stringify(l)}`)}throw new Error("Not supported type "+g)},ye.exports=m},5948:(ye,j,p)=>{const n=p(4569),{ResourceNode:f}=p(2563);let v=f.makeResNode;var m={children:function(o){let d=this.model;return o.reduce(function(u,h){let r=n.valData(h);if(h=v(h),"object"==typeof r){for(var s of Object.keys(r)){var i=r[s],c=h.path+"."+s;if(d){let l=d.pathsDefinedElsewhere[c];l&&(c=l)}Array.isArray(i)?u.push.apply(u,i.map(l=>v(l,c))):u.push(v(i,c))}return u}return u},[])},descendants:function(o){for(var d=m.children.call(this,o),u=[];d.length>0;)u.push.apply(u,d),d=m.children.call(this,d);return u}};ye.exports=m},5192:ye=>{let j={};function p(m){const d=/(\d+)(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/.exec(""+ +m);if(!d)return 0;const u=d[2];return Math.max(0,("0"===u?0:(u||"").length)-(d[3]||0))}function n(m,o){const d=Math.pow(10,o);return Math.round(m*d)/d}function v(m){return 1e-8*Math.round(m/1e-8)}j.isEquivalent=function(m,o){if(Number.isInteger(m)&&Number.isInteger(o))return m===o;const d=Math.min(p(m),p(o));return 0===d?Math.round(m)===Math.round(o):n(m,d)===n(o,d)},j.isEqual=function(m,o){return v(m)===v(o)},ye.exports=j},4981:(ye,j,p)=>{j.atn=p(8900),j.codepointat=p(4185),j.dfa=p(8985),j.fromcodepoint=p(9767),j.tree=p(6722),j.error=p(8553),j.Token=p(8443).Token,j.CommonToken=p(8443).CommonToken,j.InputStream=p(7500).InputStream,j.CommonTokenStream=p(2430).CommonTokenStream,j.Lexer=p(3805).Lexer,j.Parser=p(6554).Parser;var n=p(4825);j.PredictionContextCache=n.PredictionContextCache,j.ParserRuleContext=p(911).ParserRuleContext,j.Interval=p(210).Interval,j.Utils=p(8065)},4621:(ye,j,p)=>{var n=p(4981),f=["\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964","\x02A\u0203\b\x01\x04\x02\t\x02\x04\x03\t\x03\x04","\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t","\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04","\f\t\f\x04\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10","\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13","\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17","\t\x17\x04\x18\t\x18\x04\x19\t\x19\x04\x1a\t\x1a","\x04\x1b\t\x1b\x04\x1c\t\x1c\x04\x1d\t\x1d\x04\x1e",'\t\x1e\x04\x1f\t\x1f\x04 \t \x04!\t!\x04"\t"\x04#',"\t#\x04$\t$\x04%\t%\x04&\t&\x04'\t'\x04(\t(\x04)\t)\x04","*\t*\x04+\t+\x04,\t,\x04-\t-\x04.\t.\x04/\t/\x040\t0\x04","1\t1\x042\t2\x043\t3\x044\t4\x045\t5\x046\t6\x047\t7\x04","8\t8\x049\t9\x04:\t:\x04;\t;\x04<\t<\x04=\t=\x04>\t>\x04","?\t?\x04@\t@\x04A\tA\x04B\tB\x04C\tC\x04D\tD\x03\x02\x03","\x02\x03\x03\x03\x03\x03\x04\x03\x04\x03\x05\x03","\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\b\x03","\b\x03\t\x03\t\x03\t\x03\t\x03\n\x03\n\x03\n\x03\n\x03","\v\x03\v\x03\f\x03\f\x03\r\x03\r\x03\r\x03\x0e","\x03\x0e\x03\x0f\x03\x0f\x03\x10\x03\x10\x03\x10","\x03\x11\x03\x11\x03\x11\x03\x12\x03\x12\x03\x12","\x03\x13\x03\x13\x03\x14\x03\x14\x03\x15\x03\x15","\x03\x15\x03\x16\x03\x16\x03\x16\x03\x17\x03\x17","\x03\x17\x03\x18\x03\x18\x03\x18\x03\x18\x03\x18","\x03\x18\x03\x18\x03\x18\x03\x18\x03\x19\x03\x19","\x03\x19\x03\x19\x03\x1a\x03\x1a\x03\x1a\x03\x1b","\x03\x1b\x03\x1b\x03\x1b\x03\x1c\x03\x1c\x03\x1c","\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1d","\x03\x1d\x03\x1e\x03\x1e\x03\x1f\x03\x1f\x03 ",'\x03 \x03!\x03!\x03!\x03!\x03!\x03"\x03"\x03"\x03','"\x03"\x03"\x03#\x03#\x03$\x03$\x03$\x03$\x03$',"\x03$\x03%\x03%\x03%\x03%\x03%\x03%\x03%\x03&\x03","&\x03&\x03&\x03&\x03&\x03&\x03'\x03'\x03(\x03(\x03","(\x03(\x03(\x03)\x03)\x03)\x03)\x03)\x03)\x03*\x03","*\x03*\x03*\x03*\x03+\x03+\x03+\x03+\x03,\x03,\x03",",\x03,\x03,\x03-\x03-\x03-\x03-\x03-\x03-\x03-\x03",".\x03.\x03.\x03.\x03.\x03.\x03.\x03/\x03/\x03/\x03","/\x03/\x03/\x03/\x03/\x03/\x03/\x03/\x03/\x030\x03","0\x030\x030\x030\x030\x031\x031\x031\x031\x031\x03","1\x031\x032\x032\x032\x032\x032\x032\x033\x033\x03","3\x033\x033\x034\x034\x034\x034\x034\x034\x035\x03","5\x035\x035\x035\x035\x035\x035\x036\x036\x036\x03","6\x036\x036\x036\x036\x037\x037\x037\x037\x037\x03","7\x037\x037\x037\x037\x037\x037\x037\x038\x038\x03","8\x038\x038\x038\x038\x038\x038\x038\x038\x038\x03","8\x058\u0183\n8\x058\u0185\n8\x058\u0187\n8\x038\x058\u018a","\n8\x039\x039\x039\x039\x03:\x03:\x03:\x03:\x03:\x03",":\x03:\x03:\x03:\x03:\x06:\u019a\n:\r:\x0e:\u019b\x05",":\u019e\n:\x05:\u01a0\n:\x05:\u01a2\n:\x03:\x03:\x03:\x03",":\x03:\x03:\x03:\x05:\u01ab\n:\x03;\x05;\u01ae\n;\x03",";\x07;\u01b1\n;\f;\x0e;\u01b4\v;\x03<\x03<\x03<\x07","<\u01b9\n<\f<\x0e<\u01bc\v<\x03<\x03<\x03=\x03=\x03","=\x07=\u01c3\n=\f=\x0e=\u01c6\v=\x03=\x03=\x03>\x06",">\u01cb\n>\r>\x0e>\u01cc\x03>\x03>\x06>\u01d1\n>\r>\x0e>\u01d2","\x05>\u01d5\n>\x03?\x06?\u01d8\n?\r?\x0e?\u01d9\x03?\x03","?\x03@\x03@\x03@\x03@\x07@\u01e2\n@\f@\x0e@\u01e5\v","@\x03@\x03@\x03@\x03@\x03@\x03A\x03A\x03A\x03A\x07","A\u01f0\nA\fA\x0eA\u01f3\vA\x03A\x03A\x03B\x03B\x03","B\x05B\u01fa\nB\x03C\x03C\x03C\x03C\x03C\x03C\x03D\x03","D\x03\u01e3\x02E\x03\x03\x05\x04\x07\x05\t\x06\v","\x07\r\b\x0f\t\x11\n\x13\v\x15\f\x17\r\x19\x0e\x1b","\x0f\x1d\x10\x1f\x11!\x12#\x13%\x14'\x15)\x16+","\x17-\x18/\x191\x1a3\x1b5\x1c7\x1d9\x1e;\x1f= ?!A","\"C#E$G%I&K'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s\x02u;w}","?\x7f@\x81A\x83\x02\x85\x02\x87\x02\x03\x02\f\x03","\x022;\x04\x02--//\x05\x02C\\aac|\x06\x022;C\\aac|\x04",'\x02^^bb\x03\x02))\x05\x02\v\f\x0f\x0f""\x04\x02',"\f\f\x0f\x0f\n\x02))11^^bbhhppttvv\x05\x022;CHch\x02\u0214","\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02","\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02","\x02\v\x03\x02\x02\x02\x02\r\x03\x02\x02\x02","\x02\x0f\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02","\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02","\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02","\x02\x1b\x03\x02\x02\x02\x02\x1d\x03\x02\x02\x02","\x02\x1f\x03\x02\x02\x02\x02!\x03\x02\x02\x02","\x02#\x03\x02\x02\x02\x02%\x03\x02\x02\x02\x02","'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03","\x02\x02\x02\x02-\x03\x02\x02\x02\x02/\x03\x02","\x02\x02\x021\x03\x02\x02\x02\x023\x03\x02\x02","\x02\x025\x03\x02\x02\x02\x027\x03\x02\x02\x02","\x029\x03\x02\x02\x02\x02;\x03\x02\x02\x02\x02","=\x03\x02\x02\x02\x02?\x03\x02\x02\x02\x02A\x03","\x02\x02\x02\x02C\x03\x02\x02\x02\x02E\x03\x02","\x02\x02\x02G\x03\x02\x02\x02\x02I\x03\x02\x02","\x02\x02K\x03\x02\x02\x02\x02M\x03\x02\x02\x02","\x02O\x03\x02\x02\x02\x02Q\x03\x02\x02\x02\x02","S\x03\x02\x02\x02\x02U\x03\x02\x02\x02\x02W\x03","\x02\x02\x02\x02Y\x03\x02\x02\x02\x02[\x03\x02","\x02\x02\x02]\x03\x02\x02\x02\x02_\x03\x02\x02","\x02\x02a\x03\x02\x02\x02\x02c\x03\x02\x02\x02","\x02e\x03\x02\x02\x02\x02g\x03\x02\x02\x02\x02","i\x03\x02\x02\x02\x02k\x03\x02\x02\x02\x02m\x03","\x02\x02\x02\x02o\x03\x02\x02\x02\x02q\x03\x02","\x02\x02\x02u\x03\x02\x02\x02\x02w\x03\x02\x02","\x02\x02y\x03\x02\x02\x02\x02{\x03\x02\x02\x02","\x02}\x03\x02\x02\x02\x02\x7f\x03\x02\x02\x02","\x02\x81\x03\x02\x02\x02\x03\x89\x03\x02\x02\x02","\x05\x8b\x03\x02\x02\x02\x07\x8d\x03\x02\x02\x02","\t\x8f\x03\x02\x02\x02\v\x91\x03\x02\x02\x02","\r\x93\x03\x02\x02\x02\x0f\x95\x03\x02\x02\x02","\x11\x97\x03\x02\x02\x02\x13\x9b\x03\x02\x02\x02","\x15\x9f\x03\x02\x02\x02\x17\xa1\x03\x02\x02\x02","\x19\xa3\x03\x02\x02\x02\x1b\xa6\x03\x02\x02\x02","\x1d\xa8\x03\x02\x02\x02\x1f\xaa\x03\x02\x02\x02","!\xad\x03\x02\x02\x02#\xb0\x03\x02\x02\x02%\xb3","\x03\x02\x02\x02'\xb5\x03\x02\x02\x02)\xb7\x03","\x02\x02\x02+\xba\x03\x02\x02\x02-\xbd\x03\x02","\x02\x02/\xc0\x03\x02\x02\x021\xc9\x03\x02\x02","\x023\xcd\x03\x02\x02\x025\xd0\x03\x02\x02\x02","7\xd4\x03\x02\x02\x029\xdc\x03\x02\x02\x02;\xde","\x03\x02\x02\x02=\xe0\x03\x02\x02\x02?\xe2\x03","\x02\x02\x02A\xe4\x03\x02\x02\x02C\xe9\x03\x02","\x02\x02E\xef\x03\x02\x02\x02G\xf1\x03\x02\x02","\x02I\xf7\x03\x02\x02\x02K\xfe\x03\x02\x02\x02","M\u0105\x03\x02\x02\x02O\u0107\x03\x02\x02\x02Q\u010c","\x03\x02\x02\x02S\u0112\x03\x02\x02\x02U\u0117\x03","\x02\x02\x02W\u011b\x03\x02\x02\x02Y\u0120\x03\x02","\x02\x02[\u0127\x03\x02\x02\x02]\u012e\x03\x02\x02","\x02_\u013a\x03\x02\x02\x02a\u0140\x03\x02\x02\x02","c\u0147\x03\x02\x02\x02e\u014d\x03\x02\x02\x02g\u0152","\x03\x02\x02\x02i\u0158\x03\x02\x02\x02k\u0160\x03","\x02\x02\x02m\u0168\x03\x02\x02\x02o\u0175\x03\x02","\x02\x02q\u018b\x03\x02\x02\x02s\u018f\x03\x02\x02","\x02u\u01ad\x03\x02\x02\x02w\u01b5\x03\x02\x02\x02","y\u01bf\x03\x02\x02\x02{\u01ca\x03\x02\x02\x02}\u01d7","\x03\x02\x02\x02\x7f\u01dd\x03\x02\x02\x02\x81\u01eb","\x03\x02\x02\x02\x83\u01f6\x03\x02\x02\x02\x85\u01fb","\x03\x02\x02\x02\x87\u0201\x03\x02\x02\x02\x89\x8a","\x070\x02\x02\x8a\x04\x03\x02\x02\x02\x8b\x8c","\x07]\x02\x02\x8c\x06\x03\x02\x02\x02\x8d\x8e","\x07_\x02\x02\x8e\b\x03\x02\x02\x02\x8f\x90\x07","-\x02\x02\x90\n\x03\x02\x02\x02\x91\x92\x07/\x02","\x02\x92\f\x03\x02\x02\x02\x93\x94\x07,\x02\x02","\x94\x0e\x03\x02\x02\x02\x95\x96\x071\x02\x02","\x96\x10\x03\x02\x02\x02\x97\x98\x07f\x02\x02","\x98\x99\x07k\x02\x02\x99\x9a\x07x\x02\x02\x9a","\x12\x03\x02\x02\x02\x9b\x9c\x07o\x02\x02\x9c","\x9d\x07q\x02\x02\x9d\x9e\x07f\x02\x02\x9e\x14","\x03\x02\x02\x02\x9f\xa0\x07(\x02\x02\xa0\x16","\x03\x02\x02\x02\xa1\xa2\x07~\x02\x02\xa2\x18","\x03\x02\x02\x02\xa3\xa4\x07>\x02\x02\xa4\xa5","\x07?\x02\x02\xa5\x1a\x03\x02\x02\x02\xa6\xa7","\x07>\x02\x02\xa7\x1c\x03\x02\x02\x02\xa8\xa9","\x07@\x02\x02\xa9\x1e\x03\x02\x02\x02\xaa\xab","\x07@\x02\x02\xab\xac\x07?\x02\x02\xac \x03\x02","\x02\x02\xad\xae\x07k\x02\x02\xae\xaf\x07u\x02",'\x02\xaf"\x03\x02\x02\x02\xb0\xb1\x07c\x02\x02',"\xb1\xb2\x07u\x02\x02\xb2$\x03\x02\x02\x02\xb3","\xb4\x07?\x02\x02\xb4&\x03\x02\x02\x02\xb5\xb6","\x07\x80\x02\x02\xb6(\x03\x02\x02\x02\xb7\xb8","\x07#\x02\x02\xb8\xb9\x07?\x02\x02\xb9*\x03\x02","\x02\x02\xba\xbb\x07#\x02\x02\xbb\xbc\x07\x80","\x02\x02\xbc,\x03\x02\x02\x02\xbd\xbe\x07k\x02","\x02\xbe\xbf\x07p\x02\x02\xbf.\x03\x02\x02\x02","\xc0\xc1\x07e\x02\x02\xc1\xc2\x07q\x02\x02\xc2","\xc3\x07p\x02\x02\xc3\xc4\x07v\x02\x02\xc4\xc5","\x07c\x02\x02\xc5\xc6\x07k\x02\x02\xc6\xc7\x07","p\x02\x02\xc7\xc8\x07u\x02\x02\xc80\x03\x02\x02","\x02\xc9\xca\x07c\x02\x02\xca\xcb\x07p\x02\x02","\xcb\xcc\x07f\x02\x02\xcc2\x03\x02\x02\x02\xcd","\xce\x07q\x02\x02\xce\xcf\x07t\x02\x02\xcf4\x03","\x02\x02\x02\xd0\xd1\x07z\x02\x02\xd1\xd2\x07","q\x02\x02\xd2\xd3\x07t\x02\x02\xd36\x03\x02\x02","\x02\xd4\xd5\x07k\x02\x02\xd5\xd6\x07o\x02\x02","\xd6\xd7\x07r\x02\x02\xd7\xd8\x07n\x02\x02\xd8","\xd9\x07k\x02\x02\xd9\xda\x07g\x02\x02\xda\xdb","\x07u\x02\x02\xdb8\x03\x02\x02\x02\xdc\xdd\x07","*\x02\x02\xdd:\x03\x02\x02\x02\xde\xdf\x07+\x02","\x02\xdf<\x03\x02\x02\x02\xe0\xe1\x07}\x02\x02","\xe1>\x03\x02\x02\x02\xe2\xe3\x07\x7f\x02\x02","\xe3@\x03\x02\x02\x02\xe4\xe5\x07v\x02\x02\xe5","\xe6\x07t\x02\x02\xe6\xe7\x07w\x02\x02\xe7\xe8","\x07g\x02\x02\xe8B\x03\x02\x02\x02\xe9\xea\x07","h\x02\x02\xea\xeb\x07c\x02\x02\xeb\xec\x07n\x02","\x02\xec\xed\x07u\x02\x02\xed\xee\x07g\x02\x02","\xeeD\x03\x02\x02\x02\xef\xf0\x07'\x02\x02\xf0","F\x03\x02\x02\x02\xf1\xf2\x07&\x02\x02\xf2\xf3","\x07v\x02\x02\xf3\xf4\x07j\x02\x02\xf4\xf5\x07","k\x02\x02\xf5\xf6\x07u\x02\x02\xf6H\x03\x02\x02","\x02\xf7\xf8\x07&\x02\x02\xf8\xf9\x07k\x02\x02","\xf9\xfa\x07p\x02\x02\xfa\xfb\x07f\x02\x02\xfb","\xfc\x07g\x02\x02\xfc\xfd\x07z\x02\x02\xfdJ\x03","\x02\x02\x02\xfe\xff\x07&\x02\x02\xff\u0100\x07","v\x02\x02\u0100\u0101\x07q\x02\x02\u0101\u0102\x07v\x02","\x02\u0102\u0103\x07c\x02\x02\u0103\u0104\x07n\x02\x02","\u0104L\x03\x02\x02\x02\u0105\u0106\x07.\x02\x02\u0106","N\x03\x02\x02\x02\u0107\u0108\x07{\x02\x02\u0108\u0109","\x07g\x02\x02\u0109\u010a\x07c\x02\x02\u010a\u010b\x07","t\x02\x02\u010bP\x03\x02\x02\x02\u010c\u010d\x07o\x02","\x02\u010d\u010e\x07q\x02\x02\u010e\u010f\x07p\x02\x02","\u010f\u0110\x07v\x02\x02\u0110\u0111\x07j\x02\x02\u0111","R\x03\x02\x02\x02\u0112\u0113\x07y\x02\x02\u0113\u0114","\x07g\x02\x02\u0114\u0115\x07g\x02\x02\u0115\u0116\x07","m\x02\x02\u0116T\x03\x02\x02\x02\u0117\u0118\x07f\x02","\x02\u0118\u0119\x07c\x02\x02\u0119\u011a\x07{\x02\x02","\u011aV\x03\x02\x02\x02\u011b\u011c\x07j\x02\x02\u011c","\u011d\x07q\x02\x02\u011d\u011e\x07w\x02\x02\u011e\u011f","\x07t\x02\x02\u011fX\x03\x02\x02\x02\u0120\u0121\x07","o\x02\x02\u0121\u0122\x07k\x02\x02\u0122\u0123\x07p\x02","\x02\u0123\u0124\x07w\x02\x02\u0124\u0125\x07v\x02\x02","\u0125\u0126\x07g\x02\x02\u0126Z\x03\x02\x02\x02\u0127","\u0128\x07u\x02\x02\u0128\u0129\x07g\x02\x02\u0129\u012a","\x07e\x02\x02\u012a\u012b\x07q\x02\x02\u012b\u012c\x07","p\x02\x02\u012c\u012d\x07f\x02\x02\u012d\\\x03\x02\x02","\x02\u012e\u012f\x07o\x02\x02\u012f\u0130\x07k\x02\x02","\u0130\u0131\x07n\x02\x02\u0131\u0132\x07n\x02\x02\u0132","\u0133\x07k\x02\x02\u0133\u0134\x07u\x02\x02\u0134\u0135","\x07g\x02\x02\u0135\u0136\x07e\x02\x02\u0136\u0137\x07","q\x02\x02\u0137\u0138\x07p\x02\x02\u0138\u0139\x07f\x02","\x02\u0139^\x03\x02\x02\x02\u013a\u013b\x07{\x02\x02","\u013b\u013c\x07g\x02\x02\u013c\u013d\x07c\x02\x02\u013d","\u013e\x07t\x02\x02\u013e\u013f\x07u\x02\x02\u013f`\x03","\x02\x02\x02\u0140\u0141\x07o\x02\x02\u0141\u0142\x07","q\x02\x02\u0142\u0143\x07p\x02\x02\u0143\u0144\x07v\x02","\x02\u0144\u0145\x07j\x02\x02\u0145\u0146\x07u\x02\x02","\u0146b\x03\x02\x02\x02\u0147\u0148\x07y\x02\x02\u0148","\u0149\x07g\x02\x02\u0149\u014a\x07g\x02\x02\u014a\u014b","\x07m\x02\x02\u014b\u014c\x07u\x02\x02\u014cd\x03\x02","\x02\x02\u014d\u014e\x07f\x02\x02\u014e\u014f\x07c\x02","\x02\u014f\u0150\x07{\x02\x02\u0150\u0151\x07u\x02\x02","\u0151f\x03\x02\x02\x02\u0152\u0153\x07j\x02\x02\u0153","\u0154\x07q\x02\x02\u0154\u0155\x07w\x02\x02\u0155\u0156","\x07t\x02\x02\u0156\u0157\x07u\x02\x02\u0157h\x03\x02","\x02\x02\u0158\u0159\x07o\x02\x02\u0159\u015a\x07k\x02","\x02\u015a\u015b\x07p\x02\x02\u015b\u015c\x07w\x02\x02","\u015c\u015d\x07v\x02\x02\u015d\u015e\x07g\x02\x02\u015e","\u015f\x07u\x02\x02\u015fj\x03\x02\x02\x02\u0160\u0161","\x07u\x02\x02\u0161\u0162\x07g\x02\x02\u0162\u0163\x07","e\x02\x02\u0163\u0164\x07q\x02\x02\u0164\u0165\x07p\x02","\x02\u0165\u0166\x07f\x02\x02\u0166\u0167\x07u\x02\x02","\u0167l\x03\x02\x02\x02\u0168\u0169\x07o\x02\x02\u0169","\u016a\x07k\x02\x02\u016a\u016b\x07n\x02\x02\u016b\u016c","\x07n\x02\x02\u016c\u016d\x07k\x02\x02\u016d\u016e\x07","u\x02\x02\u016e\u016f\x07g\x02\x02\u016f\u0170\x07e\x02","\x02\u0170\u0171\x07q\x02\x02\u0171\u0172\x07p\x02\x02","\u0172\u0173\x07f\x02\x02\u0173\u0174\x07u\x02\x02\u0174","n\x03\x02\x02\x02\u0175\u0176\x07B\x02\x02\u0176\u0177","\t\x02\x02\x02\u0177\u0178\t\x02\x02\x02\u0178\u0179\t\x02","\x02\x02\u0179\u0186\t\x02\x02\x02\u017a\u017b\x07/\x02","\x02\u017b\u017c\t\x02\x02\x02\u017c\u0184\t\x02\x02\x02","\u017d\u017e\x07/\x02\x02\u017e\u017f\t\x02\x02\x02\u017f","\u0182\t\x02\x02\x02\u0180\u0181\x07V\x02\x02\u0181\u0183","\x05s:\x02\u0182\u0180\x03\x02\x02\x02\u0182\u0183\x03","\x02\x02\x02\u0183\u0185\x03\x02\x02\x02\u0184\u017d\x03","\x02\x02\x02\u0184\u0185\x03\x02\x02\x02\u0185\u0187\x03","\x02\x02\x02\u0186\u017a\x03\x02\x02\x02\u0186\u0187\x03","\x02\x02\x02\u0187\u0189\x03\x02\x02\x02\u0188\u018a\x07","\\\x02\x02\u0189\u0188\x03\x02\x02\x02\u0189\u018a\x03","\x02\x02\x02\u018ap\x03\x02\x02\x02\u018b\u018c\x07","B\x02\x02\u018c\u018d\x07V\x02\x02\u018d\u018e\x05s:\x02","\u018er\x03\x02\x02\x02\u018f\u0190\t\x02\x02\x02\u0190","\u01a1\t\x02\x02\x02\u0191\u0192\x07<\x02\x02\u0192\u0193","\t\x02\x02\x02\u0193\u019f\t\x02\x02\x02\u0194\u0195\x07","<\x02\x02\u0195\u0196\t\x02\x02\x02\u0196\u019d\t\x02\x02","\x02\u0197\u0199\x070\x02\x02\u0198\u019a\t\x02\x02\x02","\u0199\u0198\x03\x02\x02\x02\u019a\u019b\x03\x02\x02\x02","\u019b\u0199\x03\x02\x02\x02\u019b\u019c\x03\x02\x02\x02","\u019c\u019e\x03\x02\x02\x02\u019d\u0197\x03\x02\x02\x02","\u019d\u019e\x03\x02\x02\x02\u019e\u01a0\x03\x02\x02\x02","\u019f\u0194\x03\x02\x02\x02\u019f\u01a0\x03\x02\x02\x02","\u01a0\u01a2\x03\x02\x02\x02\u01a1\u0191\x03\x02\x02\x02","\u01a1\u01a2\x03\x02\x02\x02\u01a2\u01aa\x03\x02\x02\x02","\u01a3\u01ab\x07\\\x02\x02\u01a4\u01a5\t\x03\x02\x02\u01a5","\u01a6\t\x02\x02\x02\u01a6\u01a7\t\x02\x02\x02\u01a7\u01a8","\x07<\x02\x02\u01a8\u01a9\t\x02\x02\x02\u01a9\u01ab\t\x02","\x02\x02\u01aa\u01a3\x03\x02\x02\x02\u01aa\u01a4\x03\x02","\x02\x02\u01aa\u01ab\x03\x02\x02\x02\u01abt\x03\x02","\x02\x02\u01ac\u01ae\t\x04\x02\x02\u01ad\u01ac\x03\x02","\x02\x02\u01ae\u01b2\x03\x02\x02\x02\u01af\u01b1\t\x05","\x02\x02\u01b0\u01af\x03\x02\x02\x02\u01b1\u01b4\x03\x02","\x02\x02\u01b2\u01b0\x03\x02\x02\x02\u01b2\u01b3\x03\x02","\x02\x02\u01b3v\x03\x02\x02\x02\u01b4\u01b2\x03\x02","\x02\x02\u01b5\u01ba\x07b\x02\x02\u01b6\u01b9\x05\x83","B\x02\u01b7\u01b9\n\x06\x02\x02\u01b8\u01b6\x03\x02\x02","\x02\u01b8\u01b7\x03\x02\x02\x02\u01b9\u01bc\x03\x02\x02","\x02\u01ba\u01b8\x03\x02\x02\x02\u01ba\u01bb\x03\x02\x02","\x02\u01bb\u01bd\x03\x02\x02\x02\u01bc\u01ba\x03\x02\x02","\x02\u01bd\u01be\x07b\x02\x02\u01bex\x03\x02\x02\x02","\u01bf\u01c4\x07)\x02\x02\u01c0\u01c3\x05\x83B\x02\u01c1","\u01c3\n\x07\x02\x02\u01c2\u01c0\x03\x02\x02\x02\u01c2","\u01c1\x03\x02\x02\x02\u01c3\u01c6\x03\x02\x02\x02\u01c4","\u01c2\x03\x02\x02\x02\u01c4\u01c5\x03\x02\x02\x02\u01c5","\u01c7\x03\x02\x02\x02\u01c6\u01c4\x03\x02\x02\x02\u01c7","\u01c8\x07)\x02\x02\u01c8z\x03\x02\x02\x02\u01c9\u01cb","\t\x02\x02\x02\u01ca\u01c9\x03\x02\x02\x02\u01cb\u01cc","\x03\x02\x02\x02\u01cc\u01ca\x03\x02\x02\x02\u01cc\u01cd","\x03\x02\x02\x02\u01cd\u01d4\x03\x02\x02\x02\u01ce\u01d0","\x070\x02\x02\u01cf\u01d1\t\x02\x02\x02\u01d0\u01cf\x03","\x02\x02\x02\u01d1\u01d2\x03\x02\x02\x02\u01d2\u01d0\x03","\x02\x02\x02\u01d2\u01d3\x03\x02\x02\x02\u01d3\u01d5\x03","\x02\x02\x02\u01d4\u01ce\x03\x02\x02\x02\u01d4\u01d5\x03","\x02\x02\x02\u01d5|\x03\x02\x02\x02\u01d6\u01d8\t\b\x02","\x02\u01d7\u01d6\x03\x02\x02\x02\u01d8\u01d9\x03\x02\x02","\x02\u01d9\u01d7\x03\x02\x02\x02\u01d9\u01da\x03\x02\x02","\x02\u01da\u01db\x03\x02\x02\x02\u01db\u01dc\b?\x02\x02","\u01dc~\x03\x02\x02\x02\u01dd\u01de\x071\x02\x02\u01de","\u01df\x07,\x02\x02\u01df\u01e3\x03\x02\x02\x02\u01e0","\u01e2\v\x02\x02\x02\u01e1\u01e0\x03\x02\x02\x02\u01e2","\u01e5\x03\x02\x02\x02\u01e3\u01e4\x03\x02\x02\x02\u01e3","\u01e1\x03\x02\x02\x02\u01e4\u01e6\x03\x02\x02\x02\u01e5","\u01e3\x03\x02\x02\x02\u01e6\u01e7\x07,\x02\x02\u01e7","\u01e8\x071\x02\x02\u01e8\u01e9\x03\x02\x02\x02\u01e9","\u01ea\b@\x02\x02\u01ea\x80\x03\x02\x02\x02\u01eb\u01ec","\x071\x02\x02\u01ec\u01ed\x071\x02\x02\u01ed\u01f1\x03","\x02\x02\x02\u01ee\u01f0\n\t\x02\x02\u01ef\u01ee\x03\x02","\x02\x02\u01f0\u01f3\x03\x02\x02\x02\u01f1\u01ef\x03\x02","\x02\x02\u01f1\u01f2\x03\x02\x02\x02\u01f2\u01f4\x03\x02","\x02\x02\u01f3\u01f1\x03\x02\x02\x02\u01f4\u01f5\bA\x02","\x02\u01f5\x82\x03\x02\x02\x02\u01f6\u01f9\x07^\x02","\x02\u01f7\u01fa\t\n\x02\x02\u01f8\u01fa\x05\x85C\x02\u01f9","\u01f7\x03\x02\x02\x02\u01f9\u01f8\x03\x02\x02\x02\u01fa","\x84\x03\x02\x02\x02\u01fb\u01fc\x07w\x02\x02\u01fc","\u01fd\x05\x87D\x02\u01fd\u01fe\x05\x87D\x02\u01fe\u01ff","\x05\x87D\x02\u01ff\u0200\x05\x87D\x02\u0200\x86\x03","\x02\x02\x02\u0201\u0202\t\v\x02\x02\u0202\x88\x03","\x02\x02\x02\x1a\x02\u0182\u0184\u0186\u0189\u019b\u019d\u019f","\u01a1\u01aa\u01ad\u01b0\u01b2\u01b8\u01ba\u01c2\u01c4\u01cc\u01d2\u01d4","\u01d9\u01e3\u01f1\u01f9\x03\x02\x03\x02"].join(""),v=(new n.atn.ATNDeserializer).deserialize(f),m=v.decisionToState.map(function(d,u){return new n.dfa.DFA(d,u)});function o(d){return n.Lexer.call(this,d),this._interp=new n.atn.LexerATNSimulator(this,v,m,new n.PredictionContextCache),this}(o.prototype=Object.create(n.Lexer.prototype)).constructor=o,Object.defineProperty(o.prototype,"atn",{get:function(){return v}}),o.EOF=n.Token.EOF,o.T__0=1,o.T__1=2,o.T__2=3,o.T__3=4,o.T__4=5,o.T__5=6,o.T__6=7,o.T__7=8,o.T__8=9,o.T__9=10,o.T__10=11,o.T__11=12,o.T__12=13,o.T__13=14,o.T__14=15,o.T__15=16,o.T__16=17,o.T__17=18,o.T__18=19,o.T__19=20,o.T__20=21,o.T__21=22,o.T__22=23,o.T__23=24,o.T__24=25,o.T__25=26,o.T__26=27,o.T__27=28,o.T__28=29,o.T__29=30,o.T__30=31,o.T__31=32,o.T__32=33,o.T__33=34,o.T__34=35,o.T__35=36,o.T__36=37,o.T__37=38,o.T__38=39,o.T__39=40,o.T__40=41,o.T__41=42,o.T__42=43,o.T__43=44,o.T__44=45,o.T__45=46,o.T__46=47,o.T__47=48,o.T__48=49,o.T__49=50,o.T__50=51,o.T__51=52,o.T__52=53,o.T__53=54,o.DATETIME=55,o.TIME=56,o.IDENTIFIER=57,o.DELIMITEDIDENTIFIER=58,o.STRING=59,o.NUMBER=60,o.WS=61,o.COMMENT=62,o.LINE_COMMENT=63,o.prototype.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],o.prototype.modeNames=["DEFAULT_MODE"],o.prototype.literalNames=[null,"'.'","'['","']'","'+'","'-'","'*'","'/'","'div'","'mod'","'&'","'|'","'<='","'<'","'>'","'>='","'is'","'as'","'='","'~'","'!='","'!~'","'in'","'contains'","'and'","'or'","'xor'","'implies'","'('","')'","'{'","'}'","'true'","'false'","'%'","'$this'","'$index'","'$total'","','","'year'","'month'","'week'","'day'","'hour'","'minute'","'second'","'millisecond'","'years'","'months'","'weeks'","'days'","'hours'","'minutes'","'seconds'","'milliseconds'"],o.prototype.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"DATETIME","TIME","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT"],o.prototype.ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","T__32","T__33","T__34","T__35","T__36","T__37","T__38","T__39","T__40","T__41","T__42","T__43","T__44","T__45","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","DATETIME","TIME","TIMEFORMAT","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT","ESC","UNICODE","HEX"],o.prototype.grammarFileName="FHIRPath.g4",j.a=o},4303:(ye,j,p)=>{var n=p(4981);function f(){return n.tree.ParseTreeListener.call(this),this}(f.prototype=Object.create(n.tree.ParseTreeListener.prototype)).constructor=f,f.prototype.enterEntireExpression=function(v){},f.prototype.exitEntireExpression=function(v){},f.prototype.enterIndexerExpression=function(v){},f.prototype.exitIndexerExpression=function(v){},f.prototype.enterPolarityExpression=function(v){},f.prototype.exitPolarityExpression=function(v){},f.prototype.enterAdditiveExpression=function(v){},f.prototype.exitAdditiveExpression=function(v){},f.prototype.enterMultiplicativeExpression=function(v){},f.prototype.exitMultiplicativeExpression=function(v){},f.prototype.enterUnionExpression=function(v){},f.prototype.exitUnionExpression=function(v){},f.prototype.enterOrExpression=function(v){},f.prototype.exitOrExpression=function(v){},f.prototype.enterAndExpression=function(v){},f.prototype.exitAndExpression=function(v){},f.prototype.enterMembershipExpression=function(v){},f.prototype.exitMembershipExpression=function(v){},f.prototype.enterInequalityExpression=function(v){},f.prototype.exitInequalityExpression=function(v){},f.prototype.enterInvocationExpression=function(v){},f.prototype.exitInvocationExpression=function(v){},f.prototype.enterEqualityExpression=function(v){},f.prototype.exitEqualityExpression=function(v){},f.prototype.enterImpliesExpression=function(v){},f.prototype.exitImpliesExpression=function(v){},f.prototype.enterTermExpression=function(v){},f.prototype.exitTermExpression=function(v){},f.prototype.enterTypeExpression=function(v){},f.prototype.exitTypeExpression=function(v){},f.prototype.enterInvocationTerm=function(v){},f.prototype.exitInvocationTerm=function(v){},f.prototype.enterLiteralTerm=function(v){},f.prototype.exitLiteralTerm=function(v){},f.prototype.enterExternalConstantTerm=function(v){},f.prototype.exitExternalConstantTerm=function(v){},f.prototype.enterParenthesizedTerm=function(v){},f.prototype.exitParenthesizedTerm=function(v){},f.prototype.enterNullLiteral=function(v){},f.prototype.exitNullLiteral=function(v){},f.prototype.enterBooleanLiteral=function(v){},f.prototype.exitBooleanLiteral=function(v){},f.prototype.enterStringLiteral=function(v){},f.prototype.exitStringLiteral=function(v){},f.prototype.enterNumberLiteral=function(v){},f.prototype.exitNumberLiteral=function(v){},f.prototype.enterDateTimeLiteral=function(v){},f.prototype.exitDateTimeLiteral=function(v){},f.prototype.enterTimeLiteral=function(v){},f.prototype.exitTimeLiteral=function(v){},f.prototype.enterQuantityLiteral=function(v){},f.prototype.exitQuantityLiteral=function(v){},f.prototype.enterExternalConstant=function(v){},f.prototype.exitExternalConstant=function(v){},f.prototype.enterMemberInvocation=function(v){},f.prototype.exitMemberInvocation=function(v){},f.prototype.enterFunctionInvocation=function(v){},f.prototype.exitFunctionInvocation=function(v){},f.prototype.enterThisInvocation=function(v){},f.prototype.exitThisInvocation=function(v){},f.prototype.enterIndexInvocation=function(v){},f.prototype.exitIndexInvocation=function(v){},f.prototype.enterTotalInvocation=function(v){},f.prototype.exitTotalInvocation=function(v){},f.prototype.enterFunctn=function(v){},f.prototype.exitFunctn=function(v){},f.prototype.enterParamList=function(v){},f.prototype.exitParamList=function(v){},f.prototype.enterQuantity=function(v){},f.prototype.exitQuantity=function(v){},f.prototype.enterUnit=function(v){},f.prototype.exitUnit=function(v){},f.prototype.enterDateTimePrecision=function(v){},f.prototype.exitDateTimePrecision=function(v){},f.prototype.enterPluralDateTimePrecision=function(v){},f.prototype.exitPluralDateTimePrecision=function(v){},f.prototype.enterTypeSpecifier=function(v){},f.prototype.exitTypeSpecifier=function(v){},f.prototype.enterQualifiedIdentifier=function(v){},f.prototype.exitQualifiedIdentifier=function(v){},f.prototype.enterIdentifier=function(v){},f.prototype.exitIdentifier=function(v){},j.q=f},8974:(ye,j,p)=>{var n=p(4981),f=p(4303).q,m=["\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964","\x03A\x9c\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t","\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t\x07\x04","\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04","\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10\t\x10\x03","\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03","\x03\x05\x03(\n\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x07\x03P","\n\x03\f\x03\x0e\x03S\v\x03\x03\x04\x03\x04\x03","\x04\x03\x04\x03\x04\x03\x04\x03\x04\x05\x04\\","\n\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05","\x03\x05\x03\x05\x03\x05\x05\x05f\n\x05\x03\x06","\x03\x06\x03\x06\x05\x06k\n\x06\x03\x07\x03\x07","\x03\x07\x03\x07\x03\x07\x05\x07r\n\x07\x03\b\x03","\b\x03\b\x05\bw\n\b\x03\b\x03\b\x03\t\x03\t\x03\t\x07","\t~\n\t\f\t\x0e\t\x81\v\t\x03\n\x03\n\x05\n\x85\n\n","\x03\v\x03\v\x03\v\x05\v\x8a\n\v\x03","\f\x03\f\x03\r\x03\r\x03\x0e\x03\x0e\x03\x0f\x03","\x0f\x03\x0f\x07\x0f\x95\n\x0f\f\x0f\x0e\x0f\x98","\v\x0f\x03\x10\x03\x10\x03\x10\x02\x03\x04\x11","\x02\x04\x06\b\n\f\x0e\x10\x12\x14\x16\x18\x1a\x1c","\x1e\x02\x0e\x03\x02\x06\x07\x03\x02\b\v\x04","\x02\x06\x07\f\f\x03\x02\x0e\x11\x03\x02\x14\x17","\x03\x02\x18\x19\x03\x02\x1b\x1c\x03\x02\x12\x13",'\x03\x02"#\x03\x02)0\x03\x0218\x05\x02\x12\x13',"\x18\x19;<\x02\xad\x02 \x03\x02\x02\x02\x04'\x03","\x02\x02\x02\x06[\x03\x02\x02\x02\be\x03\x02\x02","\x02\ng\x03\x02\x02\x02\fq\x03\x02\x02\x02\x0es","\x03\x02\x02\x02\x10z\x03\x02\x02\x02\x12\x82","\x03\x02\x02\x02\x14\x89\x03\x02\x02\x02\x16\x8b","\x03\x02\x02\x02\x18\x8d\x03\x02\x02\x02\x1a\x8f","\x03\x02\x02\x02\x1c\x91\x03\x02\x02\x02\x1e\x99",'\x03\x02\x02\x02 !\x05\x04\x03\x02!"\x07\x02\x02','\x03"\x03\x03\x02\x02\x02#$\b\x03\x01\x02$(\x05',"\x06\x04\x02%&\t\x02\x02\x02&(\x05\x04\x03\r'#\x03","\x02\x02\x02'%\x03\x02\x02\x02(Q\x03\x02\x02\x02",")*\f\f\x02\x02*+\t\x03\x02\x02+P\x05\x04\x03\r,-\f\v","\x02\x02-.\t\x04\x02\x02.P\x05\x04\x03\f/0\f\n\x02","\x0201\x07\r\x02\x021P\x05\x04\x03\v23\f\t\x02\x02","34\t\x05\x02\x024P\x05\x04\x03\n56\f\x07\x02\x026","7\t\x06\x02\x027P\x05\x04\x03\b89\f\x06\x02\x029:","\t\x07\x02\x02:P\x05\x04\x03\x07;<\f\x05\x02\x02","<=\x07\x1a\x02\x02=P\x05\x04\x03\x06>?\f\x04\x02","\x02?@\t\b\x02\x02@P\x05\x04\x03\x05AB\f\x03\x02\x02","BC\x07\x1d\x02\x02CP\x05\x04\x03\x04DE\f\x0f\x02","\x02EF\x07\x03\x02\x02FP\x05\f\x07\x02GH\f\x0e\x02","\x02HI\x07\x04\x02\x02IJ\x05\x04\x03\x02JK\x07\x05","\x02\x02KP\x03\x02\x02\x02LM\f\b\x02\x02MN\t\t\x02","\x02NP\x05\x1a\x0e\x02O)\x03\x02\x02\x02O,\x03\x02","\x02\x02O/\x03\x02\x02\x02O2\x03\x02\x02\x02O5\x03","\x02\x02\x02O8\x03\x02\x02\x02O;\x03\x02\x02\x02","O>\x03\x02\x02\x02OA\x03\x02\x02\x02OD\x03\x02\x02","\x02OG\x03\x02\x02\x02OL\x03\x02\x02\x02PS\x03\x02","\x02\x02QO\x03\x02\x02\x02QR\x03\x02\x02\x02R\x05","\x03\x02\x02\x02SQ\x03\x02\x02\x02T\\\x05\f\x07","\x02U\\\x05\b\x05\x02V\\\x05\n\x06\x02WX\x07\x1e\x02","\x02XY\x05\x04\x03\x02YZ\x07\x1f\x02\x02Z\\\x03","\x02\x02\x02[T\x03\x02\x02\x02[U\x03\x02\x02\x02","[V\x03\x02\x02\x02[W\x03\x02\x02\x02\\\x07\x03\x02","\x02\x02]^\x07 \x02\x02^f\x07!\x02\x02_f\t\n\x02\x02","`f\x07=\x02\x02af\x07>\x02\x02bf\x079\x02\x02cf\x07",":\x02\x02df\x05\x12\n\x02e]\x03\x02\x02\x02e_\x03","\x02\x02\x02e`\x03\x02\x02\x02ea\x03\x02\x02\x02","eb\x03\x02\x02\x02ec\x03\x02\x02\x02ed\x03\x02\x02","\x02f\t\x03\x02\x02\x02gj\x07$\x02\x02hk\x05\x1e","\x10\x02ik\x07=\x02\x02jh\x03\x02\x02\x02ji\x03","\x02\x02\x02k\v\x03\x02\x02\x02lr\x05\x1e\x10","\x02mr\x05\x0e\b\x02nr\x07%\x02\x02or\x07&\x02\x02","pr\x07'\x02\x02ql\x03\x02\x02\x02qm\x03\x02\x02","\x02qn\x03\x02\x02\x02qo\x03\x02\x02\x02qp\x03\x02","\x02\x02r\r\x03\x02\x02\x02st\x05\x1e\x10\x02tv","\x07\x1e\x02\x02uw\x05\x10\t\x02vu\x03\x02\x02\x02","vw\x03\x02\x02\x02wx\x03\x02\x02\x02xy\x07\x1f\x02","\x02y\x0f\x03\x02\x02\x02z\x7f\x05\x04\x03\x02","{|\x07(\x02\x02|~\x05\x04\x03\x02}{\x03\x02\x02","\x02~\x81\x03\x02\x02\x02\x7f}\x03\x02\x02\x02","\x7f\x80\x03\x02\x02\x02\x80\x11\x03\x02\x02\x02","\x81\x7f\x03\x02\x02\x02\x82\x84\x07>\x02\x02","\x83\x85\x05\x14\v\x02\x84\x83\x03\x02\x02\x02","\x84\x85\x03\x02\x02\x02\x85\x13\x03\x02\x02\x02","\x86\x8a\x05\x16\f\x02\x87\x8a\x05\x18\r\x02\x88","\x8a\x07=\x02\x02\x89\x86\x03\x02\x02\x02\x89","\x87\x03\x02\x02\x02\x89\x88\x03\x02\x02\x02\x8a","\x15\x03\x02\x02\x02\x8b\x8c\t\v\x02\x02\x8c","\x17\x03\x02\x02\x02\x8d\x8e\t\f\x02\x02\x8e\x19","\x03\x02\x02\x02\x8f\x90\x05\x1c\x0f\x02\x90\x1b","\x03\x02\x02\x02\x91\x96\x05\x1e\x10\x02\x92\x93","\x07\x03\x02\x02\x93\x95\x05\x1e\x10\x02\x94\x92","\x03\x02\x02\x02\x95\x98\x03\x02\x02\x02\x96\x94","\x03\x02\x02\x02\x96\x97\x03\x02\x02\x02\x97\x1d","\x03\x02\x02\x02\x98\x96\x03\x02\x02\x02\x99\x9a","\t\r\x02\x02\x9a\x1f\x03\x02\x02\x02\x0e'OQ[ejqv","\x7f\x84\x89\x96"].join(""),o=(new n.atn.ATNDeserializer).deserialize(m),d=o.decisionToState.map(function(x,U){return new n.dfa.DFA(x,U)}),u=new n.PredictionContextCache,h=[null,"'.'","'['","']'","'+'","'-'","'*'","'/'","'div'","'mod'","'&'","'|'","'<='","'<'","'>'","'>='","'is'","'as'","'='","'~'","'!='","'!~'","'in'","'contains'","'and'","'or'","'xor'","'implies'","'('","')'","'{'","'}'","'true'","'false'","'%'","'$this'","'$index'","'$total'","','","'year'","'month'","'week'","'day'","'hour'","'minute'","'second'","'millisecond'","'years'","'months'","'weeks'","'days'","'hours'","'minutes'","'seconds'","'milliseconds'"],r=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"DATETIME","TIME","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT"],s=["entireExpression","expression","term","literal","externalConstant","invocation","functn","paramList","quantity","unit","dateTimePrecision","pluralDateTimePrecision","typeSpecifier","qualifiedIdentifier","identifier"];function i(x){return n.Parser.call(this,x),this._interp=new n.atn.ParserATNSimulator(this,o,d,u),this.ruleNames=s,this.literalNames=h,this.symbolicNames=r,this}function c(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_entireExpression,this}function l(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_expression,this}function g(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function y(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function E(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function T(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function D(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function O(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function w(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function A(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function S(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function M(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function I(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function b(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function L(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function F(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function ne(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_term,this}function Y(x,U){return ne.call(this,x),ne.prototype.copyFrom.call(this,U),this}function Q(x,U){return ne.call(this,x),ne.prototype.copyFrom.call(this,U),this}function te(x,U){return ne.call(this,x),ne.prototype.copyFrom.call(this,U),this}function $(x,U){return ne.call(this,x),ne.prototype.copyFrom.call(this,U),this}function J(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_literal,this}function ie(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function ae(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function le(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function Oe(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function Le(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function Ye(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function Je(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function gt(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_externalConstant,this}function Ue(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_invocation,this}function tt(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function at(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function ft(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function vt(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function yt(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function ot(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_functn,this}function _t(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_paramList,this}function At(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_quantity,this}function Tt(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_unit,this}function Bt(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_dateTimePrecision,this}function Et(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_pluralDateTimePrecision,this}function Ee(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_typeSpecifier,this}function fe(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_qualifiedIdentifier,this}function H(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_identifier,this}(i.prototype=Object.create(n.Parser.prototype)).constructor=i,Object.defineProperty(i.prototype,"atn",{get:function(){return o}}),i.EOF=n.Token.EOF,i.T__0=1,i.T__1=2,i.T__2=3,i.T__3=4,i.T__4=5,i.T__5=6,i.T__6=7,i.T__7=8,i.T__8=9,i.T__9=10,i.T__10=11,i.T__11=12,i.T__12=13,i.T__13=14,i.T__14=15,i.T__15=16,i.T__16=17,i.T__17=18,i.T__18=19,i.T__19=20,i.T__20=21,i.T__21=22,i.T__22=23,i.T__23=24,i.T__24=25,i.T__25=26,i.T__26=27,i.T__27=28,i.T__28=29,i.T__29=30,i.T__30=31,i.T__31=32,i.T__32=33,i.T__33=34,i.T__34=35,i.T__35=36,i.T__36=37,i.T__37=38,i.T__38=39,i.T__39=40,i.T__40=41,i.T__41=42,i.T__42=43,i.T__43=44,i.T__44=45,i.T__45=46,i.T__46=47,i.T__47=48,i.T__48=49,i.T__49=50,i.T__50=51,i.T__51=52,i.T__52=53,i.T__53=54,i.DATETIME=55,i.TIME=56,i.IDENTIFIER=57,i.DELIMITEDIDENTIFIER=58,i.STRING=59,i.NUMBER=60,i.WS=61,i.COMMENT=62,i.LINE_COMMENT=63,i.RULE_entireExpression=0,i.RULE_expression=1,i.RULE_term=2,i.RULE_literal=3,i.RULE_externalConstant=4,i.RULE_invocation=5,i.RULE_functn=6,i.RULE_paramList=7,i.RULE_quantity=8,i.RULE_unit=9,i.RULE_dateTimePrecision=10,i.RULE_pluralDateTimePrecision=11,i.RULE_typeSpecifier=12,i.RULE_qualifiedIdentifier=13,i.RULE_identifier=14,(c.prototype=Object.create(n.ParserRuleContext.prototype)).constructor=c,c.prototype.expression=function(){return this.getTypedRuleContext(l,0)},c.prototype.EOF=function(){return this.getToken(i.EOF,0)},c.prototype.enterRule=function(x){x instanceof f&&x.enterEntireExpression(this)},c.prototype.exitRule=function(x){x instanceof f&&x.exitEntireExpression(this)},i.EntireExpressionContext=c,i.prototype.entireExpression=function(){var x=new c(this,this._ctx,this.state);this.enterRule(x,0,i.RULE_entireExpression);try{this.enterOuterAlt(x,1),this.state=30,this.expression(0),this.state=31,this.match(i.EOF)}catch(U){if(!(U instanceof n.error.RecognitionException))throw U;x.exception=U,this._errHandler.reportError(this,U),this._errHandler.recover(this,U)}finally{this.exitRule()}return x},(l.prototype=Object.create(n.ParserRuleContext.prototype)).constructor=l,l.prototype.copyFrom=function(x){n.ParserRuleContext.prototype.copyFrom.call(this,x)},(g.prototype=Object.create(l.prototype)).constructor=g,i.IndexerExpressionContext=g,g.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},g.prototype.enterRule=function(x){x instanceof f&&x.enterIndexerExpression(this)},g.prototype.exitRule=function(x){x instanceof f&&x.exitIndexerExpression(this)},(y.prototype=Object.create(l.prototype)).constructor=y,i.PolarityExpressionContext=y,y.prototype.expression=function(){return this.getTypedRuleContext(l,0)},y.prototype.enterRule=function(x){x instanceof f&&x.enterPolarityExpression(this)},y.prototype.exitRule=function(x){x instanceof f&&x.exitPolarityExpression(this)},(E.prototype=Object.create(l.prototype)).constructor=E,i.AdditiveExpressionContext=E,E.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},E.prototype.enterRule=function(x){x instanceof f&&x.enterAdditiveExpression(this)},E.prototype.exitRule=function(x){x instanceof f&&x.exitAdditiveExpression(this)},(T.prototype=Object.create(l.prototype)).constructor=T,i.MultiplicativeExpressionContext=T,T.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},T.prototype.enterRule=function(x){x instanceof f&&x.enterMultiplicativeExpression(this)},T.prototype.exitRule=function(x){x instanceof f&&x.exitMultiplicativeExpression(this)},(D.prototype=Object.create(l.prototype)).constructor=D,i.UnionExpressionContext=D,D.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},D.prototype.enterRule=function(x){x instanceof f&&x.enterUnionExpression(this)},D.prototype.exitRule=function(x){x instanceof f&&x.exitUnionExpression(this)},(O.prototype=Object.create(l.prototype)).constructor=O,i.OrExpressionContext=O,O.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},O.prototype.enterRule=function(x){x instanceof f&&x.enterOrExpression(this)},O.prototype.exitRule=function(x){x instanceof f&&x.exitOrExpression(this)},(w.prototype=Object.create(l.prototype)).constructor=w,i.AndExpressionContext=w,w.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},w.prototype.enterRule=function(x){x instanceof f&&x.enterAndExpression(this)},w.prototype.exitRule=function(x){x instanceof f&&x.exitAndExpression(this)},(A.prototype=Object.create(l.prototype)).constructor=A,i.MembershipExpressionContext=A,A.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},A.prototype.enterRule=function(x){x instanceof f&&x.enterMembershipExpression(this)},A.prototype.exitRule=function(x){x instanceof f&&x.exitMembershipExpression(this)},(S.prototype=Object.create(l.prototype)).constructor=S,i.InequalityExpressionContext=S,S.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},S.prototype.enterRule=function(x){x instanceof f&&x.enterInequalityExpression(this)},S.prototype.exitRule=function(x){x instanceof f&&x.exitInequalityExpression(this)},(M.prototype=Object.create(l.prototype)).constructor=M,i.InvocationExpressionContext=M,M.prototype.expression=function(){return this.getTypedRuleContext(l,0)},M.prototype.invocation=function(){return this.getTypedRuleContext(Ue,0)},M.prototype.enterRule=function(x){x instanceof f&&x.enterInvocationExpression(this)},M.prototype.exitRule=function(x){x instanceof f&&x.exitInvocationExpression(this)},(I.prototype=Object.create(l.prototype)).constructor=I,i.EqualityExpressionContext=I,I.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},I.prototype.enterRule=function(x){x instanceof f&&x.enterEqualityExpression(this)},I.prototype.exitRule=function(x){x instanceof f&&x.exitEqualityExpression(this)},(b.prototype=Object.create(l.prototype)).constructor=b,i.ImpliesExpressionContext=b,b.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},b.prototype.enterRule=function(x){x instanceof f&&x.enterImpliesExpression(this)},b.prototype.exitRule=function(x){x instanceof f&&x.exitImpliesExpression(this)},(L.prototype=Object.create(l.prototype)).constructor=L,i.TermExpressionContext=L,L.prototype.term=function(){return this.getTypedRuleContext(ne,0)},L.prototype.enterRule=function(x){x instanceof f&&x.enterTermExpression(this)},L.prototype.exitRule=function(x){x instanceof f&&x.exitTermExpression(this)},(F.prototype=Object.create(l.prototype)).constructor=F,i.TypeExpressionContext=F,F.prototype.expression=function(){return this.getTypedRuleContext(l,0)},F.prototype.typeSpecifier=function(){return this.getTypedRuleContext(Ee,0)},F.prototype.enterRule=function(x){x instanceof f&&x.enterTypeExpression(this)},F.prototype.exitRule=function(x){x instanceof f&&x.exitTypeExpression(this)},i.prototype.expression=function(x){void 0===x&&(x=0);var U=this._ctx,Z=this.state,_e=new l(this,this._ctx,Z);this.enterRecursionRule(_e,2,i.RULE_expression,x);var st=0;try{switch(this.enterOuterAlt(_e,1),this.state=37,this._errHandler.sync(this),this._input.LA(1)){case i.T__15:case i.T__16:case i.T__21:case i.T__22:case i.T__27:case i.T__29:case i.T__31:case i.T__32:case i.T__33:case i.T__34:case i.T__35:case i.T__36:case i.DATETIME:case i.TIME:case i.IDENTIFIER:case i.DELIMITEDIDENTIFIER:case i.STRING:case i.NUMBER:_e=new L(this,_e),this._ctx=_e,this.state=34,this.term();break;case i.T__3:case i.T__4:_e=new y(this,_e),this._ctx=_e,this.state=35,(st=this._input.LA(1))===i.T__3||st===i.T__4?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=36,this.expression(11);break;default:throw new n.error.NoViableAltException(this)}this._ctx.stop=this._input.LT(-1),this.state=79,this._errHandler.sync(this);for(var ut=this._interp.adaptivePredict(this._input,2,this._ctx);2!=ut&&ut!=n.atn.ATN.INVALID_ALT_NUMBER;){if(1===ut)switch(null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=77,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,1,this._ctx)){case 1:if(_e=new T(this,new l(this,U,Z)),this.pushNewRecursionContext(_e,2,i.RULE_expression),this.state=39,!this.precpred(this._ctx,10))throw new n.error.FailedPredicateException(this,"this.precpred(this._ctx, 10)");this.state=40,0==(-32&(st=this._input.LA(1)))&&0!=(1<{const n=p(4981),f=p(4621).a,v=p(8974)._,m=p(4303).q;var o=function(u){return n.error.ErrorListener.call(this),this.errors=u,this};(o.prototype=Object.create(n.error.ErrorListener.prototype)).constructor=o,o.prototype.syntaxError=function(u,h,r,s,i,c){this.errors.push([u,h,r,s,i,c])},ye.exports={parse:function(u){var h=new n.InputStream(u),r=new f(h),s=new n.CommonTokenStream(r),i=new v(s);i.buildParseTrees=!0;var c=[],l=new o(c);r.removeErrorListeners(),r.addErrorListener(l),i.removeErrorListeners(),i.addErrorListener(l);var g=i.entireExpression();function y(){return m.call(this),this}(y.prototype=Object.create(m.prototype)).constructor=y;var T,E={},D=[E];for(let A of Object.keys(m.prototype))A.startsWith("enter")?y.prototype[A]=function(S){let M=D[D.length-1];(T={type:A.slice(5)}).text=S.getText(),M.children||(M.children=[]),M.children.push(T),D.push(T),T.terminalNodeText=[];for(let b of S.children)b.symbol&&T.terminalNodeText.push(b.getText())}:A.startsWith("exit")&&(y.prototype[A]=function(){D.pop()});var O=new y;if(n.tree.ParseTreeWalker.DEFAULT.walk(O,g),c.length>0){let A=[];for(let S=0,M=c.length;S{const ye=Function.prototype.call.bind(Array.prototype.slice);Number.isInteger=Number.isInteger||function(j){return"number"==typeof j&&isFinite(j)&&Math.floor(j)===j},String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(j,p){return this.indexOf(j,p=p||0)===p}}),String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{value:function(j,p){var n=this.toString();(void 0===p||p>n.length)&&(p=n.length);var f=n.indexOf(j,p-=j.length);return-1!==f&&f===p}}),String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(){return-1!==this.indexOf.apply(this,arguments)}}),Object.assign||Object.defineProperty(Object,"assign",{value:function(j){if(null==j)throw new TypeError("Cannot convert undefined or null to object");return ye(arguments,1).reduce(function(p,n){return Object.keys(Object(n)).forEach(function(f){p[f]=n[f]}),p},Object(j))}})},9835:(ye,j,p)=>{const n=p(4569),f=p(9502),v={},m={};v.indexOf=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.indexOf(h)},v.substring=function(u,h,r){const s=f.singleton(u,"String");return n.isEmpty(s)||n.isEmpty(h)||h<0||h>=s.length?[]:void 0===r||n.isEmpty(r)?s.substring(h):s.substring(h,h+r)},v.startsWith=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.startsWith(h)},v.endsWith=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.endsWith(h)},v.containsFn=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.includes(h)},v.upper=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.toUpperCase()},v.lower=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.toLowerCase()},v.matches=!1===new RegExp("").dotAll?function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:new RegExp(h,"s").test(r)}:function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:new RegExp(function(u){return m[u]||(m[u]=u.replace(/\./g,(h,r,s)=>{const c=s.substr(0,r).replace(/\\\\/g,"").replace(/\\[\][]/g,""),l="\\"===c[c.length-1],g=c.lastIndexOf("["),y=c.lastIndexOf("]");return l||g>y?".":"[^]"})),m[u]}(h)).test(r)},v.replace=function(u,h,r){const s=f.singleton(u,"String");if(n.isEmpty(h)||n.isEmpty(r)||n.isEmpty(s))return[];const i=new RegExp(n.escapeStringForRegExp(h),"g");return s.replace(i,r)},v.replaceMatches=function(u,h,r){const s=f.singleton(u,"String");if(n.isEmpty(h)||n.isEmpty(r)||n.isEmpty(s))return[];const i=new RegExp(h,"g");return s.replace(i,r)},v.length=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.length},v.toChars=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.split("")},ye.exports=v},2563:(ye,j,p)=>{const n=p(8091),f=p(1334).ng.getInstance(),v=p(5192);let o="[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?)?)?(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9])?",d=new RegExp("^T?"+o+"$"),u=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T"+o+")?)?)?Z?$");class h{equals(){return!1}equivalentTo(){return!1}toString(){return this.asStr?this.asStr:super.toString()}toJSON(){return this.toString()}compare(){throw"Not implemented"}}class r extends h{constructor(A,S){super(),this.asStr=A+" "+S,this.value=A,this.unit=S}equals(A){if(!(A instanceof this.constructor))return!1;if(this.unit===A.unit)return v.isEqual(this.value,A.value);const S=this._compareYearsAndMonths(A);if(S)return S.isEqual;const M=r.toUcumQuantity(this.value,this.unit),I=r.toUcumQuantity(A.value,A.unit),b=f.convertUnitTo(I.unit,I.value,M.unit);return"succeeded"===b.status&&v.isEqual(M.value,b.toVal)}equivalentTo(A){if(!(A instanceof this.constructor))return!1;if(this.unit===A.unit)return v.isEquivalent(this.value,A.value);const S=r.getEquivalentUcumUnitCode(this.unit),M=r.getEquivalentUcumUnitCode(A.unit),I=f.convertUnitTo(M,A.value,S);return"succeeded"===I.status&&v.isEquivalent(this.value,I.toVal)}_compareYearsAndMonths(A){const S=r._yearMonthConversionFactor[this.unit],M=r._yearMonthConversionFactor[A.unit];return S&&M?{isEqual:v.isEqual(this.value*S,A.value*M)}:null}}const s=/^'|'$/g;r.getEquivalentUcumUnitCode=function(w){return r.mapTimeUnitsToUCUMCode[w]||w.replace(s,"")},r.toUcumQuantity=function(w,A){const S=r._calendarDuration2Seconds[A];return S?{value:S*w,unit:"s"}:{value:w,unit:A.replace(s,"")}},r.convUnitTo=function(w,A,S){const M=r._yearMonthConversionFactor[w],I=r._yearMonthConversionFactor[S];if(M&&I)return new r(M*A/I,S);const b=r._calendarDuration2Seconds[w],L=r._calendarDuration2Seconds[S];if(L){if(b)return new r(b*A/L,S);{const F=f.convertUnitTo(w.replace(/^'|'$/g,""),A,"s");if("succeeded"===F.status)return new r(F.toVal/L,S)}}else{const F=b?f.convertUnitTo("s",b*A,S.replace(/^'|'$/g,"")):f.convertUnitTo(w.replace(/^'|'$/g,""),A,S.replace(/^'|'$/g,""));if("succeeded"===F.status)return new r(F.toVal,S)}return null},r._calendarDuration2Seconds={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001,year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1,millisecond:.001},r._yearMonthConversionFactor={years:12,months:1,year:12,month:1},r.arithmeticDurationUnits={years:"year",months:"month",weeks:"week",days:"day",hours:"hour",minutes:"minute",seconds:"second",milliseconds:"millisecond",year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond","'wk'":"week","'d'":"day","'h'":"hour","'min'":"minute","'s'":"second","'ms'":"millisecond"},r.mapUCUMCodeToTimeUnits={a:"year",mo:"month",wk:"week",d:"day",h:"hour",min:"minute",s:"second",ms:"millisecond"},r.mapTimeUnitsToUCUMCode=Object.keys(r.mapUCUMCodeToTimeUnits).reduce(function(w,A){return w[r.mapUCUMCodeToTimeUnits[A]]=A,w[r.mapUCUMCodeToTimeUnits[A]+"s"]=A,w},{});class i extends h{constructor(A){super(),this.asStr=A}plus(A){let M=r.arithmeticDurationUnits[A.unit];if(!M)throw new Error("For date/time arithmetic, the unit of the quantity must be one of the following time-based units: "+Object.keys(r.arithmeticDurationUnits));const I=this.constructor,b=I._timeUnitToDatePrecision[M];if(void 0===b)throw new Error("Unsupported unit for +. The unit should be one of "+Object.keys(I._timeUnitToDatePrecision).join(", ")+".");let L=A.value;const F=I===l;if((F?b<2:b<5)&&(L=Math.trunc(L)),this._getPrecision()2?new c(L)._getTimeParts():this._getTimeParts(),Y=I>2?new c(F)._getTimeParts():A._getTimeParts(),Q=0;Q<=b&&!1!==S;++Q)S=ne[Q]==Y[Q];S&&(S=void 0)}}else S=!1;return S}equivalentTo(A){var S=A instanceof this.constructor;return S&&(S=this._getPrecision()==A._getPrecision())&&(S=this._getDateObj().getTime()==A._getDateObj().getTime()),S}compare(A){var S=this._getPrecision(),M=A._getPrecision(),I=S<=M?this._getDateObj().getTime():this._dateAtPrecision(M).getTime(),b=M<=S?A._getDateObj().getTime():A._dateAtPrecision(S).getTime();return S!==M&&I===b?null:I-b}_getPrecision(){return void 0===this.precision&&this._getMatchData(),this.precision}_getMatchData(A,S){if(void 0===this.timeMatchData&&(this.timeMatchData=this.asStr.match(A),this.timeMatchData))for(let M=S;M>=0&&void 0===this.precision;--M)this.timeMatchData[M]&&(this.precision=M);return this.timeMatchData}_getTimeParts(A){var S=[];S=[A[0]];var M=A[4];if(M){let F=S[0];S[0]=F.slice(0,F.length-M.length)}var I=A[1];if(I){let F=S[0];S[0]=F.slice(0,F.length-I.length),S[1]=I;var b=A[2];if(b){S[1]=I.slice(0,I.length-b.length),S[2]=b;var L=A[3];L&&(S[2]=b.slice(0,b.length-L.length),S[3]=L)}}return S}_getDateObj(){if(!this.dateObj){var A=this._getPrecision();this.dateObj=this._dateAtPrecision(A)}return this.dateObj}_createDate(A,S,M,I,b,L,F,ne){var Y=new Date(A,S,M,I,b,L,F);if(ne){var Q=Y.getTimezoneOffset(),te=0;if("Z"!=ne){var $=ne.split(":"),J=parseInt($[0]);te=parseInt($[1]),J<0&&(te=-te),te+=60*J}Y=n(Y,-Q-te)}return Y}}i.timeUnitToAddFn={year:p(2486),month:p(4992),week:p(5213),day:p(6937),hour:p(2500),minute:p(8091),second:p(734),millisecond:p(7862)};let c=(()=>{class w extends i{constructor(S){super(S)}compare(S){if(!(S instanceof w))throw"Invalid comparison of a DateTime with something else";return super.compare(S)}_getMatchData(){return super._getMatchData(u,5)}_getTimeParts(){if(!this.timeParts){let M=this._getMatchData(),I=M[0];this.timeParts=[I];var S=M[1];if(S){this.timeParts[0]=I.slice(0,I.length-S.length),this.timeParts[1]=S;let b=M[2];if(b){this.timeParts[1]=S.slice(0,S.length-b.length),this.timeParts[2]=b;let L=M[3];L&&(this.timeParts[2]=b.slice(0,b.length-L.length),"T"===L[0]&&(M[3]=L.slice(1)),this.timeParts=this.timeParts.concat(super._getTimeParts(M.slice(3))))}}}return this.timeParts}_dateAtPrecision(S){var M=this._getTimeParts(),I=this._getMatchData()[7],b=this._getPrecision(),L=parseInt(M[0]),F=b>0?parseInt(M[1].slice(1))-1:0,ne=b>1?parseInt(M[2].slice(1)):1,Y=b>2?parseInt(M[3]):0,Q=b>3?parseInt(M[4].slice(1)):0,te=b>4?parseInt(M[5].slice(1)):0,$=M.length>6?parseInt(M[6].slice(1)):0,J=this._createDate(L,F,ne,Y,Q,te,$,I);return S0?J.getMonth():0,ne=S>1?J.getDate():1,Y=S>2?J.getHours():0,Q=S>3?J.getMinutes():0,J=new Date(L,F,ne,Y,Q)),J}}return w.checkString=function(A){let S=new w(A);return S._getMatchData()||(S=null),S},w._timeUnitToDatePrecision={year:0,month:1,week:2,day:2,hour:3,minute:4,second:5,millisecond:6},w._datePrecisionToTimeUnit=["year","month","day","hour","minute","second","millisecond"],w})(),l=(()=>{class w extends i{constructor(S){"T"==S[0]&&(S=S.slice(1)),super(S)}compare(S){if(!(S instanceof w))throw"Invalid comparison of a time with something else";return super.compare(S)}_dateAtPrecision(S){var M=this._getTimeParts(),I=this._getMatchData()[4],b=this._getPrecision(),L=2010,Y=parseInt(M[0]),Q=b>0?parseInt(M[1].slice(1)):0,te=b>1?parseInt(M[2].slice(1)):0,$=M.length>3?parseInt(M[3].slice(1)):0,J=this._createDate(L,0,1,Y,Q,te,$,I);return I&&(J.setYear(L),J.setMonth(0),J.setDate(1)),S0?J.getMinutes():0,J=new Date(L,0,1,Y,Q)),J}_getMatchData(){return super._getMatchData(d,2)}_getTimeParts(){return this.timeParts||(this.timeParts=super._getTimeParts(this._getMatchData())),this.timeParts}}return w.checkString=function(A){let S=new w(A);return S._getMatchData()||(S=null),S},w._timeUnitToDatePrecision={hour:0,minute:1,second:2,millisecond:3},w._datePrecisionToTimeUnit=["hour","minute","second","millisecond"],w})();function g(w,A){var S=w;return 3===A&&w<100&&(S="0"+w),w<10&&(S="0"+S),S}c.isoDateTime=function(w,A){void 0===A&&(A=6);var S=""+w.getFullYear();if(A>0&&(S+="-"+g(w.getMonth()+1),A>1&&(S+="-"+g(w.getDate()),A>2&&(S+="T"+g(w.getHours()),A>3&&(S+=":"+g(w.getMinutes()),A>4&&(S+=":"+g(w.getSeconds()),w.getMilliseconds()&&(S+="."+g(w.getMilliseconds(),3))))))),A>2){var M=w.getTimezoneOffset(),I=M<0?"+":"-",b=(M=Math.abs(M))%60;S+=I+g((M-b)/60)+":"+g(b)}return S},c.isoDate=function(w,A){return(void 0===A||A>2)&&(A=2),c.isoDateTime(w,A)};class y{constructor(A,S,M){A.resourceType&&(S=A.resourceType),this.path=S,this.data=function(w,A){return"Quantity"===A&&"http://unitsofmeasure.org"===w.system&&"number"==typeof w.value&&"string"==typeof w.code&&(w=new r(w.value,r.mapUCUMCodeToTimeUnits[w.code]||"'"+w.code+"'")),w}(A,S),this._data=M||{}}getTypeInfo(){const A=T.FHIR;return-1===this.path.indexOf(".")?new T({namespace:A,name:this.path}):T.createByValueInNamespace({namespace:A,value:this.data})}toJSON(){return JSON.stringify(this.data)}}y.makeResNode=function(w,A,S){return w instanceof y?w:new y(w,A,S)};let T=(()=>{class w{constructor({name:S,namespace:M}){this.name=S,this.namespace=M}is(S){return S instanceof w&&this.name===S.name&&(!this.namespace||!S.namespace||this.namespace===S.namespace)}}return w.System="System",w.FHIR="FHIR",w.createByValueInNamespace=function({namespace:A,value:S}){let M=typeof S;return Number.isInteger(S)?M="integer":"number"===M?M="decimal":S instanceof c?M="dateTime":S instanceof l?M="time":S instanceof r&&(M="Quantity"),A===w.System&&(M=M.replace(/^\w/,I=>I.toUpperCase())),new w({namespace:A,name:M})},w.fromValue=function(A){return A instanceof y?A.getTypeInfo():w.createByValueInNamespace({namespace:w.System,value:A})},w})();ye.exports={FP_Type:h,FP_TimeBase:i,FP_DateTime:c,FP_Time:l,FP_Quantity:r,timeRE:d,dateTimeRE:u,ResourceNode:y,TypeInfo:T,typeFn:function(w){return w.map(A=>T.fromValue(A))},isFn:function(w,A){if(0===w.length)return[];if(w.length>1)throw new Error("Expected singleton on left side of is, got "+JSON.stringify(w));return T.fromValue(w[0]).is(A)}}},4569:(ye,j,p)=>{var n={},f=p(2563);let{ResourceNode:v}=f;n.raiseError=function(m,o){throw(o=o?o+": ":"")+m},n.assertAtMostOne=function(m,o){m.length>1&&n.raiseError("Was expecting no more than one element but got "+JSON.stringify(m),o)},n.assertType=function(m,o,d){let u=this.valData(m);if(o.indexOf(typeof u)<0){let h=o.length>1?"one of "+o.join(", "):o[0];n.raiseError("Found type '"+typeof m+"' but was expecting "+h,d)}return u},n.isEmpty=function(m){return Array.isArray(m)&&0==m.length},n.isSome=function(m){return null!=m&&!n.isEmpty(m)},n.isTrue=function(m){return null!=m&&(!0===m||1==m.length&&!0===m[0])},n.isFalse=function(m){return null!=m&&(!1===m||1==m.length&&!1===m[0])},n.isCapitalized=function(m){return m&&m[0]===m[0].toUpperCase()},n.flatten=function(m){return m.reduce(function(o,d){return Array.isArray(d)?o=o.concat(d):o.push(d),o},[])},n.arraify=function(m){return Array.isArray(m)?m:n.isSome(m)?[m]:[]},n.valData=function(m){return m instanceof v?m.data:m},n.escapeStringForRegExp=function(m){return m.replace(/[-[\]{}()*+?.,\\/^$|#\s]/g,"\\$&")},ye.exports=n},4770:ye=>{"use strict";ye.exports=function(j,p){for(var n={},f=Object.keys(j),v=Array.isArray(p),m=0;m{function j(Qe){return Qe instanceof Map?Qe.clear=Qe.delete=Qe.set=function(){throw new Error("map is read-only")}:Qe instanceof Set&&(Qe.add=Qe.clear=Qe.delete=function(){throw new Error("set is read-only")}),Object.freeze(Qe),Object.getOwnPropertyNames(Qe).forEach(function(mt){var Vt=Qe[mt];"object"==typeof Vt&&!Object.isFrozen(Vt)&&j(Vt)}),Qe}var p=j;p.default=j;class f{constructor(mt){void 0===mt.data&&(mt.data={}),this.data=mt.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function v(Qe){return Qe.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function m(Qe,...mt){const Vt=Object.create(null);for(const qt in Qe)Vt[qt]=Qe[qt];return mt.forEach(function(qt){for(const Ne in qt)Vt[Ne]=qt[Ne]}),Vt}const d=Qe=>!!Qe.kind;class u{constructor(mt,Vt){this.buffer="",this.classPrefix=Vt.classPrefix,mt.walk(this)}addText(mt){this.buffer+=v(mt)}openNode(mt){if(!d(mt))return;let Vt=mt.kind;mt.sublanguage||(Vt=`${this.classPrefix}${Vt}`),this.span(Vt)}closeNode(mt){!d(mt)||(this.buffer+="")}value(){return this.buffer}span(mt){this.buffer+=``}}class h{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(mt){this.top.children.push(mt)}openNode(mt){const Vt={kind:mt,children:[]};this.add(Vt),this.stack.push(Vt)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(mt){return this.constructor._walk(mt,this.rootNode)}static _walk(mt,Vt){return"string"==typeof Vt?mt.addText(Vt):Vt.children&&(mt.openNode(Vt),Vt.children.forEach(qt=>this._walk(mt,qt)),mt.closeNode(Vt)),mt}static _collapse(mt){"string"!=typeof mt&&(!mt.children||(mt.children.every(Vt=>"string"==typeof Vt)?mt.children=[mt.children.join("")]:mt.children.forEach(Vt=>{h._collapse(Vt)})))}}class r extends h{constructor(mt){super(),this.options=mt}addKeyword(mt,Vt){""!==mt&&(this.openNode(Vt),this.addText(mt),this.closeNode())}addText(mt){""!==mt&&this.add(mt)}addSublanguage(mt,Vt){const qt=mt.root;qt.kind=Vt,qt.sublanguage=!0,this.add(qt)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function i(Qe){return Qe?"string"==typeof Qe?Qe:Qe.source:null}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,O="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",S="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",L={begin:"\\\\[\\s\\S]",relevance:0},F={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[L]},ne={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[L]},Y={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(Qe,mt,Vt={}){const qt=m({className:"comment",begin:Qe,end:mt,contains:[]},Vt);return qt.contains.push(Y),qt.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),qt},te=Q("//","$"),$=Q("/\\*","\\*/"),J=Q("#","$");var tt=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:O,UNDERSCORE_IDENT_RE:w,NUMBER_RE:A,C_NUMBER_RE:S,BINARY_NUMBER_RE:M,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(Qe={})=>{const mt=/^#![ ]*\//;return Qe.binary&&(Qe.begin=function(...Qe){return Qe.map(Vt=>i(Vt)).join("")}(mt,/.*\b/,Qe.binary,/\b.*/)),m({className:"meta",begin:mt,end:/$/,relevance:0,"on:begin":(Vt,qt)=>{0!==Vt.index&&qt.ignoreMatch()}},Qe)},BACKSLASH_ESCAPE:L,APOS_STRING_MODE:F,QUOTE_STRING_MODE:ne,PHRASAL_WORDS_MODE:Y,COMMENT:Q,C_LINE_COMMENT_MODE:te,C_BLOCK_COMMENT_MODE:$,HASH_COMMENT_MODE:J,NUMBER_MODE:{className:"number",begin:A,relevance:0},C_NUMBER_MODE:{className:"number",begin:S,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:M,relevance:0},CSS_NUMBER_MODE:{className:"number",begin:A+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[L,{begin:/\[/,end:/\]/,relevance:0,contains:[L]}]}]},TITLE_MODE:{className:"title",begin:O,relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:w,relevance:0},METHOD_GUARD:{begin:"\\.\\s*"+w,relevance:0},END_SAME_AS_BEGIN:function(Qe){return Object.assign(Qe,{"on:begin":(mt,Vt)=>{Vt.data._beginMatch=mt[1]},"on:end":(mt,Vt)=>{Vt.data._beginMatch!==mt[1]&&Vt.ignoreMatch()}})}});function at(Qe,mt){"."===Qe.input[Qe.index-1]&&mt.ignoreMatch()}function ft(Qe,mt){!mt||!Qe.beginKeywords||(Qe.begin="\\b("+Qe.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Qe.__beforeBegin=at,Qe.keywords=Qe.keywords||Qe.beginKeywords,delete Qe.beginKeywords,void 0===Qe.relevance&&(Qe.relevance=0))}function vt(Qe,mt){!Array.isArray(Qe.illegal)||(Qe.illegal=function(...Qe){return"("+Qe.map(Vt=>i(Vt)).join("|")+")"}(...Qe.illegal))}function yt(Qe,mt){if(Qe.match){if(Qe.begin||Qe.end)throw new Error("begin & end are not supported with match");Qe.begin=Qe.match,delete Qe.match}}function ot(Qe,mt){void 0===Qe.relevance&&(Qe.relevance=1)}const _t=["of","and","for","in","not","or","if","then","parent","list","value"];function Tt(Qe,mt,Vt="keyword"){const qt={};return"string"==typeof Qe?Ne(Vt,Qe.split(" ")):Array.isArray(Qe)?Ne(Vt,Qe):Object.keys(Qe).forEach(function(Se){Object.assign(qt,Tt(Qe[Se],mt,Se))}),qt;function Ne(Se,ee){mt&&(ee=ee.map(re=>re.toLowerCase())),ee.forEach(function(re){const Me=re.split("|");qt[Me[0]]=[Se,Bt(Me[0],Me[1])]})}}function Bt(Qe,mt){return mt?Number(mt):function(Qe){return _t.includes(Qe.toLowerCase())}(Qe)?0:1}function Ee(Qe,{}){function Vt(re,Me){return new RegExp(i(re),"m"+(Qe.case_insensitive?"i":"")+(Me?"g":""))}class qt{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Me,ze){ze.position=this.position++,this.matchIndexes[this.matchAt]=ze,this.regexes.push([ze,Me]),this.matchAt+=function(Qe){return new RegExp(Qe.toString()+"|").exec("").length-1}(Me)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const Me=this.regexes.map(ze=>ze[1]);this.matcherRe=Vt(function(Qe,mt="|"){let Vt=0;return Qe.map(qt=>{Vt+=1;const Ne=Vt;let Se=i(qt),ee="";for(;Se.length>0;){const re=E.exec(Se);if(!re){ee+=Se;break}ee+=Se.substring(0,re.index),Se=Se.substring(re.index+re[0].length),"\\"===re[0][0]&&re[1]?ee+="\\"+String(Number(re[1])+Ne):(ee+=re[0],"("===re[0]&&Vt++)}return ee}).map(qt=>`(${qt})`).join(mt)}(Me),!0),this.lastIndex=0}exec(Me){this.matcherRe.lastIndex=this.lastIndex;const ze=this.matcherRe.exec(Me);if(!ze)return null;const It=ze.findIndex((cn,An)=>An>0&&void 0!==cn),Qt=this.matchIndexes[It];return ze.splice(0,It),Object.assign(ze,Qt)}}class Ne{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Me){if(this.multiRegexes[Me])return this.multiRegexes[Me];const ze=new qt;return this.rules.slice(Me).forEach(([It,Qt])=>ze.addRule(It,Qt)),ze.compile(),this.multiRegexes[Me]=ze,ze}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(Me,ze){this.rules.push([Me,ze]),"begin"===ze.type&&this.count++}exec(Me){const ze=this.getMatcher(this.regexIndex);ze.lastIndex=this.lastIndex;let It=ze.exec(Me);if(this.resumingScanAtSamePosition()&&(!It||It.index!==this.lastIndex)){const Qt=this.getMatcher(0);Qt.lastIndex=this.lastIndex+1,It=Qt.exec(Me)}return It&&(this.regexIndex+=It.position+1,this.regexIndex===this.count&&this.considerAll()),It}}if(Qe.compilerExtensions||(Qe.compilerExtensions=[]),Qe.contains&&Qe.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Qe.classNameAliases=m(Qe.classNameAliases||{}),function ee(re,Me){const ze=re;if(re.isCompiled)return ze;[yt].forEach(Qt=>Qt(re,Me)),Qe.compilerExtensions.forEach(Qt=>Qt(re,Me)),re.__beforeBegin=null,[ft,vt,ot].forEach(Qt=>Qt(re,Me)),re.isCompiled=!0;let It=null;if("object"==typeof re.keywords&&(It=re.keywords.$pattern,delete re.keywords.$pattern),re.keywords&&(re.keywords=Tt(re.keywords,Qe.case_insensitive)),re.lexemes&&It)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return It=It||re.lexemes||/\w+/,ze.keywordPatternRe=Vt(It,!0),Me&&(re.begin||(re.begin=/\B|\b/),ze.beginRe=Vt(re.begin),re.endSameAsBegin&&(re.end=re.begin),!re.end&&!re.endsWithParent&&(re.end=/\B|\b/),re.end&&(ze.endRe=Vt(re.end)),ze.terminatorEnd=i(re.end)||"",re.endsWithParent&&Me.terminatorEnd&&(ze.terminatorEnd+=(re.end?"|":"")+Me.terminatorEnd)),re.illegal&&(ze.illegalRe=Vt(re.illegal)),re.contains||(re.contains=[]),re.contains=[].concat(...re.contains.map(function(Qt){return function(Qe){return Qe.variants&&!Qe.cachedVariants&&(Qe.cachedVariants=Qe.variants.map(function(mt){return m(Qe,{variants:null},mt)})),Qe.cachedVariants?Qe.cachedVariants:fe(Qe)?m(Qe,{starts:Qe.starts?m(Qe.starts):null}):Object.isFrozen(Qe)?m(Qe):Qe}("self"===Qt?re:Qt)})),re.contains.forEach(function(Qt){ee(Qt,ze)}),re.starts&&ee(re.starts,Me),ze.matcher=function(re){const Me=new Ne;return re.contains.forEach(ze=>Me.addRule(ze.begin,{rule:ze,type:"begin"})),re.terminatorEnd&&Me.addRule(re.terminatorEnd,{type:"end"}),re.illegal&&Me.addRule(re.illegal,{type:"illegal"}),Me}(ze),ze}(Qe)}function fe(Qe){return!!Qe&&(Qe.endsWithParent||fe(Qe.starts))}function Z(Qe){const mt={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!Qe.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,v(this.code);let qt={};return this.autoDetect?(qt=Qe.highlightAuto(this.code),this.detectedLanguage=qt.language):(qt=Qe.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),qt.value},autoDetect(){return!this.language||function(Qe){return Boolean(Qe||""===Qe)}(this.autodetect)},ignoreIllegals:()=>!0},render(qt){return qt("pre",{},[qt("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:mt,VuePlugin:{install(qt){qt.component("highlightjs",mt)}}}}const _e={"after:highlightElement":({el:Qe,result:mt,text:Vt})=>{const qt=$e(Qe);if(!qt.length)return;const Ne=document.createElement("div");Ne.innerHTML=mt.value,mt.value=function(Qe,mt,Vt){let qt=0,Ne="";const Se=[];function ee(){return Qe.length&&mt.length?Qe[0].offset!==mt[0].offset?Qe[0].offset"}function Me(It){Ne+=""}function ze(It){("start"===It.event?re:Me)(It.node)}for(;Qe.length||mt.length;){let It=ee();if(Ne+=v(Vt.substring(qt,It[0].offset)),qt=It[0].offset,It===Qe){Se.reverse().forEach(Me);do{ze(It.splice(0,1)[0]),It=ee()}while(It===Qe&&It.length&&It[0].offset===qt);Se.reverse().forEach(re)}else"start"===It[0].event?Se.push(It[0].node):Se.pop(),ze(It.splice(0,1)[0])}return Ne+v(Vt.substr(qt))}(qt,$e(Ne),Vt)}};function Be(Qe){return Qe.nodeName.toLowerCase()}function $e(Qe){const mt=[];return function Vt(qt,Ne){for(let Se=qt.firstChild;Se;Se=Se.nextSibling)3===Se.nodeType?Ne+=Se.nodeValue.length:1===Se.nodeType&&(mt.push({event:"start",offset:Ne,node:Se}),Ne=Vt(Se,Ne),Be(Se).match(/br|hr|img|input/)||mt.push({event:"stop",offset:Ne,node:Se}));return Ne}(Qe,0),mt}const ut={},St=Qe=>{console.error(Qe)},Xt=(Qe,...mt)=>{console.log(`WARN: ${Qe}`,...mt)},tn=(Qe,mt)=>{ut[`${Qe}/${mt}`]||(console.log(`Deprecated as of ${Qe}. ${mt}`),ut[`${Qe}/${mt}`]=!0)},Dt=v,Kt=m,et=Symbol("nomatch");var Lt=function(Qe){const mt=Object.create(null),Vt=Object.create(null),qt=[];let Ne=!0;const Se=/(^(<[^>]+>|\t|)+|\n)/gm,ee="Could not find the language '{}', did you forget to load/include a language module?",re={disableAutodetect:!0,name:"Plain text",contains:[]};let Me={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:r};function ze(Ft){return Me.noHighlightRe.test(Ft)}function Qt(Ft,Ht,Zt,an){let Tn="",zn="";"object"==typeof Ht?(Tn=Ft,Zt=Ht.ignoreIllegals,zn=Ht.language,an=void 0):(tn("10.7.0","highlight(lang, code, ...args) has been deprecated."),tn("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),zn=Ft,Tn=Ht);const $n={code:Tn,language:zn};Pe("before:highlight",$n);const ti=$n.result?$n.result:cn($n.language,$n.code,Zt,an);return ti.code=$n.code,Pe("after:highlight",ti),ti}function cn(Ft,Ht,Zt,an){function Tn(gn,yn){const Sn=Ui.case_insensitive?yn[0].toLowerCase():yn[0];return Object.prototype.hasOwnProperty.call(gn.keywords,Sn)&&gn.keywords[Sn]}function ti(){null!=Rn.subLanguage?function(){if(""===Fn)return;let gn=null;if("string"==typeof Rn.subLanguage){if(!mt[Rn.subLanguage])return void oi.addText(Fn);gn=cn(Rn.subLanguage,Fn,!0,qi[Rn.subLanguage]),qi[Rn.subLanguage]=gn.top}else gn=lt(Fn,Rn.subLanguage.length?Rn.subLanguage:null);Rn.relevance>0&&($i+=gn.relevance),oi.addSublanguage(gn.emitter,gn.language)}():function(){if(!Rn.keywords)return void oi.addText(Fn);let gn=0;Rn.keywordPatternRe.lastIndex=0;let yn=Rn.keywordPatternRe.exec(Fn),Sn="";for(;yn;){Sn+=Fn.substring(gn,yn.index);const Wn=Tn(Rn,yn);if(Wn){const[Ri,Li]=Wn;oi.addText(Sn),Sn="",$i+=Li,Ri.startsWith("_")?Sn+=yn[0]:oi.addKeyword(yn[0],Ui.classNameAliases[Ri]||Ri)}else Sn+=yn[0];gn=Rn.keywordPatternRe.lastIndex,yn=Rn.keywordPatternRe.exec(Fn)}Sn+=Fn.substr(gn),oi.addText(Sn)}(),Fn=""}function jn(gn){return gn.className&&oi.openNode(Ui.classNameAliases[gn.className]||gn.className),Rn=Object.create(gn,{parent:{value:Rn}}),Rn}function Qn(gn,yn,Sn){let Wn=function(Qe,mt){const Vt=Qe&&Qe.exec(mt);return Vt&&0===Vt.index}(gn.endRe,Sn);if(Wn){if(gn["on:end"]){const Ri=new f(gn);gn["on:end"](yn,Ri),Ri.isMatchIgnored&&(Wn=!1)}if(Wn){for(;gn.endsParent&&gn.parent;)gn=gn.parent;return gn}}if(gn.endsWithParent)return Qn(gn.parent,yn,Sn)}function kn(gn){return 0===Rn.matcher.regexIndex?(Fn+=gn[0],1):(ur=!0,0)}function Zi(gn){const yn=gn[0],Sn=Ht.substr(gn.index),Wn=Qn(Rn,gn,Sn);if(!Wn)return et;const Ri=Rn;Ri.skip?Fn+=yn:(Ri.returnEnd||Ri.excludeEnd||(Fn+=yn),ti(),Ri.excludeEnd&&(Fn=yn));do{Rn.className&&oi.closeNode(),!Rn.skip&&!Rn.subLanguage&&($i+=Rn.relevance),Rn=Rn.parent}while(Rn!==Wn.parent);return Wn.starts&&(Wn.endSameAsBegin&&(Wn.starts.endRe=Wn.endRe),jn(Wn.starts)),Ri.returnEnd?0:yn.length}let pi={};function Gi(gn,yn){const Sn=yn&&yn[0];if(Fn+=gn,null==Sn)return ti(),0;if("begin"===pi.type&&"end"===yn.type&&pi.index===yn.index&&""===Sn){if(Fn+=Ht.slice(yn.index,yn.index+1),!Ne){const Wn=new Error("0 width match regex");throw Wn.languageName=Ft,Wn.badRule=pi.rule,Wn}return 1}if(pi=yn,"begin"===yn.type)return function(gn){const yn=gn[0],Sn=gn.rule,Wn=new f(Sn),Ri=[Sn.__beforeBegin,Sn["on:begin"]];for(const Li of Ri)if(Li&&(Li(gn,Wn),Wn.isMatchIgnored))return kn(yn);return Sn&&Sn.endSameAsBegin&&(Sn.endRe=function(Qe){return new RegExp(Qe.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}(yn)),Sn.skip?Fn+=yn:(Sn.excludeBegin&&(Fn+=yn),ti(),!Sn.returnBegin&&!Sn.excludeBegin&&(Fn=yn)),jn(Sn),Sn.returnBegin?0:yn.length}(yn);if("illegal"===yn.type&&!Zt){const Wn=new Error('Illegal lexeme "'+Sn+'" for mode "'+(Rn.className||"")+'"');throw Wn.mode=Rn,Wn}if("end"===yn.type){const Wn=Zi(yn);if(Wn!==et)return Wn}if("illegal"===yn.type&&""===Sn)return 1;if(Gn>1e5&&Gn>3*yn.index)throw new Error("potential infinite loop, way more iterations than matches");return Fn+=Sn,Sn.length}const Ui=Ze(Ft);if(!Ui)throw St(ee.replace("{}",Ft)),new Error('Unknown language: "'+Ft+'"');const tr=Ee(Ui,{plugins:qt});let bi="",Rn=an||tr;const qi={},oi=new Me.__emitter(Me);!function(){const gn=[];for(let yn=Rn;yn!==Ui;yn=yn.parent)yn.className&&gn.unshift(yn.className);gn.forEach(yn=>oi.openNode(yn))}();let Fn="",$i=0,mi=0,Gn=0,ur=!1;try{for(Rn.matcher.considerAll();;){Gn++,ur?ur=!1:Rn.matcher.considerAll(),Rn.matcher.lastIndex=mi;const gn=Rn.matcher.exec(Ht);if(!gn)break;const Sn=Gi(Ht.substring(mi,gn.index),gn);mi=gn.index+Sn}return Gi(Ht.substr(mi)),oi.closeAllNodes(),oi.finalize(),bi=oi.toHTML(),{relevance:Math.floor($i),value:bi,language:Ft,illegal:!1,emitter:oi,top:Rn}}catch(gn){if(gn.message&&gn.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:gn.message,context:Ht.slice(mi-100,mi+100),mode:gn.mode},sofar:bi,relevance:0,value:Dt(Ht),emitter:oi};if(Ne)return{illegal:!1,relevance:0,value:Dt(Ht),emitter:oi,language:Ft,top:Rn,errorRaised:gn};throw gn}}function lt(Ft,Ht){Ht=Ht||Me.languages||Object.keys(mt);const Zt=function(Ft){const Ht={relevance:0,emitter:new Me.__emitter(Me),value:Dt(Ft),illegal:!1,top:re};return Ht.emitter.addText(Ft),Ht}(Ft),an=Ht.filter(Ze).filter(Re).map(jn=>cn(jn,Ft,!1));an.unshift(Zt);const Tn=an.sort((jn,Qn)=>{if(jn.relevance!==Qn.relevance)return Qn.relevance-jn.relevance;if(jn.language&&Qn.language){if(Ze(jn.language).supersetOf===Qn.language)return 1;if(Ze(Qn.language).supersetOf===jn.language)return-1}return 0}),[zn,$n]=Tn,ti=zn;return ti.second_best=$n,ti}const pt={"before:highlightElement":({el:Ft})=>{Me.useBR&&(Ft.innerHTML=Ft.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:Ft})=>{Me.useBR&&(Ft.value=Ft.value.replace(/\n/g,"
"))}},Ot=/^(<[^>]+>|\t)+/gm,un={"after:highlightElement":({result:Ft})=>{Me.tabReplace&&(Ft.value=Ft.value.replace(Ot,Ht=>Ht.replace(/\t/g,Me.tabReplace)))}};function on(Ft){let Ht=null;const Zt=function(Ft){let Ht=Ft.className+" ";Ht+=Ft.parentNode?Ft.parentNode.className:"";const Zt=Me.languageDetectRe.exec(Ht);if(Zt){const an=Ze(Zt[1]);return an||(Xt(ee.replace("{}",Zt[1])),Xt("Falling back to no-highlight mode for this block.",Ft)),an?Zt[1]:"no-highlight"}return Ht.split(/\s+/).find(an=>ze(an)||Ze(an))}(Ft);if(ze(Zt))return;Pe("before:highlightElement",{el:Ft,language:Zt}),Ht=Ft;const an=Ht.textContent,Tn=Zt?Qt(an,{language:Zt,ignoreIllegals:!0}):lt(an);Pe("after:highlightElement",{el:Ft,result:Tn,text:an}),Ft.innerHTML=Tn.value,function(Ft,Ht,Zt){const an=Ht?Vt[Ht]:Zt;Ft.classList.add("hljs"),an&&Ft.classList.add(an)}(Ft,Zt,Tn.language),Ft.result={language:Tn.language,re:Tn.relevance,relavance:Tn.relevance},Tn.second_best&&(Ft.second_best={language:Tn.second_best.language,re:Tn.second_best.relevance,relavance:Tn.second_best.relevance})}const Yn=()=>{Yn.called||(Yn.called=!0,tn("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(on))};let Oi=!1;function Ni(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(on):Oi=!0}function Ze(Ft){return Ft=(Ft||"").toLowerCase(),mt[Ft]||mt[Vt[Ft]]}function ue(Ft,{languageName:Ht}){"string"==typeof Ft&&(Ft=[Ft]),Ft.forEach(Zt=>{Vt[Zt.toLowerCase()]=Ht})}function Re(Ft){const Ht=Ze(Ft);return Ht&&!Ht.disableAutodetect}function Pe(Ft,Ht){const Zt=Ft;qt.forEach(function(an){an[Zt]&&an[Zt](Ht)})}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){Oi&&Ni()},!1),Object.assign(Qe,{highlight:Qt,highlightAuto:lt,highlightAll:Ni,fixMarkup:function(Ft){return tn("10.2.0","fixMarkup will be removed entirely in v11.0"),tn("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),function(Ft){return Me.tabReplace||Me.useBR?Ft.replace(Se,Ht=>"\n"===Ht?Me.useBR?"
":Ht:Me.tabReplace?Ht.replace(/\t/g,Me.tabReplace):Ht):Ft}(Ft)},highlightElement:on,highlightBlock:function(Ft){return tn("10.7.0","highlightBlock will be removed entirely in v12.0"),tn("10.7.0","Please use highlightElement now."),on(Ft)},configure:function(Ft){Ft.useBR&&(tn("10.3.0","'useBR' will be removed entirely in v11.0"),tn("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Me=Kt(Me,Ft)},initHighlighting:Yn,initHighlightingOnLoad:function(){tn("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Oi=!0},registerLanguage:function(Ft,Ht){let Zt=null;try{Zt=Ht(Qe)}catch(an){if(St("Language definition for '{}' could not be registered.".replace("{}",Ft)),!Ne)throw an;St(an),Zt=re}Zt.name||(Zt.name=Ft),mt[Ft]=Zt,Zt.rawDefinition=Ht.bind(null,Qe),Zt.aliases&&ue(Zt.aliases,{languageName:Ft})},unregisterLanguage:function(Ft){delete mt[Ft];for(const Ht of Object.keys(Vt))Vt[Ht]===Ft&&delete Vt[Ht]},listLanguages:function(){return Object.keys(mt)},getLanguage:Ze,registerAliases:ue,requireLanguage:function(Ft){tn("10.4.0","requireLanguage will be removed entirely in v11."),tn("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const Ht=Ze(Ft);if(Ht)return Ht;throw new Error("The '{}' language is required, but not loaded.".replace("{}",Ft))},autoDetection:Re,inherit:Kt,addPlugin:function(Ft){(function(Ft){Ft["before:highlightBlock"]&&!Ft["before:highlightElement"]&&(Ft["before:highlightElement"]=Ht=>{Ft["before:highlightBlock"](Object.assign({block:Ht.el},Ht))}),Ft["after:highlightBlock"]&&!Ft["after:highlightElement"]&&(Ft["after:highlightElement"]=Ht=>{Ft["after:highlightBlock"](Object.assign({block:Ht.el},Ht))})})(Ft),qt.push(Ft)},vuePlugin:Z(Qe).VuePlugin}),Qe.debugMode=function(){Ne=!1},Qe.safeMode=function(){Ne=!0},Qe.versionString="10.7.2";for(const Ft in tt)"object"==typeof tt[Ft]&&p(tt[Ft]);return Object.assign(Qe,tt),Qe.addPlugin(pt),Qe.addPlugin(_e),Qe.addPlugin(un),Qe}({});ye.exports=Lt},7652:ye=>{ye.exports=function(p){const n={literal:"true false null"},f=[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE],v=[p.QUOTE_STRING_MODE,p.C_NUMBER_MODE],m={end:",",endsWithParent:!0,excludeEnd:!0,contains:v,keywords:n},o={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[p.BACKSLASH_ESCAPE],illegal:"\\n"},p.inherit(m,{begin:/:/})].concat(f),illegal:"\\S"},d={begin:"\\[",end:"\\]",contains:[p.inherit(m)],illegal:"\\S"};return v.push(o,d),f.forEach(function(u){v.push(u)}),{name:"JSON",contains:v,keywords:n,illegal:"\\S"}}},1891:ye=>{function j(o){return o?"string"==typeof o?o:o.source:null}function p(o){return f("(?=",o,")")}function f(...o){return o.map(u=>j(u)).join("")}function v(...o){return"("+o.map(u=>j(u)).join("|")+")"}ye.exports=function(o){const d=f(/[A-Z_]/,f("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),h={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=o.inherit(r,{begin:/\(/,end:/\)/}),i=o.inherit(o.APOS_STRING_MODE,{className:"meta-string"}),c=o.inherit(o.QUOTE_STRING_MODE,{className:"meta-string"}),l={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[r,c,i,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[r,s,c,i]}]}]},o.COMMENT(//,{relevance:10}),{begin://,relevance:10},h,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:f(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:d,relevance:0,starts:l}]},{className:"tag",begin:f(/<\//,p(f(d,/>/))),contains:[{className:"name",begin:d,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},859:()=>{!function(ye,j){"use strict";var Y,p="hljs-ln",f="hljs-ln-code",m="hljs-ln-n",o="data-line-number",d=/\r\n|\r|\n/g;function c(Y){try{var Q=j.querySelectorAll("code.hljs,code.nohighlight");for(var te in Q)Q.hasOwnProperty(te)&&(l(Q[te])||g(Q[te],Y))}catch($){ye.console.error("LineNumbers error: ",$)}}function l(Y){return Y.classList.contains("nohljsln")}function g(Y,Q){"object"==typeof Y&&function(Y){ye.setTimeout(Y,0)}(function(){Y.innerHTML=E(Y,Q)})}function E(Y,Q){var te=function(Y,Q){return{singleLine:O(Q=Q||{}),startFrom:w(Y,Q)}}(Y,Q);return A(Y),function(Y,Q){var te=M(Y);if(""===te[te.length-1].trim()&&te.pop(),te.length>1||Q.singleLine){for(var $="",J=0,ie=te.length;J
{6}',["hljs-ln-line","hljs-ln-numbers",m,o,f,J+Q.startFrom,te[J].length>0?te[J]:" "]);return L('{1}
',[p,$])}return Y}(Y.innerHTML,te)}function O(Y){return!!Y.singleLine&&Y.singleLine}function w(Y,Q){var $=1;isFinite(Q.startFrom)&&($=Q.startFrom);var J=function(Y,Q){return Y.hasAttribute(Q)?Y.getAttribute(Q):null}(Y,"data-ln-start-from");return null!==J&&($=function(Y,Q){if(!Y)return 1;var te=Number(Y);return isFinite(te)?te:1}(J)),$}function A(Y){var Q=Y.childNodes;for(var te in Q)if(Q.hasOwnProperty(te)){var $=Q[te];I($.textContent)>0&&($.childNodes.length>0?A($):S($.parentNode))}}function S(Y){var Q=Y.className;if(/hljs-/.test(Q)){for(var te=M(Y.innerHTML),$=0,J="";${1}
\n',[Q,te[$].length>0?te[$]:" "]);Y.innerHTML=J.trim()}}function M(Y){return 0===Y.length?[]:Y.split(d)}function I(Y){return(Y.trim().match(d)||[]).length}function L(Y,Q){return Y.replace(/\{(\d+)\}/g,function(te,$){return void 0!==Q[$]?Q[$]:te})}ye.hljs?(ye.hljs.initLineNumbersOnLoad=function(Y){"interactive"===j.readyState||"complete"===j.readyState?c(Y):ye.addEventListener("DOMContentLoaded",function(){c(Y)})},ye.hljs.lineNumbersBlock=g,ye.hljs.lineNumbersValue=function(Y,Q){if("string"==typeof Y){var te=document.createElement("code");return te.innerHTML=Y,E(te,Q)}},(Y=j.createElement("style")).type="text/css",Y.innerHTML=L(".{0}{border-collapse:collapse}.{0} td{padding:0}.{1}:before{content:attr({2})}",[p,m,o]),j.getElementsByTagName("head")[0].appendChild(Y)):ye.console.error("highlight.js not detected!"),document.addEventListener("copy",function(Y){var te,Q=window.getSelection();(function(Y){for(var Q=Y;Q;){if(Q.className&&-1!==Q.className.indexOf("hljs-ln-code"))return!0;Q=Q.parentNode}return!1})(Q.anchorNode)&&(te=-1!==window.navigator.userAgent.indexOf("Edge")?function(Y){for(var Q=Y.toString(),te=Y.anchorNode;"TD"!==te.nodeName;)te=te.parentNode;for(var $=Y.focusNode;"TD"!==$.nodeName;)$=$.parentNode;var J=parseInt(te.dataset.lineNumber),ie=parseInt($.dataset.lineNumber);if(J!=ie){var ae=te.textContent,le=$.textContent;if(J>ie){var Oe=J;J=ie,ie=Oe,Oe=ae,ae=le,le=Oe}for(;0!==Q.indexOf(ae);)ae=ae.slice(1);for(;-1===Q.lastIndexOf(le);)le=le.slice(0,-1);for(var Le=ae,Ye=function(Y){for(var Q=Y;"TABLE"!==Q.nodeName;)Q=Q.parentNode;return Q}(te),Je=J+1;Je{"use strict";ye.exports=Number.isFinite||function(j){return!("number"!=typeof j||j!=j||j===1/0||j===-1/0)}},5984:(ye,j,p)=>{var n=p(2327);ye.exports=Number.isInteger||function(f){return"number"==typeof f&&n(f)&&Math.floor(f)===f}},1654:function(ye,j){var f;void 0!==(f=function(){"use strict";function v(s){function i(E){for(var T=0,D=c.length;T127){if(a>191&&a<224){if(t>=e.length)throw"UTF-8 decode: incomplete 2-byte sequence";a=(31&a)<<6|63&e[t]}else if(a>223&&a<240){if(t+1>=e.length)throw"UTF-8 decode: incomplete 3-byte sequence";a=(15&a)<<12|(63&e[t])<<6|63&e[++t]}else{if(!(a>239&&a<248))throw"UTF-8 decode: unknown multibyte start 0x"+a.toString(16)+" at index "+(t-1);if(t+2>=e.length)throw"UTF-8 decode: incomplete 4-byte sequence";a=(7&a)<<18|(63&e[t])<<12|(63&e[++t])<<6|63&e[++t]}++t}if(a<=65535)r+=String.fromCharCode(a);else{if(!(a<=1114111))throw"UTF-8 decode: code point 0x"+a.toString(16)+" exceeds UTF-16 reach";a-=65536,r+=String.fromCharCode(a>>10|55296),r+=String.fromCharCode(1023&a|56320)}}return r}function PaxHeader(e){this._fields=e}function TarFile(){}function UntarStream(e){this._bufferView=new DataView(e),this._position=0}function UntarFileStream(e){this._stream=new UntarStream(e),this._globalPaxHeader=null}if(UntarWorker.prototype={onmessage:function(e){try{if("extract"!==e.data.type)throw new Error("Unknown message type: "+e.data.type);this.untarBuffer(e.data.buffer)}catch(r){this.postError(r)}},postError:function(e){this.postMessage({type:"error",data:{message:e.message}})},postLog:function(e,r){this.postMessage({type:"log",data:{level:e,msg:r}})},untarBuffer:function(e){try{for(var r=new UntarFileStream(e);r.hasNext();){var t=r.next();this.postMessage({type:"extract",data:t},[t.buffer])}this.postMessage({type:"complete"})}catch(a){this.postError(a)}},postMessage:function(e,r){self.postMessage(e,r)}},"undefined"!=typeof self){var worker=new UntarWorker;self.onmessage=function(e){worker.onmessage(e)}}PaxHeader.parse=function(e){for(var r=new Uint8Array(e),t=[];r.length>0;){var a=parseInt(decodeUTF8(r.subarray(0,r.indexOf(32)))),n=decodeUTF8(r.subarray(0,a)),i=n.match(/^\\d+ ([^=]+)=(.*)\\n$/);if(null===i)throw new Error("Invalid PAX header data format.");var s=i[1],o=i[2];0===o.length?o=null:null!==o.match(/^\\d+$/)&&(o=parseInt(o));var f={name:s,value:o};t.push(f),r=r.subarray(a)}return new PaxHeader(t)},PaxHeader.prototype={applyHeader:function(e){this._fields.forEach(function(r){var t=r.name,a=r.value;"path"===t?(t="name",void 0!==e.prefix&&delete e.prefix):"linkpath"===t&&(t="linkname"),null===a?delete e[t]:e[t]=a})}},UntarStream.prototype={readString:function(e){for(var r=1,t=e*r,a=[],n=0;n-1&&(r.version=e.readString(2),r.uname=e.readString(32),r.gname=e.readString(32),r.devmajor=parseInt(e.readString(8)),r.devminor=parseInt(e.readString(8)),r.namePrefix=e.readString(155),r.namePrefix.length>0&&(r.name=r.namePrefix+"/"+r.name)),e.position(i),r.type){case"0":case"":r.buffer=e.readBuffer(r.size);break;case"1":break;case"2":break;case"3":break;case"4":break;case"5":break;case"6":break;case"7":break;case"g":t=!0,this._globalPaxHeader=PaxHeader.parse(e.readBuffer(r.size));break;case"x":t=!0,a=PaxHeader.parse(e.readBuffer(r.size))}void 0===r.buffer&&(r.buffer=new ArrayBuffer(0));var s=i+r.size;return r.size%512!==0&&(s+=512-r.size%512),e.position(s),t&&(r=this._readNextFile()),null!==this._globalPaxHeader&&this._globalPaxHeader.applyHeader(r),null!==a&&a.applyHeader(r),r}};'])),function(s){if(!(s instanceof ArrayBuffer))throw new TypeError("arrayBuffer is not an instance of ArrayBuffer.");if(!u.Worker)throw new Error("Worker implementation is not available in this environment.");return new v(function(i,c,l){var g=new Worker(d),y=[];g.onerror=function(E){c(E)},g.onmessage=function(E){switch((E=E.data).type){case"log":console[E.data.level]("Worker: "+E.data.msg);break;case"extract":var T=function(s){return Object.defineProperties(s,r),s}(E.data);y.push(T),l(T);break;case"complete":g.terminate(),i(y);break;case"error":g.terminate(),c(new Error(E.data.message));break;default:g.terminate(),c(new Error("Unknown message from worker: "+E.type))}},g.postMessage({type:"extract",buffer:s},[s])})}}.apply(j,[]))&&(ye.exports=f)},642:(ye,j)=>{function n(f,v){var m=[],o=[];return null==v&&(v=function(d,u){return m[0]===u?"[Circular ~]":"[Circular ~."+o.slice(0,m.indexOf(u)).join(".")+"]"}),function(d,u){if(m.length>0){var h=m.indexOf(this);~h?m.splice(h+1):m.push(this),~h?o.splice(h,1/0,d):o.push(d),~m.indexOf(u)&&(u=v.call(this,d,u))}else m.push(u);return null==f?u:f.call(this,d,u)}}(ye.exports=function(f,v,m,o){return JSON.stringify(f,n(v,o),m)}).getSerialize=n},4366:ye=>{var j=1e3,p=60*j,n=60*p,f=24*n;function u(h,r,s){if(!(h0)return function(h){if(!((h=String(h)).length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(h);if(r){var s=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*f;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*p;case"seconds":case"second":case"secs":case"sec":case"s":return s*j;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(h);if("number"===s&&!1===isNaN(h))return r.long?function(h){return u(h,f,"day")||u(h,n,"hour")||u(h,p,"minute")||u(h,j,"second")||h+" ms"}(h):function(h){return h>=f?Math.round(h/f)+"d":h>=n?Math.round(h/n)+"h":h>=p?Math.round(h/p)+"m":h>=j?Math.round(h/j)+"s":h+"ms"}(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))}},2756:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{HIGHLIGHT_OPTIONS:()=>E,Highlight:()=>A,HighlightJS:()=>w,HighlightLoader:()=>T,HighlightModule:()=>S,\u02750:()=>O});var n=p(5e3),f=p(591),v=p(8896),m=p(1737),o=p(1746),d=p(5254),u=p(352),h=p(2198),r=p(4850),s=p(2986),i=p(7545),c=p(2868),l=p(7221),g=p(9808),y=p(2313);const E=new n.InjectionToken("HIGHLIGHT_OPTIONS");let T=(()=>{class M{constructor(b,L,F){this._options=F,this._ready=new f.X(null),this.ready=this._ready.asObservable().pipe((0,h.h)(ne=>!!ne),(0,r.U)(ne=>ne),(0,s.q)(1)),(0,g.isPlatformBrowser)(L)&&b.defaultView.hljs?this._ready.next(b.defaultView.hljs):this._loadLibrary().pipe((0,i.w)(ne=>this._options&&this._options.lineNumbersLoader?(b.defaultView.hljs=ne,this.loadLineNumbers().pipe((0,c.b)(()=>this._ready.next(ne)))):(this._ready.next(ne),v.E)),(0,l.K)(ne=>(console.error("[HLJS] ",ne),v.E))).subscribe()}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return(0,m._)("The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return(0,m._)("The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return(0,m._)("The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return(0,m._)("The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe((0,i.w)(b=>this._loadLanguages(b)))}return(0,m._)("Highlight.js library was not imported!")}_loadLanguages(b){const L=Object.entries(this._options.languages).map(([F,ne])=>D(ne()).pipe((0,c.b)(Y=>b.registerLanguage(F,Y))));return(0,o.$R)(...L).pipe((0,r.U)(()=>b))}loadCoreLibrary(){return D(this._options.coreLibraryLoader())}loadFullLibrary(){return D(this._options.fullLibraryLoader())}loadLineNumbers(){return D(this._options.lineNumbersLoader())}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275inject(g.DOCUMENT),n.\u0275\u0275inject(n.PLATFORM_ID),n.\u0275\u0275inject(E,8))},M.\u0275prov=(0,n.\u0275\u0275defineInjectable)({factory:function(){return new M((0,n.\u0275\u0275inject)(g.DOCUMENT),(0,n.\u0275\u0275inject)(n.PLATFORM_ID),(0,n.\u0275\u0275inject)(E,8))},token:M,providedIn:"root"}),M})();const D=M=>(0,d.D)(M).pipe((0,h.h)(I=>!!I&&!!I.default),(0,r.U)(I=>I.default)),O=D;let w=(()=>{class M{constructor(b,L){this._loader=b,this._hljs=null,b.ready.pipe().subscribe(F=>{this._hljs=F,L&&L.config&&(F.configure(L.config),F.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(b,L,F,ne){return this._loader.ready.pipe((0,r.U)(Y=>Y.highlight(b,L,F,ne)))}highlightAuto(b,L){return this._loader.ready.pipe((0,r.U)(F=>F.highlightAuto(b,L)))}fixMarkup(b){return this._loader.ready.pipe((0,r.U)(L=>L.fixMarkup(b)))}highlightBlock(b){return this._loader.ready.pipe((0,r.U)(L=>L.highlightBlock(b)))}configure(b){return this._loader.ready.pipe((0,r.U)(L=>L.configure(b)))}initHighlighting(){return this._loader.ready.pipe((0,r.U)(b=>b.initHighlighting()))}registerLanguage(b,L){return this._loader.ready.pipe((0,c.b)(F=>F.registerLanguage(b,L)))}listLanguages(){return this._loader.ready.pipe((0,r.U)(b=>b.listLanguages()))}getLanguage(b){return this._loader.ready.pipe((0,r.U)(L=>L.getLanguage(b)))}lineNumbersBlock(b){return this._loader.ready.pipe((0,h.h)(L=>!!L.lineNumbersBlock),(0,c.b)(L=>L.lineNumbersBlock(b)))}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275inject(T),n.\u0275\u0275inject(E,8))},M.\u0275prov=(0,n.\u0275\u0275defineInjectable)({factory:function(){return new M((0,n.\u0275\u0275inject)(T),(0,n.\u0275\u0275inject)(E,8))},token:M,providedIn:"root"}),M})(),A=(()=>{class M{constructor(b,L,F,ne){this._hljs=L,this._sanitizer=F,this._options=ne,this.highlighted=new n.EventEmitter,this._nativeElement=b.nativeElement}ngOnChanges(b){this.code&&b.code&&void 0!==b.code.currentValue&&b.code.currentValue!==b.code.previousValue&&this.highlightElement(this.code,this.languages)}highlightElement(b,L){this.setTextContent(b),this._hljs.highlightAuto(b,L).subscribe(F=>{this.setInnerHTML(F.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(F)})}addLineNumbers(){this.destroyLineNumbersObserver(),u.Z.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(b){u.Z.schedule(()=>this._nativeElement.textContent=b)}setInnerHTML(b){u.Z.schedule(()=>this._nativeElement.innerHTML=this._sanitizer.sanitize(n.SecurityContext.HTML,b)||"")}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(w),n.\u0275\u0275directiveInject(y.DomSanitizer),n.\u0275\u0275directiveInject(E,8))},M.\u0275dir=n.\u0275\u0275defineDirective({type:M,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(b,L){2&b&&n.\u0275\u0275classProp("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[n.\u0275\u0275NgOnChangesFeature]}),M})(),S=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=n.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=n.\u0275\u0275defineInjector({}),M})()},2398:ye=>{"use strict";const j="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;if(!j)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!j.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');ye.exports.AbortController=j.AbortController},3230:(ye,j,p)=>{"use strict";const n=p(8372),f=p(2761),v=p(8951),m=p(4770),d=Symbol("encodeFragmentIdentifier");function r(D){if("string"!=typeof D||1!==D.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(D,O){return O.encode?O.strict?n(D):encodeURIComponent(D):D}function i(D,O){return O.decode?f(D):D}function c(D){return Array.isArray(D)?D.sort():"object"==typeof D?c(Object.keys(D)).sort((O,w)=>Number(O)-Number(w)).map(O=>D[O]):D}function l(D){const O=D.indexOf("#");return-1!==O&&(D=D.slice(0,O)),D}function y(D){const O=(D=l(D)).indexOf("?");return-1===O?"":D.slice(O+1)}function E(D,O){return O.parseNumbers&&!Number.isNaN(Number(D))&&"string"==typeof D&&""!==D.trim()?D=Number(D):O.parseBooleans&&null!==D&&("true"===D.toLowerCase()||"false"===D.toLowerCase())&&(D="true"===D.toLowerCase()),D}function T(D,O){r((O=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},O)).arrayFormatSeparator);const w=function(D){let O;switch(D.arrayFormat){case"index":return(w,A,S)=>{O=/\[(\d*)\]$/.exec(w),w=w.replace(/\[\d*\]$/,""),O?(void 0===S[w]&&(S[w]={}),S[w][O[1]]=A):S[w]=A};case"bracket":return(w,A,S)=>{O=/(\[\])$/.exec(w),S[w=w.replace(/\[\]$/,"")]=O?void 0!==S[w]?[].concat(S[w],A):[A]:A};case"colon-list-separator":return(w,A,S)=>{O=/(:list)$/.exec(w),S[w=w.replace(/:list$/,"")]=O?void 0!==S[w]?[].concat(S[w],A):[A]:A};case"comma":case"separator":return(w,A,S)=>{const M="string"==typeof A&&A.includes(D.arrayFormatSeparator),I="string"==typeof A&&!M&&i(A,D).includes(D.arrayFormatSeparator);A=I?i(A,D):A;const b=M||I?A.split(D.arrayFormatSeparator).map(L=>i(L,D)):null===A?A:i(A,D);S[w]=b};case"bracket-separator":return(w,A,S)=>{const M=/(\[\])$/.test(w);if(w=w.replace(/\[\]$/,""),!M)return void(S[w]=A&&i(A,D));const I=null===A?[]:A.split(D.arrayFormatSeparator).map(b=>i(b,D));S[w]=void 0!==S[w]?[].concat(S[w],I):I};default:return(w,A,S)=>{S[w]=void 0!==S[w]?[].concat(S[w],A):A}}}(O),A=Object.create(null);if("string"!=typeof D||!(D=D.trim().replace(/^[?#&]/,"")))return A;for(const S of D.split("&")){if(""===S)continue;let[M,I]=v(O.decode?S.replace(/\+/g," "):S,"=");I=void 0===I?null:["comma","separator","bracket-separator"].includes(O.arrayFormat)?I:i(I,O),w(i(M,O),I,A)}for(const S of Object.keys(A)){const M=A[S];if("object"==typeof M&&null!==M)for(const I of Object.keys(M))M[I]=E(M[I],O);else A[S]=E(M,O)}return!1===O.sort?A:(!0===O.sort?Object.keys(A).sort():Object.keys(A).sort(O.sort)).reduce((S,M)=>{const I=A[M];return S[M]=Boolean(I)&&"object"==typeof I&&!Array.isArray(I)?c(I):I,S},Object.create(null))}j.extract=y,j.parse=T,j.stringify=(D,O)=>{if(!D)return"";r((O=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},O)).arrayFormatSeparator);const w=I=>O.skipNull&&(D=>null==D)(D[I])||O.skipEmptyString&&""===D[I],A=function(D){switch(D.arrayFormat){case"index":return O=>(w,A)=>{const S=w.length;return void 0===A||D.skipNull&&null===A||D.skipEmptyString&&""===A?w:null===A?[...w,[s(O,D),"[",S,"]"].join("")]:[...w,[s(O,D),"[",s(S,D),"]=",s(A,D)].join("")]};case"bracket":return O=>(w,A)=>void 0===A||D.skipNull&&null===A||D.skipEmptyString&&""===A?w:null===A?[...w,[s(O,D),"[]"].join("")]:[...w,[s(O,D),"[]=",s(A,D)].join("")];case"colon-list-separator":return O=>(w,A)=>void 0===A||D.skipNull&&null===A||D.skipEmptyString&&""===A?w:null===A?[...w,[s(O,D),":list="].join("")]:[...w,[s(O,D),":list=",s(A,D)].join("")];case"comma":case"separator":case"bracket-separator":{const O="bracket-separator"===D.arrayFormat?"[]=":"=";return w=>(A,S)=>void 0===S||D.skipNull&&null===S||D.skipEmptyString&&""===S?A:(S=null===S?"":S,0===A.length?[[s(w,D),O,s(S,D)].join("")]:[[A,s(S,D)].join(D.arrayFormatSeparator)])}default:return O=>(w,A)=>void 0===A||D.skipNull&&null===A||D.skipEmptyString&&""===A?w:null===A?[...w,s(O,D)]:[...w,[s(O,D),"=",s(A,D)].join("")]}}(O),S={};for(const I of Object.keys(D))w(I)||(S[I]=D[I]);const M=Object.keys(S);return!1!==O.sort&&M.sort(O.sort),M.map(I=>{const b=D[I];return void 0===b?"":null===b?s(I,O):Array.isArray(b)?0===b.length&&"bracket-separator"===O.arrayFormat?s(I,O)+"[]":b.reduce(A(I),[]).join("&"):s(I,O)+"="+s(b,O)}).filter(I=>I.length>0).join("&")},j.parseUrl=(D,O)=>{O=Object.assign({decode:!0},O);const[w,A]=v(D,"#");return Object.assign({url:w.split("?")[0]||"",query:T(y(D),O)},O&&O.parseFragmentIdentifier&&A?{fragmentIdentifier:i(A,O)}:{})},j.stringifyUrl=(D,O)=>{O=Object.assign({encode:!0,strict:!0,[d]:!0},O);const w=l(D.url).split("?")[0]||"",A=j.extract(D.url),S=j.parse(A,{sort:!1}),M=Object.assign(S,D.query);let I=j.stringify(M,O);I&&(I=`?${I}`);let b=function(D){let O="";const w=D.indexOf("#");return-1!==w&&(O=D.slice(w)),O}(D.url);return D.fragmentIdentifier&&(b=`#${O[d]?s(D.fragmentIdentifier,O):D.fragmentIdentifier}`),`${w}${I}${b}`},j.pick=(D,O,w)=>{w=Object.assign({parseFragmentIdentifier:!0,[d]:!1},w);const{url:A,query:S,fragmentIdentifier:M}=j.parseUrl(D,w);return j.stringifyUrl({url:A,query:m(S,O),fragmentIdentifier:M},w)},j.exclude=(D,O,w)=>{const A=Array.isArray(O)?S=>!O.includes(S):(S,M)=>!O(S,M);return j.pick(D,A,w)}},591:(ye,j,p)=>{"use strict";p.d(j,{X:()=>v});var n=p(8929),f=p(5279);class v extends n.xQ{constructor(o){super(),this._value=o}get value(){return this.getValue()}_subscribe(o){const d=super._subscribe(o);return d&&!d.closed&&o.next(this._value),d}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new f.N;return this._value}next(o){super.next(this._value=o)}}},9312:(ye,j,p)=>{"use strict";p.d(j,{P:()=>o});var n=p(8896),f=p(1086),v=p(1737);class o{constructor(u,h,r){this.kind=u,this.value=h,this.error=r,this.hasValue="N"===u}observe(u){switch(this.kind){case"N":return u.next&&u.next(this.value);case"E":return u.error&&u.error(this.error);case"C":return u.complete&&u.complete()}}do(u,h,r){switch(this.kind){case"N":return u&&u(this.value);case"E":return h&&h(this.error);case"C":return r&&r()}}accept(u,h,r){return u&&"function"==typeof u.next?this.observe(u):this.do(u,h,r)}toObservable(){switch(this.kind){case"N":return(0,f.of)(this.value);case"E":return(0,v._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(u){return void 0!==u?new o("N",u):o.undefinedValueNotification}static createError(u){return new o("E",void 0,u)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},6498:(ye,j,p)=>{"use strict";p.d(j,{y:()=>r});var n=p(3489),v=p(7668),m=p(3292),d=p(3821),u=p(4843),h=p(2830);let r=(()=>{class i{constructor(l){this._isScalar=!1,l&&(this._subscribe=l)}lift(l){const g=new i;return g.source=this,g.operator=l,g}subscribe(l,g,y){const{operator:E}=this,T=function(i,c,l){if(i){if(i instanceof n.L)return i;if(i[v.b])return i[v.b]()}return i||c||l?new n.L(i,c,l):new n.L(m.c)}(l,g,y);if(T.add(E?E.call(T,this.source):this.source||h.v.useDeprecatedSynchronousErrorHandling&&!T.syncErrorThrowable?this._subscribe(T):this._trySubscribe(T)),h.v.useDeprecatedSynchronousErrorHandling&&T.syncErrorThrowable&&(T.syncErrorThrowable=!1,T.syncErrorThrown))throw T.syncErrorValue;return T}_trySubscribe(l){try{return this._subscribe(l)}catch(g){h.v.useDeprecatedSynchronousErrorHandling&&(l.syncErrorThrown=!0,l.syncErrorValue=g),function(i){for(;i;){const{closed:c,destination:l,isStopped:g}=i;if(c||g)return!1;i=l&&l instanceof n.L?l:null}return!0}(l)?l.error(g):console.warn(g)}}forEach(l,g){return new(g=s(g))((y,E)=>{let T;T=this.subscribe(D=>{try{l(D)}catch(O){E(O),T&&T.unsubscribe()}},E,y)})}_subscribe(l){const{source:g}=this;return g&&g.subscribe(l)}[d.L](){return this}pipe(...l){return 0===l.length?this:(0,u.U)(l)(this)}toPromise(l){return new(l=s(l))((g,y)=>{let E;this.subscribe(T=>E=T,T=>y(T),()=>g(E))})}}return i.create=c=>new i(c),i})();function s(i){if(i||(i=h.v.Promise||Promise),!i)throw new Error("no Promise impl found");return i}},3292:(ye,j,p)=>{"use strict";p.d(j,{c:()=>v});var n=p(2830),f=p(2782);const v={closed:!0,next(m){},error(m){if(n.v.useDeprecatedSynchronousErrorHandling)throw m;(0,f.z)(m)},complete(){}}},826:(ye,j,p)=>{"use strict";p.d(j,{L:()=>f});var n=p(3489);class f extends n.L{notifyNext(m,o,d,u,h){this.destination.next(o)}notifyError(m,o){this.destination.error(m)}notifyComplete(m){this.destination.complete()}}},8929:(ye,j,p)=>{"use strict";p.d(j,{Yc:()=>u,xQ:()=>h});var n=p(6498),f=p(3489),v=p(2654),m=p(5279),o=p(5283),d=p(7668);class u extends f.L{constructor(i){super(i),this.destination=i}}let h=(()=>{class s extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[d.b](){return new u(this)}lift(c){const l=new r(this,this);return l.operator=c,l}next(c){if(this.closed)throw new m.N;if(!this.isStopped){const{observers:l}=this,g=l.length,y=l.slice();for(let E=0;Enew r(i,c),s})();class r extends h{constructor(i,c){super(),this.destination=i,this.source=c}next(i){const{destination:c}=this;c&&c.next&&c.next(i)}error(i){const{destination:c}=this;c&&c.error&&this.destination.error(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:c}=this;return c?this.source.subscribe(i):v.w.EMPTY}}},5283:(ye,j,p)=>{"use strict";p.d(j,{W:()=>f});var n=p(2654);class f extends n.w{constructor(m,o){super(),this.subject=m,this.subscriber=o,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const m=this.subject,o=m.observers;if(this.subject=null,!o||0===o.length||m.isStopped||m.closed)return;const d=o.indexOf(this.subscriber);-1!==d&&o.splice(d,1)}}},3489:(ye,j,p)=>{"use strict";p.d(j,{L:()=>u});var n=p(7043),f=p(3292),v=p(2654),m=p(7668),o=p(2830),d=p(2782);class u extends v.w{constructor(s,i,c){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=f.c;break;case 1:if(!s){this.destination=f.c;break}if("object"==typeof s){s instanceof u?(this.syncErrorThrowable=s.syncErrorThrowable,this.destination=s,s.add(this)):(this.syncErrorThrowable=!0,this.destination=new h(this,s));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,s,i,c)}}[m.b](){return this}static create(s,i,c){const l=new u(s,i,c);return l.syncErrorThrowable=!1,l}next(s){this.isStopped||this._next(s)}error(s){this.isStopped||(this.isStopped=!0,this._error(s))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(s){this.destination.next(s)}_error(s){this.destination.error(s),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:s}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=s,this}}class h extends u{constructor(s,i,c,l){super(),this._parentSubscriber=s;let g,y=this;(0,n.m)(i)?g=i:i&&(g=i.next,c=i.error,l=i.complete,i!==f.c&&(y=Object.create(i),(0,n.m)(y.unsubscribe)&&this.add(y.unsubscribe.bind(y)),y.unsubscribe=this.unsubscribe.bind(this))),this._context=y,this._next=g,this._error=c,this._complete=l}next(s){if(!this.isStopped&&this._next){const{_parentSubscriber:i}=this;o.v.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?this.__tryOrSetError(i,this._next,s)&&this.unsubscribe():this.__tryOrUnsub(this._next,s)}}error(s){if(!this.isStopped){const{_parentSubscriber:i}=this,{useDeprecatedSynchronousErrorHandling:c}=o.v;if(this._error)c&&i.syncErrorThrowable?(this.__tryOrSetError(i,this._error,s),this.unsubscribe()):(this.__tryOrUnsub(this._error,s),this.unsubscribe());else if(i.syncErrorThrowable)c?(i.syncErrorValue=s,i.syncErrorThrown=!0):(0,d.z)(s),this.unsubscribe();else{if(this.unsubscribe(),c)throw s;(0,d.z)(s)}}}complete(){if(!this.isStopped){const{_parentSubscriber:s}=this;if(this._complete){const i=()=>this._complete.call(this._context);o.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable?(this.__tryOrSetError(s,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(s,i){try{s.call(this._context,i)}catch(c){if(this.unsubscribe(),o.v.useDeprecatedSynchronousErrorHandling)throw c;(0,d.z)(c)}}__tryOrSetError(s,i,c){if(!o.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,c)}catch(l){return o.v.useDeprecatedSynchronousErrorHandling?(s.syncErrorValue=l,s.syncErrorThrown=!0,!0):((0,d.z)(l),!0)}return!1}_unsubscribe(){const{_parentSubscriber:s}=this;this._context=null,this._parentSubscriber=null,s.unsubscribe()}}},2654:(ye,j,p)=>{"use strict";p.d(j,{w:()=>d});var n=p(6688),f=p(7830),v=p(7043);const o=(()=>{function h(r){return Error.call(this),this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map((s,i)=>`${i+1}) ${s.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=r,this}return h.prototype=Object.create(Error.prototype),h})();class d{constructor(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._ctorUnsubscribe=!0,this._unsubscribe=r)}unsubscribe(){let r;if(this.closed)return;let{_parentOrParents:s,_ctorUnsubscribe:i,_unsubscribe:c,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof d)s.remove(this);else if(null!==s)for(let g=0;gr.concat(s instanceof o?s.errors:s),[])}d.EMPTY=((h=new d).closed=!0,h)},2830:(ye,j,p)=>{"use strict";p.d(j,{v:()=>f});let n=!1;const f={Promise:void 0,set useDeprecatedSynchronousErrorHandling(v){if(v){const m=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+m.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=v},get useDeprecatedSynchronousErrorHandling(){return n}}},1177:(ye,j,p)=>{"use strict";p.d(j,{IY:()=>m,Ds:()=>d,ft:()=>h});var n=p(3489),f=p(6498),v=p(9249);class m extends n.L{constructor(s){super(),this.parent=s}_next(s){this.parent.notifyNext(s)}_error(s){this.parent.notifyError(s),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class d extends n.L{notifyNext(s){this.destination.next(s)}notifyError(s){this.destination.error(s)}notifyComplete(){this.destination.complete()}}function h(r,s){if(s.closed)return;if(r instanceof f.y)return r.subscribe(s);let i;try{i=(0,v.s)(r)(s)}catch(c){s.error(c)}return i}},1762:(ye,j,p)=>{"use strict";p.d(j,{c:()=>o,N:()=>d});var n=p(8929),f=p(6498),v=p(2654),m=p(4327);class o extends f.y{constructor(i,c){super(),this.source=i,this.subjectFactory=c,this._refCount=0,this._isComplete=!1}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let i=this._connection;return i||(this._isComplete=!1,i=this._connection=new v.w,i.add(this.source.subscribe(new u(this.getSubject(),this))),i.closed&&(this._connection=null,i=v.w.EMPTY)),i}refCount(){return(0,m.x)()(this)}}const d=(()=>{const s=o.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:s._subscribe},_isComplete:{value:s._isComplete,writable:!0},getSubject:{value:s.getSubject},connect:{value:s.connect},refCount:{value:s.refCount}}})();class u extends n.Yc{constructor(i,c){super(i),this.connectable=c}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const i=this.connectable;if(i){this.connectable=null;const c=i._connection;i._refCount=0,i._subject=null,i._connection=null,c&&c.unsubscribe()}}}},6053:(ye,j,p)=>{"use strict";p.d(j,{aj:()=>u,Ms:()=>h});var n=p(2866),f=p(6688),v=p(826),m=p(448),o=p(3009);const d={};function u(...s){let i,c;return(0,n.K)(s[s.length-1])&&(c=s.pop()),"function"==typeof s[s.length-1]&&(i=s.pop()),1===s.length&&(0,f.k)(s[0])&&(s=s[0]),(0,o.n)(s,c).lift(new h(i))}class h{constructor(i){this.resultSelector=i}call(i,c){return c.subscribe(new r(i,this.resultSelector))}}class r extends v.L{constructor(i,c){super(i),this.resultSelector=c,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(d),this.observables.push(i)}_complete(){const i=this.observables,c=i.length;if(0===c)this.destination.complete();else{this.active=c,this.toRespond=c;for(let l=0;l{"use strict";p.d(j,{z:()=>v});var n=p(1086),f=p(534);function v(...m){return(0,f.u)()((0,n.of)(...m))}},8514:(ye,j,p)=>{"use strict";p.d(j,{P:()=>m});var n=p(6498),f=p(5254),v=p(8896);function m(o){return new n.y(d=>{let u;try{u=o()}catch(r){return void d.error(r)}return(u?(0,f.D)(u):(0,v.c)()).subscribe(d)})}},8896:(ye,j,p)=>{"use strict";p.d(j,{E:()=>f,c:()=>v});var n=p(6498);const f=new n.y(o=>o.complete());function v(o){return o?function(o){return new n.y(d=>o.schedule(()=>d.complete()))}(o):f}},567:(ye,j,p)=>{"use strict";p.d(j,{D:()=>d});var n=p(6498),f=p(6688),v=p(4850),m=p(7830),o=p(5254);function d(...h){if(1===h.length){const r=h[0];if((0,f.k)(r))return u(r,null);if((0,m.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){const s=Object.keys(r);return u(s.map(i=>r[i]),s)}}if("function"==typeof h[h.length-1]){const r=h.pop();return u(h=1===h.length&&(0,f.k)(h[0])?h[0]:h,null).pipe((0,v.U)(s=>r(...s)))}return u(h,null)}function u(h,r){return new n.y(s=>{const i=h.length;if(0===i)return void s.complete();const c=new Array(i);let l=0,g=0;for(let y=0;y{T||(T=!0,g++),c[y]=D},error:D=>s.error(D),complete:()=>{l++,(l===i||!T)&&(g===i&&s.next(r?r.reduce((D,O,w)=>(D[O]=c[w],D),{}):c),s.complete())}}))}})}},5254:(ye,j,p)=>{"use strict";p.d(j,{D:()=>y});var n=p(6498),f=p(9249),v=p(2654),m=p(3821),u=p(6454),h=p(5430),i=p(8955),c=p(8515);function y(E,T){return T?function(E,T){if(null!=E){if(function(E){return E&&"function"==typeof E[m.L]}(E))return function(E,T){return new n.y(D=>{const O=new v.w;return O.add(T.schedule(()=>{const w=E[m.L]();O.add(w.subscribe({next(A){O.add(T.schedule(()=>D.next(A)))},error(A){O.add(T.schedule(()=>D.error(A)))},complete(){O.add(T.schedule(()=>D.complete()))}}))})),O})}(E,T);if((0,i.t)(E))return function(E,T){return new n.y(D=>{const O=new v.w;return O.add(T.schedule(()=>E.then(w=>{O.add(T.schedule(()=>{D.next(w),O.add(T.schedule(()=>D.complete()))}))},w=>{O.add(T.schedule(()=>D.error(w)))}))),O})}(E,T);if((0,c.z)(E))return(0,u.r)(E,T);if(function(E){return E&&"function"==typeof E[h.hZ]}(E)||"string"==typeof E)return function(E,T){if(!E)throw new Error("Iterable cannot be null");return new n.y(D=>{const O=new v.w;let w;return O.add(()=>{w&&"function"==typeof w.return&&w.return()}),O.add(T.schedule(()=>{w=E[h.hZ](),O.add(T.schedule(function(){if(D.closed)return;let A,S;try{const M=w.next();A=M.value,S=M.done}catch(M){return void D.error(M)}S?D.complete():(D.next(A),this.schedule())}))})),O})}(E,T)}throw new TypeError((null!==E&&typeof E||E)+" is not observable")}(E,T):E instanceof n.y?E:new n.y((0,f.s)(E))}},3009:(ye,j,p)=>{"use strict";p.d(j,{n:()=>m});var n=p(6498),f=p(3650),v=p(6454);function m(o,d){return d?(0,v.r)(o,d):new n.y((0,f.V)(o))}},3753:(ye,j,p)=>{"use strict";p.d(j,{R:()=>d});var n=p(6498),f=p(6688),v=p(7043),m=p(4850);function d(i,c,l,g){return(0,v.m)(l)&&(g=l,l=void 0),g?d(i,c,l).pipe((0,m.U)(y=>(0,f.k)(y)?g(...y):g(y))):new n.y(y=>{u(i,c,function(T){y.next(arguments.length>1?Array.prototype.slice.call(arguments):T)},y,l)})}function u(i,c,l,g,y){let E;if(function(i){return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener}(i)){const T=i;i.addEventListener(c,l,y),E=()=>T.removeEventListener(c,l,y)}else if(function(i){return i&&"function"==typeof i.on&&"function"==typeof i.off}(i)){const T=i;i.on(c,l),E=()=>T.off(c,l)}else if(function(i){return i&&"function"==typeof i.addListener&&"function"==typeof i.removeListener}(i)){const T=i;i.addListener(c,l),E=()=>T.removeListener(c,l)}else{if(!i||!i.length)throw new TypeError("Invalid event target");for(let T=0,D=i.length;T{"use strict";p.d(j,{T:()=>o});var n=p(6498),f=p(2866),v=p(9146),m=p(3009);function o(...d){let u=Number.POSITIVE_INFINITY,h=null,r=d[d.length-1];return(0,f.K)(r)?(h=d.pop(),d.length>1&&"number"==typeof d[d.length-1]&&(u=d.pop())):"number"==typeof r&&(u=d.pop()),null===h&&1===d.length&&d[0]instanceof n.y?d[0]:(0,v.J)(u)((0,m.n)(d,h))}},1086:(ye,j,p)=>{"use strict";p.d(j,{of:()=>m});var n=p(2866),f=p(3009),v=p(6454);function m(...o){let d=o[o.length-1];return(0,n.K)(d)?(o.pop(),(0,v.r)(o,d)):(0,f.n)(o)}},1946:(ye,j,p)=>{"use strict";p.d(j,{S3:()=>o});var n=p(6688),f=p(3009),v=p(826),m=p(448);function o(...h){if(1===h.length){if(!(0,n.k)(h[0]))return h[0];h=h[0]}return(0,f.n)(h,void 0).lift(new d)}class d{call(r,s){return s.subscribe(new u(r))}}class u extends v.L{constructor(r){super(r),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(r){this.observables.push(r)}_complete(){const r=this.observables,s=r.length;if(0===s)this.destination.complete();else{for(let i=0;i{"use strict";p.d(j,{_:()=>f});var n=p(6498);function f(m,o){return new n.y(o?d=>o.schedule(v,0,{error:m,subscriber:d}):d=>d.error(m))}function v({error:m,subscriber:o}){o.error(m)}},8723:(ye,j,p)=>{"use strict";p.d(j,{H:()=>o});var n=p(6498),f=p(353),v=p(4241),m=p(2866);function o(u=0,h,r){let s=-1;return(0,v.k)(h)?s=Number(h)<1?1:Number(h):(0,m.K)(h)&&(r=h),(0,m.K)(r)||(r=f.P),new n.y(i=>{const c=(0,v.k)(u)?u:+u-r.now();return r.schedule(d,c,{index:0,period:s,subscriber:i})})}function d(u){const{index:h,period:r,subscriber:s}=u;if(s.next(h),!s.closed){if(-1===r)return s.complete();u.index=h+1,this.schedule(u,r)}}},1746:(ye,j,p)=>{"use strict";p.d(j,{$R:()=>d,mx:()=>u});var n=p(3009),f=p(6688),v=p(3489),m=p(5430),o=p(1177);function d(...c){const l=c[c.length-1];return"function"==typeof l&&c.pop(),(0,n.n)(c,void 0).lift(new u(l))}class u{constructor(l){this.resultSelector=l}call(l,g){return g.subscribe(new h(l,this.resultSelector))}}class h extends v.L{constructor(l,g,y=Object.create(null)){super(l),this.resultSelector=g,this.iterators=[],this.active=0,this.resultSelector="function"==typeof g?g:void 0}_next(l){const g=this.iterators;(0,f.k)(l)?g.push(new s(l)):g.push("function"==typeof l[m.hZ]?new r(l[m.hZ]()):new i(this.destination,this,l))}_complete(){const l=this.iterators,g=l.length;if(this.unsubscribe(),0!==g){this.active=g;for(let y=0;ythis.index}hasCompleted(){return this.array.length===this.index}}class i extends o.Ds{constructor(l,g,y){super(l),this.parent=g,this.observable=y,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[m.hZ](){return this}next(){const l=this.buffer;return 0===l.length&&this.isComplete?{value:null,done:!0}:{value:l.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(l){this.buffer.push(l),this.parent.checkIterators()}subscribe(){return(0,o.ft)(this.observable,new o.IY(this))}}},384:(ye,j,p)=>{"use strict";p.d(j,{U:()=>f});var n=p(1177);function f(o){return function(u){return u.lift(new v(o))}}class v{constructor(d){this.durationSelector=d}call(d,u){return u.subscribe(new m(d,this.durationSelector))}}class m extends n.Ds{constructor(d,u){super(d),this.durationSelector=u,this.hasValue=!1}_next(d){if(this.value=d,this.hasValue=!0,!this.throttled){let u;try{const{durationSelector:r}=this;u=r(d)}catch(r){return this.destination.error(r)}const h=(0,n.ft)(u,new n.IY(this));!h||h.closed?this.clearThrottle():this.add(this.throttled=h)}}clearThrottle(){const{value:d,hasValue:u,throttled:h}=this;h&&(this.remove(h),this.throttled=void 0,h.unsubscribe()),u&&(this.value=void 0,this.hasValue=!1,this.destination.next(d))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}},7568:(ye,j,p)=>{"use strict";p.d(j,{e:()=>m});var n=p(353),f=p(384),v=p(8723);function m(o,d=n.P){return(0,f.U)(()=>(0,v.H)(o,d))}},7221:(ye,j,p)=>{"use strict";p.d(j,{K:()=>f});var n=p(1177);function f(o){return function(u){const h=new v(o),r=u.lift(h);return h.caught=r}}class v{constructor(d){this.selector=d}call(d,u){return u.subscribe(new m(d,this.selector,this.caught))}}class m extends n.Ds{constructor(d,u,h){super(d),this.selector=u,this.caught=h}error(d){if(!this.isStopped){let u;try{u=this.selector(d,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const h=new n.IY(this);this.add(h);const r=(0,n.ft)(u,h);r!==h&&this.add(r)}}}},534:(ye,j,p)=>{"use strict";p.d(j,{u:()=>f});var n=p(9146);function f(){return(0,n.J)(1)}},1406:(ye,j,p)=>{"use strict";p.d(j,{b:()=>f});var n=p(1709);function f(v,m){return(0,n.zg)(v,m,1)}},13:(ye,j,p)=>{"use strict";p.d(j,{b:()=>v});var n=p(3489),f=p(353);function v(u,h=f.P){return r=>r.lift(new m(u,h))}class m{constructor(h,r){this.dueTime=h,this.scheduler=r}call(h,r){return r.subscribe(new o(h,this.dueTime,this.scheduler))}}class o extends n.L{constructor(h,r,s){super(h),this.dueTime=r,this.scheduler=s,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(h){this.clearDebounce(),this.lastValue=h,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(d,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:h}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(h)}}clearDebounce(){const h=this.debouncedSubscription;null!==h&&(this.remove(h),h.unsubscribe(),this.debouncedSubscription=null)}}function d(u){u.debouncedNext()}},7314:(ye,j,p)=>{"use strict";p.d(j,{d:()=>f});var n=p(3489);function f(o=null){return d=>d.lift(new v(o))}class v{constructor(d){this.defaultValue=d}call(d,u){return u.subscribe(new m(d,this.defaultValue))}}class m extends n.L{constructor(d,u){super(d),this.defaultValue=u,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(ye,j,p)=>{"use strict";p.d(j,{g:()=>o});var n=p(353),f=p(2697),v=p(3489),m=p(9312);function o(r,s=n.P){const c=(0,f.J)(r)?+r-s.now():Math.abs(r);return l=>l.lift(new d(c,s))}class d{constructor(s,i){this.delay=s,this.scheduler=i}call(s,i){return i.subscribe(new u(s,this.delay,this.scheduler))}}class u extends v.L{constructor(s,i,c){super(s),this.delay=i,this.scheduler=c,this.queue=[],this.active=!1,this.errored=!1}static dispatch(s){const i=s.source,c=i.queue,l=s.scheduler,g=s.destination;for(;c.length>0&&c[0].time-l.now()<=0;)c.shift().notification.observe(g);if(c.length>0){const y=Math.max(0,c[0].time-l.now());this.schedule(s,y)}else this.unsubscribe(),i.active=!1}_schedule(s){this.active=!0,this.destination.add(s.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:s}))}scheduleNotification(s){if(!0===this.errored)return;const i=this.scheduler,c=new h(i.now()+this.delay,s);this.queue.push(c),!1===this.active&&this._schedule(i)}_next(s){this.scheduleNotification(m.P.createNext(s))}_error(s){this.errored=!0,this.queue=[],this.destination.error(s),this.unsubscribe()}_complete(){this.scheduleNotification(m.P.createComplete()),this.unsubscribe()}}class h{constructor(s,i){this.time=s,this.notification=i}}},5778:(ye,j,p)=>{"use strict";p.d(j,{x:()=>f});var n=p(3489);function f(o,d){return u=>u.lift(new v(o,d))}class v{constructor(d,u){this.compare=d,this.keySelector=u}call(d,u){return u.subscribe(new m(d,this.compare,this.keySelector))}}class m extends n.L{constructor(d,u,h){super(d),this.keySelector=h,this.hasKey=!1,"function"==typeof u&&(this.compare=u)}compare(d,u){return d===u}_next(d){let u;try{const{keySelector:r}=this;u=r?r(d):d}catch(r){return this.destination.error(r)}let h=!1;if(this.hasKey)try{const{compare:r}=this;h=r(this.key,u)}catch(r){return this.destination.error(r)}else this.hasKey=!0;h||(this.key=u,this.destination.next(d))}}},2198:(ye,j,p)=>{"use strict";p.d(j,{h:()=>f});var n=p(3489);function f(o,d){return function(h){return h.lift(new v(o,d))}}class v{constructor(d,u){this.predicate=d,this.thisArg=u}call(d,u){return u.subscribe(new m(d,this.predicate,this.thisArg))}}class m extends n.L{constructor(d,u,h){super(d),this.predicate=u,this.thisArg=h,this.count=0}_next(d){let u;try{u=this.predicate.call(this.thisArg,d,this.count++)}catch(h){return void this.destination.error(h)}u&&this.destination.next(d)}}},537:(ye,j,p)=>{"use strict";p.d(j,{x:()=>v});var n=p(3489),f=p(2654);function v(d){return u=>u.lift(new m(d))}class m{constructor(u){this.callback=u}call(u,h){return h.subscribe(new o(u,this.callback))}}class o extends n.L{constructor(u,h){super(u),this.add(new f.w(h))}}},7224:(ye,j,p)=>{"use strict";p.d(j,{P:()=>u});var n=p(4450),f=p(2198),v=p(2986),m=p(7314),o=p(4907),d=p(5379);function u(h,r){const s=arguments.length>=2;return i=>i.pipe(h?(0,f.h)((c,l)=>h(c,l,i)):d.y,(0,v.q)(1),s?(0,m.d)(r):(0,o.T)(()=>new n.K))}},8127:(ye,j,p)=>{"use strict";p.d(j,{Z:()=>u});var n=p(4450),f=p(2198),v=p(2821),m=p(4907),o=p(7314),d=p(5379);function u(h,r){const s=arguments.length>=2;return i=>i.pipe(h?(0,f.h)((c,l)=>h(c,l,i)):d.y,(0,v.h)(1),s?(0,o.d)(r):(0,m.T)(()=>new n.K))}},4850:(ye,j,p)=>{"use strict";p.d(j,{U:()=>f});var n=p(3489);function f(o,d){return function(h){if("function"!=typeof o)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return h.lift(new v(o,d))}}class v{constructor(d,u){this.project=d,this.thisArg=u}call(d,u){return u.subscribe(new m(d,this.project,this.thisArg))}}class m extends n.L{constructor(d,u,h){super(d),this.project=u,this.count=0,this.thisArg=h||this}_next(d){let u;try{u=this.project.call(this.thisArg,d,this.count++)}catch(h){return void this.destination.error(h)}this.destination.next(u)}}},9146:(ye,j,p)=>{"use strict";p.d(j,{J:()=>v});var n=p(1709),f=p(5379);function v(m=Number.POSITIVE_INFINITY){return(0,n.zg)(f.y,m)}},1709:(ye,j,p)=>{"use strict";p.d(j,{zg:()=>m,VS:()=>u});var n=p(4850),f=p(5254),v=p(1177);function m(h,r,s=Number.POSITIVE_INFINITY){return"function"==typeof r?i=>i.pipe(m((c,l)=>(0,f.D)(h(c,l)).pipe((0,n.U)((g,y)=>r(c,g,l,y))),s)):("number"==typeof r&&(s=r),i=>i.lift(new o(h,s)))}class o{constructor(r,s=Number.POSITIVE_INFINITY){this.project=r,this.concurrent=s}call(r,s){return s.subscribe(new d(r,this.project,this.concurrent))}}class d extends v.Ds{constructor(r,s,i=Number.POSITIVE_INFINITY){super(r),this.project=s,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(r){this.active0?this._next(r.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const u=m},2536:(ye,j,p)=>{"use strict";p.d(j,{O:()=>f});var n=p(1762);function f(m,o){return function(u){let h;if(h="function"==typeof m?m:function(){return m},"function"==typeof o)return u.lift(new v(h,o));const r=Object.create(u,n.N);return r.source=u,r.subjectFactory=h,r}}class v{constructor(o,d){this.subjectFactory=o,this.selector=d}call(o,d){const{selector:u}=this,h=this.subjectFactory(),r=u(h).subscribe(o);return r.add(d.subscribe(h)),r}}},8077:(ye,j,p)=>{"use strict";p.d(j,{u:()=>o});var n=p(2014),f=p(2821),v=p(7314),m=p(4843);function o(d,u){return arguments.length>=2?function(r){return(0,m.z)((0,n.R)(d,u),(0,f.h)(1),(0,v.d)(u))(r)}:function(r){return(0,m.z)((0,n.R)((s,i,c)=>d(s,i,c+1)),(0,f.h)(1))(r)}}},4327:(ye,j,p)=>{"use strict";p.d(j,{x:()=>f});var n=p(3489);function f(){return function(d){return d.lift(new v(d))}}class v{constructor(d){this.connectable=d}call(d,u){const{connectable:h}=this;h._refCount++;const r=new m(d,h),s=u.subscribe(r);return r.closed||(r.connection=h.connect()),s}}class m extends n.L{constructor(d,u){super(d),this.connectable=u}_unsubscribe(){const{connectable:d}=this;if(!d)return void(this.connection=null);this.connectable=null;const u=d._refCount;if(u<=0)return void(this.connection=null);if(d._refCount=u-1,u>1)return void(this.connection=null);const{connection:h}=this,r=d._connection;this.connection=null,r&&(!h||r===h)&&r.unsubscribe()}}},2014:(ye,j,p)=>{"use strict";p.d(j,{R:()=>f});var n=p(3489);function f(o,d){let u=!1;return arguments.length>=2&&(u=!0),function(r){return r.lift(new v(o,d,u))}}class v{constructor(d,u,h=!1){this.accumulator=d,this.seed=u,this.hasSeed=h}call(d,u){return u.subscribe(new m(d,this.accumulator,this.seed,this.hasSeed))}}class m extends n.L{constructor(d,u,h,r){super(d),this.accumulator=u,this._seed=h,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(d){this.hasSeed=!0,this._seed=d}_next(d){if(this.hasSeed)return this._tryNext(d);this.seed=d,this.destination.next(d)}_tryNext(d){const u=this.index++;let h;try{h=this.accumulator(this.seed,d,u)}catch(r){this.destination.error(r)}this.seed=h,this.destination.next(h)}}},8117:(ye,j,p)=>{"use strict";p.d(j,{B:()=>o});var n=p(2536),f=p(4327),v=p(8929);function m(){return new v.xQ}function o(){return d=>(0,f.x)()((0,n.O)(m)(d))}},1307:(ye,j,p)=>{"use strict";p.d(j,{T:()=>f});var n=p(3489);function f(o){return d=>d.lift(new v(o))}class v{constructor(d){this.total=d}call(d,u){return u.subscribe(new m(d,this.total))}}class m extends n.L{constructor(d,u){super(d),this.total=u,this.count=0}_next(d){++this.count>this.total&&this.destination.next(d)}}},1059:(ye,j,p)=>{"use strict";p.d(j,{O:()=>v});var n=p(1961),f=p(2866);function v(...m){const o=m[m.length-1];return(0,f.K)(o)?(m.pop(),d=>(0,n.z)(m,d,o)):d=>(0,n.z)(m,d)}},7545:(ye,j,p)=>{"use strict";p.d(j,{w:()=>m});var n=p(4850),f=p(5254),v=p(1177);function m(u,h){return"function"==typeof h?r=>r.pipe(m((s,i)=>(0,f.D)(u(s,i)).pipe((0,n.U)((c,l)=>h(s,c,i,l))))):r=>r.lift(new o(u))}class o{constructor(h){this.project=h}call(h,r){return r.subscribe(new d(h,this.project))}}class d extends v.Ds{constructor(h,r){super(h),this.project=r,this.index=0}_next(h){let r;const s=this.index++;try{r=this.project(h,s)}catch(i){return void this.destination.error(i)}this._innerSub(r)}_innerSub(h){const r=this.innerSubscription;r&&r.unsubscribe();const s=new v.IY(this),i=this.destination;i.add(s),this.innerSubscription=(0,v.ft)(h,s),this.innerSubscription!==s&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:h}=this;(!h||h.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(h){this.destination.next(h)}}},2986:(ye,j,p)=>{"use strict";p.d(j,{q:()=>m});var n=p(3489),f=p(4231),v=p(8896);function m(u){return h=>0===u?(0,v.c)():h.lift(new o(u))}class o{constructor(h){if(this.total=h,this.total<0)throw new f.W}call(h,r){return r.subscribe(new d(h,this.total))}}class d extends n.L{constructor(h,r){super(h),this.total=r,this.count=0}_next(h){const r=this.total,s=++this.count;s<=r&&(this.destination.next(h),s===r&&(this.destination.complete(),this.unsubscribe()))}}},2821:(ye,j,p)=>{"use strict";p.d(j,{h:()=>m});var n=p(3489),f=p(4231),v=p(8896);function m(u){return function(r){return 0===u?(0,v.c)():r.lift(new o(u))}}class o{constructor(h){if(this.total=h,this.total<0)throw new f.W}call(h,r){return r.subscribe(new d(h,this.total))}}class d extends n.L{constructor(h,r){super(h),this.total=r,this.ring=new Array,this.count=0}_next(h){const r=this.ring,s=this.total,i=this.count++;r.length0){const s=this.count>=this.total?this.total:this.count,i=this.ring;for(let c=0;c{"use strict";p.d(j,{R:()=>f});var n=p(1177);function f(o){return d=>d.lift(new v(o))}class v{constructor(d){this.notifier=d}call(d,u){const h=new m(d),r=(0,n.ft)(this.notifier,new n.IY(h));return r&&!h.seenValue?(h.add(r),u.subscribe(h)):h}}class m extends n.Ds{constructor(d){super(d),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},4290:(ye,j,p)=>{"use strict";p.d(j,{o:()=>f});var n=p(3489);function f(o,d=!1){return u=>u.lift(new v(o,d))}class v{constructor(d,u){this.predicate=d,this.inclusive=u}call(d,u){return u.subscribe(new m(d,this.predicate,this.inclusive))}}class m extends n.L{constructor(d,u,h){super(d),this.predicate=u,this.inclusive=h,this.index=0}_next(d){const u=this.destination;let h;try{h=this.predicate(d,this.index++)}catch(r){return void u.error(r)}this.nextOrComplete(d,h)}nextOrComplete(d,u){const h=this.destination;Boolean(u)?h.next(d):(this.inclusive&&h.next(d),h.complete())}}},2868:(ye,j,p)=>{"use strict";p.d(j,{b:()=>m});var n=p(3489);function f(){}var v=p(7043);function m(u,h,r){return function(i){return i.lift(new o(u,h,r))}}class o{constructor(h,r,s){this.nextOrObserver=h,this.error=r,this.complete=s}call(h,r){return r.subscribe(new d(h,this.nextOrObserver,this.error,this.complete))}}class d extends n.L{constructor(h,r,s,i){super(h),this._tapNext=f,this._tapError=f,this._tapComplete=f,this._tapError=s||f,this._tapComplete=i||f,(0,v.m)(r)?(this._context=this,this._tapNext=r):r&&(this._context=r,this._tapNext=r.next||f,this._tapError=r.error||f,this._tapComplete=r.complete||f)}_next(h){try{this._tapNext.call(this._context,h)}catch(r){return void this.destination.error(r)}this.destination.next(h)}_error(h){try{this._tapError.call(this._context,h)}catch(r){return void this.destination.error(r)}this.destination.error(h)}_complete(){try{this._tapComplete.call(this._context)}catch(h){return void this.destination.error(h)}return this.destination.complete()}}},4907:(ye,j,p)=>{"use strict";p.d(j,{T:()=>v});var n=p(4450),f=p(3489);function v(u=d){return h=>h.lift(new m(u))}class m{constructor(h){this.errorFactory=h}call(h,r){return r.subscribe(new o(h,this.errorFactory))}}class o extends f.L{constructor(h,r){super(h),this.errorFactory=r,this.hasValue=!1}_next(h){this.hasValue=!0,this.destination.next(h)}_complete(){if(this.hasValue)return this.destination.complete();{let h;try{h=this.errorFactory()}catch(r){h=r}this.destination.error(h)}}}function d(){return new n.K}},7e3:(ye,j,p)=>{"use strict";p.d(j,{V:()=>d});var n=p(353);const v=(()=>{function u(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return u.prototype=Object.create(Error.prototype),u})();var m=p(2431),o=p(1737);function d(u,h=n.P){return(0,m.L)(u,(0,o._)(new v),h)}},2431:(ye,j,p)=>{"use strict";p.d(j,{L:()=>m});var n=p(353),f=p(2697),v=p(1177);function m(u,h,r=n.P){return s=>{let i=(0,f.J)(u),c=i?+u-r.now():Math.abs(u);return s.lift(new o(c,i,h,r))}}class o{constructor(h,r,s,i){this.waitFor=h,this.absoluteTimeout=r,this.withObservable=s,this.scheduler=i}call(h,r){return r.subscribe(new d(h,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class d extends v.Ds{constructor(h,r,s,i,c){super(h),this.absoluteTimeout=r,this.waitFor=s,this.withObservable=i,this.scheduler=c,this.scheduleTimeout()}static dispatchTimeout(h){const{withObservable:r}=h;h._unsubscribeAndRecycle(),h.add((0,v.ft)(r,new v.IY(h)))}scheduleTimeout(){const{action:h}=this;h?this.action=h.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(d.dispatchTimeout,this.waitFor,this))}_next(h){this.absoluteTimeout||this.scheduleTimeout(),super._next(h)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}},864:(ye,j,p)=>{"use strict";p.d(j,{q:()=>v});var n=p(8077);function f(m,o,d){return 0===d?[o]:(m.push(o),m)}function v(){return(0,n.u)(f,[])}},6454:(ye,j,p)=>{"use strict";p.d(j,{r:()=>v});var n=p(6498),f=p(2654);function v(m,o){return new n.y(d=>{const u=new f.w;let h=0;return u.add(o.schedule(function(){h!==m.length?(d.next(m[h++]),d.closed||u.add(this.schedule())):d.complete()})),u})}},6686:(ye,j,p)=>{"use strict";p.d(j,{o:()=>v});var n=p(2654);class f extends n.w{constructor(o,d){super()}schedule(o,d=0){return this}}class v extends f{constructor(o,d){super(o,d),this.scheduler=o,this.work=d,this.pending=!1}schedule(o,d=0){if(this.closed)return this;this.state=o;const u=this.id,h=this.scheduler;return null!=u&&(this.id=this.recycleAsyncId(h,u,d)),this.pending=!0,this.delay=d,this.id=this.id||this.requestAsyncId(h,this.id,d),this}requestAsyncId(o,d,u=0){return setInterval(o.flush.bind(o,this),u)}recycleAsyncId(o,d,u=0){if(null!==u&&this.delay===u&&!1===this.pending)return d;clearInterval(d)}execute(o,d){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const u=this._execute(o,d);if(u)return u;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(o,d){let h,u=!1;try{this.work(o)}catch(r){u=!0,h=!!r&&r||new Error(r)}if(u)return this.unsubscribe(),h}_unsubscribe(){const o=this.id,d=this.scheduler,u=d.actions,h=u.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==h&&u.splice(h,1),null!=o&&(this.id=this.recycleAsyncId(d,o,null)),this.delay=null}}},2268:(ye,j,p)=>{"use strict";p.d(j,{v:()=>f});let n=(()=>{class v{constructor(o,d=v.now){this.SchedulerAction=o,this.now=d}schedule(o,d=0,u){return new this.SchedulerAction(this,o).schedule(u,d)}}return v.now=()=>Date.now(),v})();class f extends n{constructor(m,o=n.now){super(m,()=>f.delegate&&f.delegate!==this?f.delegate.now():o()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(m,o=0,d){return f.delegate&&f.delegate!==this?f.delegate.schedule(m,o,d):super.schedule(m,o,d)}flush(m){const{actions:o}=this;if(this.active)return void o.push(m);let d;this.active=!0;do{if(d=m.execute(m.state,m.delay))break}while(m=o.shift());if(this.active=!1,d){for(;m=o.shift();)m.unsubscribe();throw d}}}},352:(ye,j,p)=>{"use strict";p.d(j,{Z:()=>o});var n=p(6686),v=p(2268);const o=new class extends v.v{flush(h){this.active=!0,this.scheduled=void 0;const{actions:r}=this;let s,i=-1,c=r.length;h=h||r.shift();do{if(s=h.execute(h.state,h.delay))break}while(++i0?super.requestAsyncId(h,r,s):(h.actions.push(this),h.scheduled||(h.scheduled=requestAnimationFrame(()=>h.flush(null))))}recycleAsyncId(h,r,s=0){if(null!==s&&s>0||null===s&&this.delay>0)return super.recycleAsyncId(h,r,s);0===h.actions.length&&(cancelAnimationFrame(r),h.scheduled=void 0)}})},8139:(ye,j,p)=>{"use strict";p.d(j,{e:()=>c,E:()=>i});let n=1;const f=Promise.resolve(),v={};function m(l){return l in v&&(delete v[l],!0)}const o={setImmediate(l){const g=n++;return v[g]=!0,f.then(()=>m(g)&&l()),g},clearImmediate(l){m(l)}};var u=p(6686),r=p(2268);const i=new class extends r.v{flush(g){this.active=!0,this.scheduled=void 0;const{actions:y}=this;let E,T=-1,D=y.length;g=g||y.shift();do{if(E=g.execute(g.state,g.delay))break}while(++T0?super.requestAsyncId(g,y,E):(g.actions.push(this),g.scheduled||(g.scheduled=o.setImmediate(g.flush.bind(g,null))))}recycleAsyncId(g,y,E=0){if(null!==E&&E>0||null===E&&this.delay>0)return super.recycleAsyncId(g,y,E);0===g.actions.length&&(o.clearImmediate(y),g.scheduled=void 0)}}),c=i},353:(ye,j,p)=>{"use strict";p.d(j,{P:()=>m});var n=p(6686);const m=new(p(2268).v)(n.o)},5430:(ye,j,p)=>{"use strict";p.d(j,{hZ:()=>f});const f="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},3821:(ye,j,p)=>{"use strict";p.d(j,{L:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(ye,j,p)=>{"use strict";p.d(j,{b:()=>n});const n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(ye,j,p)=>{"use strict";p.d(j,{W:()=>f});const f=(()=>{function v(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return v.prototype=Object.create(Error.prototype),v})()},4450:(ye,j,p)=>{"use strict";p.d(j,{K:()=>f});const f=(()=>{function v(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return v.prototype=Object.create(Error.prototype),v})()},5279:(ye,j,p)=>{"use strict";p.d(j,{N:()=>f});const f=(()=>{function v(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return v.prototype=Object.create(Error.prototype),v})()},2782:(ye,j,p)=>{"use strict";function n(f){setTimeout(()=>{throw f},0)}p.d(j,{z:()=>n})},5379:(ye,j,p)=>{"use strict";function n(f){return f}p.d(j,{y:()=>n})},6688:(ye,j,p)=>{"use strict";p.d(j,{k:()=>n});const n=Array.isArray||(f=>f&&"number"==typeof f.length)},8515:(ye,j,p)=>{"use strict";p.d(j,{z:()=>n});const n=f=>f&&"number"==typeof f.length&&"function"!=typeof f},2697:(ye,j,p)=>{"use strict";function n(f){return f instanceof Date&&!isNaN(+f)}p.d(j,{J:()=>n})},7043:(ye,j,p)=>{"use strict";function n(f){return"function"==typeof f}p.d(j,{m:()=>n})},4241:(ye,j,p)=>{"use strict";p.d(j,{k:()=>f});var n=p(6688);function f(v){return!(0,n.k)(v)&&v-parseFloat(v)+1>=0}},7830:(ye,j,p)=>{"use strict";function n(f){return null!==f&&"object"==typeof f}p.d(j,{K:()=>n})},8955:(ye,j,p)=>{"use strict";function n(f){return!!f&&"function"!=typeof f.subscribe&&"function"==typeof f.then}p.d(j,{t:()=>n})},2866:(ye,j,p)=>{"use strict";function n(f){return f&&"function"==typeof f.schedule}p.d(j,{K:()=>n})},4843:(ye,j,p)=>{"use strict";p.d(j,{z:()=>f,U:()=>v});var n=p(5379);function f(...m){return v(m)}function v(m){return 0===m.length?n.y:1===m.length?m[0]:function(d){return m.reduce((u,h)=>h(u),d)}}},9249:(ye,j,p)=>{"use strict";p.d(j,{s:()=>i});var n=p(3650),f=p(2782),m=p(5430),d=p(3821),h=p(8515),r=p(8955),s=p(7830);const i=c=>{if(c&&"function"==typeof c[d.L])return(c=>l=>{const g=c[d.L]();if("function"!=typeof g.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return g.subscribe(l)})(c);if((0,h.z)(c))return(0,n.V)(c);if((0,r.t)(c))return(c=>l=>(c.then(g=>{l.closed||(l.next(g),l.complete())},g=>l.error(g)).then(null,f.z),l))(c);if(c&&"function"==typeof c[m.hZ])return(c=>l=>{const g=c[m.hZ]();for(;;){let y;try{y=g.next()}catch(E){return l.error(E),l}if(y.done){l.complete();break}if(l.next(y.value),l.closed)break}return"function"==typeof g.return&&l.add(()=>{g.return&&g.return()}),l})(c);{const g=`You provided ${(0,s.K)(c)?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(g)}}},3650:(ye,j,p)=>{"use strict";p.d(j,{V:()=>n});const n=f=>v=>{for(let m=0,o=f.length;m{"use strict";p.d(j,{D:()=>o});var n=p(3489);class f extends n.L{constructor(u,h,r){super(),this.parent=u,this.outerValue=h,this.outerIndex=r,this.index=0}_next(u){this.parent.notifyNext(this.outerValue,u,this.outerIndex,this.index++,this)}_error(u){this.parent.notifyError(u,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var v=p(9249),m=p(6498);function o(d,u,h,r,s=new f(d,h,r)){if(!s.closed)return u instanceof m.y?u.subscribe(s):(0,v.s)(u)(s)}},3460:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{audit:()=>n.U,auditTime:()=>f.e,buffer:()=>m,bufferCount:()=>h,bufferTime:()=>g,bufferToggle:()=>I,bufferWhen:()=>F,catchError:()=>Q.K,combineAll:()=>$,combineLatest:()=>le,concat:()=>Le,concatAll:()=>Ye.u,concatMap:()=>Je.b,concatMapTo:()=>gt,count:()=>Ue,debounce:()=>ft,debounceTime:()=>ot.b,defaultIfEmpty:()=>_t.d,delay:()=>At.g,delayWhen:()=>Bt,dematerialize:()=>x,distinct:()=>_e,distinctUntilChanged:()=>st.x,distinctUntilKeyChanged:()=>ut,elementAt:()=>Kt,endWith:()=>xt,every:()=>Lt,exhaust:()=>Vt,exhaustMap:()=>ee,expand:()=>ze,filter:()=>Xt.h,finalize:()=>cn.x,find:()=>An,findIndex:()=>He,first:()=>pt.P,flatMap:()=>zn.VS,groupBy:()=>un,ignoreElements:()=>Ni,isEmpty:()=>Vi,last:()=>Ze.Z,map:()=>Se.U,mapTo:()=>ue,materialize:()=>Pe,max:()=>Ht,merge:()=>an,mergeAll:()=>Tn.J,mergeMap:()=>zn.zg,mergeMapTo:()=>$n,mergeScan:()=>ti,min:()=>kn,multicast:()=>Mi.O,observeOn:()=>Zi,onErrorResumeNext:()=>Ui,pairwise:()=>qi,partition:()=>mi,pluck:()=>Gn,publish:()=>gn,publishBehavior:()=>Sn,publishLast:()=>Ri,publishReplay:()=>ir,race:()=>Sr,reduce:()=>Ft.u,refCount:()=>Tr.x,repeat:()=>Hr,repeatWhen:()=>Wr,retry:()=>Lr,retryWhen:()=>ls,sample:()=>us,sampleTime:()=>Er,scan:()=>V.R,sequenceEqual:()=>ve,share:()=>In.B,shareReplay:()=>ni,single:()=>hi,skip:()=>xn.T,skipLast:()=>Kr,skipUntil:()=>cs,skipWhile:()=>Bs,startWith:()=>G.O,subscribeOn:()=>rt,switchAll:()=>rn,switchMap:()=>Rt.w,switchMapTo:()=>pn,take:()=>Dt.q,takeLast:()=>Pn.h,takeUntil:()=>Ln.R,takeWhile:()=>_n.o,tap:()=>Bn.b,throttle:()=>_i,throttleTime:()=>Qi,throwIfEmpty:()=>tn.T,timeInterval:()=>zi,timeout:()=>ys.V,timeoutWith:()=>Yi.L,timestamp:()=>Ur,toArray:()=>Cs.q,window:()=>mn,windowCount:()=>li,windowTime:()=>Zn,windowToggle:()=>Ir,windowWhen:()=>Br,withLatestFrom:()=>ns,zip:()=>Ms,zipAll:()=>Ss});var n=p(384),f=p(7568),v=p(1177);function m(Ke){return function(ce){return ce.lift(new o(Ke))}}class o{constructor(z){this.closingNotifier=z}call(z,ce){return ce.subscribe(new d(z,this.closingNotifier))}}class d extends v.Ds{constructor(z,ce){super(z),this.buffer=[],this.add((0,v.ft)(ce,new v.IY(this)))}_next(z){this.buffer.push(z)}notifyNext(){const z=this.buffer;this.buffer=[],this.destination.next(z)}}var u=p(3489);function h(Ke,z=null){return function(je){return je.lift(new r(Ke,z))}}class r{constructor(z,ce){this.bufferSize=z,this.startBufferEvery=ce,this.subscriberClass=ce&&z!==ce?i:s}call(z,ce){return ce.subscribe(new this.subscriberClass(z,this.bufferSize,this.startBufferEvery))}}class s extends u.L{constructor(z,ce){super(z),this.bufferSize=ce,this.buffer=[]}_next(z){const ce=this.buffer;ce.push(z),ce.length==this.bufferSize&&(this.destination.next(ce),this.buffer=[])}_complete(){const z=this.buffer;z.length>0&&this.destination.next(z),super._complete()}}class i extends u.L{constructor(z,ce,je){super(z),this.bufferSize=ce,this.startBufferEvery=je,this.buffers=[],this.count=0}_next(z){const{bufferSize:ce,startBufferEvery:je,buffers:Mt,count:jt}=this;this.count++,jt%je==0&&Mt.push([]);for(let ln=Mt.length;ln--;){const Hn=Mt[ln];Hn.push(z),Hn.length===ce&&(Mt.splice(ln,1),this.destination.next(Hn))}}_complete(){const{buffers:z,destination:ce}=this;for(;z.length>0;){let je=z.shift();je.length>0&&ce.next(je)}super._complete()}}var c=p(353),l=p(2866);function g(Ke){let z=arguments.length,ce=c.P;(0,l.K)(arguments[arguments.length-1])&&(ce=arguments[arguments.length-1],z--);let je=null;z>=2&&(je=arguments[1]);let Mt=Number.POSITIVE_INFINITY;return z>=3&&(Mt=arguments[2]),function(ln){return ln.lift(new y(Ke,je,Mt,ce))}}class y{constructor(z,ce,je,Mt){this.bufferTimeSpan=z,this.bufferCreationInterval=ce,this.maxBufferSize=je,this.scheduler=Mt}call(z,ce){return ce.subscribe(new T(z,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class E{constructor(){this.buffer=[]}}class T extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.bufferTimeSpan=ce,this.bufferCreationInterval=je,this.maxBufferSize=Mt,this.scheduler=jt,this.contexts=[];const ln=this.openContext();if(this.timespanOnly=null==je||je<0,this.timespanOnly)this.add(ln.closeAction=jt.schedule(D,ce,{subscriber:this,context:ln,bufferTimeSpan:ce}));else{const Ki={bufferTimeSpan:ce,bufferCreationInterval:je,subscriber:this,scheduler:jt};this.add(ln.closeAction=jt.schedule(w,ce,{subscriber:this,context:ln})),this.add(jt.schedule(O,je,Ki))}}_next(z){const ce=this.contexts,je=ce.length;let Mt;for(let jt=0;jt0;){const je=z.shift();ce.next(je.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(z){this.closeContext(z);const ce=z.closeAction;if(ce.unsubscribe(),this.remove(ce),!this.closed&&this.timespanOnly){z=this.openContext();const je=this.bufferTimeSpan;this.add(z.closeAction=this.scheduler.schedule(D,je,{subscriber:this,context:z,bufferTimeSpan:je}))}}openContext(){const z=new E;return this.contexts.push(z),z}closeContext(z){this.destination.next(z.buffer);const ce=this.contexts;(ce?ce.indexOf(z):-1)>=0&&ce.splice(ce.indexOf(z),1)}}function D(Ke){const z=Ke.subscriber,ce=Ke.context;ce&&z.closeContext(ce),z.closed||(Ke.context=z.openContext(),Ke.context.closeAction=this.schedule(Ke,Ke.bufferTimeSpan))}function O(Ke){const{bufferCreationInterval:z,bufferTimeSpan:ce,subscriber:je,scheduler:Mt}=Ke,jt=je.openContext();je.closed||(je.add(jt.closeAction=Mt.schedule(w,ce,{subscriber:je,context:jt})),this.schedule(Ke,z))}function w(Ke){const{subscriber:z,context:ce}=Ke;z.closeContext(ce)}var A=p(2654),S=p(448),M=p(826);function I(Ke,z){return function(je){return je.lift(new b(Ke,z))}}class b{constructor(z,ce){this.openings=z,this.closingSelector=ce}call(z,ce){return ce.subscribe(new L(z,this.openings,this.closingSelector))}}class L extends M.L{constructor(z,ce,je){super(z),this.closingSelector=je,this.contexts=[],this.add((0,S.D)(this,ce))}_next(z){const ce=this.contexts,je=ce.length;for(let Mt=0;Mt0;){const je=ce.shift();je.subscription.unsubscribe(),je.buffer=null,je.subscription=null}this.contexts=null,super._error(z)}_complete(){const z=this.contexts;for(;z.length>0;){const ce=z.shift();this.destination.next(ce.buffer),ce.subscription.unsubscribe(),ce.buffer=null,ce.subscription=null}this.contexts=null,super._complete()}notifyNext(z,ce){z?this.closeBuffer(z):this.openBuffer(ce)}notifyComplete(z){this.closeBuffer(z.context)}openBuffer(z){try{const je=this.closingSelector.call(this,z);je&&this.trySubscribe(je)}catch(ce){this._error(ce)}}closeBuffer(z){const ce=this.contexts;if(ce&&z){const{buffer:je,subscription:Mt}=z;this.destination.next(je),ce.splice(ce.indexOf(z),1),this.remove(Mt),Mt.unsubscribe()}}trySubscribe(z){const ce=this.contexts,Mt=new A.w,jt={buffer:[],subscription:Mt};ce.push(jt);const ln=(0,S.D)(this,z,jt);!ln||ln.closed?this.closeBuffer(jt):(ln.context=jt,this.add(ln),Mt.add(ln))}}function F(Ke){return function(z){return z.lift(new ne(Ke))}}class ne{constructor(z){this.closingSelector=z}call(z,ce){return ce.subscribe(new Y(z,this.closingSelector))}}class Y extends v.Ds{constructor(z,ce){super(z),this.closingSelector=ce,this.subscribing=!1,this.openBuffer()}_next(z){this.buffer.push(z)}_complete(){const z=this.buffer;z&&this.destination.next(z),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let je,{closingSubscription:z}=this;z&&(this.remove(z),z.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:Mt}=this;je=Mt()}catch(Mt){return this.error(Mt)}z=new A.w,this.closingSubscription=z,this.add(z),this.subscribing=!0,z.add((0,v.ft)(je,new v.IY(this))),this.subscribing=!1}}var Q=p(7221),te=p(6053);function $(Ke){return z=>z.lift(new te.Ms(Ke))}var J=p(6688),ie=p(5254);function le(...Ke){let z=null;return"function"==typeof Ke[Ke.length-1]&&(z=Ke.pop()),1===Ke.length&&(0,J.k)(Ke[0])&&(Ke=Ke[0].slice()),ce=>ce.lift.call((0,ie.D)([ce,...Ke]),new te.Ms(z))}var Oe=p(1961);function Le(...Ke){return z=>z.lift.call((0,Oe.z)(z,...Ke))}var Ye=p(534),Je=p(1406);function gt(Ke,z){return(0,Je.b)(()=>Ke,z)}function Ue(Ke){return z=>z.lift(new tt(Ke,z))}class tt{constructor(z,ce){this.predicate=z,this.source=ce}call(z,ce){return ce.subscribe(new at(z,this.predicate,this.source))}}class at extends u.L{constructor(z,ce,je){super(z),this.predicate=ce,this.source=je,this.count=0,this.index=0}_next(z){this.predicate?this._tryPredicate(z):this.count++}_tryPredicate(z){let ce;try{ce=this.predicate(z,this.index++,this.source)}catch(je){return void this.destination.error(je)}ce&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function ft(Ke){return z=>z.lift(new vt(Ke))}class vt{constructor(z){this.durationSelector=z}call(z,ce){return ce.subscribe(new yt(z,this.durationSelector))}}class yt extends v.Ds{constructor(z,ce){super(z),this.durationSelector=ce,this.hasValue=!1}_next(z){try{const ce=this.durationSelector.call(this,z);ce&&this._tryNext(z,ce)}catch(ce){this.destination.error(ce)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(z,ce){let je=this.durationSubscription;this.value=z,this.hasValue=!0,je&&(je.unsubscribe(),this.remove(je)),je=(0,v.ft)(ce,new v.IY(this)),je&&!je.closed&&this.add(this.durationSubscription=je)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const z=this.value,ce=this.durationSubscription;ce&&(this.durationSubscription=void 0,ce.unsubscribe(),this.remove(ce)),this.value=void 0,this.hasValue=!1,super._next(z)}}}var ot=p(13),_t=p(7314),At=p(943),Tt=p(6498);function Bt(Ke,z){return z?ce=>new fe(ce,z).lift(new Et(Ke)):ce=>ce.lift(new Et(Ke))}class Et{constructor(z){this.delayDurationSelector=z}call(z,ce){return ce.subscribe(new Ee(z,this.delayDurationSelector))}}class Ee extends M.L{constructor(z,ce){super(z),this.delayDurationSelector=ce,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(z,ce,je,Mt,jt){this.destination.next(z),this.removeSubscription(jt),this.tryComplete()}notifyError(z,ce){this._error(z)}notifyComplete(z){const ce=this.removeSubscription(z);ce&&this.destination.next(ce),this.tryComplete()}_next(z){const ce=this.index++;try{const je=this.delayDurationSelector(z,ce);je&&this.tryDelay(je,z)}catch(je){this.destination.error(je)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(z){z.unsubscribe();const ce=this.delayNotifierSubscriptions.indexOf(z);return-1!==ce&&this.delayNotifierSubscriptions.splice(ce,1),z.outerValue}tryDelay(z,ce){const je=(0,S.D)(this,z,ce);je&&!je.closed&&(this.destination.add(je),this.delayNotifierSubscriptions.push(je))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class fe extends Tt.y{constructor(z,ce){super(),this.source=z,this.subscriptionDelay=ce}_subscribe(z){this.subscriptionDelay.subscribe(new H(z,this.source))}}class H extends u.L{constructor(z,ce){super(),this.parent=z,this.source=ce,this.sourceSubscribed=!1}_next(z){this.subscribeToSource()}_error(z){this.unsubscribe(),this.parent.error(z)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function x(){return function(z){return z.lift(new U)}}class U{call(z,ce){return ce.subscribe(new Z(z))}}class Z extends u.L{constructor(z){super(z)}_next(z){z.observe(this.destination)}}function _e(Ke,z){return ce=>ce.lift(new Be(Ke,z))}class Be{constructor(z,ce){this.keySelector=z,this.flushes=ce}call(z,ce){return ce.subscribe(new $e(z,this.keySelector,this.flushes))}}class $e extends v.Ds{constructor(z,ce,je){super(z),this.keySelector=ce,this.values=new Set,je&&this.add((0,v.ft)(je,new v.IY(this)))}notifyNext(){this.values.clear()}notifyError(z){this._error(z)}_next(z){this.keySelector?this._useKeySelector(z):this._finalizeNext(z,z)}_useKeySelector(z){let ce;const{destination:je}=this;try{ce=this.keySelector(z)}catch(Mt){return void je.error(Mt)}this._finalizeNext(ce,z)}_finalizeNext(z,ce){const{values:je}=this;je.has(z)||(je.add(z),this.destination.next(ce))}}var st=p(5778);function ut(Ke,z){return(0,st.x)((ce,je)=>z?z(ce[Ke],je[Ke]):ce[Ke]===je[Ke])}var St=p(4231),Xt=p(2198),tn=p(4907),Dt=p(2986);function Kt(Ke,z){if(Ke<0)throw new St.W;const ce=arguments.length>=2;return je=>je.pipe((0,Xt.h)((Mt,jt)=>jt===Ke),(0,Dt.q)(1),ce?(0,_t.d)(z):(0,tn.T)(()=>new St.W))}var et=p(1086);function xt(...Ke){return z=>(0,Oe.z)(z,(0,et.of)(...Ke))}function Lt(Ke,z){return ce=>ce.lift(new Qe(Ke,z,ce))}class Qe{constructor(z,ce,je){this.predicate=z,this.thisArg=ce,this.source=je}call(z,ce){return ce.subscribe(new mt(z,this.predicate,this.thisArg,this.source))}}class mt extends u.L{constructor(z,ce,je,Mt){super(z),this.predicate=ce,this.thisArg=je,this.source=Mt,this.index=0,this.thisArg=je||this}notifyComplete(z){this.destination.next(z),this.destination.complete()}_next(z){let ce=!1;try{ce=this.predicate.call(this.thisArg,z,this.index++,this.source)}catch(je){return void this.destination.error(je)}ce||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Vt(){return Ke=>Ke.lift(new qt)}class qt{call(z,ce){return ce.subscribe(new Ne(z))}}class Ne extends v.Ds{constructor(z){super(z),this.hasCompleted=!1,this.hasSubscription=!1}_next(z){this.hasSubscription||(this.hasSubscription=!0,this.add((0,v.ft)(z,new v.IY(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var Se=p(4850);function ee(Ke,z){return z?ce=>ce.pipe(ee((je,Mt)=>(0,ie.D)(Ke(je,Mt)).pipe((0,Se.U)((jt,ln)=>z(je,jt,Mt,ln))))):ce=>ce.lift(new re(Ke))}class re{constructor(z){this.project=z}call(z,ce){return ce.subscribe(new Me(z,this.project))}}class Me extends v.Ds{constructor(z,ce){super(z),this.project=ce,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(z){this.hasSubscription||this.tryNext(z)}tryNext(z){let ce;const je=this.index++;try{ce=this.project(z,je)}catch(Mt){return void this.destination.error(Mt)}this.hasSubscription=!0,this._innerSub(ce)}_innerSub(z){const ce=new v.IY(this),je=this.destination;je.add(ce);const Mt=(0,v.ft)(z,ce);Mt!==ce&&je.add(Mt)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(z){this.destination.next(z)}notifyError(z){this.destination.error(z)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function ze(Ke,z=Number.POSITIVE_INFINITY,ce){return z=(z||0)<1?Number.POSITIVE_INFINITY:z,je=>je.lift(new It(Ke,z,ce))}class It{constructor(z,ce,je){this.project=z,this.concurrent=ce,this.scheduler=je}call(z,ce){return ce.subscribe(new Qt(z,this.project,this.concurrent,this.scheduler))}}class Qt extends v.Ds{constructor(z,ce,je,Mt){super(z),this.project=ce,this.concurrent=je,this.scheduler=Mt,this.index=0,this.active=0,this.hasCompleted=!1,je0&&this._next(z.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var cn=p(537);function An(Ke,z){if("function"!=typeof Ke)throw new TypeError("predicate is not a function");return ce=>ce.lift(new lt(Ke,ce,!1,z))}class lt{constructor(z,ce,je,Mt){this.predicate=z,this.source=ce,this.yieldIndex=je,this.thisArg=Mt}call(z,ce){return ce.subscribe(new ct(z,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class ct extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.predicate=ce,this.source=je,this.yieldIndex=Mt,this.thisArg=jt,this.index=0}notifyComplete(z){const ce=this.destination;ce.next(z),ce.complete(),this.unsubscribe()}_next(z){const{predicate:ce,thisArg:je}=this,Mt=this.index++;try{ce.call(je||this,z,Mt,this.source)&&this.notifyComplete(this.yieldIndex?Mt:z)}catch(jt){this.destination.error(jt)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function He(Ke,z){return ce=>ce.lift(new lt(Ke,ce,!0,z))}var pt=p(7224),Ot=p(8929);function un(Ke,z,ce,je){return Mt=>Mt.lift(new on(Ke,z,ce,je))}class on{constructor(z,ce,je,Mt){this.keySelector=z,this.elementSelector=ce,this.durationSelector=je,this.subjectSelector=Mt}call(z,ce){return ce.subscribe(new On(z,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class On extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.keySelector=ce,this.elementSelector=je,this.durationSelector=Mt,this.subjectSelector=jt,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(z){let ce;try{ce=this.keySelector(z)}catch(je){return void this.error(je)}this._group(z,ce)}_group(z,ce){let je=this.groups;je||(je=this.groups=new Map);let jt,Mt=je.get(ce);if(this.elementSelector)try{jt=this.elementSelector(z)}catch(ln){this.error(ln)}else jt=z;if(!Mt){Mt=this.subjectSelector?this.subjectSelector():new Ot.xQ,je.set(ce,Mt);const ln=new ji(ce,Mt,this);if(this.destination.next(ln),this.durationSelector){let Hn;try{Hn=this.durationSelector(new ji(ce,Mt))}catch(Ki){return void this.error(Ki)}this.add(Hn.subscribe(new Yn(ce,Mt,this)))}}Mt.closed||Mt.next(jt)}_error(z){const ce=this.groups;ce&&(ce.forEach((je,Mt)=>{je.error(z)}),ce.clear()),this.destination.error(z)}_complete(){const z=this.groups;z&&(z.forEach((ce,je)=>{ce.complete()}),z.clear()),this.destination.complete()}removeGroup(z){this.groups.delete(z)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class Yn extends u.L{constructor(z,ce,je){super(ce),this.key=z,this.group=ce,this.parent=je}_next(z){this.complete()}_unsubscribe(){const{parent:z,key:ce}=this;this.key=this.parent=null,z&&z.removeGroup(ce)}}class ji extends Tt.y{constructor(z,ce,je){super(),this.key=z,this.groupSubject=ce,this.refCountSubscription=je}_subscribe(z){const ce=new A.w,{refCountSubscription:je,groupSubject:Mt}=this;return je&&!je.closed&&ce.add(new Oi(je)),ce.add(Mt.subscribe(z)),ce}}class Oi extends A.w{constructor(z){super(),this.parent=z,z.count++}unsubscribe(){const z=this.parent;!z.closed&&!this.closed&&(super.unsubscribe(),z.count-=1,0===z.count&&z.attemptedToUnsubscribe&&z.unsubscribe())}}function Ni(){return function(z){return z.lift(new Ti)}}class Ti{call(z,ce){return ce.subscribe(new qn(z))}}class qn extends u.L{_next(z){}}function Vi(){return Ke=>Ke.lift(new ci)}class ci{call(z,ce){return ce.subscribe(new xe(z))}}class xe extends u.L{constructor(z){super(z)}notifyComplete(z){const ce=this.destination;ce.next(z),ce.complete()}_next(z){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var Ze=p(8127);function ue(Ke){return z=>z.lift(new Re(Ke))}class Re{constructor(z){this.value=z}call(z,ce){return ce.subscribe(new B(z,this.value))}}class B extends u.L{constructor(z,ce){super(z),this.value=ce}_next(z){this.destination.next(this.value)}}var de=p(9312);function Pe(){return function(z){return z.lift(new Xe)}}class Xe{call(z,ce){return ce.subscribe(new Wt(z))}}class Wt extends u.L{constructor(z){super(z)}_next(z){this.destination.next(de.P.createNext(z))}_error(z){const ce=this.destination;ce.next(de.P.createError(z)),ce.complete()}_complete(){const z=this.destination;z.next(de.P.createComplete()),z.complete()}}var Ft=p(8077);function Ht(Ke){return(0,Ft.u)("function"==typeof Ke?(ce,je)=>Ke(ce,je)>0?ce:je:(ce,je)=>ce>je?ce:je)}var Zt=p(6787);function an(...Ke){return z=>z.lift.call((0,Zt.T)(z,...Ke))}var Tn=p(9146),zn=p(1709);function $n(Ke,z,ce=Number.POSITIVE_INFINITY){return"function"==typeof z?(0,zn.zg)(()=>Ke,z,ce):("number"==typeof z&&(ce=z),(0,zn.zg)(()=>Ke,ce))}function ti(Ke,z,ce=Number.POSITIVE_INFINITY){return je=>je.lift(new jn(Ke,z,ce))}class jn{constructor(z,ce,je){this.accumulator=z,this.seed=ce,this.concurrent=je}call(z,ce){return ce.subscribe(new Qn(z,this.accumulator,this.seed,this.concurrent))}}class Qn extends v.Ds{constructor(z,ce,je,Mt){super(z),this.accumulator=ce,this.acc=je,this.concurrent=Mt,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(z){if(this.active0?this._next(z.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function kn(Ke){return(0,Ft.u)("function"==typeof Ke?(ce,je)=>Ke(ce,je)<0?ce:je:(ce,je)=>cez.lift(new bi(Ke))}class bi{constructor(z){this.nextSources=z}call(z,ce){return ce.subscribe(new Rn(z,this.nextSources))}}class Rn extends v.Ds{constructor(z,ce){super(z),this.destination=z,this.nextSources=ce}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(z){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const z=this.nextSources.shift();if(z){const ce=new v.IY(this),je=this.destination;je.add(ce);const Mt=(0,v.ft)(z,ce);Mt!==ce&&je.add(Mt)}else this.destination.complete()}}function qi(){return Ke=>Ke.lift(new oi)}class oi{call(z,ce){return ce.subscribe(new Fn(z))}}class Fn extends u.L{constructor(z){super(z),this.hasPrev=!1}_next(z){let ce;this.hasPrev?ce=[this.prev,z]:this.hasPrev=!0,this.prev=z,ce&&this.destination.next(ce)}}function $i(Ke,z){function ce(){return!ce.pred.apply(ce.thisArg,arguments)}return ce.pred=Ke,ce.thisArg=z,ce}function mi(Ke,z){return ce=>[(0,Xt.h)(Ke,z)(ce),(0,Xt.h)($i(Ke,z))(ce)]}function Gn(...Ke){const z=Ke.length;if(0===z)throw new Error("list of properties cannot be empty.");return ce=>(0,Se.U)(function(Ke,z){return je=>{let Mt=je;for(let jt=0;jtnew Ot.xQ,Ke):(0,Mi.O)(new Ot.xQ)}var yn=p(591);function Sn(Ke){return z=>(0,Mi.O)(new yn.X(Ke))(z)}class Wn extends Ot.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(z){return this.hasError?(z.error(this.thrownError),A.w.EMPTY):this.hasCompleted&&this.hasNext?(z.next(this.value),z.complete(),A.w.EMPTY):super._subscribe(z)}next(z){this.hasCompleted||(this.value=z,this.hasNext=!0)}error(z){this.hasCompleted||super.error(z)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}function Ri(){return Ke=>(0,Mi.O)(new Wn)(Ke)}var Li=p(6686),Vr=p(2268);const Mr=new class extends Vr.v{}(class extends Li.o{constructor(z,ce){super(z,ce),this.scheduler=z,this.work=ce}schedule(z,ce=0){return ce>0?super.schedule(z,ce):(this.delay=ce,this.state=z,this.scheduler.flush(this),this)}execute(z,ce){return ce>0||this.closed?super.execute(z,ce):this._execute(z,ce)}requestAsyncId(z,ce,je=0){return null!==je&&je>0||null===je&&this.delay>0?super.requestAsyncId(z,ce,je):z.flush(this)}});var cr=p(5279),$r=p(5283);class hr extends Ot.xQ{constructor(z=Number.POSITIVE_INFINITY,ce=Number.POSITIVE_INFINITY,je){super(),this.scheduler=je,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=z<1?1:z,this._windowTime=ce<1?1:ce,ce===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(z){if(!this.isStopped){const ce=this._events;ce.push(z),ce.length>this._bufferSize&&ce.shift()}super.next(z)}nextTimeWindow(z){this.isStopped||(this._events.push(new qr(this._getNow(),z)),this._trimBufferThenGetEvents()),super.next(z)}_subscribe(z){const ce=this._infiniteTimeWindow,je=ce?this._events:this._trimBufferThenGetEvents(),Mt=this.scheduler,jt=je.length;let ln;if(this.closed)throw new cr.N;if(this.isStopped||this.hasError?ln=A.w.EMPTY:(this.observers.push(z),ln=new $r.W(this,z)),Mt&&z.add(z=new pi(z,Mt)),ce)for(let Hn=0;Hnce&&(ln=Math.max(ln,jt-ce)),ln>0&&Mt.splice(0,ln),Mt}}class qr{constructor(z,ce){this.time=z,this.value=ce}}function ir(Ke,z,ce,je){ce&&"function"!=typeof ce&&(je=ce);const Mt="function"==typeof ce?ce:void 0,jt=new hr(Ke,z,je);return ln=>(0,Mi.O)(()=>jt,Mt)(ln)}var Cr=p(1946);function Sr(...Ke){return function(ce){return 1===Ke.length&&(0,J.k)(Ke[0])&&(Ke=Ke[0]),ce.lift.call((0,Cr.S3)(ce,...Ke))}}var mr=p(8896);function Hr(Ke=-1){return z=>0===Ke?(0,mr.c)():z.lift(new jr(Ke<0?-1:Ke-1,z))}class jr{constructor(z,ce){this.count=z,this.source=ce}call(z,ce){return ce.subscribe(new Wi(z,this.count,this.source))}}class Wi extends u.L{constructor(z,ce,je){super(z),this.count=ce,this.source=je}complete(){if(!this.isStopped){const{source:z,count:ce}=this;if(0===ce)return super.complete();ce>-1&&(this.count=ce-1),z.subscribe(this._unsubscribeAndRecycle())}}}function Wr(Ke){return z=>z.lift(new Rr(Ke))}class Rr{constructor(z){this.notifier=z}call(z,ce){return ce.subscribe(new Dr(z,this.notifier,ce))}}class Dr extends v.Ds{constructor(z,ce,je){super(z),this.notifier=ce,this.source=je,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:z,retriesSubscription:ce}=this;z&&(z.unsubscribe(),this.notifications=void 0),ce&&(ce.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:z}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=z,this}subscribeToRetries(){let z;this.notifications=new Ot.xQ;try{const{notifier:ce}=this;z=ce(this.notifications)}catch(ce){return super.complete()}this.retries=z,this.retriesSubscription=(0,v.ft)(z,new v.IY(this))}}function Lr(Ke=-1){return z=>z.lift(new Ji(Ke,z))}class Ji{constructor(z,ce){this.count=z,this.source=ce}call(z,ce){return ce.subscribe(new Fr(z,this.count,this.source))}}class Fr extends u.L{constructor(z,ce,je){super(z),this.count=ce,this.source=je}error(z){if(!this.isStopped){const{source:ce,count:je}=this;if(0===je)return super.error(z);je>-1&&(this.count=je-1),ce.subscribe(this._unsubscribeAndRecycle())}}}function ls(Ke){return z=>z.lift(new kr(Ke,z))}class kr{constructor(z,ce){this.notifier=z,this.source=ce}call(z,ce){return ce.subscribe(new Jr(z,this.notifier,this.source))}}class Jr extends v.Ds{constructor(z,ce,je){super(z),this.notifier=ce,this.source=je}error(z){if(!this.isStopped){let ce=this.errors,je=this.retries,Mt=this.retriesSubscription;if(je)this.errors=void 0,this.retriesSubscription=void 0;else{ce=new Ot.xQ;try{const{notifier:jt}=this;je=jt(ce)}catch(jt){return super.error(jt)}Mt=(0,v.ft)(je,new v.IY(this))}this._unsubscribeAndRecycle(),this.errors=ce,this.retries=je,this.retriesSubscription=Mt,ce.next(z)}}_unsubscribe(){const{errors:z,retriesSubscription:ce}=this;z&&(z.unsubscribe(),this.errors=void 0),ce&&(ce.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:z}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=z,this.source.subscribe(this)}}var Tr=p(4327);function us(Ke){return z=>z.lift(new si(Ke))}class si{constructor(z){this.notifier=z}call(z,ce){const je=new zr(z),Mt=ce.subscribe(je);return Mt.add((0,v.ft)(this.notifier,new v.IY(je))),Mt}}class zr extends v.Ds{constructor(){super(...arguments),this.hasValue=!1}_next(z){this.value=z,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function Er(Ke,z=c.P){return ce=>ce.lift(new be(Ke,z))}class be{constructor(z,ce){this.period=z,this.scheduler=ce}call(z,ce){return ce.subscribe(new X(z,this.period,this.scheduler))}}class X extends u.L{constructor(z,ce,je){super(z),this.period=ce,this.scheduler=je,this.hasValue=!1,this.add(je.schedule(k,ce,{subscriber:this,period:ce}))}_next(z){this.lastValue=z,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function k(Ke){let{subscriber:z,period:ce}=Ke;z.notifyNext(),this.schedule(Ke,ce)}var V=p(2014);function ve(Ke,z){return ce=>ce.lift(new nt(Ke,z))}class nt{constructor(z,ce){this.compareTo=z,this.comparator=ce}call(z,ce){return ce.subscribe(new Nt(z,this.compareTo,this.comparator))}}class Nt extends u.L{constructor(z,ce,je){super(z),this.compareTo=ce,this.comparator=je,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(ce.subscribe(new nn(z,this)))}_next(z){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(z),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:z,_b:ce,comparator:je}=this;for(;z.length>0&&ce.length>0;){let Mt=z.shift(),jt=ce.shift(),ln=!1;try{ln=je?je(Mt,jt):Mt===jt}catch(Hn){this.destination.error(Hn)}ln||this.emit(!1)}}emit(z){const{destination:ce}=this;ce.next(z),ce.complete()}nextB(z){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(z),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class nn extends u.L{constructor(z,ce){super(z),this.parent=ce}_next(z){this.parent.nextB(z)}_error(z){this.parent.error(z),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var In=p(8117);function ni(Ke,z,ce){let je;return je=Ke&&"object"==typeof Ke?Ke:{bufferSize:Ke,windowTime:z,refCount:!1,scheduler:ce},Mt=>Mt.lift(function({bufferSize:Ke=Number.POSITIVE_INFINITY,windowTime:z=Number.POSITIVE_INFINITY,refCount:ce,scheduler:je}){let Mt,ln,jt=0,Hn=!1,Ki=!1;return function(oe){let q;jt++,!Mt||Hn?(Hn=!1,Mt=new hr(Ke,z,je),q=Mt.subscribe(this),ln=oe.subscribe({next(Ce){Mt.next(Ce)},error(Ce){Hn=!0,Mt.error(Ce)},complete(){Ki=!0,ln=void 0,Mt.complete()}}),Ki&&(ln=void 0)):q=Mt.subscribe(this),this.add(()=>{jt--,q.unsubscribe(),q=void 0,ln&&!Ki&&ce&&0===jt&&(ln.unsubscribe(),ln=void 0,Mt=void 0)})}}(je))}var ai=p(4450);function hi(Ke){return z=>z.lift(new Ei(Ke,z))}class Ei{constructor(z,ce){this.predicate=z,this.source=ce}call(z,ce){return ce.subscribe(new ki(z,this.predicate,this.source))}}class ki extends u.L{constructor(z,ce,je){super(z),this.predicate=ce,this.source=je,this.seenValue=!1,this.index=0}applySingleValue(z){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=z)}_next(z){const ce=this.index++;this.predicate?this.tryNext(z,ce):this.applySingleValue(z)}tryNext(z,ce){try{this.predicate(z,ce,this.source)&&this.applySingleValue(z)}catch(je){this.destination.error(je)}}_complete(){const z=this.destination;this.index>0?(z.next(this.seenValue?this.singleValue:void 0),z.complete()):z.error(new ai.K)}}var xn=p(1307);function Kr(Ke){return z=>z.lift(new rr(Ke))}class rr{constructor(z){if(this._skipCount=z,this._skipCount<0)throw new St.W}call(z,ce){return ce.subscribe(0===this._skipCount?new u.L(z):new xr(z,this._skipCount))}}class xr extends u.L{constructor(z,ce){super(z),this._skipCount=ce,this._count=0,this._ring=new Array(ce)}_next(z){const ce=this._skipCount,je=this._count++;if(jez.lift(new es(Ke))}class es{constructor(z){this.notifier=z}call(z,ce){return ce.subscribe(new ds(z,this.notifier))}}class ds extends v.Ds{constructor(z,ce){super(z),this.hasValue=!1;const je=new v.IY(this);this.add(je),this.innerSubscription=je;const Mt=(0,v.ft)(ce,je);Mt!==je&&(this.add(Mt),this.innerSubscription=Mt)}_next(z){this.hasValue&&super._next(z)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function Bs(Ke){return z=>z.lift(new we(Ke))}class we{constructor(z){this.predicate=z}call(z,ce){return ce.subscribe(new N(z,this.predicate))}}class N extends u.L{constructor(z,ce){super(z),this.predicate=ce,this.skipping=!0,this.index=0}_next(z){const ce=this.destination;this.skipping&&this.tryCallPredicate(z),this.skipping||ce.next(z)}tryCallPredicate(z){try{const ce=this.predicate(z,this.index++);this.skipping=Boolean(ce)}catch(ce){this.destination.error(ce)}}}var G=p(1059),pe=p(8139),Ae=p(4241);class We extends Tt.y{constructor(z,ce=0,je=pe.e){super(),this.source=z,this.delayTime=ce,this.scheduler=je,(!(0,Ae.k)(ce)||ce<0)&&(this.delayTime=0),(!je||"function"!=typeof je.schedule)&&(this.scheduler=pe.e)}static create(z,ce=0,je=pe.e){return new We(z,ce,je)}static dispatch(z){const{source:ce,subscriber:je}=z;return this.add(ce.subscribe(je))}_subscribe(z){return this.scheduler.schedule(We.dispatch,this.delayTime,{source:this.source,subscriber:z})}}function rt(Ke,z=0){return function(je){return je.lift(new dt(Ke,z))}}class dt{constructor(z,ce){this.scheduler=z,this.delay=ce}call(z,ce){return new We(ce,this.delay,this.scheduler).subscribe(z)}}var Rt=p(7545),Gt=p(5379);function rn(){return(0,Rt.w)(Gt.y)}function pn(Ke,z){return z?(0,Rt.w)(()=>Ke,z):(0,Rt.w)(()=>Ke)}var Pn=p(2821),Ln=p(7625),_n=p(4290),Bn=p(2868);const Kn={leading:!0,trailing:!1};function _i(Ke,z=Kn){return ce=>ce.lift(new xi(Ke,!!z.leading,!!z.trailing))}class xi{constructor(z,ce,je){this.durationSelector=z,this.leading=ce,this.trailing=je}call(z,ce){return ce.subscribe(new sr(z,this.durationSelector,this.leading,this.trailing))}}class sr extends v.Ds{constructor(z,ce,je,Mt){super(z),this.destination=z,this.durationSelector=ce,this._leading=je,this._trailing=Mt,this._hasValue=!1}_next(z){this._hasValue=!0,this._sendValue=z,this._throttled||(this._leading?this.send():this.throttle(z))}send(){const{_hasValue:z,_sendValue:ce}=this;z&&(this.destination.next(ce),this.throttle(ce)),this._hasValue=!1,this._sendValue=void 0}throttle(z){const ce=this.tryDurationSelector(z);ce&&this.add(this._throttled=(0,v.ft)(ce,new v.IY(this)))}tryDurationSelector(z){try{return this.durationSelector(z)}catch(ce){return this.destination.error(ce),null}}throttlingDone(){const{_throttled:z,_trailing:ce}=this;z&&z.unsubscribe(),this._throttled=void 0,ce&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function Qi(Ke,z=c.P,ce=Kn){return je=>je.lift(new Nr(Ke,z,ce.leading,ce.trailing))}class Nr{constructor(z,ce,je,Mt){this.duration=z,this.scheduler=ce,this.leading=je,this.trailing=Mt}call(z,ce){return ce.subscribe(new fr(z,this.duration,this.scheduler,this.leading,this.trailing))}}class fr extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.duration=ce,this.scheduler=je,this.leading=Mt,this.trailing=jt,this._hasTrailingValue=!1,this._trailingValue=null}_next(z){this.throttled?this.trailing&&(this._trailingValue=z,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Xi,this.duration,{subscriber:this})),this.leading?this.destination.next(z):this.trailing&&(this._trailingValue=z,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const z=this.throttled;z&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),z.unsubscribe(),this.remove(z),this.throttled=null)}}function Xi(Ke){const{subscriber:z}=Ke;z.clearThrottle()}var gr=p(8514);function zi(Ke=c.P){return z=>(0,gr.P)(()=>z.pipe((0,V.R)(({current:ce},je)=>({value:je,current:Ke.now(),last:ce}),{current:Ke.now(),value:void 0,last:void 0}),(0,Se.U)(({current:ce,last:je,value:Mt})=>new Pr(Mt,ce-je))))}class Pr{constructor(z,ce){this.value=z,this.interval=ce}}var ys=p(7e3),Yi=p(2431);function Ur(Ke=c.P){return(0,Se.U)(z=>new bs(z,Ke.now()))}class bs{constructor(z,ce){this.value=z,this.timestamp=ce}}var Cs=p(864);function mn(Ke){return function(ce){return ce.lift(new Mn(Ke))}}class Mn{constructor(z){this.windowBoundaries=z}call(z,ce){const je=new En(z),Mt=ce.subscribe(je);return Mt.closed||je.add((0,v.ft)(this.windowBoundaries,new v.IY(je))),Mt}}class En extends v.Ds{constructor(z){super(z),this.window=new Ot.xQ,z.next(this.window)}notifyNext(){this.openWindow()}notifyError(z){this._error(z)}notifyComplete(){this._complete()}_next(z){this.window.next(z)}_error(z){this.window.error(z),this.destination.error(z)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const z=this.window;z&&z.complete();const ce=this.destination,je=this.window=new Ot.xQ;ce.next(je)}}function li(Ke,z=0){return function(je){return je.lift(new ii(Ke,z))}}class ii{constructor(z,ce){this.windowSize=z,this.startWindowEvery=ce}call(z,ce){return ce.subscribe(new Hi(z,this.windowSize,this.startWindowEvery))}}class Hi extends u.L{constructor(z,ce,je){super(z),this.destination=z,this.windowSize=ce,this.startWindowEvery=je,this.windows=[new Ot.xQ],this.count=0,z.next(this.windows[0])}_next(z){const ce=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,je=this.destination,Mt=this.windowSize,jt=this.windows,ln=jt.length;for(let Ki=0;Ki=0&&Hn%ce==0&&!this.closed&&jt.shift().complete(),++this.count%ce==0&&!this.closed){const Ki=new Ot.xQ;jt.push(Ki),je.next(Ki)}}_error(z){const ce=this.windows;if(ce)for(;ce.length>0&&!this.closed;)ce.shift().error(z);this.destination.error(z)}_complete(){const z=this.windows;if(z)for(;z.length>0&&!this.closed;)z.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function Zn(Ke){let z=c.P,ce=null,je=Number.POSITIVE_INFINITY;return(0,l.K)(arguments[3])&&(z=arguments[3]),(0,l.K)(arguments[2])?z=arguments[2]:(0,Ae.k)(arguments[2])&&(je=Number(arguments[2])),(0,l.K)(arguments[1])?z=arguments[1]:(0,Ae.k)(arguments[1])&&(ce=Number(arguments[1])),function(jt){return jt.lift(new dr(Ke,ce,je,z))}}class dr{constructor(z,ce,je,Mt){this.windowTimeSpan=z,this.windowCreationInterval=ce,this.maxWindowSize=je,this.scheduler=Mt}call(z,ce){return ce.subscribe(new Es(z,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Si extends Ot.xQ{constructor(){super(...arguments),this._numberOfNextedValues=0}next(z){this._numberOfNextedValues++,super.next(z)}get numberOfNextedValues(){return this._numberOfNextedValues}}class Es extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.destination=z,this.windowTimeSpan=ce,this.windowCreationInterval=je,this.maxWindowSize=Mt,this.scheduler=jt,this.windows=[];const ln=this.openWindow();if(null!==je&&je>=0){const Ki={windowTimeSpan:ce,windowCreationInterval:je,subscriber:this,scheduler:jt};this.add(jt.schedule(ar,ce,{subscriber:this,window:ln,context:null})),this.add(jt.schedule(or,je,Ki))}else this.add(jt.schedule(ws,ce,{subscriber:this,window:ln,windowTimeSpan:ce}))}_next(z){const ce=this.windows,je=ce.length;for(let Mt=0;Mt=this.maxWindowSize&&this.closeWindow(jt))}}_error(z){const ce=this.windows;for(;ce.length>0;)ce.shift().error(z);this.destination.error(z)}_complete(){const z=this.windows;for(;z.length>0;){const ce=z.shift();ce.closed||ce.complete()}this.destination.complete()}openWindow(){const z=new Si;return this.windows.push(z),this.destination.next(z),z}closeWindow(z){z.complete();const ce=this.windows;ce.splice(ce.indexOf(z),1)}}function ws(Ke){const{subscriber:z,windowTimeSpan:ce,window:je}=Ke;je&&z.closeWindow(je),Ke.window=z.openWindow(),this.schedule(Ke,ce)}function or(Ke){const{windowTimeSpan:z,subscriber:ce,scheduler:je,windowCreationInterval:Mt}=Ke,jt=ce.openWindow();let Hn={action:this,subscription:null};Hn.subscription=je.schedule(ar,z,{subscriber:ce,window:jt,context:Hn}),this.add(Hn.subscription),this.schedule(Ke,Mt)}function ar(Ke){const{subscriber:z,window:ce,context:je}=Ke;je&&je.action&&je.subscription&&je.action.remove(je.subscription),z.closeWindow(ce)}function Ir(Ke,z){return ce=>ce.lift(new _r(Ke,z))}class _r{constructor(z,ce){this.openings=z,this.closingSelector=ce}call(z,ce){return ce.subscribe(new ts(z,this.openings,this.closingSelector))}}class ts extends M.L{constructor(z,ce,je){super(z),this.openings=ce,this.closingSelector=je,this.contexts=[],this.add(this.openSubscription=(0,S.D)(this,ce,ce))}_next(z){const{contexts:ce}=this;if(ce){const je=ce.length;for(let Mt=0;Mt{let ce;return"function"==typeof Ke[Ke.length-1]&&(ce=Ke.pop()),z.lift(new rs(Ke,ce))}}class rs{constructor(z,ce){this.observables=z,this.project=ce}call(z,ce){return ce.subscribe(new $s(z,this.observables,this.project))}}class $s extends M.L{constructor(z,ce,je){super(z),this.observables=ce,this.project=je,this.toRespond=[];const Mt=ce.length;this.values=new Array(Mt);for(let jt=0;jt0){const jt=Mt.indexOf(je);-1!==jt&&Mt.splice(jt,1)}}notifyComplete(){}_next(z){if(0===this.toRespond.length){const ce=[z,...this.values];this.project?this._tryProject(ce):this.destination.next(ce)}}_tryProject(z){let ce;try{ce=this.project.apply(this,z)}catch(je){return void this.destination.error(je)}this.destination.next(ce)}}var Js=p(1746);function Ms(...Ke){return function(ce){return ce.lift.call((0,Js.$R)(ce,...Ke))}}function Ss(Ke){return z=>z.lift(new Js.mx(Ke))}},8951:ye=>{"use strict";ye.exports=(j,p)=>{if("string"!=typeof j||"string"!=typeof p)throw new TypeError("Expected the arguments to be of type `string`");if(""===p)return[j];const n=j.indexOf(p);return-1===n?[j]:[j.slice(0,n),j.slice(n+p.length)]}},8372:ye=>{"use strict";ye.exports=j=>encodeURIComponent(j).replace(/[!'()*]/g,p=>`%${p.charCodeAt(0).toString(16).toUpperCase()}`)},8926:ye=>{function j(n,f,v,m,o,d,u){try{var h=n[d](u),r=h.value}catch(s){return void v(s)}h.done?f(r):Promise.resolve(r).then(m,o)}ye.exports=function(n){return function(){var f=this,v=arguments;return new Promise(function(m,o){var d=n.apply(f,v);function u(r){j(d,m,o,u,h,"next",r)}function h(r){j(d,m,o,u,h,"throw",r)}u(void 0)})}},ye.exports.default=ye.exports,ye.exports.__esModule=!0},655:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{__extends:()=>f,__assign:()=>v,__rest:()=>m,__decorate:()=>o,__param:()=>d,__metadata:()=>u,__awaiter:()=>h,__generator:()=>r,__createBinding:()=>s,__exportStar:()=>i,__values:()=>c,__read:()=>l,__spread:()=>g,__spreadArrays:()=>y,__spreadArray:()=>E,__await:()=>T,__asyncGenerator:()=>D,__asyncDelegator:()=>O,__asyncValues:()=>w,__makeTemplateObject:()=>A,__importStar:()=>M,__importDefault:()=>I,__classPrivateFieldGet:()=>b,__classPrivateFieldSet:()=>L});var n=function(F,ne){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var te in Q)Object.prototype.hasOwnProperty.call(Q,te)&&(Y[te]=Q[te])})(F,ne)};function f(F,ne){if("function"!=typeof ne&&null!==ne)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function Y(){this.constructor=F}n(F,ne),F.prototype=null===ne?Object.create(ne):(Y.prototype=ne.prototype,new Y)}var v=function(){return v=Object.assign||function(ne){for(var Y,Q=1,te=arguments.length;Q=0;ie--)(J=F[ie])&&($=(te<3?J($):te>3?J(ne,Y,$):J(ne,Y))||$);return te>3&&$&&Object.defineProperty(ne,Y,$),$}function d(F,ne){return function(Y,Q){ne(Y,Q,F)}}function u(F,ne){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,ne)}function h(F,ne,Y,Q){return new(Y||(Y=Promise))(function($,J){function ie(Oe){try{le(Q.next(Oe))}catch(Le){J(Le)}}function ae(Oe){try{le(Q.throw(Oe))}catch(Le){J(Le)}}function le(Oe){Oe.done?$(Oe.value):function($){return $ instanceof Y?$:new Y(function(J){J($)})}(Oe.value).then(ie,ae)}le((Q=Q.apply(F,ne||[])).next())})}function r(F,ne){var Q,te,$,J,Y={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return J={next:ie(0),throw:ie(1),return:ie(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function ie(le){return function(Oe){return function(le){if(Q)throw new TypeError("Generator is already executing.");for(;Y;)try{if(Q=1,te&&($=2&le[0]?te.return:le[0]?te.throw||(($=te.return)&&$.call(te),0):te.next)&&!($=$.call(te,le[1])).done)return $;switch(te=0,$&&(le=[2&le[0],$.value]),le[0]){case 0:case 1:$=le;break;case 4:return Y.label++,{value:le[1],done:!1};case 5:Y.label++,te=le[1],le=[0];continue;case 7:le=Y.ops.pop(),Y.trys.pop();continue;default:if(!($=($=Y.trys).length>0&&$[$.length-1])&&(6===le[0]||2===le[0])){Y=0;continue}if(3===le[0]&&(!$||le[1]>$[0]&&le[1]<$[3])){Y.label=le[1];break}if(6===le[0]&&Y.label<$[1]){Y.label=$[1],$=le;break}if($&&Y.label<$[2]){Y.label=$[2],Y.ops.push(le);break}$[2]&&Y.ops.pop(),Y.trys.pop();continue}le=ne.call(F,Y)}catch(Oe){le=[6,Oe],te=0}finally{Q=$=0}if(5&le[0])throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}([le,Oe])}}}var s=Object.create?function(F,ne,Y,Q){void 0===Q&&(Q=Y),Object.defineProperty(F,Q,{enumerable:!0,get:function(){return ne[Y]}})}:function(F,ne,Y,Q){void 0===Q&&(Q=Y),F[Q]=ne[Y]};function i(F,ne){for(var Y in F)"default"!==Y&&!Object.prototype.hasOwnProperty.call(ne,Y)&&s(ne,F,Y)}function c(F){var ne="function"==typeof Symbol&&Symbol.iterator,Y=ne&&F[ne],Q=0;if(Y)return Y.call(F);if(F&&"number"==typeof F.length)return{next:function(){return F&&Q>=F.length&&(F=void 0),{value:F&&F[Q++],done:!F}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(F,ne){var Y="function"==typeof Symbol&&F[Symbol.iterator];if(!Y)return F;var te,J,Q=Y.call(F),$=[];try{for(;(void 0===ne||ne-- >0)&&!(te=Q.next()).done;)$.push(te.value)}catch(ie){J={error:ie}}finally{try{te&&!te.done&&(Y=Q.return)&&Y.call(Q)}finally{if(J)throw J.error}}return $}function g(){for(var F=[],ne=0;ne1||ie(Ye,Je)})})}function ie(Ye,Je){try{!function(Ye){Ye.value instanceof T?Promise.resolve(Ye.value.v).then(le,Oe):Le($[0][2],Ye)}(Q[Ye](Je))}catch(gt){Le($[0][3],gt)}}function le(Ye){ie("next",Ye)}function Oe(Ye){ie("throw",Ye)}function Le(Ye,Je){Ye(Je),$.shift(),$.length&&ie($[0][0],$[0][1])}}function O(F){var ne,Y;return ne={},Q("next"),Q("throw",function(te){throw te}),Q("return"),ne[Symbol.iterator]=function(){return this},ne;function Q(te,$){ne[te]=F[te]?function(J){return(Y=!Y)?{value:T(F[te](J)),done:"return"===te}:$?$(J):J}:$}}function w(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y,ne=F[Symbol.asyncIterator];return ne?ne.call(F):(F=c(F),Y={},Q("next"),Q("throw"),Q("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function Q($){Y[$]=F[$]&&function(J){return new Promise(function(ie,ae){!function($,J,ie,ae){Promise.resolve(ae).then(function(le){$({value:le,done:ie})},J)}(ie,ae,(J=F[$](J)).done,J.value)})}}}function A(F,ne){return Object.defineProperty?Object.defineProperty(F,"raw",{value:ne}):F.raw=ne,F}var S=Object.create?function(F,ne){Object.defineProperty(F,"default",{enumerable:!0,value:ne})}:function(F,ne){F.default=ne};function M(F){if(F&&F.__esModule)return F;var ne={};if(null!=F)for(var Y in F)"default"!==Y&&Object.prototype.hasOwnProperty.call(F,Y)&&s(ne,F,Y);return S(ne,F),ne}function I(F){return F&&F.__esModule?F:{default:F}}function b(F,ne){if(!ne.has(F))throw new TypeError("attempted to get private field on non-instance");return ne.get(F)}function L(F,ne,Y){if(!ne.has(F))throw new TypeError("attempted to set private field on non-instance");return ne.set(F,Y),Y}},1777:(ye,j,p)=>{"use strict";p.d(j,{l3:()=>v,_j:()=>n,LC:()=>f,ZN:()=>D,jt:()=>o,pV:()=>l,F4:()=>s,IO:()=>y,vP:()=>u,SB:()=>r,oB:()=>h,eR:()=>i,X$:()=>m,ZE:()=>O,k1:()=>w});class n{}class f{}const v="*";function m(A,S){return{type:7,name:A,definitions:S,options:{}}}function o(A,S=null){return{type:4,styles:S,timings:A}}function u(A,S=null){return{type:2,steps:A,options:S}}function h(A){return{type:6,styles:A,offset:null}}function r(A,S,M){return{type:0,name:A,styles:S,options:M}}function s(A){return{type:5,steps:A}}function i(A,S,M=null){return{type:1,expr:A,animation:S,options:M}}function l(A=null){return{type:9,options:A}}function y(A,S,M=null){return{type:11,selector:A,animation:S,options:M}}function T(A){Promise.resolve(null).then(A)}class D{constructor(S=0,M=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=S+M}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(S=>S()),this._onDoneFns=[])}onStart(S){this._onStartFns.push(S)}onDone(S){this._onDoneFns.push(S)}onDestroy(S){this._onDestroyFns.push(S)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){T(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(S=>S()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(S=>S()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(S){this._position=this.totalTime?S*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(S){const M="start"==S?this._onStartFns:this._onDoneFns;M.forEach(I=>I()),M.length=0}}class O{constructor(S){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=S;let M=0,I=0,b=0;const L=this.players.length;0==L?T(()=>this._onFinish()):this.players.forEach(F=>{F.onDone(()=>{++M==L&&this._onFinish()}),F.onDestroy(()=>{++I==L&&this._onDestroy()}),F.onStart(()=>{++b==L&&this._onStart()})}),this.totalTime=this.players.reduce((F,ne)=>Math.max(F,ne.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(S=>S()),this._onDoneFns=[])}init(){this.players.forEach(S=>S.init())}onStart(S){this._onStartFns.push(S)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(S=>S()),this._onStartFns=[])}onDone(S){this._onDoneFns.push(S)}onDestroy(S){this._onDestroyFns.push(S)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(S=>S.play())}pause(){this.players.forEach(S=>S.pause())}restart(){this.players.forEach(S=>S.restart())}finish(){this._onFinish(),this.players.forEach(S=>S.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(S=>S.destroy()),this._onDestroyFns.forEach(S=>S()),this._onDestroyFns=[])}reset(){this.players.forEach(S=>S.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(S){const M=S*this.totalTime;this.players.forEach(I=>{const b=I.totalTime?Math.min(1,M/I.totalTime):1;I.setPosition(b)})}getPosition(){const S=this.players.reduce((M,I)=>null===M||I.totalTime>M.totalTime?I:M,null);return null!=S?S.getPosition():0}beforeDestroy(){this.players.forEach(S=>{S.beforeDestroy&&S.beforeDestroy()})}triggerCallback(S){const M="start"==S?this._onStartFns:this._onDoneFns;M.forEach(I=>I()),M.length=0}}const w="!"},5664:(ye,j,p)=>{"use strict";p.d(j,{rt:()=>Ne,s1:()=>J,$s:()=>Y,Qr:()=>Dt,kH:()=>Lt,mK:()=>Tt,Em:()=>ie,tE:()=>xt,qm:()=>qt,Kd:()=>tn,X6:()=>x,yG:()=>U});var n=p(9808),f=p(5e3),v=p(8929),m=p(2654),o=p(591),d=p(1086),u=p(1159),h=p(2868),r=p(13),s=p(2198),i=p(4850),c=p(2986),l=p(1307),g=p(5778),y=p(7625),E=p(3191),T=p(925),D=p(7144);function S(Se,ee){return(Se.getAttribute(ee)||"").match(/\S+/g)||[]}const M="cdk-describedby-message-container",I="cdk-describedby-message",b="cdk-describedby-host";let L=0;const F=new Map;let ne=null,Y=(()=>{class Se{constructor(re){this._document=re}describe(re,Me,ze){if(!this._canBeDescribed(re,Me))return;const It=Q(Me,ze);"string"!=typeof Me?(te(Me),F.set(It,{messageElement:Me,referenceCount:0})):F.has(It)||this._createMessageElement(Me,ze),this._isElementDescribedByMessage(re,It)||this._addMessageReference(re,It)}removeDescription(re,Me,ze){if(!Me||!this._isElementNode(re))return;const It=Q(Me,ze);if(this._isElementDescribedByMessage(re,It)&&this._removeMessageReference(re,It),"string"==typeof Me){const Qt=F.get(It);Qt&&0===Qt.referenceCount&&this._deleteMessageElement(It)}ne&&0===ne.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const re=this._document.querySelectorAll(`[${b}]`);for(let Me=0;Me0!=ze.indexOf(I));re.setAttribute("aria-describedby",Me.join(" "))}_addMessageReference(re,Me){const ze=F.get(Me);(function(Se,ee,re){const Me=S(Se,ee);Me.some(ze=>ze.trim()==re.trim())||(Me.push(re.trim()),Se.setAttribute(ee,Me.join(" ")))})(re,"aria-describedby",ze.messageElement.id),re.setAttribute(b,""),ze.referenceCount++}_removeMessageReference(re,Me){const ze=F.get(Me);ze.referenceCount--,function(Se,ee,re){const ze=S(Se,ee).filter(It=>It!=re.trim());ze.length?Se.setAttribute(ee,ze.join(" ")):Se.removeAttribute(ee)}(re,"aria-describedby",ze.messageElement.id),re.removeAttribute(b)}_isElementDescribedByMessage(re,Me){const ze=S(re,"aria-describedby"),It=F.get(Me),Qt=It&&It.messageElement.id;return!!Qt&&-1!=ze.indexOf(Qt)}_canBeDescribed(re,Me){if(!this._isElementNode(re))return!1;if(Me&&"object"==typeof Me)return!0;const ze=null==Me?"":`${Me}`.trim(),It=re.getAttribute("aria-label");return!(!ze||It&&It.trim()===ze)}_isElementNode(re){return re.nodeType===this._document.ELEMENT_NODE}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function Q(Se,ee){return"string"==typeof Se?`${ee||""}/${Se}`:Se}function te(Se){Se.id||(Se.id=`${I}-${L++}`)}class ${constructor(ee){this._items=ee,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.xQ,this._typeaheadSubscription=m.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=re=>re.disabled,this._pressedLetters=[],this.tabOut=new v.xQ,this.change=new v.xQ,ee instanceof f.QueryList&&ee.changes.subscribe(re=>{if(this._activeItem){const ze=re.toArray().indexOf(this._activeItem);ze>-1&&ze!==this._activeItemIndex&&(this._activeItemIndex=ze)}})}skipPredicate(ee){return this._skipPredicateFn=ee,this}withWrap(ee=!0){return this._wrap=ee,this}withVerticalOrientation(ee=!0){return this._vertical=ee,this}withHorizontalOrientation(ee){return this._horizontal=ee,this}withAllowedModifierKeys(ee){return this._allowedModifierKeys=ee,this}withTypeAhead(ee=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(re=>this._pressedLetters.push(re)),(0,r.b)(ee),(0,s.h)(()=>this._pressedLetters.length>0),(0,i.U)(()=>this._pressedLetters.join(""))).subscribe(re=>{const Me=this._getItemsArray();for(let ze=1;ze!ee[It]||this._allowedModifierKeys.indexOf(It)>-1);switch(re){case u.Mf:return void this.tabOut.next();case u.JH:if(this._vertical&&ze){this.setNextItemActive();break}return;case u.LH:if(this._vertical&&ze){this.setPreviousItemActive();break}return;case u.SV:if(this._horizontal&&ze){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case u.oh:if(this._horizontal&&ze){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case u.Sd:if(this._homeAndEnd&&ze){this.setFirstItemActive();break}return;case u.uR:if(this._homeAndEnd&&ze){this.setLastItemActive();break}return;default:return void((ze||(0,u.Vb)(ee,"shiftKey"))&&(ee.key&&1===ee.key.length?this._letterKeyStream.next(ee.key.toLocaleUpperCase()):(re>=u.A&&re<=u.Z||re>=u.xE&&re<=u.aO)&&this._letterKeyStream.next(String.fromCharCode(re))))}this._pressedLetters=[],ee.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(ee){const re=this._getItemsArray(),Me="number"==typeof ee?ee:re.indexOf(ee),ze=re[Me];this._activeItem=null==ze?null:ze,this._activeItemIndex=Me}_setActiveItemByDelta(ee){this._wrap?this._setActiveInWrapMode(ee):this._setActiveInDefaultMode(ee)}_setActiveInWrapMode(ee){const re=this._getItemsArray();for(let Me=1;Me<=re.length;Me++){const ze=(this._activeItemIndex+ee*Me+re.length)%re.length;if(!this._skipPredicateFn(re[ze]))return void this.setActiveItem(ze)}}_setActiveInDefaultMode(ee){this._setActiveItemByIndex(this._activeItemIndex+ee,ee)}_setActiveItemByIndex(ee,re){const Me=this._getItemsArray();if(Me[ee]){for(;this._skipPredicateFn(Me[ee]);)if(!Me[ee+=re])return;this.setActiveItem(ee)}}_getItemsArray(){return this._items instanceof f.QueryList?this._items.toArray():this._items}}class J extends ${setActiveItem(ee){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ee),this.activeItem&&this.activeItem.setActiveStyles()}}class ie extends ${constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ee){return this._origin=ee,this}setActiveItem(ee){super.setActiveItem(ee),this.activeItem&&this.activeItem.focus(this._origin)}}let le=(()=>{class Se{constructor(re){this._platform=re}isDisabled(re){return re.hasAttribute("disabled")}isVisible(re){return function(Se){return!!(Se.offsetWidth||Se.offsetHeight||"function"==typeof Se.getClientRects&&Se.getClientRects().length)}(re)&&"visible"===getComputedStyle(re).visibility}isTabbable(re){if(!this._platform.isBrowser)return!1;const Me=function(Se){try{return Se.frameElement}catch(ee){return null}}(function(Se){return Se.ownerDocument&&Se.ownerDocument.defaultView||window}(re));if(Me&&(-1===ft(Me)||!this.isVisible(Me)))return!1;let ze=re.nodeName.toLowerCase(),It=ft(re);return re.hasAttribute("contenteditable")?-1!==It:!("iframe"===ze||"object"===ze||this._platform.WEBKIT&&this._platform.IOS&&!function(Se){let ee=Se.nodeName.toLowerCase(),re="input"===ee&&Se.type;return"text"===re||"password"===re||"select"===ee||"textarea"===ee}(re))&&("audio"===ze?!!re.hasAttribute("controls")&&-1!==It:"video"===ze?-1!==It&&(null!==It||this._platform.FIREFOX||re.hasAttribute("controls")):re.tabIndex>=0)}isFocusable(re,Me){return function(Se){return!function(Se){return function(Se){return"input"==Se.nodeName.toLowerCase()}(Se)&&"hidden"==Se.type}(Se)&&(function(Se){let ee=Se.nodeName.toLowerCase();return"input"===ee||"select"===ee||"button"===ee||"textarea"===ee}(Se)||function(Se){return function(Se){return"a"==Se.nodeName.toLowerCase()}(Se)&&Se.hasAttribute("href")}(Se)||Se.hasAttribute("contenteditable")||at(Se))}(re)&&!this.isDisabled(re)&&((null==Me?void 0:Me.ignoreVisibility)||this.isVisible(re))}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(T.t4))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function at(Se){if(!Se.hasAttribute("tabindex")||void 0===Se.tabIndex)return!1;let ee=Se.getAttribute("tabindex");return!(!ee||isNaN(parseInt(ee,10)))}function ft(Se){if(!at(Se))return null;const ee=parseInt(Se.getAttribute("tabindex")||"",10);return isNaN(ee)?-1:ee}class _t{constructor(ee,re,Me,ze,It=!1){this._element=ee,this._checker=re,this._ngZone=Me,this._document=ze,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,It||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ee){this._enabled=ee,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ee,this._startAnchor),this._toggleAnchorTabIndex(ee,this._endAnchor))}destroy(){const ee=this._startAnchor,re=this._endAnchor;ee&&(ee.removeEventListener("focus",this.startAnchorListener),ee.remove()),re&&(re.removeEventListener("focus",this.endAnchorListener),re.remove()),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(ee){return new Promise(re=>{this._executeOnStable(()=>re(this.focusInitialElement(ee)))})}focusFirstTabbableElementWhenReady(ee){return new Promise(re=>{this._executeOnStable(()=>re(this.focusFirstTabbableElement(ee)))})}focusLastTabbableElementWhenReady(ee){return new Promise(re=>{this._executeOnStable(()=>re(this.focusLastTabbableElement(ee)))})}_getRegionBoundary(ee){const re=this._element.querySelectorAll(`[cdk-focus-region-${ee}], [cdkFocusRegion${ee}], [cdk-focus-${ee}]`);return"start"==ee?re.length?re[0]:this._getFirstTabbableElement(this._element):re.length?re[re.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ee){const re=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(re){if(!this._checker.isFocusable(re)){const Me=this._getFirstTabbableElement(re);return null==Me||Me.focus(ee),!!Me}return re.focus(ee),!0}return this.focusFirstTabbableElement(ee)}focusFirstTabbableElement(ee){const re=this._getRegionBoundary("start");return re&&re.focus(ee),!!re}focusLastTabbableElement(ee){const re=this._getRegionBoundary("end");return re&&re.focus(ee),!!re}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ee){if(this._checker.isFocusable(ee)&&this._checker.isTabbable(ee))return ee;const re=ee.children;for(let Me=0;Me=0;Me--){const ze=re[Me].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(re[Me]):null;if(ze)return ze}return null}_createAnchor(){const ee=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ee),ee.classList.add("cdk-visually-hidden"),ee.classList.add("cdk-focus-trap-anchor"),ee.setAttribute("aria-hidden","true"),ee}_toggleAnchorTabIndex(ee,re){ee?re.setAttribute("tabindex","0"):re.removeAttribute("tabindex")}toggleAnchors(ee){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ee,this._startAnchor),this._toggleAnchorTabIndex(ee,this._endAnchor))}_executeOnStable(ee){this._ngZone.isStable?ee():this._ngZone.onStable.pipe((0,c.q)(1)).subscribe(ee)}}let At=(()=>{class Se{constructor(re,Me,ze){this._checker=re,this._ngZone=Me,this._document=ze}create(re,Me=!1){return new _t(re,this._checker,this._ngZone,this._document,Me)}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(le),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Tt=(()=>{class Se{constructor(re,Me,ze){this._elementRef=re,this._focusTrapFactory=Me,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(re){this.focusTrap.enabled=(0,E.Ig)(re)}get autoCapture(){return this._autoCapture}set autoCapture(re){this._autoCapture=(0,E.Ig)(re)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(re){const Me=re.autoCapture;Me&&!Me.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,T.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(At),f.\u0275\u0275directiveInject(n.DOCUMENT))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[f.\u0275\u0275NgOnChangesFeature]}),Se})();function x(Se){return 0===Se.offsetX&&0===Se.offsetY}function U(Se){const ee=Se.touches&&Se.touches[0]||Se.changedTouches&&Se.changedTouches[0];return!(!ee||-1!==ee.identifier||null!=ee.radiusX&&1!==ee.radiusX||null!=ee.radiusY&&1!==ee.radiusY)}const Z=new f.InjectionToken("cdk-input-modality-detector-options"),_e={ignoreKeys:[u.zL,u.jx,u.b2,u.MW,u.JU]},$e=(0,T.i$)({passive:!0,capture:!0});let st=(()=>{class Se{constructor(re,Me,ze,It){this._platform=re,this._mostRecentTarget=null,this._modality=new o.X(null),this._lastTouchMs=0,this._onKeydown=Qt=>{var cn,An;(null===(An=null===(cn=this._options)||void 0===cn?void 0:cn.ignoreKeys)||void 0===An?void 0:An.some(lt=>lt===Qt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,T.sA)(Qt))},this._onMousedown=Qt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(x(Qt)?"keyboard":"mouse"),this._mostRecentTarget=(0,T.sA)(Qt))},this._onTouchstart=Qt=>{U(Qt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,T.sA)(Qt))},this._options=Object.assign(Object.assign({},_e),It),this.modalityDetected=this._modality.pipe((0,l.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),re.isBrowser&&Me.runOutsideAngular(()=>{ze.addEventListener("keydown",this._onKeydown,$e),ze.addEventListener("mousedown",this._onMousedown,$e),ze.addEventListener("touchstart",this._onTouchstart,$e)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,$e),document.removeEventListener("mousedown",this._onMousedown,$e),document.removeEventListener("touchstart",this._onTouchstart,$e))}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(T.t4),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(Z,8))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ut=new f.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Xt=new f.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let tn=(()=>{class Se{constructor(re,Me,ze,It){this._ngZone=Me,this._defaultOptions=It,this._document=ze,this._liveElement=re||this._createLiveElement()}announce(re,...Me){const ze=this._defaultOptions;let It,Qt;return 1===Me.length&&"number"==typeof Me[0]?Qt=Me[0]:[It,Qt]=Me,this.clear(),clearTimeout(this._previousTimeout),It||(It=ze&&ze.politeness?ze.politeness:"polite"),null==Qt&&ze&&(Qt=ze.duration),this._liveElement.setAttribute("aria-live",It),this._ngZone.runOutsideAngular(()=>new Promise(cn=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=re,cn(),"number"==typeof Qt&&(this._previousTimeout=setTimeout(()=>this.clear(),Qt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var re;clearTimeout(this._previousTimeout),null===(re=this._liveElement)||void 0===re||re.remove(),this._liveElement=null}_createLiveElement(){const re="cdk-live-announcer-element",Me=this._document.getElementsByClassName(re),ze=this._document.createElement("div");for(let It=0;It{class Se{constructor(re,Me,ze,It){this._elementRef=re,this._liveAnnouncer=Me,this._contentObserver=ze,this._ngZone=It,this._politeness="polite"}get politeness(){return this._politeness}set politeness(re){this._politeness="off"===re||"assertive"===re?re:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const Me=this._elementRef.nativeElement.textContent;Me!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(Me,this._politeness),this._previousAnnouncedText=Me)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(tn),f.\u0275\u0275directiveInject(D.yq),f.\u0275\u0275directiveInject(f.NgZone))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Se})();const Kt=new f.InjectionToken("cdk-focus-monitor-default-options"),et=(0,T.i$)({passive:!0,capture:!0});let xt=(()=>{class Se{constructor(re,Me,ze,It,Qt){this._ngZone=re,this._platform=Me,this._inputModalityDetector=ze,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new v.xQ,this._rootNodeFocusAndBlurListener=cn=>{const An=(0,T.sA)(cn),lt="focus"===cn.type?this._onFocus:this._onBlur;for(let ct=An;ct;ct=ct.parentElement)lt.call(this,cn,ct)},this._document=It,this._detectionMode=(null==Qt?void 0:Qt.detectionMode)||0}monitor(re,Me=!1){const ze=(0,E.fI)(re);if(!this._platform.isBrowser||1!==ze.nodeType)return(0,d.of)(null);const It=(0,T.kV)(ze)||this._getDocument(),Qt=this._elementInfo.get(ze);if(Qt)return Me&&(Qt.checkChildren=!0),Qt.subject;const cn={checkChildren:Me,subject:new v.xQ,rootNode:It};return this._elementInfo.set(ze,cn),this._registerGlobalListeners(cn),cn.subject}stopMonitoring(re){const Me=(0,E.fI)(re),ze=this._elementInfo.get(Me);ze&&(ze.subject.complete(),this._setClasses(Me),this._elementInfo.delete(Me),this._removeGlobalListeners(ze))}focusVia(re,Me,ze){const It=(0,E.fI)(re);It===this._getDocument().activeElement?this._getClosestElementsInfo(It).forEach(([cn,An])=>this._originChanged(cn,Me,An)):(this._setOrigin(Me),"function"==typeof It.focus&&It.focus(ze))}ngOnDestroy(){this._elementInfo.forEach((re,Me)=>this.stopMonitoring(Me))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(re){return 1===this._detectionMode||!!(null==re?void 0:re.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(re,Me){re.classList.toggle("cdk-focused",!!Me),re.classList.toggle("cdk-touch-focused","touch"===Me),re.classList.toggle("cdk-keyboard-focused","keyboard"===Me),re.classList.toggle("cdk-mouse-focused","mouse"===Me),re.classList.toggle("cdk-program-focused","program"===Me)}_setOrigin(re,Me=!1){this._ngZone.runOutsideAngular(()=>{this._origin=re,this._originFromTouchInteraction="touch"===re&&Me,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(re,Me){const ze=this._elementInfo.get(Me),It=(0,T.sA)(re);!ze||!ze.checkChildren&&Me!==It||this._originChanged(Me,this._getFocusOrigin(It),ze)}_onBlur(re,Me){const ze=this._elementInfo.get(Me);!ze||ze.checkChildren&&re.relatedTarget instanceof Node&&Me.contains(re.relatedTarget)||(this._setClasses(Me),this._emitOrigin(ze.subject,null))}_emitOrigin(re,Me){this._ngZone.run(()=>re.next(Me))}_registerGlobalListeners(re){if(!this._platform.isBrowser)return;const Me=re.rootNode,ze=this._rootNodeFocusListenerCount.get(Me)||0;ze||this._ngZone.runOutsideAngular(()=>{Me.addEventListener("focus",this._rootNodeFocusAndBlurListener,et),Me.addEventListener("blur",this._rootNodeFocusAndBlurListener,et)}),this._rootNodeFocusListenerCount.set(Me,ze+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,y.R)(this._stopInputModalityDetector)).subscribe(It=>{this._setOrigin(It,!0)}))}_removeGlobalListeners(re){const Me=re.rootNode;if(this._rootNodeFocusListenerCount.has(Me)){const ze=this._rootNodeFocusListenerCount.get(Me);ze>1?this._rootNodeFocusListenerCount.set(Me,ze-1):(Me.removeEventListener("focus",this._rootNodeFocusAndBlurListener,et),Me.removeEventListener("blur",this._rootNodeFocusAndBlurListener,et),this._rootNodeFocusListenerCount.delete(Me))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(re,Me,ze){this._setClasses(re,Me),this._emitOrigin(ze.subject,Me),this._lastFocusOrigin=Me}_getClosestElementsInfo(re){const Me=[];return this._elementInfo.forEach((ze,It)=>{(It===re||ze.checkChildren&&It.contains(re))&&Me.push([It,ze])}),Me}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(T.t4),f.\u0275\u0275inject(st),f.\u0275\u0275inject(n.DOCUMENT,8),f.\u0275\u0275inject(Kt,8))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Lt=(()=>{class Se{constructor(re,Me){this._elementRef=re,this._focusMonitor=Me,this.cdkFocusChange=new f.EventEmitter}ngAfterViewInit(){const re=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(re,1===re.nodeType&&re.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Me=>this.cdkFocusChange.emit(Me))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(xt))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Se})();const Qe="cdk-high-contrast-black-on-white",mt="cdk-high-contrast-white-on-black",Vt="cdk-high-contrast-active";let qt=(()=>{class Se{constructor(re,Me){this._platform=re,this._document=Me}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const re=this._document.createElement("div");re.style.backgroundColor="rgb(1,2,3)",re.style.position="absolute",this._document.body.appendChild(re);const Me=this._document.defaultView||window,ze=Me&&Me.getComputedStyle?Me.getComputedStyle(re):null,It=(ze&&ze.backgroundColor||"").replace(/ /g,"");switch(re.remove(),It){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const re=this._document.body.classList;re.remove(Vt),re.remove(Qe),re.remove(mt),this._hasCheckedHighContrastMode=!0;const Me=this.getHighContrastMode();1===Me?(re.add(Vt),re.add(Qe)):2===Me&&(re.add(Vt),re.add(mt))}}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(T.t4),f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Ne=(()=>{class Se{constructor(re){re._applyBodyHighContrastModeCssClasses()}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(qt))},Se.\u0275mod=f.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=f.\u0275\u0275defineInjector({imports:[[T.ud,D.Q8]]}),Se})()},226:(ye,j,p)=>{"use strict";p.d(j,{vT:()=>r,Is:()=>u});var n=p(5e3),f=p(9808);const v=new n.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.inject)(f.DOCUMENT)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let u=(()=>{class s{constructor(c){if(this.value="ltr",this.change=new n.EventEmitter,c){const g=c.documentElement?c.documentElement.dir:null;this.value=function(s){const i=(null==s?void 0:s.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?o.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((c.body?c.body.dir:null)||g||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(c){return new(c||s)(n.\u0275\u0275inject(v,8))},s.\u0275prov=n.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),r=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=n.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=n.\u0275\u0275defineInjector({}),s})()},3191:(ye,j,p)=>{"use strict";p.d(j,{t6:()=>m,Eq:()=>o,Ig:()=>f,HM:()=>d,fI:()=>u,su:()=>v,du:()=>h});var n=p(5e3);function f(r){return null!=r&&"false"!=`${r}`}function v(r,s=0){return m(r)?Number(r):s}function m(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function o(r){return Array.isArray(r)?r:[r]}function d(r){return null==r?"":"string"==typeof r?r:`${r}px`}function u(r){return r instanceof n.ElementRef?r.nativeElement:r}function h(r,s=/\s+/){const i=[];if(null!=r){const c=Array.isArray(r)?r:`${r}`.split(s);for(const l of c){const g=`${l}`.trim();g&&i.push(g)}}return i}},449:(ye,j,p)=>{"use strict";p.d(j,{o2:()=>v,Ov:()=>h,A8:()=>s,yy:()=>d,eX:()=>u,k:()=>i,Z9:()=>m});var n=p(8929),f=p(5e3);class v{}function m(c){return c&&"function"==typeof c.connect}class d{applyChanges(l,g,y,E,T){l.forEachOperation((D,O,w)=>{let A,S;if(null==D.previousIndex){const M=y(D,O,w);A=g.createEmbeddedView(M.templateRef,M.context,M.index),S=1}else null==w?(g.remove(O),S=3):(A=g.get(O),g.move(A,w),S=2);T&&T({context:null==A?void 0:A.context,operation:S,record:D})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(l,g,y,E,T){l.forEachOperation((D,O,w)=>{let A,S;null==D.previousIndex?(A=this._insertView(()=>y(D,O,w),w,g,E(D)),S=A?1:0):null==w?(this._detachAndCacheView(O,g),S=3):(A=this._moveView(O,w,g,E(D)),S=2),T&&T({context:null==A?void 0:A.context,operation:S,record:D})})}detach(){for(const l of this._viewCache)l.destroy();this._viewCache=[]}_insertView(l,g,y,E){const T=this._insertViewFromCache(g,y);if(T)return void(T.context.$implicit=E);const D=l();return y.createEmbeddedView(D.templateRef,D.context,D.index)}_detachAndCacheView(l,g){const y=g.detach(l);this._maybeCacheView(y,g)}_moveView(l,g,y,E){const T=y.get(l);return y.move(T,g),T.context.$implicit=E,T}_maybeCacheView(l,g){if(this._viewCache.lengththis._markSelected(E)):this._markSelected(g[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...l){this._verifyValueAssignment(l),l.forEach(g=>this._markSelected(g)),this._emitChangeEvent()}deselect(...l){this._verifyValueAssignment(l),l.forEach(g=>this._unmarkSelected(g)),this._emitChangeEvent()}toggle(l){this.isSelected(l)?this.deselect(l):this.select(l)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(l){return this._selection.has(l)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(l){this._multiple&&this.selected&&this._selected.sort(l)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(l){this.isSelected(l)||(this._multiple||this._unmarkAll(),this._selection.add(l),this._emitChanges&&this._selectedToEmit.push(l))}_unmarkSelected(l){this.isSelected(l)&&(this._selection.delete(l),this._emitChanges&&this._deselectedToEmit.push(l))}_unmarkAll(){this.isEmpty()||this._selection.forEach(l=>this._unmarkSelected(l))}_verifyValueAssignment(l){}}let s=(()=>{class c{constructor(){this._listeners=[]}notify(g,y){for(let E of this._listeners)E(g,y)}listen(g){return this._listeners.push(g),()=>{this._listeners=this._listeners.filter(y=>g!==y)}}ngOnDestroy(){this._listeners=[]}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=f.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const i=new f.InjectionToken("_ViewRepeater")},1159:(ye,j,p)=>{"use strict";p.d(j,{A:()=>Ye,zL:()=>h,ZH:()=>f,jx:()=>u,JH:()=>w,uR:()=>y,K5:()=>o,hY:()=>i,Sd:()=>E,oh:()=>T,b2:()=>ti,MW:()=>St,aO:()=>ie,VM:()=>g,Ku:()=>l,SV:()=>O,JU:()=>d,L_:()=>c,Mf:()=>v,LH:()=>D,Z:()=>ut,xE:()=>b,Vb:()=>jn});const f=8,v=9,o=13,d=16,u=17,h=18,i=27,c=32,l=33,g=34,y=35,E=36,T=37,D=38,O=39,w=40,b=48,ie=57,Ye=65,ut=90,St=91,ti=224;function jn(Qn,...kn){return kn.length?kn.some(Mi=>Qn[Mi]):Qn.altKey||Qn.shiftKey||Qn.ctrlKey||Qn.metaKey}},7144:(ye,j,p)=>{"use strict";p.d(j,{wD:()=>h,yq:()=>u,Q8:()=>r});var n=p(3191),f=p(5e3),v=p(6498),m=p(8929),o=p(13);let d=(()=>{class s{create(c){return"undefined"==typeof MutationObserver?null:new MutationObserver(c)}}return s.\u0275fac=function(c){return new(c||s)},s.\u0275prov=f.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),u=(()=>{class s{constructor(c){this._mutationObserverFactory=c,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((c,l)=>this._cleanupObserver(l))}observe(c){const l=(0,n.fI)(c);return new v.y(g=>{const E=this._observeElement(l).subscribe(g);return()=>{E.unsubscribe(),this._unobserveElement(l)}})}_observeElement(c){if(this._observedElements.has(c))this._observedElements.get(c).count++;else{const l=new m.xQ,g=this._mutationObserverFactory.create(y=>l.next(y));g&&g.observe(c,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(c,{observer:g,stream:l,count:1})}return this._observedElements.get(c).stream}_unobserveElement(c){this._observedElements.has(c)&&(this._observedElements.get(c).count--,this._observedElements.get(c).count||this._cleanupObserver(c))}_cleanupObserver(c){if(this._observedElements.has(c)){const{observer:l,stream:g}=this._observedElements.get(c);l&&l.disconnect(),g.complete(),this._observedElements.delete(c)}}}return s.\u0275fac=function(c){return new(c||s)(f.\u0275\u0275inject(d))},s.\u0275prov=f.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),h=(()=>{class s{constructor(c,l,g){this._contentObserver=c,this._elementRef=l,this._ngZone=g,this.event=new f.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(c){this._disabled=(0,n.Ig)(c),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(c){this._debounce=(0,n.su)(c),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const c=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?c.pipe((0,o.b)(this.debounce)):c).subscribe(this.event)})}_unsubscribe(){var c;null===(c=this._currentSubscription)||void 0===c||c.unsubscribe()}}return s.\u0275fac=function(c){return new(c||s)(f.\u0275\u0275directiveInject(u),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(f.NgZone))},s.\u0275dir=f.\u0275\u0275defineDirective({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),r=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=f.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=f.\u0275\u0275defineInjector({providers:[d]}),s})()},1314:(ye,j,p)=>{"use strict";p.d(j,{pI:()=>_t,xu:()=>ot,_G:()=>ie,aV:()=>ft,X_:()=>I,U8:()=>Bt});var n=p(9071),f=p(9808),v=p(5e3),m=p(3191),o=p(925),d=p(226),u=p(7429),h=p(8929),r=p(2654),s=p(6787),i=p(2986),c=p(7625),l=p(4290),g=p(1159);const y=(0,o.Mq)();class E{constructor(fe,H){this._viewportRuler=fe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=H}attach(){}enable(){if(this._canBeEnabled()){const fe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=fe.style.left||"",this._previousHTMLStyles.top=fe.style.top||"",fe.style.left=(0,m.HM)(-this._previousScrollPosition.left),fe.style.top=(0,m.HM)(-this._previousScrollPosition.top),fe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const fe=this._document.documentElement,x=fe.style,U=this._document.body.style,Z=x.scrollBehavior||"",_e=U.scrollBehavior||"";this._isEnabled=!1,x.left=this._previousHTMLStyles.left,x.top=this._previousHTMLStyles.top,fe.classList.remove("cdk-global-scrollblock"),y&&(x.scrollBehavior=U.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),y&&(x.scrollBehavior=Z,U.scrollBehavior=_e)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const H=this._document.body,x=this._viewportRuler.getViewportSize();return H.scrollHeight>x.height||H.scrollWidth>x.width}}class D{constructor(fe,H,x,U){this._scrollDispatcher=fe,this._ngZone=H,this._viewportRuler=x,this._config=U,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(fe){this._overlayRef=fe}enable(){if(this._scrollSubscription)return;const fe=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=fe.subscribe(()=>{const H=this._viewportRuler.getViewportScrollPosition().top;Math.abs(H-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=fe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class O{enable(){}disable(){}attach(){}}function w(Ee,fe){return fe.some(H=>Ee.bottomH.bottom||Ee.rightH.right)}function A(Ee,fe){return fe.some(H=>Ee.topH.bottom||Ee.leftH.right)}class S{constructor(fe,H,x,U){this._scrollDispatcher=fe,this._viewportRuler=H,this._ngZone=x,this._config=U,this._scrollSubscription=null}attach(fe){this._overlayRef=fe}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 H=this._overlayRef.overlayElement.getBoundingClientRect(),{width:x,height:U}=this._viewportRuler.getViewportSize();w(H,[{width:x,height:U,bottom:U,right:x,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 M=(()=>{class Ee{constructor(H,x,U,Z){this._scrollDispatcher=H,this._viewportRuler=x,this._ngZone=U,this.noop=()=>new O,this.close=_e=>new D(this._scrollDispatcher,this._ngZone,this._viewportRuler,_e),this.block=()=>new E(this._viewportRuler,this._document),this.reposition=_e=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,_e),this._document=Z}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(n.mF),v.\u0275\u0275inject(n.rL),v.\u0275\u0275inject(v.NgZone),v.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();class I{constructor(fe){if(this.scrollStrategy=new O,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,fe){const H=Object.keys(fe);for(const x of H)void 0!==fe[x]&&(this[x]=fe[x])}}}class F{constructor(fe,H){this.connectionPair=fe,this.scrollableViewProperties=H}}class Q{constructor(fe,H,x,U,Z,_e,Be,$e,st){this._portalOutlet=fe,this._host=H,this._pane=x,this._config=U,this._ngZone=Z,this._keyboardDispatcher=_e,this._document=Be,this._location=$e,this._outsideClickDispatcher=st,this._backdropElement=null,this._backdropClick=new h.xQ,this._attachments=new h.xQ,this._detachments=new h.xQ,this._locationChanges=r.w.EMPTY,this._backdropClickHandler=ut=>this._backdropClick.next(ut),this._keydownEvents=new h.xQ,this._outsidePointerEvents=new h.xQ,U.scrollStrategy&&(this._scrollStrategy=U.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=U.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(fe){let H=this._portalOutlet.attach(fe);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((0,i.q)(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),H}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const fe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),fe}dispose(){var fe;const H=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(fe=this._host)||void 0===fe||fe.remove(),this._previousHostParent=this._pane=this._host=null,H&&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(fe){fe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=fe,this.hasAttached()&&(fe.attach(this),this.updatePosition()))}updateSize(fe){this._config=Object.assign(Object.assign({},this._config),fe),this._updateElementSize()}setDirection(fe){this._config=Object.assign(Object.assign({},this._config),{direction:fe}),this._updateElementDirection()}addPanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!0)}removePanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!1)}getDirection(){const fe=this._config.direction;return fe?"string"==typeof fe?fe:fe.value:"ltr"}updateScrollStrategy(fe){fe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=fe,this.hasAttached()&&(fe.attach(this),fe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const fe=this._pane.style;fe.width=(0,m.HM)(this._config.width),fe.height=(0,m.HM)(this._config.height),fe.minWidth=(0,m.HM)(this._config.minWidth),fe.minHeight=(0,m.HM)(this._config.minHeight),fe.maxWidth=(0,m.HM)(this._config.maxWidth),fe.maxHeight=(0,m.HM)(this._config.maxHeight)}_togglePointerEvents(fe){this._pane.style.pointerEvents=fe?"":"none"}_attachBackdrop(){const fe="cdk-overlay-backdrop-showing";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(fe)})}):this._backdropElement.classList.add(fe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const fe=this._backdropElement;if(!fe)return;let H;const x=()=>{fe&&(fe.removeEventListener("click",this._backdropClickHandler),fe.removeEventListener("transitionend",x),this._disposeBackdrop(fe)),this._config.backdropClass&&this._toggleClasses(fe,this._config.backdropClass,!1),clearTimeout(H)};fe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{fe.addEventListener("transitionend",x)}),fe.style.pointerEvents="none",H=this._ngZone.runOutsideAngular(()=>setTimeout(x,500))}_toggleClasses(fe,H,x){const U=(0,m.Eq)(H||[]).filter(Z=>!!Z);U.length&&(x?fe.classList.add(...U):fe.classList.remove(...U))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const fe=this._ngZone.onStable.pipe((0,c.R)((0,s.T)(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._host.remove()),fe.unsubscribe())})})}_disposeScrollStrategy(){const fe=this._scrollStrategy;fe&&(fe.disable(),fe.detach&&fe.detach())}_disposeBackdrop(fe){fe&&(fe.remove(),this._backdropElement===fe&&(this._backdropElement=null))}}let te=(()=>{class Ee{constructor(H,x){this._platform=x,this._document=H}ngOnDestroy(){var H;null===(H=this._containerElement)||void 0===H||H.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const H="cdk-overlay-container";if(this._platform.isBrowser||(0,o.Oy)()){const U=this._document.querySelectorAll(`.${H}[platform="server"], .${H}[platform="test"]`);for(let Z=0;Z{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 fe=this._originRect,H=this._overlayRect,x=this._viewportRect,U=[];let Z;for(let _e of this._preferredPositions){let Be=this._getOriginPoint(fe,_e),$e=this._getOverlayPoint(Be,H,_e),st=this._getOverlayFit($e,H,x,_e);if(st.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(_e,Be);this._canFitWithFlexibleDimensions(st,$e,x)?U.push({position:_e,origin:Be,overlayRect:H,boundingBoxRect:this._calculateBoundingBoxRect(Be,_e)}):(!Z||Z.overlayFit.visibleAreaBe&&(Be=st,_e=$e)}return this._isPushed=!1,void this._applyPosition(_e.position,_e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Z.position,Z.originPoint);this._applyPosition(Z.position,Z.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ae(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove($),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 fe=this._lastPosition||this._preferredPositions[0],H=this._getOriginPoint(this._originRect,fe);this._applyPosition(fe,H)}}withScrollableContainers(fe){return this._scrollables=fe,this}withPositions(fe){return this._preferredPositions=fe,-1===fe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(fe){return this._viewportMargin=fe,this}withFlexibleDimensions(fe=!0){return this._hasFlexibleDimensions=fe,this}withGrowAfterOpen(fe=!0){return this._growAfterOpen=fe,this}withPush(fe=!0){return this._canPush=fe,this}withLockedPosition(fe=!0){return this._positionLocked=fe,this}setOrigin(fe){return this._origin=fe,this}withDefaultOffsetX(fe){return this._offsetX=fe,this}withDefaultOffsetY(fe){return this._offsetY=fe,this}withTransformOriginOn(fe){return this._transformOriginSelector=fe,this}_getOriginPoint(fe,H){let x,U;if("center"==H.originX)x=fe.left+fe.width/2;else{const Z=this._isRtl()?fe.right:fe.left,_e=this._isRtl()?fe.left:fe.right;x="start"==H.originX?Z:_e}return U="center"==H.originY?fe.top+fe.height/2:"top"==H.originY?fe.top:fe.bottom,{x,y:U}}_getOverlayPoint(fe,H,x){let U,Z;return U="center"==x.overlayX?-H.width/2:"start"===x.overlayX?this._isRtl()?-H.width:0:this._isRtl()?0:-H.width,Z="center"==x.overlayY?-H.height/2:"top"==x.overlayY?0:-H.height,{x:fe.x+U,y:fe.y+Z}}_getOverlayFit(fe,H,x,U){const Z=Oe(H);let{x:_e,y:Be}=fe,$e=this._getOffset(U,"x"),st=this._getOffset(U,"y");$e&&(_e+=$e),st&&(Be+=st);let Xt=0-Be,tn=Be+Z.height-x.height,Dt=this._subtractOverflows(Z.width,0-_e,_e+Z.width-x.width),Kt=this._subtractOverflows(Z.height,Xt,tn),et=Dt*Kt;return{visibleArea:et,isCompletelyWithinViewport:Z.width*Z.height===et,fitsInViewportVertically:Kt===Z.height,fitsInViewportHorizontally:Dt==Z.width}}_canFitWithFlexibleDimensions(fe,H,x){if(this._hasFlexibleDimensions){const U=x.bottom-H.y,Z=x.right-H.x,_e=le(this._overlayRef.getConfig().minHeight),Be=le(this._overlayRef.getConfig().minWidth),st=fe.fitsInViewportHorizontally||null!=Be&&Be<=Z;return(fe.fitsInViewportVertically||null!=_e&&_e<=U)&&st}return!1}_pushOverlayOnScreen(fe,H,x){if(this._previousPushAmount&&this._positionLocked)return{x:fe.x+this._previousPushAmount.x,y:fe.y+this._previousPushAmount.y};const U=Oe(H),Z=this._viewportRect,_e=Math.max(fe.x+U.width-Z.width,0),Be=Math.max(fe.y+U.height-Z.height,0),$e=Math.max(Z.top-x.top-fe.y,0),st=Math.max(Z.left-x.left-fe.x,0);let ut=0,St=0;return ut=U.width<=Z.width?st||-_e:fe.xDt&&!this._isInitialRender&&!this._growAfterOpen&&(_e=fe.y-Dt/2)}if("end"===H.overlayX&&!U||"start"===H.overlayX&&U)Xt=x.width-fe.x+this._viewportMargin,ut=fe.x-this._viewportMargin;else if("start"===H.overlayX&&!U||"end"===H.overlayX&&U)St=fe.x,ut=x.right-fe.x;else{const tn=Math.min(x.right-fe.x+x.left,fe.x),Dt=this._lastBoundingBoxSize.width;ut=2*tn,St=fe.x-tn,ut>Dt&&!this._isInitialRender&&!this._growAfterOpen&&(St=fe.x-Dt/2)}return{top:_e,left:St,bottom:Be,right:Xt,width:ut,height:Z}}_setBoundingBoxStyles(fe,H){const x=this._calculateBoundingBoxRect(fe,H);!this._isInitialRender&&!this._growAfterOpen&&(x.height=Math.min(x.height,this._lastBoundingBoxSize.height),x.width=Math.min(x.width,this._lastBoundingBoxSize.width));const U={};if(this._hasExactPosition())U.top=U.left="0",U.bottom=U.right=U.maxHeight=U.maxWidth="",U.width=U.height="100%";else{const Z=this._overlayRef.getConfig().maxHeight,_e=this._overlayRef.getConfig().maxWidth;U.height=(0,m.HM)(x.height),U.top=(0,m.HM)(x.top),U.bottom=(0,m.HM)(x.bottom),U.width=(0,m.HM)(x.width),U.left=(0,m.HM)(x.left),U.right=(0,m.HM)(x.right),U.alignItems="center"===H.overlayX?"center":"end"===H.overlayX?"flex-end":"flex-start",U.justifyContent="center"===H.overlayY?"center":"bottom"===H.overlayY?"flex-end":"flex-start",Z&&(U.maxHeight=(0,m.HM)(Z)),_e&&(U.maxWidth=(0,m.HM)(_e))}this._lastBoundingBoxSize=x,ae(this._boundingBox.style,U)}_resetBoundingBoxStyles(){ae(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ae(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(fe,H){const x={},U=this._hasExactPosition(),Z=this._hasFlexibleDimensions,_e=this._overlayRef.getConfig();if(U){const ut=this._viewportRuler.getViewportScrollPosition();ae(x,this._getExactOverlayY(H,fe,ut)),ae(x,this._getExactOverlayX(H,fe,ut))}else x.position="static";let Be="",$e=this._getOffset(H,"x"),st=this._getOffset(H,"y");$e&&(Be+=`translateX(${$e}px) `),st&&(Be+=`translateY(${st}px)`),x.transform=Be.trim(),_e.maxHeight&&(U?x.maxHeight=(0,m.HM)(_e.maxHeight):Z&&(x.maxHeight="")),_e.maxWidth&&(U?x.maxWidth=(0,m.HM)(_e.maxWidth):Z&&(x.maxWidth="")),ae(this._pane.style,x)}_getExactOverlayY(fe,H,x){let U={top:"",bottom:""},Z=this._getOverlayPoint(H,this._overlayRect,fe);this._isPushed&&(Z=this._pushOverlayOnScreen(Z,this._overlayRect,x));let _e=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Z.y-=_e,"bottom"===fe.overlayY?U.bottom=this._document.documentElement.clientHeight-(Z.y+this._overlayRect.height)+"px":U.top=(0,m.HM)(Z.y),U}_getExactOverlayX(fe,H,x){let _e,U={left:"",right:""},Z=this._getOverlayPoint(H,this._overlayRect,fe);return this._isPushed&&(Z=this._pushOverlayOnScreen(Z,this._overlayRect,x)),_e=this._isRtl()?"end"===fe.overlayX?"left":"right":"end"===fe.overlayX?"right":"left","right"===_e?U.right=this._document.documentElement.clientWidth-(Z.x+this._overlayRect.width)+"px":U.left=(0,m.HM)(Z.x),U}_getScrollVisibility(){const fe=this._getOriginRect(),H=this._pane.getBoundingClientRect(),x=this._scrollables.map(U=>U.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:A(fe,x),isOriginOutsideView:w(fe,x),isOverlayClipped:A(H,x),isOverlayOutsideView:w(H,x)}}_subtractOverflows(fe,...H){return H.reduce((x,U)=>x-Math.max(U,0),fe)}_getNarrowedViewportRect(){const fe=this._document.documentElement.clientWidth,H=this._document.documentElement.clientHeight,x=this._viewportRuler.getViewportScrollPosition();return{top:x.top+this._viewportMargin,left:x.left+this._viewportMargin,right:x.left+fe-this._viewportMargin,bottom:x.top+H-this._viewportMargin,width:fe-2*this._viewportMargin,height:H-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(fe,H){return"x"===H?null==fe.offsetX?this._offsetX:fe.offsetX:null==fe.offsetY?this._offsetY:fe.offsetY}_validatePositions(){}_addPanelClasses(fe){this._pane&&(0,m.Eq)(fe).forEach(H=>{""!==H&&-1===this._appliedPanelClasses.indexOf(H)&&(this._appliedPanelClasses.push(H),this._pane.classList.add(H))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(fe=>{this._pane.classList.remove(fe)}),this._appliedPanelClasses=[])}_getOriginRect(){const fe=this._origin;if(fe instanceof v.ElementRef)return fe.nativeElement.getBoundingClientRect();if(fe instanceof Element)return fe.getBoundingClientRect();const H=fe.width||0,x=fe.height||0;return{top:fe.y,bottom:fe.y+x,left:fe.x,right:fe.x+H,height:x,width:H}}}function ae(Ee,fe){for(let H in fe)fe.hasOwnProperty(H)&&(Ee[H]=fe[H]);return Ee}function le(Ee){if("number"!=typeof Ee&&null!=Ee){const[fe,H]=Ee.split(J);return H&&"px"!==H?null:parseFloat(fe)}return Ee||null}function Oe(Ee){return{top:Math.floor(Ee.top),right:Math.floor(Ee.right),bottom:Math.floor(Ee.bottom),left:Math.floor(Ee.left),width:Math.floor(Ee.width),height:Math.floor(Ee.height)}}const Le="cdk-global-overlay-wrapper";class Ye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(fe){const H=fe.getConfig();this._overlayRef=fe,this._width&&!H.width&&fe.updateSize({width:this._width}),this._height&&!H.height&&fe.updateSize({height:this._height}),fe.hostElement.classList.add(Le),this._isDisposed=!1}top(fe=""){return this._bottomOffset="",this._topOffset=fe,this._alignItems="flex-start",this}left(fe=""){return this._rightOffset="",this._leftOffset=fe,this._justifyContent="flex-start",this}bottom(fe=""){return this._topOffset="",this._bottomOffset=fe,this._alignItems="flex-end",this}right(fe=""){return this._leftOffset="",this._rightOffset=fe,this._justifyContent="flex-end",this}width(fe=""){return this._overlayRef?this._overlayRef.updateSize({width:fe}):this._width=fe,this}height(fe=""){return this._overlayRef?this._overlayRef.updateSize({height:fe}):this._height=fe,this}centerHorizontally(fe=""){return this.left(fe),this._justifyContent="center",this}centerVertically(fe=""){return this.top(fe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const fe=this._overlayRef.overlayElement.style,H=this._overlayRef.hostElement.style,x=this._overlayRef.getConfig(),{width:U,height:Z,maxWidth:_e,maxHeight:Be}=x,$e=!("100%"!==U&&"100vw"!==U||_e&&"100%"!==_e&&"100vw"!==_e),st=!("100%"!==Z&&"100vh"!==Z||Be&&"100%"!==Be&&"100vh"!==Be);fe.position=this._cssPosition,fe.marginLeft=$e?"0":this._leftOffset,fe.marginTop=st?"0":this._topOffset,fe.marginBottom=this._bottomOffset,fe.marginRight=this._rightOffset,$e?H.justifyContent="flex-start":"center"===this._justifyContent?H.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?H.justifyContent="flex-end":"flex-end"===this._justifyContent&&(H.justifyContent="flex-start"):H.justifyContent=this._justifyContent,H.alignItems=st?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const fe=this._overlayRef.overlayElement.style,H=this._overlayRef.hostElement,x=H.style;H.classList.remove(Le),x.justifyContent=x.alignItems=fe.marginTop=fe.marginBottom=fe.marginLeft=fe.marginRight=fe.position="",this._overlayRef=null,this._isDisposed=!0}}let Je=(()=>{class Ee{constructor(H,x,U,Z){this._viewportRuler=H,this._document=x,this._platform=U,this._overlayContainer=Z}global(){return new Ye}flexibleConnectedTo(H){return new ie(H,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(n.rL),v.\u0275\u0275inject(f.DOCUMENT),v.\u0275\u0275inject(o.t4),v.\u0275\u0275inject(te))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),gt=(()=>{class Ee{constructor(H){this._attachedOverlays=[],this._document=H}ngOnDestroy(){this.detach()}add(H){this.remove(H),this._attachedOverlays.push(H)}remove(H){const x=this._attachedOverlays.indexOf(H);x>-1&&this._attachedOverlays.splice(x,1),0===this._attachedOverlays.length&&this.detach()}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ue=(()=>{class Ee extends gt{constructor(H){super(H),this._keydownListener=x=>{const U=this._attachedOverlays;for(let Z=U.length-1;Z>-1;Z--)if(U[Z]._keydownEvents.observers.length>0){U[Z]._keydownEvents.next(x);break}}}add(H){super.add(H),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 Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),tt=(()=>{class Ee extends gt{constructor(H,x){super(H),this._platform=x,this._cursorStyleIsSet=!1,this._pointerDownListener=U=>{this._pointerDownEventTarget=(0,o.sA)(U)},this._clickListener=U=>{const Z=(0,o.sA)(U),_e="click"===U.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Z;this._pointerDownEventTarget=null;const Be=this._attachedOverlays.slice();for(let $e=Be.length-1;$e>-1;$e--){const st=Be[$e];if(!(st._outsidePointerEvents.observers.length<1)&&st.hasAttached()){if(st.overlayElement.contains(Z)||st.overlayElement.contains(_e))break;st._outsidePointerEvents.next(U)}}}}add(H){if(super.add(H),!this._isAttached){const x=this._document.body;x.addEventListener("pointerdown",this._pointerDownListener,!0),x.addEventListener("click",this._clickListener,!0),x.addEventListener("auxclick",this._clickListener,!0),x.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=x.style.cursor,x.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const H=this._document.body;H.removeEventListener("pointerdown",this._pointerDownListener,!0),H.removeEventListener("click",this._clickListener,!0),H.removeEventListener("auxclick",this._clickListener,!0),H.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(H.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(f.DOCUMENT),v.\u0275\u0275inject(o.t4))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),at=0,ft=(()=>{class Ee{constructor(H,x,U,Z,_e,Be,$e,st,ut,St,Xt){this.scrollStrategies=H,this._overlayContainer=x,this._componentFactoryResolver=U,this._positionBuilder=Z,this._keyboardDispatcher=_e,this._injector=Be,this._ngZone=$e,this._document=st,this._directionality=ut,this._location=St,this._outsideClickDispatcher=Xt}create(H){const x=this._createHostElement(),U=this._createPaneElement(x),Z=this._createPortalOutlet(U),_e=new I(H);return _e.direction=_e.direction||this._directionality.value,new Q(Z,x,U,_e,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(H){const x=this._document.createElement("div");return x.id="cdk-overlay-"+at++,x.classList.add("cdk-overlay-pane"),H.appendChild(x),x}_createHostElement(){const H=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(H),H}_createPortalOutlet(H){return this._appRef||(this._appRef=this._injector.get(v.ApplicationRef)),new u.u0(H,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(M),v.\u0275\u0275inject(te),v.\u0275\u0275inject(v.ComponentFactoryResolver),v.\u0275\u0275inject(Je),v.\u0275\u0275inject(Ue),v.\u0275\u0275inject(v.Injector),v.\u0275\u0275inject(v.NgZone),v.\u0275\u0275inject(f.DOCUMENT),v.\u0275\u0275inject(d.Is),v.\u0275\u0275inject(f.Location),v.\u0275\u0275inject(tt))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();const vt=[{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"}],yt=new v.InjectionToken("cdk-connected-overlay-scroll-strategy");let ot=(()=>{class Ee{constructor(H){this.elementRef=H}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275directiveInject(v.ElementRef))},Ee.\u0275dir=v.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Ee})(),_t=(()=>{class Ee{constructor(H,x,U,Z,_e){this._overlay=H,this._dir=_e,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=r.w.EMPTY,this._attachSubscription=r.w.EMPTY,this._detachSubscription=r.w.EMPTY,this._positionSubscription=r.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.EventEmitter,this.positionChange=new v.EventEmitter,this.attach=new v.EventEmitter,this.detach=new v.EventEmitter,this.overlayKeydown=new v.EventEmitter,this.overlayOutsideClick=new v.EventEmitter,this._templatePortal=new u.UE(x,U),this._scrollStrategyFactory=Z,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(H){this._offsetX=H,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(H){this._offsetY=H,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,m.Ig)(H)}get lockPosition(){return this._lockPosition}set lockPosition(H){this._lockPosition=(0,m.Ig)(H)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(H){this._flexibleDimensions=(0,m.Ig)(H)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(H){this._growAfterOpen=(0,m.Ig)(H)}get push(){return this._push}set push(H){this._push=(0,m.Ig)(H)}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(H){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),H.origin&&this.open&&this._position.apply()),H.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=vt);const H=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=H.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=H.detachments().subscribe(()=>this.detach.emit()),H.keydownEvents().subscribe(x=>{this.overlayKeydown.next(x),x.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(x)&&(x.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(x=>{this.overlayOutsideClick.next(x)})}_buildConfig(){const H=this._position=this.positionStrategy||this._createPositionStrategy(),x=new I({direction:this._dir,positionStrategy:H,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(x.width=this.width),(this.height||0===this.height)&&(x.height=this.height),(this.minWidth||0===this.minWidth)&&(x.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(x.minHeight=this.minHeight),this.backdropClass&&(x.backdropClass=this.backdropClass),this.panelClass&&(x.panelClass=this.panelClass),x}_updatePositionStrategy(H){const x=this.positions.map(U=>({originX:U.originX,originY:U.originY,overlayX:U.overlayX,overlayY:U.overlayY,offsetX:U.offsetX||this.offsetX,offsetY:U.offsetY||this.offsetY,panelClass:U.panelClass||void 0}));return H.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(x).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const H=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(H),H}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ot?this.origin.elementRef:this.origin}_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(H=>{this.backdropClick.emit(H)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,l.o)(()=>this.positionChange.observers.length>0)).subscribe(H=>{this.positionChange.emit(H),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275directiveInject(ft),v.\u0275\u0275directiveInject(v.TemplateRef),v.\u0275\u0275directiveInject(v.ViewContainerRef),v.\u0275\u0275directiveInject(yt),v.\u0275\u0275directiveInject(d.Is,8))},Ee.\u0275dir=v.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[v.\u0275\u0275NgOnChangesFeature]}),Ee})();const Tt={provide:yt,deps:[ft],useFactory:function(Ee){return()=>Ee.scrollStrategies.reposition()}};let Bt=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=v.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=v.\u0275\u0275defineInjector({providers:[ft,Tt],imports:[[d.vT,u.eL,n.Cl],n.Cl]}),Ee})()},925:(ye,j,p)=>{"use strict";p.d(j,{t4:()=>m,ud:()=>o,sA:()=>w,ht:()=>O,kV:()=>D,Oy:()=>A,qK:()=>h,i$:()=>i,Mq:()=>g});var n=p(5e3),f=p(9808);let v;try{v="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(S){v=!1}let d,m=(()=>{class S{constructor(I){this._platformId=I,this.isBrowser=this._platformId?(0,f.isPlatformBrowser)(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&&!v)&&"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 S.\u0275fac=function(I){return new(I||S)(n.\u0275\u0275inject(n.PLATFORM_ID))},S.\u0275prov=n.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),o=(()=>{class S{}return S.\u0275fac=function(I){return new(I||S)},S.\u0275mod=n.\u0275\u0275defineNgModule({type:S}),S.\u0275inj=n.\u0275\u0275defineInjector({}),S})();const u=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(d)return d;if("object"!=typeof document||!document)return d=new Set(u),d;let S=document.createElement("input");return d=new Set(u.filter(M=>(S.setAttribute("type",M),S.type===M))),d}let r,l,E;function i(S){return function(){if(null==r&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>r=!0}))}finally{r=r||!1}return r}()?S:!!S.capture}function g(){if(null==l){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return l=!1,l;if("scrollBehavior"in document.documentElement.style)l=!0;else{const S=Element.prototype.scrollTo;l=!!S&&!/\{\s*\[native code\]\s*\}/.test(S.toString())}}return l}function D(S){if(function(){if(null==E){const S="undefined"!=typeof document?document.head:null;E=!(!S||!S.createShadowRoot&&!S.attachShadow)}return E}()){const M=S.getRootNode?S.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&M instanceof ShadowRoot)return M}return null}function O(){let S="undefined"!=typeof document&&document?document.activeElement:null;for(;S&&S.shadowRoot;){const M=S.shadowRoot.activeElement;if(M===S)break;S=M}return S}function w(S){return S.composedPath?S.composedPath()[0]:S.target}function A(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(ye,j,p)=>{"use strict";p.d(j,{ig:()=>T,Pl:()=>O,C5:()=>s,u0:()=>y,eL:()=>A,UE:()=>i});var n=p(5e3),f=p(9808);class r{attach(I){return this._attachedHost=I,I.attach(this)}detach(){let I=this._attachedHost;null!=I&&(this._attachedHost=null,I.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(I){this._attachedHost=I}}class s extends r{constructor(I,b,L,F){super(),this.component=I,this.viewContainerRef=b,this.injector=L,this.componentFactoryResolver=F}}class i extends r{constructor(I,b,L){super(),this.templateRef=I,this.viewContainerRef=b,this.context=L}get origin(){return this.templateRef.elementRef}attach(I,b=this.context){return this.context=b,super.attach(I)}detach(){return this.context=void 0,super.detach()}}class c extends r{constructor(I){super(),this.element=I instanceof n.ElementRef?I.nativeElement:I}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(I){return I instanceof s?(this._attachedPortal=I,this.attachComponentPortal(I)):I instanceof i?(this._attachedPortal=I,this.attachTemplatePortal(I)):this.attachDomPortal&&I instanceof c?(this._attachedPortal=I,this.attachDomPortal(I)):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(I){this._disposeFn=I}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class y extends l{constructor(I,b,L,F,ne){super(),this.outletElement=I,this._componentFactoryResolver=b,this._appRef=L,this._defaultInjector=F,this.attachDomPortal=Y=>{const Q=Y.element,te=this._document.createComment("dom-portal");Q.parentNode.insertBefore(te,Q),this.outletElement.appendChild(Q),this._attachedPortal=Y,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(Q,te)})},this._document=ne}attachComponentPortal(I){const L=(I.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(I.component);let F;return I.viewContainerRef?(F=I.viewContainerRef.createComponent(L,I.viewContainerRef.length,I.injector||I.viewContainerRef.injector),this.setDisposeFn(()=>F.destroy())):(F=L.create(I.injector||this._defaultInjector),this._appRef.attachView(F.hostView),this.setDisposeFn(()=>{this._appRef.detachView(F.hostView),F.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(F)),this._attachedPortal=I,F}attachTemplatePortal(I){let b=I.viewContainerRef,L=b.createEmbeddedView(I.templateRef,I.context);return L.rootNodes.forEach(F=>this.outletElement.appendChild(F)),L.detectChanges(),this.setDisposeFn(()=>{let F=b.indexOf(L);-1!==F&&b.remove(F)}),this._attachedPortal=I,L}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(I){return I.hostView.rootNodes[0]}}let T=(()=>{class M extends i{constructor(b,L){super(b,L)}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef))},M.\u0275dir=n.\u0275\u0275defineDirective({type:M,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.\u0275\u0275InheritDefinitionFeature]}),M})(),O=(()=>{class M extends l{constructor(b,L,F){super(),this._componentFactoryResolver=b,this._viewContainerRef=L,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=ne=>{const Y=ne.element,Q=this._document.createComment("dom-portal");ne.setAttachedHost(this),Y.parentNode.insertBefore(Q,Y),this._getRootNode().appendChild(Y),this._attachedPortal=ne,super.setDisposeFn(()=>{Q.parentNode&&Q.parentNode.replaceChild(Y,Q)})},this._document=F}get portal(){return this._attachedPortal}set portal(b){this.hasAttached()&&!b&&!this._isInitialized||(this.hasAttached()&&super.detach(),b&&super.attach(b),this._attachedPortal=b||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(b){b.setAttachedHost(this);const L=null!=b.viewContainerRef?b.viewContainerRef:this._viewContainerRef,ne=(b.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(b.component),Y=L.createComponent(ne,L.length,b.injector||L.injector);return L!==this._viewContainerRef&&this._getRootNode().appendChild(Y.hostView.rootNodes[0]),super.setDisposeFn(()=>Y.destroy()),this._attachedPortal=b,this._attachedRef=Y,this.attached.emit(Y),Y}attachTemplatePortal(b){b.setAttachedHost(this);const L=this._viewContainerRef.createEmbeddedView(b.templateRef,b.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=b,this._attachedRef=L,this.attached.emit(L),L}_getRootNode(){const b=this._viewContainerRef.element.nativeElement;return b.nodeType===b.ELEMENT_NODE?b:b.parentNode}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(f.DOCUMENT))},M.\u0275dir=n.\u0275\u0275defineDirective({type:M,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.\u0275\u0275InheritDefinitionFeature]}),M})(),A=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=n.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=n.\u0275\u0275defineInjector({}),M})()},9071:(ye,j,p)=>{"use strict";p.d(j,{ZD:()=>Q,mF:()=>A,Cl:()=>te,rL:()=>I});var n=p(3191),f=p(5e3),v=p(8929),m=p(1086),o=p(6498),d=p(3753),r=(p(352),p(8139),p(7568)),s=p(2198),i=p(9808),c=p(925),l=p(226);let A=(()=>{class ${constructor(ie,ae,le){this._ngZone=ie,this._platform=ae,this._scrolled=new v.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=le}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const ae=this.scrollContainers.get(ie);ae&&(ae.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new o.y(ae=>{this._globalSubscription||this._addGlobalListener();const le=ie>0?this._scrolled.pipe((0,r.e)(ie)).subscribe(ae):this._scrolled.subscribe(ae);return this._scrolledCount++,()=>{le.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,m.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,ae)=>this.deregister(ae)),this._scrolled.complete()}ancestorScrolled(ie,ae){const le=this.getAncestorScrollContainers(ie);return this.scrolled(ae).pipe((0,s.h)(Oe=>!Oe||le.indexOf(Oe)>-1))}getAncestorScrollContainers(ie){const ae=[];return this.scrollContainers.forEach((le,Oe)=>{this._scrollableContainsElement(Oe,ie)&&ae.push(Oe)}),ae}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,ae){let le=(0,n.fI)(ae),Oe=ie.getElementRef().nativeElement;do{if(le==Oe)return!0}while(le=le.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,d.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return $.\u0275fac=function(ie){return new(ie||$)(f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(c.t4),f.\u0275\u0275inject(i.DOCUMENT,8))},$.\u0275prov=f.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),I=(()=>{class ${constructor(ie,ae,le){this._platform=ie,this._change=new v.xQ,this._changeListener=Oe=>{this._change.next(Oe)},this._document=le,ae.runOutsideAngular(()=>{if(ie.isBrowser){const Oe=this._getWindow();Oe.addEventListener("resize",this._changeListener),Oe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:ae,height:le}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+le,right:ie.left+ae,height:le,width:ae}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,ae=this._getWindow(),le=ie.documentElement,Oe=le.getBoundingClientRect();return{top:-Oe.top||ie.body.scrollTop||ae.scrollY||le.scrollTop||0,left:-Oe.left||ie.body.scrollLeft||ae.scrollX||le.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,r.e)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}}return $.\u0275fac=function(ie){return new(ie||$)(f.\u0275\u0275inject(c.t4),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(i.DOCUMENT,8))},$.\u0275prov=f.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),Q=(()=>{class ${}return $.\u0275fac=function(ie){return new(ie||$)},$.\u0275mod=f.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=f.\u0275\u0275defineInjector({}),$})(),te=(()=>{class ${}return $.\u0275fac=function(ie){return new(ie||$)},$.\u0275mod=f.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=f.\u0275\u0275defineInjector({imports:[[l.vT,c.ud,Q],l.vT,Q]}),$})()},9808:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{APP_BASE_HREF:()=>O,AsyncPipe:()=>ur,CommonModule:()=>jr,CurrencyPipe:()=>ir,DATE_PIPE_DEFAULT_TIMEZONE:()=>Ri,DOCUMENT:()=>u,DatePipe:()=>Li,DecimalPipe:()=>hr,FormStyle:()=>Y,FormatWidth:()=>te,HashLocationStrategy:()=>A,I18nPluralPipe:()=>Vr,I18nSelectPipe:()=>nr,JsonPipe:()=>Or,KeyValuePipe:()=>cr,LOCATION_INITIALIZED:()=>s,Location:()=>S,LocationStrategy:()=>T,LowerCasePipe:()=>gn,NgClass:()=>Zt,NgComponentOutlet:()=>an,NgForOf:()=>zn,NgForOfContext:()=>Tn,NgIf:()=>jn,NgIfContext:()=>Qn,NgLocaleLocalization:()=>Wt,NgLocalization:()=>Pe,NgPlural:()=>Ui,NgPluralCase:()=>tr,NgStyle:()=>bi,NgSwitch:()=>Zi,NgSwitchCase:()=>Xn,NgSwitchDefault:()=>pi,NgTemplateOutlet:()=>Rn,NumberFormatStyle:()=>F,NumberSymbol:()=>$,PathLocationStrategy:()=>w,PercentPipe:()=>qr,PlatformLocation:()=>h,Plural:()=>ne,SlicePipe:()=>mr,TitleCasePipe:()=>Sn,TranslationWidth:()=>Q,UpperCasePipe:()=>Wn,VERSION:()=>kr,ViewportScroller:()=>Jr,WeekDay:()=>J,XhrFactory:()=>Er,formatCurrency:()=>Vi,formatDate:()=>Xt,formatNumber:()=>xe,formatPercent:()=>ci,getCurrencySymbol:()=>x,getLocaleCurrencyCode:()=>ot,getLocaleCurrencyName:()=>yt,getLocaleCurrencySymbol:()=>vt,getLocaleDateFormat:()=>gt,getLocaleDateTimeFormat:()=>tt,getLocaleDayNames:()=>le,getLocaleDayPeriods:()=>ae,getLocaleDirection:()=>Ee,getLocaleEraNames:()=>Le,getLocaleExtraDayPeriodRules:()=>Bt,getLocaleExtraDayPeriods:()=>Et,getLocaleFirstDayOfWeek:()=>Ye,getLocaleId:()=>ie,getLocaleMonthNames:()=>Oe,getLocaleNumberFormat:()=>ft,getLocaleNumberSymbol:()=>at,getLocalePluralCase:()=>At,getLocaleTimeFormat:()=>Ue,getLocaleWeekEndRange:()=>Je,getNumberOfCurrencyDigits:()=>Z,isPlatformBrowser:()=>Lr,isPlatformServer:()=>Ji,isPlatformWorkerApp:()=>Fr,isPlatformWorkerUi:()=>ls,registerLocaleData:()=>Ft,\u0275BrowserPlatformLocation:()=>i,\u0275DomAdapter:()=>d,\u0275NullViewportScroller:()=>zr,\u0275PLATFORM_BROWSER_ID:()=>Wi,\u0275PLATFORM_SERVER_ID:()=>Wr,\u0275PLATFORM_WORKER_APP_ID:()=>Rr,\u0275PLATFORM_WORKER_UI_ID:()=>Dr,\u0275getDOM:()=>v,\u0275parseCookieValue:()=>Ht,\u0275setRootDomAdapter:()=>o});var n=p(5e3);let f=null;function v(){return f}function o(be){f||(f=be)}class d{}const u=new n.InjectionToken("DocumentToken");let h=(()=>{class be{historyGo(k){throw new Error("Not implemented")}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return(0,n.\u0275\u0275inject)(i)},providedIn:"platform"}),be})();const s=new n.InjectionToken("Location Initialized");let i=(()=>{class be extends h{constructor(k){super(),this._doc=k,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(k){const V=v().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",k,!1),()=>V.removeEventListener("popstate",k)}onHashChange(k){const V=v().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",k,!1),()=>V.removeEventListener("hashchange",k)}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(k){this.location.pathname=k}pushState(k,V,ve){c()?this._history.pushState(k,V,ve):this.location.hash=ve}replaceState(k,V,ve){c()?this._history.replaceState(k,V,ve):this.location.hash=ve}forward(){this._history.forward()}back(){this._history.back()}historyGo(k=0){this._history.go(k)}getState(){return this._history.state}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(u))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return new i((0,n.\u0275\u0275inject)(u))},providedIn:"platform"}),be})();function c(){return!!window.history.pushState}function g(be,X){if(0==be.length)return X;if(0==X.length)return be;let k=0;return be.endsWith("/")&&k++,X.startsWith("/")&&k++,2==k?be+X.substring(1):1==k?be+X:be+"/"+X}function y(be){const X=be.match(/#|\?|$/),k=X&&X.index||be.length;return be.slice(0,k-("/"===be[k-1]?1:0))+be.slice(k)}function E(be){return be&&"?"!==be[0]?"?"+be:be}let T=(()=>{class be{historyGo(k){throw new Error("Not implemented")}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return function(be){const X=(0,n.\u0275\u0275inject)(u).location;return new w((0,n.\u0275\u0275inject)(h),X&&X.origin||"")}()},providedIn:"root"}),be})();const O=new n.InjectionToken("appBaseHref");let w=(()=>{class be extends T{constructor(k,V){if(super(),this._platformLocation=k,this._removeListenerFns=[],null==V&&(V=this._platformLocation.getBaseHrefFromDOM()),null==V)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=V}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}prepareExternalUrl(k){return g(this._baseHref,k)}path(k=!1){const V=this._platformLocation.pathname+E(this._platformLocation.search),ve=this._platformLocation.hash;return ve&&k?`${V}${ve}`:V}pushState(k,V,ve,nt){const Nt=this.prepareExternalUrl(ve+E(nt));this._platformLocation.pushState(k,V,Nt)}replaceState(k,V,ve,nt){const Nt=this.prepareExternalUrl(ve+E(nt));this._platformLocation.replaceState(k,V,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformLocation).historyGo)||void 0===ve||ve.call(V,k)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(O,8))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),A=(()=>{class be extends T{constructor(k,V){super(),this._platformLocation=k,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}path(k=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(k){const V=g(this._baseHref,k);return V.length>0?"#"+V:V}pushState(k,V,ve,nt){let Nt=this.prepareExternalUrl(ve+E(nt));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.pushState(k,V,Nt)}replaceState(k,V,ve,nt){let Nt=this.prepareExternalUrl(ve+E(nt));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.replaceState(k,V,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformLocation).historyGo)||void 0===ve||ve.call(V,k)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(O,8))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),S=(()=>{class be{constructor(k,V){this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=k;const ve=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=y(b(ve)),this._platformStrategy.onPopState(nt=>{this._subject.emit({url:this.path(!0),pop:!0,state:nt.state,type:nt.type})})}path(k=!1){return this.normalize(this._platformStrategy.path(k))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(k,V=""){return this.path()==this.normalize(k+E(V))}normalize(k){return be.stripTrailingSlash(function(be,X){return be&&X.startsWith(be)?X.substring(be.length):X}(this._baseHref,b(k)))}prepareExternalUrl(k){return k&&"/"!==k[0]&&(k="/"+k),this._platformStrategy.prepareExternalUrl(k)}go(k,V="",ve=null){this._platformStrategy.pushState(ve,"",k,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+E(V)),ve)}replaceState(k,V="",ve=null){this._platformStrategy.replaceState(ve,"",k,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+E(V)),ve)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformStrategy).historyGo)||void 0===ve||ve.call(V,k)}onUrlChange(k){this._urlChangeListeners.push(k),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}))}_notifyUrlChangeListeners(k="",V){this._urlChangeListeners.forEach(ve=>ve(k,V))}subscribe(k,V,ve){return this._subject.subscribe({next:k,error:V,complete:ve})}}return be.normalizeQueryParams=E,be.joinWithSlash=g,be.stripTrailingSlash=y,be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(T),n.\u0275\u0275inject(h))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return new S((0,n.\u0275\u0275inject)(T),(0,n.\u0275\u0275inject)(h))},providedIn:"root"}),be})();function b(be){return be.replace(/\/index.html$/,"")}const L={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Percent=1]="Percent",F[F.Currency=2]="Currency",F[F.Scientific=3]="Scientific",F))(),ne=(()=>((ne=ne||{})[ne.Zero=0]="Zero",ne[ne.One=1]="One",ne[ne.Two=2]="Two",ne[ne.Few=3]="Few",ne[ne.Many=4]="Many",ne[ne.Other=5]="Other",ne))(),Y=(()=>((Y=Y||{})[Y.Format=0]="Format",Y[Y.Standalone=1]="Standalone",Y))(),Q=(()=>((Q=Q||{})[Q.Narrow=0]="Narrow",Q[Q.Abbreviated=1]="Abbreviated",Q[Q.Wide=2]="Wide",Q[Q.Short=3]="Short",Q))(),te=(()=>((te=te||{})[te.Short=0]="Short",te[te.Medium=1]="Medium",te[te.Long=2]="Long",te[te.Full=3]="Full",te))(),$=(()=>(($=$||{})[$.Decimal=0]="Decimal",$[$.Group=1]="Group",$[$.List=2]="List",$[$.PercentSign=3]="PercentSign",$[$.PlusSign=4]="PlusSign",$[$.MinusSign=5]="MinusSign",$[$.Exponential=6]="Exponential",$[$.SuperscriptingExponent=7]="SuperscriptingExponent",$[$.PerMille=8]="PerMille",$[$.Infinity=9]="Infinity",$[$.NaN=10]="NaN",$[$.TimeSeparator=11]="TimeSeparator",$[$.CurrencyDecimal=12]="CurrencyDecimal",$[$.CurrencyGroup=13]="CurrencyGroup",$))(),J=(()=>((J=J||{})[J.Sunday=0]="Sunday",J[J.Monday=1]="Monday",J[J.Tuesday=2]="Tuesday",J[J.Wednesday=3]="Wednesday",J[J.Thursday=4]="Thursday",J[J.Friday=5]="Friday",J[J.Saturday=6]="Saturday",J))();function ie(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.LocaleId]}function ae(be,X,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.DayPeriodsFormat],V[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],X);return fe(nt,k)}function le(be,X,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.DaysFormat],V[n.\u0275LocaleDataIndex.DaysStandalone]],X);return fe(nt,k)}function Oe(be,X,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.MonthsFormat],V[n.\u0275LocaleDataIndex.MonthsStandalone]],X);return fe(nt,k)}function Le(be,X){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Eras],X)}function Ye(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.FirstDayOfWeek]}function Je(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.WeekendRange]}function gt(be,X){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.DateFormat],X)}function Ue(be,X){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.TimeFormat],X)}function tt(be,X){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.DateTimeFormat],X)}function at(be,X){const k=(0,n.\u0275findLocaleData)(be),V=k[n.\u0275LocaleDataIndex.NumberSymbols][X];if(void 0===V){if(X===$.CurrencyDecimal)return k[n.\u0275LocaleDataIndex.NumberSymbols][$.Decimal];if(X===$.CurrencyGroup)return k[n.\u0275LocaleDataIndex.NumberSymbols][$.Group]}return V}function ft(be,X){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.NumberFormats][X]}function vt(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.CurrencySymbol]||null}function yt(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.CurrencyName]||null}function ot(be){return(0,n.\u0275getLocaleCurrencyCode)(be)}const At=n.\u0275getLocalePluralCase;function Tt(be){if(!be[n.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${be[n.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bt(be){const X=(0,n.\u0275findLocaleData)(be);return Tt(X),(X[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(V=>"string"==typeof V?H(V):[H(V[0]),H(V[1])])}function Et(be,X,k){const V=(0,n.\u0275findLocaleData)(be);Tt(V);const nt=fe([V[n.\u0275LocaleDataIndex.ExtraData][0],V[n.\u0275LocaleDataIndex.ExtraData][1]],X)||[];return fe(nt,k)||[]}function Ee(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Directionality]}function fe(be,X){for(let k=X;k>-1;k--)if(void 0!==be[k])return be[k];throw new Error("Locale data API: locale data undefined")}function H(be){const[X,k]=be.split(":");return{hours:+X,minutes:+k}}function x(be,X,k="en"){const V=function(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Currencies]}(k)[be]||L[be]||[],ve=V[1];return"narrow"===X&&"string"==typeof ve?ve:V[0]||be}function Z(be){let X;const k=L[be];return k&&(X=k[2]),"number"==typeof X?X:2}const _e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Be={},$e=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?: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}|c{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 st=(()=>((st=st||{})[st.Short=0]="Short",st[st.ShortGMT=1]="ShortGMT",st[st.Long=2]="Long",st[st.Extended=3]="Extended",st))(),ut=(()=>((ut=ut||{})[ut.FullYear=0]="FullYear",ut[ut.Month=1]="Month",ut[ut.Date=2]="Date",ut[ut.Hours=3]="Hours",ut[ut.Minutes=4]="Minutes",ut[ut.Seconds=5]="Seconds",ut[ut.FractionalSeconds=6]="FractionalSeconds",ut[ut.Day=7]="Day",ut))(),St=(()=>((St=St||{})[St.DayPeriods=0]="DayPeriods",St[St.Days=1]="Days",St[St.Months=2]="Months",St[St.Eras=3]="Eras",St))();function Xt(be,X,k,V){let ve=function(be){if(pt(be))return be;if("number"==typeof be&&!isNaN(be))return new Date(be);if("string"==typeof be){if(be=be.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(be)){const[ve,nt=1,Nt=1]=be.split("-").map(nn=>+nn);return tn(ve,nt-1,Nt)}const k=parseFloat(be);if(!isNaN(be-k))return new Date(k);let V;if(V=be.match(_e))return function(be){const X=new Date(0);let k=0,V=0;const ve=be[8]?X.setUTCFullYear:X.setFullYear,nt=be[8]?X.setUTCHours:X.setHours;be[9]&&(k=Number(be[9]+be[10]),V=Number(be[9]+be[11])),ve.call(X,Number(be[1]),Number(be[2])-1,Number(be[3]));const Nt=Number(be[4]||0)-k,nn=Number(be[5]||0)-V,In=Number(be[6]||0),ni=Math.floor(1e3*parseFloat("0."+(be[7]||0)));return nt.call(X,Nt,nn,In,ni),X}(V)}const X=new Date(be);if(!pt(X))throw new Error(`Unable to convert "${be}" into a date`);return X}(be);X=Dt(k,X)||X;let nn,Nt=[];for(;X;){if(nn=$e.exec(X),!nn){Nt.push(X);break}{Nt=Nt.concat(nn.slice(1));const di=Nt.pop();if(!di)break;X=di}}let In=ve.getTimezoneOffset();V&&(In=cn(V,In),ve=function(be,X,k){const ve=be.getTimezoneOffset();return function(be,X){return(be=new Date(be.getTime())).setMinutes(be.getMinutes()+X),be}(be,-1*(cn(X,ve)-ve))}(ve,V));let ni="";return Nt.forEach(di=>{const ai=function(be){if(It[be])return It[be];let X;switch(be){case"G":case"GG":case"GGG":X=mt(St.Eras,Q.Abbreviated);break;case"GGGG":X=mt(St.Eras,Q.Wide);break;case"GGGGG":X=mt(St.Eras,Q.Narrow);break;case"y":X=Lt(ut.FullYear,1,0,!1,!0);break;case"yy":X=Lt(ut.FullYear,2,0,!0,!0);break;case"yyy":X=Lt(ut.FullYear,3,0,!1,!0);break;case"yyyy":X=Lt(ut.FullYear,4,0,!1,!0);break;case"Y":X=ze(1);break;case"YY":X=ze(2,!0);break;case"YYY":X=ze(3);break;case"YYYY":X=ze(4);break;case"M":case"L":X=Lt(ut.Month,1,1);break;case"MM":case"LL":X=Lt(ut.Month,2,1);break;case"MMM":X=mt(St.Months,Q.Abbreviated);break;case"MMMM":X=mt(St.Months,Q.Wide);break;case"MMMMM":X=mt(St.Months,Q.Narrow);break;case"LLL":X=mt(St.Months,Q.Abbreviated,Y.Standalone);break;case"LLLL":X=mt(St.Months,Q.Wide,Y.Standalone);break;case"LLLLL":X=mt(St.Months,Q.Narrow,Y.Standalone);break;case"w":X=Me(1);break;case"ww":X=Me(2);break;case"W":X=Me(1,!0);break;case"d":X=Lt(ut.Date,1);break;case"dd":X=Lt(ut.Date,2);break;case"c":case"cc":X=Lt(ut.Day,1);break;case"ccc":X=mt(St.Days,Q.Abbreviated,Y.Standalone);break;case"cccc":X=mt(St.Days,Q.Wide,Y.Standalone);break;case"ccccc":X=mt(St.Days,Q.Narrow,Y.Standalone);break;case"cccccc":X=mt(St.Days,Q.Short,Y.Standalone);break;case"E":case"EE":case"EEE":X=mt(St.Days,Q.Abbreviated);break;case"EEEE":X=mt(St.Days,Q.Wide);break;case"EEEEE":X=mt(St.Days,Q.Narrow);break;case"EEEEEE":X=mt(St.Days,Q.Short);break;case"a":case"aa":case"aaa":X=mt(St.DayPeriods,Q.Abbreviated);break;case"aaaa":X=mt(St.DayPeriods,Q.Wide);break;case"aaaaa":X=mt(St.DayPeriods,Q.Narrow);break;case"b":case"bb":case"bbb":X=mt(St.DayPeriods,Q.Abbreviated,Y.Standalone,!0);break;case"bbbb":X=mt(St.DayPeriods,Q.Wide,Y.Standalone,!0);break;case"bbbbb":X=mt(St.DayPeriods,Q.Narrow,Y.Standalone,!0);break;case"B":case"BB":case"BBB":X=mt(St.DayPeriods,Q.Abbreviated,Y.Format,!0);break;case"BBBB":X=mt(St.DayPeriods,Q.Wide,Y.Format,!0);break;case"BBBBB":X=mt(St.DayPeriods,Q.Narrow,Y.Format,!0);break;case"h":X=Lt(ut.Hours,1,-12);break;case"hh":X=Lt(ut.Hours,2,-12);break;case"H":X=Lt(ut.Hours,1);break;case"HH":X=Lt(ut.Hours,2);break;case"m":X=Lt(ut.Minutes,1);break;case"mm":X=Lt(ut.Minutes,2);break;case"s":X=Lt(ut.Seconds,1);break;case"ss":X=Lt(ut.Seconds,2);break;case"S":X=Lt(ut.FractionalSeconds,1);break;case"SS":X=Lt(ut.FractionalSeconds,2);break;case"SSS":X=Lt(ut.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":X=qt(st.Short);break;case"ZZZZZ":X=qt(st.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":X=qt(st.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":X=qt(st.Long);break;default:return null}return It[be]=X,X}(di);ni+=ai?ai(ve,k,In):"''"===di?"'":di.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ni}function tn(be,X,k){const V=new Date(0);return V.setFullYear(be,X,k),V.setHours(0,0,0),V}function Dt(be,X){const k=ie(be);if(Be[k]=Be[k]||{},Be[k][X])return Be[k][X];let V="";switch(X){case"shortDate":V=gt(be,te.Short);break;case"mediumDate":V=gt(be,te.Medium);break;case"longDate":V=gt(be,te.Long);break;case"fullDate":V=gt(be,te.Full);break;case"shortTime":V=Ue(be,te.Short);break;case"mediumTime":V=Ue(be,te.Medium);break;case"longTime":V=Ue(be,te.Long);break;case"fullTime":V=Ue(be,te.Full);break;case"short":const ve=Dt(be,"shortTime"),nt=Dt(be,"shortDate");V=Kt(tt(be,te.Short),[ve,nt]);break;case"medium":const Nt=Dt(be,"mediumTime"),nn=Dt(be,"mediumDate");V=Kt(tt(be,te.Medium),[Nt,nn]);break;case"long":const In=Dt(be,"longTime"),ni=Dt(be,"longDate");V=Kt(tt(be,te.Long),[In,ni]);break;case"full":const di=Dt(be,"fullTime"),ai=Dt(be,"fullDate");V=Kt(tt(be,te.Full),[di,ai])}return V&&(Be[k][X]=V),V}function Kt(be,X){return X&&(be=be.replace(/\{([^}]+)}/g,function(k,V){return null!=X&&V in X?X[V]:k})),be}function et(be,X,k="-",V,ve){let nt="";(be<0||ve&&be<=0)&&(ve?be=1-be:(be=-be,nt=k));let Nt=String(be);for(;Nt.length0||nn>-k)&&(nn+=k),be===ut.Hours)0===nn&&-12===k&&(nn=12);else if(be===ut.FractionalSeconds)return function(be,X){return et(be,3).substr(0,X)}(nn,X);const In=at(Nt,$.MinusSign);return et(nn,X,In,V,ve)}}function mt(be,X,k=Y.Format,V=!1){return function(ve,nt){return function(be,X,k,V,ve,nt){switch(k){case St.Months:return Oe(X,ve,V)[be.getMonth()];case St.Days:return le(X,ve,V)[be.getDay()];case St.DayPeriods:const Nt=be.getHours(),nn=be.getMinutes();if(nt){const ni=Bt(X),di=Et(X,ve,V),ai=ni.findIndex(hi=>{if(Array.isArray(hi)){const[Ei,ki]=hi,xn=Nt>=Ei.hours&&nn>=Ei.minutes,Kr=Nt0?Math.floor(ve/60):Math.ceil(ve/60);switch(be){case st.Short:return(ve>=0?"+":"")+et(Nt,2,nt)+et(Math.abs(ve%60),2,nt);case st.ShortGMT:return"GMT"+(ve>=0?"+":"")+et(Nt,1,nt);case st.Long:return"GMT"+(ve>=0?"+":"")+et(Nt,2,nt)+":"+et(Math.abs(ve%60),2,nt);case st.Extended:return 0===V?"Z":(ve>=0?"+":"")+et(Nt,2,nt)+":"+et(Math.abs(ve%60),2,nt);default:throw new Error(`Unknown zone width "${be}"`)}}}function re(be){return tn(be.getFullYear(),be.getMonth(),be.getDate()+(4-be.getDay()))}function Me(be,X=!1){return function(k,V){let ve;if(X){const nt=new Date(k.getFullYear(),k.getMonth(),1).getDay()-1,Nt=k.getDate();ve=1+Math.floor((Nt+nt)/7)}else{const nt=re(k),Nt=function(be){const X=tn(be,0,1).getDay();return tn(be,0,1+(X<=4?4:11)-X)}(nt.getFullYear()),nn=nt.getTime()-Nt.getTime();ve=1+Math.round(nn/6048e5)}return et(ve,be,at(V,$.MinusSign))}}function ze(be,X=!1){return function(k,V){return et(re(k).getFullYear(),be,at(V,$.MinusSign),X)}}const It={};function cn(be,X){be=be.replace(/:/g,"");const k=Date.parse("Jan 01, 1970 00:00:00 "+be)/6e4;return isNaN(k)?X:k}function pt(be){return be instanceof Date&&!isNaN(be.valueOf())}const Ot=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qn(be,X,k,V,ve,nt,Nt=!1){let nn="",In=!1;if(isFinite(be)){let ni=function(be){let V,ve,nt,Nt,nn,X=Math.abs(be)+"",k=0;for((ve=X.indexOf("."))>-1&&(X=X.replace(".","")),(nt=X.search(/e/i))>0?(ve<0&&(ve=nt),ve+=+X.slice(nt+1),X=X.substring(0,nt)):ve<0&&(ve=X.length),nt=0;"0"===X.charAt(nt);nt++);if(nt===(nn=X.length))V=[0],ve=1;else{for(nn--;"0"===X.charAt(nn);)nn--;for(ve-=nt,V=[],Nt=0;nt<=nn;nt++,Nt++)V[Nt]=Number(X.charAt(nt))}return ve>22&&(V=V.splice(0,21),k=ve-1,ve=1),{digits:V,exponent:k,integerLen:ve}}(be);Nt&&(ni=function(be){if(0===be.digits[0])return be;const X=be.digits.length-be.integerLen;return be.exponent?be.exponent+=2:(0===X?be.digits.push(0,0):1===X&&be.digits.push(0),be.integerLen+=2),be}(ni));let di=X.minInt,ai=X.minFrac,hi=X.maxFrac;if(nt){const xr=nt.match(Ot);if(null===xr)throw new Error(`${nt} is not a valid digit info`);const cs=xr[1],es=xr[3],ds=xr[5];null!=cs&&(di=de(cs)),null!=es&&(ai=de(es)),null!=ds?hi=de(ds):null!=es&&ai>hi&&(hi=ai)}!function(be,X,k){if(X>k)throw new Error(`The minimum number of digits after fraction (${X}) is higher than the maximum (${k}).`);let V=be.digits,ve=V.length-be.integerLen;const nt=Math.min(Math.max(X,ve),k);let Nt=nt+be.integerLen,nn=V[Nt];if(Nt>0){V.splice(Math.max(be.integerLen,Nt));for(let ai=Nt;ai=5)if(Nt-1<0){for(let ai=0;ai>Nt;ai--)V.unshift(0),be.integerLen++;V.unshift(1),be.integerLen++}else V[Nt-1]++;for(;ve=ni?ki.pop():In=!1),hi>=10?1:0},0);di&&(V.unshift(di),be.integerLen++)}(ni,ai,hi);let Ei=ni.digits,ki=ni.integerLen;const xn=ni.exponent;let Kr=[];for(In=Ei.every(xr=>!xr);ki0?Kr=Ei.splice(ki,Ei.length):(Kr=Ei,Ei=[0]);const rr=[];for(Ei.length>=X.lgSize&&rr.unshift(Ei.splice(-X.lgSize,Ei.length).join(""));Ei.length>X.gSize;)rr.unshift(Ei.splice(-X.gSize,Ei.length).join(""));Ei.length&&rr.unshift(Ei.join("")),nn=rr.join(at(k,V)),Kr.length&&(nn+=at(k,ve)+Kr.join("")),xn&&(nn+=at(k,$.Exponential)+"+"+xn)}else nn=at(k,$.Infinity);return nn=be<0&&!In?X.negPre+nn+X.negSuf:X.posPre+nn+X.posSuf,nn}function Vi(be,X,k,V,ve){const Nt=Ze(ft(X,F.Currency),at(X,$.MinusSign));return Nt.minFrac=Z(V),Nt.maxFrac=Nt.minFrac,qn(be,Nt,X,$.CurrencyGroup,$.CurrencyDecimal,ve).replace("\xa4",k).replace("\xa4","").trim()}function ci(be,X,k){return qn(be,Ze(ft(X,F.Percent),at(X,$.MinusSign)),X,$.Group,$.Decimal,k,!0).replace(new RegExp("%","g"),at(X,$.PercentSign))}function xe(be,X,k){return qn(be,Ze(ft(X,F.Decimal),at(X,$.MinusSign)),X,$.Group,$.Decimal,k)}function Ze(be,X="-"){const k={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},V=be.split(";"),ve=V[0],nt=V[1],Nt=-1!==ve.indexOf(".")?ve.split("."):[ve.substring(0,ve.lastIndexOf("0")+1),ve.substring(ve.lastIndexOf("0")+1)],nn=Nt[0],In=Nt[1]||"";k.posPre=nn.substr(0,nn.indexOf("#"));for(let di=0;di-1||(ve=k.getPluralCategory(be,V),X.indexOf(ve)>-1))return ve;if(X.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${be}"`)}let Wt=(()=>{class be extends Pe{constructor(k){super(),this.locale=k}getPluralCategory(k,V){switch(At(V||this.locale)(k)){case ne.Zero:return"zero";case ne.One:return"one";case ne.Two:return"two";case ne.Few:return"few";case ne.Many:return"many";default:return"other"}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(n.LOCALE_ID))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();function Ft(be,X,k){return(0,n.\u0275registerLocaleData)(be,X,k)}function Ht(be,X){X=encodeURIComponent(X);for(const k of be.split(";")){const V=k.indexOf("="),[ve,nt]=-1==V?[k,""]:[k.slice(0,V),k.slice(V+1)];if(ve.trim()===X)return decodeURIComponent(nt)}return null}let Zt=(()=>{class be{constructor(k,V,ve,nt){this._iterableDiffers=k,this._keyValueDiffers=V,this._ngEl=ve,this._renderer=nt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(k){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof k?k.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(k){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof k?k.split(/\s+/):k,this._rawClass&&((0,n.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const k=this._iterableDiffer.diff(this._rawClass);k&&this._applyIterableChanges(k)}else if(this._keyValueDiffer){const k=this._keyValueDiffer.diff(this._rawClass);k&&this._applyKeyValueChanges(k)}}_applyKeyValueChanges(k){k.forEachAddedItem(V=>this._toggleClass(V.key,V.currentValue)),k.forEachChangedItem(V=>this._toggleClass(V.key,V.currentValue)),k.forEachRemovedItem(V=>{V.previousValue&&this._toggleClass(V.key,!1)})}_applyIterableChanges(k){k.forEachAddedItem(V=>{if("string"!=typeof V.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.\u0275stringify)(V.item)}`);this._toggleClass(V.item,!0)}),k.forEachRemovedItem(V=>this._toggleClass(V.item,!1))}_applyClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(V=>this._toggleClass(V,!0)):Object.keys(k).forEach(V=>this._toggleClass(V,!!k[V])))}_removeClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(V=>this._toggleClass(V,!1)):Object.keys(k).forEach(V=>this._toggleClass(V,!1)))}_toggleClass(k,V){(k=k.trim())&&k.split(/\s+/g).forEach(ve=>{V?this._renderer.addClass(this._ngEl.nativeElement,ve):this._renderer.removeClass(this._ngEl.nativeElement,ve)})}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),be})(),an=(()=>{class be{constructor(k){this._viewContainerRef=k,this._componentRef=null,this._moduleRef=null}ngOnChanges(k){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const V=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(k.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const Nt=V.get(n.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Nt.injector)}else this._moduleRef=null;const nt=(this._moduleRef?this._moduleRef.componentFactoryResolver:V.get(n.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(nt,this._viewContainerRef.length,V,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[n.\u0275\u0275NgOnChangesFeature]}),be})();class Tn{constructor(X,k,V,ve){this.$implicit=X,this.ngForOf=k,this.index=V,this.count=ve}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 zn=(()=>{class be{constructor(k,V,ve){this._viewContainer=k,this._template=V,this._differs=ve,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(k){this._ngForOf=k,this._ngForOfDirty=!0}set ngForTrackBy(k){this._trackByFn=k}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(k){k&&(this._template=k)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const k=this._ngForOf;!this._differ&&k&&(this._differ=this._differs.find(k).create(this.ngForTrackBy))}if(this._differ){const k=this._differ.diff(this._ngForOf);k&&this._applyChanges(k)}}_applyChanges(k){const V=this._viewContainer;k.forEachOperation((ve,nt,Nt)=>{if(null==ve.previousIndex)V.createEmbeddedView(this._template,new Tn(ve.item,this._ngForOf,-1,-1),null===Nt?void 0:Nt);else if(null==Nt)V.remove(null===nt?void 0:nt);else if(null!==nt){const nn=V.get(nt);V.move(nn,Nt),$n(nn,ve)}});for(let ve=0,nt=V.length;ve{$n(V.get(ve.currentIndex),ve)})}static ngTemplateContextGuard(k,V){return!0}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),be})();function $n(be,X){be.context.$implicit=X.item}let jn=(()=>{class be{constructor(k,V){this._viewContainer=k,this._context=new Qn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(k){this._context.$implicit=this._context.ngIf=k,this._updateView()}set ngIfThen(k){kn("ngIfThen",k),this._thenTemplateRef=k,this._thenViewRef=null,this._updateView()}set ngIfElse(k){kn("ngIfElse",k),this._elseTemplateRef=k,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(k,V){return!0}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),be})();class Qn{constructor(){this.$implicit=null,this.ngIf=null}}function kn(be,X){if(X&&!X.createEmbeddedView)throw new Error(`${be} must be a TemplateRef, but received '${(0,n.\u0275stringify)(X)}'.`)}class Mi{constructor(X,k){this._viewContainerRef=X,this._templateRef=k,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(X){X&&!this._created?this.create():!X&&this._created&&this.destroy()}}let Zi=(()=>{class be{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(k){this._ngSwitch=k,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(k){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(k)}_matchCase(k){const V=k==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(k){if(this._defaultViews&&k!==this._defaultUsed){this._defaultUsed=k;for(let V=0;V{class be{constructor(k,V,ve){this.ngSwitch=ve,ve._addCase(),this._view=new Mi(k,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Zi,9))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),be})(),pi=(()=>{class be{constructor(k,V,ve){ve._addDefault(new Mi(k,V))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Zi,9))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngSwitchDefault",""]]}),be})(),Ui=(()=>{class be{constructor(k){this._localization=k,this._caseViews={}}set ngPlural(k){this._switchValue=k,this._updateView()}addCase(k,V){this._caseViews[k]=V}_updateView(){this._clearViews();const k=Object.keys(this._caseViews),V=Xe(this._switchValue,k,this._localization);this._activateView(this._caseViews[V])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(k){k&&(this._activeView=k,this._activeView.create())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(Pe))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),be})(),tr=(()=>{class be{constructor(k,V,ve,nt){this.value=k;const Nt=!isNaN(Number(k));nt.addCase(Nt?`=${k}`:k,new Mi(ve,V))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275injectAttribute("ngPluralCase"),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(Ui,1))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngPluralCase",""]]}),be})(),bi=(()=>{class be{constructor(k,V,ve){this._ngEl=k,this._differs=V,this._renderer=ve,this._ngStyle=null,this._differ=null}set ngStyle(k){this._ngStyle=k,!this._differ&&k&&(this._differ=this._differs.find(k).create())}ngDoCheck(){if(this._differ){const k=this._differ.diff(this._ngStyle);k&&this._applyChanges(k)}}_setStyle(k,V){const[ve,nt]=k.split(".");null!=(V=null!=V&&nt?`${V}${nt}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,ve,V):this._renderer.removeStyle(this._ngEl.nativeElement,ve)}_applyChanges(k){k.forEachRemovedItem(V=>this._setStyle(V.key,null)),k.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),k.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.Renderer2))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),be})(),Rn=(()=>{class be{constructor(k){this._viewContainerRef=k,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(k){if(k.ngTemplateOutlet){const V=this._viewContainerRef;this._viewRef&&V.remove(V.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?V.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&k.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.\u0275\u0275NgOnChangesFeature]}),be})();function oi(be,X){return Error(`InvalidPipeArgument: '${X}' for pipe '${(0,n.\u0275stringify)(be)}'`)}class Fn{createSubscription(X,k){return X.subscribe({next:k,error:V=>{throw V}})}dispose(X){X.unsubscribe()}onDestroy(X){X.unsubscribe()}}class $i{createSubscription(X,k){return X.then(k,V=>{throw V})}dispose(X){}onDestroy(X){}}const mi=new $i,Gn=new Fn;let ur=(()=>{class be{constructor(k){this._ref=k,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(k){return this._obj?k!==this._obj?(this._dispose(),this.transform(k)):this._latestValue:(k&&this._subscribe(k),this._latestValue)}_subscribe(k){this._obj=k,this._strategy=this._selectStrategy(k),this._subscription=this._strategy.createSubscription(k,V=>this._updateLatestValue(k,V))}_selectStrategy(k){if((0,n.\u0275isPromise)(k))return mi;if((0,n.\u0275isSubscribable)(k))return Gn;throw oi(be,k)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(k,V){k===this._obj&&(this._latestValue=V,this._ref.markForCheck())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"async",type:be,pure:!1}),be})(),gn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.toLowerCase()}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"lowercase",type:be,pure:!0}),be})();const yn=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\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\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\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\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Sn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.replace(yn,V=>V[0].toUpperCase()+V.substr(1).toLowerCase())}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"titlecase",type:be,pure:!0}),be})(),Wn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.toUpperCase()}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"uppercase",type:be,pure:!0}),be})();const Ri=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Li=(()=>{class be{constructor(k,V){this.locale=k,this.defaultTimezone=V}transform(k,V="mediumDate",ve,nt){var Nt;if(null==k||""===k||k!=k)return null;try{return Xt(k,V,nt||this.locale,null!==(Nt=null!=ve?ve:this.defaultTimezone)&&void 0!==Nt?Nt:void 0)}catch(nn){throw oi(be,nn.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(Ri,24))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:be,pure:!0}),be})();const as=/#/g;let Vr=(()=>{class be{constructor(k){this._localization=k}transform(k,V,ve){if(null==k)return"";if("object"!=typeof V||null===V)throw oi(be,V);return V[Xe(k,Object.keys(V),this._localization,ve)].replace(as,k.toString())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(Pe,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:be,pure:!0}),be})(),nr=(()=>{class be{transform(k,V){if(null==k)return"";if("object"!=typeof V||"string"!=typeof k)throw oi(be,V);return V.hasOwnProperty(k)?V[k]:V.hasOwnProperty("other")?V.other:""}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nSelect",type:be,pure:!0}),be})(),Or=(()=>{class be{transform(k){return JSON.stringify(k,null,2)}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"json",type:be,pure:!1}),be})(),cr=(()=>{class be{constructor(k){this.differs=k,this.keyValues=[],this.compareFn=$r}transform(k,V=$r){if(!k||!(k instanceof Map)&&"object"!=typeof k)return null;this.differ||(this.differ=this.differs.find(k).create());const ve=this.differ.diff(k),nt=V!==this.compareFn;return ve&&(this.keyValues=[],ve.forEachItem(Nt=>{this.keyValues.push(function(be,X){return{key:be,value:X}}(Nt.key,Nt.currentValue))})),(ve||nt)&&(this.keyValues.sort(V),this.compareFn=V),this.keyValues}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.KeyValueDiffers,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"keyvalue",type:be,pure:!1}),be})();function $r(be,X){const k=be.key,V=X.key;if(k===V)return 0;if(void 0===k)return 1;if(void 0===V)return-1;if(null===k)return 1;if(null===V)return-1;if("string"==typeof k&&"string"==typeof V)return k{class be{constructor(k){this._locale=k}transform(k,V,ve){if(!Cr(k))return null;ve=ve||this._locale;try{return xe(Sr(k),ve,V)}catch(nt){throw oi(be,nt.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"number",type:be,pure:!0}),be})(),qr=(()=>{class be{constructor(k){this._locale=k}transform(k,V,ve){if(!Cr(k))return null;ve=ve||this._locale;try{return ci(Sr(k),ve,V)}catch(nt){throw oi(be,nt.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"percent",type:be,pure:!0}),be})(),ir=(()=>{class be{constructor(k,V="USD"){this._locale=k,this._defaultCurrencyCode=V}transform(k,V=this._defaultCurrencyCode,ve="symbol",nt,Nt){if(!Cr(k))return null;Nt=Nt||this._locale,"boolean"==typeof ve&&(ve=ve?"symbol":"code");let nn=V||this._defaultCurrencyCode;"code"!==ve&&(nn="symbol"===ve||"symbol-narrow"===ve?x(nn,"symbol"===ve?"wide":"narrow",Nt):ve);try{return Vi(Sr(k),Nt,nn,V,nt)}catch(In){throw oi(be,In.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(n.DEFAULT_CURRENCY_CODE,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"currency",type:be,pure:!0}),be})();function Cr(be){return!(null==be||""===be||be!=be)}function Sr(be){if("string"==typeof be&&!isNaN(Number(be)-parseFloat(be)))return Number(be);if("number"!=typeof be)throw new Error(`${be} is not a number`);return be}let mr=(()=>{class be{transform(k,V,ve){if(null==k)return null;if(!this.supports(k))throw oi(be,k);return k.slice(V,ve)}supports(k){return"string"==typeof k||Array.isArray(k)}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"slice",type:be,pure:!1}),be})(),jr=(()=>{class be{}return be.\u0275fac=function(k){return new(k||be)},be.\u0275mod=n.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:Pe,useClass:Wt}]}),be})();const Wi="browser",Wr="server",Rr="browserWorkerApp",Dr="browserWorkerUi";function Lr(be){return be===Wi}function Ji(be){return be===Wr}function Fr(be){return be===Rr}function ls(be){return be===Dr}const kr=new n.Version("13.1.1");let Jr=(()=>{class be{}return be.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:be,providedIn:"root",factory:()=>new Tr((0,n.\u0275\u0275inject)(u),window)}),be})();class Tr{constructor(X,k){this.document=X,this.window=k,this.offset=()=>[0,0]}setOffset(X){this.offset=Array.isArray(X)?()=>X:X}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(X){this.supportsScrolling()&&this.window.scrollTo(X[0],X[1])}scrollToAnchor(X){if(!this.supportsScrolling())return;const k=function(be,X){const k=be.getElementById(X)||be.getElementsByName(X)[0];if(k)return k;if("function"==typeof be.createTreeWalker&&be.body&&(be.body.createShadowRoot||be.body.attachShadow)){const V=be.createTreeWalker(be.body,NodeFilter.SHOW_ELEMENT);let ve=V.currentNode;for(;ve;){const nt=ve.shadowRoot;if(nt){const Nt=nt.getElementById(X)||nt.querySelector(`[name="${X}"]`);if(Nt)return Nt}ve=V.nextNode()}}return null}(this.document,X);k&&(this.scrollToElement(k),this.attemptFocus(k))}setHistoryScrollRestoration(X){if(this.supportScrollRestoration()){const k=this.window.history;k&&k.scrollRestoration&&(k.scrollRestoration=X)}}scrollToElement(X){const k=X.getBoundingClientRect(),V=k.left+this.window.pageXOffset,ve=k.top+this.window.pageYOffset,nt=this.offset();this.window.scrollTo(V-nt[0],ve-nt[1])}attemptFocus(X){return X.focus(),this.document.activeElement===X}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const X=us(this.window.history)||us(Object.getPrototypeOf(this.window.history));return!(!X||!X.writable&&!X.set)}catch(X){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(X){return!1}}}function us(be){return Object.getOwnPropertyDescriptor(be,"scrollRestoration")}class zr{setOffset(X){}getScrollPosition(){return[0,0]}scrollToPosition(X){}scrollToAnchor(X){}setHistoryScrollRestoration(X){}}class Er{}},520:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{HTTP_INTERCEPTORS:()=>ie,HttpBackend:()=>r,HttpClient:()=>$,HttpClientJsonpModule:()=>H,HttpClientModule:()=>fe,HttpClientXsrfModule:()=>Ee,HttpContext:()=>O,HttpContextToken:()=>D,HttpErrorResponse:()=>Q,HttpEventType:()=>L,HttpHandler:()=>h,HttpHeaderResponse:()=>ne,HttpHeaders:()=>s,HttpParams:()=>T,HttpRequest:()=>b,HttpResponse:()=>Y,HttpResponseBase:()=>F,HttpUrlEncodingCodec:()=>i,HttpXhrBackend:()=>ft,HttpXsrfTokenExtractor:()=>ot,JsonpClientBackend:()=>gt,JsonpInterceptor:()=>Ue,XhrFactory:()=>x,\u0275HttpInterceptingHandler:()=>Tt});var n=p(9808),f=p(5e3),v=p(1086),m=p(6498),o=p(1406),d=p(2198),u=p(4850);class h{}class r{}class s{constructor(Z){this.normalizedNames=new Map,this.lazyUpdate=null,Z?this.lazyInit="string"==typeof Z?()=>{this.headers=new Map,Z.split("\n").forEach(_e=>{const Be=_e.indexOf(":");if(Be>0){const $e=_e.slice(0,Be),st=$e.toLowerCase(),ut=_e.slice(Be+1).trim();this.maybeSetNormalizedName($e,st),this.headers.has(st)?this.headers.get(st).push(ut):this.headers.set(st,[ut])}})}:()=>{this.headers=new Map,Object.keys(Z).forEach(_e=>{let Be=Z[_e];const $e=_e.toLowerCase();"string"==typeof Be&&(Be=[Be]),Be.length>0&&(this.headers.set($e,Be),this.maybeSetNormalizedName(_e,$e))})}:this.headers=new Map}has(Z){return this.init(),this.headers.has(Z.toLowerCase())}get(Z){this.init();const _e=this.headers.get(Z.toLowerCase());return _e&&_e.length>0?_e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Z){return this.init(),this.headers.get(Z.toLowerCase())||null}append(Z,_e){return this.clone({name:Z,value:_e,op:"a"})}set(Z,_e){return this.clone({name:Z,value:_e,op:"s"})}delete(Z,_e){return this.clone({name:Z,value:_e,op:"d"})}maybeSetNormalizedName(Z,_e){this.normalizedNames.has(_e)||this.normalizedNames.set(_e,Z)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Z=>this.applyUpdate(Z)),this.lazyUpdate=null))}copyFrom(Z){Z.init(),Array.from(Z.headers.keys()).forEach(_e=>{this.headers.set(_e,Z.headers.get(_e)),this.normalizedNames.set(_e,Z.normalizedNames.get(_e))})}clone(Z){const _e=new s;return _e.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,_e.lazyUpdate=(this.lazyUpdate||[]).concat([Z]),_e}applyUpdate(Z){const _e=Z.name.toLowerCase();switch(Z.op){case"a":case"s":let Be=Z.value;if("string"==typeof Be&&(Be=[Be]),0===Be.length)return;this.maybeSetNormalizedName(Z.name,_e);const $e=("a"===Z.op?this.headers.get(_e):void 0)||[];$e.push(...Be),this.headers.set(_e,$e);break;case"d":const st=Z.value;if(st){let ut=this.headers.get(_e);if(!ut)return;ut=ut.filter(St=>-1===st.indexOf(St)),0===ut.length?(this.headers.delete(_e),this.normalizedNames.delete(_e)):this.headers.set(_e,ut)}else this.headers.delete(_e),this.normalizedNames.delete(_e)}}forEach(Z){this.init(),Array.from(this.normalizedNames.keys()).forEach(_e=>Z(this.normalizedNames.get(_e),this.headers.get(_e)))}}class i{encodeKey(Z){return y(Z)}encodeValue(Z){return y(Z)}decodeKey(Z){return decodeURIComponent(Z)}decodeValue(Z){return decodeURIComponent(Z)}}const l=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function y(U){return encodeURIComponent(U).replace(l,(Z,_e)=>{var Be;return null!==(Be=g[_e])&&void 0!==Be?Be:Z})}function E(U){return`${U}`}class T{constructor(Z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Z.encoder||new i,Z.fromString){if(Z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(U,Z){const _e=new Map;return U.length>0&&U.replace(/^\?/,"").split("&").forEach($e=>{const st=$e.indexOf("="),[ut,St]=-1==st?[Z.decodeKey($e),""]:[Z.decodeKey($e.slice(0,st)),Z.decodeValue($e.slice(st+1))],Xt=_e.get(ut)||[];Xt.push(St),_e.set(ut,Xt)}),_e}(Z.fromString,this.encoder)}else Z.fromObject?(this.map=new Map,Object.keys(Z.fromObject).forEach(_e=>{const Be=Z.fromObject[_e];this.map.set(_e,Array.isArray(Be)?Be:[Be])})):this.map=null}has(Z){return this.init(),this.map.has(Z)}get(Z){this.init();const _e=this.map.get(Z);return _e?_e[0]:null}getAll(Z){return this.init(),this.map.get(Z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Z,_e){return this.clone({param:Z,value:_e,op:"a"})}appendAll(Z){const _e=[];return Object.keys(Z).forEach(Be=>{const $e=Z[Be];Array.isArray($e)?$e.forEach(st=>{_e.push({param:Be,value:st,op:"a"})}):_e.push({param:Be,value:$e,op:"a"})}),this.clone(_e)}set(Z,_e){return this.clone({param:Z,value:_e,op:"s"})}delete(Z,_e){return this.clone({param:Z,value:_e,op:"d"})}toString(){return this.init(),this.keys().map(Z=>{const _e=this.encoder.encodeKey(Z);return this.map.get(Z).map(Be=>_e+"="+this.encoder.encodeValue(Be)).join("&")}).filter(Z=>""!==Z).join("&")}clone(Z){const _e=new T({encoder:this.encoder});return _e.cloneFrom=this.cloneFrom||this,_e.updates=(this.updates||[]).concat(Z),_e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Z=>this.map.set(Z,this.cloneFrom.map.get(Z))),this.updates.forEach(Z=>{switch(Z.op){case"a":case"s":const _e=("a"===Z.op?this.map.get(Z.param):void 0)||[];_e.push(E(Z.value)),this.map.set(Z.param,_e);break;case"d":if(void 0===Z.value){this.map.delete(Z.param);break}{let Be=this.map.get(Z.param)||[];const $e=Be.indexOf(E(Z.value));-1!==$e&&Be.splice($e,1),Be.length>0?this.map.set(Z.param,Be):this.map.delete(Z.param)}}}),this.cloneFrom=this.updates=null)}}class D{constructor(Z){this.defaultValue=Z}}class O{constructor(){this.map=new Map}set(Z,_e){return this.map.set(Z,_e),this}get(Z){return this.map.has(Z)||this.map.set(Z,Z.defaultValue()),this.map.get(Z)}delete(Z){return this.map.delete(Z),this}has(Z){return this.map.has(Z)}keys(){return this.map.keys()}}function A(U){return"undefined"!=typeof ArrayBuffer&&U instanceof ArrayBuffer}function S(U){return"undefined"!=typeof Blob&&U instanceof Blob}function M(U){return"undefined"!=typeof FormData&&U instanceof FormData}class b{constructor(Z,_e,Be,$e){let st;if(this.url=_e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Z.toUpperCase(),function(U){switch(U){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||$e?(this.body=void 0!==Be?Be:null,st=$e):st=Be,st&&(this.reportProgress=!!st.reportProgress,this.withCredentials=!!st.withCredentials,st.responseType&&(this.responseType=st.responseType),st.headers&&(this.headers=st.headers),st.context&&(this.context=st.context),st.params&&(this.params=st.params)),this.headers||(this.headers=new s),this.context||(this.context=new O),this.params){const ut=this.params.toString();if(0===ut.length)this.urlWithParams=_e;else{const St=_e.indexOf("?");this.urlWithParams=_e+(-1===St?"?":St<_e.length-1?"&":"")+ut}}else this.params=new T,this.urlWithParams=_e}serializeBody(){return null===this.body?null:A(this.body)||S(this.body)||M(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof T?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||M(this.body)?null:S(this.body)?this.body.type||null:A(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof T?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Z={}){var _e;const Be=Z.method||this.method,$e=Z.url||this.url,st=Z.responseType||this.responseType,ut=void 0!==Z.body?Z.body:this.body,St=void 0!==Z.withCredentials?Z.withCredentials:this.withCredentials,Xt=void 0!==Z.reportProgress?Z.reportProgress:this.reportProgress;let tn=Z.headers||this.headers,Dt=Z.params||this.params;const Kt=null!==(_e=Z.context)&&void 0!==_e?_e:this.context;return void 0!==Z.setHeaders&&(tn=Object.keys(Z.setHeaders).reduce((et,xt)=>et.set(xt,Z.setHeaders[xt]),tn)),Z.setParams&&(Dt=Object.keys(Z.setParams).reduce((et,xt)=>et.set(xt,Z.setParams[xt]),Dt)),new b(Be,$e,ut,{params:Dt,headers:tn,context:Kt,reportProgress:Xt,responseType:st,withCredentials:St})}}var L=(()=>((L=L||{})[L.Sent=0]="Sent",L[L.UploadProgress=1]="UploadProgress",L[L.ResponseHeader=2]="ResponseHeader",L[L.DownloadProgress=3]="DownloadProgress",L[L.Response=4]="Response",L[L.User=5]="User",L))();class F{constructor(Z,_e=200,Be="OK"){this.headers=Z.headers||new s,this.status=void 0!==Z.status?Z.status:_e,this.statusText=Z.statusText||Be,this.url=Z.url||null,this.ok=this.status>=200&&this.status<300}}class ne extends F{constructor(Z={}){super(Z),this.type=L.ResponseHeader}clone(Z={}){return new ne({headers:Z.headers||this.headers,status:void 0!==Z.status?Z.status:this.status,statusText:Z.statusText||this.statusText,url:Z.url||this.url||void 0})}}class Y extends F{constructor(Z={}){super(Z),this.type=L.Response,this.body=void 0!==Z.body?Z.body:null}clone(Z={}){return new Y({body:void 0!==Z.body?Z.body:this.body,headers:Z.headers||this.headers,status:void 0!==Z.status?Z.status:this.status,statusText:Z.statusText||this.statusText,url:Z.url||this.url||void 0})}}class Q extends F{constructor(Z){super(Z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Z.url||"(unknown url)"}`:`Http failure response for ${Z.url||"(unknown url)"}: ${Z.status} ${Z.statusText}`,this.error=Z.error||null}}function te(U,Z){return{body:Z,headers:U.headers,context:U.context,observe:U.observe,params:U.params,reportProgress:U.reportProgress,responseType:U.responseType,withCredentials:U.withCredentials}}let $=(()=>{class U{constructor(_e){this.handler=_e}request(_e,Be,$e={}){let st;if(_e instanceof b)st=_e;else{let Xt,tn;Xt=$e.headers instanceof s?$e.headers:new s($e.headers),$e.params&&(tn=$e.params instanceof T?$e.params:new T({fromObject:$e.params})),st=new b(_e,Be,void 0!==$e.body?$e.body:null,{headers:Xt,context:$e.context,params:tn,reportProgress:$e.reportProgress,responseType:$e.responseType||"json",withCredentials:$e.withCredentials})}const ut=(0,v.of)(st).pipe((0,o.b)(Xt=>this.handler.handle(Xt)));if(_e instanceof b||"events"===$e.observe)return ut;const St=ut.pipe((0,d.h)(Xt=>Xt instanceof Y));switch($e.observe||"body"){case"body":switch(st.responseType){case"arraybuffer":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&!(Xt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xt.body}));case"blob":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&!(Xt.body instanceof Blob))throw new Error("Response is not a Blob.");return Xt.body}));case"text":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&"string"!=typeof Xt.body)throw new Error("Response is not a string.");return Xt.body}));default:return St.pipe((0,u.U)(Xt=>Xt.body))}case"response":return St;default:throw new Error(`Unreachable: unhandled observe type ${$e.observe}}`)}}delete(_e,Be={}){return this.request("DELETE",_e,Be)}get(_e,Be={}){return this.request("GET",_e,Be)}head(_e,Be={}){return this.request("HEAD",_e,Be)}jsonp(_e,Be){return this.request("JSONP",_e,{params:(new T).append(Be,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(_e,Be={}){return this.request("OPTIONS",_e,Be)}patch(_e,Be,$e={}){return this.request("PATCH",_e,te($e,Be))}post(_e,Be,$e={}){return this.request("POST",_e,te($e,Be))}put(_e,Be,$e={}){return this.request("PUT",_e,te($e,Be))}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(h))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();class J{constructor(Z,_e){this.next=Z,this.interceptor=_e}handle(Z){return this.interceptor.intercept(Z,this.next)}}const ie=new f.InjectionToken("HTTP_INTERCEPTORS");let ae=(()=>{class U{intercept(_e,Be){return Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),le=0;class Je{}let gt=(()=>{class U{constructor(_e,Be){this.callbackMap=_e,this.document=Be,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+le++}handle(_e){if("JSONP"!==_e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==_e.responseType)throw new Error("JSONP requests must use Json response type.");return new m.y(Be=>{const $e=this.nextCallback(),st=_e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${$e}$1`),ut=this.document.createElement("script");ut.src=st;let St=null,Xt=!1,tn=!1;this.callbackMap[$e]=xt=>{delete this.callbackMap[$e],!tn&&(St=xt,Xt=!0)};const Dt=()=>{ut.parentNode&&ut.parentNode.removeChild(ut),delete this.callbackMap[$e]},Kt=xt=>{tn||this.resolvedPromise.then(()=>{Dt(),Xt?(Be.next(new Y({body:St,status:200,statusText:"OK",url:st})),Be.complete()):Be.error(new Q({url:st,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},et=xt=>{tn||(Dt(),Be.error(new Q({error:xt,status:0,statusText:"JSONP Error",url:st})))};return ut.addEventListener("load",Kt),ut.addEventListener("error",et),this.document.body.appendChild(ut),Be.next({type:L.Sent}),()=>{tn=!0,ut.removeEventListener("load",Kt),ut.removeEventListener("error",et),Dt()}})}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(Je),f.\u0275\u0275inject(n.DOCUMENT))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),Ue=(()=>{class U{constructor(_e){this.jsonp=_e}intercept(_e,Be){return"JSONP"===_e.method?this.jsonp.handle(_e):Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(gt))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();const tt=/^\)\]\}',?\n/;let ft=(()=>{class U{constructor(_e){this.xhrFactory=_e}handle(_e){if("JSONP"===_e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new m.y(Be=>{const $e=this.xhrFactory.build();if($e.open(_e.method,_e.urlWithParams),_e.withCredentials&&($e.withCredentials=!0),_e.headers.forEach((xt,Lt)=>$e.setRequestHeader(xt,Lt.join(","))),_e.headers.has("Accept")||$e.setRequestHeader("Accept","application/json, text/plain, */*"),!_e.headers.has("Content-Type")){const xt=_e.detectContentTypeHeader();null!==xt&&$e.setRequestHeader("Content-Type",xt)}if(_e.responseType){const xt=_e.responseType.toLowerCase();$e.responseType="json"!==xt?xt:"text"}const st=_e.serializeBody();let ut=null;const St=()=>{if(null!==ut)return ut;const xt=1223===$e.status?204:$e.status,Lt=$e.statusText||"OK",Qe=new s($e.getAllResponseHeaders()),mt=function(U){return"responseURL"in U&&U.responseURL?U.responseURL:/^X-Request-URL:/m.test(U.getAllResponseHeaders())?U.getResponseHeader("X-Request-URL"):null}($e)||_e.url;return ut=new ne({headers:Qe,status:xt,statusText:Lt,url:mt}),ut},Xt=()=>{let{headers:xt,status:Lt,statusText:Qe,url:mt}=St(),Vt=null;204!==Lt&&(Vt=void 0===$e.response?$e.responseText:$e.response),0===Lt&&(Lt=Vt?200:0);let qt=Lt>=200&&Lt<300;if("json"===_e.responseType&&"string"==typeof Vt){const Ne=Vt;Vt=Vt.replace(tt,"");try{Vt=""!==Vt?JSON.parse(Vt):null}catch(Se){Vt=Ne,qt&&(qt=!1,Vt={error:Se,text:Vt})}}qt?(Be.next(new Y({body:Vt,headers:xt,status:Lt,statusText:Qe,url:mt||void 0})),Be.complete()):Be.error(new Q({error:Vt,headers:xt,status:Lt,statusText:Qe,url:mt||void 0}))},tn=xt=>{const{url:Lt}=St(),Qe=new Q({error:xt,status:$e.status||0,statusText:$e.statusText||"Unknown Error",url:Lt||void 0});Be.error(Qe)};let Dt=!1;const Kt=xt=>{Dt||(Be.next(St()),Dt=!0);let Lt={type:L.DownloadProgress,loaded:xt.loaded};xt.lengthComputable&&(Lt.total=xt.total),"text"===_e.responseType&&!!$e.responseText&&(Lt.partialText=$e.responseText),Be.next(Lt)},et=xt=>{let Lt={type:L.UploadProgress,loaded:xt.loaded};xt.lengthComputable&&(Lt.total=xt.total),Be.next(Lt)};return $e.addEventListener("load",Xt),$e.addEventListener("error",tn),$e.addEventListener("timeout",tn),$e.addEventListener("abort",tn),_e.reportProgress&&($e.addEventListener("progress",Kt),null!==st&&$e.upload&&$e.upload.addEventListener("progress",et)),$e.send(st),Be.next({type:L.Sent}),()=>{$e.removeEventListener("error",tn),$e.removeEventListener("abort",tn),$e.removeEventListener("load",Xt),$e.removeEventListener("timeout",tn),_e.reportProgress&&($e.removeEventListener("progress",Kt),null!==st&&$e.upload&&$e.upload.removeEventListener("progress",et)),$e.readyState!==$e.DONE&&$e.abort()}})}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(n.XhrFactory))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();const vt=new f.InjectionToken("XSRF_COOKIE_NAME"),yt=new f.InjectionToken("XSRF_HEADER_NAME");class ot{}let _t=(()=>{class U{constructor(_e,Be,$e){this.doc=_e,this.platform=Be,this.cookieName=$e,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=(0,n.\u0275parseCookieValue)(_e,this.cookieName),this.lastCookieString=_e),this.lastToken}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(f.PLATFORM_ID),f.\u0275\u0275inject(vt))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),At=(()=>{class U{constructor(_e,Be){this.tokenService=_e,this.headerName=Be}intercept(_e,Be){const $e=_e.url.toLowerCase();if("GET"===_e.method||"HEAD"===_e.method||$e.startsWith("http://")||$e.startsWith("https://"))return Be.handle(_e);const st=this.tokenService.getToken();return null!==st&&!_e.headers.has(this.headerName)&&(_e=_e.clone({headers:_e.headers.set(this.headerName,st)})),Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(ot),f.\u0275\u0275inject(yt))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),Tt=(()=>{class U{constructor(_e,Be){this.backend=_e,this.injector=Be,this.chain=null}handle(_e){if(null===this.chain){const Be=this.injector.get(ie,[]);this.chain=Be.reduceRight(($e,st)=>new J($e,st),this.backend)}return this.chain.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(r),f.\u0275\u0275inject(f.Injector))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();function Et(){return"object"==typeof window?window:{}}let Ee=(()=>{class U{static disable(){return{ngModule:U,providers:[{provide:At,useClass:ae}]}}static withOptions(_e={}){return{ngModule:U,providers:[_e.cookieName?{provide:vt,useValue:_e.cookieName}:[],_e.headerName?{provide:yt,useValue:_e.headerName}:[]]}}}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[At,{provide:ie,useExisting:At,multi:!0},{provide:ot,useClass:_t},{provide:vt,useValue:"XSRF-TOKEN"},{provide:yt,useValue:"X-XSRF-TOKEN"}]}),U})(),fe=(()=>{class U{}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[$,{provide:h,useClass:Tt},ft,{provide:r,useExisting:ft}],imports:[[Ee.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),U})(),H=(()=>{class U{}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[gt,{provide:Je,useFactory:Et},{provide:ie,useClass:Ue,multi:!0}]}),U})();const x=n.XhrFactory},5e3:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>vo,APP_BOOTSTRAP_LISTENER:()=>sg,APP_ID:()=>tg,APP_INITIALIZER:()=>bd,ApplicationInitStatus:()=>la,ApplicationModule:()=>XC,ApplicationRef:()=>Wa,Attribute:()=>ha,COMPILER_OPTIONS:()=>ug,CUSTOM_ELEMENTS_SCHEMA:()=>Mh,ChangeDetectionStrategy:()=>Be,ChangeDetectorRef:()=>Mg,Compiler:()=>Ed,CompilerFactory:()=>oC,Component:()=>Q1,ComponentFactory:()=>El,ComponentFactoryResolver:()=>Na,ComponentRef:()=>V0,ContentChild:()=>Vl,ContentChildren:()=>Bl,DEFAULT_CURRENCY_CODE:()=>ag,DebugElement:()=>kC,DebugEventListener:()=>DC,DebugNode:()=>LC,DefaultIterableDiffer:()=>Ag,Directive:()=>eg,ElementRef:()=>Ua,EmbeddedViewRef:()=>SC,ErrorHandler:()=>Ca,EventEmitter:()=>Xs,Host:()=>Qd,HostBinding:()=>J1,HostListener:()=>eC,INJECTOR:()=>dl,Inject:()=>fo,InjectFlags:()=>Ee,Injectable:()=>by,InjectionToken:()=>lr,Injector:()=>gs,Input:()=>Z1,IterableDiffers:()=>kl,KeyValueDiffers:()=>Pl,LOCALE_ID:()=>Rl,MissingTranslationStrategy:()=>Zs,ModuleWithComponentFactories:()=>lg,NO_ERRORS_SCHEMA:()=>Sh,NgModule:()=>tC,NgModuleFactory:()=>X0,NgModuleRef:()=>sa,NgProbeToken:()=>mC,NgZone:()=>_s,Optional:()=>Is,Output:()=>q1,PACKAGE_ROOT_URL:()=>iC,PLATFORM_ID:()=>rg,PLATFORM_INITIALIZER:()=>ig,Pipe:()=>X1,PlatformRef:()=>Ad,Query:()=>yo,QueryList:()=>Tl,ReflectiveInjector:()=>Jo,ReflectiveKey:()=>ao,Renderer2:()=>c1,RendererFactory2:()=>H0,RendererStyleFlags2:()=>Ks,ResolvedReflectiveFactory:()=>mp,Sanitizer:()=>j0,SecurityContext:()=>br,Self:()=>io,SimpleChange:()=>Cr,SkipSelf:()=>Eo,TRANSLATIONS:()=>rC,TRANSLATIONS_FORMAT:()=>sC,TemplateRef:()=>$a,Testability:()=>fg,TestabilityRegistry:()=>Dd,Type:()=>Oo,VERSION:()=>z0,Version:()=>W0,ViewChild:()=>Hl,ViewChildren:()=>$l,ViewContainerRef:()=>Il,ViewEncapsulation:()=>ut,ViewRef:()=>Dg,asNativeElements:()=>TC,assertPlatform:()=>vg,createNgModuleRef:()=>v1,createPlatform:()=>gg,createPlatformFactory:()=>_g,defineInjectable:()=>tt,destroyPlatform:()=>gC,enableProdMode:()=>CC,forwardRef:()=>i,getDebugNode:()=>Ll,getModuleFactory:()=>EC,getNgModuleById:()=>wC,getPlatform:()=>Id,inject:()=>Fi,isDevMode:()=>bC,platformCore:()=>jC,resolveForwardRef:()=>c,setTestabilityGetter:()=>fC,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>xd,\u0275APP_ID_RANDOM_PROVIDER:()=>ng,\u0275ChangeDetectorStatus:()=>$e,\u0275ComponentFactory:()=>El,\u0275Console:()=>og,\u0275DEFAULT_LOCALE_ID:()=>Ra,\u0275INJECTOR_SCOPE:()=>Uu,\u0275LifecycleHooksFeature:()=>tp,\u0275LocaleDataIndex:()=>Vn,\u0275NG_COMP_DEF:()=>mt,\u0275NG_DIR_DEF:()=>Vt,\u0275NG_ELEMENT_ID:()=>ee,\u0275NG_INJ_DEF:()=>Tt,\u0275NG_MOD_DEF:()=>Ne,\u0275NG_PIPE_DEF:()=>qt,\u0275NG_PROV_DEF:()=>At,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>wl,\u0275NO_CHANGE:()=>ei,\u0275NgModuleFactory:()=>Dl,\u0275NoopNgZone:()=>hg,\u0275ReflectionCapabilities:()=>bn,\u0275Render3ComponentFactory:()=>Sl,\u0275Render3ComponentRef:()=>Y0,\u0275Render3NgModuleRef:()=>sd,\u0275RuntimeError:()=>y,\u0275ViewRef:()=>ra,\u0275_sanitizeHtml:()=>hh,\u0275_sanitizeUrl:()=>_a,\u0275allowSanitizationBypassAndThrow:()=>Po,\u0275bypassSanitizationTrustHtml:()=>Xg,\u0275bypassSanitizationTrustResourceUrl:()=>e_,\u0275bypassSanitizationTrustScript:()=>qg,\u0275bypassSanitizationTrustStyle:()=>Zg,\u0275bypassSanitizationTrustUrl:()=>Jg,\u0275clearResolutionOfComponentResourcesQueue:()=>eh,\u0275compileComponent:()=>Hm,\u0275compileDirective:()=>yd,\u0275compileNgModule:()=>Fm,\u0275compileNgModuleDefs:()=>Nm,\u0275compileNgModuleFactory:()=>pg,\u0275compilePipe:()=>qm,\u0275createInjector:()=>Vu,\u0275defaultIterableDiffers:()=>Fg,\u0275defaultKeyValueDiffers:()=>Ng,\u0275detectChanges:()=>Nf,\u0275devModeEqual:()=>rp,\u0275findLocaleData:()=>Qc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>km,\u0275getDebugNode:()=>Ll,\u0275getDebugNodeR2:()=>RC,\u0275getDirectives:()=>Yf,\u0275getHostElement:()=>ju,\u0275getInjectableDef:()=>ft,\u0275getLContext:()=>Qr,\u0275getLocaleCurrencyCode:()=>ub,\u0275getLocalePluralCase:()=>c0,\u0275getSanitizationBypassType:()=>rh,\u0275global:()=>Kt,\u0275injectChangeDetectorRef:()=>Sg,\u0275isBoundToModule:()=>mg,\u0275isDefaultChangeDetectionStrategy:()=>st,\u0275isListLikeIterable:()=>Ta,\u0275isObservable:()=>Mp,\u0275isPromise:()=>fc,\u0275isSubscribable:()=>wp,\u0275ivyEnabled:()=>ZC,\u0275makeDecorator:()=>Ts,\u0275markDirty:()=>Uf,\u0275noSideEffects:()=>_e,\u0275patchComponentDefWithScope:()=>gd,\u0275publishDefaultGlobalUtils:()=>iy,\u0275publishGlobalUtil:()=>As,\u0275registerLocaleData:()=>lb,\u0275registerNgModuleType:()=>q0,\u0275renderComponent:()=>ry,\u0275resetCompiledComponents:()=>B1,\u0275resetJitOptions:()=>N1,\u0275resolveComponentResources:()=>qd,\u0275setClassMetadata:()=>Q0,\u0275setCurrentInjector:()=>wi,\u0275setDocument:()=>Jr,\u0275setLocaleId:()=>f0,\u0275store:()=>op,\u0275stringify:()=>h,\u0275transitiveScopesFor:()=>ja,\u0275unregisterLocaleData:()=>cb,\u0275unwrapSafeValue:()=>ro,\u0275whenRendered:()=>sy,\u0275\u0275CopyDefinitionFeature:()=>ip,\u0275\u0275FactoryTarget:()=>vr,\u0275\u0275InheritDefinitionFeature:()=>zu,\u0275\u0275NgOnChangesFeature:()=>Sr,\u0275\u0275ProvidersFeature:()=>B0,\u0275\u0275advance:()=>nf,\u0275\u0275attribute:()=>Yu,\u0275\u0275attributeInterpolate1:()=>Qu,\u0275\u0275attributeInterpolate2:()=>Xu,\u0275\u0275attributeInterpolate3:()=>Zu,\u0275\u0275attributeInterpolate4:()=>qu,\u0275\u0275attributeInterpolate5:()=>Ju,\u0275\u0275attributeInterpolate6:()=>ec,\u0275\u0275attributeInterpolate7:()=>tc,\u0275\u0275attributeInterpolate8:()=>nc,\u0275\u0275attributeInterpolateV:()=>ic,\u0275\u0275classMap:()=>Np,\u0275\u0275classMapInterpolate1:()=>zp,\u0275\u0275classMapInterpolate2:()=>Kp,\u0275\u0275classMapInterpolate3:()=>Gp,\u0275\u0275classMapInterpolate4:()=>Yp,\u0275\u0275classMapInterpolate5:()=>Qp,\u0275\u0275classMapInterpolate6:()=>Xp,\u0275\u0275classMapInterpolate7:()=>Zp,\u0275\u0275classMapInterpolate8:()=>qp,\u0275\u0275classMapInterpolateV:()=>Jp,\u0275\u0275classProp:()=>Tc,\u0275\u0275contentQuery:()=>xm,\u0275\u0275defineComponent:()=>Me,\u0275\u0275defineDirective:()=>He,\u0275\u0275defineInjectable:()=>Ue,\u0275\u0275defineInjector:()=>at,\u0275\u0275defineNgModule:()=>An,\u0275\u0275definePipe:()=>pt,\u0275\u0275directiveInject:()=>Aa,\u0275\u0275disableBindings:()=>Bs,\u0275\u0275element:()=>bp,\u0275\u0275elementContainer:()=>Cp,\u0275\u0275elementContainerEnd:()=>hc,\u0275\u0275elementContainerStart:()=>dc,\u0275\u0275elementEnd:()=>cc,\u0275\u0275elementStart:()=>uc,\u0275\u0275enableBindings:()=>ds,\u0275\u0275getCurrentView:()=>Ep,\u0275\u0275getInheritedFactory:()=>Ds,\u0275\u0275hostProperty:()=>Gc,\u0275\u0275i18n:()=>k0,\u0275\u0275i18nApply:()=>F0,\u0275\u0275i18nAttributes:()=>P0,\u0275\u0275i18nEnd:()=>Jc,\u0275\u0275i18nExp:()=>ed,\u0275\u0275i18nPostprocess:()=>N0,\u0275\u0275i18nStart:()=>qc,\u0275\u0275inject:()=>Cn,\u0275\u0275injectAttribute:()=>da,\u0275\u0275invalidFactory:()=>yp,\u0275\u0275invalidFactoryDep:()=>Pi,\u0275\u0275listener:()=>pc,\u0275\u0275loadQuery:()=>Im,\u0275\u0275namespaceHTML:()=>Es,\u0275\u0275namespaceMathML:()=>Si,\u0275\u0275namespaceSVG:()=>dr,\u0275\u0275nextContext:()=>Tp,\u0275\u0275ngDeclareClassMetadata:()=>JC,\u0275\u0275ngDeclareComponent:()=>eE,\u0275\u0275ngDeclareDirective:()=>qC,\u0275\u0275ngDeclareFactory:()=>tE,\u0275\u0275ngDeclareInjectable:()=>iE,\u0275\u0275ngDeclareInjector:()=>rE,\u0275\u0275ngDeclareNgModule:()=>sE,\u0275\u0275ngDeclarePipe:()=>oE,\u0275\u0275pipe:()=>mm,\u0275\u0275pipeBind1:()=>gm,\u0275\u0275pipeBind2:()=>_m,\u0275\u0275pipeBind3:()=>vm,\u0275\u0275pipeBind4:()=>ym,\u0275\u0275pipeBindV:()=>bm,\u0275\u0275projection:()=>Ip,\u0275\u0275projectionDef:()=>xp,\u0275\u0275property:()=>ac,\u0275\u0275propertyInterpolate:()=>_c,\u0275\u0275propertyInterpolate1:()=>ml,\u0275\u0275propertyInterpolate2:()=>vc,\u0275\u0275propertyInterpolate3:()=>yc,\u0275\u0275propertyInterpolate4:()=>bc,\u0275\u0275propertyInterpolate5:()=>Cc,\u0275\u0275propertyInterpolate6:()=>Ec,\u0275\u0275propertyInterpolate7:()=>wc,\u0275\u0275propertyInterpolate8:()=>Mc,\u0275\u0275propertyInterpolateV:()=>Sc,\u0275\u0275pureFunction0:()=>em,\u0275\u0275pureFunction1:()=>tm,\u0275\u0275pureFunction2:()=>nm,\u0275\u0275pureFunction3:()=>im,\u0275\u0275pureFunction4:()=>rm,\u0275\u0275pureFunction5:()=>sm,\u0275\u0275pureFunction6:()=>om,\u0275\u0275pureFunction7:()=>am,\u0275\u0275pureFunction8:()=>lm,\u0275\u0275pureFunctionV:()=>um,\u0275\u0275queryRefresh:()=>Dm,\u0275\u0275reference:()=>ap,\u0275\u0275resolveBody:()=>Ah,\u0275\u0275resolveDocument:()=>Ih,\u0275\u0275resolveWindow:()=>xh,\u0275\u0275restoreView:()=>G,\u0275\u0275sanitizeHtml:()=>fh,\u0275\u0275sanitizeResourceUrl:()=>eu,\u0275\u0275sanitizeScript:()=>mh,\u0275\u0275sanitizeStyle:()=>ph,\u0275\u0275sanitizeUrl:()=>Jl,\u0275\u0275sanitizeUrlOrResourceUrl:()=>vh,\u0275\u0275setComponentScope:()=>ze,\u0275\u0275setNgModuleScope:()=>lt,\u0275\u0275styleMap:()=>Ps,\u0275\u0275styleMapInterpolate1:()=>e0,\u0275\u0275styleMapInterpolate2:()=>t0,\u0275\u0275styleMapInterpolate3:()=>n0,\u0275\u0275styleMapInterpolate4:()=>r0,\u0275\u0275styleMapInterpolate5:()=>s0,\u0275\u0275styleMapInterpolate6:()=>o0,\u0275\u0275styleMapInterpolate7:()=>a0,\u0275\u0275styleMapInterpolate8:()=>l0,\u0275\u0275styleMapInterpolateV:()=>u0,\u0275\u0275styleProp:()=>Dc,\u0275\u0275stylePropInterpolate1:()=>Uc,\u0275\u0275stylePropInterpolate2:()=>Bc,\u0275\u0275stylePropInterpolate3:()=>Vc,\u0275\u0275stylePropInterpolate4:()=>$c,\u0275\u0275stylePropInterpolate5:()=>Hc,\u0275\u0275stylePropInterpolate6:()=>jc,\u0275\u0275stylePropInterpolate7:()=>Wc,\u0275\u0275stylePropInterpolate8:()=>zc,\u0275\u0275stylePropInterpolateV:()=>Kc,\u0275\u0275syntheticHostListener:()=>mc,\u0275\u0275syntheticHostProperty:()=>Yc,\u0275\u0275template:()=>sp,\u0275\u0275templateRefExtractor:()=>Lm,\u0275\u0275text:()=>Wp,\u0275\u0275textInterpolate:()=>Ic,\u0275\u0275textInterpolate1:()=>_l,\u0275\u0275textInterpolate2:()=>Ac,\u0275\u0275textInterpolate3:()=>Oc,\u0275\u0275textInterpolate4:()=>Rc,\u0275\u0275textInterpolate5:()=>Lc,\u0275\u0275textInterpolate6:()=>kc,\u0275\u0275textInterpolate7:()=>Pc,\u0275\u0275textInterpolate8:()=>Fc,\u0275\u0275textInterpolateV:()=>Nc,\u0275\u0275trustConstantHtml:()=>gh,\u0275\u0275trustConstantResourceUrl:()=>_h,\u0275\u0275viewQuery:()=>Tm});var n=p(8929),f=p(2654),v=p(6498),m=p(6787),o=p(8117);function d(e){for(let t in e)if(e[t]===d)return t;throw Error("Could not find renamed property on target object.")}function u(e,t){for(const a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=t[a])}function h(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(h).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const a=t.indexOf("\n");return-1===a?t:t.substring(0,a)}function r(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const s=d({__forward_ref__:d});function i(e){return e.__forward_ref__=i,e.toString=function(){return h(this())},e}function c(e){return l(e)?e():e}function l(e){return"function"==typeof e&&e.hasOwnProperty(s)&&e.__forward_ref__===i}class y extends Error{constructor(t,a){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,a)),this.code=t}}function D(e){return"string"==typeof e?e:null==e?"":String(e)}function O(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():D(e)}function M(e,t){const a=t?` in ${t}`:"";throw new y("201",`No provider for ${O(e)} found${a}`)}function Le(e,t,a,_){throw new Error(`ASSERTION ERROR: ${e}`+(null==_?"":` [Expected=> ${a} ${_} ${t} <=Actual]`))}function Ue(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const tt=Ue;function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return vt(e,At)||vt(e,Bt)}function vt(e,t){return e.hasOwnProperty(t)?e[t]:null}function _t(e){return e&&(e.hasOwnProperty(Tt)||e.hasOwnProperty(Et))?e[Tt]:null}const At=d({\u0275prov:d}),Tt=d({\u0275inj:d}),Bt=d({ngInjectableDef:d}),Et=d({ngInjectorDef:d});var Ee=(()=>((Ee=Ee||{})[Ee.Default=0]="Default",Ee[Ee.Host=1]="Host",Ee[Ee.Self=2]="Self",Ee[Ee.SkipSelf=4]="SkipSelf",Ee[Ee.Optional=8]="Optional",Ee))();let fe;function x(e){const t=fe;return fe=e,t}function U(e,t,a){const _=ft(e);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:a&Ee.Optional?null:void 0!==t?t:void M(h(e),"Injector")}function _e(e){return{toString:e}.toString()}var Be=(()=>((Be=Be||{})[Be.OnPush=0]="OnPush",Be[Be.Default=1]="Default",Be))(),$e=(()=>(($e=$e||{})[$e.CheckOnce=0]="CheckOnce",$e[$e.Checked=1]="Checked",$e[$e.CheckAlways=2]="CheckAlways",$e[$e.Detached=3]="Detached",$e[$e.Errored=4]="Errored",$e[$e.Destroyed=5]="Destroyed",$e))();function st(e){return null==e||e===Be.Default}var ut=(()=>{return(e=ut||(ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ut;var e})();const St="undefined"!=typeof globalThis&&globalThis,Xt="undefined"!=typeof window&&window,tn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kt=St||"undefined"!=typeof global&&global||Xt||tn,Lt={},Qe=[],mt=d({\u0275cmp:d}),Vt=d({\u0275dir:d}),qt=d({\u0275pipe:d}),Ne=d({\u0275mod:d}),Se=d({\u0275fac:d}),ee=d({__NG_ELEMENT_ID__:d});let re=0;function Me(e){return _e(()=>{const a={},_={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:a,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Be.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Qe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ut.Emulated,id:"c",styles:e.styles||Qe,_:null,setInput:null,schemas:e.schemas||null,tView:null},C=e.directives,R=e.features,W=e.pipes;return _.id+=re++,_.inputs=ct(e.inputs,a),_.outputs=ct(e.outputs),R&&R.forEach(se=>se(_)),_.directiveDefs=C?()=>("function"==typeof C?C():C).map(It):null,_.pipeDefs=W?()=>("function"==typeof W?W():W).map(Qt):null,_})}function ze(e,t,a){const _=e.\u0275cmp;_.directiveDefs=()=>t.map(It),_.pipeDefs=()=>a.map(Qt)}function It(e){return Ot(e)||un(e)}function Qt(e){return on(e)}const cn={};function An(e){return _e(()=>{const t={type:e.type,bootstrap:e.bootstrap||Qe,declarations:e.declarations||Qe,imports:e.imports||Qe,exports:e.exports||Qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(cn[e.id]=e.type),t})}function lt(e,t){return _e(()=>{const a=On(e,!0);a.declarations=t.declarations||Qe,a.imports=t.imports||Qe,a.exports=t.exports||Qe})}function ct(e,t){if(null==e)return Lt;const a={};for(const _ in e)if(e.hasOwnProperty(_)){let C=e[_],R=C;Array.isArray(C)&&(R=C[1],C=C[0]),a[C]=_,t&&(t[C]=R)}return a}const He=Me;function pt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ot(e){return e[mt]||null}function un(e){return e[Vt]||null}function on(e){return e[qt]||null}function On(e,t){const a=e[Ne]||null;if(!a&&!0===t)throw new Error(`Type ${h(e)} does not have '\u0275mod' property.`);return a}function Xn(e){return Array.isArray(e)&&"object"==typeof e[1]}function pi(e){return Array.isArray(e)&&!0===e[1]}function Gi(e){return 0!=(8&e.flags)}function Ui(e){return 2==(2&e.flags)}function tr(e){return 1==(1&e.flags)}function bi(e){return null!==e.template}function Rn(e){return 0!=(512&e[2])}function ir(e,t){return e.hasOwnProperty(Se)?e[Se]:null}class Cr{constructor(t,a,_){this.previousValue=t,this.currentValue=a,this.firstChange=_}isFirstChange(){return this.firstChange}}function Sr(){return mr}function mr(e){return e.type.prototype.ngOnChanges&&(e.setInput=jr),Hr}function Hr(){const e=Wr(this),t=null==e?void 0:e.current;if(t){const a=e.previous;if(a===Lt)e.previous=t;else for(let _ in t)a[_]=t[_];e.current=null,this.ngOnChanges(t)}}function jr(e,t,a,_){const C=Wr(e)||function(e,t){return e[Wi]=t}(e,{previous:Lt,current:null}),R=C.current||(C.current={}),W=C.previous,se=this.declaredInputs[a],ge=W[se];R[se]=new Cr(ge&&ge.currentValue,t,W===Lt),e[_]=t}Sr.ngInherit=!0;const Wi="__ngSimpleChanges__";function Wr(e){return e[Wi]||null}let Dr=null;const Lr=e=>{Dr=e},Ji=function(e,t,a){null!=Dr&&Dr(e,t,a)},Fr="http://www.w3.org/2000/svg",ls="http://www.w3.org/1998/MathML/";let kr;function Jr(e){kr=e}function Tr(){return void 0!==kr?kr:"undefined"!=typeof document?document:void 0}function si(e){return!!e.listen}const zr={createRenderer:(e,t)=>Tr()};function be(e){for(;Array.isArray(e);)e=e[0];return e}function V(e,t){return be(t[e])}function ve(e,t){return be(t[e.index])}function Nt(e,t){return e.data[t]}function nn(e,t){return e[t]}function In(e,t){const a=t[e];return Xn(a)?a:a[0]}function ni(e){return 4==(4&e[2])}function di(e){return 128==(128&e[2])}function hi(e,t){return null==t?null:e[t]}function Ei(e){e[18]=0}function ki(e,t){e[5]+=t;let a=e,_=e[3];for(;null!==_&&(1===t&&1===a[5]||-1===t&&0===a[5]);)_[5]+=t,a=_,_=_[3]}const xn={lFrame:bs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function es(){return xn.bindingsEnabled}function ds(){xn.bindingsEnabled=!0}function Bs(){xn.bindingsEnabled=!1}function we(){return xn.lFrame.lView}function N(){return xn.lFrame.tView}function G(e){return xn.lFrame.contextLView=e,e[8]}function pe(){let e=Ae();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ae(){return xn.lFrame.currentTNode}function We(){const e=xn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function rt(e,t){const a=xn.lFrame;a.currentTNode=e,a.isParent=t}function dt(){return xn.lFrame.isParent}function Rt(){xn.lFrame.isParent=!1}function pn(){return xn.isInCheckNoChangesMode}function Pn(e){xn.isInCheckNoChangesMode=e}function Ln(){const e=xn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _n(){return xn.lFrame.bindingIndex}function Bn(e){return xn.lFrame.bindingIndex=e}function Kn(){return xn.lFrame.bindingIndex++}function _i(e){const t=xn.lFrame,a=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,a}function sr(e){xn.lFrame.inI18n=e}function Qi(e,t){const a=xn.lFrame;a.bindingIndex=a.bindingRootIndex=e,fr(t)}function fr(e){xn.lFrame.currentDirectiveIndex=e}function Xi(e){const t=xn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function gr(){return xn.lFrame.currentQueryIndex}function zi(e){xn.lFrame.currentQueryIndex=e}function Pr(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ys(e,t,a){if(a&Ee.SkipSelf){let C=t,R=e;for(;!(C=C.parent,null!==C||a&Ee.Host||(C=Pr(R),null===C||(R=R[15],10&C.type))););if(null===C)return!1;t=C,e=R}const _=xn.lFrame=Ur();return _.currentTNode=t,_.lView=e,!0}function Yi(e){const t=Ur(),a=e[1];xn.lFrame=t,t.currentTNode=a.firstChild,t.lView=e,t.tView=a,t.contextLView=e,t.bindingIndex=a.bindingStartIndex,t.inI18n=!1}function Ur(){const e=xn.lFrame,t=null===e?null:e.child;return null===t?bs(e):t}function bs(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 Cs(){const e=xn.lFrame;return xn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const mn=Cs;function Mn(){const e=Cs();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 ii(){return xn.lFrame.selectedIndex}function Hi(e){xn.lFrame.selectedIndex=e}function Zn(){const e=xn.lFrame;return Nt(e.tView,e.selectedIndex)}function dr(){xn.lFrame.currentNamespace=Fr}function Si(){xn.lFrame.currentNamespace=ls}function Es(){xn.lFrame.currentNamespace=null}function Ir(e,t){for(let a=t.directiveStart,_=t.directiveEnd;a<_;a++){const R=e.data[a].type.prototype,{ngAfterContentInit:W,ngAfterContentChecked:se,ngAfterViewInit:ge,ngAfterViewChecked:De,ngOnDestroy:ke}=R;W&&(e.contentHooks||(e.contentHooks=[])).push(-a,W),se&&((e.contentHooks||(e.contentHooks=[])).push(a,se),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(a,se)),ge&&(e.viewHooks||(e.viewHooks=[])).push(-a,ge),De&&((e.viewHooks||(e.viewHooks=[])).push(a,De),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(a,De)),null!=ke&&(e.destroyHooks||(e.destroyHooks=[])).push(a,ke)}}function _r(e,t,a){Vs(e,t,3,a)}function ts(e,t,a,_){(3&e[2])===a&&Vs(e,t,a,_)}function Br(e,t){let a=e[2];(3&a)===t&&(a&=2047,a+=1,e[2]=a)}function Vs(e,t,a,_){const R=null!=_?_:-1,W=t.length-1;let se=0;for(let ge=void 0!==_?65535&e[18]:0;ge=_)break}else t[ge]<0&&(e[18]+=65536),(se>11>16&&(3&e[2])===t){e[2]+=2048,Ji(4,se,R);try{R.call(se)}finally{Ji(5,se,R)}}}else{Ji(4,se,R);try{R.call(se)}finally{Ji(5,se,R)}}}class rs{constructor(t,a,_){this.factory=t,this.resolving=!1,this.canSeeViewProviders=a,this.injectImpl=_}}function Mt(e,t,a){const _=si(e);let C=0;for(;Ct){W=R-1;break}}}for(;R>16}(e),_=t;for(;a>0;)_=_[15],a--;return _}let Te=!0;function Ve(e){const t=Te;return Te=e,t}let vn=0;function Dn(e,t){const a=Di(e,t);if(-1!==a)return a;const _=t[1];_.firstCreatePass&&(e.injectorIndex=t.length,vi(_.data,e),vi(t,null),vi(_.blueprint,null));const C=hs(e,t),R=e.injectorIndex;if(me(C)){const W=oe(C),se=Ce(C,t),ge=se[1].data;for(let De=0;De<8;De++)t[R+De]=se[W+De]|ge[W+De]}return t[R+8]=C,R}function vi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Di(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function hs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let a=0,_=null,C=t;for(;null!==C;){const R=C[1],W=R.type;if(_=2===W?R.declTNode:1===W?C[6]:null,null===_)return-1;if(a++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|a<<16}return-1}function Gr(e,t,a){!function(e,t,a){let _;"string"==typeof a?_=a.charCodeAt(0)||0:a.hasOwnProperty(ee)&&(_=a[ee]),null==_&&(_=a[ee]=vn++);const C=255&_;t.data[e+(C>>5)]|=1<=0?255&t:ua:t}(a);if("function"==typeof R){if(!ys(t,e,_))return _&Ee.Host?ps(C,a,_):eo(t,a,_,C);try{const W=R(_);if(null!=W||_&Ee.Optional)return W;M(a)}finally{mn()}}else if("number"==typeof R){let W=null,se=Di(e,t),ge=-1,De=_&Ee.Host?t[16][6]:null;for((-1===se||_&Ee.SkipSelf)&&(ge=-1===se?hs(e,t):t[se+8],-1!==ge&&Ga(_,!1)?(W=t[1],se=oe(ge),t=Ce(ge,t)):se=-1);-1!==se;){const ke=t[1];if(Ka(R,se,ke.data)){const qe=Nl(se,t,a,W,_,De);if(qe!==Rs)return qe}ge=t[se+8],-1!==ge&&Ga(_,t[1].data[se+8]===De)&&Ka(R,se,t)?(W=ke,se=oe(ge),t=Ce(ge,t)):se=-1}}}return eo(t,a,_,C)}const Rs={};function ua(){return new lo(pe(),we())}function Nl(e,t,a,_,C,R){const W=t[1],se=W.data[e+8],ke=Io(se,W,a,null==_?Ui(se)&&Te:_!=W&&0!=(3&se.type),C&Ee.Host&&R===se);return null!==ke?go(t,W,ke,se):Rs}function Io(e,t,a,_,C){const R=e.providerIndexes,W=t.data,se=1048575&R,ge=e.directiveStart,ke=R>>20,Ct=C?se+ke:e.directiveEnd;for(let Pt=_?se:se+ke;Pt=ge&&Yt.type===a)return Pt}if(C){const Pt=W[ge];if(Pt&&bi(Pt)&&Pt.type===a)return ge}return null}function go(e,t,a,_){let C=e[a];const R=t.data;if(function(e){return e instanceof rs}(C)){const W=C;W.resolving&&function(e,t){throw new y("200",`Circular dependency in DI detected for ${e}`)}(O(R[a]));const se=Ve(W.canSeeViewProviders);W.resolving=!0;const ge=W.injectImpl?x(W.injectImpl):null;ys(e,_,Ee.Default);try{C=e[a]=W.factory(void 0,R,e,_),t.firstCreatePass&&a>=_.directiveStart&&function(e,t,a){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:R}=t.type.prototype;if(_){const W=mr(t);(a.preOrderHooks||(a.preOrderHooks=[])).push(e,W),(a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(e,W)}C&&(a.preOrderHooks||(a.preOrderHooks=[])).push(0-e,C),R&&((a.preOrderHooks||(a.preOrderHooks=[])).push(e,R),(a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(e,R))}(a,R[a],t)}finally{null!==ge&&x(ge),Ve(se),W.resolving=!1,mn()}}return C}function Ka(e,t,a){return!!(a[t+(e>>5)]&1<{const t=e.prototype.constructor,a=t[Se]||ca(t),_=Object.prototype;let C=Object.getPrototypeOf(e.prototype).constructor;for(;C&&C!==_;){const R=C[Se]||ca(C);if(R&&R!==a)return R;C=Object.getPrototypeOf(C)}return R=>new R})}function ca(e){return l(e)?()=>{const t=ca(c(e));return t&&t()}:ir(e)}function da(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const a=e.attrs;if(a){const _=a.length;let C=0;for(;C<_;){const R=a[C];if(jt(R))break;if(0===R)C+=2;else if("number"==typeof R)for(C++;C<_&&"string"==typeof a[C];)C++;else{if(R===t)return a[C+1];C+=2}}}return null}(pe(),e)}const to="__annotations__",uo="__parameters__",co="__prop__metadata__";function Ts(e,t,a,_,C){return _e(()=>{const R=_o(t);function W(...se){if(this instanceof W)return R.call(this,...se),this;const ge=new W(...se);return function(ke){return C&&C(ke,...se),(ke.hasOwnProperty(to)?ke[to]:Object.defineProperty(ke,to,{value:[]})[to]).push(ge),_&&_(ke),ke}}return a&&(W.prototype=Object.create(a.prototype)),W.prototype.ngMetadataName=e,W.annotationCls=W,W})}function _o(e){return function(...a){if(e){const _=e(...a);for(const C in _)this[C]=_[C]}}}function Hs(e,t,a){return _e(()=>{const _=_o(t);function C(...R){if(this instanceof C)return _.apply(this,R),this;const W=new C(...R);return se.annotation=W,se;function se(ge,De,ke){const qe=ge.hasOwnProperty(uo)?ge[uo]:Object.defineProperty(ge,uo,{value:[]})[uo];for(;qe.length<=ke;)qe.push(null);return(qe[ke]=qe[ke]||[]).push(W),ge}}return a&&(C.prototype=Object.create(a.prototype)),C.prototype.ngMetadataName=e,C.annotationCls=C,C})}function js(e,t,a,_){return _e(()=>{const C=_o(t);function R(...W){if(this instanceof R)return C.apply(this,W),this;const se=new R(...W);return function(De,ke){const qe=De.constructor,Ct=qe.hasOwnProperty(co)?qe[co]:Object.defineProperty(qe,co,{value:{}})[co];Ct[ke]=Ct.hasOwnProperty(ke)&&Ct[ke]||[],Ct[ke].unshift(se),_&&_(De,ke,...W)}}return a&&(R.prototype=Object.create(a.prototype)),R.prototype.ngMetadataName=e,R.annotationCls=R,R})}const ha=Hs("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>da(e)}));class lr{constructor(t,a){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof a?this.__NG_ELEMENT_ID__=a:void 0!==a&&(this.\u0275prov=Ue({token:this,providedIn:a.providedIn||"root",factory:a.factory}))}toString(){return`InjectionToken ${this._desc}`}}const vo=new lr("AnalyzeForEntryComponents");class yo{}const Bl=js("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),yo),Vl=js("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),yo),$l=js("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),yo),Hl=js("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),yo);var vr=(()=>((vr=vr||{})[vr.Directive=0]="Directive",vr[vr.Component=1]="Component",vr[vr.Injectable=2]="Injectable",vr[vr.Pipe=3]="Pipe",vr[vr.NgModule=4]="NgModule",vr))();function yr(e){const t=Kt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Oo=Function;function bo(e){return"function"==typeof e}function os(e,t){void 0===t&&(t=e);for(let a=0;aArray.isArray(a)?xs(a,t):t(a))}function Ya(e,t,a){t>=e.length?e.push(a):e.splice(t,0,a)}function Co(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ho(e,t){const a=[];for(let _=0;_=0?e[1|_]=a:(_=~_,function(e,t,a,_){let C=e.length;if(C==t)e.push(a,_);else if(1===C)e.push(_,e[0]),e[0]=a;else{for(C--,e.push(e[C-1],e[C]);C>t;)e[C]=e[C-2],C--;e[t]=a,e[t+1]=_}}(e,_,t,a)),_}function ma(e,t){const a=P(e,t);if(a>=0)return e[1|a]}function P(e,t){return function(e,t,a){let _=0,C=e.length>>a;for(;C!==_;){const R=_+(C-_>>1),W=e[R<t?C=R:_=R+1}return~(C<new t(...a)}_zipTypesAndAnnotations(t,a){let _;_=ho(void 0===t?a.length:t.length);for(let C=0;C<_.length;C++)_[C]=void 0===t?[]:t[C]&&t[C]!=Object?[t[C]]:[],a&&null!=a[C]&&(_[C]=_[C].concat(a[C]));return _}_ownParameters(t,a){const _=t.toString();if(Ge.test(e=_)||Ut.test(e)||Fe.test(e)&&!ht.test(e))return null;var e;if(t.parameters&&t.parameters!==a.parameters)return t.parameters;const C=t.ctorParameters;if(C&&C!==a.ctorParameters){const se="function"==typeof C?C():C,ge=se.map(ke=>ke&&ke.type),De=se.map(ke=>ke&&wt(ke.decorators));return this._zipTypesAndAnnotations(ge,De)}const R=t.hasOwnProperty(uo)&&t[uo],W=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return W||R?this._zipTypesAndAnnotations(W,R):ho(t.length)}parameters(t){if(!bo(t))return[];const a=$t(t);let _=this._ownParameters(t,a);return!_&&a!==Object&&(_=this.parameters(a)),_||[]}_ownAnnotations(t,a){if(t.annotations&&t.annotations!==a.annotations){let _=t.annotations;return"function"==typeof _&&_.annotations&&(_=_.annotations),_}return t.decorators&&t.decorators!==a.decorators?wt(t.decorators):t.hasOwnProperty(to)?t[to]:null}annotations(t){if(!bo(t))return[];const a=$t(t),_=this._ownAnnotations(t,a)||[];return(a!==Object?this.annotations(a):[]).concat(_)}_ownPropMetadata(t,a){if(t.propMetadata&&t.propMetadata!==a.propMetadata){let _=t.propMetadata;return"function"==typeof _&&_.propMetadata&&(_=_.propMetadata),_}if(t.propDecorators&&t.propDecorators!==a.propDecorators){const _=t.propDecorators,C={};return Object.keys(_).forEach(R=>{C[R]=wt(_[R])}),C}return t.hasOwnProperty(co)?t[co]:null}propMetadata(t){if(!bo(t))return{};const a=$t(t),_={};if(a!==Object){const R=this.propMetadata(a);Object.keys(R).forEach(W=>{_[W]=R[W]})}const C=this._ownPropMetadata(t,a);return C&&Object.keys(C).forEach(R=>{const W=[];_.hasOwnProperty(R)&&W.push(..._[R]),W.push(...C[R]),_[R]=W}),_}ownPropMetadata(t){return bo(t)&&this._ownPropMetadata(t,$t(t))||{}}hasLifecycleHook(t,a){return t instanceof Oo&&a in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${h(t)}`}resourceUri(t){return`./${h(t)}`}resolveIdentifier(t,a,_,C){return C}resolveEnum(t,a){return t[a]}}function wt(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function $t(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const hn={},en="__NG_DI_FLAG__",Nn="ngTempTokenPath",Ci=/\n/gm,Ai="__source",gi=d({provide:String,useValue:d});let fn;function wi(e){const t=fn;return fn=e,t}function wr(e,t=Ee.Default){if(void 0===fn)throw new Error("inject() must be called from an injection context");return null===fn?U(e,void 0,t):fn.get(e,t&Ee.Optional?null:void 0,t)}function Cn(e,t=Ee.Default){return(fe||wr)(c(e),t)}function Pi(e){throw new Error("invalid")}const Fi=Cn;function ri(e){const t=[];for(let a=0;a({token:e})),-1),Is=Jn(Hs("Optional"),8),io=Jn(Hs("Self"),2),Eo=Jn(Hs("SkipSelf"),4),Qd=Jn(Hs("Host"),1);let Xd=null;function Kl(){return Xd=Xd||new bn}function qa(e){return Zd(Kl().parameters(e))}function Zd(e){return e.map(t=>function(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let a=0;a{const W=[];C.templateUrl&&W.push(_(C.templateUrl).then(qe=>{C.template=qe}));const se=C.styleUrls,ge=C.styles||(C.styles=[]),De=C.styles.length;se&&se.forEach((qe,Ct)=>{ge.push(""),W.push(_(qe).then(Pt=>{ge[De+Ct]=Pt,se.splice(se.indexOf(qe),1),0==se.length&&(C.styleUrls=void 0)}))});const ke=Promise.all(W).then(()=>function(e){ga.delete(e)}(R));t.push(ke)}),eh(),Promise.all(t).then(()=>{})}let Lo=new Map;const ga=new Set;function Jd(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function eh(){const e=Lo;return Lo=new Map,e}function $g(e){return"string"==typeof e?e:e.text()}let Ja,el;function Gl(){if(void 0===Ja&&(Ja=null,Kt.trustedTypes))try{Ja=Kt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ja}function ko(e){var t;return(null===(t=Gl())||void 0===t?void 0:t.createHTML(e))||e}function Yl(){if(void 0===el&&(el=null,Kt.trustedTypes))try{el=Kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return el}function th(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createHTML(e))||e}function nh(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createScript(e))||e}function ih(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createScriptURL(e))||e}class wo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zg extends wo{getTypeName(){return"HTML"}}class Kg extends wo{getTypeName(){return"Style"}}class Gg extends wo{getTypeName(){return"Script"}}class Yg extends wo{getTypeName(){return"URL"}}class Qg extends wo{getTypeName(){return"ResourceURL"}}function ro(e){return e instanceof wo?e.changingThisBreaksApplicationSecurity:e}function Po(e,t){const a=rh(e);if(null!=a&&a!==t){if("ResourceURL"===a&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${a} (see https://g.co/ng/security#xss)`)}return a===t}function rh(e){return e instanceof wo&&e.getTypeName()||null}function Xg(e){return new zg(e)}function Zg(e){return new Kg(e)}function qg(e){return new Gg(e)}function Jg(e){return new Yg(e)}function e_(e){return new Qg(e)}function sh(e){const t=new n_(e);return function(){try{return!!(new window.DOMParser).parseFromString(ko(""),"text/html")}catch(e){return!1}}()?new t_(t):t}class t_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const a=(new window.DOMParser).parseFromString(ko(t),"text/html").body;return null===a?this.inertDocumentHelper.getInertBodyElement(t):(a.removeChild(a.firstChild),a)}catch(a){return null}}}class n_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const a=this.inertDocument.createElement("html");this.inertDocument.appendChild(a);const _=this.inertDocument.createElement("body");a.appendChild(_)}}getInertBodyElement(t){const a=this.inertDocument.createElement("template");if("content"in a)return a.innerHTML=ko(t),a;const _=this.inertDocument.createElement("body");return _.innerHTML=ko(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(t){const a=t.attributes;for(let C=a.length-1;0_a(t.trim())).join(", ")}function Ws(e){const t={};for(const a of e.split(","))t[a]=!0;return t}function va(...e){const t={};for(const a of e)for(const _ in a)a.hasOwnProperty(_)&&(t[_]=!0);return t}const ah=Ws("area,br,col,hr,img,wbr"),lh=Ws("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uh=Ws("rp,rt"),Ql=va(ah,va(lh,Ws("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),va(uh,Ws("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),va(uh,lh)),Xl=Ws("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zl=Ws("srcset"),ch=va(Xl,Zl,Ws("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ws("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),o_=Ws("script,style,template");class a_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let a=t.firstChild,_=!0;for(;a;)if(a.nodeType===Node.ELEMENT_NODE?_=this.startElement(a):a.nodeType===Node.TEXT_NODE?this.chars(a.nodeValue):this.sanitizedSomething=!0,_&&a.firstChild)a=a.firstChild;else for(;a;){a.nodeType===Node.ELEMENT_NODE&&this.endElement(a);let C=this.checkClobberedElement(a,a.nextSibling);if(C){a=C;break}a=this.checkClobberedElement(a,a.parentNode)}return this.buf.join("")}startElement(t){const a=t.nodeName.toLowerCase();if(!Ql.hasOwnProperty(a))return this.sanitizedSomething=!0,!o_.hasOwnProperty(a);this.buf.push("<"),this.buf.push(a);const _=t.attributes;for(let C=0;C<_.length;C++){const R=_.item(C),W=R.name,se=W.toLowerCase();if(!ch.hasOwnProperty(se)){this.sanitizedSomething=!0;continue}let ge=R.value;Xl[se]&&(ge=_a(ge)),Zl[se]&&(ge=oh(ge)),this.buf.push(" ",W,'="',dh(ge),'"')}return this.buf.push(">"),!0}endElement(t){const a=t.nodeName.toLowerCase();Ql.hasOwnProperty(a)&&!ah.hasOwnProperty(a)&&(this.buf.push(""))}chars(t){this.buf.push(dh(t))}checkClobberedElement(t,a){if(a&&(t.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return a}}const l_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u_=/([^\#-~ |!])/g;function dh(e){return e.replace(/&/g,"&").replace(l_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(u_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let tl;function hh(e,t){let a=null;try{tl=tl||sh(e);let _=t?String(t):"";a=tl.getInertBodyElement(_);let C=5,R=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=R,R=a.innerHTML,a=tl.getInertBodyElement(_)}while(_!==R);return ko((new a_).sanitizeChildren(ql(a)||a))}finally{if(a){const _=ql(a)||a;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function ql(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var br=(()=>((br=br||{})[br.NONE=0]="NONE",br[br.HTML=1]="HTML",br[br.STYLE=2]="STYLE",br[br.SCRIPT=3]="SCRIPT",br[br.URL=4]="URL",br[br.RESOURCE_URL=5]="RESOURCE_URL",br))();function fh(e){const t=ya();return t?th(t.sanitize(br.HTML,e)||""):Po(e,"HTML")?th(ro(e)):hh(Tr(),D(e))}function ph(e){const t=ya();return t?t.sanitize(br.STYLE,e)||"":Po(e,"Style")?ro(e):D(e)}function Jl(e){const t=ya();return t?t.sanitize(br.URL,e)||"":Po(e,"URL")?ro(e):_a(D(e))}function eu(e){const t=ya();if(t)return ih(t.sanitize(br.RESOURCE_URL,e)||"");if(Po(e,"ResourceURL"))return ih(ro(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function mh(e){const t=ya();if(t)return nh(t.sanitize(br.SCRIPT,e)||"");if(Po(e,"Script"))return nh(ro(e));throw new Error("unsafe value used in a script context")}function gh(e){return ko(e[0])}function _h(e){return function(e){var t;return(null===(t=Gl())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function vh(e,t,a){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?eu:Jl}(t,a)(e)}function ya(){const e=we();return e&&e[12]}function Qr(e){let t=ba(e);if(t){if(Array.isArray(t)){const a=t;let _,C,R;if(function(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(_=Eh(a,e),-1==_)throw new Error("The provided component was not found in the application");C=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(_=function(e,t){let a=e[1].firstChild;for(;a;){const C=a.directiveEnd;for(let R=a.directiveStart;R=0){const se=be(R[W]),ge=tu(R,W,se);Xr(se,ge),t=ge;break}}}}return t||null}function tu(e,t,a){return{lView:e,nodeIndex:t,native:a,component:void 0,directives:void 0,localRefs:void 0}}function yh(e){let a,t=ba(e);if(Array.isArray(t)){const _=Eh(t,e);a=In(_,t);const C=tu(t,_,a[0]);C.component=e,Xr(e,C),Xr(C.native,C)}else a=In(t.nodeIndex,t.lView);return a}const bh="__ngContext__";function Xr(e,t){e[bh]=t}function ba(e){return e[bh]||null}function nu(e){const t=ba(e);return t?Array.isArray(t)?t:t.lView:null}function Ch(e,t){const a=e[1];for(let _=20;_|^->||--!>|)/;const Th=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Kt))();function xh(e){return e.ownerDocument.defaultView}function Ih(e){return e.ownerDocument}function Ah(e){return e.ownerDocument.body}function zs(e){return e instanceof Function?e():e}var Ks=(()=>((Ks=Ks||{})[Ks.Important=1]="Important",Ks[Ks.DashCase=2]="DashCase",Ks))();let su;function ou(e,t){return su(e,t)}function Ea(e){const t=e[3];return pi(t)?t[3]:t}function kh(e){return function(e){let t=Xn(e)?e:nu(e);for(;t&&!(512&t[2]);)t=Ea(t);return t}(e)[8]}function au(e){return Ph(e[13])}function lu(e){return Ph(e[4])}function Ph(e){for(;null!==e&&!pi(e);)e=e[4];return e}function No(e,t,a,_,C){if(null!=_){let R,W=!1;pi(_)?R=_:Xn(_)&&(W=!0,_=_[0]);const se=be(_);0===e&&null!==a?null==C?$h(t,a,se):Mo(t,a,se,C||null,!0):1===e&&null!==a?Mo(t,a,se,C||null,!0):2===e?Yh(t,se,W):3===e&&t.destroyNode(se),null!=R&&function(e,t,a,_,C){const R=a[7];R!==be(a)&&No(t,e,_,R,C);for(let se=10;set.replace(M_,"\u200b$1\u200b"))}(t))}function cu(e,t,a){return si(e)?e.createElement(t,a):null===a?e.createElement(t):e.createElementNS(a,t)}function Nh(e,t){const a=e[9],_=a.indexOf(t),C=t[3];1024&t[2]&&(t[2]&=-1025,ki(C,-1)),a.splice(_,1)}function du(e,t){if(e.length<=10)return;const a=10+t,_=e[a];if(_){const C=_[17];null!==C&&C!==e&&Nh(C,_),t>0&&(e[a-1][4]=_[4]);const R=Co(e,10+t);!function(e,t){wa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(_[1],_);const W=R[19];null!==W&&W.detachView(R[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function Uh(e,t){if(!(256&t[2])){const a=t[11];si(a)&&a.destroyNode&&wa(e,t,a,3,null,null),function(e){let t=e[13];if(!t)return hu(e[1],e);for(;t;){let a=null;if(Xn(t))a=t[13];else{const _=t[10];_&&(a=_)}if(!a){for(;t&&!t[4]&&t!==e;)Xn(t)&&hu(t[1],t),t=t[3];null===t&&(t=e),Xn(t)&&hu(t[1],t),a=t&&t[4]}t=a}}(t)}}function hu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let a;if(null!=e&&null!=(a=e.destroyHooks))for(let _=0;_=0?_[C=De]():_[C=-De].unsubscribe(),R+=2}else{const W=_[C=a[R+1]];a[R].call(W)}if(null!==_){for(let R=C+1;R<_.length;R++)_[R]();t[7]=null}}(e,t),1===t[1].type&&si(t[11])&&t[11].destroy();const a=t[17];if(null!==a&&pi(t[3])){a!==t[3]&&Nh(a,t);const _=t[19];null!==_&&_.detachView(e)}}}function Bh(e,t,a){return Vh(e,t.parent,a)}function Vh(e,t,a){let _=t;for(;null!==_&&40&_.type;)_=(t=_).parent;if(null===_)return a[0];if(2&_.flags){const C=e.data[_.directiveStart].encapsulation;if(C===ut.None||C===ut.Emulated)return null}return ve(_,a)}function Mo(e,t,a,_,C){si(e)?e.insertBefore(t,a,_,C):t.insertBefore(a,_,C)}function $h(e,t,a){si(e)?e.appendChild(t,a):t.appendChild(a)}function Hh(e,t,a,_,C){null!==_?Mo(e,t,a,_,C):$h(e,t,a)}function nl(e,t){return si(e)?e.parentNode(t):t.parentNode}function jh(e,t,a){return zh(e,t,a)}function Wh(e,t,a){return 40&e.type?ve(e,a):null}let fu,zh=Wh;function Kh(e,t){zh=e,fu=t}function il(e,t,a,_){const C=Bh(e,_,t),R=t[11],se=jh(_.parent||t[6],_,t);if(null!=C)if(Array.isArray(a))for(let ge=0;geR?"":C[qe+1].toLowerCase();const Pt=8&_?Ct:null;if(Pt&&-1!==Zh(Pt,De,0)||2&_&&De!==Ct){if(Ls(_))return!1;W=!0}}}}else{if(!W&&!Ls(_)&&!Ls(ge))return!1;if(W&&Ls(ge))continue;W=!1,_=ge|1&_}}return Ls(_)||W}function Ls(e){return 0==(1&e)}function Y_(e,t,a,_){if(null===t)return-1;let C=0;if(_||!a){let R=!1;for(;C-1)for(a++;a0?'="'+se+'"':"")+"]"}else 8&_?C+="."+W:4&_&&(C+=" "+W);else""!==C&&!Ls(W)&&(t+=tf(R,C),C=""),_=W,R=R||!Ls(_);a++}return""!==C&&(t+=tf(R,C)),t}const ei={};function nf(e){rf(N(),we(),ii()+e,pn())}function rf(e,t,a,_){if(!_)if(3==(3&t[2])){const R=e.preOrderCheckHooks;null!==R&&_r(t,R,a)}else{const R=e.preOrderHooks;null!==R&&ts(t,R,0,a)}Hi(a)}function sl(e,t){return e<<17|t<<2}function ks(e){return e>>17&32767}function _u(e){return 2|e}function so(e){return(131068&e)>>2}function vu(e,t){return-131069&e|t<<2}function yu(e){return 1|e}const Tu=(()=>Promise.resolve(null))();function gf(e,t){const a=e.contentQueries;if(null!==a)for(let _=0;_20&&rf(e,t,20,pn()),Ji(W?2:0,C),a(_,C)}finally{Hi(R),Ji(W?3:1,C)}}function vf(e,t,a){if(Gi(t)){const C=t.directiveEnd;for(let R=t.directiveStart;R0;){const a=e[--t];if("number"==typeof a&&a<0)return a}return 0})(se)!=ge&&se.push(ge),se.push(_,C,W)}}function Df(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Tf(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function xv(e,t,a){if(a){if(t.exportAs)for(let _=0;_0&&Lu(a)}}function Lu(e){for(let _=au(e);null!==_;_=lu(_))for(let C=10;C<_.length;C++){const R=_[C];if(1024&R[2]){const W=R[1];Vo(W,R,W.template,R[8])}else R[5]>0&&Lu(R)}const a=e[1].components;if(null!==a)for(let _=0;_0&&Lu(C)}}function Pv(e,t){const a=In(t,e),_=a[1];(function(e,t){for(let a=t.length;a_=C),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Pu(e)),2&e.flags){e.flags&=-3;const C=e.playerHandler;C&&C.flushPlayers()}e.clean=Tu,_(null)})}}(ku(yh(e))[8])}const dl=new lr("INJECTOR",-1);class Bf{get(t,a=hn){if(a===hn){const _=new Error(`NullInjectorError: No provider for ${h(t)}!`);throw _.name="NullInjectorError",_}return a}}const Uu=new lr("Set Injector scope."),Da={},$v={};let Bu;function Vf(){return void 0===Bu&&(Bu=new Bf),Bu}function Vu(e,t=null,a=null,_){const C=$f(e,t,a,_);return C._resolveInjectorDefTypes(),C}function $f(e,t=null,a=null,_){return new Hv(e,a,t||Vf(),_)}class Hv{constructor(t,a,_,C=null){this.parent=_,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const R=[];a&&xs(a,se=>this.processProvider(se,t,a)),xs([t],se=>this.processInjectorType(se,[],R)),this.records.set(dl,$o(void 0,this));const W=this.records.get(Uu);this.scope=null!=W?W.value:null,this.source=C||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,a=hn,_=Ee.Default){this.assertNotDestroyed();const C=wi(this),R=x(void 0);try{if(!(_&Ee.SkipSelf)){let se=this.records.get(t);if(void 0===se){const ge=("function"==typeof(e=t)||"object"==typeof e&&e instanceof lr)&&ft(t);se=ge&&this.injectableDefInScope(ge)?$o($u(t),Da):null,this.records.set(t,se)}if(null!=se)return this.hydrate(t,se)}return(_&Ee.Self?Vf():this.parent).get(t,a=_&Ee.Optional&&a===hn?null:a)}catch(W){if("NullInjectorError"===W.name){if((W[Nn]=W[Nn]||[]).unshift(h(t)),C)throw W;return function(e,t,a,_){const C=e[Nn];throw t[Ai]&&C.unshift(t[Ai]),e.message=function(e,t,a,_=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let C=h(t);if(Array.isArray(t))C=t.map(h).join(" -> ");else if("object"==typeof t){let R=[];for(let W in t)if(t.hasOwnProperty(W)){let se=t[W];R.push(W+":"+("string"==typeof se?JSON.stringify(se):h(se)))}C=`{${R.join(", ")}}`}return`${a}${_?"("+_+")":""}[${C}]: ${e.replace(Ci,"\n ")}`}("\n"+e.message,C,a,_),e.ngTokenPath=C,e[Nn]=null,e}(W,t,"R3InjectorError",this.source)}throw W}finally{x(R),wi(C)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((_,C)=>t.push(h(C))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,a,_){if(!(t=c(t)))return!1;let C=_t(t);const R=null==C&&t.ngModule||void 0,W=void 0===R?t:R,se=-1!==_.indexOf(W);if(void 0!==R&&(C=_t(R)),null==C)return!1;if(null!=C.imports&&!se){let ke;_.push(W);try{xs(C.imports,qe=>{this.processInjectorType(qe,a,_)&&(void 0===ke&&(ke=[]),ke.push(qe))})}finally{}if(void 0!==ke)for(let qe=0;qethis.processProvider(Yt,Ct,Pt||Qe))}}this.injectorDefTypes.add(W);const ge=ir(W)||(()=>new W);this.records.set(W,$o(ge,Da));const De=C.providers;if(null!=De&&!se){const ke=t;xs(De,qe=>this.processProvider(qe,ke,De))}return void 0!==R&&void 0!==t.providers}processProvider(t,a,_){let C=Ho(t=c(t))?t:c(t&&t.provide);const R=(e=t,jf(e)?$o(void 0,e.useValue):$o(Hf(e),Da));var e;if(Ho(t)||!0!==t.multi)this.records.get(C);else{let W=this.records.get(C);W||(W=$o(void 0,Da,!0),W.factory=()=>ri(W.multi),this.records.set(C,W)),C=t,W.multi.push(t)}this.records.set(C,R)}hydrate(t,a){return a.value===Da&&(a.value=$v,a.value=a.factory()),"object"==typeof a.value&&a.value&&null!==(e=a.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(a.value),a.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const a=c(t.providedIn);return"string"==typeof a?"any"===a||a===this.scope:this.injectorDefTypes.has(a)}}function $u(e){const t=ft(e),a=null!==t?t.factory:ir(e);if(null!==a)return a;if(e instanceof lr)throw new Error(`Token ${h(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const _=ho(t,"?");throw new Error(`Can't resolve all parameters for ${h(e)}: (${_.join(", ")}).`)}const a=function(e){const t=e&&(e[At]||e[Bt]);if(t){const a=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 "${a}" 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 "${a}" class.`),t}return null}(e);return null!==a?()=>a.factory(e):()=>new e}(e);throw new Error("unreachable")}function Hf(e,t,a){let _;if(Ho(e)){const C=c(e);return ir(C)||$u(C)}if(jf(e))_=()=>c(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))_=()=>e.useFactory(...ri(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))_=()=>Cn(c(e.useExisting));else{const C=c(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ir(C)||$u(C);_=()=>new C(...ri(e.deps))}return _}function $o(e,t,a=!1){return{factory:e,value:t,multi:a?[]:void 0}}function jf(e){return null!==e&&"object"==typeof e&&gi in e}function Ho(e){return"function"==typeof e}let gs=(()=>{class e{static create(a,_){var C;if(Array.isArray(a))return Vu({name:""},_,a,"");{const R=null!==(C=a.name)&&void 0!==C?C:"";return Vu({name:R},a.parent,a.providers,R)}}}return e.THROW_IF_NOT_FOUND=hn,e.NULL=new Bf,e.\u0275prov=Ue({token:e,providedIn:"any",factory:()=>Cn(dl)}),e.__NG_ELEMENT_ID__=-1,e})();function Hu(e){Wu(e);const t=Qr(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const a=t[1].data[e];return 2&a.flags?t[a.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Wf(e){Wu(e);const t=Qr(e);return null===t?null:t.lView[8]}function zf(e){const t=Qr(e);if(null===t)return null;let _,a=t.lView;for(;2===a[1].type&&(_=Ea(a));)a=_;return 512&a[2]?null:a[8]}function Kf(e){return[...kh(e).components]}function Gf(e){const t=Qr(e);return null===t?gs.NULL:new lo(t.lView[1].data[t.nodeIndex],t.lView)}function Yf(e){if(e instanceof Text)return[];const t=Qr(e);if(null===t)return[];const a=t.lView,_=a[1],C=t.nodeIndex;return(null==_?void 0:_.data[C])?(void 0===t.directives&&(t.directives=wh(C,a,!1)),null===t.directives?[]:[...t.directives]):[]}function qv(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const a=Ot(t);if(a)return{inputs:a.inputs,outputs:a.outputs,encapsulation:a.encapsulation,changeDetection:a.onPush?Be.OnPush:Be.Default};const _=un(t);return _?{inputs:_.inputs,outputs:_.outputs}:null}function ju(e){return Qr(e).native}function Qf(e){Wu(e);const t=Qr(e);if(null===t)return[];const a=t.lView,C=a[7],R=a[1].cleanup,W=[];if(R&&C)for(let se=0;se=0?"dom":"output",sn="boolean"==typeof Pt&&Pt;e==qe&&W.push({element:e,name:ke,callback:Ct,useCapture:sn,type:Yt})}}return W.sort(ey),W}function ey(e,t){return e.name==t.name?0:e.nameNf(t))}let Zf=!1;function iy(){Zf||(Zf=!0,As("\u0275setProfiler",Lr),As("getDirectiveMetadata",qv),As("getComponent",Hu),As("getContext",Wf),As("getListeners",Qf),As("getOwningComponent",zf),As("getHostElement",ju),As("getInjector",Gf),As("getRootComponents",Kf),As("getDirectives",Yf),As("applyChanges",ny))}function As(e,t){if("undefined"==typeof COMPILED||!COMPILED){const a=Kt;if(a){let _=a.ng;_||(_=a.ng={}),_[e]=t}}}function ry(e,t={}){const a=t.rendererFactory||zr,_=t.sanitizer||null,C=Ot(e);C.type!=e&&(C.type=e);const R=C.selectors[0][0],se=Cf(a.createRenderer(null,null),t.host||R,C.encapsulation),ge=C.onPush?576:528,De=ep(t.scheduler,t.playerHandler),ke=a.createRenderer(se,C),qe=ll(0,null,null,1,0,null,null,null,null,null),Ct=Ma(null,qe,De,ge,null,null,a,ke,null,t.injector||null);let Pt;Yi(Ct);try{a.begin&&a.begin(),Pt=Jf(qf(se,C,Ct,a,ke,_),C,Ct,De,t.hostFeatures||null),Sa(qe,Ct,null),Vo(qe,Ct,null,null)}finally{Mn(),a.end&&a.end()}return Pt}function qf(e,t,a,_,C,R){const W=a[1];a[20]=e;const ge=Uo(W,20,2,"#host",null),De=ge.mergedAttrs=t.hostAttrs;null!==De&&(cl(ge,De,!0),null!==e&&(Mt(C,e,De),null!==ge.classes&&gu(C,e,ge.classes),null!==ge.styles&&Xh(C,e,ge.styles)));const ke=_.createRenderer(e,t),qe=Ma(a,yf(t),null,t.onPush?64:16,a[20],ge,_,ke,R||null,null);return W.firstCreatePass&&(Gr(Dn(ge,a),W,t.type),Tf(W,ge),xf(ge,a.length,1)),ul(a,qe),a[20]=qe}function Jf(e,t,a,_,C){const R=a[1],W=function(e,t,a){const _=pe();e.firstCreatePass&&(a.providersResolver&&a.providersResolver(a),If(e,_,t,Bo(e,t,1,null),a));const C=go(t,e,_.directiveStart,_);Xr(C,t);const R=ve(_,t);return R&&Xr(R,t),C}(R,a,t);if(_.components.push(W),e[8]=W,C&&C.forEach(ge=>ge(W,t)),t.contentQueries){const ge=pe();t.contentQueries(1,W,ge.directiveStart)}const se=pe();return!R.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Hi(se.index),Sf(a[1],se,0,se.directiveStart,se.directiveEnd,t),Df(t,W)),W}function ep(e,t){return{components:[],scheduler:e||Th,clean:Vv,playerHandler:t||null,flags:0}}function tp(e,t){Ir(nu(e)[1],pe())}function sy(e){return kh(e).clean}function np(e){return Object.getPrototypeOf(e.prototype).constructor}function zu(e){let t=np(e.type),a=!0;const _=[e];for(;t;){let C;if(bi(e))C=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");C=t.\u0275dir}if(C){if(a){_.push(C);const W=e;W.inputs=Ku(e.inputs),W.declaredInputs=Ku(e.declaredInputs),W.outputs=Ku(e.outputs);const se=C.hostBindings;se&&uy(e,se);const ge=C.viewQuery,De=C.contentQueries;if(ge&&ay(e,ge),De&&ly(e,De),u(e.inputs,C.inputs),u(e.declaredInputs,C.declaredInputs),u(e.outputs,C.outputs),bi(C)&&C.data.animation){const ke=e.data;ke.animation=(ke.animation||[]).concat(C.data.animation)}}const R=C.features;if(R)for(let W=0;W=0;_--){const C=e[_];C.hostVars=t+=C.hostVars,C.hostAttrs=Hn(C.hostAttrs,a=Hn(a,C.hostAttrs))}}(_)}function Ku(e){return e===Lt?{}:e===Qe?[]:e}function ay(e,t){const a=e.viewQuery;e.viewQuery=a?(_,C)=>{t(_,C),a(_,C)}:t}function ly(e,t){const a=e.contentQueries;e.contentQueries=a?(_,C,R)=>{t(_,C,R),a(_,C,R)}:t}function uy(e,t){const a=e.hostBindings;e.hostBindings=a?(_,C)=>{t(_,C),a(_,C)}:t}const cy=["providersResolver"],dy=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function ip(e){let a,t=np(e.type);a=bi(e)?t.\u0275cmp:t.\u0275dir;const _=e;for(const C of cy)_[C]=a[C];if(bi(a))for(const C of dy)_[C]=a[C]}let hl=null;function jo(){if(!hl){const e=Kt.Symbol;if(e&&e.iterator)hl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let a=0;a=e.data.length&&(e.data[a]=null,e.blueprint[a]=null),t[a]=_}function ap(e){return nn(xn.lFrame.contextLView,20+e)}const lp={\u0275\u0275defineInjectable:Ue,\u0275\u0275defineInjector:at,\u0275\u0275inject:Cn,\u0275\u0275invalidFactoryDep:Pi,resolveForwardRef:c};const gy=d({provide:String,useValue:d});function up(e){return void 0!==e.useClass}function cp(e){return void 0!==e.useFactory}const by=Ts("Injectable",void 0,void 0,void 0,(e,t)=>function(e,t){let a=null,_=null;e.hasOwnProperty(At)||Object.defineProperty(e,At,{get:()=>(null===a&&(a=yr().compileInjectable(lp,`ng:///${e.name}/\u0275prov.js`,function(e,t){const a=t||{providedIn:null},_={name:e.name,type:e,typeArgumentCount:0,providedIn:a.providedIn};return(up(a)||cp(a))&&void 0!==a.deps&&(_.deps=Zd(a.deps)),up(a)?_.useClass=a.useClass:function(e){return gy in e}(a)?_.useValue=a.useValue:cp(a)?_.useFactory=a.useFactory:function(e){return void 0!==e.useExisting}(a)&&(_.useExisting=a.useExisting),_}(e,t))),a)}),e.hasOwnProperty(Se)||Object.defineProperty(e,Se,{get:()=>{if(null===_){const C=yr();_=C.compileFactory(lp,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:qa(e),target:C.FactoryTarget.Injectable})}return _},configurable:!0})}(e,t));function rc(e){return e.length>1?" ("+function(e){const t=[];for(let a=0;a-1)return t.push(e[a]),t;t.push(e[a])}return t}(e.slice().reverse()).map(_=>h(_.token)).join(" -> ")+")":""}function sc(e,t,a,_){const C=[t],R=a(C),W=_?function(e,t){const a=`${e} caused by: ${t instanceof Error?t.message:t}`,_=Error(a);return _[iu]=t,_}(R,_):Error(R);return W.addKey=Ey,W.keys=C,W.injectors=[e],W.constructResolvingMessage=a,W[iu]=_,W}function Ey(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function dp(e,t){const a=[];for(let _=0,C=t.length;__,a=[pl.fromKey(ao.get(e.useExisting))]):e.useFactory?(t=e.useFactory,a=function(e,t){if(t){const a=t.map(_=>[_]);return t.map(_=>vp(e,_,a))}return _p(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,a=Oy);return new mp(t,a)}function Ly(e){return new pp(ao.get(e.provide),[Ry(e)],e.multi||!1)}function ky(e){const _=function(e,t){for(let a=0;a{if(a instanceof Oo)t.push({provide:a,useClass:a});else if(a&&"object"==typeof a&&void 0!==a.provide)t.push(a);else{if(!Array.isArray(a))throw function(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(a);gp(a,t)}}),t}function _p(e){const t=fp.parameters(e);if(!t)return[];if(t.some(a=>null==a))throw dp(e,t);return t.map(a=>vp(e,a,t))}function vp(e,t,a){let _=null,C=!1;if(!Array.isArray(t))return oc(t instanceof fo?t.token:t,C,null);let R=null;for(let W=0;W{class e{constructor(a,_){this._constructionCounter=0,this._providers=a,this.parent=_||null;const C=a.length;this.keyIds=[],this.objs=[];for(let R=0;R=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(a);return this._providers[a]}_new(a){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(e,t){return sc(e,t,function(a){return`Cannot instantiate cyclic dependency!${rc(a)}`})}(this,a.key);return this._instantiateProvider(a)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(a){if(a.multiProvider){const _=[];for(let C=0;Cthis._getByReflectiveDependency(se))}catch(se){throw se.addKey&&se.addKey(this,a.key),se}try{W=C(...R)}catch(se){throw function(e,t,a,_){return sc(e,_,function(C){const R=h(C[0].token);return`${t.message}: Error during instantiation of ${R}!${rc(C)}.`},t)}(this,se,0,a.key)}return W}_getByReflectiveDependency(a){return this._getByKey(a.key,a.visibility,a.optional?null:hn)}_getByKey(a,_,C){return a===e.INJECTOR_KEY?this:_ instanceof io?this._getByKeySelf(a,C):this._getByKeyDefault(a,C,_)}_getObjByKeyId(a){for(let _=0;_' "'+_.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=ao.get(gs),e})();function Aa(e,t=Ee.Default){const a=we();return null===a?Cn(e,t):ss(pe(),a,c(e),t)}function yp(){throw new Error("invalid")}function ac(e,t,a){const _=we();return Zr(_,Kn(),t)&&ms(N(),Zn(),_,e,t,_[11],a,!1),ac}function lc(e,t,a,_,C){const W=C?"class":"style";Ff(e,a,t.inputs[W],W,_)}function uc(e,t,a,_){const C=we(),R=N(),W=20+e,se=C[11],ge=C[W]=cu(se,t,xn.lFrame.currentNamespace),De=R.firstCreatePass?function(e,t,a,_,C,R,W){const se=t.consts,De=Uo(t,e,2,C,hi(se,R));return Ou(t,a,De,hi(se,W)),null!==De.attrs&&cl(De,De.attrs,!1),null!==De.mergedAttrs&&cl(De,De.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,De),De}(W,R,C,0,t,a,_):R.data[W];rt(De,!0);const ke=De.mergedAttrs;null!==ke&&Mt(se,ge,ke);const qe=De.classes;null!==qe&&gu(se,ge,qe);const Ct=De.styles;null!==Ct&&Xh(se,ge,Ct),64!=(64&De.flags)&&il(R,C,ge,De),0===xn.lFrame.elementDepthCount&&Xr(ge,C),xn.lFrame.elementDepthCount++,tr(De)&&(Iu(R,C,De),vf(R,De,C)),null!==_&&Au(C,De)}function cc(){let e=pe();dt()?Rt():(e=e.parent,rt(e,!1));const t=e;xn.lFrame.elementDepthCount--;const a=N();a.firstCreatePass&&(Ir(a,e),Gi(e)&&a.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&lc(a,t,we(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&lc(a,t,we(),t.stylesWithoutHost,!1)}function bp(e,t,a,_){uc(e,t,a,_),cc()}function dc(e,t,a){const _=we(),C=N(),R=e+20,W=C.firstCreatePass?function(e,t,a,_,C){const R=t.consts,W=hi(R,_),se=Uo(t,e,8,"ng-container",W);return null!==W&&cl(se,W,!0),Ou(t,a,se,hi(R,C)),null!==t.queries&&t.queries.elementStart(t,se),se}(R,C,_,t,a):C.data[R];rt(W,!0);const se=_[R]=_[11].createComment("");il(C,_,se,W),Xr(se,_),tr(W)&&(Iu(C,_,W),vf(C,W,_)),null!=a&&Au(_,W)}function hc(){let e=pe();const t=N();dt()?Rt():(e=e.parent,rt(e,!1)),t.firstCreatePass&&(Ir(t,e),Gi(e)&&t.queries.elementEnd(e))}function Cp(e,t,a){dc(e,t,a),hc()}function Ep(){return we()}function fc(e){return!!e&&"function"==typeof e.then}function wp(e){return!!e&&"function"==typeof e.subscribe}const Mp=wp;function pc(e,t,a,_){const C=we(),R=N(),W=pe();return Sp(R,C,C[11],W,e,t,!!a,_),pc}function mc(e,t){const a=pe(),_=we(),C=N();return Sp(C,_,kf(Xi(C.data),a,_),a,e,t,!1),mc}function Sp(e,t,a,_,C,R,W,se){const ge=tr(_),ke=e.firstCreatePass&&Lf(e),qe=t[8],Ct=Rf(t);let Pt=!0;if(3&_.type||se){const dn=ve(_,t),wn=se?se(dn):dn,Jt=Ct.length,Un=se?yi=>se(be(yi[_.index])):_.index;if(si(a)){let yi=null;if(!se&&ge&&(yi=function(e,t,a,_){const C=e.cleanup;if(null!=C)for(let R=0;Rge?se[ge]:null}"string"==typeof W&&(R+=2)}return null}(e,t,C,_.index)),null!==yi)(yi.__ngLastListenerFn__||yi).__ngNextListenerFn__=R,yi.__ngLastListenerFn__=R,Pt=!1;else{R=gc(_,t,qe,R,!1);const Bi=a.listen(wn,C,R);Ct.push(R,Bi),ke&&ke.push(C,Un,Jt,Jt+1)}}else R=gc(_,t,qe,R,!0),wn.addEventListener(C,R,W),Ct.push(R),ke&&ke.push(C,Un,Jt,W)}else R=gc(_,t,qe,R,!1);const Yt=_.outputs;let sn;if(Pt&&null!==Yt&&(sn=Yt[C])){const dn=sn.length;if(dn)for(let wn=0;wn0;)t=t[15],e--;return t}(e,xn.lFrame.contextLView))[8]}(e)}function Hy(e,t){let a=null;const _=function(e){const t=e.attrs;if(null!=t){const a=t.indexOf(5);if(0==(1&a))return t[a+1]}return null}(e);for(let C=0;C=0}const Ar={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Op(e){return e.substring(Ar.key,Ar.keyEnd)}function Ky(e){return e.substring(Ar.value,Ar.valueEnd)}function Rp(e,t){const a=Ar.textEnd;return a===t?-1:(t=Ar.keyEnd=function(e,t,a){for(;t32;)t++;return t}(e,Ar.key=t,a),ea(e,t,a))}function Lp(e,t){const a=Ar.textEnd;let _=Ar.key=ea(e,t,a);return a===_?-1:(_=Ar.keyEnd=function(e,t,a){let _;for(;t=65&&(-33&_)<=90||_>=48&&_<=57);)t++;return t}(e,_,a),_=Pp(e,_,a),_=Ar.value=ea(e,_,a),_=Ar.valueEnd=function(e,t,a){let _=-1,C=-1,R=-1,W=t,se=W;for(;W32&&(se=W),R=C,C=_,_=-33&ge}return se}(e,_,a),Pp(e,_,a))}function kp(e){Ar.key=0,Ar.keyEnd=0,Ar.value=0,Ar.valueEnd=0,Ar.textEnd=e.length}function ea(e,t,a){for(;t=0;a=Lp(t,a))Vp(e,Op(t),Ky(t))}function Np(e){Ns(Yr,Qs,e,!0)}function Qs(e,t){for(let a=function(e){return kp(e),Rp(e,ea(e,0,Ar.textEnd))}(t);a>=0;a=Rp(t,a))Yr(e,Op(t),!0)}function Fs(e,t,a,_){const C=we(),R=N(),W=_i(2);R.firstUpdatePass&&Bp(R,e,W,_),t!==ei&&Zr(C,W,t)&&$p(R,R.data[ii()],C,C[11],e,C[W+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=h(ro(e)))),e}(t,a),_,W)}function Ns(e,t,a,_){const C=N(),R=_i(2);C.firstUpdatePass&&Bp(C,null,R,_);const W=we();if(a!==ei&&Zr(W,R,a)){const se=C.data[ii()];if(jp(se,_)&&!Up(C,R)){let ge=_?se.classesWithoutHost:se.stylesWithoutHost;null!==ge&&(a=r(ge,a||"")),lc(C,se,W,a,_)}else!function(e,t,a,_,C,R,W,se){C===ei&&(C=Qe);let ge=0,De=0,ke=0=e.expandoStartIndex}function Bp(e,t,a,_){const C=e.data;if(null===C[a+1]){const R=C[ii()],W=Up(e,a);jp(R,_)&&null===t&&!W&&(t=!1),t=function(e,t,a,_){const C=Xi(e);let R=_?t.residualClasses:t.residualStyles;if(null===C)0===(_?t.classBindings:t.styleBindings)&&(a=Oa(a=xc(null,e,t,a,_),t.attrs,_),R=null);else{const W=t.directiveStylingLast;if(-1===W||e[W]!==C)if(a=xc(C,e,t,a,_),null===R){let ge=function(e,t,a){const _=a?t.classBindings:t.styleBindings;if(0!==so(_))return e[ks(_)]}(e,t,_);void 0!==ge&&Array.isArray(ge)&&(ge=xc(null,e,t,ge[1],_),ge=Oa(ge,t.attrs,_),function(e,t,a,_){e[ks(a?t.classBindings:t.styleBindings)]=_}(e,t,_,ge))}else R=function(e,t,a){let _;const C=t.directiveEnd;for(let R=1+t.directiveStylingLast;R0)&&(De=!0)}else ke=a;if(C)if(0!==ge){const Ct=ks(e[se+1]);e[_+1]=sl(Ct,se),0!==Ct&&(e[Ct+1]=vu(e[Ct+1],_)),e[se+1]=function(e,t){return 131071&e|t<<17}(e[se+1],_)}else e[_+1]=sl(se,0),0!==se&&(e[se+1]=vu(e[se+1],_)),se=_;else e[_+1]=sl(ge,0),0===se?se=_:e[ge+1]=vu(e[ge+1],_),ge=_;De&&(e[_+1]=_u(e[_+1])),Ap(e,ke,_,!0),Ap(e,ke,_,!1),function(e,t,a,_,C){const R=C?e.residualClasses:e.residualStyles;null!=R&&"string"==typeof t&&P(R,t)>=0&&(a[_+1]=yu(a[_+1]))}(t,ke,e,_,R),W=sl(se,ge),R?t.classBindings=W:t.styleBindings=W}(C,R,t,a,W,_)}}function xc(e,t,a,_,C){let R=null;const W=a.directiveEnd;let se=a.directiveStylingLast;for(-1===se?se=a.directiveStart:se++;se0;){const ge=e[C],De=Array.isArray(ge),ke=De?ge[1]:ge,qe=null===ke;let Ct=a[C+1];Ct===ei&&(Ct=qe?Qe:void 0);let Pt=qe?ma(Ct,_):ke===_?Ct:void 0;if(De&&!gl(Pt)&&(Pt=ma(ge,_)),gl(Pt)&&(se=Pt,W))return se;const Yt=e[C+1];C=W?ks(Yt):so(Yt)}if(null!==t){let ge=R?t.residualClasses:t.residualStyles;null!=ge&&(se=ma(ge,_))}return se}function gl(e){return void 0!==e}function jp(e,t){return 0!=(e.flags&(t?16:32))}function Wp(e,t=""){const a=we(),_=N(),C=e+20,R=_.firstCreatePass?Uo(_,C,1,t,null):_.data[C],W=a[C]=uu(a[11],t);il(_,a,W,R),rt(R,!1)}function Ic(e){return _l("",e,""),Ic}function _l(e,t,a){const _=we(),C=zo(_,e,t,a);return C!==ei&&oo(_,ii(),C),_l}function Ac(e,t,a,_,C){const R=we(),W=Ko(R,e,t,a,_,C);return W!==ei&&oo(R,ii(),W),Ac}function Oc(e,t,a,_,C,R,W){const se=we(),ge=Go(se,e,t,a,_,C,R,W);return ge!==ei&&oo(se,ii(),ge),Oc}function Rc(e,t,a,_,C,R,W,se,ge){const De=we(),ke=Yo(De,e,t,a,_,C,R,W,se,ge);return ke!==ei&&oo(De,ii(),ke),Rc}function Lc(e,t,a,_,C,R,W,se,ge,De,ke){const qe=we(),Ct=Qo(qe,e,t,a,_,C,R,W,se,ge,De,ke);return Ct!==ei&&oo(qe,ii(),Ct),Lc}function kc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct){const Pt=we(),Yt=Xo(Pt,e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct);return Yt!==ei&&oo(Pt,ii(),Yt),kc}function Pc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt){const sn=we(),dn=Zo(sn,e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt);return dn!==ei&&oo(sn,ii(),dn),Pc}function Fc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn){const wn=we(),Jt=qo(wn,e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn);return Jt!==ei&&oo(wn,ii(),Jt),Fc}function Nc(e){const t=we(),a=Wo(t,e);return a!==ei&&oo(t,ii(),a),Nc}function zp(e,t,a){Ns(Yr,Qs,zo(we(),e,t,a),!0)}function Kp(e,t,a,_,C){Ns(Yr,Qs,Ko(we(),e,t,a,_,C),!0)}function Gp(e,t,a,_,C,R,W){Ns(Yr,Qs,Go(we(),e,t,a,_,C,R,W),!0)}function Yp(e,t,a,_,C,R,W,se,ge){Ns(Yr,Qs,Yo(we(),e,t,a,_,C,R,W,se,ge),!0)}function Qp(e,t,a,_,C,R,W,se,ge,De,ke){Ns(Yr,Qs,Qo(we(),e,t,a,_,C,R,W,se,ge,De,ke),!0)}function Xp(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct){Ns(Yr,Qs,Xo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct),!0)}function Zp(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt){Ns(Yr,Qs,Zo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt),!0)}function qp(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn){Ns(Yr,Qs,qo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn),!0)}function Jp(e){Ns(Yr,Qs,Wo(we(),e),!0)}function e0(e,t,a){Ps(zo(we(),e,t,a))}function t0(e,t,a,_,C){Ps(Ko(we(),e,t,a,_,C))}function n0(e,t,a,_,C,R,W){Ps(Go(we(),e,t,a,_,C,R,W))}function r0(e,t,a,_,C,R,W,se,ge){Ps(Yo(we(),e,t,a,_,C,R,W,se,ge))}function s0(e,t,a,_,C,R,W,se,ge,De,ke){Ps(Qo(we(),e,t,a,_,C,R,W,se,ge,De,ke))}function o0(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct){Ps(Xo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct))}function a0(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt){Ps(Zo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt))}function l0(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn){Ps(qo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn))}function u0(e){Ps(Wo(we(),e))}function Uc(e,t,a,_,C){return Fs(e,zo(we(),t,a,_),C,!1),Uc}function Bc(e,t,a,_,C,R,W){return Fs(e,Ko(we(),t,a,_,C,R),W,!1),Bc}function Vc(e,t,a,_,C,R,W,se,ge){return Fs(e,Go(we(),t,a,_,C,R,W,se),ge,!1),Vc}function $c(e,t,a,_,C,R,W,se,ge,De,ke){return Fs(e,Yo(we(),t,a,_,C,R,W,se,ge,De),ke,!1),$c}function Hc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct){return Fs(e,Qo(we(),t,a,_,C,R,W,se,ge,De,ke,qe),Ct,!1),Hc}function jc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt){return Fs(e,Xo(we(),t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt),Yt,!1),jc}function Wc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn){return Fs(e,Zo(we(),t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn),dn,!1),Wc}function zc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn,wn,Jt){return Fs(e,qo(we(),t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn,wn),Jt,!1),zc}function Kc(e,t,a){return Fs(e,Wo(we(),t),a,!1),Kc}function Gc(e,t,a){const _=we();return Zr(_,Kn(),t)&&ms(N(),Zn(),_,e,t,_[11],a,!0),Gc}function Yc(e,t,a){const _=we();if(Zr(_,Kn(),t)){const R=N(),W=Zn();ms(R,W,_,e,t,kf(Xi(R.data),W,_),a,!0)}return Yc}const Do=void 0;var ab=["en",[["a","p"],["AM","PM"],Do],[["AM","PM"],Do,Do],[["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"]],Do,[["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"]],Do,[["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}",Do,"{1} 'at' {0}",Do],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const a=Math.floor(Math.abs(e)),_=e.toString().replace(/^[^.]*\.?/,"").length;return 1===a&&0===_?1:5}];let ta={};function lb(e,t,a){"string"!=typeof t&&(a=t,t=e[Vn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ta[t]=e,a&&(ta[t][Vn.ExtraData]=a)}function Qc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let a=d0(t);if(a)return a;const _=t.split("-")[0];if(a=d0(_),a)return a;if("en"===_)return ab;throw new Error(`Missing locale data for the locale "${e}".`)}function ub(e){return Qc(e)[Vn.CurrencyCode]||null}function c0(e){return Qc(e)[Vn.PluralCase]}function d0(e){return e in ta||(ta[e]=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[e]),ta[e]}function cb(){ta={}}var Vn=(()=>((Vn=Vn||{})[Vn.LocaleId=0]="LocaleId",Vn[Vn.DayPeriodsFormat=1]="DayPeriodsFormat",Vn[Vn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Vn[Vn.DaysFormat=3]="DaysFormat",Vn[Vn.DaysStandalone=4]="DaysStandalone",Vn[Vn.MonthsFormat=5]="MonthsFormat",Vn[Vn.MonthsStandalone=6]="MonthsStandalone",Vn[Vn.Eras=7]="Eras",Vn[Vn.FirstDayOfWeek=8]="FirstDayOfWeek",Vn[Vn.WeekendRange=9]="WeekendRange",Vn[Vn.DateFormat=10]="DateFormat",Vn[Vn.TimeFormat=11]="TimeFormat",Vn[Vn.DateTimeFormat=12]="DateTimeFormat",Vn[Vn.NumberSymbols=13]="NumberSymbols",Vn[Vn.NumberFormats=14]="NumberFormats",Vn[Vn.CurrencyCode=15]="CurrencyCode",Vn[Vn.CurrencySymbol=16]="CurrencySymbol",Vn[Vn.CurrencyName=17]="CurrencyName",Vn[Vn.Currencies=18]="Currencies",Vn[Vn.Directionality=19]="Directionality",Vn[Vn.PluralCase=20]="PluralCase",Vn[Vn.ExtraData=21]="ExtraData",Vn))();const hb=["zero","one","two","few","many"],Ra="en-US",vl={marker:"element"},yl={marker:"ICU"};var pr=(()=>((pr=pr||{})[pr.SHIFT=2]="SHIFT",pr[pr.APPEND_EAGERLY=1]="APPEND_EAGERLY",pr[pr.COMMENT=2]="COMMENT",pr))();let h0=Ra;function f0(e){(function(e,t){null==e&&Le(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(h0=e.toLowerCase().replace(/_/g,"-"))}function p0(e,t,a){const _=t.insertBeforeIndex,C=Array.isArray(_)?_[0]:_;return null===C?Wh(e,0,a):be(a[C])}function m0(e,t,a,_,C){const R=t.insertBeforeIndex;if(Array.isArray(R)){let W=_,se=null;if(3&t.type||(se=W,W=C),null!==W&&0==(2&t.flags))for(let ge=1;ge1)for(let a=e.length-2;a>=0;a--){const _=e[a];_0(_)||gb(_,t)&&null===_b(_)&&vb(_,t.index)}}function _0(e){return!(64&e.type)}function gb(e,t){return _0(t)||e.index>t.index}function _b(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function vb(e,t){const a=e.insertBeforeIndex;Array.isArray(a)?a[0]=t:(Kh(p0,m0),e.insertBeforeIndex=t)}function La(e,t){const a=e.data[t];return null===a||"string"==typeof a?null:a.hasOwnProperty("currentCaseLViewIndex")?a:a.value}function Cb(e,t,a){const _=xu(e,a,64,null,null);return g0(t,_),_}function bl(e,t){const a=t[e.currentCaseLViewIndex];return null===a?a:a<0?~a:a}function v0(e){return e>>>17}function y0(e){return(131070&e)>>>1}let ka=0,Pa=0;function C0(e,t,a,_){const C=a[11];let W,R=null;for(let se=0;se>>1,a),null,null,Pt,Yt,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${ge}"`)}else switch(ge){case yl:const De=t[++se],ke=t[++se];null===a[ke]&&Xr(a[ke]=O_(C,De),a);break;case vl:const qe=t[++se],Ct=t[++se];null===a[Ct]&&Xr(a[Ct]=cu(C,qe,null),a)}}}function E0(e,t,a,_,C){for(let R=0;R>>2;switch(3&ke){case 1:const Ct=a[++De],Pt=a[++De],Yt=e.data[qe];"string"==typeof Yt?Ru(t[11],t[qe],null,Yt,Ct,ge,Pt):ms(e,Yt,t,Ct,ge,t[11],Pt,!1);break;case 0:const sn=t[qe];null!==sn&&Fh(t[11],sn,ge);break;case 2:Db(e,La(e,qe),t,ge);break;case 3:w0(e,La(e,qe),_,t)}}}}else{const ge=a[R+1];if(ge>0&&3==(3&ge)){const ke=La(e,ge>>>2);t[ke.currentCaseLViewIndex]<0&&w0(e,ke,_,t)}}R+=se}}function w0(e,t,a,_){let C=_[t.currentCaseLViewIndex];if(null!==C){let R=ka;C<0&&(C=_[t.currentCaseLViewIndex]=~C,R=-1),E0(e,_,t.update[C],a,R)}}function Db(e,t,a,_){const C=function(e,t){let a=e.cases.indexOf(t);if(-1===a)switch(e.type){case 1:{const _=function(e,t){const a=c0(t)(parseInt(e,10)),_=hb[a];return void 0!==_?_:"other"}(t,h0);a=e.cases.indexOf(_),-1===a&&"other"!==_&&(a=e.cases.indexOf("other"));break}case 0:a=e.cases.indexOf("other")}return-1===a?null:a}(t,_);if(bl(t,a)!==C&&(M0(e,t,a),a[t.currentCaseLViewIndex]=null===C?null:~C,null!==C)){const W=a[t.anchorIdx];W&&C0(e,t.create[C],a,W)}}function M0(e,t,a){let _=bl(t,a);if(null!==_){const C=t.remove[_];for(let R=0;R0){const se=V(W,a);null!==se&&Yh(a[11],se)}else M0(e,La(e,~W),a)}}}function xb(){const e=[];let a,_,t=-1;function R(se,ge){t=0;const De=bl(se,ge);_=null!==De?se.remove[De]:Qe}function W(){if(t<_.length){const se=_[t++];return se>0?a[se]:(e.push(t,_),R(a[1].data[~se],a),W())}return 0===e.length?null:(_=e.pop(),t=e.pop(),W())}return function(se,ge){for(a=ge;e.length;)e.pop();return R(se.value,ge),W}}const Cl=/\ufffd(\d+):?\d*\ufffd/gi,Ib=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ab=/\ufffd(\d+)\ufffd/,D0=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ob=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Rb=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Lb=/\uE500/g;function T0(e,t,a,_,C,R,W){const se=Bo(e,_,1,null);let ge=se<a.length&&a.push(ge)}return{type:_,mainBinding:C,cases:t,values:a}}function Xc(e){if(!e)return[];let t=0;const a=[],_=[],C=/[{}]/g;let R;for(C.lastIndex=0;R=C.exec(e);){const se=R.index;if("}"==R[0]){if(a.pop(),0==a.length){const ge=e.substring(t,se);D0.test(ge)?_.push($b(ge)):_.push(ge),t=se+1}}else{if(0==a.length){const ge=e.substring(t,se);_.push(ge),t=se+1}a.push("{")}}const W=e.substring(t);return _.push(W),_}function Hb(e,t,a,_,C,R,W,se){const ge=[],De=[],ke=[];t.cases.push(R),t.create.push(ge),t.remove.push(De),t.update.push(ke);const Ct=sh(Tr()).getInertBodyElement(W),Pt=ql(Ct)||Ct;return Pt?O0(e,t,a,_,ge,De,ke,Pt,C,se,0):0}function O0(e,t,a,_,C,R,W,se,ge,De,ke){let qe=0,Ct=se.firstChild;for(;Ct;){const Pt=Bo(e,a,1,null);switch(Ct.nodeType){case Node.ELEMENT_NODE:const Yt=Ct,sn=Yt.tagName.toLowerCase();if(Ql.hasOwnProperty(sn)){Zc(C,vl,sn,ge,Pt),e.data[Pt]=sn;const Un=Yt.attributes;for(let yi=0;yi>>pr.SHIFT;let qe=e[ke];null===qe&&(qe=e[ke]=ge?C.createComment(se):uu(C,se)),De&&null!==a&&Mo(C,a,qe,_,!1)}})(C,ge.create,ke,se&&8&se.type?C[se.index]:null),sr(!0)}function Jc(){sr(!1)}function k0(e,t,a){qc(e,t,a),Jc()}function P0(e,t){const a=N();!function(e,t,a){const C=pe().index,R=[];if(e.firstCreatePass&&null===e.data[t]){for(let W=0;W0){const _=e.data[a];E0(e,t,Array.isArray(_)?_:_.update,_n()-Pa-1,ka)}ka=0,Pa=0}(N(),we(),e+20)}function N0(e,t={}){return function(e,t={}){let a=e;if(Gb.test(e)){const _={},C=[0];a=a.replace(Yb,(R,W,se)=>{const ge=W||se,De=_[ge]||[];if(De.length||(ge.split("|").forEach(sn=>{const dn=sn.match(Jb),wn=dn?parseInt(dn[1],10):0,Jt=qb.test(sn);De.push([wn,Jt,sn])}),_[ge]=De),!De.length)throw new Error(`i18n postprocess: unmatched placeholder - ${ge}`);const ke=C[C.length-1];let qe=0;for(let sn=0;snt.hasOwnProperty(R)?`${C}${t[R]}${ge}`:_),a=a.replace(Xb,(_,C)=>t.hasOwnProperty(C)?t[C]:_),a=a.replace(Zb,(_,C)=>{if(t.hasOwnProperty(C)){const R=t[C];if(!R.length)throw new Error(`i18n postprocess: unmatched ICU - ${_} with key: ${C}`);return R.shift()}return _})),a}(e,t)}function td(e,t,a,_,C){if(e=c(e),Array.isArray(e))for(let R=0;R>20;if(Ho(e)||!e.multi){const Pt=new rs(ge,C,Aa),Yt=id(se,t,C?ke:ke+Ct,qe);-1===Yt?(Gr(Dn(De,W),R,se),nd(R,e,t.length),t.push(se),De.directiveStart++,De.directiveEnd++,C&&(De.providerIndexes+=1048576),a.push(Pt),W.push(Pt)):(a[Yt]=Pt,W[Yt]=Pt)}else{const Pt=id(se,t,ke+Ct,qe),Yt=id(se,t,ke,ke+Ct),sn=Pt>=0&&a[Pt],dn=Yt>=0&&a[Yt];if(C&&!dn||!C&&!sn){Gr(Dn(De,W),R,se);const wn=function(e,t,a,_,C){const R=new rs(e,a,Aa);return R.multi=[],R.index=t,R.componentProviders=0,U0(R,C,_&&!a),R}(C?r1:n1,a.length,C,_,ge);!C&&dn&&(a[Yt].providerFactory=wn),nd(R,e,t.length,0),t.push(se),De.directiveStart++,De.directiveEnd++,C&&(De.providerIndexes+=1048576),a.push(wn),W.push(wn)}else nd(R,e,Pt>-1?Pt:Yt,U0(a[C?Yt:Pt],ge,!C&&_));!C&&_&&dn&&a[Yt].componentProviders++}}}function nd(e,t,a,_){const C=Ho(t),R=function(e){return!!e.useClass}(t);if(C||R){const ge=(R?c(t.useClass):t).prototype.ngOnDestroy;if(ge){const De=e.destroyHooks||(e.destroyHooks=[]);if(!C&&t.multi){const ke=De.indexOf(a);-1===ke?De.push(a,[_,ge]):De[ke+1].push(_,ge)}else De.push(a,ge)}}}function U0(e,t,a){return a&&e.componentProviders++,e.multi.push(t)-1}function id(e,t,a,_){for(let C=a;C<_;C++)if(t[C]===e)return C;return-1}function n1(e,t,a,_){return rd(this.multi,[])}function r1(e,t,a,_){const C=this.multi;let R;if(this.providerFactory){const W=this.providerFactory.componentProviders,se=go(a,a[1],this.providerFactory.index,_);R=se.slice(0,W),rd(C,R);for(let ge=W;ge{a.providersResolver=(_,C)=>function(e,t,a){const _=N();if(_.firstCreatePass){const C=bi(e);td(a,_.data,_.blueprint,C,!0),td(t,_.data,_.blueprint,C,!1)}}(_,C?C(e):e,t)}}class V0{}class El{}class a1{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${h(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Na=(()=>{class e{}return e.NULL=new a1,e})();function l1(){return ia(pe(),we())}function ia(e,t){return new Ua(ve(e,t))}let Ua=(()=>{class e{constructor(a){this.nativeElement=a}}return e.__NG_ELEMENT_ID__=l1,e})();function u1(e){return e instanceof Ua?e.nativeElement:e}class H0{}let c1=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function(){const e=we(),a=In(pe().index,e);return function(e){return e[11]}(Xn(a)?a:e)}(),e})(),j0=(()=>{class e{}return e.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>null}),e})();class W0{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const z0=new W0("13.1.1"),wl={};function Ml(e,t,a,_,C=!1){for(;null!==a;){const R=t[a.index];if(null!==R&&_.push(be(R)),pi(R))for(let se=10;se-1&&(du(t,_),Co(a,_))}this._attachedToViewContainer=!1}Uh(this._lView[1],this._lView)}onDestroy(t){Ef(this._lView[1],this._lView,null,t)}markForCheck(){ku(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Fu(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,a){Pn(!0);try{Fu(e,t,a)}finally{Pn(!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 t;this._appRef=null,wa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class f1 extends ra{constructor(t){super(t),this._view=t}detectChanges(){Of(this._view)}checkNoChanges(){!function(e){Pn(!0);try{Of(e)}finally{Pn(!1)}}(this._view)}get context(){return null}}class K0 extends Na{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const a=Ot(t);return new Sl(a,this.ngModule)}}function G0(e){const t=[];for(let a in e)e.hasOwnProperty(a)&&t.push({propName:e[a],templateName:a});return t}const m1=new lr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Th});class Sl extends El{constructor(t,a){super(),this.componentDef=t,this.ngModule=a,this.componentType=t.type,this.selector=t.selectors.map(J_).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!a}get inputs(){return G0(this.componentDef.inputs)}get outputs(){return G0(this.componentDef.outputs)}create(t,a,_,C){const R=(C=C||this.ngModule)?function(e,t){return{get:(a,_,C)=>{const R=e.get(a,wl,C);return R!==wl||_===wl?R:t.get(a,_,C)}}}(t,C.injector):t,W=R.get(H0,zr),se=R.get(j0,null),ge=W.createRenderer(null,this.componentDef),De=this.componentDef.selectors[0][0]||"div",ke=_?Cf(ge,_,this.componentDef.encapsulation):cu(W.createRenderer(null,this.componentDef),De,function(e){const t=e.toLowerCase();return"svg"===t?Fr:"math"===t?ls:null}(De)),qe=this.componentDef.onPush?576:528,Ct=ep(),Pt=ll(0,null,null,1,0,null,null,null,null,null),Yt=Ma(null,Pt,Ct,qe,null,null,W,ge,se,R);let sn,dn;Yi(Yt);try{const wn=qf(ke,this.componentDef,Yt,W,ge);if(ke)if(_)Mt(ge,ke,["ng-version",z0.full]);else{const{attrs:Jt,classes:Un}=function(e){const t=[],a=[];let _=1,C=2;for(;_0&&gu(ge,ke,Un.join(" "))}if(dn=Nt(Pt,20),void 0!==a){const Jt=dn.projection=[];for(let Un=0;Un{const C=e;null!==t&&(C.hasOwnProperty("decorators")&&void 0!==C.decorators?C.decorators.push(...t):C.decorators=t),null!==a&&(C.ctorParameters=a),null!==_&&(C.propDecorators=C.hasOwnProperty("propDecorators")&&void 0!==C.propDecorators?Object.assign(Object.assign({},C.propDecorators),_):_)})}class sa{}class X0{}const oa=new Map;function q0(e){const t=new Set;!function a(_){const C=On(_,!0),R=C.id;if(null!==R){(function(e,t,a){if(t&&t!==a)throw new Error(`Duplicate module registered for ${e} - ${h(t)} vs ${h(t.name)}`)})(R,oa.get(R),_),oa.set(R,_)}const W=zs(C.imports);for(const se of W)t.has(se)||(t.add(se),a(se))}(e)}function J0(e){return oa.get(e)||cn[e]}function v1(e,t){return new sd(e,null!=t?t:null)}class sd extends sa{constructor(t,a){super(),this._parent=a,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new K0(this);const _=On(t);this._bootstrapComponents=zs(_.bootstrap),this._r3Injector=$f(t,a,[{provide:sa,useValue:this},{provide:Na,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,a=gs.THROW_IF_NOT_FOUND,_=Ee.Default){return t===gs||t===sa||t===dl?this:this._r3Injector.get(t,a,_)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(a=>a()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Dl extends X0{constructor(t){super(),this.moduleType=t,null!==On(t)&&q0(t)}create(t){return new sd(this.moduleType,t)}}function em(e,t,a){const _=Ln()+e,C=we();return C[_]===ei?Ys(C,_,a?t.call(a):t()):xa(C,_)}function tm(e,t,a,_){return cm(we(),Ln(),e,t,a,_)}function nm(e,t,a,_,C){return dm(we(),Ln(),e,t,a,_,C)}function im(e,t,a,_,C,R){return hm(we(),Ln(),e,t,a,_,C,R)}function rm(e,t,a,_,C,R,W){return fm(we(),Ln(),e,t,a,_,C,R,W)}function sm(e,t,a,_,C,R,W,se){const ge=Ln()+e,De=we(),ke=Os(De,ge,a,_,C,R);return Zr(De,ge+4,W)||ke?Ys(De,ge+5,se?t.call(se,a,_,C,R,W):t(a,_,C,R,W)):xa(De,ge+5)}function om(e,t,a,_,C,R,W,se,ge){const De=Ln()+e,ke=we(),qe=Os(ke,De,a,_,C,R);return So(ke,De+4,W,se)||qe?Ys(ke,De+6,ge?t.call(ge,a,_,C,R,W,se):t(a,_,C,R,W,se)):xa(ke,De+6)}function am(e,t,a,_,C,R,W,se,ge,De){const ke=Ln()+e,qe=we();let Ct=Os(qe,ke,a,_,C,R);return fl(qe,ke+4,W,se,ge)||Ct?Ys(qe,ke+7,De?t.call(De,a,_,C,R,W,se,ge):t(a,_,C,R,W,se,ge)):xa(qe,ke+7)}function lm(e,t,a,_,C,R,W,se,ge,De,ke){const qe=Ln()+e,Ct=we(),Pt=Os(Ct,qe,a,_,C,R);return Os(Ct,qe+4,W,se,ge,De)||Pt?Ys(Ct,qe+8,ke?t.call(ke,a,_,C,R,W,se,ge,De):t(a,_,C,R,W,se,ge,De)):xa(Ct,qe+8)}function um(e,t,a,_){return pm(we(),Ln(),e,t,a,_)}function Ba(e,t){const a=e[t];return a===ei?void 0:a}function cm(e,t,a,_,C,R){const W=t+a;return Zr(e,W,C)?Ys(e,W+1,R?_.call(R,C):_(C)):Ba(e,W+1)}function dm(e,t,a,_,C,R,W){const se=t+a;return So(e,se,C,R)?Ys(e,se+2,W?_.call(W,C,R):_(C,R)):Ba(e,se+2)}function hm(e,t,a,_,C,R,W,se){const ge=t+a;return fl(e,ge,C,R,W)?Ys(e,ge+3,se?_.call(se,C,R,W):_(C,R,W)):Ba(e,ge+3)}function fm(e,t,a,_,C,R,W,se,ge){const De=t+a;return Os(e,De,C,R,W,se)?Ys(e,De+4,ge?_.call(ge,C,R,W,se):_(C,R,W,se)):Ba(e,De+4)}function pm(e,t,a,_,C,R){let W=t+a,se=!1;for(let ge=0;ge=0;a--){const _=t[a];if(e===_.name)return _}}(t,a.pipeRegistry),a.data[C]=_,_.onDestroy&&(a.destroyHooks||(a.destroyHooks=[])).push(C,_.onDestroy)):_=a.data[C];const R=_.factory||(_.factory=ir(_.type)),W=x(Aa);try{const se=Ve(!1),ge=R();return Ve(se),op(a,we(),C,ge),ge}finally{x(W)}}function gm(e,t,a){const _=e+20,C=we(),R=nn(C,_);return Va(C,_)?cm(C,Ln(),t,R.transform,a,R):R.transform(a)}function _m(e,t,a,_){const C=e+20,R=we(),W=nn(R,C);return Va(R,C)?dm(R,Ln(),t,W.transform,a,_,W):W.transform(a,_)}function vm(e,t,a,_,C){const R=e+20,W=we(),se=nn(W,R);return Va(W,R)?hm(W,Ln(),t,se.transform,a,_,C,se):se.transform(a,_,C)}function ym(e,t,a,_,C,R){const W=e+20,se=we(),ge=nn(se,W);return Va(se,W)?fm(se,Ln(),t,ge.transform,a,_,C,R,ge):ge.transform(a,_,C,R)}function bm(e,t,a){const _=e+20,C=we(),R=nn(C,_);return Va(C,_)?pm(C,Ln(),t,R.transform,a,R):R.transform.apply(R,a)}function Va(e,t){return e[1].data[t].pure}function od(e){return t=>{setTimeout(e,void 0,t)}}const Xs=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,a,_){var C,R,W;let se=t,ge=a||(()=>null),De=_;if(t&&"object"==typeof t){const qe=t;se=null===(C=qe.next)||void 0===C?void 0:C.bind(qe),ge=null===(R=qe.error)||void 0===R?void 0:R.bind(qe),De=null===(W=qe.complete)||void 0===W?void 0:W.bind(qe)}this.__isAsync&&(ge=od(ge),se&&(se=od(se)),De&&(De=od(De)));const ke=super.subscribe({next:se,error:ge,complete:De});return t instanceof f.w&&t.add(ke),ke}};function C1(){return this._results[jo()]()}class Tl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const a=jo(),_=Tl.prototype;_[a]||(_[a]=C1)}get changes(){return this._changes||(this._changes=new Xs)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,a){return this._results.reduce(t,a)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,a){const _=this;_.dirty=!1;const C=os(t);(this._changesDetected=!function(e,t,a){if(e.length!==t.length)return!1;for(let _=0;_{class e{}return e.__NG_ELEMENT_ID__=M1,e})();const E1=$a,w1=class extends E1{constructor(t,a,_){super(),this._declarationLView=t,this._declarationTContainer=a,this.elementRef=_}createEmbeddedView(t){const a=this._declarationTContainer.tViews,_=Ma(this._declarationLView,a,t,16,null,a.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(_[19]=R.createEmbeddedView(a)),Sa(a,_,t),new ra(_)}};function M1(){return xl(pe(),we())}function xl(e,t){return 4&e.type?new w1(t,e,ia(e,t)):null}let Il=(()=>{class e{}return e.__NG_ELEMENT_ID__=S1,e})();function S1(){return wm(pe(),we())}const D1=Il,Cm=class extends D1{constructor(t,a,_){super(),this._lContainer=t,this._hostTNode=a,this._hostLView=_}get element(){return ia(this._hostTNode,this._hostLView)}get injector(){return new lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=hs(this._hostTNode,this._hostLView);if(me(t)){const a=Ce(t,this._hostLView),_=oe(t);return new lo(a[1].data[_+8],a)}return new lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const a=Em(this._lContainer);return null!==a&&a[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,a,_){const C=t.createEmbeddedView(a||{});return this.insert(C,_),C}createComponent(t,a,_,C,R){const W=t&&!bo(t);let se;if(W)se=a;else{const qe=a||{};se=qe.index,_=qe.injector,C=qe.projectableNodes,R=qe.ngModuleRef}const ge=W?t:new Sl(Ot(t)),De=_||this.parentInjector;if(!R&&null==ge.ngModule&&De){const qe=De.get(sa,null);qe&&(R=qe)}const ke=ge.create(De,C,void 0,R);return this.insert(ke.hostView,se),ke}insert(t,a){const _=t._lView,C=_[1];if(pi(_[3])){const ke=this.indexOf(t);if(-1!==ke)this.detach(ke);else{const qe=_[3],Ct=new Cm(qe,qe[6],qe[3]);Ct.detach(Ct.indexOf(t))}}const R=this._adjustIndex(a),W=this._lContainer;!function(e,t,a,_){const C=10+_,R=a.length;_>0&&(a[C-1][4]=t),_0)_.push(W[se/2]);else{const De=R[se+1],ke=t[-ge];for(let qe=10;qe({\u0275\u0275attribute:Yu,\u0275\u0275attributeInterpolate1:Qu,\u0275\u0275attributeInterpolate2:Xu,\u0275\u0275attributeInterpolate3:Zu,\u0275\u0275attributeInterpolate4:qu,\u0275\u0275attributeInterpolate5:Ju,\u0275\u0275attributeInterpolate6:ec,\u0275\u0275attributeInterpolate7:tc,\u0275\u0275attributeInterpolate8:nc,\u0275\u0275attributeInterpolateV:ic,\u0275\u0275defineComponent:Me,\u0275\u0275defineDirective:He,\u0275\u0275defineInjectable:Ue,\u0275\u0275defineInjector:at,\u0275\u0275defineNgModule:An,\u0275\u0275definePipe:pt,\u0275\u0275directiveInject:Aa,\u0275\u0275getInheritedFactory:Ds,\u0275\u0275inject:Cn,\u0275\u0275injectAttribute:da,\u0275\u0275invalidFactory:yp,\u0275\u0275invalidFactoryDep:Pi,\u0275\u0275templateRefExtractor:Lm,\u0275\u0275NgOnChangesFeature:Sr,\u0275\u0275ProvidersFeature:B0,\u0275\u0275CopyDefinitionFeature:ip,\u0275\u0275InheritDefinitionFeature:zu,\u0275\u0275nextContext:Tp,\u0275\u0275namespaceHTML:Es,\u0275\u0275namespaceMathML:Si,\u0275\u0275namespaceSVG:dr,\u0275\u0275enableBindings:ds,\u0275\u0275disableBindings:Bs,\u0275\u0275elementStart:uc,\u0275\u0275elementEnd:cc,\u0275\u0275element:bp,\u0275\u0275elementContainerStart:dc,\u0275\u0275elementContainerEnd:hc,\u0275\u0275elementContainer:Cp,\u0275\u0275pureFunction0:em,\u0275\u0275pureFunction1:tm,\u0275\u0275pureFunction2:nm,\u0275\u0275pureFunction3:im,\u0275\u0275pureFunction4:rm,\u0275\u0275pureFunction5:sm,\u0275\u0275pureFunction6:om,\u0275\u0275pureFunction7:am,\u0275\u0275pureFunction8:lm,\u0275\u0275pureFunctionV:um,\u0275\u0275getCurrentView:Ep,\u0275\u0275restoreView:G,\u0275\u0275listener:pc,\u0275\u0275projection:Ip,\u0275\u0275syntheticHostProperty:Yc,\u0275\u0275syntheticHostListener:mc,\u0275\u0275pipeBind1:gm,\u0275\u0275pipeBind2:_m,\u0275\u0275pipeBind3:vm,\u0275\u0275pipeBind4:ym,\u0275\u0275pipeBindV:bm,\u0275\u0275projectionDef:xp,\u0275\u0275hostProperty:Gc,\u0275\u0275property:ac,\u0275\u0275propertyInterpolate:_c,\u0275\u0275propertyInterpolate1:ml,\u0275\u0275propertyInterpolate2:vc,\u0275\u0275propertyInterpolate3:yc,\u0275\u0275propertyInterpolate4:bc,\u0275\u0275propertyInterpolate5:Cc,\u0275\u0275propertyInterpolate6:Ec,\u0275\u0275propertyInterpolate7:wc,\u0275\u0275propertyInterpolate8:Mc,\u0275\u0275propertyInterpolateV:Sc,\u0275\u0275pipe:mm,\u0275\u0275queryRefresh:Dm,\u0275\u0275viewQuery:Tm,\u0275\u0275loadQuery:Im,\u0275\u0275contentQuery:xm,\u0275\u0275reference:ap,\u0275\u0275classMap:Np,\u0275\u0275classMapInterpolate1:zp,\u0275\u0275classMapInterpolate2:Kp,\u0275\u0275classMapInterpolate3:Gp,\u0275\u0275classMapInterpolate4:Yp,\u0275\u0275classMapInterpolate5:Qp,\u0275\u0275classMapInterpolate6:Xp,\u0275\u0275classMapInterpolate7:Zp,\u0275\u0275classMapInterpolate8:qp,\u0275\u0275classMapInterpolateV:Jp,\u0275\u0275styleMap:Ps,\u0275\u0275styleMapInterpolate1:e0,\u0275\u0275styleMapInterpolate2:t0,\u0275\u0275styleMapInterpolate3:n0,\u0275\u0275styleMapInterpolate4:r0,\u0275\u0275styleMapInterpolate5:s0,\u0275\u0275styleMapInterpolate6:o0,\u0275\u0275styleMapInterpolate7:a0,\u0275\u0275styleMapInterpolate8:l0,\u0275\u0275styleMapInterpolateV:u0,\u0275\u0275styleProp:Dc,\u0275\u0275stylePropInterpolate1:Uc,\u0275\u0275stylePropInterpolate2:Bc,\u0275\u0275stylePropInterpolate3:Vc,\u0275\u0275stylePropInterpolate4:$c,\u0275\u0275stylePropInterpolate5:Hc,\u0275\u0275stylePropInterpolate6:jc,\u0275\u0275stylePropInterpolate7:Wc,\u0275\u0275stylePropInterpolate8:zc,\u0275\u0275stylePropInterpolateV:Kc,\u0275\u0275classProp:Tc,\u0275\u0275advance:nf,\u0275\u0275template:sp,\u0275\u0275text:Wp,\u0275\u0275textInterpolate:Ic,\u0275\u0275textInterpolate1:_l,\u0275\u0275textInterpolate2:Ac,\u0275\u0275textInterpolate3:Oc,\u0275\u0275textInterpolate4:Rc,\u0275\u0275textInterpolate5:Lc,\u0275\u0275textInterpolate6:kc,\u0275\u0275textInterpolate7:Pc,\u0275\u0275textInterpolate8:Fc,\u0275\u0275textInterpolateV:Nc,\u0275\u0275i18n:k0,\u0275\u0275i18nAttributes:P0,\u0275\u0275i18nExp:ed,\u0275\u0275i18nStart:qc,\u0275\u0275i18nEnd:Jc,\u0275\u0275i18nApply:F0,\u0275\u0275i18nPostprocess:N0,\u0275\u0275resolveWindow:xh,\u0275\u0275resolveDocument:Ih,\u0275\u0275resolveBody:Ah,\u0275\u0275setComponentScope:ze,\u0275\u0275setNgModuleScope:lt,\u0275\u0275sanitizeHtml:fh,\u0275\u0275sanitizeStyle:ph,\u0275\u0275sanitizeResourceUrl:eu,\u0275\u0275sanitizeScript:mh,\u0275\u0275sanitizeUrl:Jl,\u0275\u0275sanitizeUrlOrResourceUrl:vh,\u0275\u0275trustConstantHtml:gh,\u0275\u0275trustConstantResourceUrl:_h,forwardRef:i,resolveForwardRef:c}))();let aa=null;function N1(){aa=null}const Ha=[];let fd=!1;function km(){if(!fd){fd=!0;try{for(let e=Ha.length-1;e>=0;e--){const{moduleType:t,ngModule:a}=Ha[e];a.declarations&&a.declarations.every(Pm)&&(Ha.splice(e,1),V1(t,a))}}finally{fd=!1}}}function Pm(e){return Array.isArray(e)?e.every(Pm):!!c(e)}function Fm(e,t={}){Nm(e,t),function(e,t){Ha.push({moduleType:e,ngModule:t})}(e,t)}function Nm(e,t,a=!1){const _=os(t.declarations||Qe);let C=null;Object.defineProperty(e,Ne,{configurable:!0,get:()=>(null===C&&(C=yr().compileNgModule(is,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:os(t.bootstrap||Qe).map(c),declarations:_.map(c),imports:os(t.imports||Qe).map(c).map($m),exports:os(t.exports||Qe).map(c).map($m),schemas:t.schemas?os(t.schemas):null,id:t.id||null}),C.schemas||(C.schemas=[])),C)});let R=null;Object.defineProperty(e,Se,{get:()=>{if(null===R){const se=yr();R=se.compileFactory(is,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:qa(e),target:se.FactoryTarget.NgModule,typeArgumentCount:0})}return R},configurable:!1});let W=null;Object.defineProperty(e,Tt,{get:()=>{if(null===W){const se={name:e.name,type:e,providers:t.providers||Qe,imports:[(t.imports||Qe).map(c),(t.exports||Qe).map(c)]};W=yr().compileInjector(is,`ng:///${e.name}/\u0275inj.js`,se)}return W},configurable:!1})}let Al=new WeakMap,md=new WeakMap;function B1(){Al=new WeakMap,md=new WeakMap,Ha.length=0}function V1(e,t){const a=os(t.declarations||Qe),_=ja(e);a.forEach(C=>{C.hasOwnProperty(mt)?gd(Ot(C),_):!C.hasOwnProperty(Vt)&&!C.hasOwnProperty(qt)&&(C.ngSelectorScope=e)})}function gd(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(a=>a.hasOwnProperty(mt)?Ot(a):un(a)).filter(a=>!!a),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(a=>on(a)),e.schemas=t.schemas,e.tView=null}function ja(e){if(!_d(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=On(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const a={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return zs(t.imports).forEach(_=>{const C=_;if(!_d(C))throw new Error(`Importing ${C.name} which does not have a \u0275mod property`);const R=ja(C);R.exported.directives.forEach(W=>a.compilation.directives.add(W)),R.exported.pipes.forEach(W=>a.compilation.pipes.add(W))}),zs(t.declarations).forEach(_=>{on(_)?a.compilation.pipes.add(_):a.compilation.directives.add(_)}),zs(t.exports).forEach(_=>{const C=_;if(_d(C)){const R=ja(C);R.exported.directives.forEach(W=>{a.compilation.directives.add(W),a.exported.directives.add(W)}),R.exported.pipes.forEach(W=>{a.compilation.pipes.add(W),a.exported.pipes.add(W)})}else on(C)?a.exported.pipes.add(C):a.exported.directives.add(C)}),t.transitiveCompileScopes=a,a}function $m(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function _d(e){return!!On(e)}let vd=0;function Hm(e,t){let a=null;(function(e,t){Jd(t)&&(Lo.set(e,t),ga.add(e))})(e,t),Wm(e,t),Object.defineProperty(e,mt,{get:()=>{if(null===a){const _=yr();if(Jd(t)){const De=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&De.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&De.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),De.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(De.join("\n"))}const C=aa;let R=t.preserveWhitespaces;void 0===R&&(R=null!==C&&void 0!==C.preserveWhitespaces&&C.preserveWhitespaces);let W=t.encapsulation;void 0===W&&(W=null!==C&&void 0!==C.defaultEncapsulation?C.defaultEncapsulation:ut.Emulated);const se=t.templateUrl||`ng:///${e.name}/template.html`,ge=Object.assign(Object.assign({},zm(e,t)),{typeSourceSpan:_.createParseSourceSpan("Component",e.name,se),template:t.template||"",preserveWhitespaces:R,styles:t.styles||Qe,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:W,interpolation:t.interpolation,viewProviders:t.viewProviders||null});vd++;try{ge.usesInheritance&&Km(e),a=_.compileComponent(is,se,ge)}finally{vd--}if(0===vd&&km(),function(e){return void 0!==e.ngSelectorScope}(e)){const De=ja(e.ngSelectorScope);gd(a,De)}}return a},configurable:!1})}function yd(e,t){let a=null;Wm(e,t||{}),Object.defineProperty(e,Vt,{get:()=>{if(null===a){const _=jm(e,t||{});a=yr().compileDirective(is,_.sourceMapUrl,_.metadata)}return a},configurable:!1})}function jm(e,t){const a=e&&e.name,_=`ng:///${a}/\u0275dir.js`,C=yr(),R=zm(e,t);return R.typeSourceSpan=C.createParseSourceSpan("Directive",a,_),R.usesInheritance&&Km(e),{metadata:R,sourceMapUrl:_}}function Wm(e,t){let a=null;Object.defineProperty(e,Se,{get:()=>{if(null===a){const _=jm(e,t),C=yr();a=C.compileFactory(is,`ng:///${e.name}/\u0275fac.js`,{name:_.metadata.name,type:_.metadata.type,typeArgumentCount:0,deps:qa(e),target:C.FactoryTarget.Directive})}return a},configurable:!1})}function j1(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function zm(e,t){const a=Kl(),_=a.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Lt,propMetadata:_,inputs:t.inputs||Qe,outputs:t.outputs||Qe,queries:Gm(e,_,Ym),lifecycle:{usesOnChanges:a.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!j1(e),exportAs:K1(t.exportAs),providers:t.providers||null,viewQueries:Gm(e,_,Qm)}}function Km(e){const t=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==t;)!un(a)&&!Ot(a)&&Y1(a)&&yd(a,null),a=Object.getPrototypeOf(a)}function W1(e){return"string"==typeof e?Zm(e):c(e)}function z1(e,t){return{propertyName:e,predicate:W1(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Gm(e,t,a){const _=[];for(const C in t)if(t.hasOwnProperty(C)){const R=t[C];R.forEach(W=>{if(a(W)){if(!W.selector)throw new Error(`Can't construct a query for the property "${C}" of "${O(e)}" since the query selector wasn't defined.`);if(R.some(Xm))throw new Error("Cannot combine @Input decorators with query decorators");_.push(z1(C,W))}})}return _}function K1(e){return void 0===e?null:Zm(e)}function Ym(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Qm(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Xm(e){return"Input"===e.ngMetadataName}function Zm(e){return e.split(",").map(t=>t.trim())}const G1=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Y1(e){const t=Kl();if(G1.some(_=>t.hasLifecycleHook(e,_)))return!0;const a=t.propMetadata(e);for(const _ in a){const C=a[_];for(let R=0;R{if(null===_){const C=Jm(e,t),R=yr();_=R.compileFactory(is,`ng:///${C.name}/\u0275fac.js`,{name:C.name,type:C.type,typeArgumentCount:0,deps:qa(e),target:R.FactoryTarget.Pipe})}return _},configurable:!1}),Object.defineProperty(e,qt,{get:()=>{if(null===a){const C=Jm(e,t);a=yr().compilePipe(is,`ng:///${C.name}/\u0275pipe.js`,C)}return a},configurable:!1})}function Jm(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const eg=Ts("Directive",(e={})=>e,void 0,void 0,(e,t)=>yd(e,t)),Q1=Ts("Component",(e={})=>Object.assign({changeDetection:Be.Default},e),eg,void 0,(e,t)=>Hm(e,t)),X1=Ts("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>qm(e,t)),Z1=js("Input",e=>({bindingPropertyName:e})),q1=js("Output",e=>({bindingPropertyName:e})),J1=js("HostBinding",e=>({hostPropertyName:e})),eC=js("HostListener",(e,t)=>({eventName:e,args:t})),tC=Ts("NgModule",e=>e,void 0,void 0,(e,t)=>Fm(e,t));function Ol(...e){}const bd=new lr("Application Initializer");let la=(()=>{class e{constructor(a){this.appInits=a,this.resolve=Ol,this.reject=Ol,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const a=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{R.subscribe({complete:se,error:ge})});a.push(W)}}Promise.all(a).then(()=>{_()}).catch(C=>{this.reject(C)}),0===a.length&&_(),this.initialized=!0}}return e.\u0275fac=function(a){return new(a||e)(Cn(bd,8))},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();const tg=new lr("AppId"),ng={provide:tg,useFactory:function(){return`${Cd()}${Cd()}${Cd()}`},deps:[]};function Cd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ig=new lr("Platform Initializer"),rg=new lr("Platform ID"),sg=new lr("appBootstrapListener"),iC=new lr("Application Packages Root URL");let og=(()=>{class e{log(a){console.log(a)}warn(a){console.warn(a)}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();const Rl=new lr("LocaleId"),ag=new lr("DefaultCurrencyCode"),rC=new lr("Translations"),sC=new lr("TranslationsFormat");var Zs=(()=>((Zs=Zs||{})[Zs.Error=0]="Error",Zs[Zs.Warning=1]="Warning",Zs[Zs.Ignore=2]="Ignore",Zs))();class lg{constructor(t,a){this.ngModuleFactory=t,this.componentFactories=a}}let Ed=(()=>{class e{compileModuleSync(a){return new Dl(a)}compileModuleAsync(a){return Promise.resolve(this.compileModuleSync(a))}compileModuleAndAllComponentsSync(a){const _=this.compileModuleSync(a),R=zs(On(a).declarations).reduce((W,se)=>{const ge=Ot(se);return ge&&W.push(new Sl(ge)),W},[]);return new lg(_,R)}compileModuleAndAllComponentsAsync(a){return Promise.resolve(this.compileModuleAndAllComponentsSync(a))}clearCache(){}clearCacheFor(a){}getModuleId(a){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();const ug=new lr("compilerOptions");class oC{}const aC=(()=>Promise.resolve(0))();function wd(e){"undefined"==typeof Zone?aC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class _s{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:a=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xs(!1),this.onMicrotaskEmpty=new Xs(!1),this.onStable=new Xs(!1),this.onError=new Xs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const C=this;C._nesting=0,C._outer=C._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&a,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function(){let e=Kt.requestAnimationFrame,t=Kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const a=e[Zone.__symbol__("OriginalDelegate")];a&&(e=a);const _=t[Zone.__symbol__("OriginalDelegate")];_&&(t=_)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Kt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Sd(e),e.isCheckStableRunning=!0,Md(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Sd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(a,_,C,R,W,se)=>{try{return cg(e),a.invokeTask(C,R,W,se)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===R.type||e.shouldCoalesceRunChangeDetection)&&t(),dg(e)}},onInvoke:(a,_,C,R,W,se,ge)=>{try{return cg(e),a.invoke(C,R,W,se,ge)}finally{e.shouldCoalesceRunChangeDetection&&t(),dg(e)}},onHasTask:(a,_,C,R)=>{a.hasTask(C,R),_===C&&("microTask"==R.change?(e._hasPendingMicrotasks=R.microTask,Sd(e),Md(e)):"macroTask"==R.change&&(e.hasPendingMacrotasks=R.macroTask))},onHandleError:(a,_,C,R)=>(a.handleError(C,R),e.runOutsideAngular(()=>e.onError.emit(R)),!1)})}(C)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_s.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_s.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,a,_){return this._inner.run(t,a,_)}runTask(t,a,_,C){const R=this._inner,W=R.scheduleEventTask("NgZoneEvent: "+C,t,uC,Ol,Ol);try{return R.runTask(W,a,_)}finally{R.cancelTask(W)}}runGuarded(t,a,_){return this._inner.runGuarded(t,a,_)}runOutsideAngular(t){return this._outer.run(t)}}const uC={};function Md(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 Sd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dg(e){e._nesting--,Md(e)}class hg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xs,this.onMicrotaskEmpty=new Xs,this.onStable=new Xs,this.onError=new Xs}run(t,a,_){return t.apply(a,_)}runGuarded(t,a,_){return t.apply(a,_)}runOutsideAngular(t){return t()}runTask(t,a,_,C){return t.apply(a,_)}}let fg=(()=>{class e{constructor(a){this._ngZone=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),a.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:()=>{_s.assertNotInAngularZone(),wd(()=>{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())wd(()=>{for(;0!==this._callbacks.length;){let a=this._callbacks.pop();clearTimeout(a.timeoutId),a.doneCb(this._didWork)}this._didWork=!1});else{let a=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(a)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(a=>({source:a.source,creationLocation:a.creationLocation,data:a.data})):[]}addCallback(a,_,C){let R=-1;_&&_>0&&(R=setTimeout(()=>{this._callbacks=this._callbacks.filter(W=>W.timeoutId!==R),a(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:a,timeoutId:R,updateCb:C})}whenStable(a,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(a,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(a,_,C){return[]}}return e.\u0275fac=function(a){return new(a||e)(Cn(_s))},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})(),Dd=(()=>{class e{constructor(){this._applications=new Map,Td.addToWindow(this)}registerApplication(a,_){this._applications.set(a,_)}unregisterApplication(a){this._applications.delete(a)}unregisterAllApplications(){this._applications.clear()}getTestability(a){return this._applications.get(a)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(a,_=!0){return Td.findTestabilityInTree(this,a,_)}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,a,_){return null}}function fC(e){Td=e}let Us,Td=new hC;function pg(e,t,a){const _=new Dl(a);return Promise.resolve(_)}function mg(e){return e.isBoundToModule}const xd=new lr("AllowMultipleToken");class mC{constructor(t,a){this.name=t,this.token=a}}function gg(e){if(Us&&!Us.destroyed&&!Us.injector.get(xd,!1))throw new y("400","");Us=e.get(Ad);const t=e.get(ig,null);return t&&t.forEach(a=>a()),Us}function _g(e,t,a=[]){const _=`Platform: ${t}`,C=new lr(_);return(R=[])=>{let W=Id();if(!W||W.injector.get(xd,!1))if(e)e(a.concat(R).concat({provide:C,useValue:!0}));else{const se=a.concat(R).concat({provide:C,useValue:!0},{provide:Uu,useValue:"platform"});gg(gs.create({providers:se,name:_}))}return vg()}}function vg(e){const t=Id();if(!t)throw new y("401","");return t}function gC(){Us&&!Us.destroyed&&Us.destroy()}function Id(){return Us&&!Us.destroyed?Us:null}let Ad=(()=>{class e{constructor(a){this._injector=a,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(a,_){const se=function(e,t){let a;return a="noop"===e?new hg:("zone.js"===e?void 0:e)||new _s({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),a}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),ge=[{provide:_s,useValue:se}];return se.run(()=>{const De=gs.create({providers:ge,parent:this.injector,name:a.moduleType.name}),ke=a.create(De),qe=ke.injector.get(Ca,null);if(!qe)throw new y("402","");return se.runOutsideAngular(()=>{const Ct=se.onError.subscribe({next:Pt=>{qe.handleError(Pt)}});ke.onDestroy(()=>{Od(this._modules,ke),Ct.unsubscribe()})}),function(e,t,a){try{const _=a();return fc(_)?_.catch(C=>{throw t.runOutsideAngular(()=>e.handleError(C)),C}):_}catch(_){throw t.runOutsideAngular(()=>e.handleError(_)),_}}(qe,se,()=>{const Ct=ke.injector.get(la);return Ct.runInitializers(),Ct.donePromise.then(()=>(f0(ke.injector.get(Rl,Ra)||Ra),this._moduleDoBootstrap(ke),ke))})})}bootstrapModule(a,_=[]){const C=yg({},_);return pg(0,0,a).then(R=>this.bootstrapModuleFactory(R,C))}_moduleDoBootstrap(a){const _=a.injector.get(Wa);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!a.instance.ngDoBootstrap)throw new y("403","");a.instance.ngDoBootstrap(_)}this._modules.push(a)}onDestroy(a){this._destroyListeners.push(a)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new y("404","");this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(a){return new(a||e)(Cn(gs))},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();function yg(e,t){return Array.isArray(t)?t.reduce(yg,e):Object.assign(Object.assign({},e),t)}let Wa=(()=>{class e{constructor(a,_,C,R,W){this._zone=a,this._injector=_,this._exceptionHandler=C,this._componentFactoryResolver=R,this._initStatus=W,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 se=new v.y(De=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{De.next(this._stable),De.complete()})}),ge=new v.y(De=>{let ke;this._zone.runOutsideAngular(()=>{ke=this._zone.onStable.subscribe(()=>{_s.assertNotInAngularZone(),wd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,De.next(!0))})})});const qe=this._zone.onUnstable.subscribe(()=>{_s.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{De.next(!1)}))});return()=>{ke.unsubscribe(),qe.unsubscribe()}});this.isStable=(0,m.T)(se,ge.pipe((0,o.B)()))}bootstrap(a,_){if(!this._initStatus.done)throw new y("405","");let C;C=a instanceof El?a:this._componentFactoryResolver.resolveComponentFactory(a),this.componentTypes.push(C.componentType);const R=mg(C)?void 0:this._injector.get(sa),se=C.create(gs.NULL,[],_||C.selector,R),ge=se.location.nativeElement,De=se.injector.get(fg,null),ke=De&&se.injector.get(Dd);return De&&ke&&ke.registerApplication(ge,De),se.onDestroy(()=>{this.detachView(se.hostView),Od(this.components,se),ke&&ke.unregisterApplication(ge)}),this._loadComponent(se),se}tick(){if(this._runningTick)throw new y("101","");try{this._runningTick=!0;for(let a of this._views)a.detectChanges()}catch(a){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(a))}finally{this._runningTick=!1}}attachView(a){const _=a;this._views.push(_),_.attachToAppRef(this)}detachView(a){const _=a;Od(this._views,_),_.detachFromAppRef()}_loadComponent(a){this.attachView(a.hostView),this.tick(),this.components.push(a),this._injector.get(sg,[]).concat(this._bootstrapListeners).forEach(C=>C(a))}ngOnDestroy(){this._views.slice().forEach(a=>a.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(a){return new(a||e)(Cn(_s),Cn(gs),Cn(Ca),Cn(Na),Cn(la))},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();function Od(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}let Cg=!0,Eg=!1;function bC(){return Eg=!0,Cg}function CC(){if(Eg)throw new Error("Cannot enable prod mode after platform setup.");Cg=!1}function EC(e){const t=J0(e);if(!t)throw wg(e);return new Dl(t)}function wC(e){const t=J0(e);if(!t)throw wg(e);return t}function wg(e){return new Error(`No module with ID ${e} loaded`)}let Mg=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sg,e})();function Sg(e){return function(e,t,a){if(Ui(e)&&!a){const _=In(e.index,t);return new ra(_,_)}return 47&e.type?new ra(t[16],t):null}(pe(),we(),16==(16&e))}class Dg extends Mg{}class SC extends Dg{}class DC{constructor(t,a){this.name=t,this.callback=a}}function TC(e){return e.map(t=>t.nativeElement)}class Rd{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new za(t):null}get injector(){return Gf(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Hu(t)||zf(t))}get context(){return Hu(this.nativeNode)||Wf(this.nativeNode)}get listeners(){return Qf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(e){const t=Qr(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const a=e[1].data[t];if(a&&a.localNames){const _={};let C=a.index+1;for(let R=0;R1){let ke=ge[1];for(let qe=1;qet[R]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,a=[];for(let _=0;_{if(R.name===t){const W=R.callback;W.call(_,a),C.push(W)}}),"function"==typeof _.eventListeners&&_.eventListeners(t).forEach(R=>{if(-1!==R.toString().indexOf("__ngUnwrap__")){const W=R("__ngUnwrap__");return-1===C.indexOf(W)&&W.call(_,a)}})}}function IC(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Tg(e,t,a,_){const C=Qr(e.nativeNode);null!==C?To(C.lView[1].data[C.nodeIndex],C.lView,t,a,_,e.nativeNode):kd(e.nativeNode,t,a,_)}function To(e,t,a,_,C,R){const W=function(e,t){const a=null===e?-1:e.index;return-1!==a?be(t[a]):null}(e,t);if(11&e.type){if(Ld(W,a,_,C,R),Ui(e)){const ge=In(e.index,t);ge&&ge[1].firstChild&&To(ge[1].firstChild,ge,a,_,C,R)}else e.child&&To(e.child,t,a,_,C,R),W&&kd(W,a,_,C);const se=t[e.index];pi(se)&&xg(se,a,_,C,R)}else if(4&e.type){const se=t[e.index];Ld(se[7],a,_,C,R),xg(se,a,_,C,R)}else if(16&e.type){const se=t[16],De=se[6].projection[e.projection];if(Array.isArray(De))for(let ke of De)Ld(ke,a,_,C,R);else if(De){const ke=se[3];To(ke[1].data[De.index],ke,a,_,C,R)}}else e.child&&To(e.child,t,a,_,C,R);if(R!==W){const se=4&e.flags?e.projectionNext:e.next;se&&To(se,t,a,_,C,R)}}function xg(e,t,a,_,C){for(let R=10;Rt;class Ag{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||PC}forEachItem(t){let a;for(a=this._itHead;null!==a;a=a._next)t(a)}forEachOperation(t){let a=this._itHead,_=this._removalsHead,C=0,R=null;for(;a||_;){const W=!_||a&&a.currentIndex{W=this._trackByFn(C,se),null!==a&&Object.is(a.trackById,W)?(_&&(a=this._verifyReinsertion(a,se,W,C)),Object.is(a.item,se)||this._addIdentityChange(a,se)):(a=this._mismatch(a,se,W,C),_=!0),a=a._next,C++}),this.length=C;return this._truncate(a),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,a,_,C){let R;return null===t?R=this._itTail:(R=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(t.item,a)||this._addIdentityChange(t,a),this._reinsertAfter(t,R,C)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(t.item,a)||this._addIdentityChange(t,a),this._moveAfter(t,R,C)):t=this._addAfter(new FC(a,_),R,C),t}_verifyReinsertion(t,a,_,C){let R=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==R?t=this._reinsertAfter(R,t._prev,C):t.currentIndex!=C&&(t.currentIndex=C,this._addToMoves(t,C)),t}_truncate(t){for(;null!==t;){const a=t._next;this._addToRemovals(this._unlink(t)),t=a}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,a,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const C=t._prevRemoved,R=t._nextRemoved;return null===C?this._removalsHead=R:C._nextRemoved=R,null===R?this._removalsTail=C:R._prevRemoved=C,this._insertAfter(t,a,_),this._addToMoves(t,_),t}_moveAfter(t,a,_){return this._unlink(t),this._insertAfter(t,a,_),this._addToMoves(t,_),t}_addAfter(t,a,_){return this._insertAfter(t,a,_),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,a,_){const C=null===a?this._itHead:a._next;return t._next=C,t._prev=a,null===C?this._itTail=t:C._prev=t,null===a?this._itHead=t:a._next=t,null===this._linkedRecords&&(this._linkedRecords=new Og),this._linkedRecords.put(t),t.currentIndex=_,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const a=t._prev,_=t._next;return null===a?this._itHead=_:a._next=_,null===_?this._itTail=a:_._prev=a,t}_addToMoves(t,a){return t.previousIndex===a||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Og),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,a){return t.item=a,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class FC{constructor(t,a){this.item=t,this.trackById=a,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 NC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,a){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===a||a<=_.currentIndex)&&Object.is(_.trackById,t))return _;return null}remove(t){const a=t._prevDup,_=t._nextDup;return null===a?this._head=_:a._nextDup=_,null===_?this._tail=a:_._prevDup=a,null===this._head}}class Og{constructor(){this.map=new Map}put(t){const a=t.trackById;let _=this.map.get(a);_||(_=new NC,this.map.set(a,_)),_.add(t)}get(t,a){const C=this.map.get(t);return C?C.get(t,a):null}remove(t){const a=t.trackById;return this.map.get(a).remove(t)&&this.map.delete(a),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rg(e,t,a){const _=e.previousIndex;if(null===_)return _;let C=0;return a&&_{if(a&&a.key===C)this._maybeAddToChanges(a,_),this._appendAfter=a,a=a._next;else{const R=this._getOrCreateRecordForKey(C,_);a=this._insertBeforeOrAppend(a,R)}}),a){a._prev&&(a._prev._next=null),this._removalsHead=a;for(let _=a;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,a){if(t){const _=t._prev;return a._next=t,a._prev=_,t._prev=a,_&&(_._next=a),t===this._mapHead&&(this._mapHead=a),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=a,a._prev=this._appendAfter):this._mapHead=a,this._appendAfter=a,null}_getOrCreateRecordForKey(t,a){if(this._records.has(t)){const C=this._records.get(t);this._maybeAddToChanges(C,a);const R=C._prev,W=C._next;return R&&(R._next=W),W&&(W._prev=R),C._next=null,C._prev=null,C}const _=new BC(t);return this._records.set(t,_),_.currentValue=a,this._addToAdditions(_),_}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,a){Object.is(a,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=a,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,a){t instanceof Map?t.forEach(a):Object.keys(t).forEach(_=>a(t[_],_))}}class BC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kg(){return new kl([new Ig])}let kl=(()=>{class e{constructor(a){this.factories=a}static create(a,_){if(null!=_){const C=_.factories.slice();a=a.concat(C)}return new e(a)}static extend(a){return{provide:e,useFactory:_=>e.create(a,_||kg()),deps:[[e,new Eo,new Is]]}}find(a){const _=this.factories.find(C=>C.supports(a));if(null!=_)return _;throw new Error(`Cannot find a differ supporting object '${a}' of type '${function(e){return e.name||typeof e}(a)}'`)}}return e.\u0275prov=Ue({token:e,providedIn:"root",factory:kg}),e})();function Pg(){return new Pl([new Lg])}let Pl=(()=>{class e{constructor(a){this.factories=a}static create(a,_){if(_){const C=_.factories.slice();a=a.concat(C)}return new e(a)}static extend(a){return{provide:e,useFactory:_=>e.create(a,_||Pg()),deps:[[e,new Eo,new Is]]}}find(a){const _=this.factories.find(C=>C.supports(a));if(_)return _;throw new Error(`Cannot find a differ supporting object '${a}'`)}}return e.\u0275prov=Ue({token:e,providedIn:"root",factory:Pg}),e})();const $C=[new Lg],Fg=new kl([new Ig]),Ng=new Pl($C),jC=_g(null,"core",[{provide:rg,useValue:"unknown"},{provide:Ad,deps:[gs]},{provide:Dd,deps:[]},{provide:og,deps:[]}]),YC=[{provide:Wa,useClass:Wa,deps:[_s,gs,Ca,Na,la]},{provide:m1,deps:[_s],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(a){t.push(a)}}},{provide:la,useClass:la,deps:[[new Is,bd]]},{provide:Ed,useClass:Ed,deps:[]},ng,{provide:kl,useFactory:function(){return Fg},deps:[]},{provide:Pl,useFactory:function(){return Ng},deps:[]},{provide:Rl,useFactory:function(e){return e||"undefined"!=typeof $localize&&$localize.locale||Ra},deps:[[new fo(Rl),new Is,new Eo]]},{provide:ag,useValue:"USD"}];let XC=(()=>{class e{constructor(a){}}return e.\u0275fac=function(a){return new(a||e)(Cn(Wa))},e.\u0275mod=An({type:e}),e.\u0275inj=at({providers:YC}),e})();const ZC=!0;function qC(e){return yr().compileDirectiveDeclaration(is,`ng:///${e.type.name}/\u0275fac.js`,e)}function JC(e){var t,a;Q0(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(a=e.propDecorators)&&void 0!==a?a:null)}function eE(e){return yr().compileComponentDeclaration(is,`ng:///${e.type.name}/\u0275cmp.js`,e)}function tE(e){return yr(function(e){switch(e){case vr.Directive:return"directive";case vr.Component:return"component";case vr.Injectable:return"injectable";case vr.Pipe:return"pipe";case vr.NgModule:;}}(e.target)).compileFactoryDeclaration(is,`ng:///${e.type.name}/\u0275fac.js`,e)}function iE(e){return yr().compileInjectableDeclaration(is,`ng:///${e.type.name}/\u0275prov.js`,e)}function rE(e){return yr().compileInjectorDeclaration(is,`ng:///${e.type.name}/\u0275inj.js`,e)}function sE(e){return yr().compileNgModuleDeclaration(is,`ng:///${e.type.name}/\u0275mod.js`,e)}function oE(e){return yr().compilePipeDeclaration(is,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{AbstractControl:()=>Ni,AbstractControlDirective:()=>yt,AbstractFormGroupDirective:()=>ue,COMPOSITION_BUFFER_MODE:()=>l,CheckboxControlValueAccessor:()=>s,CheckboxRequiredValidator:()=>Hr,ControlContainer:()=>_t,DefaultValueAccessor:()=>g,EmailValidator:()=>Wi,FormArray:()=>Vi,FormArrayName:()=>oi,FormBuilder:()=>Er,FormControl:()=>Ti,FormControlDirective:()=>Gi,FormControlName:()=>mi,FormGroup:()=>qn,FormGroupDirective:()=>tr,FormGroupName:()=>Rn,FormsModule:()=>us,MaxLengthValidator:()=>Lr,MaxValidator:()=>hr,MinLengthValidator:()=>Rr,MinValidator:()=>ir,NG_ASYNC_VALIDATORS:()=>D,NG_VALIDATORS:()=>T,NG_VALUE_ACCESSOR:()=>h,NgControl:()=>ot,NgControlStatus:()=>Et,NgControlStatusGroup:()=>Ee,NgForm:()=>Ze,NgModel:()=>Zt,NgModelGroup:()=>Wt,NgSelectOption:()=>Sn,NumberValueAccessor:()=>zn,PatternValidator:()=>Fr,RadioControlValueAccessor:()=>kn,RangeValueAccessor:()=>Zi,ReactiveFormsModule:()=>si,RequiredValidator:()=>mr,SelectControlValueAccessor:()=>yn,SelectMultipleControlValueAccessor:()=>Vr,VERSION:()=>be,Validators:()=>w,\u0275InternalFormsSharedModule:()=>Tr,\u0275NgNoValidate:()=>an,\u0275NgSelectMultipleOption:()=>nr});var n=p(5e3),f=p(9808),v=p(5254),m=p(567),o=p(4850);let d=(()=>{class X{constructor(V,ve){this._renderer=V,this._elementRef=ve,this.onChange=nt=>{},this.onTouched=()=>{}}setProperty(V,ve){this._renderer.setProperty(this._elementRef.nativeElement,V,ve)}registerOnTouched(V){this.onTouched=V}registerOnChange(V){this.onChange=V}setDisabledState(V){this.setProperty("disabled",V)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X}),X})(),u=(()=>{class X extends d{}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,features:[n.\u0275\u0275InheritDefinitionFeature]}),X})();const h=new n.InjectionToken("NgValueAccessor"),r={provide:h,useExisting:(0,n.forwardRef)(()=>s),multi:!0};let s=(()=>{class X extends u{writeValue(V){this.setProperty("checked",V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.checked)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([r]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const i={provide:h,useExisting:(0,n.forwardRef)(()=>g),multi:!0},l=new n.InjectionToken("CompositionEventMode");let g=(()=>{class X extends d{constructor(V,ve,nt){super(V,ve),this._compositionMode=nt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const X=(0,f.\u0275getDOM)()?(0,f.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(X.toLowerCase())}())}writeValue(V){this.setProperty("value",null==V?"":V)}_handleInput(V){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(V)}_compositionStart(){this._composing=!0}_compositionEnd(V){this._composing=!1,this._compositionMode&&this.onChange(V)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(l,8))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,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(V,ve){1&V&&n.\u0275\u0275listener("input",function(Nt){return ve._handleInput(Nt.target.value)})("blur",function(){return ve.onTouched()})("compositionstart",function(){return ve._compositionStart()})("compositionend",function(Nt){return ve._compositionEnd(Nt.target.value)})},features:[n.\u0275\u0275ProvidersFeature([i]),n.\u0275\u0275InheritDefinitionFeature]}),X})();function y(X){return null==X||0===X.length}function E(X){return null!=X&&"number"==typeof X.length}const T=new n.InjectionToken("NgValidators"),D=new n.InjectionToken("NgAsyncValidators"),O=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class w{static min(k){return A(k)}static max(k){return S(k)}static required(k){return M(k)}static requiredTrue(k){return I(k)}static email(k){return b(k)}static minLength(k){return L(k)}static maxLength(k){return F(k)}static pattern(k){return ne(k)}static nullValidator(k){return null}static compose(k){return le(k)}static composeAsync(k){return Le(k)}}function A(X){return k=>{if(y(k.value)||y(X))return null;const V=parseFloat(k.value);return!isNaN(V)&&V{if(y(k.value)||y(X))return null;const V=parseFloat(k.value);return!isNaN(V)&&V>X?{max:{max:X,actual:k.value}}:null}}function M(X){return y(X.value)?{required:!0}:null}function I(X){return!0===X.value?null:{required:!0}}function b(X){return y(X.value)||O.test(X.value)?null:{email:!0}}function L(X){return k=>y(k.value)||!E(k.value)?null:k.value.lengthE(k.value)&&k.value.length>X?{maxlength:{requiredLength:X,actualLength:k.value.length}}:null}function ne(X){if(!X)return Y;let k,V;return"string"==typeof X?(V="","^"!==X.charAt(0)&&(V+="^"),V+=X,"$"!==X.charAt(X.length-1)&&(V+="$"),k=new RegExp(V)):(V=X.toString(),k=X),ve=>{if(y(ve.value))return null;const nt=ve.value;return k.test(nt)?null:{pattern:{requiredPattern:V,actualValue:nt}}}}function Y(X){return null}function Q(X){return null!=X}function te(X){const k=(0,n.\u0275isPromise)(X)?(0,v.D)(X):X;return(0,n.\u0275isObservable)(k),k}function $(X){let k={};return X.forEach(V=>{k=null!=V?Object.assign(Object.assign({},k),V):k}),0===Object.keys(k).length?null:k}function J(X,k){return k.map(V=>V(X))}function ae(X){return X.map(k=>function(X){return!X.validate}(k)?k:V=>k.validate(V))}function le(X){if(!X)return null;const k=X.filter(Q);return 0==k.length?null:function(V){return $(J(V,k))}}function Oe(X){return null!=X?le(ae(X)):null}function Le(X){if(!X)return null;const k=X.filter(Q);return 0==k.length?null:function(V){const ve=J(V,k).map(te);return(0,m.D)(ve).pipe((0,o.U)($))}}function Ye(X){return null!=X?Le(ae(X)):null}function Je(X,k){return null===X?[k]:Array.isArray(X)?[...X,k]:[X,k]}function gt(X){return X._rawValidators}function Ue(X){return X._rawAsyncValidators}function tt(X){return X?Array.isArray(X)?X:[X]:[]}function at(X,k){return Array.isArray(X)?X.includes(k):X===k}function ft(X,k){const V=tt(k);return tt(X).forEach(nt=>{at(V,nt)||V.push(nt)}),V}function vt(X,k){return tt(k).filter(V=>!at(X,V))}class yt{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(k){this._rawValidators=k||[],this._composedValidatorFn=Oe(this._rawValidators)}_setAsyncValidators(k){this._rawAsyncValidators=k||[],this._composedAsyncValidatorFn=Ye(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(k){this._onDestroyCallbacks.push(k)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(k=>k()),this._onDestroyCallbacks=[]}reset(k){this.control&&this.control.reset(k)}hasError(k,V){return!!this.control&&this.control.hasError(k,V)}getError(k,V){return this.control?this.control.getError(k,V):null}}class ot extends yt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _t extends yt{get formDirective(){return null}get path(){return null}}class At{constructor(k){this._cd=k}is(k){var V,ve,nt;return"submitted"===k?!!(null===(V=this._cd)||void 0===V?void 0:V.submitted):!!(null===(nt=null===(ve=this._cd)||void 0===ve?void 0:ve.control)||void 0===nt?void 0:nt[k])}}let Et=(()=>{class X extends At{constructor(V){super(V)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(ot,2))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(V,ve){2&V&&n.\u0275\u0275classProp("ng-untouched",ve.is("untouched"))("ng-touched",ve.is("touched"))("ng-pristine",ve.is("pristine"))("ng-dirty",ve.is("dirty"))("ng-valid",ve.is("valid"))("ng-invalid",ve.is("invalid"))("ng-pending",ve.is("pending"))},features:[n.\u0275\u0275InheritDefinitionFeature]}),X})(),Ee=(()=>{class X extends At{constructor(V){super(V)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(V,ve){2&V&&n.\u0275\u0275classProp("ng-untouched",ve.is("untouched"))("ng-touched",ve.is("touched"))("ng-pristine",ve.is("pristine"))("ng-dirty",ve.is("dirty"))("ng-valid",ve.is("valid"))("ng-invalid",ve.is("invalid"))("ng-pending",ve.is("pending"))("ng-submitted",ve.is("submitted"))},features:[n.\u0275\u0275InheritDefinitionFeature]}),X})();function tn(X,k){return[...k.path,X]}function Dt(X,k){Lt(X,k),k.valueAccessor.writeValue(X.value),function(X,k){k.valueAccessor.registerOnChange(V=>{X._pendingValue=V,X._pendingChange=!0,X._pendingDirty=!0,"change"===X.updateOn&&qt(X,k)})}(X,k),function(X,k){const V=(ve,nt)=>{k.valueAccessor.writeValue(ve),nt&&k.viewToModelUpdate(ve)};X.registerOnChange(V),k._registerOnDestroy(()=>{X._unregisterOnChange(V)})}(X,k),function(X,k){k.valueAccessor.registerOnTouched(()=>{X._pendingTouched=!0,"blur"===X.updateOn&&X._pendingChange&&qt(X,k),"submit"!==X.updateOn&&X.markAsTouched()})}(X,k),function(X,k){if(k.valueAccessor.setDisabledState){const V=ve=>{k.valueAccessor.setDisabledState(ve)};X.registerOnDisabledChange(V),k._registerOnDestroy(()=>{X._unregisterOnDisabledChange(V)})}}(X,k)}function Kt(X,k,V=!0){const ve=()=>{};k.valueAccessor&&(k.valueAccessor.registerOnChange(ve),k.valueAccessor.registerOnTouched(ve)),Qe(X,k),X&&(k._invokeOnDestroyCallbacks(),X._registerOnCollectionChange(()=>{}))}function et(X,k){X.forEach(V=>{V.registerOnValidatorChange&&V.registerOnValidatorChange(k)})}function Lt(X,k){const V=gt(X);null!==k.validator?X.setValidators(Je(V,k.validator)):"function"==typeof V&&X.setValidators([V]);const ve=Ue(X);null!==k.asyncValidator?X.setAsyncValidators(Je(ve,k.asyncValidator)):"function"==typeof ve&&X.setAsyncValidators([ve]);const nt=()=>X.updateValueAndValidity();et(k._rawValidators,nt),et(k._rawAsyncValidators,nt)}function Qe(X,k){let V=!1;if(null!==X){if(null!==k.validator){const nt=gt(X);if(Array.isArray(nt)&&nt.length>0){const Nt=nt.filter(nn=>nn!==k.validator);Nt.length!==nt.length&&(V=!0,X.setValidators(Nt))}}if(null!==k.asyncValidator){const nt=Ue(X);if(Array.isArray(nt)&&nt.length>0){const Nt=nt.filter(nn=>nn!==k.asyncValidator);Nt.length!==nt.length&&(V=!0,X.setAsyncValidators(Nt))}}}const ve=()=>{};return et(k._rawValidators,ve),et(k._rawAsyncValidators,ve),V}function qt(X,k){X._pendingDirty&&X.markAsDirty(),X.setValue(X._pendingValue,{emitModelToViewChange:!1}),k.viewToModelUpdate(X._pendingValue),X._pendingChange=!1}function Se(X,k){Lt(X,k)}function ze(X,k){if(!X.hasOwnProperty("model"))return!1;const V=X.model;return!!V.isFirstChange()||!Object.is(k,V.currentValue)}function Qt(X,k){X._syncPendingControls(),k.forEach(V=>{const ve=V.control;"submit"===ve.updateOn&&ve._pendingChange&&(V.viewToModelUpdate(ve._pendingValue),ve._pendingChange=!1)})}function cn(X,k){if(!k)return null;let V,ve,nt;return Array.isArray(k),k.forEach(Nt=>{Nt.constructor===g?V=Nt:function(X){return Object.getPrototypeOf(X.constructor)===u}(Nt)?ve=Nt:nt=Nt}),nt||ve||V||null}function An(X,k){const V=X.indexOf(k);V>-1&&X.splice(V,1)}const ct="VALID",He="INVALID",pt="PENDING",Ot="DISABLED";function on(X){return(Oi(X)?X.validators:X)||null}function On(X){return Array.isArray(X)?Oe(X):X||null}function Yn(X,k){return(Oi(k)?k.asyncValidators:X)||null}function ji(X){return Array.isArray(X)?Ye(X):X||null}function Oi(X){return null!=X&&!Array.isArray(X)&&"object"==typeof X}class Ni{constructor(k,V){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=k,this._rawAsyncValidators=V,this._composedValidatorFn=On(this._rawValidators),this._composedAsyncValidatorFn=ji(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(k){this._rawValidators=this._composedValidatorFn=k}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(k){this._rawAsyncValidators=this._composedAsyncValidatorFn=k}get parent(){return this._parent}get valid(){return this.status===ct}get invalid(){return this.status===He}get pending(){return this.status==pt}get disabled(){return this.status===Ot}get enabled(){return this.status!==Ot}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(k){this._rawValidators=k,this._composedValidatorFn=On(k)}setAsyncValidators(k){this._rawAsyncValidators=k,this._composedAsyncValidatorFn=ji(k)}addValidators(k){this.setValidators(ft(k,this._rawValidators))}addAsyncValidators(k){this.setAsyncValidators(ft(k,this._rawAsyncValidators))}removeValidators(k){this.setValidators(vt(k,this._rawValidators))}removeAsyncValidators(k){this.setAsyncValidators(vt(k,this._rawAsyncValidators))}hasValidator(k){return at(this._rawValidators,k)}hasAsyncValidator(k){return at(this._rawAsyncValidators,k)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(k={}){this.touched=!0,this._parent&&!k.onlySelf&&this._parent.markAsTouched(k)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(k=>k.markAllAsTouched())}markAsUntouched(k={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(V=>{V.markAsUntouched({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}markAsDirty(k={}){this.pristine=!1,this._parent&&!k.onlySelf&&this._parent.markAsDirty(k)}markAsPristine(k={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(V=>{V.markAsPristine({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}markAsPending(k={}){this.status=pt,!1!==k.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!k.onlySelf&&this._parent.markAsPending(k)}disable(k={}){const V=this._parentMarkedDirty(k.onlySelf);this.status=Ot,this.errors=null,this._forEachChild(ve=>{ve.disable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this._updateValue(),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:V})),this._onDisabledChange.forEach(ve=>ve(!0))}enable(k={}){const V=this._parentMarkedDirty(k.onlySelf);this.status=ct,this._forEachChild(ve=>{ve.enable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:V})),this._onDisabledChange.forEach(ve=>ve(!1))}_updateAncestors(k){this._parent&&!k.onlySelf&&(this._parent.updateValueAndValidity(k),k.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(k){this._parent=k}updateValueAndValidity(k={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ct||this.status===pt)&&this._runAsyncValidator(k.emitEvent)),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!k.onlySelf&&this._parent.updateValueAndValidity(k)}_updateTreeValidity(k={emitEvent:!0}){this._forEachChild(V=>V._updateTreeValidity(k)),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ot:ct}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(k){if(this.asyncValidator){this.status=pt,this._hasOwnPendingAsyncValidator=!0;const V=te(this.asyncValidator(this));this._asyncValidationSubscription=V.subscribe(ve=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ve,{emitEvent:k})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(k,V={}){this.errors=k,this._updateControlsErrors(!1!==V.emitEvent)}get(k){return function(X,k,V){if(null==k||(Array.isArray(k)||(k=k.split(".")),Array.isArray(k)&&0===k.length))return null;let ve=X;return k.forEach(nt=>{ve=ve instanceof qn?ve.controls.hasOwnProperty(nt)?ve.controls[nt]:null:ve instanceof Vi&&ve.at(nt)||null}),ve}(this,k)}getError(k,V){const ve=V?this.get(V):this;return ve&&ve.errors?ve.errors[k]:null}hasError(k,V){return!!this.getError(k,V)}get root(){let k=this;for(;k._parent;)k=k._parent;return k}_updateControlsErrors(k){this.status=this._calculateStatus(),k&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(k)}_initObservables(){this.valueChanges=new n.EventEmitter,this.statusChanges=new n.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Ot:this.errors?He:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pt)?pt:this._anyControlsHaveStatus(He)?He:ct}_anyControlsHaveStatus(k){return this._anyControls(V=>V.status===k)}_anyControlsDirty(){return this._anyControls(k=>k.dirty)}_anyControlsTouched(){return this._anyControls(k=>k.touched)}_updatePristine(k={}){this.pristine=!this._anyControlsDirty(),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}_updateTouched(k={}){this.touched=this._anyControlsTouched(),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}_isBoxedValue(k){return"object"==typeof k&&null!==k&&2===Object.keys(k).length&&"value"in k&&"disabled"in k}_registerOnCollectionChange(k){this._onCollectionChange=k}_setUpdateStrategy(k){Oi(k)&&null!=k.updateOn&&(this._updateOn=k.updateOn)}_parentMarkedDirty(k){return!k&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ti extends Ni{constructor(k=null,V,ve){super(on(V),Yn(ve,V)),this._onChange=[],this._pendingChange=!1,this._applyFormState(k),this._setUpdateStrategy(V),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(k,V={}){this.value=this._pendingValue=k,this._onChange.length&&!1!==V.emitModelToViewChange&&this._onChange.forEach(ve=>ve(this.value,!1!==V.emitViewToModelChange)),this.updateValueAndValidity(V)}patchValue(k,V={}){this.setValue(k,V)}reset(k=null,V={}){this._applyFormState(k),this.markAsPristine(V),this.markAsUntouched(V),this.setValue(this.value,V),this._pendingChange=!1}_updateValue(){}_anyControls(k){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(k){this._onChange.push(k)}_unregisterOnChange(k){An(this._onChange,k)}registerOnDisabledChange(k){this._onDisabledChange.push(k)}_unregisterOnDisabledChange(k){An(this._onDisabledChange,k)}_forEachChild(k){}_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(k){this._isBoxedValue(k)?(this.value=this._pendingValue=k.value,k.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=k}}class qn extends Ni{constructor(k,V,ve){super(on(V),Yn(ve,V)),this.controls=k,this._initObservables(),this._setUpdateStrategy(V),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(k,V){return this.controls[k]?this.controls[k]:(this.controls[k]=V,V.setParent(this),V._registerOnCollectionChange(this._onCollectionChange),V)}addControl(k,V,ve={}){this.registerControl(k,V),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}removeControl(k,V={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}setControl(k,V,ve={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],V&&this.registerControl(k,V),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}contains(k){return this.controls.hasOwnProperty(k)&&this.controls[k].enabled}setValue(k,V={}){this._checkAllValuesPresent(k),Object.keys(k).forEach(ve=>{this._throwIfControlMissing(ve),this.controls[ve].setValue(k[ve],{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V)}patchValue(k,V={}){null!=k&&(Object.keys(k).forEach(ve=>{this.controls[ve]&&this.controls[ve].patchValue(k[ve],{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V))}reset(k={},V={}){this._forEachChild((ve,nt)=>{ve.reset(k[nt],{onlySelf:!0,emitEvent:V.emitEvent})}),this._updatePristine(V),this._updateTouched(V),this.updateValueAndValidity(V)}getRawValue(){return this._reduceChildren({},(k,V,ve)=>(k[ve]=V instanceof Ti?V.value:V.getRawValue(),k))}_syncPendingControls(){let k=this._reduceChildren(!1,(V,ve)=>!!ve._syncPendingControls()||V);return k&&this.updateValueAndValidity({onlySelf:!0}),k}_throwIfControlMissing(k){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[k])throw new Error(`Cannot find form control with name: ${k}.`)}_forEachChild(k){Object.keys(this.controls).forEach(V=>{const ve=this.controls[V];ve&&k(ve,V)})}_setUpControls(){this._forEachChild(k=>{k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(k){for(const V of Object.keys(this.controls)){const ve=this.controls[V];if(this.contains(V)&&k(ve))return!0}return!1}_reduceValue(){return this._reduceChildren({},(k,V,ve)=>((V.enabled||this.disabled)&&(k[ve]=V.value),k))}_reduceChildren(k,V){let ve=k;return this._forEachChild((nt,Nt)=>{ve=V(ve,nt,Nt)}),ve}_allControlsDisabled(){for(const k of Object.keys(this.controls))if(this.controls[k].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(k){this._forEachChild((V,ve)=>{if(void 0===k[ve])throw new Error(`Must supply a value for form control with name: '${ve}'.`)})}}class Vi extends Ni{constructor(k,V,ve){super(on(V),Yn(ve,V)),this.controls=k,this._initObservables(),this._setUpdateStrategy(V),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(k){return this.controls[k]}push(k,V={}){this.controls.push(k),this._registerControl(k),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}insert(k,V,ve={}){this.controls.splice(k,0,V),this._registerControl(V),this.updateValueAndValidity({emitEvent:ve.emitEvent})}removeAt(k,V={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),this.controls.splice(k,1),this.updateValueAndValidity({emitEvent:V.emitEvent})}setControl(k,V,ve={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),this.controls.splice(k,1),V&&(this.controls.splice(k,0,V),this._registerControl(V)),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(k,V={}){this._checkAllValuesPresent(k),k.forEach((ve,nt)=>{this._throwIfControlMissing(nt),this.at(nt).setValue(ve,{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V)}patchValue(k,V={}){null!=k&&(k.forEach((ve,nt)=>{this.at(nt)&&this.at(nt).patchValue(ve,{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V))}reset(k=[],V={}){this._forEachChild((ve,nt)=>{ve.reset(k[nt],{onlySelf:!0,emitEvent:V.emitEvent})}),this._updatePristine(V),this._updateTouched(V),this.updateValueAndValidity(V)}getRawValue(){return this.controls.map(k=>k instanceof Ti?k.value:k.getRawValue())}clear(k={}){this.controls.length<1||(this._forEachChild(V=>V._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:k.emitEvent}))}_syncPendingControls(){let k=this.controls.reduce((V,ve)=>!!ve._syncPendingControls()||V,!1);return k&&this.updateValueAndValidity({onlySelf:!0}),k}_throwIfControlMissing(k){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(k))throw new Error(`Cannot find form control at index ${k}`)}_forEachChild(k){this.controls.forEach((V,ve)=>{k(V,ve)})}_updateValue(){this.value=this.controls.filter(k=>k.enabled||this.disabled).map(k=>k.value)}_anyControls(k){return this.controls.some(V=>V.enabled&&k(V))}_setUpControls(){this._forEachChild(k=>this._registerControl(k))}_checkAllValuesPresent(k){this._forEachChild((V,ve)=>{if(void 0===k[ve])throw new Error(`Must supply a value for form control at index: ${ve}.`)})}_allControlsDisabled(){for(const k of this.controls)if(k.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(k){k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange)}}const ci={provide:_t,useExisting:(0,n.forwardRef)(()=>Ze)},xe=(()=>Promise.resolve(null))();let Ze=(()=>{class X extends _t{constructor(V,ve){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.EventEmitter,this.form=new qn({},Oe(V),Ye(ve))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(V){xe.then(()=>{const ve=this._findContainer(V.path);V.control=ve.registerControl(V.name,V.control),Dt(V.control,V),V.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(V)})}getControl(V){return this.form.get(V.path)}removeControl(V){xe.then(()=>{const ve=this._findContainer(V.path);ve&&ve.removeControl(V.name),An(this._directives,V)})}addFormGroup(V){xe.then(()=>{const ve=this._findContainer(V.path),nt=new qn({});Se(nt,V),ve.registerControl(V.name,nt),nt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(V){xe.then(()=>{const ve=this._findContainer(V.path);ve&&ve.removeControl(V.name)})}getFormGroup(V){return this.form.get(V.path)}updateModel(V,ve){xe.then(()=>{this.form.get(V.path).setValue(ve)})}setValue(V){this.control.setValue(V)}onSubmit(V){return this.submitted=!0,Qt(this.form,this._directives),this.ngSubmit.emit(V),!1}onReset(){this.resetForm()}resetForm(V){this.form.reset(V),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(V){return V.pop(),V.length?this.form.get(V):this.form}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("submit",function(Nt){return ve.onSubmit(Nt)})("reset",function(){return ve.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([ci]),n.\u0275\u0275InheritDefinitionFeature]}),X})(),ue=(()=>{class X extends _t{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return tn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,features:[n.\u0275\u0275InheritDefinitionFeature]}),X})();const Xe={provide:_t,useExisting:(0,n.forwardRef)(()=>Wt)};let Wt=(()=>{class X extends ue{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}_checkParentType(){}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,5),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.\u0275\u0275ProvidersFeature([Xe]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Ft={provide:ot,useExisting:(0,n.forwardRef)(()=>Zt)},Ht=(()=>Promise.resolve(null))();let Zt=(()=>{class X extends ot{constructor(V,ve,nt,Nt){super(),this.control=new Ti,this._registered=!1,this.update=new n.EventEmitter,this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt),this.valueAccessor=cn(0,Nt)}ngOnChanges(V){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in V&&this._updateDisabled(V),ze(V,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?tn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_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(){Dt(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(V){Ht.then(()=>{this.control.setValue(V,{emitViewToModelChange:!1})})}_updateDisabled(V){const ve=V.isDisabled.currentValue,nt=""===ve||ve&&"false"!==ve;Ht.then(()=>{nt&&!this.control.disabled?this.control.disable():!nt&&this.control.disabled&&this.control.enable()})}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,9),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10),n.\u0275\u0275directiveInject(h,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.\u0275\u0275ProvidersFeature([Ft]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),X})(),an=(()=>{class X{}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),X})();const Tn={provide:h,useExisting:(0,n.forwardRef)(()=>zn),multi:!0};let zn=(()=>{class X extends u{writeValue(V){this.setProperty("value",null==V?"":V)}registerOnChange(V){this.onChange=ve=>{V(""==ve?null:parseFloat(ve))}}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("input",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Tn]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const $n={provide:h,useExisting:(0,n.forwardRef)(()=>kn),multi:!0};let jn=(()=>{class X{}return X.\u0275fac=function(V){return new(V||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({}),X})(),Qn=(()=>{class X{constructor(){this._accessors=[]}add(V,ve){this._accessors.push([V,ve])}remove(V){for(let ve=this._accessors.length-1;ve>=0;--ve)if(this._accessors[ve][1]===V)return void this._accessors.splice(ve,1)}select(V){this._accessors.forEach(ve=>{this._isSameGroup(ve,V)&&ve[1]!==V&&ve[1].fireUncheck(V.value)})}_isSameGroup(V,ve){return!!V[0].control&&V[0]._parent===ve._control._parent&&V[1].name===ve.name}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:jn}),X})(),kn=(()=>{class X extends u{constructor(V,ve,nt,Nt){super(V,ve),this._registry=nt,this._injector=Nt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(ot),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(V){this._state=V===this.value,this.setProperty("checked",this._state)}registerOnChange(V){this._fn=V,this.onChange=()=>{V(this.value),this._registry.select(this)}}fireUncheck(V){this.writeValue(V)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Qn),n.\u0275\u0275directiveInject(n.Injector))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(){return ve.onChange()})("blur",function(){return ve.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.\u0275\u0275ProvidersFeature([$n]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Mi={provide:h,useExisting:(0,n.forwardRef)(()=>Zi),multi:!0};let Zi=(()=>{class X extends u{writeValue(V){this.setProperty("value",parseFloat(V))}registerOnChange(V){this.onChange=ve=>{V(""==ve?null:parseFloat(ve))}}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.value)})("input",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Mi]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Xn=new n.InjectionToken("NgModelWithFormControlWarning"),pi={provide:ot,useExisting:(0,n.forwardRef)(()=>Gi)};let Gi=(()=>{class X extends ot{constructor(V,ve,nt,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(V),this._setAsyncValidators(ve),this.valueAccessor=cn(0,nt)}set isDisabled(V){}ngOnChanges(V){if(this._isControlChanged(V)){const ve=V.form.previousValue;ve&&Kt(ve,this,!1),Dt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ze(V,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_isControlChanged(V){return V.hasOwnProperty("form")}}return X._ngModelWarningSentOnce=!1,X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(Xn,8))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([pi]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),X})();const Ui={provide:_t,useExisting:(0,n.forwardRef)(()=>tr)};let tr=(()=>{class X extends _t{constructor(V,ve){super(),this.validators=V,this.asyncValidators=ve,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.EventEmitter,this._setValidators(V),this._setAsyncValidators(ve)}ngOnChanges(V){this._checkFormPresent(),V.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(V){const ve=this.form.get(V.path);return Dt(ve,V),ve.updateValueAndValidity({emitEvent:!1}),this.directives.push(V),ve}getControl(V){return this.form.get(V.path)}removeControl(V){Kt(V.control||null,V,!1),An(this.directives,V)}addFormGroup(V){this._setUpFormContainer(V)}removeFormGroup(V){this._cleanUpFormContainer(V)}getFormGroup(V){return this.form.get(V.path)}addFormArray(V){this._setUpFormContainer(V)}removeFormArray(V){this._cleanUpFormContainer(V)}getFormArray(V){return this.form.get(V.path)}updateModel(V,ve){this.form.get(V.path).setValue(ve)}onSubmit(V){return this.submitted=!0,Qt(this.form,this.directives),this.ngSubmit.emit(V),!1}onReset(){this.resetForm()}resetForm(V){this.form.reset(V),this.submitted=!1}_updateDomValue(){this.directives.forEach(V=>{const ve=V.control,nt=this.form.get(V.path);ve!==nt&&(Kt(ve||null,V),nt instanceof Ti&&(Dt(nt,V),V.control=nt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(V){const ve=this.form.get(V.path);Se(ve,V),ve.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(V){if(this.form){const ve=this.form.get(V.path);ve&&function(X,k){return Qe(X,k)}(ve,V)&&ve.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Lt(this.form,this),this._oldForm&&Qe(this._oldForm,this)}_checkFormPresent(){}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formGroup",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("submit",function(Nt){return ve.onSubmit(Nt)})("reset",function(){return ve.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Ui]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),X})();const bi={provide:_t,useExisting:(0,n.forwardRef)(()=>Rn)};let Rn=(()=>{class X extends ue{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}_checkParentType(){Fn(this._parent)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.\u0275\u0275ProvidersFeature([bi]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const qi={provide:_t,useExisting:(0,n.forwardRef)(()=>oi)};let oi=(()=>{class X extends _t{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}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 tn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Fn(this._parent)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.\u0275\u0275ProvidersFeature([qi]),n.\u0275\u0275InheritDefinitionFeature]}),X})();function Fn(X){return!(X instanceof Rn||X instanceof tr||X instanceof oi)}const $i={provide:ot,useExisting:(0,n.forwardRef)(()=>mi)};let mi=(()=>{class X extends ot{constructor(V,ve,nt,Nt,nn){super(),this._ngModelWarningConfig=nn,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt),this.valueAccessor=cn(0,Nt)}set isDisabled(V){}ngOnChanges(V){this._added||this._setUpControl(),ze(V,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}get path(){return tn(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 X._ngModelWarningSentOnce=!1,X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(Xn,8))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.\u0275\u0275ProvidersFeature([$i]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),X})();const Gn={provide:h,useExisting:(0,n.forwardRef)(()=>yn),multi:!0};function ur(X,k){return null==X?`${k}`:(k&&"object"==typeof k&&(k="Object"),`${X}: ${k}`.slice(0,50))}let yn=(()=>{class X extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(V){this._compareWith=V}writeValue(V){this.value=V;const ve=this._getOptionId(V);null==ve&&this.setProperty("selectedIndex",-1);const nt=ur(ve,V);this.setProperty("value",nt)}registerOnChange(V){this.onChange=ve=>{this.value=this._getOptionValue(ve),V(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(V){for(const ve of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ve),V))return ve;return null}_getOptionValue(V){const ve=function(X){return X.split(":")[0]}(V);return this._optionMap.has(ve)?this._optionMap.get(ve):V}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([Gn]),n.\u0275\u0275InheritDefinitionFeature]}),X})(),Sn=(()=>{class X{constructor(V,ve,nt){this._element=V,this._renderer=ve,this._select=nt,this._select&&(this.id=this._select._registerOption())}set ngValue(V){null!=this._select&&(this._select._optionMap.set(this.id,V),this._setElementValue(ur(this.id,V)),this._select.writeValue(this._select.value))}set value(V){this._setElementValue(V),this._select&&this._select.writeValue(this._select.value)}_setElementValue(V){this._renderer.setProperty(this._element.nativeElement,"value",V)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(yn,9))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),X})();const Wn={provide:h,useExisting:(0,n.forwardRef)(()=>Vr),multi:!0};function Ri(X,k){return null==X?`${k}`:("string"==typeof k&&(k=`'${k}'`),k&&"object"==typeof k&&(k="Object"),`${X}: ${k}`.slice(0,50))}let Vr=(()=>{class X extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(V){this._compareWith=V}writeValue(V){let ve;if(this.value=V,Array.isArray(V)){const nt=V.map(Nt=>this._getOptionId(Nt));ve=(Nt,nn)=>{Nt._setSelected(nt.indexOf(nn.toString())>-1)}}else ve=(nt,Nt)=>{nt._setSelected(!1)};this._optionMap.forEach(ve)}registerOnChange(V){this.onChange=ve=>{const nt=[],Nt=ve.selectedOptions;if(void 0!==Nt){const nn=Nt;for(let In=0;In{class X{constructor(V,ve,nt){this._element=V,this._renderer=ve,this._select=nt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(V){null!=this._select&&(this._value=V,this._setElementValue(Ri(this.id,V)),this._select.writeValue(this._select.value))}set value(V){this._select?(this._value=V,this._setElementValue(Ri(this.id,V)),this._select.writeValue(this._select.value)):this._setElementValue(V)}_setElementValue(V){this._renderer.setProperty(this._element.nativeElement,"value",V)}_setSelected(V){this._renderer.setProperty(this._element.nativeElement,"selected",V)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(Vr,9))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),X})();function Or(X){return"number"==typeof X?X:parseInt(X,10)}function Mr(X){return"number"==typeof X?X:parseFloat(X)}let cr=(()=>{class X{constructor(){this._validator=Y}ngOnChanges(V){if(this.inputName in V){const ve=this.normalizeInput(V[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(ve):Y,this._onChange&&this._onChange()}}validate(V){return this._validator(V)}registerOnValidatorChange(V){this._onChange=V}enabled(){return null!=this[this.inputName]}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,features:[n.\u0275\u0275NgOnChangesFeature]}),X})();const $r={provide:T,useExisting:(0,n.forwardRef)(()=>hr),multi:!0};let hr=(()=>{class X extends cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=V=>Mr(V),this.createValidator=V=>S(V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("max",ve.enabled()?ve.max:null)},inputs:{max:"max"},features:[n.\u0275\u0275ProvidersFeature([$r]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const qr={provide:T,useExisting:(0,n.forwardRef)(()=>ir),multi:!0};let ir=(()=>{class X extends cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=V=>Mr(V),this.createValidator=V=>A(V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("min",ve.enabled()?ve.min:null)},inputs:{min:"min"},features:[n.\u0275\u0275ProvidersFeature([qr]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Cr={provide:T,useExisting:(0,n.forwardRef)(()=>mr),multi:!0},Sr={provide:T,useExisting:(0,n.forwardRef)(()=>Hr),multi:!0};let mr=(()=>{class X{constructor(){this._required=!1}get required(){return this._required}set required(V){this._required=null!=V&&!1!==V&&"false"!=`${V}`,this._onChange&&this._onChange()}validate(V){return this.required?M(V):null}registerOnValidatorChange(V){this._onChange=V}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("required",ve.required?"":null)},inputs:{required:"required"},features:[n.\u0275\u0275ProvidersFeature([Cr])]}),X})(),Hr=(()=>{class X extends mr{validate(V){return this.required?I(V):null}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("required",ve.required?"":null)},features:[n.\u0275\u0275ProvidersFeature([Sr]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const jr={provide:T,useExisting:(0,n.forwardRef)(()=>Wi),multi:!0};let Wi=(()=>{class X{constructor(){this._enabled=!1}set email(V){this._enabled=""===V||!0===V||"true"===V,this._onChange&&this._onChange()}validate(V){return this._enabled?b(V):null}registerOnValidatorChange(V){this._onChange=V}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.\u0275\u0275ProvidersFeature([jr])]}),X})();const Wr={provide:T,useExisting:(0,n.forwardRef)(()=>Rr),multi:!0};let Rr=(()=>{class X extends cr{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=V=>Or(V),this.createValidator=V=>L(V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("minlength",ve.enabled()?ve.minlength:null)},inputs:{minlength:"minlength"},features:[n.\u0275\u0275ProvidersFeature([Wr]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Dr={provide:T,useExisting:(0,n.forwardRef)(()=>Lr),multi:!0};let Lr=(()=>{class X extends cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=V=>Or(V),this.createValidator=V=>F(V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("maxlength",ve.enabled()?ve.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.\u0275\u0275ProvidersFeature([Dr]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Ji={provide:T,useExisting:(0,n.forwardRef)(()=>Fr),multi:!0};let Fr=(()=>{class X{constructor(){this._validator=Y}ngOnChanges(V){"pattern"in V&&(this._createValidator(),this._onChange&&this._onChange())}validate(V){return this._validator(V)}registerOnValidatorChange(V){this._onChange=V}_createValidator(){this._validator=ne(this.pattern)}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("pattern",ve.pattern?ve.pattern:null)},inputs:{pattern:"pattern"},features:[n.\u0275\u0275ProvidersFeature([Ji]),n.\u0275\u0275NgOnChangesFeature]}),X})(),Tr=(()=>{class X{}return X.\u0275fac=function(V){return new(V||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({imports:[[jn]]}),X})(),us=(()=>{class X{}return X.\u0275fac=function(V){return new(V||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({imports:[Tr]}),X})(),si=(()=>{class X{static withConfig(V){return{ngModule:X,providers:[{provide:Xn,useValue:V.warnOnNgModelWithFormControl}]}}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({imports:[Tr]}),X})(),Er=(()=>{class X{group(V,ve=null){const nt=this._reduceControls(V);let In,Nt=null,nn=null;return null!=ve&&(function(X){return void 0!==X.asyncValidators||void 0!==X.validators||void 0!==X.updateOn}(ve)?(Nt=null!=ve.validators?ve.validators:null,nn=null!=ve.asyncValidators?ve.asyncValidators:null,In=null!=ve.updateOn?ve.updateOn:void 0):(Nt=null!=ve.validator?ve.validator:null,nn=null!=ve.asyncValidator?ve.asyncValidator:null)),new qn(nt,{asyncValidators:nn,updateOn:In,validators:Nt})}control(V,ve,nt){return new Ti(V,ve,nt)}array(V,ve,nt){const Nt=V.map(nn=>this._createControl(nn));return new Vi(Nt,ve,nt)}_reduceControls(V){const ve={};return Object.keys(V).forEach(nt=>{ve[nt]=this._createControl(V[nt])}),ve}_createControl(V){return V instanceof Ti||V instanceof qn||V instanceof Vi?V:Array.isArray(V)?this.control(V[0],V.length>1?V[1]:null,V.length>2?V[2]:null):this.control(V)}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:si}),X})();const be=new n.Version("13.1.1")},1079:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_AUTOCOMPLETE_DEFAULT_OPTIONS:()=>$,MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY:()=>J,MAT_AUTOCOMPLETE_SCROLL_STRATEGY:()=>le,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY:()=>Oe,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>Le,MAT_AUTOCOMPLETE_VALUE_ACCESSOR:()=>Ye,MatAutocomplete:()=>ae,MatAutocompleteModule:()=>ft,MatAutocompleteOrigin:()=>at,MatAutocompleteSelectedEvent:()=>Q,MatAutocompleteTrigger:()=>Ue,_MatAutocompleteBase:()=>ie,_MatAutocompleteOriginBase:()=>tt,_MatAutocompleteTriggerBase:()=>gt,getMatAutocompleteMissingPanelError:()=>Je});var n=p(5664),f=p(3191),v=p(5e3),m=p(508),o=p(2654),d=p(8929),u=p(8514),h=p(6787),r=p(1086),s=p(3753),i=p(925),c=p(9808),l=p(1314),g=p(9071),y=p(1159),E=p(7429),T=p(3075),D=p(7322),O=p(2986),w=p(7545),A=p(2198),S=p(4850),M=p(2868),I=p(943),b=p(226);const L=["panel"];function F(vt,yt){if(1&vt&&(v.\u0275\u0275elementStart(0,"div",0,1),v.\u0275\u0275projection(2),v.\u0275\u0275elementEnd()),2&vt){const ot=yt.id,_t=v.\u0275\u0275nextContext();v.\u0275\u0275property("id",_t.id)("ngClass",_t._classList),v.\u0275\u0275attribute("aria-label",_t.ariaLabel||null)("aria-labelledby",_t._getPanelAriaLabelledby(ot))}}const ne=["*"];let Y=0;class Q{constructor(yt,ot){this.source=yt,this.option=ot}}const te=(0,m.mixinDisableRipple)(class{}),$=new v.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:J});function J(){return{autoActiveFirstOption:!1}}let ie=(()=>{class vt extends te{constructor(ot,_t,At,Tt){super(),this._changeDetectorRef=ot,this._elementRef=_t,this._activeOptionChanges=o.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new v.EventEmitter,this.opened=new v.EventEmitter,this.closed=new v.EventEmitter,this.optionActivated=new v.EventEmitter,this._classList={},this.id="mat-autocomplete-"+Y++,this.inertGroups=(null==Tt?void 0:Tt.SAFARI)||!1,this._autoActiveFirstOption=!!At.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ot){this._autoActiveFirstOption=(0,f.Ig)(ot)}set classList(ot){this._classList=ot&&ot.length?(0,f.du)(ot).reduce((_t,At)=>(_t[At]=!0,_t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ot=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ot]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ot){this.panel&&(this.panel.nativeElement.scrollTop=ot)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ot){const _t=new Q(this,ot);this.optionSelected.emit(_t)}_getPanelAriaLabelledby(ot){return this.ariaLabel?null:this.ariaLabelledby?(ot?ot+" ":"")+this.ariaLabelledby:ot}_setVisibilityClasses(ot){ot[this._visibleClass]=this.showPanel,ot[this._hiddenClass]=!this.showPanel}}return vt.\u0275fac=function(ot){return new(ot||vt)(v.\u0275\u0275directiveInject(v.ChangeDetectorRef),v.\u0275\u0275directiveInject(v.ElementRef),v.\u0275\u0275directiveInject($),v.\u0275\u0275directiveInject(i.t4))},vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt,viewQuery:function(ot,_t){if(1&ot&&(v.\u0275\u0275viewQuery(v.TemplateRef,7),v.\u0275\u0275viewQuery(L,5)),2&ot){let At;v.\u0275\u0275queryRefresh(At=v.\u0275\u0275loadQuery())&&(_t.template=At.first),v.\u0275\u0275queryRefresh(At=v.\u0275\u0275loadQuery())&&(_t.panel=At.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[v.\u0275\u0275InheritDefinitionFeature]}),vt})(),ae=(()=>{class vt extends ie{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=v.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275cmp=v.\u0275\u0275defineComponent({type:vt,selectors:[["mat-autocomplete"]],contentQueries:function(ot,_t,At){if(1&ot&&(v.\u0275\u0275contentQuery(At,m.MAT_OPTGROUP,5),v.\u0275\u0275contentQuery(At,m.MatOption,5)),2&ot){let Tt;v.\u0275\u0275queryRefresh(Tt=v.\u0275\u0275loadQuery())&&(_t.optionGroups=Tt),v.\u0275\u0275queryRefresh(Tt=v.\u0275\u0275loadQuery())&&(_t.options=Tt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[v.\u0275\u0275ProvidersFeature([{provide:m.MAT_OPTION_PARENT_COMPONENT,useExisting:vt}]),v.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ne,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ot,_t){1&ot&&(v.\u0275\u0275projectionDef(),v.\u0275\u0275template(0,F,3,4,"ng-template"))},directives:[c.NgClass],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),vt})();const le=new v.InjectionToken("mat-autocomplete-scroll-strategy");function Oe(vt){return()=>vt.scrollStrategies.reposition()}const Le={provide:le,deps:[l.aV],useFactory:Oe},Ye={provide:T.NG_VALUE_ACCESSOR,useExisting:(0,v.forwardRef)(()=>Ue),multi:!0};function Je(){return Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}let gt=(()=>{class vt{constructor(ot,_t,At,Tt,Bt,Et,Ee,fe,H,x,U){this._element=ot,this._overlay=_t,this._viewContainerRef=At,this._zone=Tt,this._changeDetectorRef=Bt,this._dir=Ee,this._formField=fe,this._document=H,this._viewportRuler=x,this._defaults=U,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=o.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new d.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,u.P)(()=>this.autocomplete&&this.autocomplete.options?(0,h.T)(...this.autocomplete.options.map(Z=>Z.onSelectionChange)):this._zone.onStable.pipe((0,O.q)(1),(0,w.w)(()=>this.optionSelections))),this._scrollStrategy=Et}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ot){this._autocompleteDisabled=(0,f.Ig)(ot)}ngAfterViewInit(){const ot=this._getWindow();void 0!==ot&&this._zone.runOutsideAngular(()=>ot.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ot){ot.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ot=this._getWindow();void 0!==ot&&ot.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,A.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,A.h)(()=>this._overlayAttached)):(0,r.of)()).pipe((0,S.U)(ot=>ot instanceof m.MatOptionSelectionChange?ot:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,s.R)(this._document,"click"),(0,s.R)(this._document,"auxclick"),(0,s.R)(this._document,"touchend")).pipe((0,A.h)(ot=>{const _t=(0,i.sA)(ot),At=this._formField?this._formField._elementRef.nativeElement:null,Tt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&_t!==this._element.nativeElement&&(!At||!At.contains(_t))&&(!Tt||!Tt.contains(_t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(_t)}))}writeValue(ot){Promise.resolve(null).then(()=>this._setTriggerValue(ot))}registerOnChange(ot){this._onChange=ot}registerOnTouched(ot){this._onTouched=ot}setDisabledState(ot){this._element.nativeElement.disabled=ot}_handleKeydown(ot){const _t=ot.keyCode;if(_t===y.hY&&!(0,y.Vb)(ot)&&ot.preventDefault(),this.activeOption&&_t===y.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ot.preventDefault();else if(this.autocomplete){const At=this.autocomplete._keyManager.activeItem,Tt=_t===y.LH||_t===y.JH;this.panelOpen||_t===y.Mf?this.autocomplete._keyManager.onKeydown(ot):Tt&&this._canOpen()&&this.openPanel(),(Tt||this.autocomplete._keyManager.activeItem!==At)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(ot){let _t=ot.target,At=_t.value;"number"===_t.type&&(At=""==At?null:parseFloat(At)),this._previousValue!==At&&(this._previousValue=At,this._onChange(At),this._canOpen()&&this._document.activeElement===ot.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(ot=!1){this._formField&&"auto"===this._formField.floatLabel&&(ot?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ot=this._zone.onStable.pipe((0,O.q)(1)),_t=this.autocomplete.options.changes.pipe((0,M.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,I.g)(0));return(0,h.T)(ot,_t).pipe((0,w.w)(()=>{const At=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),At!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,O.q)(1)).subscribe(At=>this._setValueAndClose(At))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(ot){const _t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ot):ot,At=null!=_t?_t:"";this._formField?this._formField._control.value=At:this._element.nativeElement.value=At,this._previousValue=At}_setValueAndClose(ot){ot&&ot.source&&(this._clearPreviousSelectedOption(ot.source),this._setTriggerValue(ot.source.value),this._onChange(ot.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(ot.source)),this.closePanel()}_clearPreviousSelectedOption(ot){this.autocomplete.options.forEach(_t=>{_t!==ot&&_t.selected&&_t.deselect()})}_attachOverlay(){var ot;let _t=this._overlayRef;_t?(this._positionStrategy.setOrigin(this._getConnectedElement()),_t.updateSize({width:this._getPanelWidth()})):(this._portal=new E.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ot=this._formField)||void 0===ot?void 0:ot.getLabelId()}),_t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=_t,_t.keydownEvents().subscribe(Tt=>{(Tt.keyCode===y.hY&&!(0,y.Vb)(Tt)||Tt.keyCode===y.LH&&(0,y.Vb)(Tt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Tt.stopPropagation(),Tt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&_t&&_t.updateSize({width:this._getPanelWidth()})})),_t&&!_t.hasAttached()&&(_t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const At=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&At!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var ot;return new l.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(ot=this._defaults)||void 0===ot?void 0:ot.overlayPanelClass})}_getOverlayPosition(){const ot=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ot),this._positionStrategy=ot,ot}_setStrategyPositions(ot){const _t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],At=this._aboveClass,Tt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:At},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:At}];let Bt;Bt="above"===this.position?Tt:"below"===this.position?_t:[..._t,...Tt],ot.withPositions(Bt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const ot=this.autocomplete;ot.autoActiveFirstOption?ot._keyManager.setFirstItemActive():ot._keyManager.setActiveItem(-1)}_canOpen(){const ot=this._element.nativeElement;return!ot.readOnly&&!ot.disabled&&!this._autocompleteDisabled}_getWindow(){var ot;return(null===(ot=this._document)||void 0===ot?void 0:ot.defaultView)||window}_scrollToOption(ot){const _t=this.autocomplete,At=(0,m._countGroupLabelsBeforeOption)(ot,_t.options,_t.optionGroups);if(0===ot&&1===At)_t._setScrollTop(0);else if(_t.panel){const Tt=_t.options.toArray()[ot];if(Tt){const Bt=Tt._getHostElement(),Et=(0,m._getOptionScrollPosition)(Bt.offsetTop,Bt.offsetHeight,_t._getScrollTop(),_t.panel.nativeElement.offsetHeight);_t._setScrollTop(Et)}}}}return vt.\u0275fac=function(ot){return new(ot||vt)(v.\u0275\u0275directiveInject(v.ElementRef),v.\u0275\u0275directiveInject(l.aV),v.\u0275\u0275directiveInject(v.ViewContainerRef),v.\u0275\u0275directiveInject(v.NgZone),v.\u0275\u0275directiveInject(v.ChangeDetectorRef),v.\u0275\u0275directiveInject(le),v.\u0275\u0275directiveInject(b.Is,8),v.\u0275\u0275directiveInject(D.MAT_FORM_FIELD,9),v.\u0275\u0275directiveInject(c.DOCUMENT,8),v.\u0275\u0275directiveInject(g.rL),v.\u0275\u0275directiveInject($,8))},vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[v.\u0275\u0275NgOnChangesFeature]}),vt})(),Ue=(()=>{class vt extends gt{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=v.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ot,_t){1&ot&&v.\u0275\u0275listener("focusin",function(){return _t._handleFocus()})("blur",function(){return _t._onTouched()})("input",function(Tt){return _t._handleInput(Tt)})("keydown",function(Tt){return _t._handleKeydown(Tt)}),2&ot&&v.\u0275\u0275attribute("autocomplete",_t.autocompleteAttribute)("role",_t.autocompleteDisabled?null:"combobox")("aria-autocomplete",_t.autocompleteDisabled?null:"list")("aria-activedescendant",_t.panelOpen&&_t.activeOption?_t.activeOption.id:null)("aria-expanded",_t.autocompleteDisabled?null:_t.panelOpen.toString())("aria-owns",_t.autocompleteDisabled||!_t.panelOpen||null==_t.autocomplete?null:_t.autocomplete.id)("aria-haspopup",!_t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[v.\u0275\u0275ProvidersFeature([Ye]),v.\u0275\u0275InheritDefinitionFeature]}),vt})(),tt=(()=>{class vt{constructor(ot){this.elementRef=ot}}return vt.\u0275fac=function(ot){return new(ot||vt)(v.\u0275\u0275directiveInject(v.ElementRef))},vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt}),vt})(),at=(()=>{class vt extends tt{}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=v.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[v.\u0275\u0275InheritDefinitionFeature]}),vt})(),ft=(()=>{class vt{}return vt.\u0275fac=function(ot){return new(ot||vt)},vt.\u0275mod=v.\u0275\u0275defineNgModule({type:vt}),vt.\u0275inj=v.\u0275\u0275defineInjector({providers:[Le],imports:[[l.U8,m.MatOptionModule,m.MatCommonModule,c.CommonModule],g.ZD,m.MatOptionModule,m.MatCommonModule]}),vt})()},7423:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatAnchor:()=>c,MatButton:()=>i,MatButtonModule:()=>l});var n=p(5e3),f=p(508),v=p(6360),m=p(5664);const o=["mat-button",""],d=["*"],r=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],s=(0,f.mixinColor)((0,f.mixinDisabled)((0,f.mixinDisableRipple)(class{constructor(g){this._elementRef=g}})));let i=(()=>{class g extends s{constructor(E,T,D){super(E),this._focusMonitor=T,this._animationMode=D,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const O of r)this._hasHostAttributes(O)&&this._getHostElement().classList.add(O);E.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(E,T){E?this._focusMonitor.focusVia(this._getHostElement(),E,T):this._getHostElement().focus(T)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...E){return E.some(T=>this._getHostElement().hasAttribute(T))}}return g.\u0275fac=function(E){return new(E||g)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(m.tE),n.\u0275\u0275directiveInject(v.ANIMATION_MODULE_TYPE,8))},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(E,T){if(1&E&&n.\u0275\u0275viewQuery(f.MatRipple,5),2&E){let D;n.\u0275\u0275queryRefresh(D=n.\u0275\u0275loadQuery())&&(T.ripple=D.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(E,T){2&E&&(n.\u0275\u0275attribute("disabled",T.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===T._animationMode)("mat-button-disabled",T.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:o,ngContentSelectors:d,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(E,T){1&E&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1),n.\u0275\u0275element(3,"span",2)),2&E&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",T.isRoundButton||T.isIconButton),n.\u0275\u0275property("matRippleDisabled",T._isRippleDisabled())("matRippleCentered",T.isIconButton)("matRippleTrigger",T._getHostElement()))},directives:[f.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),g})(),c=(()=>{class g extends i{constructor(E,T,D){super(T,E,D)}_haltDisabledEvents(E){this.disabled&&(E.preventDefault(),E.stopImmediatePropagation())}}return g.\u0275fac=function(E){return new(E||g)(n.\u0275\u0275directiveInject(m.tE),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(v.ANIMATION_MODULE_TYPE,8))},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(E,T){1&E&&n.\u0275\u0275listener("click",function(O){return T._haltDisabledEvents(O)}),2&E&&(n.\u0275\u0275attribute("tabindex",T.disabled?-1:T.tabIndex||0)("disabled",T.disabled||null)("aria-disabled",T.disabled.toString()),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===T._animationMode)("mat-button-disabled",T.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:o,ngContentSelectors:d,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(E,T){1&E&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1),n.\u0275\u0275element(3,"span",2)),2&E&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",T.isRoundButton||T.isIconButton),n.\u0275\u0275property("matRippleDisabled",T._isRippleDisabled())("matRippleCentered",T.isIconButton)("matRippleTrigger",T._getHostElement()))},directives:[f.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),g})(),l=(()=>{class g{}return g.\u0275fac=function(E){return new(E||g)},g.\u0275mod=n.\u0275\u0275defineNgModule({type:g}),g.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatRippleModule,f.MatCommonModule],f.MatCommonModule]}),g})()},9224:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatCard:()=>A,MatCardActions:()=>l,MatCardAvatar:()=>w,MatCardContent:()=>s,MatCardFooter:()=>g,MatCardHeader:()=>S,MatCardImage:()=>y,MatCardLgImage:()=>D,MatCardMdImage:()=>T,MatCardModule:()=>I,MatCardSmImage:()=>E,MatCardSubtitle:()=>c,MatCardTitle:()=>i,MatCardTitleGroup:()=>M,MatCardXlImage:()=>O});var n=p(5e3),f=p(6360),v=p(508);const m=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],d=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],h=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],r=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let s=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),b})(),i=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),b})(),c=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),b})(),l=(()=>{class b{constructor(){this.align="start"}}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(F,ne){2&F&&n.\u0275\u0275classProp("mat-card-actions-align-end","end"===ne.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),b})(),g=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),b})(),y=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),b})(),E=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),b})(),T=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),b})(),D=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),b})(),O=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),b})(),w=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),b})(),A=(()=>{class b{constructor(F){this._animationMode=F}}return b.\u0275fac=function(F){return new(F||b)(n.\u0275\u0275directiveInject(f.ANIMATION_MODULE_TYPE,8))},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(F,ne){2&F&&n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ne._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(F,ne){1&F&&(n.\u0275\u0275projectionDef(m),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),b})(),S=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(F,ne){1&F&&(n.\u0275\u0275projectionDef(d),n.\u0275\u0275projection(0),n.\u0275\u0275elementStart(1,"div",0),n.\u0275\u0275projection(2,1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}),b})(),M=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:r,decls:4,vars:0,template:function(F,ne){1&F&&(n.\u0275\u0275projectionDef(h),n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(2,1),n.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}),b})(),I=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275mod=n.\u0275\u0275defineNgModule({type:b}),b.\u0275inj=n.\u0275\u0275defineInjector({imports:[[v.MatCommonModule],v.MatCommonModule]}),b})()},7446:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR:()=>y,MAT_CHECKBOX_DEFAULT_OPTIONS:()=>i,MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY:()=>c,MAT_CHECKBOX_REQUIRED_VALIDATOR:()=>O,MatCheckbox:()=>D,MatCheckboxChange:()=>E,MatCheckboxModule:()=>S,MatCheckboxRequiredValidator:()=>w,_MatCheckboxRequiredValidatorModule:()=>A});var n=p(3191),f=p(5e3),v=p(3075),m=p(508),o=p(6360),d=p(5664),u=p(7144);const h=["input"],r=function(M){return{enterDuration:M}},s=["*"],i=new f.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:c});function c(){return{color:"accent",clickAction:"check-indeterminate"}}let l=0;const g=c(),y={provide:v.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>D),multi:!0};class E{}const T=(0,m.mixinTabIndex)((0,m.mixinColor)((0,m.mixinDisableRipple)((0,m.mixinDisabled)(class{constructor(M){this._elementRef=M}}))));let D=(()=>{class M extends T{constructor(b,L,F,ne,Y,Q,te){super(b),this._changeDetectorRef=L,this._focusMonitor=F,this._ngZone=ne,this._animationMode=Q,this._options=te,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++l,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new f.EventEmitter,this.indeterminateChange=new f.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||g,this.color=this.defaultColor=this._options.color||g.color,this.tabIndex=parseInt(Y)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(b){this._required=(0,n.Ig)(b)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(b=>{b||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(b){b!=this.checked&&(this._checked=b,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(b){const L=(0,n.Ig)(b);L!==this.disabled&&(this._disabled=L,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(b){const L=b!=this._indeterminate;this._indeterminate=(0,n.Ig)(b),L&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(b){this.checked=!!b}registerOnChange(b){this._controlValueAccessorChangeFn=b}registerOnTouched(b){this._onTouched=b}setDisabledState(b){this.disabled=b}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(b){let L=this._currentCheckState,F=this._elementRef.nativeElement;if(L!==b&&(this._currentAnimationClass.length>0&&F.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(L,b),this._currentCheckState=b,this._currentAnimationClass.length>0)){F.classList.add(this._currentAnimationClass);const ne=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{F.classList.remove(ne)},1e3)})}}_emitChangeEvent(){const b=new E;b.source=this,b.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(b),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(b){var L;const F=null===(L=this._options)||void 0===L?void 0:L.clickAction;b.stopPropagation(),this.disabled||"noop"===F?!this.disabled&&"noop"===F&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==F&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(b,L){b?this._focusMonitor.focusVia(this._inputElement,b,L):this._inputElement.nativeElement.focus(L)}_onInteractionEvent(b){b.stopPropagation()}_getAnimationClassForCheckStateTransition(b,L){if("NoopAnimations"===this._animationMode)return"";let F="";switch(b){case 0:if(1===L)F="unchecked-checked";else{if(3!=L)return"";F="unchecked-indeterminate"}break;case 2:F=1===L?"unchecked-checked":"unchecked-indeterminate";break;case 1:F=2===L?"checked-unchecked":"checked-indeterminate";break;case 3:F=1===L?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${F}`}_syncIndeterminate(b){const L=this._inputElement;L&&(L.nativeElement.indeterminate=b)}}return M.\u0275fac=function(b){return new(b||M)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(d.tE),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(o.ANIMATION_MODULE_TYPE,8),f.\u0275\u0275directiveInject(i,8))},M.\u0275cmp=f.\u0275\u0275defineComponent({type:M,selectors:[["mat-checkbox"]],viewQuery:function(b,L){if(1&b&&(f.\u0275\u0275viewQuery(h,5),f.\u0275\u0275viewQuery(m.MatRipple,5)),2&b){let F;f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._inputElement=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L.ripple=F.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(b,L){2&b&&(f.\u0275\u0275hostProperty("id",L.id),f.\u0275\u0275attribute("tabindex",null),f.\u0275\u0275classProp("mat-checkbox-indeterminate",L.indeterminate)("mat-checkbox-checked",L.checked)("mat-checkbox-disabled",L.disabled)("mat-checkbox-label-before","before"==L.labelPosition)("_mat-animation-noopable","NoopAnimations"===L._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[f.\u0275\u0275ProvidersFeature([y]),f.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:s,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(b,L){if(1&b&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"label",0,1),f.\u0275\u0275elementStart(2,"span",2),f.\u0275\u0275elementStart(3,"input",3,4),f.\u0275\u0275listener("change",function(ne){return L._onInteractionEvent(ne)})("click",function(ne){return L._onInputClick(ne)}),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(5,"span",5),f.\u0275\u0275element(6,"span",6),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(7,"span",7),f.\u0275\u0275elementStart(8,"span",8),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(9,"svg",9),f.\u0275\u0275element(10,"path",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275element(11,"span",11),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(12,"span",12,13),f.\u0275\u0275listener("cdkObserveContent",function(){return L._onLabelTextChange()}),f.\u0275\u0275elementStart(14,"span",14),f.\u0275\u0275text(15,"\xa0"),f.\u0275\u0275elementEnd(),f.\u0275\u0275projection(16),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&b){const F=f.\u0275\u0275reference(1),ne=f.\u0275\u0275reference(13);f.\u0275\u0275attribute("for",L.inputId),f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-checkbox-inner-container-no-side-margin",!ne.textContent||!ne.textContent.trim()),f.\u0275\u0275advance(1),f.\u0275\u0275property("id",L.inputId)("required",L.required)("checked",L.checked)("disabled",L.disabled)("tabIndex",L.tabIndex),f.\u0275\u0275attribute("value",L.value)("name",L.name)("aria-label",L.ariaLabel||null)("aria-labelledby",L.ariaLabelledby)("aria-checked",L._getAriaChecked())("aria-describedby",L.ariaDescribedby),f.\u0275\u0275advance(2),f.\u0275\u0275property("matRippleTrigger",F)("matRippleDisabled",L._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",f.\u0275\u0275pureFunction1(19,r,"NoopAnimations"===L._animationMode?0:150))}},directives:[m.MatRipple,u.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),M})();const O={provide:v.NG_VALIDATORS,useExisting:(0,f.forwardRef)(()=>w),multi:!0};let w=(()=>{class M extends v.CheckboxRequiredValidator{}return M.\u0275fac=function(){let I;return function(L){return(I||(I=f.\u0275\u0275getInheritedFactory(M)))(L||M)}}(),M.\u0275dir=f.\u0275\u0275defineDirective({type:M,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[f.\u0275\u0275ProvidersFeature([O]),f.\u0275\u0275InheritDefinitionFeature]}),M})(),A=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=f.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=f.\u0275\u0275defineInjector({}),M})(),S=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=f.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=f.\u0275\u0275defineInjector({imports:[[m.MatRippleModule,m.MatCommonModule,u.Q8,A],m.MatCommonModule,A]}),M})()},508:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{AnimationCurves:()=>O,AnimationDurations:()=>w,DateAdapter:()=>le,ErrorStateMatcher:()=>ft,MATERIAL_SANITY_CHECKS:()=>M,MAT_DATE_FORMATS:()=>Oe,MAT_DATE_LOCALE:()=>ie,MAT_DATE_LOCALE_FACTORY:()=>ae,MAT_NATIVE_DATE_FORMATS:()=>gt,MAT_OPTGROUP:()=>Dt,MAT_OPTION_PARENT_COMPONENT:()=>ut,MAT_RIPPLE_GLOBAL_OPTIONS:()=>Z,MatCommonModule:()=>I,MatLine:()=>vt,MatLineModule:()=>_t,MatNativeDateModule:()=>tt,MatOptgroup:()=>Kt,MatOption:()=>Qe,MatOptionModule:()=>qt,MatOptionSelectionChange:()=>xt,MatPseudoCheckbox:()=>$e,MatPseudoCheckboxModule:()=>st,MatRipple:()=>_e,MatRippleModule:()=>Be,NativeDateAdapter:()=>Je,NativeDateModule:()=>Ue,RippleRef:()=>At,RippleRenderer:()=>H,ShowOnDirtyErrorStateMatcher:()=>at,VERSION:()=>D,_MatOptgroupBase:()=>tn,_MatOptionBase:()=>Lt,_countGroupLabelsBeforeOption:()=>mt,_getOptionScrollPosition:()=>Vt,defaultRippleAnimationConfig:()=>Tt,mixinColor:()=>Y,mixinDisableRipple:()=>Q,mixinDisabled:()=>ne,mixinErrorState:()=>$,mixinInitialized:()=>J,mixinTabIndex:()=>te,setLines:()=>yt});var n=p(5e3),f=p(226),m=p(9808),o=p(925),d=p(5664),u=p(3191),h=p(8929),r=p(6498),s=p(1059),i=p(6360),c=p(1159);const l=["*",[["mat-option"],["ng-container"]]],g=["*","mat-option, ng-container"];function y(Ne,Se){if(1&Ne&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&Ne){const ee=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",ee.selected?"checked":"unchecked")("disabled",ee.disabled)}}function E(Ne,Se){if(1&Ne&&(n.\u0275\u0275elementStart(0,"span",5),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ne){const ee=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",ee.group.label,")")}}const T=["*"],D=new n.Version("13.1.1");let O=(()=>{class Ne{}return Ne.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ne.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ne.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ne.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ne})(),w=(()=>{class Ne{}return Ne.COMPLEX="375ms",Ne.ENTERING="225ms",Ne.EXITING="195ms",Ne})();const M=new n.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let I=(()=>{class Ne{constructor(ee,re,Me){this._sanityChecks=re,this._document=Me,this._hasDoneGlobalChecks=!1,ee._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ee){return!(0,o.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ee])}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275inject(d.qm),n.\u0275\u0275inject(M,8),n.\u0275\u0275inject(m.DOCUMENT))},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.vT],f.vT]}),Ne})();function ne(Ne){return class extends Ne{constructor(...Se){super(...Se),this._disabled=!1}get disabled(){return this._disabled}set disabled(Se){this._disabled=(0,u.Ig)(Se)}}}function Y(Ne,Se){return class extends Ne{constructor(...ee){super(...ee),this.defaultColor=Se,this.color=Se}get color(){return this._color}set color(ee){const re=ee||this.defaultColor;re!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),re&&this._elementRef.nativeElement.classList.add(`mat-${re}`),this._color=re)}}}function Q(Ne){return class extends Ne{constructor(...Se){super(...Se),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Se){this._disableRipple=(0,u.Ig)(Se)}}}function te(Ne,Se=0){return class extends Ne{constructor(...ee){super(...ee),this._tabIndex=Se,this.defaultTabIndex=Se}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ee){this._tabIndex=null!=ee?(0,u.su)(ee):this.defaultTabIndex}}}function $(Ne){return class extends Ne{constructor(...Se){super(...Se),this.stateChanges=new h.xQ,this.errorState=!1}updateErrorState(){const Se=this.errorState,ze=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ze!==Se&&(this.errorState=ze,this.stateChanges.next())}}}function J(Ne){return class extends Ne{constructor(...Se){super(...Se),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new r.y(ee=>{this._isInitialized?this._notifySubscriber(ee):this._pendingSubscribers.push(ee)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Se){Se.next(),Se.complete()}}}const ie=new n.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:ae});function ae(){return(0,n.inject)(n.LOCALE_ID)}class le{constructor(){this._localeChanges=new h.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Se){return this.isDateInstance(Se)&&this.isValid(Se)?Se:null}deserialize(Se){return null==Se||this.isDateInstance(Se)&&this.isValid(Se)?Se:this.invalid()}setLocale(Se){this.locale=Se,this._localeChanges.next()}compareDate(Se,ee){return this.getYear(Se)-this.getYear(ee)||this.getMonth(Se)-this.getMonth(ee)||this.getDate(Se)-this.getDate(ee)}sameDate(Se,ee){if(Se&&ee){let re=this.isValid(Se),Me=this.isValid(ee);return re&&Me?!this.compareDate(Se,ee):re==Me}return Se==ee}clampDate(Se,ee,re){return ee&&this.compareDate(Se,ee)<0?ee:re&&this.compareDate(Se,re)>0?re:Se}}const Oe=new n.InjectionToken("mat-date-formats"),Le=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ye(Ne,Se){const ee=Array(Ne);for(let re=0;re{class Ne extends le{constructor(ee,re){super(),this.useUtcForDisplay=!1,super.setLocale(ee)}getYear(ee){return ee.getFullYear()}getMonth(ee){return ee.getMonth()}getDate(ee){return ee.getDate()}getDayOfWeek(ee){return ee.getDay()}getMonthNames(ee){const re=new Intl.DateTimeFormat(this.locale,{month:ee,timeZone:"utc"});return Ye(12,Me=>this._format(re,new Date(2017,Me,1)))}getDateNames(){const ee=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ye(31,re=>this._format(ee,new Date(2017,0,re+1)))}getDayOfWeekNames(ee){const re=new Intl.DateTimeFormat(this.locale,{weekday:ee,timeZone:"utc"});return Ye(7,Me=>this._format(re,new Date(2017,0,Me+1)))}getYearName(ee){const re=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(re,ee)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ee){return this.getDate(this._createDateWithOverflow(this.getYear(ee),this.getMonth(ee)+1,0))}clone(ee){return new Date(ee.getTime())}createDate(ee,re,Me){let ze=this._createDateWithOverflow(ee,re,Me);return ze.getMonth(),ze}today(){return new Date}parse(ee){return"number"==typeof ee?new Date(ee):ee?new Date(Date.parse(ee)):null}format(ee,re){if(!this.isValid(ee))throw Error("NativeDateAdapter: Cannot format invalid date.");const Me=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},re),{timeZone:"utc"}));return this._format(Me,ee)}addCalendarYears(ee,re){return this.addCalendarMonths(ee,12*re)}addCalendarMonths(ee,re){let Me=this._createDateWithOverflow(this.getYear(ee),this.getMonth(ee)+re,this.getDate(ee));return this.getMonth(Me)!=((this.getMonth(ee)+re)%12+12)%12&&(Me=this._createDateWithOverflow(this.getYear(Me),this.getMonth(Me),0)),Me}addCalendarDays(ee,re){return this._createDateWithOverflow(this.getYear(ee),this.getMonth(ee),this.getDate(ee)+re)}toIso8601(ee){return[ee.getUTCFullYear(),this._2digit(ee.getUTCMonth()+1),this._2digit(ee.getUTCDate())].join("-")}deserialize(ee){if("string"==typeof ee){if(!ee)return null;if(Le.test(ee)){let re=new Date(ee);if(this.isValid(re))return re}}return super.deserialize(ee)}isDateInstance(ee){return ee instanceof Date}isValid(ee){return!isNaN(ee.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ee,re,Me){const ze=new Date;return ze.setFullYear(ee,re,Me),ze.setHours(0,0,0,0),ze}_2digit(ee){return("00"+ee).slice(-2)}_format(ee,re){const Me=new Date;return Me.setUTCFullYear(re.getFullYear(),re.getMonth(),re.getDate()),Me.setUTCHours(re.getHours(),re.getMinutes(),re.getSeconds(),re.getMilliseconds()),ee.format(Me)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275inject(ie,8),n.\u0275\u0275inject(o.t4))},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac}),Ne})();const gt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ue=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:le,useClass:Je}],imports:[[o.ud]]}),Ne})(),tt=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:Oe,useValue:gt}],imports:[[Ue]]}),Ne})(),at=(()=>{class Ne{isErrorState(ee,re){return!!(ee&&ee.invalid&&(ee.dirty||re&&re.submitted))}}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac}),Ne})(),ft=(()=>{class Ne{isErrorState(ee,re){return!!(ee&&ee.invalid&&(ee.touched||re&&re.submitted))}}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),vt=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ne})();function yt(Ne,Se,ee="mat"){Ne.changes.pipe((0,s.O)(Ne)).subscribe(({length:re})=>{ot(Se,`${ee}-2-line`,!1),ot(Se,`${ee}-3-line`,!1),ot(Se,`${ee}-multi-line`,!1),2===re||3===re?ot(Se,`${ee}-${re}-line`,!0):re>3&&ot(Se,`${ee}-multi-line`,!0)})}function ot(Ne,Se,ee){Ne.nativeElement.classList.toggle(Se,ee)}let _t=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[I],I]}),Ne})();class At{constructor(Se,ee,re){this._renderer=Se,this.element=ee,this.config=re,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tt={enterDuration:225,exitDuration:150},Et=(0,o.i$)({passive:!0}),Ee=["mousedown","touchstart"],fe=["mouseup","mouseleave","touchend","touchcancel"];class H{constructor(Se,ee,re,Me){this._target=Se,this._ngZone=ee,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Me.isBrowser&&(this._containerElement=(0,u.fI)(re))}fadeInRipple(Se,ee,re={}){const Me=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ze=Object.assign(Object.assign({},Tt),re.animation);re.centered&&(Se=Me.left+Me.width/2,ee=Me.top+Me.height/2);const It=re.radius||function(Ne,Se,ee){const re=Math.max(Math.abs(Ne-ee.left),Math.abs(Ne-ee.right)),Me=Math.max(Math.abs(Se-ee.top),Math.abs(Se-ee.bottom));return Math.sqrt(re*re+Me*Me)}(Se,ee,Me),Qt=Se-Me.left,cn=ee-Me.top,An=ze.enterDuration,lt=document.createElement("div");lt.classList.add("mat-ripple-element"),lt.style.left=Qt-It+"px",lt.style.top=cn-It+"px",lt.style.height=2*It+"px",lt.style.width=2*It+"px",null!=re.color&&(lt.style.backgroundColor=re.color),lt.style.transitionDuration=`${An}ms`,this._containerElement.appendChild(lt),window.getComputedStyle(lt).getPropertyValue("opacity"),lt.style.transform="scale(1)";const ct=new At(this,lt,re);return ct.state=0,this._activeRipples.add(ct),re.persistent||(this._mostRecentTransientRipple=ct),this._runTimeoutOutsideZone(()=>{const He=ct===this._mostRecentTransientRipple;ct.state=1,!re.persistent&&(!He||!this._isPointerDown)&&ct.fadeOut()},An),ct}fadeOutRipple(Se){const ee=this._activeRipples.delete(Se);if(Se===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!ee)return;const re=Se.element,Me=Object.assign(Object.assign({},Tt),Se.config.animation);re.style.transitionDuration=`${Me.exitDuration}ms`,re.style.opacity="0",Se.state=2,this._runTimeoutOutsideZone(()=>{Se.state=3,re.remove()},Me.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Se=>Se.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Se=>{Se.config.persistent||Se.fadeOut()})}setupTriggerEvents(Se){const ee=(0,u.fI)(Se);!ee||ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ee,this._registerEvents(Ee))}handleEvent(Se){"mousedown"===Se.type?this._onMousedown(Se):"touchstart"===Se.type?this._onTouchStart(Se):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(fe),this._pointerUpEventsRegistered=!0)}_onMousedown(Se){const ee=(0,d.X6)(Se),re=this._lastTouchStartEvent&&Date.now(){!Se.config.persistent&&(1===Se.state||Se.config.terminateOnPointerUp&&0===Se.state)&&Se.fadeOut()}))}_runTimeoutOutsideZone(Se,ee=0){this._ngZone.runOutsideAngular(()=>setTimeout(Se,ee))}_registerEvents(Se){this._ngZone.runOutsideAngular(()=>{Se.forEach(ee=>{this._triggerElement.addEventListener(ee,this,Et)})})}_removeTriggerEvents(){this._triggerElement&&(Ee.forEach(Se=>{this._triggerElement.removeEventListener(Se,this,Et)}),this._pointerUpEventsRegistered&&fe.forEach(Se=>{this._triggerElement.removeEventListener(Se,this,Et)}))}}const Z=new n.InjectionToken("mat-ripple-global-options");let _e=(()=>{class Ne{constructor(ee,re,Me,ze,It){this._elementRef=ee,this._animationMode=It,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ze||{},this._rippleRenderer=new H(this,re,ee,Me)}get disabled(){return this._disabled}set disabled(ee){ee&&this.fadeOutAllNonPersistent(),this._disabled=ee,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ee){this._trigger=ee,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ee,re=0,Me){return"number"==typeof ee?this._rippleRenderer.fadeInRipple(ee,re,Object.assign(Object.assign({},this.rippleConfig),Me)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),ee))}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(o.t4),n.\u0275\u0275directiveInject(Z,8),n.\u0275\u0275directiveInject(i.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ee,re){2&ee&&n.\u0275\u0275classProp("mat-ripple-unbounded",re.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ne})(),Be=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[I,o.ud],I]}),Ne})(),$e=(()=>{class Ne{constructor(ee){this._animationMode=ee,this.state="unchecked",this.disabled=!1}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275directiveInject(i.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ee,re){2&ee&&n.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===re.state)("mat-pseudo-checkbox-checked","checked"===re.state)("mat-pseudo-checkbox-disabled",re.disabled)("_mat-animation-noopable","NoopAnimations"===re._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ee,re){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ne})(),st=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[I]]}),Ne})();const ut=new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),St=ne(class{});let Xt=0,tn=(()=>{class Ne extends St{constructor(ee){var re;super(),this._labelId="mat-optgroup-label-"+Xt++,this._inert=null!==(re=null==ee?void 0:ee.inertGroups)&&void 0!==re&&re}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275directiveInject(ut,8))},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,inputs:{label:"label"},features:[n.\u0275\u0275InheritDefinitionFeature]}),Ne})();const Dt=new n.InjectionToken("MatOptgroup");let Kt=(()=>{class Ne extends tn{}return Ne.\u0275fac=function(){let Se;return function(re){return(Se||(Se=n.\u0275\u0275getInheritedFactory(Ne)))(re||Ne)}}(),Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(ee,re){2&ee&&(n.\u0275\u0275attribute("role",re._inert?null:"group")("aria-disabled",re._inert?null:re.disabled.toString())("aria-labelledby",re._inert?null:re._labelId),n.\u0275\u0275classProp("mat-optgroup-disabled",re.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[n.\u0275\u0275ProvidersFeature([{provide:Dt,useExisting:Ne}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:g,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(ee,re){1&ee&&(n.\u0275\u0275projectionDef(l),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275text(1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,1)),2&ee&&(n.\u0275\u0275property("id",re._labelId),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("",re.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ne})(),et=0;class xt{constructor(Se,ee=!1){this.source=Se,this.isUserInput=ee}}let Lt=(()=>{class Ne{constructor(ee,re,Me,ze){this._element=ee,this._changeDetectorRef=re,this._parent=Me,this.group=ze,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+et++,this.onSelectionChange=new n.EventEmitter,this._stateChanges=new h.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ee){this._disabled=(0,u.Ig)(ee)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ee,re){const Me=this._getHostElement();"function"==typeof Me.focus&&Me.focus(re)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ee){(ee.keyCode===c.K5||ee.keyCode===c.L_)&&!(0,c.Vb)(ee)&&(this._selectViaInteraction(),ee.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ee=this.viewValue;ee!==this._mostRecentViewValue&&(this._mostRecentViewValue=ee,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ee=!1){this.onSelectionChange.emit(new xt(this,ee))}}return Ne.\u0275fac=function(ee){n.\u0275\u0275invalidFactory()},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ne})(),Qe=(()=>{class Ne extends Lt{constructor(ee,re,Me,ze){super(ee,re,Me,ze)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(ut,8),n.\u0275\u0275directiveInject(Dt,8))},Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ee,re){1&ee&&n.\u0275\u0275listener("click",function(){return re._selectViaInteraction()})("keydown",function(ze){return re._handleKeydown(ze)}),2&ee&&(n.\u0275\u0275hostProperty("id",re.id),n.\u0275\u0275attribute("tabindex",re._getTabIndex())("aria-selected",re._getAriaSelected())("aria-disabled",re.disabled.toString()),n.\u0275\u0275classProp("mat-selected",re.selected)("mat-option-multiple",re.multiple)("mat-active",re.active)("mat-option-disabled",re.disabled))},exportAs:["matOption"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:T,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ee,re){1&ee&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,y,1,2,"mat-pseudo-checkbox",0),n.\u0275\u0275elementStart(1,"span",1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(3,E,2,1,"span",2),n.\u0275\u0275element(4,"div",3)),2&ee&&(n.\u0275\u0275property("ngIf",re.multiple),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",re.group&&re.group._inert),n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",re._getHostElement())("matRippleDisabled",re.disabled||re.disableRipple))},directives:[m.NgIf,_e,$e],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ne})();function mt(Ne,Se,ee){if(ee.length){let re=Se.toArray(),Me=ee.toArray(),ze=0;for(let It=0;Itee+re?Math.max(0,Ne-re+Se):ee}let qt=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[Be,m.CommonModule,I,st]]}),Ne})()},4703:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{DateRange:()=>At,DefaultMatCalendarRangeStrategy:()=>Z,MAT_DATEPICKER_SCROLL_STRATEGY:()=>Se,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY:()=>ee,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>re,MAT_DATEPICKER_VALIDATORS:()=>He,MAT_DATEPICKER_VALUE_ACCESSOR:()=>ct,MAT_DATE_RANGE_SELECTION_STRATEGY:()=>U,MAT_RANGE_DATE_SELECTION_MODEL_FACTORY:()=>H,MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER:()=>x,MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY:()=>Ee,MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER:()=>fe,MatCalendar:()=>Vt,MatCalendarBody:()=>ft,MatCalendarCell:()=>at,MatCalendarHeader:()=>mt,MatDateRangeInput:()=>Ti,MatDateRangePicker:()=>qn,MatDateSelectionModel:()=>Tt,MatDatepicker:()=>Qt,MatDatepickerActions:()=>xe,MatDatepickerApply:()=>Vi,MatDatepickerCancel:()=>ci,MatDatepickerContent:()=>ze,MatDatepickerInput:()=>pt,MatDatepickerInputEvent:()=>cn,MatDatepickerIntl:()=>Lt,MatDatepickerModule:()=>Ze,MatDatepickerToggle:()=>un,MatDatepickerToggleIcon:()=>Ot,MatEndDate:()=>Oi,MatMonthView:()=>st,MatMultiYearView:()=>Xt,MatRangeDateSelectionModel:()=>Et,MatSingleDateSelectionModel:()=>Bt,MatStartDate:()=>ji,MatYearView:()=>xt,matDatepickerAnimations:()=>qt,yearsPerPage:()=>ut,yearsPerRow:()=>St});var n=p(5664),f=p(1314),v=p(7429),m=p(9808),o=p(5e3),d=p(7423),u=p(9071),h=p(508),r=p(8929),s=p(2654),i=p(6787),c=p(1086),l=p(1159),g=p(2986),y=p(1059),E=p(2198),T=p(226),D=p(3191),O=p(925),w=p(1777),A=p(3075),S=p(7322),M=p(7531);const I=["mat-calendar-body",""];function b(ue,Re){if(1&ue&&(o.\u0275\u0275elementStart(0,"tr",2),o.\u0275\u0275elementStart(1,"td",3),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&ue){const B=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("padding-top",B._cellPadding)("padding-bottom",B._cellPadding),o.\u0275\u0275attribute("colspan",B.numCols),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",B.label," ")}}function L(ue,Re){if(1&ue&&(o.\u0275\u0275elementStart(0,"td",3),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ue){const B=o.\u0275\u0275nextContext(2);o.\u0275\u0275styleProp("padding-top",B._cellPadding)("padding-bottom",B._cellPadding),o.\u0275\u0275attribute("colspan",B._firstRowOffset),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",B._firstRowOffset>=B.labelMinRequiredCells?B.label:""," ")}}function F(ue,Re){if(1&ue){const B=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"td",7),o.\u0275\u0275listener("click",function(Pe){const Wt=o.\u0275\u0275restoreView(B).$implicit;return o.\u0275\u0275nextContext(2)._cellClicked(Wt,Pe)}),o.\u0275\u0275elementStart(1,"div",8),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(3,"div",9),o.\u0275\u0275elementEnd()}if(2&ue){const B=Re.$implicit,de=Re.index,Pe=o.\u0275\u0275nextContext().index,Xe=o.\u0275\u0275nextContext();o.\u0275\u0275styleProp("width",Xe._cellWidth)("padding-top",Xe._cellPadding)("padding-bottom",Xe._cellPadding),o.\u0275\u0275classProp("mat-calendar-body-disabled",!B.enabled)("mat-calendar-body-active",Xe._isActiveCell(Pe,de))("mat-calendar-body-range-start",Xe._isRangeStart(B.compareValue))("mat-calendar-body-range-end",Xe._isRangeEnd(B.compareValue))("mat-calendar-body-in-range",Xe._isInRange(B.compareValue))("mat-calendar-body-comparison-bridge-start",Xe._isComparisonBridgeStart(B.compareValue,Pe,de))("mat-calendar-body-comparison-bridge-end",Xe._isComparisonBridgeEnd(B.compareValue,Pe,de))("mat-calendar-body-comparison-start",Xe._isComparisonStart(B.compareValue))("mat-calendar-body-comparison-end",Xe._isComparisonEnd(B.compareValue))("mat-calendar-body-in-comparison-range",Xe._isInComparisonRange(B.compareValue))("mat-calendar-body-preview-start",Xe._isPreviewStart(B.compareValue))("mat-calendar-body-preview-end",Xe._isPreviewEnd(B.compareValue))("mat-calendar-body-in-preview",Xe._isInPreview(B.compareValue)),o.\u0275\u0275property("ngClass",B.cssClasses)("tabindex",Xe._isActiveCell(Pe,de)?0:-1),o.\u0275\u0275attribute("data-mat-row",Pe)("data-mat-col",de)("aria-label",B.ariaLabel)("aria-disabled",!B.enabled||null)("aria-selected",Xe._isSelected(B.compareValue))("aria-current",Xe.todayValue===B.compareValue?"date":null),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("mat-calendar-body-selected",Xe._isSelected(B.compareValue))("mat-calendar-body-comparison-identical",Xe._isComparisonIdentical(B.compareValue))("mat-calendar-body-today",Xe.todayValue===B.compareValue),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",B.displayValue," ")}}function ne(ue,Re){if(1&ue&&(o.\u0275\u0275elementStart(0,"tr",4),o.\u0275\u0275template(1,L,2,6,"td",5),o.\u0275\u0275template(2,F,4,47,"td",6),o.\u0275\u0275elementEnd()),2&ue){const B=Re.$implicit,de=Re.index,Pe=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",0===de&&Pe._firstRowOffset),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",B)}}function Y(ue,Re){if(1&ue&&(o.\u0275\u0275elementStart(0,"th",5),o.\u0275\u0275elementStart(1,"abbr",6),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&ue){const B=Re.$implicit;o.\u0275\u0275attribute("aria-label",B.long),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("title",B.long),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(B.narrow)}}const Q=["*"];function te(ue,Re){}function $(ue,Re){if(1&ue){const B=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-month-view",5),o.\u0275\u0275listener("activeDateChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext().activeDate=Pe})("_userSelection",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._dateSelected(Pe)}),o.\u0275\u0275elementEnd()}if(2&ue){const B=o.\u0275\u0275nextContext();o.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)("comparisonStart",B.comparisonStart)("comparisonEnd",B.comparisonEnd)}}function J(ue,Re){if(1&ue){const B=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-year-view",6),o.\u0275\u0275listener("activeDateChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext().activeDate=Pe})("monthSelected",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._monthSelectedInYearView(Pe)})("selectedChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._goToDateInView(Pe,"month")}),o.\u0275\u0275elementEnd()}if(2&ue){const B=o.\u0275\u0275nextContext();o.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)}}function ie(ue,Re){if(1&ue){const B=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-multi-year-view",7),o.\u0275\u0275listener("activeDateChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext().activeDate=Pe})("yearSelected",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._yearSelectedInMultiYearView(Pe)})("selectedChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._goToDateInView(Pe,"year")}),o.\u0275\u0275elementEnd()}if(2&ue){const B=o.\u0275\u0275nextContext();o.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)}}function ae(ue,Re){}const le=["button"];function Oe(ue,Re){1&ue&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(0,"svg",3),o.\u0275\u0275element(1,"path",4),o.\u0275\u0275elementEnd())}const Le=[[["","matDatepickerToggleIcon",""]]],Ye=["[matDatepickerToggleIcon]"],Je=[[["input","matStartDate",""]],[["input","matEndDate",""]]],gt=["input[matStartDate]","input[matEndDate]"];function Ue(ue,Re){1&ue&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275projection(1),o.\u0275\u0275elementEnd())}class at{constructor(Re,B,de,Pe,Xe={},Wt=Re,Ft){this.value=Re,this.displayValue=B,this.ariaLabel=de,this.enabled=Pe,this.cssClasses=Xe,this.compareValue=Wt,this.rawValue=Ft}}let ft=(()=>{class ue{constructor(B,de){this._elementRef=B,this._ngZone=de,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.EventEmitter,this.previewChange=new o.EventEmitter,this._enterHandler=Pe=>{if(this._skipNextFocus&&"focus"===Pe.type)this._skipNextFocus=!1;else if(Pe.target&&this.isRange){const Xe=this._getCellFromElement(Pe.target);Xe&&this._ngZone.run(()=>this.previewChange.emit({value:Xe.enabled?Xe:null,event:Pe}))}},this._leaveHandler=Pe=>{null!==this.previewEnd&&this.isRange&&Pe.target&&vt(Pe.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Pe}))},de.runOutsideAngular(()=>{const Pe=B.nativeElement;Pe.addEventListener("mouseenter",this._enterHandler,!0),Pe.addEventListener("focus",this._enterHandler,!0),Pe.addEventListener("mouseleave",this._leaveHandler,!0),Pe.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(B,de){B.enabled&&this.selectedValueChange.emit({value:B.value,event:de})}_isSelected(B){return this.startValue===B||this.endValue===B}ngOnChanges(B){const de=B.numCols,{rows:Pe,numCols:Xe}=this;(B.rows||de)&&(this._firstRowOffset=Pe&&Pe.length&&Pe[0].length?Xe-Pe[0].length:0),(B.cellAspectRatio||de||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Xe+"%"),(de||!this._cellWidth)&&(this._cellWidth=100/Xe+"%")}ngOnDestroy(){const B=this._elementRef.nativeElement;B.removeEventListener("mouseenter",this._enterHandler,!0),B.removeEventListener("focus",this._enterHandler,!0),B.removeEventListener("mouseleave",this._leaveHandler,!0),B.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(B,de){let Pe=B*this.numCols+de;return B&&(Pe-=this._firstRowOffset),Pe==this.activeCell}_focusActiveCell(B=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{const de=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");de&&(B||(this._skipNextFocus=!0),de.focus())})})}_isRangeStart(B){return yt(B,this.startValue,this.endValue)}_isRangeEnd(B){return ot(B,this.startValue,this.endValue)}_isInRange(B){return _t(B,this.startValue,this.endValue,this.isRange)}_isComparisonStart(B){return yt(B,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(B,de,Pe){if(!this._isComparisonStart(B)||this._isRangeStart(B)||!this._isInRange(B))return!1;let Xe=this.rows[de][Pe-1];if(!Xe){const Wt=this.rows[de-1];Xe=Wt&&Wt[Wt.length-1]}return Xe&&!this._isRangeEnd(Xe.compareValue)}_isComparisonBridgeEnd(B,de,Pe){if(!this._isComparisonEnd(B)||this._isRangeEnd(B)||!this._isInRange(B))return!1;let Xe=this.rows[de][Pe+1];if(!Xe){const Wt=this.rows[de+1];Xe=Wt&&Wt[0]}return Xe&&!this._isRangeStart(Xe.compareValue)}_isComparisonEnd(B){return ot(B,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(B){return _t(B,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(B){return this.comparisonStart===this.comparisonEnd&&B===this.comparisonStart}_isPreviewStart(B){return yt(B,this.previewStart,this.previewEnd)}_isPreviewEnd(B){return ot(B,this.previewStart,this.previewEnd)}_isInPreview(B){return _t(B,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(B){let de;if(vt(B)?de=B:vt(B.parentNode)&&(de=B.parentNode),de){const Pe=de.getAttribute("data-mat-row"),Xe=de.getAttribute("data-mat-col");if(Pe&&Xe)return this.rows[parseInt(Pe)][parseInt(Xe)]}return null}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[o.\u0275\u0275NgOnChangesFeature],attrs:I,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(B,de){1&B&&(o.\u0275\u0275template(0,b,3,6,"tr",0),o.\u0275\u0275template(1,ne,3,2,"tr",1)),2&B&&(o.\u0275\u0275property("ngIf",de._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),ue})();function vt(ue){return"TD"===ue.nodeName}function yt(ue,Re,B){return null!==B&&Re!==B&&ue=Re&&ue===B}function _t(ue,Re,B,de){return de&&null!==Re&&null!==B&&Re!==B&&ue>=Re&&ue<=B}class At{constructor(Re,B){this.start=Re,this.end=B}}let Tt=(()=>{class ue{constructor(B,de){this.selection=B,this._adapter=de,this._selectionChanged=new r.xQ,this.selectionChanged=this._selectionChanged,this.selection=B}updateSelection(B,de){const Pe=this.selection;this.selection=B,this._selectionChanged.next({selection:B,source:de,oldValue:Pe})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(B){return this._adapter.isDateInstance(B)&&this._adapter.isValid(B)}}return ue.\u0275fac=function(B){o.\u0275\u0275invalidFactory()},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Bt=(()=>{class ue extends Tt{constructor(B){super(null,B)}add(B){super.updateSelection(B,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const B=new ue(this._adapter);return B.updateSelection(this.selection,this),B}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Et=(()=>{class ue extends Tt{constructor(B){super(new At(null,null),B)}add(B){let{start:de,end:Pe}=this.selection;null==de?de=B:null==Pe?Pe=B:(de=B,Pe=null),super.updateSelection(new At(de,Pe),this)}isValid(){const{start:B,end:de}=this.selection;return null==B&&null==de||(null!=B&&null!=de?this._isValidDateInstance(B)&&this._isValidDateInstance(de)&&this._adapter.compareDate(B,de)<=0:(null==B||this._isValidDateInstance(B))&&(null==de||this._isValidDateInstance(de)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const B=new ue(this._adapter);return B.updateSelection(this.selection,this),B}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();function Ee(ue,Re){return ue||new Bt(Re)}const fe={provide:Tt,deps:[[new o.Optional,new o.SkipSelf,Tt],h.DateAdapter],useFactory:Ee};function H(ue,Re){return ue||new Et(Re)}const x={provide:Tt,deps:[[new o.Optional,new o.SkipSelf,Tt],h.DateAdapter],useFactory:H},U=new o.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY");let Z=(()=>{class ue{constructor(B){this._dateAdapter=B}selectionFinished(B,de){let{start:Pe,end:Xe}=de;return null==Pe?Pe=B:null==Xe&&B&&this._dateAdapter.compareDate(B,Pe)>=0?Xe=B:(Pe=B,Xe=null),new At(Pe,Xe)}createPreview(B,de){let Pe=null,Xe=null;return de.start&&!de.end&&B&&(Pe=de.start,Xe=B),new At(Pe,Xe)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();const Be={provide:U,deps:[[new o.Optional,new o.SkipSelf,U],h.DateAdapter],useFactory:function(ue,Re){return ue||new Z(Re)}};let st=(()=>{class ue{constructor(B,de,Pe,Xe,Wt){this._changeDetectorRef=B,this._dateFormats=de,this._dateAdapter=Pe,this._dir=Xe,this._rangeStrategy=Wt,this._rerenderSubscription=s.w.EMPTY,this.selectedChange=new o.EventEmitter,this._userSelection=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){const de=this._activeDate,Pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Pe,this.minDate,this.maxDate),this._hasSameMonthAndYear(de,this._activeDate)||this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnChanges(B){const de=B.comparisonStart||B.comparisonEnd;de&&!de.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(B){const de=B.value,Pe=this._dateAdapter.getYear(this.activeDate),Xe=this._dateAdapter.getMonth(this.activeDate),Wt=this._dateAdapter.createDate(Pe,Xe,de);let Ft,Ht;this._selected instanceof At?(Ft=this._getDateInCurrentMonth(this._selected.start),Ht=this._getDateInCurrentMonth(this._selected.end)):Ft=Ht=this._getDateInCurrentMonth(this._selected),(Ft!==de||Ht!==de)&&this.selectedChange.emit(Wt),this._userSelection.emit({value:Wt,event:B.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(B){const de=this._activeDate,Pe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Pe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Pe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case l.Ku:this.activeDate=B.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case l.VM:this.activeDate=B.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case l.K5:case l.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&B.preventDefault());case l.hY:return void(null!=this._previewEnd&&!(0,l.Vb)(B)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:B}),B.preventDefault(),B.stopPropagation()));default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let B=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(B)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(B){this._matCalendarBody._focusActiveCell(B)}_previewChanged({event:B,value:de}){if(this._rangeStrategy){const Xe=this._rangeStrategy.createPreview(de?de.rawValue:null,this.selected,B);this._previewStart=this._getCellCompareValue(Xe.start),this._previewEnd=this._getCellCompareValue(Xe.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const B=this._dateAdapter.getFirstDayOfWeek(),de=this._dateAdapter.getDayOfWeekNames("narrow");let Xe=this._dateAdapter.getDayOfWeekNames("long").map((Wt,Ft)=>({long:Wt,narrow:de[Ft]}));this._weekdays=Xe.slice(B).concat(Xe.slice(0,B))}_createWeekCells(){const B=this._dateAdapter.getNumDaysInMonth(this.activeDate),de=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Pe=0,Xe=this._firstWeekOffset;Pe=0)&&(!this.maxDate||this._dateAdapter.compareDate(B,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(B))}_getDateInCurrentMonth(B){return B&&this._hasSameMonthAndYear(B,this.activeDate)?this._dateAdapter.getDate(B):null}_hasSameMonthAndYear(B,de){return!(!B||!de||this._dateAdapter.getMonth(B)!=this._dateAdapter.getMonth(de)||this._dateAdapter.getYear(B)!=this._dateAdapter.getYear(de))}_getCellCompareValue(B){if(B){const de=this._dateAdapter.getYear(B),Pe=this._dateAdapter.getMonth(B),Xe=this._dateAdapter.getDate(B);return new Date(de,Pe,Xe).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(B){B instanceof At?(this._rangeStart=this._getCellCompareValue(B.start),this._rangeEnd=this._getCellCompareValue(B.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(B),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(B){return!this.dateFilter||this.dateFilter(B)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(T.Is,8),o.\u0275\u0275directiveInject(U,8))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-month-view"]],viewQuery:function(B,de){if(1&B&&o.\u0275\u0275viewQuery(ft,5),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de._matCalendarBody=Pe.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[o.\u0275\u0275NgOnChangesFeature],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(B,de){1&B&&(o.\u0275\u0275elementStart(0,"table",0),o.\u0275\u0275elementStart(1,"thead",1),o.\u0275\u0275elementStart(2,"tr"),o.\u0275\u0275template(3,Y,3,3,"th",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"tr"),o.\u0275\u0275element(5,"th",3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"tbody",4),o.\u0275\u0275listener("selectedValueChange",function(Xe){return de._dateSelected(Xe)})("previewChange",function(Xe){return de._previewChanged(Xe)})("keyup",function(Xe){return de._handleCalendarBodyKeyup(Xe)})("keydown",function(Xe){return de._handleCalendarBodyKeydown(Xe)}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275advance(3),o.\u0275\u0275property("ngForOf",de._weekdays),o.\u0275\u0275advance(3),o.\u0275\u0275property("label",de._monthLabel)("rows",de._weeks)("todayValue",de._todayDate)("startValue",de._rangeStart)("endValue",de._rangeEnd)("comparisonStart",de._comparisonRangeStart)("comparisonEnd",de._comparisonRangeEnd)("previewStart",de._previewStart)("previewEnd",de._previewEnd)("isRange",de._isRange)("labelMinRequiredCells",3)("activeCell",de._dateAdapter.getDate(de.activeDate)-1))},directives:[m.NgForOf,ft],encapsulation:2,changeDetection:0}),ue})();const ut=24,St=4;let Xt=(()=>{class ue{constructor(B,de,Pe){this._changeDetectorRef=B,this._dateAdapter=de,this._dir=Pe,this._rerenderSubscription=s.w.EMPTY,this.selectedChange=new o.EventEmitter,this.yearSelected=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){let de=this._activeDate;const Pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Pe,this.minDate,this.maxDate),tn(this._dateAdapter,de,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setSelectedYear(B)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const de=this._dateAdapter.getYear(this._activeDate)-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Pe=0,Xe=[];Pethis._createCellForYear(Wt))),Xe=[]);this._changeDetectorRef.markForCheck()}_yearSelected(B){const de=B.value;this.yearSelected.emit(this._dateAdapter.createDate(de,0,1));let Pe=this._dateAdapter.getMonth(this.activeDate),Xe=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(de,Pe,1));this.selectedChange.emit(this._dateAdapter.createDate(de,Pe,Math.min(this._dateAdapter.getDate(this.activeDate),Xe)))}_handleCalendarBodyKeydown(B){const de=this._activeDate,Pe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Pe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Pe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-St);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ut-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case l.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10*-ut:-ut);break;case l.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10*ut:ut);break;case l.K5:case l.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_getActiveCell(){return Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(B){const de=this._dateAdapter.createDate(B,0,1),Pe=this._dateAdapter.getYearName(de),Xe=this.dateClass?this.dateClass(de,"multi-year"):void 0;return new at(B,Pe,Pe,this._shouldEnableYear(B),Xe)}_shouldEnableYear(B){if(null==B||this.maxDate&&B>this._dateAdapter.getYear(this.maxDate)||this.minDate&&B{class ue{constructor(B,de,Pe,Xe){this._changeDetectorRef=B,this._dateFormats=de,this._dateAdapter=Pe,this._dir=Xe,this._rerenderSubscription=s.w.EMPTY,this.selectedChange=new o.EventEmitter,this.monthSelected=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){let de=this._activeDate;const Pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Pe,this.minDate,this.maxDate),this._dateAdapter.getYear(de)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setSelectedMonth(B)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(B){const de=B.value,Pe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),de,1);this.monthSelected.emit(Pe);const Xe=this._dateAdapter.getNumDaysInMonth(Pe);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),de,Math.min(this._dateAdapter.getDate(this.activeDate),Xe)))}_handleCalendarBodyKeydown(B){const de=this._activeDate,Pe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Pe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Pe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case l.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?-10:-1);break;case l.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10:1);break;case l.K5:case l.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let B=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(de=>de.map(Pe=>this._createCellForMonth(Pe,B[Pe]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(B){return B&&this._dateAdapter.getYear(B)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(B):null}_createCellForMonth(B,de){const Pe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),B,1),Xe=this._dateAdapter.format(Pe,this._dateFormats.display.monthYearA11yLabel),Wt=this.dateClass?this.dateClass(Pe,"year"):void 0;return new at(B,de.toLocaleUpperCase(),Xe,this._shouldEnableMonth(B),Wt)}_shouldEnableMonth(B){const de=this._dateAdapter.getYear(this.activeDate);if(null==B||this._isYearAndMonthAfterMaxDate(de,B)||this._isYearAndMonthBeforeMinDate(de,B))return!1;if(!this.dateFilter)return!0;for(let Xe=this._dateAdapter.createDate(de,B,1);this._dateAdapter.getMonth(Xe)==B;Xe=this._dateAdapter.addCalendarDays(Xe,1))if(this.dateFilter(Xe))return!0;return!1}_isYearAndMonthAfterMaxDate(B,de){if(this.maxDate){const Pe=this._dateAdapter.getYear(this.maxDate),Xe=this._dateAdapter.getMonth(this.maxDate);return B>Pe||B===Pe&&de>Xe}return!1}_isYearAndMonthBeforeMinDate(B,de){if(this.minDate){const Pe=this._dateAdapter.getYear(this.minDate),Xe=this._dateAdapter.getMonth(this.minDate);return B{class ue{constructor(){this.changes=new r.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(B,de){return`${B} \u2013 ${de}`}}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),Qe=0,mt=(()=>{class ue{constructor(B,de,Pe,Xe,Wt){this._intl=B,this.calendar=de,this._dateAdapter=Pe,this._dateFormats=Xe,this._buttonDescriptionId="mat-calendar-button-"+Qe++,this.calendar.stateChanges.subscribe(()=>Wt.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const de=this._dateAdapter.getYear(this.calendar.activeDate)-Dt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Pe=de+ut-1,Xe=this._dateAdapter.getYearName(this._dateAdapter.createDate(de,0,1)),Wt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Pe,0,1));return this._intl.formatYearRange(Xe,Wt)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-ut)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:ut)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(B,de){return"month"==this.calendar.currentView?this._dateAdapter.getYear(B)==this._dateAdapter.getYear(de)&&this._dateAdapter.getMonth(B)==this._dateAdapter.getMonth(de):"year"==this.calendar.currentView?this._dateAdapter.getYear(B)==this._dateAdapter.getYear(de):tn(this._dateAdapter,B,de,this.calendar.minDate,this.calendar.maxDate)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(Lt),o.\u0275\u0275directiveInject((0,o.forwardRef)(()=>Vt)),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Q,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(B,de){1&B&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275elementStart(1,"div",1),o.\u0275\u0275elementStart(2,"button",2),o.\u0275\u0275listener("click",function(){return de.currentPeriodClicked()}),o.\u0275\u0275elementStart(3,"span"),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(5,"svg",3),o.\u0275\u0275element(6,"polygon",4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275namespaceHTML(),o.\u0275\u0275element(7,"div",5),o.\u0275\u0275projection(8),o.\u0275\u0275elementStart(9,"button",6),o.\u0275\u0275listener("click",function(){return de.previousClicked()}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(10,"button",7),o.\u0275\u0275listener("click",function(){return de.nextClicked()}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275advance(2),o.\u0275\u0275attribute("aria-label",de.periodButtonLabel)("aria-describedby",de._buttonDescriptionId),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("id",de._buttonDescriptionId),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(de.periodButtonText),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("mat-calendar-invert","month"!==de.calendar.currentView),o.\u0275\u0275advance(4),o.\u0275\u0275property("disabled",!de.previousEnabled()),o.\u0275\u0275attribute("aria-label",de.prevButtonLabel),o.\u0275\u0275advance(1),o.\u0275\u0275property("disabled",!de.nextEnabled()),o.\u0275\u0275attribute("aria-label",de.nextButtonLabel))},directives:[d.MatButton,n.Qr],encapsulation:2,changeDetection:0}),ue})(),Vt=(()=>{class ue{constructor(B,de,Pe,Xe){this._dateAdapter=de,this._dateFormats=Pe,this._changeDetectorRef=Xe,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.EventEmitter,this.yearSelected=new o.EventEmitter,this.monthSelected=new o.EventEmitter,this.viewChanged=new o.EventEmitter(!0),this._userSelection=new o.EventEmitter,this.stateChanges=new r.xQ,this._intlChanges=B.changes.subscribe(()=>{Xe.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(B){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get activeDate(){return this._clampedActiveDate}set activeDate(B){this._clampedActiveDate=this._dateAdapter.clampDate(B,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(B){const de=this._currentView!==B?B:null;this._currentView=B,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),de&&this.viewChanged.emit(de)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||mt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(B){const de=B.minDate||B.maxDate||B.dateFilter;if(de&&!de.firstChange){const Pe=this._getCurrentViewComponent();Pe&&(this._changeDetectorRef.detectChanges(),Pe._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(B){const de=B.value;(this.selected instanceof At||de&&!this._dateAdapter.sameDate(de,this.selected))&&this.selectedChange.emit(de),this._userSelection.emit(B)}_yearSelectedInMultiYearView(B){this.yearSelected.emit(B)}_monthSelectedInYearView(B){this.monthSelected.emit(B)}_goToDateInView(B,de){this.activeDate=B,this.currentView=de}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(Lt),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-calendar"]],viewQuery:function(B,de){if(1&B&&(o.\u0275\u0275viewQuery(st,5),o.\u0275\u0275viewQuery(xt,5),o.\u0275\u0275viewQuery(Xt,5)),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de.monthView=Pe.first),o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de.yearView=Pe.first),o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de.multiYearView=Pe.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[o.\u0275\u0275ProvidersFeature([fe]),o.\u0275\u0275NgOnChangesFeature],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(B,de){1&B&&(o.\u0275\u0275template(0,te,0,0,"ng-template",0),o.\u0275\u0275elementStart(1,"div",1),o.\u0275\u0275template(2,$,1,8,"mat-month-view",2),o.\u0275\u0275template(3,J,1,6,"mat-year-view",3),o.\u0275\u0275template(4,ie,1,6,"mat-multi-year-view",4),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275property("cdkPortalOutlet",de._calendarHeaderPortal),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitch",de.currentView),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase","month"),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase","year"),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase","multi-year"))},directives:[v.Pl,n.kH,m.NgSwitch,m.NgSwitchCase,st,xt,Xt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),ue})();const qt={transformPanel:(0,w.X$)("transformPanel",[(0,w.eR)("void => enter-dropdown",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,w.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,w.eR)("void => enter-dialog",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0.7)"}),(0,w.oB)({transform:"none",opacity:1})]))),(0,w.eR)("* => void",(0,w.jt)("100ms linear",(0,w.oB)({opacity:0})))]),fadeInCalendar:(0,w.X$)("fadeInCalendar",[(0,w.SB)("void",(0,w.oB)({opacity:0})),(0,w.SB)("enter",(0,w.oB)({opacity:1})),(0,w.eR)("void => *",(0,w.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ne=0;const Se=new o.InjectionToken("mat-datepicker-scroll-strategy");function ee(ue){return()=>ue.scrollStrategies.reposition()}const re={provide:Se,deps:[f.aV],useFactory:ee},Me=(0,h.mixinColor)(class{constructor(ue){this._elementRef=ue}});let ze=(()=>{class ue extends Me{constructor(B,de,Pe,Xe,Wt,Ft){super(B),this._changeDetectorRef=de,this._globalModel=Pe,this._dateAdapter=Xe,this._rangeSelectionStrategy=Wt,this._subscriptions=new s.w,this._animationDone=new r.xQ,this._actionsPortal=null,this._closeButtonText=Ft.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(B){const de=this._model.selection,Pe=B.value,Xe=de instanceof At;if(Xe&&this._rangeSelectionStrategy){const Wt=this._rangeSelectionStrategy.selectionFinished(Pe,de,B.event);this._model.updateSelection(Wt,this)}else Pe&&(Xe||!this._dateAdapter.sameDate(Pe,de))&&this._model.add(Pe);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(Tt),o.\u0275\u0275directiveInject(h.DateAdapter),o.\u0275\u0275directiveInject(U,8),o.\u0275\u0275directiveInject(Lt))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-content"]],viewQuery:function(B,de){if(1&B&&o.\u0275\u0275viewQuery(Vt,5),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de._calendar=Pe.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(B,de){1&B&&o.\u0275\u0275syntheticHostListener("@transformPanel.done",function(){return de._animationDone.next()}),2&B&&(o.\u0275\u0275syntheticHostProperty("@transformPanel",de._animationState),o.\u0275\u0275classProp("mat-datepicker-content-touch",de.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.\u0275\u0275InheritDefinitionFeature],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(B,de){1&B&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275elementStart(1,"mat-calendar",1),o.\u0275\u0275listener("yearSelected",function(Xe){return de.datepicker._selectYear(Xe)})("monthSelected",function(Xe){return de.datepicker._selectMonth(Xe)})("viewChanged",function(Xe){return de.datepicker._viewChanged(Xe)})("_userSelection",function(Xe){return de._handleUserSelection(Xe)}),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(2,ae,0,0,"ng-template",2),o.\u0275\u0275elementStart(3,"button",3),o.\u0275\u0275listener("focus",function(){return de._closeButtonFocused=!0})("blur",function(){return de._closeButtonFocused=!1})("click",function(){return de.datepicker.close()}),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275classProp("mat-datepicker-content-container-with-actions",de._actionsPortal),o.\u0275\u0275advance(1),o.\u0275\u0275property("id",de.datepicker.id)("ngClass",de.datepicker.panelClass)("startAt",de.datepicker.startAt)("startView",de.datepicker.startView)("minDate",de.datepicker._getMinDate())("maxDate",de.datepicker._getMaxDate())("dateFilter",de.datepicker._getDateFilter())("headerComponent",de.datepicker.calendarHeaderComponent)("selected",de._getSelected())("dateClass",de.datepicker.dateClass)("comparisonStart",de.comparisonStart)("comparisonEnd",de.comparisonEnd)("@fadeInCalendar","enter"),o.\u0275\u0275advance(1),o.\u0275\u0275property("cdkPortalOutlet",de._actionsPortal),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("cdk-visually-hidden",!de._closeButtonFocused),o.\u0275\u0275property("color",de.color||"primary"),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(de._closeButtonText))},directives:[n.mK,Vt,m.NgClass,v.Pl,d.MatButton],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[qt.transformPanel,qt.fadeInCalendar]},changeDetection:0}),ue})(),It=(()=>{class ue{constructor(B,de,Pe,Xe,Wt,Ft,Ht){this._overlay=B,this._ngZone=de,this._viewContainerRef=Pe,this._dateAdapter=Wt,this._dir=Ft,this._model=Ht,this._inputStateChanges=s.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.EventEmitter,this.monthSelected=new o.EventEmitter,this.viewChanged=new o.EventEmitter(!0),this.openedStream=new o.EventEmitter,this.closedStream=new o.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+Ne++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new r.xQ,this._scrollStrategy=Xe}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(B){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(B){this._color=B}get touchUi(){return this._touchUi}set touchUi(B){this._touchUi=(0,D.Ig)(B)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(B){const de=(0,D.Ig)(B);de!==this._disabled&&(this._disabled=de,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(B){this._restoreFocus=(0,D.Ig)(B)}get panelClass(){return this._panelClass}set panelClass(B){this._panelClass=(0,D.du)(B)}get opened(){return this._opened}set opened(B){(0,D.Ig)(B)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(B){const de=B.xPosition||B.yPosition;if(de&&!de.firstChange&&this._overlayRef){const Pe=this._overlayRef.getConfig().positionStrategy;Pe instanceof f._G&&(this._setConnectedPositions(Pe),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(B){this._model.add(B)}_selectYear(B){this.yearSelected.emit(B)}_selectMonth(B){this.monthSelected.emit(B)}_viewChanged(B){this.viewChanged.emit(B)}registerInput(B){return this._inputStateChanges.unsubscribe(),this.datepickerInput=B,this._inputStateChanges=B.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(B){this._actionsPortal=B}removeActions(B){B===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,O.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const de=this._componentRef.instance;de._startExitAnimation(),de._animationDone.pipe((0,g.q)(1)).subscribe(()=>this._destroyOverlay())}const B=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(B)):B()}_applyPendingSelection(){var B,de;null===(de=null===(B=this._componentRef)||void 0===B?void 0:B.instance)||void 0===de||de._applyPendingSelection()}_forwardContentValues(B){B.datepicker=this,B.color=this.color,B._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const B=this.touchUi,de=this.datepickerInput.getOverlayLabelId(),Pe=new v.C5(ze,this._viewContainerRef),Xe=this._overlayRef=this._overlay.create(new f.X_({positionStrategy:B?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[B?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:B?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(B?"dialog":"popup")})),Wt=Xe.overlayElement;Wt.setAttribute("role","dialog"),de&&Wt.setAttribute("aria-labelledby",de),B&&Wt.setAttribute("aria-modal","true"),this._getCloseStream(Xe).subscribe(Ft=>{Ft&&Ft.preventDefault(),this.close()}),this._componentRef=Xe.attach(Pe),this._forwardContentValues(this._componentRef.instance),B||this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>Xe.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const B=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(B)}_setConnectedPositions(B){const de="end"===this.xPosition?"end":"start",Pe="start"===de?"end":"start",Xe="above"===this.yPosition?"bottom":"top",Wt="top"===Xe?"bottom":"top";return B.withPositions([{originX:de,originY:Wt,overlayX:de,overlayY:Xe},{originX:de,originY:Xe,overlayX:de,overlayY:Wt},{originX:Pe,originY:Wt,overlayX:Pe,overlayY:Xe},{originX:Pe,originY:Xe,overlayX:Pe,overlayY:Wt}])}_getCloseStream(B){return(0,i.T)(B.backdropClick(),B.detachments(),B.keydownEvents().pipe((0,E.h)(de=>de.keyCode===l.hY&&!(0,l.Vb)(de)||this.datepickerInput&&(0,l.Vb)(de,"altKey")&&de.keyCode===l.LH)))}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(f.aV),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(Se),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(T.Is,8),o.\u0275\u0275directiveInject(Tt))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.\u0275\u0275NgOnChangesFeature]}),ue})(),Qt=(()=>{class ue extends It{}return ue.\u0275fac=function(){let Re;return function(de){return(Re||(Re=o.\u0275\u0275getInheritedFactory(ue)))(de||ue)}}(),ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o.\u0275\u0275ProvidersFeature([fe,{provide:It,useExisting:ue}]),o.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(B,de){},encapsulation:2,changeDetection:0}),ue})();class cn{constructor(Re,B){this.target=Re,this.targetElement=B,this.value=this.target.value}}let An=(()=>{class ue{constructor(B,de,Pe){this._elementRef=B,this._dateAdapter=de,this._dateFormats=Pe,this.dateChange=new o.EventEmitter,this.dateInput=new o.EventEmitter,this.stateChanges=new r.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=s.w.EMPTY,this._localeSubscription=s.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Xe=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xe.value));return!Wt||this._matchesFilter(Wt)?null:{matDatepickerFilter:!0}},this._minValidator=Xe=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xe.value)),Ft=this._getMinDate();return!Ft||!Wt||this._dateAdapter.compareDate(Ft,Wt)<=0?null:{matDatepickerMin:{min:Ft,actual:Wt}}},this._maxValidator=Xe=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xe.value)),Ft=this._getMaxDate();return!Ft||!Wt||this._dateAdapter.compareDate(Ft,Wt)>=0?null:{matDatepickerMax:{max:Ft,actual:Wt}}},this._lastValueValid=!1,this._localeSubscription=de.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(B){this._assignValueProgrammatically(B)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(B){const de=(0,D.Ig)(B),Pe=this._elementRef.nativeElement;this._disabled!==de&&(this._disabled=de,this.stateChanges.next(void 0)),de&&this._isInitialized&&Pe.blur&&Pe.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(B){this._model=B,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(de=>{if(this._shouldHandleChangeEvent(de)){const Pe=this._getValueFromModel(de.selection);this._lastValueValid=this._isValidValue(Pe),this._cvaOnChange(Pe),this._onTouched(),this._formatValue(Pe),this.dateInput.emit(new cn(this,this._elementRef.nativeElement)),this.dateChange.emit(new cn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(B){lt(B,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(B){this._validatorOnChange=B}validate(B){return this._validator?this._validator(B):null}writeValue(B){this._assignValueProgrammatically(B)}registerOnChange(B){this._cvaOnChange=B}registerOnTouched(B){this._onTouched=B}setDisabledState(B){this.disabled=B}_onKeydown(B){B.altKey&&B.keyCode===l.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),B.preventDefault())}_onInput(B){const de=this._lastValueValid;let Pe=this._dateAdapter.parse(B,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Pe),Pe=this._dateAdapter.getValidDateOrNull(Pe),this._dateAdapter.sameDate(Pe,this.value)?(B&&!this.value&&this._cvaOnChange(Pe),de!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(Pe),this._cvaOnChange(Pe),this.dateInput.emit(new cn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new cn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(B){this._elementRef.nativeElement.value=B?this._dateAdapter.format(B,this._dateFormats.display.dateInput):""}_assignValue(B){this._model?(this._assignValueToModel(B),this._pendingValue=null):this._pendingValue=B}_isValidValue(B){return!B||this._dateAdapter.isValid(B)}_parentDisabled(){return!1}_assignValueProgrammatically(B){B=this._dateAdapter.deserialize(B),this._lastValueValid=this._isValidValue(B),B=this._dateAdapter.getValidDateOrNull(B),this._assignValue(B),this._formatValue(B)}_matchesFilter(B){const de=this._getDateFilter();return!de||de(B)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.\u0275\u0275NgOnChangesFeature]}),ue})();function lt(ue,Re){const B=Object.keys(ue);for(let de of B){const{previousValue:Pe,currentValue:Xe}=ue[de];if(!Re.isDateInstance(Pe)||!Re.isDateInstance(Xe))return!0;if(!Re.sameDate(Pe,Xe))return!0}return!1}const ct={provide:A.NG_VALUE_ACCESSOR,useExisting:(0,o.forwardRef)(()=>pt),multi:!0},He={provide:A.NG_VALIDATORS,useExisting:(0,o.forwardRef)(()=>pt),multi:!0};let pt=(()=>{class ue extends An{constructor(B,de,Pe,Xe){super(B,de,Pe),this._formField=Xe,this._closedSubscription=s.w.EMPTY,this._validator=A.Validators.compose(super._getValidators())}set matDatepicker(B){B&&(this._datepicker=B,this._closedSubscription=B.closedStream.subscribe(()=>this._onTouched()),this._registerModel(B.registerInput(this)))}get min(){return this._min}set min(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._min)||(this._min=de,this._validatorOnChange())}get max(){return this._max}set max(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._max)||(this._max=de,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(B){const de=this._matchesFilter(this.value);this._dateFilter=B,this._matchesFilter(this.value)!==de&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(B){return B}_assignValueToModel(B){this._model&&this._model.updateSelection(B,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(B){return B.source!==this}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),o.\u0275\u0275directiveInject(S.MAT_FORM_FIELD,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("input",function(Xe){return de._onInput(Xe.target.value)})("change",function(){return de._onChange()})("blur",function(){return de._onBlur()})("keydown",function(Xe){return de._onKeydown(Xe)}),2&B&&(o.\u0275\u0275hostProperty("disabled",de.disabled),o.\u0275\u0275attribute("aria-haspopup",de._datepicker?"dialog":null)("aria-owns",(null==de._datepicker?null:de._datepicker.opened)&&de._datepicker.id||null)("min",de.min?de._dateAdapter.toIso8601(de.min):null)("max",de.max?de._dateAdapter.toIso8601(de.max):null)("data-mat-calendar",de._datepicker?de._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o.\u0275\u0275ProvidersFeature([ct,He,{provide:M.MAT_INPUT_VALUE_ACCESSOR,useExisting:ue}]),o.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ot=(()=>{class ue{}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerToggleIcon",""]]}),ue})(),un=(()=>{class ue{constructor(B,de,Pe){this._intl=B,this._changeDetectorRef=de,this._stateChanges=s.w.EMPTY;const Xe=Number(Pe);this.tabIndex=Xe||0===Xe?Xe:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(B){this._disabled=(0,D.Ig)(B)}ngOnChanges(B){B.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(B){this.datepicker&&!this.disabled&&(this.datepicker.open(),B.stopPropagation())}_watchStateChanges(){const B=this.datepicker?this.datepicker.stateChanges:(0,c.of)(),de=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,c.of)(),Pe=this.datepicker?(0,i.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,c.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,i.T)(this._intl.changes,B,de,Pe).subscribe(()=>this._changeDetectorRef.markForCheck())}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(Lt),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275injectAttribute("tabindex"))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-toggle"]],contentQueries:function(B,de,Pe){if(1&B&&o.\u0275\u0275contentQuery(Pe,Ot,5),2&B){let Xe;o.\u0275\u0275queryRefresh(Xe=o.\u0275\u0275loadQuery())&&(de._customIcon=Xe.first)}},viewQuery:function(B,de){if(1&B&&o.\u0275\u0275viewQuery(le,5),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de._button=Pe.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("click",function(Xe){return de._open(Xe)}),2&B&&(o.\u0275\u0275attribute("tabindex",null)("data-mat-calendar",de.datepicker?de.datepicker.id:null),o.\u0275\u0275classProp("mat-datepicker-toggle-active",de.datepicker&&de.datepicker.opened)("mat-accent",de.datepicker&&"accent"===de.datepicker.color)("mat-warn",de.datepicker&&"warn"===de.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Ye,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(B,de){1&B&&(o.\u0275\u0275projectionDef(Le),o.\u0275\u0275elementStart(0,"button",0,1),o.\u0275\u0275template(2,Oe,2,0,"svg",2),o.\u0275\u0275projection(3),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275property("disabled",de.disabled)("disableRipple",de.disableRipple),o.\u0275\u0275attribute("aria-haspopup",de.datepicker?"dialog":null)("aria-label",de.ariaLabel||de._intl.openCalendarLabel)("tabindex",de.disabled?-1:de.tabIndex),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",!de._customIcon))},directives:[d.MatButton,m.NgIf],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),ue})();const on=new o.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT"),Yn=(0,h.mixinErrorState)((()=>{class ue extends An{constructor(B,de,Pe,Xe,Wt,Ft,Ht,Zt){super(de,Ht,Zt),this._rangeInput=B,this._defaultErrorStateMatcher=Pe,this._injector=Xe,this._parentForm=Wt,this._parentFormGroup=Ft}ngOnInit(){const B=this._injector.get(A.NgControl,null,o.InjectFlags.Self|o.InjectFlags.Optional);B&&(this.ngControl=B)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(B){super._onInput(B),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:B}){return B!==this._rangeInput._startInput&&B!==this._rangeInput._endInput}_assignValueProgrammatically(B){super._assignValueProgrammatically(B);const de=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;null==de||de._validatorOnChange()}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(on),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.ErrorStateMatcher),o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(A.NgForm,8),o.\u0275\u0275directiveInject(A.FormGroupDirective,8),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,features:[o.\u0275\u0275InheritDefinitionFeature]}),ue})());let ji=(()=>{class ue extends Yn{constructor(B,de,Pe,Xe,Wt,Ft,Ht,Zt){super(B,de,Pe,Xe,Wt,Ft,Ht,Zt),this._startValidator=an=>{const Tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(an.value)),zn=this._model?this._model.selection.end:null;return!Tn||!zn||this._dateAdapter.compareDate(Tn,zn)<=0?null:{matStartDateInvalid:{end:zn,actual:Tn}}},this._validator=A.Validators.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(B){return B.start}_shouldHandleChangeEvent(B){var de;return!(!super._shouldHandleChangeEvent(B)||((null===(de=B.oldValue)||void 0===de?void 0:de.start)?B.selection.start&&!this._dateAdapter.compareDate(B.oldValue.start,B.selection.start):!B.selection.start))}_assignValueToModel(B){if(this._model){const de=new At(B,this._model.selection.end);this._model.updateSelection(de,this)}}_formatValue(B){super._formatValue(B),this._rangeInput._handleChildValueChange()}getMirrorValue(){const B=this._elementRef.nativeElement,de=B.value;return de.length>0?de:B.placeholder}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(on),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.ErrorStateMatcher),o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(A.NgForm,8),o.\u0275\u0275directiveInject(A.FormGroupDirective,8),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("input",function(Xe){return de._onInput(Xe.target.value)})("change",function(){return de._onChange()})("keydown",function(Xe){return de._onKeydown(Xe)})("blur",function(){return de._onBlur()}),2&B&&(o.\u0275\u0275hostProperty("disabled",de.disabled),o.\u0275\u0275attribute("id",de._rangeInput.id)("aria-haspopup",de._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==de._rangeInput.rangePicker?null:de._rangeInput.rangePicker.opened)&&de._rangeInput.rangePicker.id||null)("min",de._getMinDate()?de._dateAdapter.toIso8601(de._getMinDate()):null)("max",de._getMaxDate()?de._dateAdapter.toIso8601(de._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.\u0275\u0275ProvidersFeature([{provide:A.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0},{provide:A.NG_VALIDATORS,useExisting:ue,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),ue})(),Oi=(()=>{class ue extends Yn{constructor(B,de,Pe,Xe,Wt,Ft,Ht,Zt){super(B,de,Pe,Xe,Wt,Ft,Ht,Zt),this._endValidator=an=>{const Tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(an.value)),zn=this._model?this._model.selection.start:null;return!Tn||!zn||this._dateAdapter.compareDate(Tn,zn)>=0?null:{matEndDateInvalid:{start:zn,actual:Tn}}},this._validator=A.Validators.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(B){return B.end}_shouldHandleChangeEvent(B){var de;return!(!super._shouldHandleChangeEvent(B)||((null===(de=B.oldValue)||void 0===de?void 0:de.end)?B.selection.end&&!this._dateAdapter.compareDate(B.oldValue.end,B.selection.end):!B.selection.end))}_assignValueToModel(B){if(this._model){const de=new At(this._model.selection.start,B);this._model.updateSelection(de,this)}}_onKeydown(B){B.keyCode===l.ZH&&!this._elementRef.nativeElement.value&&this._rangeInput._startInput.focus(),super._onKeydown(B)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(on),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.ErrorStateMatcher),o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(A.NgForm,8),o.\u0275\u0275directiveInject(A.FormGroupDirective,8),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("input",function(Xe){return de._onInput(Xe.target.value)})("change",function(){return de._onChange()})("keydown",function(Xe){return de._onKeydown(Xe)})("blur",function(){return de._onBlur()}),2&B&&(o.\u0275\u0275hostProperty("disabled",de.disabled),o.\u0275\u0275attribute("aria-haspopup",de._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==de._rangeInput.rangePicker?null:de._rangeInput.rangePicker.opened)&&de._rangeInput.rangePicker.id||null)("min",de._getMinDate()?de._dateAdapter.toIso8601(de._getMinDate()):null)("max",de._getMaxDate()?de._dateAdapter.toIso8601(de._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.\u0275\u0275ProvidersFeature([{provide:A.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0},{provide:A.NG_VALIDATORS,useExisting:ue,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ni=0,Ti=(()=>{class ue{constructor(B,de,Pe,Xe,Wt){if(this._changeDetectorRef=B,this._elementRef=de,this._dateAdapter=Xe,this._formField=Wt,this._closedSubscription=s.w.EMPTY,this.id="mat-date-range-input-"+Ni++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new r.xQ,null==Wt?void 0:Wt._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const Ft=de.nativeElement.classList;Ft.add("mat-mdc-input-element"),Ft.add("mat-mdc-form-field-input-control")}this.ngControl=Pe}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var B,de;const Pe=(null===(B=this._startInput)||void 0===B?void 0:B._getPlaceholder())||"",Xe=(null===(de=this._endInput)||void 0===de?void 0:de._getPlaceholder())||"";return Pe||Xe?`${Pe} ${this.separator} ${Xe}`:""}get rangePicker(){return this._rangePicker}set rangePicker(B){B&&(this._model=B.registerInput(this),this._rangePicker=B,this._closedSubscription.unsubscribe(),this._closedSubscription=B.closedStream.subscribe(()=>{var de,Pe;null===(de=this._startInput)||void 0===de||de._onTouched(),null===(Pe=this._endInput)||void 0===Pe||Pe._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(B){this._required=(0,D.Ig)(B)}get dateFilter(){return this._dateFilter}set dateFilter(B){const de=this._startInput,Pe=this._endInput,Xe=de&&de._matchesFilter(de.value),Wt=Pe&&Pe._matchesFilter(de.value);this._dateFilter=B,de&&de._matchesFilter(de.value)!==Xe&&de._validatorOnChange(),Pe&&Pe._matchesFilter(Pe.value)!==Wt&&Pe._validatorOnChange()}get min(){return this._min}set min(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._min)||(this._min=de,this._revalidate())}get max(){return this._max}set max(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._max)||(this._max=de,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(B){const de=(0,D.Ig)(B);de!==this._groupDisabled&&(this._groupDisabled=de,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const B=!!this._startInput&&this._startInput.isEmpty(),de=!!this._endInput&&this._endInput.isEmpty();return B&&de}setDescribedByIds(B){this._ariaDescribedBy=B.length?B.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,i.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(B){lt(B,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const B=this._formField;return B&&B._hasFloatingLabel()?B._labelId:null}_updateFocus(B){this.focused=null!==B,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(B){this._startInput&&this._startInput._registerModel(B),this._endInput&&this._endInput._registerModel(B)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(A.ControlContainer,10),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(S.MAT_FORM_FIELD,8))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-date-range-input"]],contentQueries:function(B,de,Pe){if(1&B&&(o.\u0275\u0275contentQuery(Pe,ji,5),o.\u0275\u0275contentQuery(Pe,Oi,5)),2&B){let Xe;o.\u0275\u0275queryRefresh(Xe=o.\u0275\u0275loadQuery())&&(de._startInput=Xe.first),o.\u0275\u0275queryRefresh(Xe=o.\u0275\u0275loadQuery())&&(de._endInput=Xe.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(B,de){2&B&&(o.\u0275\u0275attribute("id",null)("aria-labelledby",de._getAriaLabelledby())("aria-describedby",de._ariaDescribedBy)("data-mat-calendar",de.rangePicker?de.rangePicker.id:null),o.\u0275\u0275classProp("mat-date-range-input-hide-placeholders",de._shouldHidePlaceholders())("mat-date-range-input-required",de.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[o.\u0275\u0275ProvidersFeature([{provide:S.MatFormFieldControl,useExisting:ue},{provide:on,useExisting:ue}]),o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:gt,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(B,de){1&B&&(o.\u0275\u0275projectionDef(Je),o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275listener("cdkFocusChange",function(Xe){return de._updateFocus(Xe)}),o.\u0275\u0275elementStart(1,"div",1),o.\u0275\u0275projection(2),o.\u0275\u0275elementStart(3,"span",2),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"span",3),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"div",4),o.\u0275\u0275projection(8,1),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate(de._getInputMirrorValue()),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("mat-date-range-input-separator-hidden",de._shouldHideSeparator()),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(de.separator))},directives:[n.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),ue})(),qn=(()=>{class ue extends It{_forwardContentValues(B){super._forwardContentValues(B);const de=this.datepickerInput;de&&(B.comparisonStart=de.comparisonStart,B.comparisonEnd=de.comparisonEnd)}}return ue.\u0275fac=function(){let Re;return function(de){return(Re||(Re=o.\u0275\u0275getInheritedFactory(ue)))(de||ue)}}(),ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[o.\u0275\u0275ProvidersFeature([x,Be,{provide:It,useExisting:ue}]),o.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(B,de){},encapsulation:2,changeDetection:0}),ue})(),Vi=(()=>{class ue{constructor(B){this._datepicker=B}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(It))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("click",function(){return de._applySelection()})}}),ue})(),ci=(()=>{class ue{constructor(B){this._datepicker=B}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(It))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("click",function(){return de._datepicker.close()})}}),ue})(),xe=(()=>{class ue{constructor(B,de){this._datepicker=B,this._viewContainerRef=de}ngAfterViewInit(){this._portal=new v.UE(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){var B;this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&(null===(B=this._portal)||void 0===B||B.detach())}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(It),o.\u0275\u0275directiveInject(o.ViewContainerRef))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(B,de){if(1&B&&o.\u0275\u0275viewQuery(o.TemplateRef,5),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de._template=Pe.first)}},ngContentSelectors:Q,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(B,de){1&B&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,Ue,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),ue})(),Ze=(()=>{class ue{}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275mod=o.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=o.\u0275\u0275defineInjector({providers:[Lt,re],imports:[[m.CommonModule,d.MatButtonModule,f.U8,n.rt,v.eL,h.MatCommonModule],u.ZD]}),ue})()},4834:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatDivider:()=>m,MatDividerModule:()=>o});var n=p(5e3),f=p(3191),v=p(508);let m=(()=>{class d{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(h){this._vertical=(0,f.Ig)(h)}get inset(){return this._inset}set inset(h){this._inset=(0,f.Ig)(h)}}return d.\u0275fac=function(h){return new(h||d)},d.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(h,r){2&h&&(n.\u0275\u0275attribute("aria-orientation",r.vertical?"vertical":"horizontal"),n.\u0275\u0275classProp("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(h,r){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),d})(),o=(()=>{class d{}return d.\u0275fac=function(h){return new(h||d)},d.\u0275mod=n.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=n.\u0275\u0275defineInjector({imports:[[v.MatCommonModule],v.MatCommonModule]}),d})()},7322:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_ERROR:()=>J,MAT_FORM_FIELD:()=>Ee,MAT_FORM_FIELD_DEFAULT_OPTIONS:()=>Et,MAT_PREFIX:()=>ft,MAT_SUFFIX:()=>yt,MatError:()=>ie,MatFormField:()=>fe,MatFormFieldControl:()=>le,MatFormFieldModule:()=>H,MatHint:()=>Ue,MatLabel:()=>tt,MatPlaceholder:()=>at,MatPrefix:()=>vt,MatSuffix:()=>ot,_MAT_HINT:()=>gt,getMatFormFieldDuplicatedHintError:()=>Le,getMatFormFieldMissingControlError:()=>Ye,getMatFormFieldPlaceholderConflictError:()=>Oe,matFormFieldAnimations:()=>ae});var n=p(7144),f=p(9808),v=p(5e3),m=p(508),o=p(3191),d=p(8929),u=p(6787),h=p(3753),r=p(1059),s=p(7625),i=p(2986),c=p(1777),l=p(6360),g=p(226),y=p(925);const E=["connectionContainer"],T=["inputContainer"],D=["label"];function O(x,U){1&x&&(v.\u0275\u0275elementContainerStart(0),v.\u0275\u0275elementStart(1,"div",14),v.\u0275\u0275element(2,"div",15),v.\u0275\u0275element(3,"div",16),v.\u0275\u0275element(4,"div",17),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(5,"div",18),v.\u0275\u0275element(6,"div",15),v.\u0275\u0275element(7,"div",16),v.\u0275\u0275element(8,"div",17),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementContainerEnd())}function w(x,U){if(1&x){const Z=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div",19),v.\u0275\u0275listener("cdkObserveContent",function(){return v.\u0275\u0275restoreView(Z),v.\u0275\u0275nextContext().updateOutlineGap()}),v.\u0275\u0275projection(1,1),v.\u0275\u0275elementEnd()}if(2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Z.appearance)}}function A(x,U){if(1&x&&(v.\u0275\u0275elementContainerStart(0),v.\u0275\u0275projection(1,2),v.\u0275\u0275elementStart(2,"span"),v.\u0275\u0275text(3),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementContainerEnd()),2&x){const Z=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(3),v.\u0275\u0275textInterpolate(Z._control.placeholder)}}function S(x,U){1&x&&v.\u0275\u0275projection(0,3,["*ngSwitchCase","true"])}function M(x,U){1&x&&(v.\u0275\u0275elementStart(0,"span",23),v.\u0275\u0275text(1," *"),v.\u0275\u0275elementEnd())}function I(x,U){if(1&x){const Z=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"label",20,21),v.\u0275\u0275listener("cdkObserveContent",function(){return v.\u0275\u0275restoreView(Z),v.\u0275\u0275nextContext().updateOutlineGap()}),v.\u0275\u0275template(2,A,4,1,"ng-container",12),v.\u0275\u0275template(3,S,1,0,"ng-content",12),v.\u0275\u0275template(4,M,2,0,"span",22),v.\u0275\u0275elementEnd()}if(2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275classProp("mat-empty",Z._control.empty&&!Z._shouldAlwaysFloat())("mat-form-field-empty",Z._control.empty&&!Z._shouldAlwaysFloat())("mat-accent","accent"==Z.color)("mat-warn","warn"==Z.color),v.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Z.appearance)("id",Z._labelId)("ngSwitch",Z._hasLabel()),v.\u0275\u0275attribute("for",Z._control.id)("aria-owns",Z._control.id),v.\u0275\u0275advance(2),v.\u0275\u0275property("ngSwitchCase",!1),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngSwitchCase",!0),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",!Z.hideRequiredMarker&&Z._control.required&&!Z._control.disabled)}}function b(x,U){1&x&&(v.\u0275\u0275elementStart(0,"div",24),v.\u0275\u0275projection(1,4),v.\u0275\u0275elementEnd())}function L(x,U){if(1&x&&(v.\u0275\u0275elementStart(0,"div",25),v.\u0275\u0275element(1,"span",26),v.\u0275\u0275elementEnd()),2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275advance(1),v.\u0275\u0275classProp("mat-accent","accent"==Z.color)("mat-warn","warn"==Z.color)}}function F(x,U){if(1&x&&(v.\u0275\u0275elementStart(0,"div"),v.\u0275\u0275projection(1,5),v.\u0275\u0275elementEnd()),2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275property("@transitionMessages",Z._subscriptAnimationState)}}function ne(x,U){if(1&x&&(v.\u0275\u0275elementStart(0,"div",30),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&x){const Z=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("id",Z._hintLabelId),v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate(Z.hintLabel)}}function Y(x,U){if(1&x&&(v.\u0275\u0275elementStart(0,"div",27),v.\u0275\u0275template(1,ne,2,2,"div",28),v.\u0275\u0275projection(2,6),v.\u0275\u0275element(3,"div",29),v.\u0275\u0275projection(4,7),v.\u0275\u0275elementEnd()),2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275property("@transitionMessages",Z._subscriptAnimationState),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",Z.hintLabel)}}const Q=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],te=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let $=0;const J=new v.InjectionToken("MatError");let ie=(()=>{class x{constructor(Z,_e){this.id="mat-error-"+$++,Z||_e.nativeElement.setAttribute("aria-live","polite")}}return x.\u0275fac=function(Z){return new(Z||x)(v.\u0275\u0275injectAttribute("aria-live"),v.\u0275\u0275directiveInject(v.ElementRef))},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Z,_e){2&Z&&v.\u0275\u0275attribute("id",_e.id)},inputs:{id:"id"},features:[v.\u0275\u0275ProvidersFeature([{provide:J,useExisting:x}])]}),x})();const ae={transitionMessages:(0,c.X$)("transitionMessages",[(0,c.SB)("enter",(0,c.oB)({opacity:1,transform:"translateY(0%)"})),(0,c.eR)("void => enter",[(0,c.oB)({opacity:0,transform:"translateY(-5px)"}),(0,c.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let le=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x}),x})();function Oe(){return Error("Placeholder attribute and child element were both specified.")}function Le(x){return Error(`A hint was already declared for 'align="${x}"'.`)}function Ye(){return Error("mat-form-field must contain a MatFormFieldControl.")}let Je=0;const gt=new v.InjectionToken("MatHint");let Ue=(()=>{class x{constructor(){this.align="start",this.id="mat-hint-"+Je++}}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Z,_e){2&Z&&(v.\u0275\u0275attribute("id",_e.id)("align",null),v.\u0275\u0275classProp("mat-form-field-hint-end","end"===_e.align))},inputs:{align:"align",id:"id"},features:[v.\u0275\u0275ProvidersFeature([{provide:gt,useExisting:x}])]}),x})(),tt=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["mat-label"]]}),x})(),at=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["mat-placeholder"]]}),x})();const ft=new v.InjectionToken("MatPrefix");let vt=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["","matPrefix",""]],features:[v.\u0275\u0275ProvidersFeature([{provide:ft,useExisting:x}])]}),x})();const yt=new v.InjectionToken("MatSuffix");let ot=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["","matSuffix",""]],features:[v.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:x}])]}),x})(),_t=0;const Bt=(0,m.mixinColor)(class{constructor(x){this._elementRef=x}},"primary"),Et=new v.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ee=new v.InjectionToken("MatFormField");let fe=(()=>{class x extends Bt{constructor(Z,_e,Be,$e,st,ut,St){super(Z),this._changeDetectorRef=_e,this._dir=Be,this._defaults=$e,this._platform=st,this._ngZone=ut,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new d.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+_t++,this._labelId="mat-form-field-label-"+_t++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==St,this.appearance=$e&&$e.appearance?$e.appearance:"legacy",this._hideRequiredMarker=!(!$e||null==$e.hideRequiredMarker)&&$e.hideRequiredMarker}get appearance(){return this._appearance}set appearance(Z){const _e=this._appearance;this._appearance=Z||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&_e!==Z&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Z){this._hideRequiredMarker=(0,o.Ig)(Z)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Z){this._hintLabel=Z,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Z){Z!==this._floatLabel&&(this._floatLabel=Z||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Z){this._explicitFormFieldControl=Z}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Z=this._control;Z.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Z.controlType}`),Z.stateChanges.pipe((0,r.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Z.ngControl&&Z.ngControl.valueChanges&&Z.ngControl.valueChanges.pipe((0,s.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,s.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,u.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,r.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,r.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,s.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(Z){const _e=this._control?this._control.ngControl:null;return _e&&_e[Z]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,h.R)(this._label.nativeElement,"transitionend").pipe((0,i.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let Z=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Z.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const _e=this._hintChildren?this._hintChildren.find($e=>"start"===$e.align):null,Be=this._hintChildren?this._hintChildren.find($e=>"end"===$e.align):null;_e?Z.push(_e.id):this._hintLabel&&Z.push(this._hintLabelId),Be&&Z.push(Be.id)}else this._errorChildren&&Z.push(...this._errorChildren.map(_e=>_e.id));this._control.setDescribedByIds(Z)}}_validateControlChild(){}updateOutlineGap(){const Z=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&Z&&Z.children.length&&Z.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let _e=0,Be=0;const $e=this._connectionContainerRef.nativeElement,st=$e.querySelectorAll(".mat-form-field-outline-start"),ut=$e.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const St=$e.getBoundingClientRect();if(0===St.width&&0===St.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Xt=this._getStartEnd(St),tn=Z.children,Dt=this._getStartEnd(tn[0].getBoundingClientRect());let Kt=0;for(let et=0;et0?.75*Kt+10:0}for(let St=0;St{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275mod=v.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=v.\u0275\u0275defineInjector({imports:[[f.CommonModule,m.MatCommonModule,n.Q8],m.MatCommonModule]}),x})()},5245:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{ICON_REGISTRY_PROVIDER:()=>ne,ICON_REGISTRY_PROVIDER_FACTORY:()=>F,MAT_ICON_LOCATION:()=>J,MAT_ICON_LOCATION_FACTORY:()=>ie,MatIcon:()=>Le,MatIconModule:()=>Ye,MatIconRegistry:()=>L,getMatIconFailedToSanitizeLiteralError:()=>I,getMatIconFailedToSanitizeUrlError:()=>M,getMatIconNameNotFoundError:()=>A,getMatIconNoHttpProviderError:()=>S});var n=p(5e3),f=p(508),v=p(3191),m=p(9808),o=p(1086),d=p(1737),u=p(567),h=p(2654),r=p(2868),s=p(4850),i=p(7221),c=p(537),l=p(8117),g=p(2986),y=p(520),E=p(2313);const T=["*"];let D;function w(Je){var gt;return(null===(gt=function(){if(void 0===D&&(D=null,"undefined"!=typeof window)){const Je=window;void 0!==Je.trustedTypes&&(D=Je.trustedTypes.createPolicy("angular#components",{createHTML:gt=>gt}))}return D}())||void 0===gt?void 0:gt.createHTML(Je))||Je}function A(Je){return Error(`Unable to find icon with the name "${Je}"`)}function S(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function M(Je){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Je}".`)}function I(Je){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Je}".`)}class b{constructor(gt,Ue,tt){this.url=gt,this.svgText=Ue,this.options=tt}}let L=(()=>{class Je{constructor(Ue,tt,at,ft){this._httpClient=Ue,this._sanitizer=tt,this._errorHandler=ft,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=at}addSvgIcon(Ue,tt,at){return this.addSvgIconInNamespace("",Ue,tt,at)}addSvgIconLiteral(Ue,tt,at){return this.addSvgIconLiteralInNamespace("",Ue,tt,at)}addSvgIconInNamespace(Ue,tt,at,ft){return this._addSvgIconConfig(Ue,tt,new b(at,null,ft))}addSvgIconResolver(Ue){return this._resolvers.push(Ue),this}addSvgIconLiteralInNamespace(Ue,tt,at,ft){const vt=this._sanitizer.sanitize(n.SecurityContext.HTML,at);if(!vt)throw I(at);const yt=w(vt);return this._addSvgIconConfig(Ue,tt,new b("",yt,ft))}addSvgIconSet(Ue,tt){return this.addSvgIconSetInNamespace("",Ue,tt)}addSvgIconSetLiteral(Ue,tt){return this.addSvgIconSetLiteralInNamespace("",Ue,tt)}addSvgIconSetInNamespace(Ue,tt,at){return this._addSvgIconSetConfig(Ue,new b(tt,null,at))}addSvgIconSetLiteralInNamespace(Ue,tt,at){const ft=this._sanitizer.sanitize(n.SecurityContext.HTML,tt);if(!ft)throw I(tt);const vt=w(ft);return this._addSvgIconSetConfig(Ue,new b("",vt,at))}registerFontClassAlias(Ue,tt=Ue){return this._fontCssClassesByAlias.set(Ue,tt),this}classNameForFontAlias(Ue){return this._fontCssClassesByAlias.get(Ue)||Ue}setDefaultFontSetClass(Ue){return this._defaultFontSetClass=Ue,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ue){const tt=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Ue);if(!tt)throw M(Ue);const at=this._cachedIconsByUrl.get(tt);return at?(0,o.of)(Y(at)):this._loadSvgIconFromConfig(new b(Ue,null)).pipe((0,r.b)(ft=>this._cachedIconsByUrl.set(tt,ft)),(0,s.U)(ft=>Y(ft)))}getNamedSvgIcon(Ue,tt=""){const at=Q(tt,Ue);let ft=this._svgIconConfigs.get(at);if(ft)return this._getSvgFromConfig(ft);if(ft=this._getIconConfigFromResolvers(tt,Ue),ft)return this._svgIconConfigs.set(at,ft),this._getSvgFromConfig(ft);const vt=this._iconSetConfigs.get(tt);return vt?this._getSvgFromIconSetConfigs(Ue,vt):(0,d._)(A(at))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ue){return Ue.svgText?(0,o.of)(Y(this._svgElementFromConfig(Ue))):this._loadSvgIconFromConfig(Ue).pipe((0,s.U)(tt=>Y(tt)))}_getSvgFromIconSetConfigs(Ue,tt){const at=this._extractIconWithNameFromAnySet(Ue,tt);if(at)return(0,o.of)(at);const ft=tt.filter(vt=>!vt.svgText).map(vt=>this._loadSvgIconSetFromConfig(vt).pipe((0,i.K)(yt=>{const _t=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,vt.url)} failed: ${yt.message}`;return this._errorHandler.handleError(new Error(_t)),(0,o.of)(null)})));return(0,u.D)(ft).pipe((0,s.U)(()=>{const vt=this._extractIconWithNameFromAnySet(Ue,tt);if(!vt)throw A(Ue);return vt}))}_extractIconWithNameFromAnySet(Ue,tt){for(let at=tt.length-1;at>=0;at--){const ft=tt[at];if(ft.svgText&&ft.svgText.toString().indexOf(Ue)>-1){const vt=this._svgElementFromConfig(ft),yt=this._extractSvgIconFromSet(vt,Ue,ft.options);if(yt)return yt}}return null}_loadSvgIconFromConfig(Ue){return this._fetchIcon(Ue).pipe((0,r.b)(tt=>Ue.svgText=tt),(0,s.U)(()=>this._svgElementFromConfig(Ue)))}_loadSvgIconSetFromConfig(Ue){return Ue.svgText?(0,o.of)(null):this._fetchIcon(Ue).pipe((0,r.b)(tt=>Ue.svgText=tt))}_extractSvgIconFromSet(Ue,tt,at){const ft=Ue.querySelector(`[id="${tt}"]`);if(!ft)return null;const vt=ft.cloneNode(!0);if(vt.removeAttribute("id"),"svg"===vt.nodeName.toLowerCase())return this._setSvgAttributes(vt,at);if("symbol"===vt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(vt),at);const yt=this._svgElementFromString(w(""));return yt.appendChild(vt),this._setSvgAttributes(yt,at)}_svgElementFromString(Ue){const tt=this._document.createElement("DIV");tt.innerHTML=Ue;const at=tt.querySelector("svg");if(!at)throw Error(" tag not found");return at}_toSvgElement(Ue){const tt=this._svgElementFromString(w("")),at=Ue.attributes;for(let ft=0;ftw(At)),(0,c.x)(()=>this._inProgressUrlFetches.delete(yt)),(0,l.B)());return this._inProgressUrlFetches.set(yt,_t),_t}_addSvgIconConfig(Ue,tt,at){return this._svgIconConfigs.set(Q(Ue,tt),at),this}_addSvgIconSetConfig(Ue,tt){const at=this._iconSetConfigs.get(Ue);return at?at.push(tt):this._iconSetConfigs.set(Ue,[tt]),this}_svgElementFromConfig(Ue){if(!Ue.svgElement){const tt=this._svgElementFromString(Ue.svgText);this._setSvgAttributes(tt,Ue.options),Ue.svgElement=tt}return Ue.svgElement}_getIconConfigFromResolvers(Ue,tt){for(let at=0;atgt?gt.pathname+gt.search:""}}const ae=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],le=ae.map(Je=>`[${Je}]`).join(", "),Oe=/^url\(['"]?#(.*?)['"]?\)$/;let Le=(()=>{class Je extends ${constructor(Ue,tt,at,ft,vt){super(Ue),this._iconRegistry=tt,this._location=ft,this._errorHandler=vt,this._inline=!1,this._currentIconFetch=h.w.EMPTY,at||Ue.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Ue){this._inline=(0,v.Ig)(Ue)}get svgIcon(){return this._svgIcon}set svgIcon(Ue){Ue!==this._svgIcon&&(Ue?this._updateSvgIcon(Ue):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ue)}get fontSet(){return this._fontSet}set fontSet(Ue){const tt=this._cleanupFontValue(Ue);tt!==this._fontSet&&(this._fontSet=tt,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ue){const tt=this._cleanupFontValue(Ue);tt!==this._fontIcon&&(this._fontIcon=tt,this._updateFontIconClasses())}_splitIconName(Ue){if(!Ue)return["",""];const tt=Ue.split(":");switch(tt.length){case 1:return["",tt[0]];case 2:return tt;default:throw Error(`Invalid icon name: "${Ue}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ue=this._elementsWithExternalReferences;if(Ue&&Ue.size){const tt=this._location.getPathname();tt!==this._previousPath&&(this._previousPath=tt,this._prependPathToReferences(tt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ue){this._clearSvgElement();const tt=Ue.querySelectorAll("style");for(let ft=0;ft{at.forEach(vt=>{ft.setAttribute(vt.name,`url('${Ue}#${vt.value}')`)})})}_cacheChildrenWithExternalReferences(Ue){const tt=Ue.querySelectorAll(le),at=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ft=0;ft{const yt=tt[ft],ot=yt.getAttribute(vt),_t=ot?ot.match(Oe):null;if(_t){let At=at.get(yt);At||(At=[],at.set(yt,At)),At.push({name:vt,value:_t[1]})}})}_updateSvgIcon(Ue){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ue){const[tt,at]=this._splitIconName(Ue);tt&&(this._svgNamespace=tt),at&&(this._svgName=at),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(at,tt).pipe((0,g.q)(1)).subscribe(ft=>this._setSvgElement(ft),ft=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${tt}:${at}! ${ft.message}`))})}}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(L),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(J),n.\u0275\u0275directiveInject(n.ErrorHandler))},Je.\u0275cmp=n.\u0275\u0275defineComponent({type:Je,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Ue,tt){2&Ue&&(n.\u0275\u0275attribute("data-mat-icon-type",tt._usingFontIcon()?"font":"svg")("data-mat-icon-name",tt._svgName||tt.fontIcon)("data-mat-icon-namespace",tt._svgNamespace||tt.fontSet),n.\u0275\u0275classProp("mat-icon-inline",tt.inline)("mat-icon-no-color","primary"!==tt.color&&"accent"!==tt.color&&"warn"!==tt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:T,decls:1,vars:0,template:function(Ue,tt){1&Ue&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),Je})(),Ye=(()=>{class Je{}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275mod=n.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatCommonModule],f.MatCommonModule]}),Je})()},7531:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_INPUT_VALUE_ACCESSOR:()=>y,MatInput:()=>O,MatInputModule:()=>w,getMatInputUnsupportedTypeError:()=>g});var n=p(3191),f=p(925),v=p(5e3),m=p(3075),o=p(508),d=p(7322),u=p(8929),h=p(8896);const r=(0,f.i$)({passive:!0});let s=(()=>{class A{constructor(M,I){this._platform=M,this._ngZone=I,this._monitoredElements=new Map}monitor(M){if(!this._platform.isBrowser)return h.E;const I=(0,n.fI)(M),b=this._monitoredElements.get(I);if(b)return b.subject;const L=new u.xQ,F="cdk-text-field-autofilled",ne=Y=>{"cdk-text-field-autofill-start"!==Y.animationName||I.classList.contains(F)?"cdk-text-field-autofill-end"===Y.animationName&&I.classList.contains(F)&&(I.classList.remove(F),this._ngZone.run(()=>L.next({target:Y.target,isAutofilled:!1}))):(I.classList.add(F),this._ngZone.run(()=>L.next({target:Y.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{I.addEventListener("animationstart",ne,r),I.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(I,{subject:L,unlisten:()=>{I.removeEventListener("animationstart",ne,r)}}),L}stopMonitoring(M){const I=(0,n.fI)(M),b=this._monitoredElements.get(I);b&&(b.unlisten(),b.subject.complete(),I.classList.remove("cdk-text-field-autofill-monitored"),I.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(I))}ngOnDestroy(){this._monitoredElements.forEach((M,I)=>this.stopMonitoring(I))}}return A.\u0275fac=function(M){return new(M||A)(v.\u0275\u0275inject(f.t4),v.\u0275\u0275inject(v.NgZone))},A.\u0275prov=v.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),l=(()=>{class A{}return A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=v.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=v.\u0275\u0275defineInjector({imports:[[f.ud]]}),A})();function g(A){return Error(`Input type "${A}" isn't supported by matInput.`)}const y=new v.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),E=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let T=0;const D=(0,o.mixinErrorState)(class{constructor(A,S,M,I){this._defaultErrorStateMatcher=A,this._parentForm=S,this._parentFormGroup=M,this.ngControl=I}});let O=(()=>{class A extends D{constructor(M,I,b,L,F,ne,Y,Q,te,$){super(ne,L,F,b),this._elementRef=M,this._platform=I,this._autofillMonitor=Q,this._formField=$,this._uid="mat-input-"+T++,this.focused=!1,this.stateChanges=new u.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(ae=>(0,f.qK)().has(ae));const J=this._elementRef.nativeElement,ie=J.nodeName.toLowerCase();this._inputValueAccessor=Y||J,this._previousNativeValue=this.value,this.id=this.id,I.IOS&&te.runOutsideAngular(()=>{M.nativeElement.addEventListener("keyup",ae=>{const le=ae.target;!le.value&&0===le.selectionStart&&0===le.selectionEnd&&(le.setSelectionRange(1,1),le.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ie,this._isTextarea="textarea"===ie,this._isInFormField=!!$,this._isNativeSelect&&(this.controlType=J.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(M){this._disabled=(0,n.Ig)(M),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(M){this._id=M||this._uid}get required(){var M,I,b,L;return null!==(L=null!==(M=this._required)&&void 0!==M?M:null===(b=null===(I=this.ngControl)||void 0===I?void 0:I.control)||void 0===b?void 0:b.hasValidator(m.Validators.required))&&void 0!==L&&L}set required(M){this._required=(0,n.Ig)(M)}get type(){return this._type}set type(M){this._type=M||"text",this._validateType(),!this._isTextarea&&(0,f.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(M){M!==this.value&&(this._inputValueAccessor.value=M,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(M){this._readonly=(0,n.Ig)(M)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(M=>{this.autofilled=M.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(M){this._elementRef.nativeElement.focus(M)}_focusChanged(M){M!==this.focused&&(this.focused=M,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var M,I;const b=(null===(I=null===(M=this._formField)||void 0===M?void 0:M._hideControlPlaceholder)||void 0===I?void 0:I.call(M))?null:this.placeholder;if(b!==this._previousPlaceholder){const L=this._elementRef.nativeElement;this._previousPlaceholder=b,b?L.setAttribute("placeholder",b):L.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const M=this._elementRef.nativeElement.value;this._previousNativeValue!==M&&(this._previousNativeValue=M,this.stateChanges.next())}_validateType(){E.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let M=this._elementRef.nativeElement.validity;return M&&M.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const M=this._elementRef.nativeElement,I=M.options[0];return this.focused||M.multiple||!this.empty||!!(M.selectedIndex>-1&&I&&I.label)}return this.focused||!this.empty}setDescribedByIds(M){M.length?this._elementRef.nativeElement.setAttribute("aria-describedby",M.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const M=this._elementRef.nativeElement;return this._isNativeSelect&&(M.multiple||M.size>1)}}return A.\u0275fac=function(M){return new(M||A)(v.\u0275\u0275directiveInject(v.ElementRef),v.\u0275\u0275directiveInject(f.t4),v.\u0275\u0275directiveInject(m.NgControl,10),v.\u0275\u0275directiveInject(m.NgForm,8),v.\u0275\u0275directiveInject(m.FormGroupDirective,8),v.\u0275\u0275directiveInject(o.ErrorStateMatcher),v.\u0275\u0275directiveInject(y,10),v.\u0275\u0275directiveInject(s),v.\u0275\u0275directiveInject(v.NgZone),v.\u0275\u0275directiveInject(d.MAT_FORM_FIELD,8))},A.\u0275dir=v.\u0275\u0275defineDirective({type:A,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(M,I){1&M&&v.\u0275\u0275listener("focus",function(){return I._focusChanged(!0)})("blur",function(){return I._focusChanged(!1)})("input",function(){return I._onInput()}),2&M&&(v.\u0275\u0275hostProperty("disabled",I.disabled)("required",I.required),v.\u0275\u0275attribute("id",I.id)("data-placeholder",I.placeholder)("readonly",I.readonly&&!I._isNativeSelect||null)("aria-invalid",I.empty&&I.required?null:I.errorState)("aria-required",I.required),v.\u0275\u0275classProp("mat-input-server",I._isServer)("mat-native-select-inline",I._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[v.\u0275\u0275ProvidersFeature([{provide:d.MatFormFieldControl,useExisting:A}]),v.\u0275\u0275InheritDefinitionFeature,v.\u0275\u0275NgOnChangesFeature]}),A})(),w=(()=>{class A{}return A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=v.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=v.\u0275\u0275defineInjector({providers:[o.ErrorStateMatcher],imports:[[l,d.MatFormFieldModule,o.MatCommonModule],l,d.MatFormFieldModule]}),A})()},2181:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_MENU_CONTENT:()=>te,MAT_MENU_DEFAULT_OPTIONS:()=>gt,MAT_MENU_PANEL:()=>Le,MAT_MENU_SCROLL_STRATEGY:()=>vt,MatMenu:()=>ft,MatMenuContent:()=>J,MatMenuItem:()=>Je,MatMenuModule:()=>Et,MatMenuTrigger:()=>Bt,_MatMenuBase:()=>at,_MatMenuContentBase:()=>$,_MatMenuTriggerBase:()=>Tt,fadeInItems:()=>Y,matMenuAnimations:()=>ne,transformMenu:()=>Q});var n=p(5664),f=p(3191),v=p(1159),m=p(5e3),o=p(8929),d=p(2654),u=p(6787),h=p(1086),r=p(8139),s=p(1059),i=p(7545),c=p(2986),l=p(2198),g=p(7625),y=p(943),E=p(1777),T=p(7429),D=p(9808),O=p(508),w=p(1314),A=p(925),S=p(226),M=p(9071);const I=["mat-menu-item",""];function b(Ee,fe){1&Ee&&(m.\u0275\u0275namespaceSVG(),m.\u0275\u0275elementStart(0,"svg",2),m.\u0275\u0275element(1,"polygon",3),m.\u0275\u0275elementEnd())}const L=["*"];function F(Ee,fe){if(1&Ee){const H=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"div",0),m.\u0275\u0275listener("keydown",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._handleKeydown(U)})("click",function(){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._onAnimationStart(U)})("@transformMenu.done",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._onAnimationDone(U)}),m.\u0275\u0275elementStart(1,"div",1),m.\u0275\u0275projection(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()}if(2&Ee){const H=m.\u0275\u0275nextContext();m.\u0275\u0275property("id",H.panelId)("ngClass",H._classList)("@transformMenu",H._panelAnimationState),m.\u0275\u0275attribute("aria-label",H.ariaLabel||null)("aria-labelledby",H.ariaLabelledby||null)("aria-describedby",H.ariaDescribedby||null)}}const ne={transformMenu:(0,E.X$)("transformMenu",[(0,E.SB)("void",(0,E.oB)({opacity:0,transform:"scale(0.8)"})),(0,E.eR)("void => enter",(0,E.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,E.oB)({opacity:1,transform:"scale(1)"}))),(0,E.eR)("* => void",(0,E.jt)("100ms 25ms linear",(0,E.oB)({opacity:0})))]),fadeInItems:(0,E.X$)("fadeInItems",[(0,E.SB)("showing",(0,E.oB)({opacity:1})),(0,E.eR)("void => *",[(0,E.oB)({opacity:0}),(0,E.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Y=ne.fadeInItems,Q=ne.transformMenu,te=new m.InjectionToken("MatMenuContent");let $=(()=>{class Ee{constructor(H,x,U,Z,_e,Be,$e){this._template=H,this._componentFactoryResolver=x,this._appRef=U,this._injector=Z,this._viewContainerRef=_e,this._document=Be,this._changeDetectorRef=$e,this._attached=new o.xQ}attach(H={}){this._portal||(this._portal=new T.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new T.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const x=this._template.elementRef.nativeElement;x.parentNode.insertBefore(this._outlet.outletElement,x),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,H),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.TemplateRef),m.\u0275\u0275directiveInject(m.ComponentFactoryResolver),m.\u0275\u0275directiveInject(m.ApplicationRef),m.\u0275\u0275directiveInject(m.Injector),m.\u0275\u0275directiveInject(m.ViewContainerRef),m.\u0275\u0275directiveInject(D.DOCUMENT),m.\u0275\u0275directiveInject(m.ChangeDetectorRef))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee}),Ee})(),J=(()=>{class Ee extends ${}return Ee.\u0275fac=function(){let fe;return function(x){return(fe||(fe=m.\u0275\u0275getInheritedFactory(Ee)))(x||Ee)}}(),Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,selectors:[["ng-template","matMenuContent",""]],features:[m.\u0275\u0275ProvidersFeature([{provide:te,useExisting:Ee}]),m.\u0275\u0275InheritDefinitionFeature]}),Ee})();const Le=new m.InjectionToken("MAT_MENU_PANEL"),Ye=(0,O.mixinDisableRipple)((0,O.mixinDisabled)(class{}));let Je=(()=>{class Ee extends Ye{constructor(H,x,U,Z,_e){super(),this._elementRef=H,this._focusMonitor=U,this._parentMenu=Z,this._changeDetectorRef=_e,this.role="menuitem",this._hovered=new o.xQ,this._focused=new o.xQ,this._highlighted=!1,this._triggersSubmenu=!1,Z&&Z.addItem&&Z.addItem(this)}focus(H,x){this._focusMonitor&&H?this._focusMonitor.focusVia(this._getHostElement(),H,x):this._getHostElement().focus(x),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(H){this.disabled&&(H.preventDefault(),H.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var H;const x=this._elementRef.nativeElement.cloneNode(!0),U=x.querySelectorAll("mat-icon, .material-icons");for(let Z=0;Z{class Ee{constructor(H,x,U){this._elementRef=H,this._ngZone=x,this._defaultOptions=U,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new m.QueryList,this._tabSubscription=d.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new m.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+tt++}get xPosition(){return this._xPosition}set xPosition(H){this._xPosition=H,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(H){this._yPosition=H,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(H){this._overlapTrigger=(0,f.Ig)(H)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,f.Ig)(H)}set panelClass(H){const x=this._previousPanelClass;x&&x.length&&x.split(" ").forEach(U=>{this._classList[U]=!1}),this._previousPanelClass=H,H&&H.length&&(H.split(" ").forEach(U=>{this._classList[U]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(H){this.panelClass=H}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,s.O)(this._directDescendantItems),(0,i.w)(H=>(0,u.T)(...H.map(x=>x._focused)))).subscribe(H=>this._keyManager.updateActiveItem(H))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,s.O)(this._directDescendantItems),(0,i.w)(x=>(0,u.T)(...x.map(U=>U._hovered))))}addItem(H){}removeItem(H){}_handleKeydown(H){const x=H.keyCode,U=this._keyManager;switch(x){case v.hY:(0,v.Vb)(H)||(H.preventDefault(),this.closed.emit("keydown"));break;case v.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(x===v.LH||x===v.JH)&&U.setFocusOrigin("keyboard"),U.onKeydown(H)}}focusFirstItem(H="program"){this.lazyContent?this._ngZone.onStable.pipe((0,c.q)(1)).subscribe(()=>this._focusFirstItem(H)):this._focusFirstItem(H)}_focusFirstItem(H){const x=this._keyManager;if(x.setFocusOrigin(H).setFirstItemActive(),!x.activeItem&&this._directDescendantItems.length){let U=this._directDescendantItems.first._getHostElement().parentElement;for(;U;){if("menu"===U.getAttribute("role")){U.focus();break}U=U.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(H){const x=Math.min(this._baseElevation+H,24),U=`${this._elevationPrefix}${x}`,Z=Object.keys(this._classList).find(_e=>_e.startsWith(this._elevationPrefix));(!Z||Z===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[U]=!0,this._previousElevation=U)}setPositionClasses(H=this.xPosition,x=this.yPosition){const U=this._classList;U["mat-menu-before"]="before"===H,U["mat-menu-after"]="after"===H,U["mat-menu-above"]="above"===x,U["mat-menu-below"]="below"===x}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(H){this._animationDone.next(H),this._isAnimating=!1}_onAnimationStart(H){this._isAnimating=!0,"enter"===H.toState&&0===this._keyManager.activeItemIndex&&(H.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,s.O)(this._allItems)).subscribe(H=>{this._directDescendantItems.reset(H.filter(x=>x._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(gt))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,contentQueries:function(H,x,U){if(1&H&&(m.\u0275\u0275contentQuery(U,te,5),m.\u0275\u0275contentQuery(U,Je,5),m.\u0275\u0275contentQuery(U,Je,4)),2&H){let Z;m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(x.lazyContent=Z.first),m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(x._allItems=Z),m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(x.items=Z)}},viewQuery:function(H,x){if(1&H&&m.\u0275\u0275viewQuery(m.TemplateRef,5),2&H){let U;m.\u0275\u0275queryRefresh(U=m.\u0275\u0275loadQuery())&&(x.templateRef=U.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ee})(),ft=(()=>{class Ee extends at{constructor(H,x,U){super(H,x,U),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(gt))},Ee.\u0275cmp=m.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(H,x){2&H&&m.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[m.\u0275\u0275ProvidersFeature([{provide:Le,useExisting:Ee}]),m.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:L,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(H,x){1&H&&(m.\u0275\u0275projectionDef(),m.\u0275\u0275template(0,F,3,6,"ng-template"))},directives:[D.NgClass],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[ne.transformMenu,ne.fadeInItems]},changeDetection:0}),Ee})();const vt=new m.InjectionToken("mat-menu-scroll-strategy"),ot={provide:vt,deps:[w.aV],useFactory:function(Ee){return()=>Ee.scrollStrategies.reposition()}},At=(0,A.i$)({passive:!0});let Tt=(()=>{class Ee{constructor(H,x,U,Z,_e,Be,$e,st){this._overlay=H,this._element=x,this._viewContainerRef=U,this._menuItemInstance=Be,this._dir=$e,this._focusMonitor=st,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=d.w.EMPTY,this._hoverSubscription=d.w.EMPTY,this._menuCloseSubscription=d.w.EMPTY,this._handleTouchStart=ut=>{(0,n.yG)(ut)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new m.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new m.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=Z,this._parentMaterialMenu=_e instanceof at?_e:void 0,x.nativeElement.addEventListener("touchstart",this._handleTouchStart,At),Be&&(Be._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(H){this.menu=H}get menu(){return this._menu}set menu(H){H!==this._menu&&(this._menu=H,this._menuCloseSubscription.unsubscribe(),H&&(this._menuCloseSubscription=H.close.subscribe(x=>{this._destroyMenu(x),("click"===x||"tab"===x)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(x)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,At),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const H=this._createOverlay(),x=H.getConfig();this._setPosition(x.positionStrategy),x.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,H.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof at&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(H,x){this._focusMonitor&&H?this._focusMonitor.focusVia(this._element,H,x):this._element.nativeElement.focus(x)}updatePosition(){var H;null===(H=this._overlayRef)||void 0===H||H.updatePosition()}_destroyMenu(H){if(!this._overlayRef||!this.menuOpen)return;const x=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===H||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,x instanceof at?(x._resetAnimation(),x.lazyContent?x._animationDone.pipe((0,l.h)(U=>"void"===U.toState),(0,c.q)(1),(0,g.R)(x.lazyContent._attached)).subscribe({next:()=>x.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),x.lazyContent&&x.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let H=0,x=this.menu.parentMenu;for(;x;)H++,x=x.parentMenu;this.menu.setElevation(H)}}_setIsMenuOpen(H){this._menuOpen=H,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(H)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const H=this._getOverlayConfig();this._subscribeToPositions(H.positionStrategy),this._overlayRef=this._overlay.create(H),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new w.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(H){this.menu.setPositionClasses&&H.positionChanges.subscribe(x=>{this.menu.setPositionClasses("start"===x.connectionPair.overlayX?"after":"before","top"===x.connectionPair.overlayY?"below":"above")})}_setPosition(H){let[x,U]="before"===this.menu.xPosition?["end","start"]:["start","end"],[Z,_e]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Be,$e]=[Z,_e],[st,ut]=[x,U],St=0;this.triggersSubmenu()?(ut=x="before"===this.menu.xPosition?"start":"end",U=st="end"===x?"start":"end",St="bottom"===Z?8:-8):this.menu.overlapTrigger||(Be="top"===Z?"bottom":"top",$e="top"===_e?"bottom":"top"),H.withPositions([{originX:x,originY:Be,overlayX:st,overlayY:Z,offsetY:St},{originX:U,originY:Be,overlayX:ut,overlayY:Z,offsetY:St},{originX:x,originY:$e,overlayX:st,overlayY:_e,offsetY:-St},{originX:U,originY:$e,overlayX:ut,overlayY:_e,offsetY:-St}])}_menuClosingActions(){const H=this._overlayRef.backdropClick(),x=this._overlayRef.detachments(),U=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,h.of)(),Z=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,l.h)(_e=>_e!==this._menuItemInstance),(0,l.h)(()=>this._menuOpen)):(0,h.of)();return(0,u.T)(H,U,Z,x)}_handleMousedown(H){(0,n.X6)(H)||(this._openedBy=0===H.button?"mouse":void 0,this.triggersSubmenu()&&H.preventDefault())}_handleKeydown(H){const x=H.keyCode;(x===v.K5||x===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(x===v.SV&&"ltr"===this.dir||x===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(H){this.triggersSubmenu()?(H.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,l.h)(H=>H===this._menuItemInstance&&!H.disabled),(0,y.g)(0,r.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof at&&this.menu._isAnimating?this.menu._animationDone.pipe((0,c.q)(1),(0,y.g)(0,r.E),(0,g.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new T.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(w.aV),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.ViewContainerRef),m.\u0275\u0275directiveInject(vt),m.\u0275\u0275directiveInject(Le,8),m.\u0275\u0275directiveInject(Je,10),m.\u0275\u0275directiveInject(S.Is,8),m.\u0275\u0275directiveInject(n.tE))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(H,x){1&H&&m.\u0275\u0275listener("click",function(Z){return x._handleClick(Z)})("mousedown",function(Z){return x._handleMousedown(Z)})("keydown",function(Z){return x._handleKeydown(Z)}),2&H&&m.\u0275\u0275attribute("aria-expanded",x.menuOpen||null)("aria-controls",x.menuOpen?x.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ee})(),Bt=(()=>{class Ee extends Tt{}return Ee.\u0275fac=function(){let fe;return function(x){return(fe||(fe=m.\u0275\u0275getInheritedFactory(Ee)))(x||Ee)}}(),Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[m.\u0275\u0275InheritDefinitionFeature]}),Ee})(),Et=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=m.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=m.\u0275\u0275defineInjector({providers:[ot],imports:[[D.CommonModule,O.MatCommonModule,O.MatRippleModule,w.U8],M.ZD,O.MatCommonModule]}),Ee})()},7850:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_PAGINATOR_DEFAULT_OPTIONS:()=>st,MAT_PAGINATOR_INTL_PROVIDER:()=>_e,MAT_PAGINATOR_INTL_PROVIDER_FACTORY:()=>Z,MatPaginator:()=>Xt,MatPaginatorIntl:()=>U,MatPaginatorModule:()=>tn,PageEvent:()=>$e,_MatPaginatorBase:()=>St});var n=p(9808),f=p(5e3),v=p(508),m=p(7423),o=p(4107),d=p(1314),u=p(5664),h=p(9071),r=p(3191),s=p(1159),i=p(8929),c=p(6053),l=p(1961),g=p(6498),y=p(2986),E=p(1307),T=p(13),D=p(4850),O=p(1059),w=p(7625),A=p(925);const M=new Set;let I,b=(()=>{class Dt{constructor(et){this._platform=et,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):F}matchMedia(et){return(this._platform.WEBKIT||this._platform.BLINK)&&function(Dt){if(!M.has(Dt))try{I||(I=document.createElement("style"),I.setAttribute("type","text/css"),document.head.appendChild(I)),I.sheet&&(I.sheet.insertRule(`@media ${Dt} {body{ }}`,0),M.add(Dt))}catch(Kt){console.error(Kt)}}(et),this._matchMedia(et)}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275inject(A.t4))},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function F(Dt){return{matches:"all"===Dt||""===Dt,media:Dt,addListener:()=>{},removeListener:()=>{}}}let ne=(()=>{class Dt{constructor(et,xt){this._mediaMatcher=et,this._zone=xt,this._queries=new Map,this._destroySubject=new i.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(et){return Y((0,r.Eq)(et)).some(Lt=>this._registerQuery(Lt).mql.matches)}observe(et){const Lt=Y((0,r.Eq)(et)).map(mt=>this._registerQuery(mt).observable);let Qe=(0,c.aj)(Lt);return Qe=(0,l.z)(Qe.pipe((0,y.q)(1)),Qe.pipe((0,E.T)(1),(0,T.b)(0))),Qe.pipe((0,D.U)(mt=>{const Vt={matches:!1,breakpoints:{}};return mt.forEach(({matches:qt,query:Ne})=>{Vt.matches=Vt.matches||qt,Vt.breakpoints[Ne]=qt}),Vt}))}_registerQuery(et){if(this._queries.has(et))return this._queries.get(et);const xt=this._mediaMatcher.matchMedia(et),Qe={observable:new g.y(mt=>{const Vt=qt=>this._zone.run(()=>mt.next(qt));return xt.addListener(Vt),()=>{xt.removeListener(Vt)}}).pipe((0,O.O)(xt),(0,D.U)(({matches:mt})=>({query:et,matches:mt})),(0,w.R)(this._destroySubject)),mql:xt};return this._queries.set(et,Qe),Qe}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275inject(b),f.\u0275\u0275inject(f.NgZone))},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Y(Dt){return Dt.map(Kt=>Kt.split(",")).reduce((Kt,et)=>Kt.concat(et)).map(Kt=>Kt.trim())}var te=p(7429),$=p(1777),J=p(226);const ie={tooltipState:(0,$.X$)("state",[(0,$.SB)("initial, void, hidden",(0,$.oB)({opacity:0,transform:"scale(0)"})),(0,$.SB)("visible",(0,$.oB)({transform:"scale(1)"})),(0,$.eR)("* => visible",(0,$.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,$.F4)([(0,$.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,$.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,$.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,$.eR)("* => hidden",(0,$.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,$.oB)({opacity:0})))])},Oe="tooltip-panel",Le=(0,A.i$)({passive:!0}),gt=new f.InjectionToken("mat-tooltip-scroll-strategy"),tt={provide:gt,deps:[d.aV],useFactory:function(Dt){return()=>Dt.scrollStrategies.reposition({scrollThrottle:20})}},at=new f.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let vt=(()=>{class Dt{constructor(et,xt,Lt,Qe,mt,Vt,qt,Ne,Se,ee,re,Me){this._overlay=et,this._elementRef=xt,this._scrollDispatcher=Lt,this._viewContainerRef=Qe,this._ngZone=mt,this._platform=Vt,this._ariaDescriber=qt,this._focusMonitor=Ne,this._dir=ee,this._defaultOptions=re,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new i.xQ,this._handleKeydown=ze=>{this._isTooltipVisible()&&ze.keyCode===s.hY&&!(0,s.Vb)(ze)&&(ze.preventDefault(),ze.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=Se,this._document=Me,re&&(re.position&&(this.position=re.position),re.touchGestures&&(this.touchGestures=re.touchGestures)),ee.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),mt.runOutsideAngular(()=>{xt.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(et){var xt;et!==this._position&&(this._position=et,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(xt=this._tooltipInstance)||void 0===xt||xt.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(et){this._disabled=(0,r.Ig)(et),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(et){this._showDelay=(0,r.su)(et)}get hideDelay(){return this._hideDelay}set hideDelay(et){this._hideDelay=(0,r.su)(et)}get message(){return this._message}set message(et){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=et?String(et).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(et){this._tooltipClass=et,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(et=>{et?"keyboard"===et&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const et=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),et.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([xt,Lt])=>{et.removeEventListener(xt,Lt,Le)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(et,this.message,"tooltip"),this._focusMonitor.stopMonitoring(et)}show(et=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const xt=this._createOverlay();this._detach(),this._portal=this._portal||new te.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=xt.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(et)}hide(et=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(et)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const et=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),xt=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(et);return xt.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(Lt=>{this._updateCurrentPositionClass(Lt.connectionPair),this._tooltipInstance&&Lt.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:xt,panelClass:`${this._cssClassPrefix}-${Oe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>{var Lt;return null===(Lt=this._tooltipInstance)||void 0===Lt?void 0:Lt._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(et){const xt=et.getConfig().positionStrategy,Lt=this._getOrigin(),Qe=this._getOverlayPosition();xt.withPositions([this._addOffset(Object.assign(Object.assign({},Lt.main),Qe.main)),this._addOffset(Object.assign(Object.assign({},Lt.fallback),Qe.fallback))])}_addOffset(et){return et}_getOrigin(){const et=!this._dir||"ltr"==this._dir.value,xt=this.position;let Lt;"above"==xt||"below"==xt?Lt={originX:"center",originY:"above"==xt?"top":"bottom"}:"before"==xt||"left"==xt&&et||"right"==xt&&!et?Lt={originX:"start",originY:"center"}:("after"==xt||"right"==xt&&et||"left"==xt&&!et)&&(Lt={originX:"end",originY:"center"});const{x:Qe,y:mt}=this._invertPosition(Lt.originX,Lt.originY);return{main:Lt,fallback:{originX:Qe,originY:mt}}}_getOverlayPosition(){const et=!this._dir||"ltr"==this._dir.value,xt=this.position;let Lt;"above"==xt?Lt={overlayX:"center",overlayY:"bottom"}:"below"==xt?Lt={overlayX:"center",overlayY:"top"}:"before"==xt||"left"==xt&&et||"right"==xt&&!et?Lt={overlayX:"end",overlayY:"center"}:("after"==xt||"right"==xt&&et||"left"==xt&&!et)&&(Lt={overlayX:"start",overlayY:"center"});const{x:Qe,y:mt}=this._invertPosition(Lt.overlayX,Lt.overlayY);return{main:Lt,fallback:{overlayX:Qe,overlayY:mt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,y.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(et){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=et,this._tooltipInstance._markForCheck())}_invertPosition(et,xt){return"above"===this.position||"below"===this.position?"top"===xt?xt="bottom":"bottom"===xt&&(xt="top"):"end"===et?et="start":"start"===et&&(et="end"),{x:et,y:xt}}_updateCurrentPositionClass(et){const{overlayY:xt,originX:Lt,originY:Qe}=et;let mt;if(mt="center"===xt?this._dir&&"rtl"===this._dir.value?"end"===Lt?"left":"right":"start"===Lt?"left":"right":"bottom"===xt&&"top"===Qe?"above":"below",mt!==this._currentPosition){const Vt=this._overlayRef;if(Vt){const qt=`${this._cssClassPrefix}-${Oe}-`;Vt.removePanelClass(qt+this._currentPosition),Vt.addPanelClass(qt+mt)}this._currentPosition=mt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const et=[];if(this._platformSupportsMouseEvents())et.push(["mouseleave",()=>this.hide()],["wheel",xt=>this._wheelListener(xt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const xt=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};et.push(["touchend",xt],["touchcancel",xt])}this._addListeners(et),this._passiveListeners.push(...et)}_addListeners(et){et.forEach(([xt,Lt])=>{this._elementRef.nativeElement.addEventListener(xt,Lt,Le)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(et){if(this._isTooltipVisible()){const xt=this._document.elementFromPoint(et.clientX,et.clientY),Lt=this._elementRef.nativeElement;xt!==Lt&&!Lt.contains(xt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const et=this.touchGestures;if("off"!==et){const xt=this._elementRef.nativeElement,Lt=xt.style;("on"===et||"INPUT"!==xt.nodeName&&"TEXTAREA"!==xt.nodeName)&&(Lt.userSelect=Lt.msUserSelect=Lt.webkitUserSelect=Lt.MozUserSelect="none"),("on"===et||!xt.draggable)&&(Lt.webkitUserDrag="none"),Lt.touchAction="none",Lt.webkitTapHighlightColor="transparent"}}}return Dt.\u0275fac=function(et){f.\u0275\u0275invalidFactory()},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Dt})(),yt=(()=>{class Dt extends vt{constructor(et,xt,Lt,Qe,mt,Vt,qt,Ne,Se,ee,re,Me){super(et,xt,Lt,Qe,mt,Vt,qt,Ne,Se,ee,re,Me),this._tooltipComponent=_t}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275directiveInject(d.aV),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(h.mF),f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275directiveInject(A.t4),f.\u0275\u0275directiveInject(u.$s),f.\u0275\u0275directiveInject(u.tE),f.\u0275\u0275directiveInject(gt),f.\u0275\u0275directiveInject(J.Is,8),f.\u0275\u0275directiveInject(at,8),f.\u0275\u0275directiveInject(n.DOCUMENT))},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[f.\u0275\u0275InheritDefinitionFeature]}),Dt})(),ot=(()=>{class Dt{constructor(et){this._changeDetectorRef=et,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new i.xQ}show(et){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},et)}hide(et){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},et)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(et){const xt=et.toState;"hidden"===xt&&!this.isVisible()&&this._onHide.next(),("visible"===xt||"hidden"===xt)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275directiveInject(f.ChangeDetectorRef))},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt}),Dt})(),_t=(()=>{class Dt extends ot{constructor(et,xt){super(et),this._breakpointObserver=xt,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(ne))},Dt.\u0275cmp=f.\u0275\u0275defineComponent({type:Dt,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(et,xt){2&et&&f.\u0275\u0275styleProp("zoom","visible"===xt._visibility?1:null)},features:[f.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(et,xt){if(1&et&&(f.\u0275\u0275elementStart(0,"div",0),f.\u0275\u0275listener("@state.start",function(){return xt._animationStart()})("@state.done",function(Qe){return xt._animationDone(Qe)}),f.\u0275\u0275pipe(1,"async"),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd()),2&et){let Lt;f.\u0275\u0275classProp("mat-tooltip-handset",null==(Lt=f.\u0275\u0275pipeBind1(1,5,xt._isHandset))?null:Lt.matches),f.\u0275\u0275property("ngClass",xt.tooltipClass)("@state",xt._visibility),f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate(xt.message)}},directives:[n.NgClass],pipes:[n.AsyncPipe],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ie.tooltipState]},changeDetection:0}),Dt})(),At=(()=>{class Dt{}return Dt.\u0275fac=function(et){return new(et||Dt)},Dt.\u0275mod=f.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=f.\u0275\u0275defineInjector({providers:[tt],imports:[[u.rt,n.CommonModule,d.U8,v.MatCommonModule],v.MatCommonModule,h.ZD]}),Dt})();var Tt=p(7322);function Bt(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"mat-option",19),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&Dt){const et=Kt.$implicit;f.\u0275\u0275property("value",et),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",et," ")}}function Et(Dt,Kt){if(1&Dt){const et=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"mat-form-field",16),f.\u0275\u0275elementStart(1,"mat-select",17),f.\u0275\u0275listener("selectionChange",function(Lt){return f.\u0275\u0275restoreView(et),f.\u0275\u0275nextContext(2)._changePageSize(Lt.value)}),f.\u0275\u0275template(2,Bt,2,2,"mat-option",18),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const et=f.\u0275\u0275nextContext(2);f.\u0275\u0275property("appearance",et._formFieldAppearance)("color",et.color),f.\u0275\u0275advance(1),f.\u0275\u0275property("value",et.pageSize)("disabled",et.disabled)("aria-label",et._intl.itemsPerPageLabel),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngForOf",et._displayedPageSizeOptions)}}function Ee(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"div",20),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&Dt){const et=f.\u0275\u0275nextContext(2);f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate(et.pageSize)}}function fe(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"div",12),f.\u0275\u0275elementStart(1,"div",13),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(3,Et,3,6,"mat-form-field",14),f.\u0275\u0275template(4,Ee,2,1,"div",15),f.\u0275\u0275elementEnd()),2&Dt){const et=f.\u0275\u0275nextContext();f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate1(" ",et._intl.itemsPerPageLabel," "),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",et._displayedPageSizeOptions.length>1),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",et._displayedPageSizeOptions.length<=1)}}function H(Dt,Kt){if(1&Dt){const et=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"button",21),f.\u0275\u0275listener("click",function(){return f.\u0275\u0275restoreView(et),f.\u0275\u0275nextContext().firstPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(1,"svg",7),f.\u0275\u0275element(2,"path",22),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const et=f.\u0275\u0275nextContext();f.\u0275\u0275property("matTooltip",et._intl.firstPageLabel)("matTooltipDisabled",et._previousButtonsDisabled())("matTooltipPosition","above")("disabled",et._previousButtonsDisabled()),f.\u0275\u0275attribute("aria-label",et._intl.firstPageLabel)}}function x(Dt,Kt){if(1&Dt){const et=f.\u0275\u0275getCurrentView();f.\u0275\u0275namespaceSVG(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275elementStart(0,"button",23),f.\u0275\u0275listener("click",function(){return f.\u0275\u0275restoreView(et),f.\u0275\u0275nextContext().lastPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(1,"svg",7),f.\u0275\u0275element(2,"path",24),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const et=f.\u0275\u0275nextContext();f.\u0275\u0275property("matTooltip",et._intl.lastPageLabel)("matTooltipDisabled",et._nextButtonsDisabled())("matTooltipPosition","above")("disabled",et._nextButtonsDisabled()),f.\u0275\u0275attribute("aria-label",et._intl.lastPageLabel)}}let U=(()=>{class Dt{constructor(){this.changes=new i.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(et,xt,Lt)=>{if(0==Lt||0==xt)return`0 of ${Lt}`;const Qe=et*xt;return`${Qe+1} \u2013 ${Qe<(Lt=Math.max(Lt,0))?Math.min(Qe+xt,Lt):Qe+xt} of ${Lt}`}}}return Dt.\u0275fac=function(et){return new(et||Dt)},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Z(Dt){return Dt||new U}const _e={provide:U,deps:[[new f.Optional,new f.SkipSelf,U]],useFactory:Z};class $e{}const st=new f.InjectionToken("MAT_PAGINATOR_DEFAULT_OPTIONS"),ut=(0,v.mixinDisabled)((0,v.mixinInitialized)(class{}));let St=(()=>{class Dt extends ut{constructor(et,xt,Lt){if(super(),this._intl=et,this._changeDetectorRef=xt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new f.EventEmitter,this._intlChanges=et.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Lt){const{pageSize:Qe,pageSizeOptions:mt,hidePageSize:Vt,showFirstLastButtons:qt}=Lt;null!=Qe&&(this._pageSize=Qe),null!=mt&&(this._pageSizeOptions=mt),null!=Vt&&(this._hidePageSize=Vt),null!=qt&&(this._showFirstLastButtons=qt)}}get pageIndex(){return this._pageIndex}set pageIndex(et){this._pageIndex=Math.max((0,r.su)(et),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(et){this._length=(0,r.su)(et),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(et){this._pageSize=Math.max((0,r.su)(et),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(et){this._pageSizeOptions=(et||[]).map(xt=>(0,r.su)(xt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(et){this._hidePageSize=(0,r.Ig)(et)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(et){this._showFirstLastButtons=(0,r.Ig)(et)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const et=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(et)}previousPage(){if(!this.hasPreviousPage())return;const et=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(et)}firstPage(){if(!this.hasPreviousPage())return;const et=this.pageIndex;this.pageIndex=0,this._emitPageEvent(et)}lastPage(){if(!this.hasNextPage())return;const et=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(et)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const et=this.getNumberOfPages()-1;return this.pageIndexet-xt),this._changeDetectorRef.markForCheck())}_emitPageEvent(et){this.page.emit({previousPageIndex:et,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return Dt.\u0275fac=function(et){f.\u0275\u0275invalidFactory()},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[f.\u0275\u0275InheritDefinitionFeature]}),Dt})(),Xt=(()=>{class Dt extends St{constructor(et,xt,Lt){super(et,xt,Lt),Lt&&null!=Lt.formFieldAppearance&&(this._formFieldAppearance=Lt.formFieldAppearance)}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275directiveInject(U),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(st,8))},Dt.\u0275cmp=f.\u0275\u0275defineComponent({type:Dt,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[f.\u0275\u0275InheritDefinitionFeature],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(et,xt){1&et&&(f.\u0275\u0275elementStart(0,"div",0),f.\u0275\u0275elementStart(1,"div",1),f.\u0275\u0275template(2,fe,5,3,"div",2),f.\u0275\u0275elementStart(3,"div",3),f.\u0275\u0275elementStart(4,"div",4),f.\u0275\u0275text(5),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(6,H,3,5,"button",5),f.\u0275\u0275elementStart(7,"button",6),f.\u0275\u0275listener("click",function(){return xt.previousPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(8,"svg",7),f.\u0275\u0275element(9,"path",8),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275elementStart(10,"button",9),f.\u0275\u0275listener("click",function(){return xt.nextPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(11,"svg",7),f.\u0275\u0275element(12,"path",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(13,x,3,5,"button",11),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&et&&(f.\u0275\u0275advance(2),f.\u0275\u0275property("ngIf",!xt.hidePageSize),f.\u0275\u0275advance(3),f.\u0275\u0275textInterpolate1(" ",xt._intl.getRangeLabel(xt.pageIndex,xt.pageSize,xt.length)," "),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",xt.showFirstLastButtons),f.\u0275\u0275advance(1),f.\u0275\u0275property("matTooltip",xt._intl.previousPageLabel)("matTooltipDisabled",xt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",xt._previousButtonsDisabled()),f.\u0275\u0275attribute("aria-label",xt._intl.previousPageLabel),f.\u0275\u0275advance(3),f.\u0275\u0275property("matTooltip",xt._intl.nextPageLabel)("matTooltipDisabled",xt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",xt._nextButtonsDisabled()),f.\u0275\u0275attribute("aria-label",xt._intl.nextPageLabel),f.\u0275\u0275advance(3),f.\u0275\u0275property("ngIf",xt.showFirstLastButtons))},directives:[n.NgIf,m.MatButton,yt,Tt.MatFormField,o.MatSelect,n.NgForOf,v.MatOption],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),Dt})(),tn=(()=>{class Dt{}return Dt.\u0275fac=function(et){return new(et||Dt)},Dt.\u0275mod=f.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=f.\u0275\u0275defineInjector({providers:[_e],imports:[[n.CommonModule,m.MatButtonModule,o.MatSelectModule,At,v.MatCommonModule]]}),Dt})()},773:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS:()=>y,MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY:()=>E,MatProgressSpinner:()=>D,MatProgressSpinnerModule:()=>w,MatSpinner:()=>O});var n=p(5e3),f=p(9808),v=p(508),m=p(3191),o=p(925),d=p(6360);function u(A,S){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const M=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("animation-name","mat-progress-spinner-stroke-rotate-"+M._spinnerAnimationLabel)("stroke-dashoffset",M._getStrokeDashOffset(),"px")("stroke-dasharray",M._getStrokeCircumference(),"px")("stroke-width",M._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",M._getCircleRadius())}}function h(A,S){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const M=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("stroke-dashoffset",M._getStrokeDashOffset(),"px")("stroke-dasharray",M._getStrokeCircumference(),"px")("stroke-width",M._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",M._getCircleRadius())}}function r(A,S){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const M=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("animation-name","mat-progress-spinner-stroke-rotate-"+M._spinnerAnimationLabel)("stroke-dashoffset",M._getStrokeDashOffset(),"px")("stroke-dasharray",M._getStrokeCircumference(),"px")("stroke-width",M._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",M._getCircleRadius())}}function s(A,S){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const M=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("stroke-dashoffset",M._getStrokeDashOffset(),"px")("stroke-dasharray",M._getStrokeCircumference(),"px")("stroke-width",M._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",M._getCircleRadius())}}const g=(0,v.mixinColor)(class{constructor(A){this._elementRef=A}},"primary"),y=new n.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:E});function E(){return{diameter:100}}class D extends g{constructor(S,M,I,b,L){super(S),this._document=I,this._diameter=100,this._value=0,this.mode="determinate";const F=D._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),F.has(I.head)||F.set(I.head,new Set([100])),this._noopAnimations="NoopAnimations"===b&&!!L&&!L._forceAnimations,L&&(L.diameter&&(this.diameter=L.diameter),L.strokeWidth&&(this.strokeWidth=L.strokeWidth))}get diameter(){return this._diameter}set diameter(S){this._diameter=(0,m.su)(S),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(S){this._strokeWidth=(0,m.su)(S)}get value(){return"determinate"===this.mode?this._value:0}set value(S){this._value=Math.max(0,Math.min(100,(0,m.su)(S)))}ngOnInit(){const S=this._elementRef.nativeElement;this._styleRoot=(0,o.kV)(S)||this._document.head,this._attachStyleNode(),S.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const S=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${S} ${S}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const S=this._styleRoot,M=this._diameter,I=D._diameters;let b=I.get(S);if(!b||!b.has(M)){const L=this._document.createElement("style");L.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),L.textContent=this._getAnimationText(),S.appendChild(L),b||(b=new Set,I.set(S,b)),b.add(M)}}_getAnimationText(){const S=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*S).replace(/END_VALUE/g,""+.2*S).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}D._diameters=new WeakMap,D.\u0275fac=function(S){return new(S||D)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(o.t4),n.\u0275\u0275directiveInject(f.DOCUMENT,8),n.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(y))},D.\u0275cmp=n.\u0275\u0275defineComponent({type:D,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(S,M){2&S&&(n.\u0275\u0275attribute("aria-valuemin","determinate"===M.mode?0:null)("aria-valuemax","determinate"===M.mode?100:null)("aria-valuenow","determinate"===M.mode?M.value:null)("mode",M.mode),n.\u0275\u0275styleProp("width",M.diameter,"px")("height",M.diameter,"px"),n.\u0275\u0275classProp("_mat-animation-noopable",M._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(S,M){1&S&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(0,"svg",0),n.\u0275\u0275template(1,u,1,9,"circle",1),n.\u0275\u0275template(2,h,1,7,"circle",2),n.\u0275\u0275elementEnd()),2&S&&(n.\u0275\u0275styleProp("width",M.diameter,"px")("height",M.diameter,"px"),n.\u0275\u0275property("ngSwitch","indeterminate"===M.mode),n.\u0275\u0275attribute("viewBox",M._getViewBox()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!1))},directives:[f.NgSwitch,f.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let O=(()=>{class A extends D{constructor(M,I,b,L,F){super(M,I,b,L,F),this.mode="indeterminate"}}return A.\u0275fac=function(M){return new(M||A)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(o.t4),n.\u0275\u0275directiveInject(f.DOCUMENT,8),n.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(y))},A.\u0275cmp=n.\u0275\u0275defineComponent({type:A,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(M,I){2&M&&(n.\u0275\u0275styleProp("width",I.diameter,"px")("height",I.diameter,"px"),n.\u0275\u0275classProp("_mat-animation-noopable",I._noopAnimations))},inputs:{color:"color"},features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(M,I){1&M&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(0,"svg",0),n.\u0275\u0275template(1,r,1,9,"circle",1),n.\u0275\u0275template(2,s,1,7,"circle",2),n.\u0275\u0275elementEnd()),2&M&&(n.\u0275\u0275styleProp("width",I.diameter,"px")("height",I.diameter,"px"),n.\u0275\u0275property("ngSwitch","indeterminate"===I.mode),n.\u0275\u0275attribute("viewBox",I._getViewBox()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!1))},directives:[f.NgSwitch,f.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),A})(),w=(()=>{class A{}return A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=n.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=n.\u0275\u0275defineInjector({imports:[[v.MatCommonModule,f.CommonModule],v.MatCommonModule]}),A})()},9814:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_RADIO_DEFAULT_OPTIONS:()=>i,MAT_RADIO_DEFAULT_OPTIONS_FACTORY:()=>c,MAT_RADIO_GROUP:()=>E,MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR:()=>g,MatRadioButton:()=>S,MatRadioChange:()=>y,MatRadioGroup:()=>D,MatRadioModule:()=>M,_MatRadioButtonBase:()=>A,_MatRadioGroupBase:()=>T});var n=p(5e3),f=p(508),v=p(3191),m=p(3075),o=p(6360),d=p(5664),u=p(449);const h=["input"],r=function(I){return{enterDuration:I}},s=["*"],i=new n.InjectionToken("mat-radio-default-options",{providedIn:"root",factory:c});function c(){return{color:"accent"}}let l=0;const g={provide:m.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>D),multi:!0};class y{constructor(b,L){this.source=b,this.value=L}}const E=new n.InjectionToken("MatRadioGroup");let T=(()=>{class I{constructor(L){this._changeDetector=L,this._value=null,this._name="mat-radio-group-"+l++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.EventEmitter}get name(){return this._name}set name(L){this._name=L,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(L){this._labelPosition="before"===L?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(L){this._value!==L&&(this._value=L,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(L){this._selected=L,this.value=L?L.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,v.Ig)(L),this._markRadiosForCheck()}get required(){return this._required}set required(L){this._required=(0,v.Ig)(L),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(L=>{L.name=this.name,L._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(F=>{F.checked=this.value===F.value,F.checked&&(this._selected=F)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new y(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(L=>L._markForCheck())}writeValue(L){this.value=L,this._changeDetector.markForCheck()}registerOnChange(L){this._controlValueAccessorChangeFn=L}registerOnTouched(L){this.onTouched=L}setDisabledState(L){this.disabled=L,this._changeDetector.markForCheck()}}return I.\u0275fac=function(L){return new(L||I)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},I.\u0275dir=n.\u0275\u0275defineDirective({type:I,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),I})(),D=(()=>{class I extends T{}return I.\u0275fac=function(){let b;return function(F){return(b||(b=n.\u0275\u0275getInheritedFactory(I)))(F||I)}}(),I.\u0275dir=n.\u0275\u0275defineDirective({type:I,selectors:[["mat-radio-group"]],contentQueries:function(L,F,ne){if(1&L&&n.\u0275\u0275contentQuery(ne,S,5),2&L){let Y;n.\u0275\u0275queryRefresh(Y=n.\u0275\u0275loadQuery())&&(F._radios=Y)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n.\u0275\u0275ProvidersFeature([g,{provide:E,useExisting:I}]),n.\u0275\u0275InheritDefinitionFeature]}),I})();class O{constructor(b){this._elementRef=b}}const w=(0,f.mixinDisableRipple)((0,f.mixinTabIndex)(O));let A=(()=>{class I extends w{constructor(L,F,ne,Y,Q,te,$,J){super(F),this._changeDetector=ne,this._focusMonitor=Y,this._radioDispatcher=Q,this._providerOverride=$,this._uniqueId="mat-radio-"+ ++l,this.id=this._uniqueId,this.change=new n.EventEmitter,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=L,this._noopAnimations="NoopAnimations"===te,J&&(this.tabIndex=(0,v.su)(J,0)),this._removeUniqueSelectionListener=Q.listen((ie,ae)=>{ie!==this.id&&ae===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(L){const F=(0,v.Ig)(L);this._checked!==F&&(this._checked=F,F&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!F&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),F&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(L){this._value!==L&&(this._value=L,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===L),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(L){this._labelPosition=L}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(L){this._setDisabled((0,v.Ig)(L))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(L){this._required=(0,v.Ig)(L)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(L){this._color=L}get inputId(){return`${this.id||this._uniqueId}-input`}focus(L,F){F?this._focusMonitor.focusVia(this._inputElement,F,L):this._inputElement.nativeElement.focus(L)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(L=>{!L&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new y(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(L){L.stopPropagation()}_onInputInteraction(L){if(L.stopPropagation(),!this.checked&&!this.disabled){const F=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),F&&this.radioGroup._emitChangeEvent())}}_setDisabled(L){this._disabled!==L&&(this._disabled=L,this._changeDetector.markForCheck())}}return I.\u0275fac=function(L){n.\u0275\u0275invalidFactory()},I.\u0275dir=n.\u0275\u0275defineDirective({type:I,viewQuery:function(L,F){if(1&L&&n.\u0275\u0275viewQuery(h,5),2&L){let ne;n.\u0275\u0275queryRefresh(ne=n.\u0275\u0275loadQuery())&&(F._inputElement=ne.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[n.\u0275\u0275InheritDefinitionFeature]}),I})(),S=(()=>{class I extends A{constructor(L,F,ne,Y,Q,te,$,J){super(L,F,ne,Y,Q,te,$,J)}}return I.\u0275fac=function(L){return new(L||I)(n.\u0275\u0275directiveInject(E,8),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(d.tE),n.\u0275\u0275directiveInject(u.A8),n.\u0275\u0275directiveInject(o.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(i,8),n.\u0275\u0275injectAttribute("tabindex"))},I.\u0275cmp=n.\u0275\u0275defineComponent({type:I,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(L,F){1&L&&n.\u0275\u0275listener("focus",function(){return F._inputElement.nativeElement.focus()}),2&L&&(n.\u0275\u0275attribute("tabindex",null)("id",F.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.\u0275\u0275classProp("mat-radio-checked",F.checked)("mat-radio-disabled",F.disabled)("_mat-animation-noopable",F._noopAnimations)("mat-primary","primary"===F.color)("mat-accent","accent"===F.color)("mat-warn","warn"===F.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:s,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(L,F){if(1&L&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"label",0,1),n.\u0275\u0275elementStart(2,"span",2),n.\u0275\u0275element(3,"span",3),n.\u0275\u0275element(4,"span",4),n.\u0275\u0275elementStart(5,"input",5,6),n.\u0275\u0275listener("change",function(Y){return F._onInputInteraction(Y)})("click",function(Y){return F._onInputClick(Y)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"span",7),n.\u0275\u0275element(8,"span",8),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"span",9),n.\u0275\u0275elementStart(10,"span",10),n.\u0275\u0275text(11,"\xa0"),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(12),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementEnd()),2&L){const ne=n.\u0275\u0275reference(1);n.\u0275\u0275attribute("for",F.inputId),n.\u0275\u0275advance(5),n.\u0275\u0275property("id",F.inputId)("checked",F.checked)("disabled",F.disabled)("tabIndex",F.tabIndex)("required",F.required),n.\u0275\u0275attribute("name",F.name)("value",F.value)("aria-label",F.ariaLabel)("aria-labelledby",F.ariaLabelledby)("aria-describedby",F.ariaDescribedby),n.\u0275\u0275advance(2),n.\u0275\u0275property("matRippleTrigger",ne)("matRippleDisabled",F._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.\u0275\u0275pureFunction1(18,r,F._noopAnimations?0:150)),n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-radio-label-before","before"==F.labelPosition)}},directives:[f.MatRipple],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),I})(),M=(()=>{class I{}return I.\u0275fac=function(L){return new(L||I)},I.\u0275mod=n.\u0275\u0275defineNgModule({type:I}),I.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatRippleModule,f.MatCommonModule],f.MatCommonModule]}),I})()},4107:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_SELECT_CONFIG:()=>vt,MAT_SELECT_SCROLL_STRATEGY:()=>at,MAT_SELECT_SCROLL_STRATEGY_PROVIDER:()=>yt,MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ft,MAT_SELECT_TRIGGER:()=>At,MatSelect:()=>Et,MatSelectChange:()=>ot,MatSelectModule:()=>Ee,MatSelectTrigger:()=>Tt,_MatSelectBase:()=>Bt,matSelectAnimations:()=>J});var n=p(1314),f=p(9808),v=p(5e3),m=p(508),o=p(7322),d=p(9071),u=p(5664),h=p(3191),r=p(449),s=p(1159),i=p(3075),c=p(8929),l=p(8514),g=p(6787),y=p(1059),E=p(7545),T=p(2986),D=p(2198),O=p(4850),w=p(5778),A=p(7625),S=p(1777),M=p(226);const I=["trigger"],b=["panel"];function L(fe,H){if(1&fe&&(v.\u0275\u0275elementStart(0,"span",8),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&fe){const x=v.\u0275\u0275nextContext();v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate(x.placeholder)}}function F(fe,H){if(1&fe&&(v.\u0275\u0275elementStart(0,"span",12),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&fe){const x=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate(x.triggerValue)}}function ne(fe,H){1&fe&&v.\u0275\u0275projection(0,0,["*ngSwitchCase","true"])}function Y(fe,H){if(1&fe&&(v.\u0275\u0275elementStart(0,"span",9),v.\u0275\u0275template(1,F,2,1,"span",10),v.\u0275\u0275template(2,ne,1,0,"ng-content",11),v.\u0275\u0275elementEnd()),2&fe){const x=v.\u0275\u0275nextContext();v.\u0275\u0275property("ngSwitch",!!x.customTrigger),v.\u0275\u0275advance(2),v.\u0275\u0275property("ngSwitchCase",!0)}}function Q(fe,H){if(1&fe){const x=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div",13),v.\u0275\u0275elementStart(1,"div",14,15),v.\u0275\u0275listener("@transformPanel.done",function(Z){return v.\u0275\u0275restoreView(x),v.\u0275\u0275nextContext()._panelDoneAnimatingStream.next(Z.toState)})("keydown",function(Z){return v.\u0275\u0275restoreView(x),v.\u0275\u0275nextContext()._handleKeydown(Z)}),v.\u0275\u0275projection(3,1),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd()}if(2&fe){const x=v.\u0275\u0275nextContext();v.\u0275\u0275property("@transformPanelWrap",void 0),v.\u0275\u0275advance(1),v.\u0275\u0275classMapInterpolate1("mat-select-panel ",x._getPanelTheme(),""),v.\u0275\u0275styleProp("transform-origin",x._transformOrigin)("font-size",x._triggerFontSize,"px"),v.\u0275\u0275property("ngClass",x.panelClass)("@transformPanel",x.multiple?"showing-multiple":"showing"),v.\u0275\u0275attribute("id",x.id+"-panel")("aria-multiselectable",x.multiple)("aria-label",x.ariaLabel||null)("aria-labelledby",x._getPanelAriaLabelledby())}}const te=[[["mat-select-trigger"]],"*"],$=["mat-select-trigger","*"],J={transformPanelWrap:(0,S.X$)("transformPanelWrap",[(0,S.eR)("* => void",(0,S.IO)("@transformPanel",[(0,S.pV)()],{optional:!0}))]),transformPanel:(0,S.X$)("transformPanel",[(0,S.SB)("void",(0,S.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,S.SB)("showing",(0,S.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,S.SB)("showing-multiple",(0,S.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,S.eR)("void => *",(0,S.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,S.eR)("* => void",(0,S.jt)("100ms 25ms linear",(0,S.oB)({opacity:0})))])};let Oe=0;const at=new v.InjectionToken("mat-select-scroll-strategy");function ft(fe){return()=>fe.scrollStrategies.reposition()}const vt=new v.InjectionToken("MAT_SELECT_CONFIG"),yt={provide:at,deps:[n.aV],useFactory:ft};class ot{constructor(H,x){this.source=H,this.value=x}}const _t=(0,m.mixinDisableRipple)((0,m.mixinTabIndex)((0,m.mixinDisabled)((0,m.mixinErrorState)(class{constructor(fe,H,x,U,Z){this._elementRef=fe,this._defaultErrorStateMatcher=H,this._parentForm=x,this._parentFormGroup=U,this.ngControl=Z}})))),At=new v.InjectionToken("MatSelectTrigger");let Tt=(()=>{class fe{}return fe.\u0275fac=function(x){return new(x||fe)},fe.\u0275dir=v.\u0275\u0275defineDirective({type:fe,selectors:[["mat-select-trigger"]],features:[v.\u0275\u0275ProvidersFeature([{provide:At,useExisting:fe}])]}),fe})(),Bt=(()=>{class fe extends _t{constructor(x,U,Z,_e,Be,$e,st,ut,St,Xt,tn,Dt,Kt,et){var xt,Lt,Qe;super(Be,_e,st,ut,Xt),this._viewportRuler=x,this._changeDetectorRef=U,this._ngZone=Z,this._dir=$e,this._parentFormField=St,this._liveAnnouncer=Kt,this._defaultOptions=et,this._panelOpen=!1,this._compareWith=(mt,Vt)=>mt===Vt,this._uid="mat-select-"+Oe++,this._triggerAriaLabelledBy=null,this._destroy=new c.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Oe++,this._panelDoneAnimatingStream=new c.xQ,this._overlayPanelClass=(null===(xt=this._defaultOptions)||void 0===xt?void 0:xt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Qe=null===(Lt=this._defaultOptions)||void 0===Lt?void 0:Lt.disableOptionCentering)&&void 0!==Qe&&Qe,this.ariaLabel="",this.optionSelectionChanges=(0,l.P)(()=>{const mt=this.options;return mt?mt.changes.pipe((0,y.O)(mt),(0,E.w)(()=>(0,g.T)(...mt.map(Vt=>Vt.onSelectionChange)))):this._ngZone.onStable.pipe((0,T.q)(1),(0,E.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.EventEmitter,this._openedStream=this.openedChange.pipe((0,D.h)(mt=>mt),(0,O.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,D.h)(mt=>!mt),(0,O.U)(()=>{})),this.selectionChange=new v.EventEmitter,this.valueChange=new v.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==et?void 0:et.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=et.typeaheadDebounceInterval),this._scrollStrategyFactory=Dt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(tn)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(x){this._placeholder=x,this.stateChanges.next()}get required(){var x,U,Z,_e;return null!==(_e=null!==(x=this._required)&&void 0!==x?x:null===(Z=null===(U=this.ngControl)||void 0===U?void 0:U.control)||void 0===Z?void 0:Z.hasValidator(i.Validators.required))&&void 0!==_e&&_e}set required(x){this._required=(0,h.Ig)(x),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(x){this._multiple=(0,h.Ig)(x)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(x){this._disableOptionCentering=(0,h.Ig)(x)}get compareWith(){return this._compareWith}set compareWith(x){this._compareWith=x,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(x){(x!==this._value||this._multiple&&Array.isArray(x))&&(this.options&&this._setSelectionByValue(x),this._value=x)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(x){this._typeaheadDebounceInterval=(0,h.su)(x)}get id(){return this._id}set id(x){this._id=x||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new r.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,A.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,A.R)(this._destroy)).subscribe(x=>{x.added.forEach(U=>U.select()),x.removed.forEach(U=>U.deselect())}),this.options.changes.pipe((0,y.O)(null),(0,A.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const x=this._getTriggerAriaLabelledby();if(x!==this._triggerAriaLabelledBy){const U=this._elementRef.nativeElement;this._triggerAriaLabelledBy=x,x?U.setAttribute("aria-labelledby",x):U.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(x){x.disabled&&this.stateChanges.next(),x.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(x){this.value=x}registerOnChange(x){this._onChange=x}registerOnTouched(x){this._onTouched=x}setDisabledState(x){this.disabled=x,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var x,U;return this.multiple?(null===(x=this._selectionModel)||void 0===x?void 0:x.selected)||[]:null===(U=this._selectionModel)||void 0===U?void 0:U.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const x=this._selectionModel.selected.map(U=>U.viewValue);return this._isRtl()&&x.reverse(),x.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(x){this.disabled||(this.panelOpen?this._handleOpenKeydown(x):this._handleClosedKeydown(x))}_handleClosedKeydown(x){const U=x.keyCode,Z=U===s.JH||U===s.LH||U===s.oh||U===s.SV,_e=U===s.K5||U===s.L_,Be=this._keyManager;if(!Be.isTyping()&&_e&&!(0,s.Vb)(x)||(this.multiple||x.altKey)&&Z)x.preventDefault(),this.open();else if(!this.multiple){const $e=this.selected;Be.onKeydown(x);const st=this.selected;st&&$e!==st&&this._liveAnnouncer.announce(st.viewValue,1e4)}}_handleOpenKeydown(x){const U=this._keyManager,Z=x.keyCode,_e=Z===s.JH||Z===s.LH,Be=U.isTyping();if(_e&&x.altKey)x.preventDefault(),this.close();else if(Be||Z!==s.K5&&Z!==s.L_||!U.activeItem||(0,s.Vb)(x))if(!Be&&this._multiple&&Z===s.A&&x.ctrlKey){x.preventDefault();const $e=this.options.some(st=>!st.disabled&&!st.selected);this.options.forEach(st=>{st.disabled||($e?st.select():st.deselect())})}else{const $e=U.activeItemIndex;U.onKeydown(x),this._multiple&&_e&&x.shiftKey&&U.activeItem&&U.activeItemIndex!==$e&&U.activeItem._selectViaInteraction()}else x.preventDefault(),U.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,T.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(x){if(this._selectionModel.selected.forEach(U=>U.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&x)Array.isArray(x),x.forEach(U=>this._selectValue(U)),this._sortValues();else{const U=this._selectValue(x);U?this._keyManager.updateActiveItem(U):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(x){const U=this.options.find(Z=>{if(this._selectionModel.isSelected(Z))return!1;try{return null!=Z.value&&this._compareWith(Z.value,x)}catch(_e){return!1}});return U&&this._selectionModel.select(U),U}_initKeyManager(){this._keyManager=new u.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,A.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,A.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const x=(0,g.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,A.R)(x)).subscribe(U=>{this._onSelect(U.source,U.isUserInput),U.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,g.T)(...this.options.map(U=>U._stateChanges)).pipe((0,A.R)(x)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(x,U){const Z=this._selectionModel.isSelected(x);null!=x.value||this._multiple?(Z!==x.selected&&(x.selected?this._selectionModel.select(x):this._selectionModel.deselect(x)),U&&this._keyManager.setActiveItem(x),this.multiple&&(this._sortValues(),U&&this.focus())):(x.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(x.value)),Z!==this._selectionModel.isSelected(x)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const x=this.options.toArray();this._selectionModel.sort((U,Z)=>this.sortComparator?this.sortComparator(U,Z,x):x.indexOf(U)-x.indexOf(Z)),this.stateChanges.next()}}_propagateChanges(x){let U=null;U=this.multiple?this.selected.map(Z=>Z.value):this.selected?this.selected.value:x,this._value=U,this.valueChange.emit(U),this._onChange(U),this.selectionChange.emit(this._getChangeEvent(U)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var x;return!this._panelOpen&&!this.disabled&&(null===(x=this.options)||void 0===x?void 0:x.length)>0}focus(x){this._elementRef.nativeElement.focus(x)}_getPanelAriaLabelledby(){var x;if(this.ariaLabel)return null;const U=null===(x=this._parentFormField)||void 0===x?void 0:x.getLabelId();return this.ariaLabelledby?(U?U+" ":"")+this.ariaLabelledby:U}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var x;if(this.ariaLabel)return null;const U=null===(x=this._parentFormField)||void 0===x?void 0:x.getLabelId();let Z=(U?U+" ":"")+this._valueId;return this.ariaLabelledby&&(Z+=" "+this.ariaLabelledby),Z}_panelDoneAnimating(x){this.openedChange.emit(x)}setDescribedByIds(x){this._ariaDescribedby=x.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return fe.\u0275fac=function(x){return new(x||fe)(v.\u0275\u0275directiveInject(d.rL),v.\u0275\u0275directiveInject(v.ChangeDetectorRef),v.\u0275\u0275directiveInject(v.NgZone),v.\u0275\u0275directiveInject(m.ErrorStateMatcher),v.\u0275\u0275directiveInject(v.ElementRef),v.\u0275\u0275directiveInject(M.Is,8),v.\u0275\u0275directiveInject(i.NgForm,8),v.\u0275\u0275directiveInject(i.FormGroupDirective,8),v.\u0275\u0275directiveInject(o.MAT_FORM_FIELD,8),v.\u0275\u0275directiveInject(i.NgControl,10),v.\u0275\u0275injectAttribute("tabindex"),v.\u0275\u0275directiveInject(at),v.\u0275\u0275directiveInject(u.Kd),v.\u0275\u0275directiveInject(vt,8))},fe.\u0275dir=v.\u0275\u0275defineDirective({type:fe,viewQuery:function(x,U){if(1&x&&(v.\u0275\u0275viewQuery(I,5),v.\u0275\u0275viewQuery(b,5),v.\u0275\u0275viewQuery(n.pI,5)),2&x){let Z;v.\u0275\u0275queryRefresh(Z=v.\u0275\u0275loadQuery())&&(U.trigger=Z.first),v.\u0275\u0275queryRefresh(Z=v.\u0275\u0275loadQuery())&&(U.panel=Z.first),v.\u0275\u0275queryRefresh(Z=v.\u0275\u0275loadQuery())&&(U._overlayDir=Z.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.\u0275\u0275InheritDefinitionFeature,v.\u0275\u0275NgOnChangesFeature]}),fe})(),Et=(()=>{class fe extends Bt{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(x,U,Z){const _e=this._getItemHeight();return Math.min(Math.max(0,_e*x-U+_e/2),Z)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,A.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(x){const U=(0,m._countGroupLabelsBeforeOption)(x,this.options,this.optionGroups),Z=this._getItemHeight();this.panel.nativeElement.scrollTop=0===x&&1===U?0:(0,m._getOptionScrollPosition)((x+U)*Z,Z,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(x){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(x)}_getChangeEvent(x){return new ot(this,x)}_calculateOverlayOffsetX(){const x=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),U=this._viewportRuler.getViewportSize(),Z=this._isRtl(),_e=this.multiple?56:32;let Be;if(this.multiple)Be=40;else if(this.disableOptionCentering)Be=16;else{let ut=this._selectionModel.selected[0]||this.options.first;Be=ut&&ut.group?32:16}Z||(Be*=-1);const $e=0-(x.left+Be-(Z?_e:0)),st=x.right+Be-U.width+(Z?0:_e);$e>0?Be+=$e+8:st>0&&(Be-=st+8),this._overlayDir.offsetX=Math.round(Be),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(x,U,Z){const _e=this._getItemHeight(),Be=(_e-this._triggerRect.height)/2,$e=Math.floor(256/_e);let st;return this.disableOptionCentering?0:(st=0===this._scrollTop?x*_e:this._scrollTop===Z?(x-(this._getItemCount()-$e))*_e+(_e-(this._getItemCount()*_e-256)%_e):U-_e/2,Math.round(-1*st-Be))}_checkOverlayWithinViewport(x){const U=this._getItemHeight(),Z=this._viewportRuler.getViewportSize(),_e=this._triggerRect.top-8,Be=Z.height-this._triggerRect.bottom-8,$e=Math.abs(this._offsetY),ut=Math.min(this._getItemCount()*U,256)-$e-this._triggerRect.height;ut>Be?this._adjustPanelUp(ut,Be):$e>_e?this._adjustPanelDown($e,_e,x):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(x,U){const Z=Math.round(x-U);this._scrollTop-=Z,this._offsetY-=Z,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(x,U,Z){const _e=Math.round(x-U);if(this._scrollTop+=_e,this._offsetY+=_e,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Z)return this._scrollTop=Z,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const x=this._getItemHeight(),U=this._getItemCount(),Z=Math.min(U*x,256),Be=U*x-Z;let $e;$e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),$e+=(0,m._countGroupLabelsBeforeOption)($e,this.options,this.optionGroups);const st=Z/2;this._scrollTop=this._calculateOverlayScroll($e,st,Be),this._offsetY=this._calculateOverlayOffsetY($e,st,Be),this._checkOverlayWithinViewport(Be)}_getOriginBasedOnOption(){const x=this._getItemHeight(),U=(x-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-U+x/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return fe.\u0275fac=function(){let H;return function(U){return(H||(H=v.\u0275\u0275getInheritedFactory(fe)))(U||fe)}}(),fe.\u0275cmp=v.\u0275\u0275defineComponent({type:fe,selectors:[["mat-select"]],contentQueries:function(x,U,Z){if(1&x&&(v.\u0275\u0275contentQuery(Z,At,5),v.\u0275\u0275contentQuery(Z,m.MatOption,5),v.\u0275\u0275contentQuery(Z,m.MAT_OPTGROUP,5)),2&x){let _e;v.\u0275\u0275queryRefresh(_e=v.\u0275\u0275loadQuery())&&(U.customTrigger=_e.first),v.\u0275\u0275queryRefresh(_e=v.\u0275\u0275loadQuery())&&(U.options=_e),v.\u0275\u0275queryRefresh(_e=v.\u0275\u0275loadQuery())&&(U.optionGroups=_e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(x,U){1&x&&v.\u0275\u0275listener("keydown",function(_e){return U._handleKeydown(_e)})("focus",function(){return U._onFocus()})("blur",function(){return U._onBlur()}),2&x&&(v.\u0275\u0275attribute("id",U.id)("tabindex",U.tabIndex)("aria-controls",U.panelOpen?U.id+"-panel":null)("aria-expanded",U.panelOpen)("aria-label",U.ariaLabel||null)("aria-required",U.required.toString())("aria-disabled",U.disabled.toString())("aria-invalid",U.errorState)("aria-describedby",U._ariaDescribedby||null)("aria-activedescendant",U._getAriaActiveDescendant()),v.\u0275\u0275classProp("mat-select-disabled",U.disabled)("mat-select-invalid",U.errorState)("mat-select-required",U.required)("mat-select-empty",U.empty)("mat-select-multiple",U.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v.\u0275\u0275ProvidersFeature([{provide:o.MatFormFieldControl,useExisting:fe},{provide:m.MAT_OPTION_PARENT_COMPONENT,useExisting:fe}]),v.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(x,U){if(1&x&&(v.\u0275\u0275projectionDef(te),v.\u0275\u0275elementStart(0,"div",0,1),v.\u0275\u0275listener("click",function(){return U.toggle()}),v.\u0275\u0275elementStart(3,"div",2),v.\u0275\u0275template(4,L,2,1,"span",3),v.\u0275\u0275template(5,Y,3,2,"span",4),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(6,"div",5),v.\u0275\u0275element(7,"div",6),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd(),v.\u0275\u0275template(8,Q,4,14,"ng-template",7),v.\u0275\u0275listener("backdropClick",function(){return U.close()})("attach",function(){return U._onAttached()})("detach",function(){return U.close()})),2&x){const Z=v.\u0275\u0275reference(1);v.\u0275\u0275attribute("aria-owns",U.panelOpen?U.id+"-panel":null),v.\u0275\u0275advance(3),v.\u0275\u0275property("ngSwitch",U.empty),v.\u0275\u0275attribute("id",U._valueId),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngSwitchCase",!0),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngSwitchCase",!1),v.\u0275\u0275advance(3),v.\u0275\u0275property("cdkConnectedOverlayPanelClass",U._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",U._scrollStrategy)("cdkConnectedOverlayOrigin",Z)("cdkConnectedOverlayOpen",U.panelOpen)("cdkConnectedOverlayPositions",U._positions)("cdkConnectedOverlayMinWidth",null==U._triggerRect?null:U._triggerRect.width)("cdkConnectedOverlayOffsetY",U._offsetY)}},directives:[n.xu,f.NgSwitch,f.NgSwitchCase,n.pI,f.NgSwitchDefault,f.NgClass],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[J.transformPanelWrap,J.transformPanel]},changeDetection:0}),fe})(),Ee=(()=>{class fe{}return fe.\u0275fac=function(x){return new(x||fe)},fe.\u0275mod=v.\u0275\u0275defineNgModule({type:fe}),fe.\u0275inj=v.\u0275\u0275defineInjector({providers:[yt],imports:[[f.CommonModule,n.U8,m.MatOptionModule,m.MatCommonModule],d.ZD,o.MatFormFieldModule,m.MatOptionModule,m.MatCommonModule]}),fe})()},2368:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS:()=>l,MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR:()=>O,MAT_SLIDE_TOGGLE_VALUE_ACCESSOR:()=>y,MatSlideToggle:()=>D,MatSlideToggleChange:()=>E,MatSlideToggleModule:()=>S,MatSlideToggleRequiredValidator:()=>w,_MatSlideToggleRequiredValidatorModule:()=>A});var n=p(7144),f=p(5e3),v=p(508),m=p(3191),o=p(3075),d=p(6360),u=p(5664);const h=["thumbContainer"],r=["toggleBar"],s=["input"],i=function(M){return{enterDuration:M}},c=["*"],l=new f.InjectionToken("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let g=0;const y={provide:o.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>D),multi:!0};class E{constructor(I,b){this.source=I,this.checked=b}}const T=(0,v.mixinTabIndex)((0,v.mixinColor)((0,v.mixinDisableRipple)((0,v.mixinDisabled)(class{constructor(M){this._elementRef=M}}))));let D=(()=>{class M extends T{constructor(b,L,F,ne,Y,Q){super(b),this._focusMonitor=L,this._changeDetectorRef=F,this.defaults=Y,this._onChange=te=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++g,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new f.EventEmitter,this.toggleChange=new f.EventEmitter,this.tabIndex=parseInt(ne)||0,this.color=this.defaultColor=Y.color||"accent",this._noopAnimations="NoopAnimations"===Q}get required(){return this._required}set required(b){this._required=(0,m.Ig)(b)}get checked(){return this._checked}set checked(b){this._checked=(0,m.Ig)(b),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(b=>{b||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(b){b.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(b){b.stopPropagation()}writeValue(b){this.checked=!!b}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}setDisabledState(b){this.disabled=b,this._changeDetectorRef.markForCheck()}focus(b,L){L?this._focusMonitor.focusVia(this._inputElement,L,b):this._inputElement.nativeElement.focus(b)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new E(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return M.\u0275fac=function(b){return new(b||M)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(u.tE),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(l),f.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8))},M.\u0275cmp=f.\u0275\u0275defineComponent({type:M,selectors:[["mat-slide-toggle"]],viewQuery:function(b,L){if(1&b&&(f.\u0275\u0275viewQuery(h,5),f.\u0275\u0275viewQuery(r,5),f.\u0275\u0275viewQuery(s,5)),2&b){let F;f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._thumbEl=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._thumbBarEl=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._inputElement=F.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(b,L){2&b&&(f.\u0275\u0275hostProperty("id",L.id),f.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),f.\u0275\u0275classProp("mat-checked",L.checked)("mat-disabled",L.disabled)("mat-slide-toggle-label-before","before"==L.labelPosition)("_mat-animation-noopable",L._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[f.\u0275\u0275ProvidersFeature([y]),f.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:c,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(b,L){if(1&b&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"label",0,1),f.\u0275\u0275elementStart(2,"div",2,3),f.\u0275\u0275elementStart(4,"input",4,5),f.\u0275\u0275listener("change",function(ne){return L._onChangeEvent(ne)})("click",function(ne){return L._onInputClick(ne)}),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(6,"div",6,7),f.\u0275\u0275element(8,"div",8),f.\u0275\u0275elementStart(9,"div",9),f.\u0275\u0275element(10,"div",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(11,"span",11,12),f.\u0275\u0275listener("cdkObserveContent",function(){return L._onLabelTextChange()}),f.\u0275\u0275elementStart(13,"span",13),f.\u0275\u0275text(14,"\xa0"),f.\u0275\u0275elementEnd(),f.\u0275\u0275projection(15),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&b){const F=f.\u0275\u0275reference(1),ne=f.\u0275\u0275reference(12);f.\u0275\u0275attribute("for",L.inputId),f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-slide-toggle-bar-no-side-margin",!ne.textContent||!ne.textContent.trim()),f.\u0275\u0275advance(2),f.\u0275\u0275property("id",L.inputId)("required",L.required)("tabIndex",L.tabIndex)("checked",L.checked)("disabled",L.disabled),f.\u0275\u0275attribute("name",L.name)("aria-checked",L.checked.toString())("aria-label",L.ariaLabel)("aria-labelledby",L.ariaLabelledby)("aria-describedby",L.ariaDescribedby),f.\u0275\u0275advance(5),f.\u0275\u0275property("matRippleTrigger",F)("matRippleDisabled",L.disableRipple||L.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",f.\u0275\u0275pureFunction1(18,i,L._noopAnimations?0:150))}},directives:[v.MatRipple,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),M})();const O={provide:o.NG_VALIDATORS,useExisting:(0,f.forwardRef)(()=>w),multi:!0};let w=(()=>{class M extends o.CheckboxRequiredValidator{}return M.\u0275fac=function(){let I;return function(L){return(I||(I=f.\u0275\u0275getInheritedFactory(M)))(L||M)}}(),M.\u0275dir=f.\u0275\u0275defineDirective({type:M,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[f.\u0275\u0275ProvidersFeature([O]),f.\u0275\u0275InheritDefinitionFeature]}),M})(),A=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=f.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=f.\u0275\u0275defineInjector({}),M})(),S=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=f.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=f.\u0275\u0275defineInjector({imports:[[A,v.MatRippleModule,v.MatCommonModule,n.Q8],A,v.MatCommonModule]}),M})()},8029:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_SLIDER_VALUE_ACCESSOR:()=>D,MatSlider:()=>A,MatSliderChange:()=>O,MatSliderModule:()=>L});var n=p(9808),f=p(5e3),v=p(508),m=p(3191),o=p(1159),d=p(3075),u=p(6360),h=p(925),r=p(2654),s=p(5664),i=p(226);const c=["sliderWrapper"],l=(0,h.i$)({passive:!1}),D={provide:d.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>A),multi:!0};class O{}const w=(0,v.mixinTabIndex)((0,v.mixinColor)((0,v.mixinDisabled)(class{constructor(F){this._elementRef=F}}),"accent"));let A=(()=>{class F extends w{constructor(Y,Q,te,$,J,ie,ae,le){super(Y),this._focusMonitor=Q,this._changeDetectorRef=te,this._dir=$,this._ngZone=ie,this._animationMode=le,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new f.EventEmitter,this.input=new f.EventEmitter,this.valueChange=new f.EventEmitter,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=r.w.EMPTY,this._pointerDown=Oe=>{this.disabled||this._isSliding||!S(Oe)&&0!==Oe.button||this._ngZone.run(()=>{this._touchId=S(Oe)?function(F,ne){for(let Y=0;Y{if("pointer"===this._isSliding){const Le=M(Oe,this._touchId);if(Le){Oe.preventDefault();const Ye=this.value;this._lastPointerEvent=Oe,this._updateValueFromPosition(Le),Ye!=this.value&&this._emitInputEvent()}}},this._pointerUp=Oe=>{"pointer"===this._isSliding&&(!S(Oe)||"number"!=typeof this._touchId||I(Oe.changedTouches,this._touchId))&&(Oe.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=ae,this.tabIndex=parseInt(J)||0,ie.runOutsideAngular(()=>{const Oe=Y.nativeElement;Oe.addEventListener("mousedown",this._pointerDown,l),Oe.addEventListener("touchstart",this._pointerDown,l)})}get invert(){return this._invert}set invert(Y){this._invert=(0,m.Ig)(Y)}get max(){return this._max}set max(Y){this._max=(0,m.su)(Y,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(Y){this._min=(0,m.su)(Y,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(Y){this._step=(0,m.su)(Y,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(Y){this._thumbLabel=(0,m.Ig)(Y)}get tickInterval(){return this._tickInterval}set tickInterval(Y){this._tickInterval="auto"===Y?"auto":"number"==typeof Y||"string"==typeof Y?(0,m.su)(Y,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(Y){if(Y!==this._value){let Q=(0,m.su)(Y,0);this._roundToDecimal&&Q!==this.min&&Q!==this.max&&(Q=parseFloat(Q.toFixed(this._roundToDecimal))),this._value=Q,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(Y){this._vertical=(0,m.Ig)(Y)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(Y){this._focusHostElement(Y)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const Q=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${Q})`}}_getTrackFillStyles(){const Y=this.percent,te=this.vertical?`1, ${Y}, 1`:`${Y}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${te})`,display:0===Y?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let Y=100*this._tickIntervalPercent,ie={backgroundSize:this.vertical?`2px ${Y}%`:`${Y}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${Y/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const ae=this._shouldInvertAxis();let le;le=this.vertical?ae?"Bottom":"Top":ae?"Right":"Left",ie[`padding${le}`]=`${this._getThumbGap()}px`}return ie}_getThumbContainerStyles(){const Y=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?Y:!Y)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const Y=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?Y:!Y}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Y=>{this._isActive=!!Y&&"keyboard"!==Y,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const Y=this._elementRef.nativeElement;Y.removeEventListener("mousedown",this._pointerDown,l),Y.removeEventListener("touchstart",this._pointerDown,l),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(Y){if(this.disabled||(0,o.Vb)(Y)||this._isSliding&&"keyboard"!==this._isSliding)return;const Q=this.value;switch(Y.keyCode){case o.Ku:this._increment(10);break;case o.VM:this._increment(-10);break;case o.uR:this.value=this.max;break;case o.Sd:this.value=this.min;break;case o.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case o.LH:this._increment(1);break;case o.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case o.JH:this._increment(-1);break;default:return}Q!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",Y.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(Y){const Q=this._document,te=S(Y),J=te?"touchend":"mouseup";Q.addEventListener(te?"touchmove":"mousemove",this._pointerMove,l),Q.addEventListener(J,this._pointerUp,l),te&&Q.addEventListener("touchcancel",this._pointerUp,l);const ie=this._getWindow();void 0!==ie&&ie&&ie.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const Y=this._document;Y.removeEventListener("mousemove",this._pointerMove,l),Y.removeEventListener("mouseup",this._pointerUp,l),Y.removeEventListener("touchmove",this._pointerMove,l),Y.removeEventListener("touchend",this._pointerUp,l),Y.removeEventListener("touchcancel",this._pointerUp,l);const Q=this._getWindow();void 0!==Q&&Q&&Q.removeEventListener("blur",this._windowBlur)}_increment(Y){this.value=this._clamp((this.value||0)+this.step*Y,this.min,this.max)}_updateValueFromPosition(Y){if(!this._sliderDimensions)return;let J=this._clamp(((this.vertical?Y.y:Y.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(J=1-J),0===J)this.value=this.min;else if(1===J)this.value=this.max;else{const ie=this._calculateValue(J),ae=Math.round((ie-this.min)/this.step)*this.step+this.min;this.value=this._clamp(ae,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let Y=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,$=Math.ceil(30/(Y*this.step/(this.max-this.min)))*this.step;this._tickIntervalPercent=$/Y}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(Y=this.value){let Q=new O;return Q.source=this,Q.value=Y,Q}_calculatePercentage(Y){return((Y||0)-this.min)/(this.max-this.min)}_calculateValue(Y){return this.min+Y*(this.max-this.min)}_clamp(Y,Q=0,te=1){return Math.max(Q,Math.min(Y,te))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(Y){this._elementRef.nativeElement.focus(Y)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(Y){this.value=Y}registerOnChange(Y){this._controlValueAccessorChangeFn=Y}registerOnTouched(Y){this.onTouched=Y}setDisabledState(Y){this.disabled=Y}}return F.\u0275fac=function(Y){return new(Y||F)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(s.tE),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(i.Is,8),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275directiveInject(n.DOCUMENT),f.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},F.\u0275cmp=f.\u0275\u0275defineComponent({type:F,selectors:[["mat-slider"]],viewQuery:function(Y,Q){if(1&Y&&f.\u0275\u0275viewQuery(c,5),2&Y){let te;f.\u0275\u0275queryRefresh(te=f.\u0275\u0275loadQuery())&&(Q._sliderWrapper=te.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(Y,Q){1&Y&&f.\u0275\u0275listener("focus",function(){return Q._onFocus()})("blur",function(){return Q._onBlur()})("keydown",function($){return Q._onKeydown($)})("keyup",function(){return Q._onKeyup()})("mouseenter",function(){return Q._onMouseenter()})("selectstart",function($){return $.preventDefault()}),2&Y&&(f.\u0275\u0275hostProperty("tabIndex",Q.tabIndex),f.\u0275\u0275attribute("aria-disabled",Q.disabled)("aria-valuemax",Q.max)("aria-valuemin",Q.min)("aria-valuenow",Q.value)("aria-valuetext",null==Q.valueText?Q.displayValue:Q.valueText)("aria-orientation",Q.vertical?"vertical":"horizontal"),f.\u0275\u0275classProp("mat-slider-disabled",Q.disabled)("mat-slider-has-ticks",Q.tickInterval)("mat-slider-horizontal",!Q.vertical)("mat-slider-axis-inverted",Q._shouldInvertAxis())("mat-slider-invert-mouse-coords",Q._shouldInvertMouseCoords())("mat-slider-sliding",Q._isSliding)("mat-slider-thumb-label-showing",Q.thumbLabel)("mat-slider-vertical",Q.vertical)("mat-slider-min-value",Q._isMinValue())("mat-slider-hide-last-tick",Q.disabled||Q._isMinValue()&&Q._getThumbGap()&&Q._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===Q._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[f.\u0275\u0275ProvidersFeature([D]),f.\u0275\u0275InheritDefinitionFeature],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(Y,Q){1&Y&&(f.\u0275\u0275elementStart(0,"div",0,1),f.\u0275\u0275elementStart(2,"div",2),f.\u0275\u0275element(3,"div",3),f.\u0275\u0275element(4,"div",4),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(5,"div",5),f.\u0275\u0275element(6,"div",6),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(7,"div",7),f.\u0275\u0275element(8,"div",8),f.\u0275\u0275element(9,"div",9),f.\u0275\u0275elementStart(10,"div",10),f.\u0275\u0275elementStart(11,"span",11),f.\u0275\u0275text(12),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&Y&&(f.\u0275\u0275advance(3),f.\u0275\u0275property("ngStyle",Q._getTrackBackgroundStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",Q._getTrackFillStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",Q._getTicksContainerStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",Q._getTicksStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",Q._getThumbContainerStyles()),f.\u0275\u0275advance(5),f.\u0275\u0275textInterpolate(Q.displayValue))},directives:[n.NgStyle],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),F})();function S(F){return"t"===F.type[0]}function M(F,ne){let Y;return Y=S(F)?"number"==typeof ne?I(F.touches,ne)||I(F.changedTouches,ne):F.touches[0]||F.changedTouches[0]:F,Y?{x:Y.clientX,y:Y.clientY}:void 0}function I(F,ne){for(let Y=0;Y{class F{}return F.\u0275fac=function(Y){return new(Y||F)},F.\u0275mod=f.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=f.\u0275\u0275defineInjector({imports:[[n.CommonModule,v.MatCommonModule],v.MatCommonModule]}),F})()},6346:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatCell:()=>He,MatCellDef:()=>It,MatColumnDef:()=>An,MatFooterCell:()=>ct,MatFooterCellDef:()=>cn,MatFooterRow:()=>On,MatFooterRowDef:()=>Ot,MatHeaderCell:()=>lt,MatHeaderCellDef:()=>Qt,MatHeaderRow:()=>on,MatHeaderRowDef:()=>pt,MatNoDataRow:()=>ji,MatRecycleRows:()=>Me,MatRow:()=>Yn,MatRowDef:()=>un,MatTable:()=>ze,MatTableDataSource:()=>ci,MatTableModule:()=>Ti,MatTextColumn:()=>Oi,_MatTableDataSource:()=>Vi});var n=p(5e3),f=p(3191),v=p(449),m=p(9808),o=p(8929),d=p(5254),u=p(591),h=p(6498),s=p(1086),i=p(7625),c=p(2986),l=p(226),g=p(925),y=p(9071);const E=[[["caption"]],[["colgroup"],["col"]]],T=["caption","colgroup, col"];function D(xe,Ze){if(1&xe&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&xe){const ue=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",ue.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",ue.headerText," ")}}function O(xe,Ze){if(1&xe&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&xe){const ue=Ze.$implicit,Re=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Re.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Re.dataAccessor(ue,Re.name)," ")}}function w(xe){return class extends xe{constructor(...Ze){super(...Ze),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ze){const ue=this._sticky;this._sticky=(0,f.Ig)(Ze),this._hasStickyChanged=ue!==this._sticky}hasStickyChanged(){const Ze=this._hasStickyChanged;return this._hasStickyChanged=!1,Ze}resetStickyChanged(){this._hasStickyChanged=!1}}}const A=new n.InjectionToken("CDK_TABLE"),S=new n.InjectionToken("text-column-options");let M=(()=>{class xe{constructor(ue){this.template=ue}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkCellDef",""]]}),xe})(),I=(()=>{class xe{constructor(ue){this.template=ue}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkHeaderCellDef",""]]}),xe})(),b=(()=>{class xe{constructor(ue){this.template=ue}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkFooterCellDef",""]]}),xe})();class L{}const F=w(L);let ne=(()=>{class xe extends F{constructor(ue){super(),this._table=ue,this._stickyEnd=!1}get name(){return this._name}set name(ue){this._setNameInput(ue)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ue){const Re=this._stickyEnd;this._stickyEnd=(0,f.Ig)(ue),this._hasStickyChanged=Re!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ue){ue&&(this._name=ue,this.cssClassFriendlyName=ue.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(A,8))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkColumnDef",""]],contentQueries:function(ue,Re,B){if(1&ue&&(n.\u0275\u0275contentQuery(B,M,5),n.\u0275\u0275contentQuery(B,I,5),n.\u0275\u0275contentQuery(B,b,5)),2&ue){let de;n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re.cell=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re.headerCell=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re.footerCell=de.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})();class Y{constructor(Ze,ue){const Re=ue.nativeElement.classList;for(const B of Ze._columnCssClassName)Re.add(B)}}let Q=(()=>{class xe extends Y{constructor(ue,Re){super(ue,Re)}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(ne),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),te=(()=>{class xe extends Y{constructor(ue,Re){var B;if(super(ue,Re),1===(null===(B=ue._table)||void 0===B?void 0:B._elementRef.nativeElement.nodeType)){const de=ue._table._elementRef.nativeElement.getAttribute("role");Re.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(ne),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),$=(()=>{class xe extends Y{constructor(ue,Re){var B;if(super(ue,Re),1===(null===(B=ue._table)||void 0===B?void 0:B._elementRef.nativeElement.nodeType)){const de=ue._table._elementRef.nativeElement.getAttribute("role");Re.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(ne),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})();class J{constructor(){this.tasks=[],this.endTasks=[]}}const ie=new n.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ae=(()=>{class xe{constructor(ue){this._ngZone=ue,this._currentSchedule=null,this._destroyed=new o.xQ}schedule(ue){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ue)}scheduleEnd(ue){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ue)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new J,this._getScheduleObservable().pipe((0,i.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ue=this._currentSchedule;this._currentSchedule=new J;for(const Re of ue.tasks)Re();for(const Re of ue.endTasks)Re()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,d.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,c.q)(1))}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275inject(n.NgZone))},xe.\u0275prov=n.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})(),Oe=(()=>{class xe{constructor(ue,Re){this.template=ue,this._differs=Re}ngOnChanges(ue){if(!this._columnsDiffer){const Re=ue.columns&&ue.columns.currentValue||[];this._columnsDiffer=this._differs.find(Re).create(),this._columnsDiffer.diff(Re)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ue){return this instanceof Je?ue.headerCell.template:this instanceof tt?ue.footerCell.template:ue.cell.template}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,features:[n.\u0275\u0275NgOnChangesFeature]}),xe})();class Le extends Oe{}const Ye=w(Le);let Je=(()=>{class xe extends Ye{constructor(ue,Re,B){super(ue,Re),this._table=B}ngOnChanges(ue){super.ngOnChanges(ue)}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),xe})();class gt extends Oe{}const Ue=w(gt);let tt=(()=>{class xe extends Ue{constructor(ue,Re,B){super(ue,Re),this._table=B}ngOnChanges(ue){super.ngOnChanges(ue)}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),xe})(),at=(()=>{class xe extends Oe{constructor(ue,Re,B){super(ue,Re),this._table=B}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),ft=(()=>{class xe{constructor(ue){this._viewContainer=ue,xe.mostRecentCellOutlet=this}ngOnDestroy(){xe.mostRecentCellOutlet===this&&(xe.mostRecentCellOutlet=null)}}return xe.mostRecentCellOutlet=null,xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkCellOutlet",""]]}),xe})(),vt=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),yt=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),ot=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),_t=(()=>{class xe{constructor(ue){this.templateRef=ue,this._contentClassName="cdk-no-data-row"}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["ng-template","cdkNoDataRow",""]]}),xe})();const At=["top","bottom","left","right"];class Tt{constructor(Ze,ue,Re,B,de=!0,Pe=!0,Xe){this._isNativeHtmlTable=Ze,this._stickCellCss=ue,this.direction=Re,this._coalescedStyleScheduler=B,this._isBrowser=de,this._needsPositionStickyOnElement=Pe,this._positionListener=Xe,this._cachedCellWidths=[],this._borderCellCss={top:`${ue}-border-elem-top`,bottom:`${ue}-border-elem-bottom`,left:`${ue}-border-elem-left`,right:`${ue}-border-elem-right`}}clearStickyPositioning(Ze,ue){const Re=[];for(const B of Ze)if(B.nodeType===B.ELEMENT_NODE){Re.push(B);for(let de=0;de{for(const B of Re)this._removeStickyStyle(B,ue)})}updateStickyColumns(Ze,ue,Re,B=!0){if(!Ze.length||!this._isBrowser||!ue.some(an=>an)&&!Re.some(an=>an))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const de=Ze[0],Pe=de.children.length,Xe=this._getCellWidths(de,B),Wt=this._getStickyStartColumnPositions(Xe,ue),Ft=this._getStickyEndColumnPositions(Xe,Re),Ht=ue.lastIndexOf(!0),Zt=Re.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const an="rtl"===this.direction,Tn=an?"right":"left",zn=an?"left":"right";for(const $n of Ze)for(let ti=0;tiue[ti]?$n:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Zt?[]:Xe.slice(Zt).map(($n,ti)=>Re[ti+Zt]?$n:null).reverse()}))})}stickRows(Ze,ue,Re){if(!this._isBrowser)return;const B="bottom"===Re?Ze.slice().reverse():Ze,de="bottom"===Re?ue.slice().reverse():ue,Pe=[],Xe=[],Wt=[];for(let Ht=0,Zt=0;Ht{var Ht,Zt;for(let an=0;an{ue.some(B=>!B)?this._removeStickyStyle(Re,["bottom"]):this._addStickyStyle(Re,"bottom",0,!1)})}_removeStickyStyle(Ze,ue){for(const B of ue)Ze.style[B]="",Ze.classList.remove(this._borderCellCss[B]);At.some(B=>-1===ue.indexOf(B)&&Ze.style[B])?Ze.style.zIndex=this._getCalculatedZIndex(Ze):(Ze.style.zIndex="",this._needsPositionStickyOnElement&&(Ze.style.position=""),Ze.classList.remove(this._stickCellCss))}_addStickyStyle(Ze,ue,Re,B){Ze.classList.add(this._stickCellCss),B&&Ze.classList.add(this._borderCellCss[ue]),Ze.style[ue]=`${Re}px`,Ze.style.zIndex=this._getCalculatedZIndex(Ze),this._needsPositionStickyOnElement&&(Ze.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ze){const ue={top:100,bottom:10,left:1,right:1};let Re=0;for(const B of At)Ze.style[B]&&(Re+=ue[B]);return Re?`${Re}`:""}_getCellWidths(Ze,ue=!0){if(!ue&&this._cachedCellWidths.length)return this._cachedCellWidths;const Re=[],B=Ze.children;for(let de=0;de0;de--)ue[de]&&(Re[de]=B,B+=Ze[de]);return Re}}const _e=new n.InjectionToken("CDK_SPL");let $e=(()=>{class xe{constructor(ue,Re){this.viewContainer=ue,this.elementRef=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","rowOutlet",""]]}),xe})(),st=(()=>{class xe{constructor(ue,Re){this.viewContainer=ue,this.elementRef=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","headerRowOutlet",""]]}),xe})(),ut=(()=>{class xe{constructor(ue,Re){this.viewContainer=ue,this.elementRef=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","footerRowOutlet",""]]}),xe})(),St=(()=>{class xe{constructor(ue,Re){this.viewContainer=ue,this.elementRef=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","noDataRowOutlet",""]]}),xe})(),Dt=(()=>{class xe{constructor(ue,Re,B,de,Pe,Xe,Wt,Ft,Ht,Zt,an){this._differs=ue,this._changeDetectorRef=Re,this._elementRef=B,this._dir=Pe,this._platform=Wt,this._viewRepeater=Ft,this._coalescedStyleScheduler=Ht,this._viewportRuler=Zt,this._stickyPositioningListener=an,this._onDestroy=new o.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new n.EventEmitter,this.viewChange=new u.X({start:0,end:Number.MAX_VALUE}),de||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Xe,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ue){this._trackByFn=ue}get dataSource(){return this._dataSource}set dataSource(ue){this._dataSource!==ue&&this._switchDataSource(ue)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ue){this._multiTemplateDataRows=(0,f.Ig)(ue),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ue){this._fixedLayout=(0,f.Ig)(ue),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ue,Re)=>this.trackBy?this.trackBy(Re.dataIndex,Re.data):Re),this._viewportRuler.change().pipe((0,i.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Re=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Re,this._forceRecalculateCellWidths=Re,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ue=this._dataDiffer.diff(this._renderRows);if(!ue)return this._updateNoDataRow(),void this.contentChanged.next();const Re=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ue,Re,(B,de,Pe)=>this._getEmbeddedViewArgs(B.item,Pe),B=>B.item.data,B=>{1===B.operation&&B.context&&this._renderCellTemplateForItem(B.record.item.rowDef,B.context)}),this._updateRowIndexContext(),ue.forEachIdentityChange(B=>{Re.get(B.currentIndex).context.$implicit=B.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ue){this._customColumnDefs.add(ue)}removeColumnDef(ue){this._customColumnDefs.delete(ue)}addRowDef(ue){this._customRowDefs.add(ue)}removeRowDef(ue){this._customRowDefs.delete(ue)}addHeaderRowDef(ue){this._customHeaderRowDefs.add(ue),this._headerRowDefChanged=!0}removeHeaderRowDef(ue){this._customHeaderRowDefs.delete(ue),this._headerRowDefChanged=!0}addFooterRowDef(ue){this._customFooterRowDefs.add(ue),this._footerRowDefChanged=!0}removeFooterRowDef(ue){this._customFooterRowDefs.delete(ue),this._footerRowDefChanged=!0}setNoDataRow(ue){this._customNoDataRow=ue}updateStickyHeaderRowStyles(){const ue=this._getRenderedRows(this._headerRowOutlet),B=this._elementRef.nativeElement.querySelector("thead");B&&(B.style.display=ue.length?"":"none");const de=this._headerRowDefs.map(Pe=>Pe.sticky);this._stickyStyler.clearStickyPositioning(ue,["top"]),this._stickyStyler.stickRows(ue,de,"top"),this._headerRowDefs.forEach(Pe=>Pe.resetStickyChanged())}updateStickyFooterRowStyles(){const ue=this._getRenderedRows(this._footerRowOutlet),B=this._elementRef.nativeElement.querySelector("tfoot");B&&(B.style.display=ue.length?"":"none");const de=this._footerRowDefs.map(Pe=>Pe.sticky);this._stickyStyler.clearStickyPositioning(ue,["bottom"]),this._stickyStyler.stickRows(ue,de,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,de),this._footerRowDefs.forEach(Pe=>Pe.resetStickyChanged())}updateStickyColumnStyles(){const ue=this._getRenderedRows(this._headerRowOutlet),Re=this._getRenderedRows(this._rowOutlet),B=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ue,...Re,...B],["left","right"]),this._stickyColumnStylesNeedReset=!1),ue.forEach((de,Pe)=>{this._addStickyColumnStyles([de],this._headerRowDefs[Pe])}),this._rowDefs.forEach(de=>{const Pe=[];for(let Xe=0;Xe{this._addStickyColumnStyles([de],this._footerRowDefs[Pe])}),Array.from(this._columnDefsByName.values()).forEach(de=>de.resetStickyChanged())}_getAllRenderRows(){const ue=[],Re=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let B=0;B{const Xe=B&&B.has(Pe)?B.get(Pe):[];if(Xe.length){const Wt=Xe.shift();return Wt.dataIndex=Re,Wt}return{data:ue,rowDef:Pe,dataIndex:Re}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Kt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Re=>{this._columnDefsByName.has(Re.name),this._columnDefsByName.set(Re.name,Re)})}_cacheRowDefs(){this._headerRowDefs=Kt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Kt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Kt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ue=this._rowDefs.filter(Re=>!Re.when);this._defaultRowDef=ue[0]}_renderUpdatedColumns(){const ue=(Pe,Xe)=>Pe||!!Xe.getColumnsDiff(),Re=this._rowDefs.reduce(ue,!1);Re&&this._forceRenderDataRows();const B=this._headerRowDefs.reduce(ue,!1);B&&this._forceRenderHeaderRows();const de=this._footerRowDefs.reduce(ue,!1);return de&&this._forceRenderFooterRows(),Re||B||de}_switchDataSource(ue){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ue||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ue}_observeRenderChanges(){if(!this.dataSource)return;let ue;(0,v.Z9)(this.dataSource)?ue=this.dataSource.connect(this):function(xe){return!!xe&&(xe instanceof h.y||"function"==typeof xe.lift&&"function"==typeof xe.subscribe)}(this.dataSource)?ue=this.dataSource:Array.isArray(this.dataSource)&&(ue=(0,s.of)(this.dataSource)),this._renderChangeSubscription=ue.pipe((0,i.R)(this._onDestroy)).subscribe(Re=>{this._data=Re||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ue,Re)=>this._renderRow(this._headerRowOutlet,ue,Re)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ue,Re)=>this._renderRow(this._footerRowOutlet,ue,Re)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ue,Re){const B=Array.from(Re.columns||[]).map(Xe=>this._columnDefsByName.get(Xe)),de=B.map(Xe=>Xe.sticky),Pe=B.map(Xe=>Xe.stickyEnd);this._stickyStyler.updateStickyColumns(ue,de,Pe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ue){const Re=[];for(let B=0;B!de.when||de.when(Re,ue));else{let de=this._rowDefs.find(Pe=>Pe.when&&Pe.when(Re,ue))||this._defaultRowDef;de&&B.push(de)}return B}_getEmbeddedViewArgs(ue,Re){return{templateRef:ue.rowDef.template,context:{$implicit:ue.data},index:Re}}_renderRow(ue,Re,B,de={}){const Pe=ue.viewContainer.createEmbeddedView(Re.template,de,B);return this._renderCellTemplateForItem(Re,de),Pe}_renderCellTemplateForItem(ue,Re){for(let B of this._getCellTemplates(ue))ft.mostRecentCellOutlet&&ft.mostRecentCellOutlet._viewContainer.createEmbeddedView(B,Re);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ue=this._rowOutlet.viewContainer;for(let Re=0,B=ue.length;Re{const B=this._columnDefsByName.get(Re);return ue.extractCellTemplate(B)}):[]}_applyNativeTableSections(){const ue=this._document.createDocumentFragment(),Re=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const B of Re){const de=this._document.createElement(B.tag);de.setAttribute("role","rowgroup");for(const Pe of B.outlets)de.appendChild(Pe.elementRef.nativeElement);ue.appendChild(de)}this._elementRef.nativeElement.appendChild(ue)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ue=(Re,B)=>Re||B.hasStickyChanged();this._headerRowDefs.reduce(ue,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ue,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ue,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Tt(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,s.of)()).pipe((0,i.R)(this._onDestroy)).subscribe(Re=>{this._stickyStyler.direction=Re,this.updateStickyColumnStyles()})}_getOwnDefs(ue){return ue.filter(Re=>!Re._table||Re._table===this)}_updateNoDataRow(){const ue=this._customNoDataRow||this._noDataRow;if(!ue)return;const Re=0===this._rowOutlet.viewContainer.length;if(Re===this._isShowingNoDataRow)return;const B=this._noDataRowOutlet.viewContainer;if(Re){const de=B.createEmbeddedView(ue.templateRef),Pe=de.rootNodes[0];1===de.rootNodes.length&&(null==Pe?void 0:Pe.nodeType)===this._document.ELEMENT_NODE&&(Pe.setAttribute("role","row"),Pe.classList.add(ue._contentClassName))}else B.clear();this._isShowingNoDataRow=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275injectAttribute("role"),n.\u0275\u0275directiveInject(l.Is,8),n.\u0275\u0275directiveInject(m.DOCUMENT),n.\u0275\u0275directiveInject(g.t4),n.\u0275\u0275directiveInject(v.k),n.\u0275\u0275directiveInject(ie),n.\u0275\u0275directiveInject(y.rL),n.\u0275\u0275directiveInject(_e,12))},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ue,Re,B){if(1&ue&&(n.\u0275\u0275contentQuery(B,_t,5),n.\u0275\u0275contentQuery(B,ne,5),n.\u0275\u0275contentQuery(B,at,5),n.\u0275\u0275contentQuery(B,Je,5),n.\u0275\u0275contentQuery(B,tt,5)),2&ue){let de;n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._noDataRow=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._contentColumnDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._contentRowDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._contentHeaderRowDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._contentFooterRowDefs=de)}},viewQuery:function(ue,Re){if(1&ue&&(n.\u0275\u0275viewQuery($e,7),n.\u0275\u0275viewQuery(st,7),n.\u0275\u0275viewQuery(ut,7),n.\u0275\u0275viewQuery(St,7)),2&ue){let B;n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re._rowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re._headerRowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re._footerRowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re._noDataRowOutlet=B.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ue,Re){2&ue&&n.\u0275\u0275classProp("cdk-table-fixed-layout",Re.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:A,useExisting:xe},{provide:v.k,useClass:v.yy},{provide:ie,useClass:ae},{provide:_e,useValue:null}])],ngContentSelectors:T,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ue,Re){1&ue&&(n.\u0275\u0275projectionDef(E),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0),n.\u0275\u0275elementContainer(3,1),n.\u0275\u0275elementContainer(4,2),n.\u0275\u0275elementContainer(5,3))},directives:[st,$e,St,ut],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),xe})();function Kt(xe,Ze){return xe.concat(Array.from(Ze))}let et=(()=>{class xe{constructor(ue,Re){this._table=ue,this._options=Re,this.justify="start",this._options=Re||{}}get name(){return this._name}set name(ue){this._name=ue,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((ue,Re)=>ue[Re])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const ue=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(ue):ue[0].toUpperCase()+ue.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(Dt,8),n.\u0275\u0275directiveInject(S,8))},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-text-column"]],viewQuery:function(ue,Re){if(1&ue&&(n.\u0275\u0275viewQuery(ne,7),n.\u0275\u0275viewQuery(M,7),n.\u0275\u0275viewQuery(I,7)),2&ue){let B;n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re.columnDef=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re.cell=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re.headerCell=B.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(ue,Re){1&ue&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,D,2,3,"th",1),n.\u0275\u0275template(2,O,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},directives:[ne,I,M,Q,$],encapsulation:2}),xe})(),Lt=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275mod=n.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=n.\u0275\u0275defineInjector({imports:[[y.Cl]]}),xe})();var Qe=p(508),mt=p(6787),Vt=p(6053),qt=p(4850);const Ne=[[["caption"]],[["colgroup"],["col"]]],Se=["caption","colgroup, col"];function ee(xe,Ze){if(1&xe&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&xe){const ue=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",ue.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",ue.headerText," ")}}function re(xe,Ze){if(1&xe&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&xe){const ue=Ze.$implicit,Re=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Re.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Re.dataAccessor(ue,Re.name)," ")}}let Me=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:v.k,useClass:v.eX}])]}),xe})(),ze=(()=>{class xe extends Dt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ue,Re){2&ue&&n.\u0275\u0275classProp("mat-table-fixed-layout",Re.fixedLayout)},exportAs:["matTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:v.k,useClass:v.yy},{provide:Dt,useExisting:xe},{provide:A,useExisting:xe},{provide:ie,useClass:ae},{provide:_e,useValue:null}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Se,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ue,Re){1&ue&&(n.\u0275\u0275projectionDef(Ne),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0),n.\u0275\u0275elementContainer(3,1),n.\u0275\u0275elementContainer(4,2),n.\u0275\u0275elementContainer(5,3))},directives:[st,$e,St,ut],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),xe})(),It=(()=>{class xe extends M{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:M,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),Qt=(()=>{class xe extends I{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matHeaderCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:I,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),cn=(()=>{class xe extends b{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matFooterCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:b,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),An=(()=>{class xe extends ne{get name(){return this._name}set name(ue){this._setNameInput(ue)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n.\u0275\u0275ProvidersFeature([{provide:ne,useExisting:xe},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),lt=(()=>{class xe extends Q{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),ct=(()=>{class xe extends te{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),He=(()=>{class xe extends ${}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),pt=(()=>{class xe extends Je{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:Je,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),Ot=(()=>{class xe extends tt{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:tt,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),un=(()=>{class xe extends at{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n.\u0275\u0275ProvidersFeature([{provide:at,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),on=(()=>{class xe extends vt{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:vt,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),On=(()=>{class xe extends yt{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),Yn=(()=>{class xe extends ot{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:ot,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),ji=(()=>{class xe extends _t{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["ng-template","matNoDataRow",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:_t,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),Oi=(()=>{class xe extends et{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-text-column"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(ue,Re){1&ue&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,ee,2,3,"th",1),n.\u0275\u0275template(2,re,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},directives:[An,Qt,It,lt,He],encapsulation:2}),xe})(),Ti=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275mod=n.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=n.\u0275\u0275defineInjector({imports:[[Lt,Qe.MatCommonModule],Qe.MatCommonModule]}),xe})();class Vi extends v.o2{constructor(Ze=[]){super(),this._renderData=new u.X([]),this._filter=new u.X(""),this._internalPageChanges=new o.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ue,Re)=>{const B=ue[Re];if((0,f.t6)(B)){const de=Number(B);return de<9007199254740991?de:B}return B},this.sortData=(ue,Re)=>{const B=Re.active,de=Re.direction;return B&&""!=de?ue.sort((Pe,Xe)=>{let Wt=this.sortingDataAccessor(Pe,B),Ft=this.sortingDataAccessor(Xe,B);const Ht=typeof Wt,Zt=typeof Ft;Ht!==Zt&&("number"===Ht&&(Wt+=""),"number"===Zt&&(Ft+=""));let an=0;return null!=Wt&&null!=Ft?Wt>Ft?an=1:Wt{const B=Object.keys(ue).reduce((Pe,Xe)=>Pe+ue[Xe]+"\u25ec","").toLowerCase(),de=Re.trim().toLowerCase();return-1!=B.indexOf(de)},this._data=new u.X(Ze),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ze){this._data.next(Ze),this._renderChangesSubscription||this._filterData(Ze)}get filter(){return this._filter.value}set filter(Ze){this._filter.next(Ze),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ze){this._sort=Ze,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ze){this._paginator=Ze,this._updateChangeSubscription()}_updateChangeSubscription(){var Ze;const ue=this._sort?(0,mt.T)(this._sort.sortChange,this._sort.initialized):(0,s.of)(null),Re=this._paginator?(0,mt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,s.of)(null),de=(0,Vt.aj)([this._data,this._filter]).pipe((0,qt.U)(([Wt])=>this._filterData(Wt))),Pe=(0,Vt.aj)([de,ue]).pipe((0,qt.U)(([Wt])=>this._orderData(Wt))),Xe=(0,Vt.aj)([Pe,Re]).pipe((0,qt.U)(([Wt])=>this._pageData(Wt)));null===(Ze=this._renderChangesSubscription)||void 0===Ze||Ze.unsubscribe(),this._renderChangesSubscription=Xe.subscribe(Wt=>this._renderData.next(Wt))}_filterData(Ze){return this.filteredData=null==this.filter||""===this.filter?Ze:Ze.filter(ue=>this.filterPredicate(ue,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ze){return this.sort?this.sortData(Ze.slice(),this.sort):Ze}_pageData(Ze){if(!this.paginator)return Ze;const ue=this.paginator.pageIndex*this.paginator.pageSize;return Ze.slice(ue,ue+this.paginator.pageSize)}_updatePaginator(Ze){Promise.resolve().then(()=>{const ue=this.paginator;if(ue&&(ue.length=Ze,ue.pageIndex>0)){const Re=Math.ceil(ue.length/ue.pageSize)-1||0,B=Math.min(ue.pageIndex,Re);B!==ue.pageIndex&&(ue.pageIndex=B,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ze;null===(Ze=this._renderChangesSubscription)||void 0===Ze||Ze.unsubscribe(),this._renderChangesSubscription=null}}class ci extends Vi{}},3251:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_TAB:()=>yt,MAT_TABS_CONFIG:()=>H,MAT_TAB_GROUP:()=>At,MatInkBar:()=>tt,MatTab:()=>Tt,MatTabBody:()=>fe,MatTabBodyPortal:()=>Et,MatTabChangeEvent:()=>tn,MatTabContent:()=>ft,MatTabGroup:()=>et,MatTabHeader:()=>St,MatTabLabel:()=>ot,MatTabLabelWrapper:()=>U,MatTabLink:()=>Vt,MatTabNav:()=>Lt,MatTabsModule:()=>qt,_MAT_INK_BAR_POSITIONER:()=>gt,_MatTabBodyBase:()=>Ee,_MatTabGroupBase:()=>Kt,_MatTabHeaderBase:()=>ut,_MatTabLinkBase:()=>mt,_MatTabNavBase:()=>xt,matTabsAnimations:()=>Bt});var n=p(5664),f=p(7144),v=p(7429),m=p(9808),o=p(5e3),d=p(508),u=p(6360),h=p(8929),r=p(2654),s=p(3753),i=p(1086),c=p(6787),l=p(8723),g=p(1777),y=p(1059),E=p(5778),T=p(7625),D=p(226),O=p(3191),w=p(1159),A=p(925),S=p(9071);function M(Ne,Se){1&Ne&&o.\u0275\u0275projection(0)}const I=["*"];function b(Ne,Se){}const L=function(Ne){return{animationDuration:Ne}},F=function(Ne,Se){return{value:Ne,params:Se}},ne=["tabListContainer"],Y=["tabList"],Q=["tabListInner"],te=["nextPaginator"],$=["previousPaginator"],J=["tabBodyWrapper"],ie=["tabHeader"];function ae(Ne,Se){}function le(Ne,Se){if(1&Ne&&o.\u0275\u0275template(0,ae,0,0,"ng-template",9),2&Ne){const ee=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275property("cdkPortalOutlet",ee.templateLabel)}}function Oe(Ne,Se){if(1&Ne&&o.\u0275\u0275text(0),2&Ne){const ee=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate(ee.textLabel)}}function Le(Ne,Se){if(1&Ne){const ee=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",6),o.\u0275\u0275listener("click",function(){const Me=o.\u0275\u0275restoreView(ee),ze=Me.$implicit,It=Me.index,Qt=o.\u0275\u0275nextContext(),cn=o.\u0275\u0275reference(1);return Qt._handleClick(ze,cn,It)})("cdkFocusChange",function(Me){const It=o.\u0275\u0275restoreView(ee).index;return o.\u0275\u0275nextContext()._tabFocusChanged(Me,It)}),o.\u0275\u0275elementStart(1,"div",7),o.\u0275\u0275template(2,le,1,1,"ng-template",8),o.\u0275\u0275template(3,Oe,1,1,"ng-template",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()}if(2&Ne){const ee=Se.$implicit,re=Se.index,Me=o.\u0275\u0275nextContext();o.\u0275\u0275classProp("mat-tab-label-active",Me.selectedIndex==re),o.\u0275\u0275property("id",Me._getTabLabelId(re))("disabled",ee.disabled)("matRippleDisabled",ee.disabled||Me.disableRipple),o.\u0275\u0275attribute("tabIndex",Me._getTabIndex(ee,re))("aria-posinset",re+1)("aria-setsize",Me._tabs.length)("aria-controls",Me._getTabContentId(re))("aria-selected",Me.selectedIndex==re)("aria-label",ee.ariaLabel||null)("aria-labelledby",!ee.ariaLabel&&ee.ariaLabelledby?ee.ariaLabelledby:null),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",ee.templateLabel),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ee.templateLabel)}}function Ye(Ne,Se){if(1&Ne){const ee=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-tab-body",10),o.\u0275\u0275listener("_onCentered",function(){return o.\u0275\u0275restoreView(ee),o.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(Me){return o.\u0275\u0275restoreView(ee),o.\u0275\u0275nextContext()._setTabBodyWrapperHeight(Me)}),o.\u0275\u0275elementEnd()}if(2&Ne){const ee=Se.$implicit,re=Se.index,Me=o.\u0275\u0275nextContext();o.\u0275\u0275classProp("mat-tab-body-active",Me.selectedIndex===re),o.\u0275\u0275property("id",Me._getTabContentId(re))("content",ee.content)("position",ee.position)("origin",ee.origin)("animationDuration",Me.animationDuration),o.\u0275\u0275attribute("tabindex",null!=Me.contentTabIndex&&Me.selectedIndex===re?Me.contentTabIndex:null)("aria-labelledby",Me._getTabLabelId(re))}}const Je=["mat-tab-nav-bar",""],gt=new o.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function(){return Se=>({left:Se?(Se.offsetLeft||0)+"px":"0",width:Se?(Se.offsetWidth||0)+"px":"0"})}});let tt=(()=>{class Ne{constructor(ee,re,Me,ze){this._elementRef=ee,this._ngZone=re,this._inkBarPositioner=Me,this._animationMode=ze}alignToElement(ee){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(ee))}):this._setStyles(ee)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(ee){const re=this._inkBarPositioner(ee),Me=this._elementRef.nativeElement;Me.style.left=re.left,Me.style.width=re.width}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(gt),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ee,re){2&ee&&o.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode)}}),Ne})();const at=new o.InjectionToken("MatTabContent");let ft=(()=>{class Ne{constructor(ee){this.template=ee}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.TemplateRef))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","matTabContent",""]],features:[o.\u0275\u0275ProvidersFeature([{provide:at,useExisting:Ne}])]}),Ne})();const vt=new o.InjectionToken("MatTabLabel"),yt=new o.InjectionToken("MAT_TAB");let ot=(()=>{class Ne extends v.ig{constructor(ee,re,Me){super(ee,re),this._closestTab=Me}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(yt,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[o.\u0275\u0275ProvidersFeature([{provide:vt,useExisting:Ne}]),o.\u0275\u0275InheritDefinitionFeature]}),Ne})();const _t=(0,d.mixinDisabled)(class{}),At=new o.InjectionToken("MAT_TAB_GROUP");let Tt=(()=>{class Ne extends _t{constructor(ee,re){super(),this._viewContainerRef=ee,this._closestTabGroup=re,this.textLabel="",this._contentPortal=null,this._stateChanges=new h.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ee){this._setTemplateLabelInput(ee)}get content(){return this._contentPortal}ngOnChanges(ee){(ee.hasOwnProperty("textLabel")||ee.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ee){ee&&ee._closestTab===this&&(this._templateLabel=ee)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(At,8))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-tab"]],contentQueries:function(ee,re,Me){if(1&ee&&(o.\u0275\u0275contentQuery(Me,vt,5),o.\u0275\u0275contentQuery(Me,at,7,o.TemplateRef)),2&ee){let ze;o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re.templateLabel=ze.first),o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re._explicitContent=ze.first)}},viewQuery:function(ee,re){if(1&ee&&o.\u0275\u0275viewQuery(o.TemplateRef,7),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._implicitContent=Me.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[o.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:Ne}]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:I,decls:1,vars:0,template:function(ee,re){1&ee&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,M,1,0,"ng-template"))},encapsulation:2}),Ne})();const Bt={translateTab:(0,g.X$)("translateTab",[(0,g.SB)("center, void, left-origin-center, right-origin-center",(0,g.oB)({transform:"none"})),(0,g.SB)("left",(0,g.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,g.SB)("right",(0,g.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,g.eR)("* => left, * => right, left => center, right => center",(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,g.eR)("void => left-origin-center",[(0,g.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,g.eR)("void => right-origin-center",[(0,g.oB)({transform:"translate3d(100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Et=(()=>{class Ne extends v.Pl{constructor(ee,re,Me,ze){super(ee,re,ze),this._host=Me,this._centeringSub=r.w.EMPTY,this._leavingSub=r.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,y.O)(this._host._isCenterPosition(this._host._position))).subscribe(ee=>{ee&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ComponentFactoryResolver),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject((0,o.forwardRef)(()=>fe)),o.\u0275\u0275directiveInject(m.DOCUMENT))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","matTabBodyHost",""]],features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),Ee=(()=>{class Ne{constructor(ee,re,Me){this._elementRef=ee,this._dir=re,this._dirChangeSubscription=r.w.EMPTY,this._translateTabComplete=new h.xQ,this._onCentering=new o.EventEmitter,this._beforeCentering=new o.EventEmitter,this._afterLeavingCenter=new o.EventEmitter,this._onCentered=new o.EventEmitter(!0),this.animationDuration="500ms",re&&(this._dirChangeSubscription=re.change.subscribe(ze=>{this._computePositionAnimationState(ze),Me.markForCheck()})),this._translateTabComplete.pipe((0,E.x)((ze,It)=>ze.fromState===It.fromState&&ze.toState===It.toState)).subscribe(ze=>{this._isCenterPosition(ze.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ze.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ee){this._positionIndex=ee,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ee){const re=this._isCenterPosition(ee.toState);this._beforeCentering.emit(re),re&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ee){return"center"==ee||"left-origin-center"==ee||"right-origin-center"==ee}_computePositionAnimationState(ee=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ee?"left":"right":this._positionIndex>0?"ltr"==ee?"right":"left":"center"}_computePositionFromOrigin(ee){const re=this._getLayoutDirection();return"ltr"==re&&ee<=0||"rtl"==re&&ee>0?"left-origin-center":"right-origin-center"}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ne})(),fe=(()=>{class Ne extends Ee{constructor(ee,re,Me){super(ee,re,Me)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-tab-body"]],viewQuery:function(ee,re){if(1&ee&&o.\u0275\u0275viewQuery(v.Pl,5),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._portalHost=Me.first)}},hostAttrs:[1,"mat-tab-body"],features:[o.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ee,re){1&ee&&(o.\u0275\u0275elementStart(0,"div",0,1),o.\u0275\u0275listener("@translateTab.start",function(ze){return re._onTranslateTabStarted(ze)})("@translateTab.done",function(ze){return re._translateTabComplete.next(ze)}),o.\u0275\u0275template(2,b,0,0,"ng-template",2),o.\u0275\u0275elementEnd()),2&ee&&o.\u0275\u0275property("@translateTab",o.\u0275\u0275pureFunction2(3,F,re._position,o.\u0275\u0275pureFunction1(1,L,re.animationDuration)))},directives:[Et],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Bt.translateTab]}}),Ne})();const H=new o.InjectionToken("MAT_TABS_CONFIG"),x=(0,d.mixinDisabled)(class{});let U=(()=>{class Ne extends x{constructor(ee){super(),this.elementRef=ee}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ee,re){2&ee&&(o.\u0275\u0275attribute("aria-disabled",!!re.disabled),o.\u0275\u0275classProp("mat-tab-disabled",re.disabled))},inputs:{disabled:"disabled"},features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})();const Z=(0,A.i$)({passive:!0});let st=(()=>{class Ne{constructor(ee,re,Me,ze,It,Qt,cn){this._elementRef=ee,this._changeDetectorRef=re,this._viewportRuler=Me,this._dir=ze,this._ngZone=It,this._platform=Qt,this._animationMode=cn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new o.EventEmitter,this.indexFocused=new o.EventEmitter,It.runOutsideAngular(()=>{(0,s.R)(ee.nativeElement,"mouseleave").pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(ee){ee=(0,O.su)(ee),this._selectedIndex!=ee&&(this._selectedIndexChanged=!0,this._selectedIndex=ee,this._keyManager&&this._keyManager.updateActiveItem(ee))}ngAfterViewInit(){(0,s.R)(this._previousPaginator.nativeElement,"touchstart",Z).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,s.R)(this._nextPaginator.nativeElement,"touchstart",Z).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ee=this._dir?this._dir.change:(0,i.of)("ltr"),re=this._viewportRuler.change(150),Me=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Me):Me(),(0,c.T)(ee,re,this._items.changes).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(Me)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,T.R)(this._destroyed)).subscribe(ze=>{this.indexFocused.emit(ze),this._setTabFocus(ze)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ee){if(!(0,w.Vb)(ee))switch(ee.keyCode){case w.K5:case w.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ee));break;default:this._keyManager.onKeydown(ee)}}_onContentChanges(){const ee=this._elementRef.nativeElement.textContent;ee!==this._currentTextContent&&(this._currentTextContent=ee||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(ee){!this._isValidIndex(ee)||this.focusIndex===ee||!this._keyManager||this._keyManager.setActiveItem(ee)}_isValidIndex(ee){if(!this._items)return!0;const re=this._items?this._items.toArray()[ee]:null;return!!re&&!re.disabled}_setTabFocus(ee){if(this._showPaginationControls&&this._scrollToLabel(ee),this._items&&this._items.length){this._items.toArray()[ee].focus();const re=this._tabListContainer.nativeElement;re.scrollLeft="ltr"==this._getLayoutDirection()?0:re.scrollWidth-re.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ee=this.scrollDistance,re="ltr"===this._getLayoutDirection()?-ee:ee;this._tabList.nativeElement.style.transform=`translateX(${Math.round(re)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ee){this._scrollTo(ee)}_scrollHeader(ee){return this._scrollTo(this._scrollDistance+("before"==ee?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ee){this._stopInterval(),this._scrollHeader(ee)}_scrollToLabel(ee){if(this.disablePagination)return;const re=this._items?this._items.toArray()[ee]:null;if(!re)return;const Me=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ze,offsetWidth:It}=re.elementRef.nativeElement;let Qt,cn;"ltr"==this._getLayoutDirection()?(Qt=ze,cn=Qt+It):(cn=this._tabListInner.nativeElement.offsetWidth-ze,Qt=cn-It);const An=this.scrollDistance,lt=this.scrollDistance+Me;Qtlt&&(this.scrollDistance+=cn-lt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ee=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ee||(this.scrollDistance=0),ee!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ee}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const ee=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,re=ee?ee.elementRef.nativeElement:null;re?this._inkBar.alignToElement(re):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ee,re){re&&null!=re.button&&0!==re.button||(this._stopInterval(),(0,l.H)(650,100).pipe((0,T.R)((0,c.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Me,distance:ze}=this._scrollHeader(ee);(0===ze||ze>=Me)&&this._stopInterval()}))}_scrollTo(ee){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const re=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(re,ee)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:re,distance:this._scrollDistance}}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(S.rL),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{disablePagination:"disablePagination"}}),Ne})(),ut=(()=>{class Ne extends st{constructor(ee,re,Me,ze,It,Qt,cn){super(ee,re,Me,ze,It,Qt,cn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ee){this._disableRipple=(0,O.Ig)(ee)}_itemSelected(ee){ee.preventDefault()}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(S.rL),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{disableRipple:"disableRipple"},features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),St=(()=>{class Ne extends ut{constructor(ee,re,Me,ze,It,Qt,cn){super(ee,re,Me,ze,It,Qt,cn)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(S.rL),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-tab-header"]],contentQueries:function(ee,re,Me){if(1&ee&&o.\u0275\u0275contentQuery(Me,U,4),2&ee){let ze;o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re._items=ze)}},viewQuery:function(ee,re){if(1&ee&&(o.\u0275\u0275viewQuery(tt,7),o.\u0275\u0275viewQuery(ne,7),o.\u0275\u0275viewQuery(Y,7),o.\u0275\u0275viewQuery(Q,7),o.\u0275\u0275viewQuery(te,5),o.\u0275\u0275viewQuery($,5)),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._inkBar=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabListContainer=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabList=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabListInner=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._nextPaginator=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._previousPaginator=Me.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ee,re){2&ee&&o.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",re._showPaginationControls)("mat-tab-header-rtl","rtl"==re._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:I,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ee,re){1&ee&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div",0,1),o.\u0275\u0275listener("click",function(){return re._handlePaginatorClick("before")})("mousedown",function(ze){return re._handlePaginatorPress("before",ze)})("touchend",function(){return re._stopInterval()}),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",3,4),o.\u0275\u0275listener("keydown",function(ze){return re._handleKeydown(ze)}),o.\u0275\u0275elementStart(5,"div",5,6),o.\u0275\u0275listener("cdkObserveContent",function(){return re._onContentChanges()}),o.\u0275\u0275elementStart(7,"div",7,8),o.\u0275\u0275projection(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(10,"mat-ink-bar"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"div",9,10),o.\u0275\u0275listener("mousedown",function(ze){return re._handlePaginatorPress("after",ze)})("click",function(){return re._handlePaginatorClick("after")})("touchend",function(){return re._stopInterval()}),o.\u0275\u0275element(13,"div",2),o.\u0275\u0275elementEnd()),2&ee&&(o.\u0275\u0275classProp("mat-tab-header-pagination-disabled",re._disableScrollBefore),o.\u0275\u0275property("matRippleDisabled",re._disableScrollBefore||re.disableRipple),o.\u0275\u0275advance(5),o.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode),o.\u0275\u0275advance(6),o.\u0275\u0275classProp("mat-tab-header-pagination-disabled",re._disableScrollAfter),o.\u0275\u0275property("matRippleDisabled",re._disableScrollAfter||re.disableRipple))},directives:[d.MatRipple,f.wD,tt],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Ne})(),Xt=0;class tn{}const Dt=(0,d.mixinColor)((0,d.mixinDisableRipple)(class{constructor(Ne){this._elementRef=Ne}}),"primary");let Kt=(()=>{class Ne extends Dt{constructor(ee,re,Me,ze){var It;super(ee),this._changeDetectorRef=re,this._animationMode=ze,this._tabs=new o.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=r.w.EMPTY,this._tabLabelSubscription=r.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new o.EventEmitter,this.focusChange=new o.EventEmitter,this.animationDone=new o.EventEmitter,this.selectedTabChange=new o.EventEmitter(!0),this._groupId=Xt++,this.animationDuration=Me&&Me.animationDuration?Me.animationDuration:"500ms",this.disablePagination=!(!Me||null==Me.disablePagination)&&Me.disablePagination,this.dynamicHeight=!(!Me||null==Me.dynamicHeight)&&Me.dynamicHeight,this.contentTabIndex=null!==(It=null==Me?void 0:Me.contentTabIndex)&&void 0!==It?It:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ee){this._dynamicHeight=(0,O.Ig)(ee)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ee){this._indexToSelect=(0,O.su)(ee,null)}get animationDuration(){return this._animationDuration}set animationDuration(ee){this._animationDuration=/^\d+$/.test(ee+"")?ee+"ms":ee}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ee){this._contentTabIndex=(0,O.su)(ee,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ee){const re=this._elementRef.nativeElement;re.classList.remove(`mat-background-${this.backgroundColor}`),ee&&re.classList.add(`mat-background-${ee}`),this._backgroundColor=ee}ngAfterContentChecked(){const ee=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ee){const re=null==this._selectedIndex;if(!re){this.selectedTabChange.emit(this._createChangeEvent(ee));const Me=this._tabBodyWrapper.nativeElement;Me.style.minHeight=Me.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Me,ze)=>Me.isActive=ze===ee),re||(this.selectedIndexChange.emit(ee),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((re,Me)=>{re.position=Me-ee,null!=this._selectedIndex&&0==re.position&&!re.origin&&(re.origin=ee-this._selectedIndex)}),this._selectedIndex!==ee&&(this._selectedIndex=ee,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const re=this._tabs.toArray();for(let Me=0;Me{this._tabs.reset(ee.filter(re=>re._closestTabGroup===this||!re._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(ee){const re=this._tabHeader;re&&(re.focusIndex=ee)}_focusChanged(ee){this.focusChange.emit(this._createChangeEvent(ee))}_createChangeEvent(ee){const re=new tn;return re.index=ee,this._tabs&&this._tabs.length&&(re.tab=this._tabs.toArray()[ee]),re}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,c.T)(...this._tabs.map(ee=>ee._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ee){return Math.min(this._tabs.length-1,Math.max(ee||0,0))}_getTabLabelId(ee){return`mat-tab-label-${this._groupId}-${ee}`}_getTabContentId(ee){return`mat-tab-content-${this._groupId}-${ee}`}_setTabBodyWrapperHeight(ee){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const re=this._tabBodyWrapper.nativeElement;re.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(re.style.height=ee+"px")}_removeTabBodyWrapperHeight(){const ee=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ee.clientHeight,ee.style.height="",this.animationDone.emit()}_handleClick(ee,re,Me){ee.disabled||(this.selectedIndex=re.focusIndex=Me)}_getTabIndex(ee,re){return ee.disabled?null:this.selectedIndex===re?0:-1}_tabFocusChanged(ee,re){ee&&"mouse"!==ee&&"touch"!==ee&&(this._tabHeader.focusIndex=re)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(H,8),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),et=(()=>{class Ne extends Kt{constructor(ee,re,Me,ze){super(ee,re,Me,ze)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(H,8),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-tab-group"]],contentQueries:function(ee,re,Me){if(1&ee&&o.\u0275\u0275contentQuery(Me,Tt,5),2&ee){let ze;o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re._allTabs=ze)}},viewQuery:function(ee,re){if(1&ee&&(o.\u0275\u0275viewQuery(J,5),o.\u0275\u0275viewQuery(ie,5)),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabBodyWrapper=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabHeader=Me.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ee,re){2&ee&&o.\u0275\u0275classProp("mat-tab-group-dynamic-height",re.dynamicHeight)("mat-tab-group-inverted-header","below"===re.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[o.\u0275\u0275ProvidersFeature([{provide:At,useExisting:Ne}]),o.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(ee,re){1&ee&&(o.\u0275\u0275elementStart(0,"mat-tab-header",0,1),o.\u0275\u0275listener("indexFocused",function(ze){return re._focusChanged(ze)})("selectFocusedIndex",function(ze){return re.selectedIndex=ze}),o.\u0275\u0275template(2,Le,4,14,"div",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",3,4),o.\u0275\u0275template(5,Ye,1,9,"mat-tab-body",5),o.\u0275\u0275elementEnd()),2&ee&&(o.\u0275\u0275property("selectedIndex",re.selectedIndex||0)("disableRipple",re.disableRipple)("disablePagination",re.disablePagination),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngForOf",re._tabs),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngForOf",re._tabs))},directives:[St,m.NgForOf,U,d.MatRipple,n.kH,m.NgIf,v.Pl,fe],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ne})(),xt=(()=>{class Ne extends st{constructor(ee,re,Me,ze,It,Qt,cn){super(ee,ze,It,re,Me,Qt,cn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(ee){const re=this._elementRef.nativeElement.classList;re.remove(`mat-background-${this.backgroundColor}`),ee&&re.add(`mat-background-${ee}`),this._backgroundColor=ee}get disableRipple(){return this._disableRipple}set disableRipple(ee){this._disableRipple=(0,O.Ig)(ee)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,y.O)(null),(0,T.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const ee=this._items.toArray();for(let re=0;re{class Ne extends xt{constructor(ee,re,Me,ze,It,Qt,cn){super(ee,re,Me,ze,It,Qt,cn)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(S.rL),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(ee,re,Me){if(1&ee&&o.\u0275\u0275contentQuery(Me,Vt,5),2&ee){let ze;o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re._items=ze)}},viewQuery:function(ee,re){if(1&ee&&(o.\u0275\u0275viewQuery(tt,7),o.\u0275\u0275viewQuery(ne,7),o.\u0275\u0275viewQuery(Y,7),o.\u0275\u0275viewQuery(Q,7),o.\u0275\u0275viewQuery(te,5),o.\u0275\u0275viewQuery($,5)),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._inkBar=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabListContainer=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabList=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabListInner=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._nextPaginator=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._previousPaginator=Me.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(ee,re){2&ee&&o.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",re._showPaginationControls)("mat-tab-header-rtl","rtl"==re._getLayoutDirection())("mat-primary","warn"!==re.color&&"accent"!==re.color)("mat-accent","accent"===re.color)("mat-warn","warn"===re.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[o.\u0275\u0275InheritDefinitionFeature],attrs:Je,ngContentSelectors:I,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ee,re){1&ee&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div",0,1),o.\u0275\u0275listener("click",function(){return re._handlePaginatorClick("before")})("mousedown",function(ze){return re._handlePaginatorPress("before",ze)})("touchend",function(){return re._stopInterval()}),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",3,4),o.\u0275\u0275listener("keydown",function(ze){return re._handleKeydown(ze)}),o.\u0275\u0275elementStart(5,"div",5,6),o.\u0275\u0275listener("cdkObserveContent",function(){return re._onContentChanges()}),o.\u0275\u0275elementStart(7,"div",7,8),o.\u0275\u0275projection(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(10,"mat-ink-bar"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"div",9,10),o.\u0275\u0275listener("mousedown",function(ze){return re._handlePaginatorPress("after",ze)})("click",function(){return re._handlePaginatorClick("after")})("touchend",function(){return re._stopInterval()}),o.\u0275\u0275element(13,"div",2),o.\u0275\u0275elementEnd()),2&ee&&(o.\u0275\u0275classProp("mat-tab-header-pagination-disabled",re._disableScrollBefore),o.\u0275\u0275property("matRippleDisabled",re._disableScrollBefore||re.disableRipple),o.\u0275\u0275advance(5),o.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode),o.\u0275\u0275advance(6),o.\u0275\u0275classProp("mat-tab-header-pagination-disabled",re._disableScrollAfter),o.\u0275\u0275property("matRippleDisabled",re._disableScrollAfter||re.disableRipple))},directives:[d.MatRipple,f.wD,tt],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Ne})();const Qe=(0,d.mixinTabIndex)((0,d.mixinDisableRipple)((0,d.mixinDisabled)(class{})));let mt=(()=>{class Ne extends Qe{constructor(ee,re,Me,ze,It,Qt){super(),this._tabNavBar=ee,this.elementRef=re,this._focusMonitor=It,this._isActive=!1,this.rippleConfig=Me||{},this.tabIndex=parseInt(ze)||0,"NoopAnimations"===Qt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(ee){const re=(0,O.Ig)(ee);re!==this._isActive&&(this._isActive=re,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(xt),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(d.MAT_RIPPLE_GLOBAL_OPTIONS,8),o.\u0275\u0275injectAttribute("tabindex"),o.\u0275\u0275directiveInject(n.tE),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{active:"active"},features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),Vt=(()=>{class Ne extends mt{constructor(ee,re,Me,ze,It,Qt,cn,An){super(ee,re,It,Qt,cn,An),this._tabLinkRipple=new d.RippleRenderer(this,Me,re,ze),this._tabLinkRipple.setupTriggerEvents(re.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(Lt),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(d.MAT_RIPPLE_GLOBAL_OPTIONS,8),o.\u0275\u0275injectAttribute("tabindex"),o.\u0275\u0275directiveInject(n.tE),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(ee,re){1&ee&&o.\u0275\u0275listener("focus",function(){return re._handleFocus()}),2&ee&&(o.\u0275\u0275attribute("aria-current",re.active?"page":null)("aria-disabled",re.disabled)("tabIndex",re.tabIndex),o.\u0275\u0275classProp("mat-tab-disabled",re.disabled)("mat-tab-label-active",re.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),qt=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=o.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=o.\u0275\u0275defineInjector({imports:[[m.CommonModule,d.MatCommonModule,v.eL,d.MatRippleModule,f.Q8,n.rt],d.MatCommonModule]}),Ne})()},4594:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatToolbar:()=>r,MatToolbarModule:()=>i,MatToolbarRow:()=>h,throwToolbarMixedModesError:()=>s});var n=p(5e3),f=p(508),v=p(9808),m=p(925);const o=["*",[["mat-toolbar-row"]]],d=["*","mat-toolbar-row"],u=(0,f.mixinColor)(class{constructor(c){this._elementRef=c}});let h=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275dir=n.\u0275\u0275defineDirective({type:c,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),c})(),r=(()=>{class c extends u{constructor(g,y,E){super(g),this._platform=y,this._document=E}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return c.\u0275fac=function(g){return new(g||c)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(m.t4),n.\u0275\u0275directiveInject(v.DOCUMENT))},c.\u0275cmp=n.\u0275\u0275defineComponent({type:c,selectors:[["mat-toolbar"]],contentQueries:function(g,y,E){if(1&g&&n.\u0275\u0275contentQuery(E,h,5),2&g){let T;n.\u0275\u0275queryRefresh(T=n.\u0275\u0275loadQuery())&&(y._toolbarRows=T)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(g,y){2&g&&n.\u0275\u0275classProp("mat-toolbar-multiple-rows",y._toolbarRows.length>0)("mat-toolbar-single-row",0===y._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:2,vars:0,template:function(g,y){1&g&&(n.\u0275\u0275projectionDef(o),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),c})();function s(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}let i=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275mod=n.\u0275\u0275defineNgModule({type:c}),c.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatCommonModule],f.MatCommonModule]}),c})()},6360:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{ANIMATION_MODULE_TYPE:()=>rr,BrowserAnimationsModule:()=>ds,NoopAnimationsModule:()=>Bs,\u0275AnimationRenderer:()=>di,\u0275AnimationRendererFactory:()=>In,\u0275BrowserAnimationBuilder:()=>k,\u0275BrowserAnimationFactory:()=>V,\u0275InjectableAnimationEngine:()=>Ei});var n=p(5e3),f=p(2313),v=p(1777);function m(){return"undefined"!=typeof window&&void 0!==window.document}function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function d(we){switch(we.length){case 0:return new v.ZN;case 1:return we[0];default:return new v.ZE(we)}}function u(we,N,G,pe,Ae={},We={}){const rt=[],dt=[];let Rt=-1,Gt=null;if(pe.forEach(rn=>{const pn=rn.offset,Pn=pn==Rt,Ln=Pn&&Gt||{};Object.keys(rn).forEach(_n=>{let Bn=_n,Kn=rn[_n];if("offset"!==_n)switch(Bn=N.normalizePropertyName(Bn,rt),Kn){case v.k1:Kn=Ae[_n];break;case v.l3:Kn=We[_n];break;default:Kn=N.normalizeStyleValue(_n,Bn,Kn,rt)}Ln[Bn]=Kn}),Pn||dt.push(Ln),Gt=Ln,Rt=pn}),rt.length){const rn="\n - ";throw new Error(`Unable to animate due to the following errors:${rn}${rt.join(rn)}`)}return dt}function h(we,N,G,pe){switch(N){case"start":we.onStart(()=>pe(G&&r(G,"start",we)));break;case"done":we.onDone(()=>pe(G&&r(G,"done",we)));break;case"destroy":we.onDestroy(()=>pe(G&&r(G,"destroy",we)))}}function r(we,N,G){const pe=G.totalTime,We=s(we.element,we.triggerName,we.fromState,we.toState,N||we.phaseName,null==pe?we.totalTime:pe,!!G.disabled),rt=we._data;return null!=rt&&(We._data=rt),We}function s(we,N,G,pe,Ae="",We=0,rt){return{element:we,triggerName:N,fromState:G,toState:pe,phaseName:Ae,totalTime:We,disabled:!!rt}}function i(we,N,G){let pe;return we instanceof Map?(pe=we.get(N),pe||we.set(N,pe=G)):(pe=we[N],pe||(pe=we[N]=G)),pe}function c(we){const N=we.indexOf(":");return[we.substring(1,N),we.substr(N+1)]}let l=(we,N)=>!1,g=(we,N,G)=>[];(o()||"undefined"!=typeof Element)&&(l=m()?(we,N)=>{for(;N&&N!==document.documentElement;){if(N===we)return!0;N=N.parentNode||N.host}return!1}:(we,N)=>we.contains(N),g=(we,N,G)=>{let pe=[];if(G){const Ae=we.querySelectorAll(N);for(let We=0;We{const pe=G.replace(/([a-z])([A-Z])/g,"$1-$2");N[pe]=we[G]}),N}let I=(()=>{class we{validateStyleProperty(G){return O(G)}matchesElement(G,pe){return!1}containsElement(G,pe){return A(G,pe)}query(G,pe,Ae){return S(G,pe,Ae)}computeStyle(G,pe,Ae){return Ae||""}animate(G,pe,Ae,We,rt,dt=[],Rt){return new v.ZN(Ae,We)}}return we.\u0275fac=function(G){return new(G||we)},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),b=(()=>{class we{}return we.NOOP=new I,we})();const Y="ng-enter",Q="ng-leave",te="ng-trigger",$=".ng-trigger",J="ng-animating",ie=".ng-animating";function ae(we){if("number"==typeof we)return we;const N=we.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:le(parseFloat(N[1]),N[2])}function le(we,N){return"s"===N?1e3*we:we}function Oe(we,N,G){return we.hasOwnProperty("duration")?we:function(we,N,G){let Ae,We=0,rt="";if("string"==typeof we){const dt=we.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===dt)return N.push(`The provided timing value "${we}" is invalid.`),{duration:0,delay:0,easing:""};Ae=le(parseFloat(dt[1]),dt[2]);const Rt=dt[3];null!=Rt&&(We=le(parseFloat(Rt),dt[4]));const Gt=dt[5];Gt&&(rt=Gt)}else Ae=we;if(!G){let dt=!1,Rt=N.length;Ae<0&&(N.push("Duration values below 0 are not allowed for this animation step."),dt=!0),We<0&&(N.push("Delay values below 0 are not allowed for this animation step."),dt=!0),dt&&N.splice(Rt,0,`The provided timing value "${we}" is invalid.`)}return{duration:Ae,delay:We,easing:rt}}(we,N,G)}function Ye(we,N={}){return Object.keys(we).forEach(G=>{N[G]=we[G]}),N}function gt(we,N,G={}){if(N)for(let pe in we)G[pe]=we[pe];else Ye(we,G);return G}function Ue(we,N,G){return G?N+":"+G+";":""}function tt(we){let N="";for(let G=0;G{const Ae=Et(pe);G&&!G.hasOwnProperty(pe)&&(G[pe]=we.style[Ae]),we.style[Ae]=N[pe]}),o()&&tt(we))}function ft(we,N){we.style&&(Object.keys(N).forEach(G=>{const pe=Et(G);we.style[pe]=""}),o()&&tt(we))}function vt(we){return Array.isArray(we)?1==we.length?we[0]:(0,v.vP)(we):we}const ot=new RegExp("{{\\s*(.+?)\\s*}}","g");function _t(we){let N=[];if("string"==typeof we){let G;for(;G=ot.exec(we);)N.push(G[1]);ot.lastIndex=0}return N}function At(we,N,G){const pe=we.toString(),Ae=pe.replace(ot,(We,rt)=>{let dt=N[rt];return N.hasOwnProperty(rt)||(G.push(`Please provide a value for the animation param ${rt}`),dt=""),dt.toString()});return Ae==pe?we:Ae}function Tt(we){const N=[];let G=we.next();for(;!G.done;)N.push(G.value),G=we.next();return N}const Bt=/-+([a-z0-9])/g;function Et(we){return we.replace(Bt,(...N)=>N[1].toUpperCase())}function Ee(we){return we.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function fe(we,N){return 0===we||0===N}function H(we,N,G){const pe=Object.keys(G);if(pe.length&&N.length){let We=N[0],rt=[];if(pe.forEach(dt=>{We.hasOwnProperty(dt)||rt.push(dt),We[dt]=G[dt]}),rt.length)for(var Ae=1;Aefunction(we,N,G){if(":"==we[0]){const Rt=function(we,N){switch(we){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(G,pe)=>parseFloat(pe)>parseFloat(G);case":decrement":return(G,pe)=>parseFloat(pe) *"}}(we,G);if("function"==typeof Rt)return void N.push(Rt);we=Rt}const pe=we.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==pe||pe.length<4)return G.push(`The provided transition expression "${we}" is not supported`),N;const Ae=pe[1],We=pe[2],rt=pe[3];N.push(St(Ae,rt));"<"==We[0]&&!(Ae==Z&&rt==Z)&&N.push(St(rt,Ae))}(pe,G,N)):G.push(we),G}const st=new Set(["true","1"]),ut=new Set(["false","0"]);function St(we,N){const G=st.has(we)||ut.has(we),pe=st.has(N)||ut.has(N);return(Ae,We)=>{let rt=we==Z||we==Ae,dt=N==Z||N==We;return!rt&&G&&"boolean"==typeof Ae&&(rt=Ae?st.has(we):ut.has(we)),!dt&&pe&&"boolean"==typeof We&&(dt=We?st.has(N):ut.has(N)),rt&&dt}}const tn=new RegExp("s*:selfs*,?","g");function Dt(we,N,G){return new et(we).build(N,G)}class et{constructor(N){this._driver=N}build(N,G){const pe=new Qe(G);return this._resetContextStyleTimingState(pe),x(this,vt(N),pe)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles={},N.collectedStyles[""]={},N.currentTime=0}visitTrigger(N,G){let pe=G.queryCount=0,Ae=G.depCount=0;const We=[],rt=[];return"@"==N.name.charAt(0)&&G.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),N.definitions.forEach(dt=>{if(this._resetContextStyleTimingState(G),0==dt.type){const Rt=dt,Gt=Rt.name;Gt.toString().split(/\s*,\s*/).forEach(rn=>{Rt.name=rn,We.push(this.visitState(Rt,G))}),Rt.name=Gt}else if(1==dt.type){const Rt=this.visitTransition(dt,G);pe+=Rt.queryCount,Ae+=Rt.depCount,rt.push(Rt)}else G.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:N.name,states:We,transitions:rt,queryCount:pe,depCount:Ae,options:null}}visitState(N,G){const pe=this.visitStyle(N.styles,G),Ae=N.options&&N.options.params||null;if(pe.containsDynamicStyles){const We=new Set,rt=Ae||{};if(pe.styles.forEach(dt=>{if(Vt(dt)){const Rt=dt;Object.keys(Rt).forEach(Gt=>{_t(Rt[Gt]).forEach(rn=>{rt.hasOwnProperty(rn)||We.add(rn)})})}}),We.size){const dt=Tt(We.values());G.errors.push(`state("${N.name}", ...) must define default values for all the following style substitutions: ${dt.join(", ")}`)}}return{type:0,name:N.name,style:pe,options:Ae?{params:Ae}:null}}visitTransition(N,G){G.queryCount=0,G.depCount=0;const pe=x(this,vt(N.animation),G);return{type:1,matchers:_e(N.expr,G.errors),animation:pe,queryCount:G.queryCount,depCount:G.depCount,options:Ne(N.options)}}visitSequence(N,G){return{type:2,steps:N.steps.map(pe=>x(this,pe,G)),options:Ne(N.options)}}visitGroup(N,G){const pe=G.currentTime;let Ae=0;const We=N.steps.map(rt=>{G.currentTime=pe;const dt=x(this,rt,G);return Ae=Math.max(Ae,G.currentTime),dt});return G.currentTime=Ae,{type:3,steps:We,options:Ne(N.options)}}visitAnimate(N,G){const pe=function(we,N){let G=null;if(we.hasOwnProperty("duration"))G=we;else if("number"==typeof we)return Se(Oe(we,N).duration,0,"");const pe=we;if(pe.split(/\s+/).some(We=>"{"==We.charAt(0)&&"{"==We.charAt(1))){const We=Se(0,0,"");return We.dynamic=!0,We.strValue=pe,We}return G=G||Oe(pe,N),Se(G.duration,G.delay,G.easing)}(N.timings,G.errors);G.currentAnimateTimings=pe;let Ae,We=N.styles?N.styles:(0,v.oB)({});if(5==We.type)Ae=this.visitKeyframes(We,G);else{let rt=N.styles,dt=!1;if(!rt){dt=!0;const Gt={};pe.easing&&(Gt.easing=pe.easing),rt=(0,v.oB)(Gt)}G.currentTime+=pe.duration+pe.delay;const Rt=this.visitStyle(rt,G);Rt.isEmptyStep=dt,Ae=Rt}return G.currentAnimateTimings=null,{type:4,timings:pe,style:Ae,options:null}}visitStyle(N,G){const pe=this._makeStyleAst(N,G);return this._validateStyleAst(pe,G),pe}_makeStyleAst(N,G){const pe=[];Array.isArray(N.styles)?N.styles.forEach(rt=>{"string"==typeof rt?rt==v.l3?pe.push(rt):G.errors.push(`The provided style string value ${rt} is not allowed.`):pe.push(rt)}):pe.push(N.styles);let Ae=!1,We=null;return pe.forEach(rt=>{if(Vt(rt)){const dt=rt,Rt=dt.easing;if(Rt&&(We=Rt,delete dt.easing),!Ae)for(let Gt in dt)if(dt[Gt].toString().indexOf("{{")>=0){Ae=!0;break}}}),{type:6,styles:pe,easing:We,offset:N.offset,containsDynamicStyles:Ae,options:null}}_validateStyleAst(N,G){const pe=G.currentAnimateTimings;let Ae=G.currentTime,We=G.currentTime;pe&&We>0&&(We-=pe.duration+pe.delay),N.styles.forEach(rt=>{"string"!=typeof rt&&Object.keys(rt).forEach(dt=>{if(!this._driver.validateStyleProperty(dt))return void G.errors.push(`The provided animation property "${dt}" is not a supported CSS property for animations`);const Rt=G.collectedStyles[G.currentQuerySelector],Gt=Rt[dt];let rn=!0;Gt&&(We!=Ae&&We>=Gt.startTime&&Ae<=Gt.endTime&&(G.errors.push(`The CSS property "${dt}" that exists between the times of "${Gt.startTime}ms" and "${Gt.endTime}ms" is also being animated in a parallel animation between the times of "${We}ms" and "${Ae}ms"`),rn=!1),We=Gt.startTime),rn&&(Rt[dt]={startTime:We,endTime:Ae}),G.options&&function(we,N,G){const pe=N.params||{},Ae=_t(we);Ae.length&&Ae.forEach(We=>{pe.hasOwnProperty(We)||G.push(`Unable to resolve the local animation param ${We} in the given list of values`)})}(rt[dt],G.options,G.errors)})})}visitKeyframes(N,G){const pe={type:5,styles:[],options:null};if(!G.currentAnimateTimings)return G.errors.push("keyframes() must be placed inside of a call to animate()"),pe;let We=0;const rt=[];let dt=!1,Rt=!1,Gt=0;const rn=N.steps.map(_i=>{const xi=this._makeStyleAst(_i,G);let sr=null!=xi.offset?xi.offset:function(we){if("string"==typeof we)return null;let N=null;if(Array.isArray(we))we.forEach(G=>{if(Vt(G)&&G.hasOwnProperty("offset")){const pe=G;N=parseFloat(pe.offset),delete pe.offset}});else if(Vt(we)&&we.hasOwnProperty("offset")){const G=we;N=parseFloat(G.offset),delete G.offset}return N}(xi.styles),Qi=0;return null!=sr&&(We++,Qi=xi.offset=sr),Rt=Rt||Qi<0||Qi>1,dt=dt||Qi0&&We{const sr=Pn>0?xi==Ln?1:Pn*xi:rt[xi],Qi=sr*Kn;G.currentTime=_n+Bn.delay+Qi,Bn.duration=Qi,this._validateStyleAst(_i,G),_i.offset=sr,pe.styles.push(_i)}),pe}visitReference(N,G){return{type:8,animation:x(this,vt(N.animation),G),options:Ne(N.options)}}visitAnimateChild(N,G){return G.depCount++,{type:9,options:Ne(N.options)}}visitAnimateRef(N,G){return{type:10,animation:this.visitReference(N.animation,G),options:Ne(N.options)}}visitQuery(N,G){const pe=G.currentQuerySelector,Ae=N.options||{};G.queryCount++,G.currentQuery=N;const[We,rt]=function(we){const N=!!we.split(/\s*,\s*/).find(G=>":self"==G);return N&&(we=we.replace(tn,"")),we=we.replace(/@\*/g,$).replace(/@\w+/g,G=>$+"-"+G.substr(1)).replace(/:animating/g,ie),[we,N]}(N.selector);G.currentQuerySelector=pe.length?pe+" "+We:We,i(G.collectedStyles,G.currentQuerySelector,{});const dt=x(this,vt(N.animation),G);return G.currentQuery=null,G.currentQuerySelector=pe,{type:11,selector:We,limit:Ae.limit||0,optional:!!Ae.optional,includeSelf:rt,animation:dt,originalSelector:N.selector,options:Ne(N.options)}}visitStagger(N,G){G.currentQuery||G.errors.push("stagger() can only be used inside of query()");const pe="full"===N.timings?{duration:0,delay:0,easing:"full"}:Oe(N.timings,G.errors,!0);return{type:12,animation:x(this,vt(N.animation),G),timings:pe,options:null}}}class Qe{constructor(N){this.errors=N,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 Vt(we){return!Array.isArray(we)&&"object"==typeof we}function Ne(we){return we?(we=Ye(we)).params&&(we.params=function(we){return we?Ye(we):null}(we.params)):we={},we}function Se(we,N,G){return{duration:we,delay:N,easing:G}}function ee(we,N,G,pe,Ae,We,rt=null,dt=!1){return{type:1,element:we,keyframes:N,preStyleProps:G,postStyleProps:pe,duration:Ae,delay:We,totalTime:Ae+We,easing:rt,subTimeline:dt}}class re{constructor(){this._map=new Map}get(N){return this._map.get(N)||[]}append(N,G){let pe=this._map.get(N);pe||this._map.set(N,pe=[]),pe.push(...G)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const It=new RegExp(":enter","g"),cn=new RegExp(":leave","g");function An(we,N,G,pe,Ae,We={},rt={},dt,Rt,Gt=[]){return(new lt).buildKeyframes(we,N,G,pe,Ae,We,rt,dt,Rt,Gt)}class lt{buildKeyframes(N,G,pe,Ae,We,rt,dt,Rt,Gt,rn=[]){Gt=Gt||new re;const pn=new He(N,G,Gt,Ae,We,rn,[]);pn.options=Rt,pn.currentTimeline.setStyles([rt],null,pn.errors,Rt),x(this,pe,pn);const Pn=pn.timelines.filter(Ln=>Ln.containsAnimation());if(Pn.length&&Object.keys(dt).length){const Ln=Pn[Pn.length-1];Ln.allowOnlyTimelineStyles()||Ln.setStyles([dt],null,pn.errors,Rt)}return Pn.length?Pn.map(Ln=>Ln.buildKeyframes()):[ee(G,[],[],[],0,0,"",!1)]}visitTrigger(N,G){}visitState(N,G){}visitTransition(N,G){}visitAnimateChild(N,G){const pe=G.subInstructions.get(G.element);if(pe){const Ae=G.createSubContext(N.options),We=G.currentTimeline.currentTime,rt=this._visitSubInstructions(pe,Ae,Ae.options);We!=rt&&G.transformIntoNewTimeline(rt)}G.previousNode=N}visitAnimateRef(N,G){const pe=G.createSubContext(N.options);pe.transformIntoNewTimeline(),this.visitReference(N.animation,pe),G.transformIntoNewTimeline(pe.currentTimeline.currentTime),G.previousNode=N}_visitSubInstructions(N,G,pe){let We=G.currentTimeline.currentTime;const rt=null!=pe.duration?ae(pe.duration):null,dt=null!=pe.delay?ae(pe.delay):null;return 0!==rt&&N.forEach(Rt=>{const Gt=G.appendInstructionToTimeline(Rt,rt,dt);We=Math.max(We,Gt.duration+Gt.delay)}),We}visitReference(N,G){G.updateOptions(N.options,!0),x(this,N.animation,G),G.previousNode=N}visitSequence(N,G){const pe=G.subContextCount;let Ae=G;const We=N.options;if(We&&(We.params||We.delay)&&(Ae=G.createSubContext(We),Ae.transformIntoNewTimeline(),null!=We.delay)){6==Ae.previousNode.type&&(Ae.currentTimeline.snapshotCurrentStyles(),Ae.previousNode=ct);const rt=ae(We.delay);Ae.delayNextStep(rt)}N.steps.length&&(N.steps.forEach(rt=>x(this,rt,Ae)),Ae.currentTimeline.applyStylesToKeyframe(),Ae.subContextCount>pe&&Ae.transformIntoNewTimeline()),G.previousNode=N}visitGroup(N,G){const pe=[];let Ae=G.currentTimeline.currentTime;const We=N.options&&N.options.delay?ae(N.options.delay):0;N.steps.forEach(rt=>{const dt=G.createSubContext(N.options);We&&dt.delayNextStep(We),x(this,rt,dt),Ae=Math.max(Ae,dt.currentTimeline.currentTime),pe.push(dt.currentTimeline)}),pe.forEach(rt=>G.currentTimeline.mergeTimelineCollectedStyles(rt)),G.transformIntoNewTimeline(Ae),G.previousNode=N}_visitTiming(N,G){if(N.dynamic){const pe=N.strValue;return Oe(G.params?At(pe,G.params,G.errors):pe,G.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,G){const pe=G.currentAnimateTimings=this._visitTiming(N.timings,G),Ae=G.currentTimeline;pe.delay&&(G.incrementTime(pe.delay),Ae.snapshotCurrentStyles());const We=N.style;5==We.type?this.visitKeyframes(We,G):(G.incrementTime(pe.duration),this.visitStyle(We,G),Ae.applyStylesToKeyframe()),G.currentAnimateTimings=null,G.previousNode=N}visitStyle(N,G){const pe=G.currentTimeline,Ae=G.currentAnimateTimings;!Ae&&pe.getCurrentStyleProperties().length&&pe.forwardFrame();const We=Ae&&Ae.easing||N.easing;N.isEmptyStep?pe.applyEmptyStep(We):pe.setStyles(N.styles,We,G.errors,G.options),G.previousNode=N}visitKeyframes(N,G){const pe=G.currentAnimateTimings,Ae=G.currentTimeline.duration,We=pe.duration,dt=G.createSubContext().currentTimeline;dt.easing=pe.easing,N.styles.forEach(Rt=>{dt.forwardTime((Rt.offset||0)*We),dt.setStyles(Rt.styles,Rt.easing,G.errors,G.options),dt.applyStylesToKeyframe()}),G.currentTimeline.mergeTimelineCollectedStyles(dt),G.transformIntoNewTimeline(Ae+We),G.previousNode=N}visitQuery(N,G){const pe=G.currentTimeline.currentTime,Ae=N.options||{},We=Ae.delay?ae(Ae.delay):0;We&&(6===G.previousNode.type||0==pe&&G.currentTimeline.getCurrentStyleProperties().length)&&(G.currentTimeline.snapshotCurrentStyles(),G.previousNode=ct);let rt=pe;const dt=G.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!Ae.optional,G.errors);G.currentQueryTotal=dt.length;let Rt=null;dt.forEach((Gt,rn)=>{G.currentQueryIndex=rn;const pn=G.createSubContext(N.options,Gt);We&&pn.delayNextStep(We),Gt===G.element&&(Rt=pn.currentTimeline),x(this,N.animation,pn),pn.currentTimeline.applyStylesToKeyframe(),rt=Math.max(rt,pn.currentTimeline.currentTime)}),G.currentQueryIndex=0,G.currentQueryTotal=0,G.transformIntoNewTimeline(rt),Rt&&(G.currentTimeline.mergeTimelineCollectedStyles(Rt),G.currentTimeline.snapshotCurrentStyles()),G.previousNode=N}visitStagger(N,G){const pe=G.parentContext,Ae=G.currentTimeline,We=N.timings,rt=Math.abs(We.duration),dt=rt*(G.currentQueryTotal-1);let Rt=rt*G.currentQueryIndex;switch(We.duration<0?"reverse":We.easing){case"reverse":Rt=dt-Rt;break;case"full":Rt=pe.currentStaggerTime}const rn=G.currentTimeline;Rt&&rn.delayNextStep(Rt);const pn=rn.currentTime;x(this,N.animation,G),G.previousNode=N,pe.currentStaggerTime=Ae.currentTime-pn+(Ae.startTime-pe.currentTimeline.startTime)}}const ct={};class He{constructor(N,G,pe,Ae,We,rt,dt,Rt){this._driver=N,this.element=G,this.subInstructions=pe,this._enterClassName=Ae,this._leaveClassName=We,this.errors=rt,this.timelines=dt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Rt||new pt(this._driver,G,0),dt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,G){if(!N)return;const pe=N;let Ae=this.options;null!=pe.duration&&(Ae.duration=ae(pe.duration)),null!=pe.delay&&(Ae.delay=ae(pe.delay));const We=pe.params;if(We){let rt=Ae.params;rt||(rt=this.options.params={}),Object.keys(We).forEach(dt=>{(!G||!rt.hasOwnProperty(dt))&&(rt[dt]=At(We[dt],rt,this.errors))})}}_copyOptions(){const N={};if(this.options){const G=this.options.params;if(G){const pe=N.params={};Object.keys(G).forEach(Ae=>{pe[Ae]=G[Ae]})}}return N}createSubContext(N=null,G,pe){const Ae=G||this.element,We=new He(this._driver,Ae,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ae,pe||0));return We.previousNode=this.previousNode,We.currentAnimateTimings=this.currentAnimateTimings,We.options=this._copyOptions(),We.updateOptions(N),We.currentQueryIndex=this.currentQueryIndex,We.currentQueryTotal=this.currentQueryTotal,We.parentContext=this,this.subContextCount++,We}transformIntoNewTimeline(N){return this.previousNode=ct,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,G,pe){const Ae={duration:null!=G?G:N.duration,delay:this.currentTimeline.currentTime+(null!=pe?pe:0)+N.delay,easing:""},We=new Ot(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,Ae,N.stretchStartingKeyframe);return this.timelines.push(We),Ae}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,G,pe,Ae,We,rt){let dt=[];if(Ae&&dt.push(this.element),N.length>0){N=(N=N.replace(It,"."+this._enterClassName)).replace(cn,"."+this._leaveClassName);let Gt=this._driver.query(this.element,N,1!=pe);0!==pe&&(Gt=pe<0?Gt.slice(Gt.length+pe,Gt.length):Gt.slice(0,pe)),dt.push(...Gt)}return!We&&0==dt.length&&rt.push(`\`query("${G}")\` returned zero elements. (Use \`query("${G}", { optional: true })\` if you wish to allow this.)`),dt}}class pt{constructor(N,G,pe,Ae){this._driver=N,this.element=G,this.startTime=pe,this._elementTimelineStylesLookup=Ae,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(G),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(G,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(N){const G=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||G?(this.forwardTime(this.currentTime+N),G&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,G){return this.applyStylesToKeyframe(),new pt(this._driver,N,G||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(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,G){this._localTimelineStyles[N]=G,this._globalTimelineStyles[N]=G,this._styleSummary[N]={time:this.currentTime,value:G}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&(this._previousKeyframe.easing=N),Object.keys(this._globalTimelineStyles).forEach(G=>{this._backFill[G]=this._globalTimelineStyles[G]||v.l3,this._currentKeyframe[G]=v.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,G,pe,Ae){G&&(this._previousKeyframe.easing=G);const We=Ae&&Ae.params||{},rt=function(we,N){const G={};let pe;return we.forEach(Ae=>{"*"===Ae?(pe=pe||Object.keys(N),pe.forEach(We=>{G[We]=v.l3})):gt(Ae,!1,G)}),G}(N,this._globalTimelineStyles);Object.keys(rt).forEach(dt=>{const Rt=At(rt[dt],We,pe);this._pendingStyles[dt]=Rt,this._localTimelineStyles.hasOwnProperty(dt)||(this._backFill[dt]=this._globalTimelineStyles.hasOwnProperty(dt)?this._globalTimelineStyles[dt]:v.l3),this._updateStyle(dt,Rt)})}applyStylesToKeyframe(){const N=this._pendingStyles,G=Object.keys(N);0!=G.length&&(this._pendingStyles={},G.forEach(pe=>{this._currentKeyframe[pe]=N[pe]}),Object.keys(this._localTimelineStyles).forEach(pe=>{this._currentKeyframe.hasOwnProperty(pe)||(this._currentKeyframe[pe]=this._localTimelineStyles[pe])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(N=>{const G=this._localTimelineStyles[N];this._pendingStyles[N]=G,this._updateStyle(N,G)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let G in this._currentKeyframe)N.push(G);return N}mergeTimelineCollectedStyles(N){Object.keys(N._styleSummary).forEach(G=>{const pe=this._styleSummary[G],Ae=N._styleSummary[G];(!pe||Ae.time>pe.time)&&this._updateStyle(G,Ae.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,G=new Set,pe=1===this._keyframes.size&&0===this.duration;let Ae=[];this._keyframes.forEach((dt,Rt)=>{const Gt=gt(dt,!0);Object.keys(Gt).forEach(rn=>{const pn=Gt[rn];pn==v.k1?N.add(rn):pn==v.l3&&G.add(rn)}),pe||(Gt.offset=Rt/this.duration),Ae.push(Gt)});const We=N.size?Tt(N.values()):[],rt=G.size?Tt(G.values()):[];if(pe){const dt=Ae[0],Rt=Ye(dt);dt.offset=0,Rt.offset=1,Ae=[dt,Rt]}return ee(this.element,Ae,We,rt,this.duration,this.startTime,this.easing,!1)}}class Ot extends pt{constructor(N,G,pe,Ae,We,rt,dt=!1){super(N,G,rt.delay),this.keyframes=pe,this.preStyleProps=Ae,this.postStyleProps=We,this._stretchStartingKeyframe=dt,this.timings={duration:rt.duration,delay:rt.delay,easing:rt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:G,duration:pe,easing:Ae}=this.timings;if(this._stretchStartingKeyframe&&G){const We=[],rt=pe+G,dt=G/rt,Rt=gt(N[0],!1);Rt.offset=0,We.push(Rt);const Gt=gt(N[0],!1);Gt.offset=un(dt),We.push(Gt);const rn=N.length-1;for(let pn=1;pn<=rn;pn++){let Pn=gt(N[pn],!1);Pn.offset=un((G+Pn.offset*pe)/rt),We.push(Pn)}pe=rt,G=0,Ae="",N=We}return ee(this.element,N,this.preStyleProps,this.postStyleProps,pe,G,Ae,!0)}}function un(we,N=3){const G=Math.pow(10,N-1);return Math.round(we*G)/G}class Yn{}class Oi extends Yn{normalizePropertyName(N,G){return Et(N)}normalizeStyleValue(N,G,pe,Ae){let We="";const rt=pe.toString().trim();if(Ni[G]&&0!==pe&&"0"!==pe)if("number"==typeof pe)We="px";else{const dt=pe.match(/^[+-]?[\d\.]+([a-z]*)$/);dt&&0==dt[1].length&&Ae.push(`Please provide a CSS unit value for ${N}:${pe}`)}return rt+We}}const Ni=(()=>function(we){const N={};return we.forEach(G=>N[G]=!0),N}("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 qn(we,N,G,pe,Ae,We,rt,dt,Rt,Gt,rn,pn,Pn){return{type:0,element:we,triggerName:N,isRemovalTransition:Ae,fromState:G,fromStyles:We,toState:pe,toStyles:rt,timelines:dt,queriedElements:Rt,preStyleProps:Gt,postStyleProps:rn,totalTime:pn,errors:Pn}}const Vi={};class ci{constructor(N,G,pe){this._triggerName=N,this.ast=G,this._stateStyles=pe}match(N,G,pe,Ae){return function(we,N,G,pe,Ae){return we.some(We=>We(N,G,pe,Ae))}(this.ast.matchers,N,G,pe,Ae)}buildStyles(N,G,pe){const Ae=this._stateStyles["*"],We=this._stateStyles[N],rt=Ae?Ae.buildStyles(G,pe):{};return We?We.buildStyles(G,pe):rt}build(N,G,pe,Ae,We,rt,dt,Rt,Gt,rn){const pn=[],Pn=this.ast.options&&this.ast.options.params||Vi,_n=this.buildStyles(pe,dt&&dt.params||Vi,pn),Bn=Rt&&Rt.params||Vi,Kn=this.buildStyles(Ae,Bn,pn),_i=new Set,xi=new Map,sr=new Map,Qi="void"===Ae,Nr={params:Object.assign(Object.assign({},Pn),Bn)},fr=rn?[]:An(N,G,this.ast.animation,We,rt,_n,Kn,Nr,Gt,pn);let Xi=0;if(fr.forEach(zi=>{Xi=Math.max(zi.duration+zi.delay,Xi)}),pn.length)return qn(G,this._triggerName,pe,Ae,Qi,_n,Kn,[],[],xi,sr,Xi,pn);fr.forEach(zi=>{const Pr=zi.element,ys=i(xi,Pr,{});zi.preStyleProps.forEach(Ur=>ys[Ur]=!0);const Yi=i(sr,Pr,{});zi.postStyleProps.forEach(Ur=>Yi[Ur]=!0),Pr!==G&&_i.add(Pr)});const gr=Tt(_i.values());return qn(G,this._triggerName,pe,Ae,Qi,_n,Kn,fr,gr,xi,sr,Xi)}}class Ze{constructor(N,G,pe){this.styles=N,this.defaultParams=G,this.normalizer=pe}buildStyles(N,G){const pe={},Ae=Ye(this.defaultParams);return Object.keys(N).forEach(We=>{const rt=N[We];null!=rt&&(Ae[We]=rt)}),this.styles.styles.forEach(We=>{if("string"!=typeof We){const rt=We;Object.keys(rt).forEach(dt=>{let Rt=rt[dt];Rt.length>1&&(Rt=At(Rt,Ae,G));const Gt=this.normalizer.normalizePropertyName(dt,G);Rt=this.normalizer.normalizeStyleValue(dt,Gt,Rt,G),pe[Gt]=Rt})}}),pe}}class Re{constructor(N,G,pe){this.name=N,this.ast=G,this._normalizer=pe,this.transitionFactories=[],this.states={},G.states.forEach(Ae=>{this.states[Ae.name]=new Ze(Ae.style,Ae.options&&Ae.options.params||{},pe)}),de(this.states,"true","1"),de(this.states,"false","0"),G.transitions.forEach(Ae=>{this.transitionFactories.push(new ci(N,Ae,this.states))}),this.fallbackTransition=function(we,N,G){return new ci(we,{type:1,animation:{type:2,steps:[],options:null},matchers:[(rt,dt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,G,pe,Ae){return this.transitionFactories.find(rt=>rt.match(N,G,pe,Ae))||null}matchStyles(N,G,pe){return this.fallbackTransition.buildStyles(N,G,pe)}}function de(we,N,G){we.hasOwnProperty(N)?we.hasOwnProperty(G)||(we[G]=we[N]):we.hasOwnProperty(G)&&(we[N]=we[G])}const Pe=new re;class Xe{constructor(N,G,pe){this.bodyNode=N,this._driver=G,this._normalizer=pe,this._animations={},this._playersById={},this.players=[]}register(N,G){const pe=[],Ae=Dt(this._driver,G,pe);if(pe.length)throw new Error(`Unable to build the animation due to the following errors: ${pe.join("\n")}`);this._animations[N]=Ae}_buildPlayer(N,G,pe){const Ae=N.element,We=u(0,this._normalizer,0,N.keyframes,G,pe);return this._driver.animate(Ae,We,N.duration,N.delay,N.easing,[],!0)}create(N,G,pe={}){const Ae=[],We=this._animations[N];let rt;const dt=new Map;if(We?(rt=An(this._driver,G,We,Y,Q,{},{},pe,Pe,Ae),rt.forEach(rn=>{const pn=i(dt,rn.element,{});rn.postStyleProps.forEach(Pn=>pn[Pn]=null)})):(Ae.push("The requested animation doesn't exist or has already been destroyed"),rt=[]),Ae.length)throw new Error(`Unable to create the animation due to the following errors: ${Ae.join("\n")}`);dt.forEach((rn,pn)=>{Object.keys(rn).forEach(Pn=>{rn[Pn]=this._driver.computeStyle(pn,Pn,v.l3)})});const Gt=d(rt.map(rn=>{const pn=dt.get(rn.element);return this._buildPlayer(rn,{},pn)}));return this._playersById[N]=Gt,Gt.onDestroy(()=>this.destroy(N)),this.players.push(Gt),Gt}destroy(N){const G=this._getPlayer(N);G.destroy(),delete this._playersById[N];const pe=this.players.indexOf(G);pe>=0&&this.players.splice(pe,1)}_getPlayer(N){const G=this._playersById[N];if(!G)throw new Error(`Unable to find the timeline player referenced by ${N}`);return G}listen(N,G,pe,Ae){const We=s(G,"","","");return h(this._getPlayer(N),pe,We,Ae),()=>{}}command(N,G,pe,Ae){if("register"==pe)return void this.register(N,Ae[0]);if("create"==pe)return void this.create(N,G,Ae[0]||{});const We=this._getPlayer(N);switch(pe){case"play":We.play();break;case"pause":We.pause();break;case"reset":We.reset();break;case"restart":We.restart();break;case"finish":We.finish();break;case"init":We.init();break;case"setPosition":We.setPosition(parseFloat(Ae[0]));break;case"destroy":this.destroy(N)}}}const Wt="ng-animate-queued",Ht="ng-animate-disabled",zn=[],$n={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jn="__ng_removed";class Qn{constructor(N,G=""){this.namespaceId=G;const pe=N&&N.hasOwnProperty("value");if(this.value=null!=(we=pe?N.value:N)?we:null,pe){const We=Ye(N);delete We.value,this.options=We}else this.options={};var we;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(N){const G=N.params;if(G){const pe=this.options.params;Object.keys(G).forEach(Ae=>{null==pe[Ae]&&(pe[Ae]=G[Ae])})}}}const kn="void",Mi=new Qn(kn);class Zi{constructor(N,G,pe){this.id=N,this.hostElement=G,this._engine=pe,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+N,Fn(G,this._hostClassName)}listen(N,G,pe,Ae){if(!this._triggers.hasOwnProperty(G))throw new Error(`Unable to listen on the animation trigger event "${pe}" because the animation trigger "${G}" doesn't exist!`);if(null==pe||0==pe.length)throw new Error(`Unable to listen on the animation trigger "${G}" because the provided event is undefined!`);if("start"!=(we=pe)&&"done"!=we)throw new Error(`The provided animation trigger event "${pe}" for the animation trigger "${G}" is not supported!`);var we;const We=i(this._elementListeners,N,[]),rt={name:G,phase:pe,callback:Ae};We.push(rt);const dt=i(this._engine.statesByElement,N,{});return dt.hasOwnProperty(G)||(Fn(N,te),Fn(N,te+"-"+G),dt[G]=Mi),()=>{this._engine.afterFlush(()=>{const Rt=We.indexOf(rt);Rt>=0&&We.splice(Rt,1),this._triggers[G]||delete dt[G]})}}register(N,G){return!this._triggers[N]&&(this._triggers[N]=G,!0)}_getTrigger(N){const G=this._triggers[N];if(!G)throw new Error(`The provided animation trigger "${N}" has not been registered!`);return G}trigger(N,G,pe,Ae=!0){const We=this._getTrigger(G),rt=new pi(this.id,G,N);let dt=this._engine.statesByElement.get(N);dt||(Fn(N,te),Fn(N,te+"-"+G),this._engine.statesByElement.set(N,dt={}));let Rt=dt[G];const Gt=new Qn(pe,this.id);if(!(pe&&pe.hasOwnProperty("value"))&&Rt&&Gt.absorbOptions(Rt.options),dt[G]=Gt,Rt||(Rt=Mi),Gt.value!==kn&&Rt.value===Gt.value){if(!function(we,N){const G=Object.keys(we),pe=Object.keys(N);if(G.length!=pe.length)return!1;for(let Ae=0;Ae{ft(N,Kn),at(N,_i)})}return}const Pn=i(this._engine.playersByElement,N,[]);Pn.forEach(Bn=>{Bn.namespaceId==this.id&&Bn.triggerName==G&&Bn.queued&&Bn.destroy()});let Ln=We.matchTransition(Rt.value,Gt.value,N,Gt.params),_n=!1;if(!Ln){if(!Ae)return;Ln=We.fallbackTransition,_n=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:G,transition:Ln,fromState:Rt,toState:Gt,player:rt,isFallbackTransition:_n}),_n||(Fn(N,Wt),rt.onStart(()=>{$i(N,Wt)})),rt.onDone(()=>{let Bn=this.players.indexOf(rt);Bn>=0&&this.players.splice(Bn,1);const Kn=this._engine.playersByElement.get(N);if(Kn){let _i=Kn.indexOf(rt);_i>=0&&Kn.splice(_i,1)}}),this.players.push(rt),Pn.push(rt),rt}deregister(N){delete this._triggers[N],this._engine.statesByElement.forEach((G,pe)=>{delete G[N]}),this._elementListeners.forEach((G,pe)=>{this._elementListeners.set(pe,G.filter(Ae=>Ae.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const G=this._engine.playersByElement.get(N);G&&(G.forEach(pe=>pe.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,G){const pe=this._engine.driver.query(N,$,!0);pe.forEach(Ae=>{if(Ae[jn])return;const We=this._engine.fetchNamespacesByElement(Ae);We.size?We.forEach(rt=>rt.triggerLeaveAnimation(Ae,G,!1,!0)):this.clearElementCache(Ae)}),this._engine.afterFlushAnimationsDone(()=>pe.forEach(Ae=>this.clearElementCache(Ae)))}triggerLeaveAnimation(N,G,pe,Ae){const We=this._engine.statesByElement.get(N);if(We){const rt=[];if(Object.keys(We).forEach(dt=>{if(this._triggers[dt]){const Rt=this.trigger(N,dt,kn,Ae);Rt&&rt.push(Rt)}}),rt.length)return this._engine.markElementAsRemoved(this.id,N,!0,G),pe&&d(rt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const G=this._elementListeners.get(N),pe=this._engine.statesByElement.get(N);if(G&&pe){const Ae=new Set;G.forEach(We=>{const rt=We.name;if(Ae.has(rt))return;Ae.add(rt);const Rt=this._triggers[rt].fallbackTransition,Gt=pe[rt]||Mi,rn=new Qn(kn),pn=new pi(this.id,rt,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:rt,transition:Rt,fromState:Gt,toState:rn,player:pn,isFallbackTransition:!0})})}}removeNode(N,G){const pe=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,G),this.triggerLeaveAnimation(N,G,!0))return;let Ae=!1;if(pe.totalAnimations){const We=pe.players.length?pe.playersByQueriedElement.get(N):[];if(We&&We.length)Ae=!0;else{let rt=N;for(;rt=rt.parentNode;)if(pe.statesByElement.get(rt)){Ae=!0;break}}}if(this.prepareLeaveAnimationListeners(N),Ae)pe.markElementAsRemoved(this.id,N,!1,G);else{const We=N[jn];(!We||We===$n)&&(pe.afterFlush(()=>this.clearElementCache(N)),pe.destroyInnerAnimations(N),pe._onRemovalComplete(N,G))}}insertNode(N,G){Fn(N,this._hostClassName)}drainQueuedTransitions(N){const G=[];return this._queue.forEach(pe=>{const Ae=pe.player;if(Ae.destroyed)return;const We=pe.element,rt=this._elementListeners.get(We);rt&&rt.forEach(dt=>{if(dt.name==pe.triggerName){const Rt=s(We,pe.triggerName,pe.fromState.value,pe.toState.value);Rt._data=N,h(pe.player,dt.phase,Rt,dt.callback)}}),Ae.markedForDestroy?this._engine.afterFlush(()=>{Ae.destroy()}):G.push(pe)}),this._queue=[],G.sort((pe,Ae)=>{const We=pe.transition.ast.depCount,rt=Ae.transition.ast.depCount;return 0==We||0==rt?We-rt:this._engine.driver.containsElement(pe.element,Ae.element)?1:-1})}destroy(N){this.players.forEach(G=>G.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}elementContainsData(N){let G=!1;return this._elementListeners.has(N)&&(G=!0),G=!!this._queue.find(pe=>pe.element===N)||G,G}}class Xn{constructor(N,G,pe){this.bodyNode=N,this.driver=G,this._normalizer=pe,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=(Ae,We)=>{}}_onRemovalComplete(N,G){this.onRemovalComplete(N,G)}get queuedPlayers(){const N=[];return this._namespaceList.forEach(G=>{G.players.forEach(pe=>{pe.queued&&N.push(pe)})}),N}createNamespace(N,G){const pe=new Zi(N,G,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,G)?this._balanceNamespaceList(pe,G):(this.newHostElements.set(G,pe),this.collectEnterElement(G)),this._namespaceLookup[N]=pe}_balanceNamespaceList(N,G){const pe=this._namespaceList.length-1;if(pe>=0){let Ae=!1;for(let We=pe;We>=0;We--)if(this.driver.containsElement(this._namespaceList[We].hostElement,G)){this._namespaceList.splice(We+1,0,N),Ae=!0;break}Ae||this._namespaceList.splice(0,0,N)}else this._namespaceList.push(N);return this.namespacesByHostElement.set(G,N),N}register(N,G){let pe=this._namespaceLookup[N];return pe||(pe=this.createNamespace(N,G)),pe}registerTrigger(N,G,pe){let Ae=this._namespaceLookup[N];Ae&&Ae.register(G,pe)&&this.totalAnimations++}destroy(N,G){if(!N)return;const pe=this._fetchNamespace(N);this.afterFlush(()=>{this.namespacesByHostElement.delete(pe.hostElement),delete this._namespaceLookup[N];const Ae=this._namespaceList.indexOf(pe);Ae>=0&&this._namespaceList.splice(Ae,1)}),this.afterFlushAnimationsDone(()=>pe.destroy(G))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const G=new Set,pe=this.statesByElement.get(N);if(pe){const Ae=Object.keys(pe);for(let We=0;We=0&&this.collectedLeaveElements.splice(rt,1)}if(N){const rt=this._fetchNamespace(N);rt&&rt.insertNode(G,pe)}Ae&&this.collectEnterElement(G)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,G){G?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Fn(N,Ht)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),$i(N,Ht))}removeNode(N,G,pe,Ae){if(tr(G)){const We=N?this._fetchNamespace(N):null;if(We?We.removeNode(G,Ae):this.markElementAsRemoved(N,G,!1,Ae),pe){const rt=this.namespacesByHostElement.get(G);rt&&rt.id!==N&&rt.removeNode(G,Ae)}}else this._onRemovalComplete(G,Ae)}markElementAsRemoved(N,G,pe,Ae){this.collectedLeaveElements.push(G),G[jn]={namespaceId:N,setForRemoval:Ae,hasAnimation:pe,removedBeforeQueried:!1}}listen(N,G,pe,Ae,We){return tr(G)?this._fetchNamespace(N).listen(G,pe,Ae,We):()=>{}}_buildInstruction(N,G,pe,Ae,We){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,pe,Ae,N.fromState.options,N.toState.options,G,We)}destroyInnerAnimations(N){let G=this.driver.query(N,$,!0);G.forEach(pe=>this.destroyActiveAnimationsForElement(pe)),0!=this.playersByQueriedElement.size&&(G=this.driver.query(N,ie,!0),G.forEach(pe=>this.finishActiveQueriedAnimationOnElement(pe)))}destroyActiveAnimationsForElement(N){const G=this.playersByElement.get(N);G&&G.forEach(pe=>{pe.queued?pe.markedForDestroy=!0:pe.destroy()})}finishActiveQueriedAnimationOnElement(N){const G=this.playersByQueriedElement.get(N);G&&G.forEach(pe=>pe.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return d(this.players).onDone(()=>N());N()})}processLeaveNode(N){var G;const pe=N[jn];if(pe&&pe.setForRemoval){if(N[jn]=$n,pe.namespaceId){this.destroyInnerAnimations(N);const Ae=this._fetchNamespace(pe.namespaceId);Ae&&Ae.clearElementCache(N)}this._onRemovalComplete(N,pe.setForRemoval)}(null===(G=N.classList)||void 0===G?void 0:G.contains(Ht))&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(Ae=>{this.markElementAsDisabled(Ae,!1)})}flush(N=-1){let G=[];if(this.newHostElements.size&&(this.newHostElements.forEach((pe,Ae)=>this._balanceNamespaceList(pe,Ae)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let pe=0;pepe()),this._flushFns=[],this._whenQuietFns.length){const pe=this._whenQuietFns;this._whenQuietFns=[],G.length?d(G).onDone(()=>{pe.forEach(Ae=>Ae())}):pe.forEach(Ae=>Ae())}}reportError(N){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${N.join("\n")}`)}_flushAnimations(N,G){const pe=new re,Ae=[],We=new Map,rt=[],dt=new Map,Rt=new Map,Gt=new Map,rn=new Set;this.disabledNodes.forEach(mn=>{rn.add(mn);const Mn=this.driver.query(mn,".ng-animate-queued",!0);for(let En=0;En{const En=Y+Bn++;_n.set(Mn,En),mn.forEach(li=>Fn(li,En))});const Kn=[],_i=new Set,xi=new Set;for(let mn=0;mn_i.add(li)):xi.add(Mn))}const sr=new Map,Qi=oi(Pn,Array.from(_i));Qi.forEach((mn,Mn)=>{const En=Q+Bn++;sr.set(Mn,En),mn.forEach(li=>Fn(li,En))}),N.push(()=>{Ln.forEach((mn,Mn)=>{const En=_n.get(Mn);mn.forEach(li=>$i(li,En))}),Qi.forEach((mn,Mn)=>{const En=sr.get(Mn);mn.forEach(li=>$i(li,En))}),Kn.forEach(mn=>{this.processLeaveNode(mn)})});const Nr=[],fr=[];for(let mn=this._namespaceList.length-1;mn>=0;mn--)this._namespaceList[mn].drainQueuedTransitions(G).forEach(En=>{const li=En.player,ii=En.element;if(Nr.push(li),this.collectedEnterElements.length){const or=ii[jn];if(or&&or.setForMove)return void li.destroy()}const Hi=!pn||!this.driver.containsElement(pn,ii),Zn=sr.get(ii),dr=_n.get(ii),Si=this._buildInstruction(En,pe,dr,Zn,Hi);if(Si.errors&&Si.errors.length)return void fr.push(Si);if(Hi)return li.onStart(()=>ft(ii,Si.fromStyles)),li.onDestroy(()=>at(ii,Si.toStyles)),void Ae.push(li);if(En.isFallbackTransition)return li.onStart(()=>ft(ii,Si.fromStyles)),li.onDestroy(()=>at(ii,Si.toStyles)),void Ae.push(li);const Es=[];Si.timelines.forEach(or=>{or.stretchStartingKeyframe=!0,this.disabledNodes.has(or.element)||Es.push(or)}),Si.timelines=Es,pe.append(ii,Si.timelines),rt.push({instruction:Si,player:li,element:ii}),Si.queriedElements.forEach(or=>i(dt,or,[]).push(li)),Si.preStyleProps.forEach((or,ar)=>{const Ir=Object.keys(or);if(Ir.length){let _r=Rt.get(ar);_r||Rt.set(ar,_r=new Set),Ir.forEach(ts=>_r.add(ts))}}),Si.postStyleProps.forEach((or,ar)=>{const Ir=Object.keys(or);let _r=Gt.get(ar);_r||Gt.set(ar,_r=new Set),Ir.forEach(ts=>_r.add(ts))})});if(fr.length){const mn=[];fr.forEach(Mn=>{mn.push(`@${Mn.triggerName} has failed due to:\n`),Mn.errors.forEach(En=>mn.push(`- ${En}\n`))}),Nr.forEach(Mn=>Mn.destroy()),this.reportError(mn)}const Xi=new Map,gr=new Map;rt.forEach(mn=>{const Mn=mn.element;pe.has(Mn)&&(gr.set(Mn,Mn),this._beforeAnimationBuild(mn.player.namespaceId,mn.instruction,Xi))}),Ae.forEach(mn=>{const Mn=mn.element;this._getPreviousPlayers(Mn,!1,mn.namespaceId,mn.triggerName,null).forEach(li=>{i(Xi,Mn,[]).push(li),li.destroy()})});const zi=Kn.filter(mn=>yn(mn,Rt,Gt)),Pr=new Map;qi(Pr,this.driver,xi,Gt,v.l3).forEach(mn=>{yn(mn,Rt,Gt)&&zi.push(mn)});const Yi=new Map;Ln.forEach((mn,Mn)=>{qi(Yi,this.driver,new Set(mn),Rt,v.k1)}),zi.forEach(mn=>{const Mn=Pr.get(mn),En=Yi.get(mn);Pr.set(mn,Object.assign(Object.assign({},Mn),En))});const Ur=[],bs=[],Cs={};rt.forEach(mn=>{const{element:Mn,player:En,instruction:li}=mn;if(pe.has(Mn)){if(rn.has(Mn))return En.onDestroy(()=>at(Mn,li.toStyles)),En.disabled=!0,En.overrideTotalTime(li.totalTime),void Ae.push(En);let ii=Cs;if(gr.size>1){let Zn=Mn;const dr=[];for(;Zn=Zn.parentNode;){const Si=gr.get(Zn);if(Si){ii=Si;break}dr.push(Zn)}dr.forEach(Si=>gr.set(Si,ii))}const Hi=this._buildAnimation(En.namespaceId,li,Xi,We,Yi,Pr);if(En.setRealPlayer(Hi),ii===Cs)Ur.push(En);else{const Zn=this.playersByElement.get(ii);Zn&&Zn.length&&(En.parentPlayer=d(Zn)),Ae.push(En)}}else ft(Mn,li.fromStyles),En.onDestroy(()=>at(Mn,li.toStyles)),bs.push(En),rn.has(Mn)&&Ae.push(En)}),bs.forEach(mn=>{const Mn=We.get(mn.element);if(Mn&&Mn.length){const En=d(Mn);mn.setRealPlayer(En)}}),Ae.forEach(mn=>{mn.parentPlayer?mn.syncPlayerEvents(mn.parentPlayer):mn.destroy()});for(let mn=0;mn!Hi.destroyed);ii.length?mi(this,Mn,ii):this.processLeaveNode(Mn)}return Kn.length=0,Ur.forEach(mn=>{this.players.push(mn),mn.onDone(()=>{mn.destroy();const Mn=this.players.indexOf(mn);this.players.splice(Mn,1)}),mn.play()}),Ur}elementContainsData(N,G){let pe=!1;const Ae=G[jn];return Ae&&Ae.setForRemoval&&(pe=!0),this.playersByElement.has(G)&&(pe=!0),this.playersByQueriedElement.has(G)&&(pe=!0),this.statesByElement.has(G)&&(pe=!0),this._fetchNamespace(N).elementContainsData(G)||pe}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,G,pe,Ae,We){let rt=[];if(G){const dt=this.playersByQueriedElement.get(N);dt&&(rt=dt)}else{const dt=this.playersByElement.get(N);if(dt){const Rt=!We||We==kn;dt.forEach(Gt=>{Gt.queued||!Rt&&Gt.triggerName!=Ae||rt.push(Gt)})}}return(pe||Ae)&&(rt=rt.filter(dt=>!(pe&&pe!=dt.namespaceId||Ae&&Ae!=dt.triggerName))),rt}_beforeAnimationBuild(N,G,pe){const We=G.element,rt=G.isRemovalTransition?void 0:N,dt=G.isRemovalTransition?void 0:G.triggerName;for(const Rt of G.timelines){const Gt=Rt.element,rn=Gt!==We,pn=i(pe,Gt,[]);this._getPreviousPlayers(Gt,rn,rt,dt,G.toState).forEach(Ln=>{const _n=Ln.getRealPlayer();_n.beforeDestroy&&_n.beforeDestroy(),Ln.destroy(),pn.push(Ln)})}ft(We,G.fromStyles)}_buildAnimation(N,G,pe,Ae,We,rt){const dt=G.triggerName,Rt=G.element,Gt=[],rn=new Set,pn=new Set,Pn=G.timelines.map(_n=>{const Bn=_n.element;rn.add(Bn);const Kn=Bn[jn];if(Kn&&Kn.removedBeforeQueried)return new v.ZN(_n.duration,_n.delay);const _i=Bn!==Rt,xi=function(we){const N=[];return ur(we,N),N}((pe.get(Bn)||zn).map(Xi=>Xi.getRealPlayer())).filter(Xi=>!!Xi.element&&Xi.element===Bn),sr=We.get(Bn),Qi=rt.get(Bn),Nr=u(0,this._normalizer,0,_n.keyframes,sr,Qi),fr=this._buildPlayer(_n,Nr,xi);if(_n.subTimeline&&Ae&&pn.add(Bn),_i){const Xi=new pi(N,dt,Bn);Xi.setRealPlayer(fr),Gt.push(Xi)}return fr});Gt.forEach(_n=>{i(this.playersByQueriedElement,_n.element,[]).push(_n),_n.onDone(()=>function(we,N,G){let pe;if(we instanceof Map){if(pe=we.get(N),pe){if(pe.length){const Ae=pe.indexOf(G);pe.splice(Ae,1)}0==pe.length&&we.delete(N)}}else if(pe=we[N],pe){if(pe.length){const Ae=pe.indexOf(G);pe.splice(Ae,1)}0==pe.length&&delete we[N]}return pe}(this.playersByQueriedElement,_n.element,_n))}),rn.forEach(_n=>Fn(_n,J));const Ln=d(Pn);return Ln.onDestroy(()=>{rn.forEach(_n=>$i(_n,J)),at(Rt,G.toStyles)}),pn.forEach(_n=>{i(Ae,_n,[]).push(Ln)}),Ln}_buildPlayer(N,G,pe){return G.length>0?this.driver.animate(N.element,G,N.duration,N.delay,N.easing,pe):new v.ZN(N.duration,N.delay)}}class pi{constructor(N,G,pe){this.namespaceId=N,this.triggerName=G,this.element=pe,this._player=new v.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(N){this._containsRealPlayer||(this._player=N,Object.keys(this._queuedCallbacks).forEach(G=>{this._queuedCallbacks[G].forEach(pe=>h(N,G,void 0,pe))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const G=this._player;G.triggerCallback&&N.onStart(()=>G.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,G){i(this._queuedCallbacks,N,[]).push(G)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}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(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const G=this._player;G.triggerCallback&&G.triggerCallback(N)}}function tr(we){return we&&1===we.nodeType}function Rn(we,N){const G=we.style.display;return we.style.display=null!=N?N:"none",G}function qi(we,N,G,pe,Ae){const We=[];G.forEach(Rt=>We.push(Rn(Rt)));const rt=[];pe.forEach((Rt,Gt)=>{const rn={};Rt.forEach(pn=>{const Pn=rn[pn]=N.computeStyle(Gt,pn,Ae);(!Pn||0==Pn.length)&&(Gt[jn]=ti,rt.push(Gt))}),we.set(Gt,rn)});let dt=0;return G.forEach(Rt=>Rn(Rt,We[dt++])),rt}function oi(we,N){const G=new Map;if(we.forEach(dt=>G.set(dt,[])),0==N.length)return G;const Ae=new Set(N),We=new Map;function rt(dt){if(!dt)return 1;let Rt=We.get(dt);if(Rt)return Rt;const Gt=dt.parentNode;return Rt=G.has(Gt)?Gt:Ae.has(Gt)?1:rt(Gt),We.set(dt,Rt),Rt}return N.forEach(dt=>{const Rt=rt(dt);1!==Rt&&G.get(Rt).push(dt)}),G}function Fn(we,N){var G;null===(G=we.classList)||void 0===G||G.add(N)}function $i(we,N){var G;null===(G=we.classList)||void 0===G||G.remove(N)}function mi(we,N,G){d(G).onDone(()=>we.processLeaveNode(N))}function ur(we,N){for(let G=0;GAe.add(We)):N.set(we,pe),G.delete(we),!0}class Sn{constructor(N,G,pe){this.bodyNode=N,this._driver=G,this._normalizer=pe,this._triggerCache={},this.onRemovalComplete=(Ae,We)=>{},this._transitionEngine=new Xn(N,G,pe),this._timelineEngine=new Xe(N,G,pe),this._transitionEngine.onRemovalComplete=(Ae,We)=>this.onRemovalComplete(Ae,We)}registerTrigger(N,G,pe,Ae,We){const rt=N+"-"+Ae;let dt=this._triggerCache[rt];if(!dt){const Rt=[],Gt=Dt(this._driver,We,Rt);if(Rt.length)throw new Error(`The animation trigger "${Ae}" has failed to build due to the following errors:\n - ${Rt.join("\n - ")}`);dt=function(we,N,G){return new Re(we,N,G)}(Ae,Gt,this._normalizer),this._triggerCache[rt]=dt}this._transitionEngine.registerTrigger(G,Ae,dt)}register(N,G){this._transitionEngine.register(N,G)}destroy(N,G){this._transitionEngine.destroy(N,G)}onInsert(N,G,pe,Ae){this._transitionEngine.insertNode(N,G,pe,Ae)}onRemove(N,G,pe,Ae){this._transitionEngine.removeNode(N,G,Ae||!1,pe)}disableAnimations(N,G){this._transitionEngine.markElementAsDisabled(N,G)}process(N,G,pe,Ae){if("@"==pe.charAt(0)){const[We,rt]=c(pe);this._timelineEngine.command(We,G,rt,Ae)}else this._transitionEngine.trigger(N,G,pe,Ae)}listen(N,G,pe,Ae,We){if("@"==pe.charAt(0)){const[rt,dt]=c(pe);return this._timelineEngine.listen(rt,G,dt,We)}return this._transitionEngine.listen(N,G,pe,Ae,We)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Wn(we,N){let G=null,pe=null;return Array.isArray(N)&&N.length?(G=Li(N[0]),N.length>1&&(pe=Li(N[N.length-1]))):N&&(G=Li(N)),G||pe?new Ri(we,G,pe):null}let Ri=(()=>{class we{constructor(G,pe,Ae){this._element=G,this._startStyles=pe,this._endStyles=Ae,this._state=0;let We=we.initialStylesByElement.get(G);We||we.initialStylesByElement.set(G,We={}),this._initialStyles=We}start(){this._state<1&&(this._startStyles&&at(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(at(this._element,this._initialStyles),this._endStyles&&(at(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(we.initialStylesByElement.delete(this._element),this._startStyles&&(ft(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ft(this._element,this._endStyles),this._endStyles=null),at(this._element,this._initialStyles),this._state=3)}}return we.initialStylesByElement=new WeakMap,we})();function Li(we){let N=null;const G=Object.keys(we);for(let pe=0;pethis._handleCallback(Rt)}apply(){(function(we,N){const G=Hr(we,"").trim();let pe=0;G.length&&(function(we,N){let G=0;for(let pe=0;pe=this._delay&&pe>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Sr(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(we,N){const pe=Hr(we,"").split(","),Ae=Cr(pe,N);Ae>=0&&(pe.splice(Ae,1),mr(we,"",pe.join(",")))}(this._element,this._name))}}function $r(we,N,G){mr(we,"PlayState",G,ir(we,N))}function ir(we,N){const G=Hr(we,"");return G.indexOf(",")>0?Cr(G.split(","),N):Cr([G],N)}function Cr(we,N){for(let G=0;G=0)return G;return-1}function Sr(we,N,G){G?we.removeEventListener(Or,N):we.addEventListener(Or,N)}function mr(we,N,G,pe){const Ae=nr+N;if(null!=pe){const We=we.style[Ae];if(We.length){const rt=We.split(",");rt[pe]=G,G=rt.join(",")}}we.style[Ae]=G}function Hr(we,N){return we.style[nr+N]||""}class Rr{constructor(N,G,pe,Ae,We,rt,dt,Rt){this.element=N,this.keyframes=G,this.animationName=pe,this._duration=Ae,this._delay=We,this._finalStyles=dt,this._specialStyles=Rt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=rt||"linear",this.totalTime=Ae+We,this._buildStyler()}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(N=>N()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(N=>N()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(N){this._styler.setPosition(N)}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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new cr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(N){const G="start"==N?this._onStartFns:this._onDoneFns;G.forEach(pe=>pe()),G.length=0}beforeDestroy(){this.init();const N={};if(this.hasStarted()){const G=this._state>=3;Object.keys(this._finalStyles).forEach(pe=>{"offset"!=pe&&(N[pe]=G?this._finalStyles[pe]:U(this.element,pe))})}this.currentSnapshot=N}}class Dr extends v.ZN{constructor(N,G){super(),this.element=N,this._startingStyles={},this.__initialized=!1,this._styles=M(G)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(N=>{this._startingStyles[N]=this.element.style[N]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(N=>this.element.style.setProperty(N,this._styles[N])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(N=>{const G=this._startingStyles[N];G?this.element.style.setProperty(N,G):this.element.style.removeProperty(N)}),this._startingStyles=null,super.destroy())}}class Fr{constructor(){this._count=0}validateStyleProperty(N){return O(N)}matchesElement(N,G){return!1}containsElement(N,G){return A(N,G)}query(N,G,pe){return S(N,G,pe)}computeStyle(N,G,pe){return window.getComputedStyle(N)[G]}buildKeyframeElement(N,G,pe){pe=pe.map(dt=>M(dt));let Ae=`@keyframes ${G} {\n`,We="";pe.forEach(dt=>{We=" ";const Rt=parseFloat(dt.offset);Ae+=`${We}${100*Rt}% {\n`,We+=" ",Object.keys(dt).forEach(Gt=>{const rn=dt[Gt];switch(Gt){case"offset":return;case"easing":return void(rn&&(Ae+=`${We}animation-timing-function: ${rn};\n`));default:return void(Ae+=`${We}${Gt}: ${rn};\n`)}}),Ae+=`${We}}\n`}),Ae+="}\n";const rt=document.createElement("style");return rt.textContent=Ae,rt}animate(N,G,pe,Ae,We,rt=[],dt){const Rt=rt.filter(Kn=>Kn instanceof Rr),Gt={};fe(pe,Ae)&&Rt.forEach(Kn=>{let _i=Kn.currentSnapshot;Object.keys(_i).forEach(xi=>Gt[xi]=_i[xi])});const rn=function(we){let N={};return we&&(Array.isArray(we)?we:[we]).forEach(pe=>{Object.keys(pe).forEach(Ae=>{"offset"==Ae||"easing"==Ae||(N[Ae]=pe[Ae])})}),N}(G=H(N,G,Gt));if(0==pe)return new Dr(N,rn);const pn="gen_css_kf_"+this._count++,Pn=this.buildKeyframeElement(N,pn,G);(function(we){var N;const G=null===(N=we.getRootNode)||void 0===N?void 0:N.call(we);return"undefined"!=typeof ShadowRoot&&G instanceof ShadowRoot?G:document.head})(N).appendChild(Pn);const _n=Wn(N,G),Bn=new Rr(N,G,pn,pe,Ae,We,rn,_n);return Bn.onDestroy(()=>{var we;(we=Pn).parentNode.removeChild(we)}),Bn}}class si{constructor(N,G,pe,Ae){this.element=N,this.keyframes=G,this.options=pe,this._specialStyles=Ae,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=pe.duration,this._delay=pe.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const N=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,N,this.options),this._finalKeyframe=N.length?N[N.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(N,G,pe){return N.animate(G,pe)}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(N=>N()),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(N=>N()),this._onDestroyFns=[])}setPosition(N){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=N*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N={};if(this.hasStarted()){const G=this._finalKeyframe;Object.keys(G).forEach(pe=>{"offset"!=pe&&(N[pe]=this._finished?G[pe]:U(this.element,pe))})}this.currentSnapshot=N}triggerCallback(N){const G="start"==N?this._onStartFns:this._onDoneFns;G.forEach(pe=>pe()),G.length=0}}class zr{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(be().toString()),this._cssKeyframesDriver=new Fr}validateStyleProperty(N){return O(N)}matchesElement(N,G){return!1}containsElement(N,G){return A(N,G)}query(N,G,pe){return S(N,G,pe)}computeStyle(N,G,pe){return window.getComputedStyle(N)[G]}overrideWebAnimationsSupport(N){this._isNativeImpl=N}animate(N,G,pe,Ae,We,rt=[],dt){if(!dt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(N,G,pe,Ae,We,rt);const rn={duration:pe,delay:Ae,fill:0==Ae?"both":"forwards"};We&&(rn.easing=We);const pn={},Pn=rt.filter(_n=>_n instanceof si);fe(pe,Ae)&&Pn.forEach(_n=>{let Bn=_n.currentSnapshot;Object.keys(Bn).forEach(Kn=>pn[Kn]=Bn[Kn])});const Ln=Wn(N,G=H(N,G=G.map(_n=>gt(_n,!1)),pn));return new si(N,G,rn,Ln)}}function be(){return m()&&Element.prototype.animate||{}}var X=p(9808);let k=(()=>{class we extends v._j{constructor(G,pe){super(),this._nextAnimationId=0,this._renderer=G.createRenderer(pe.body,{id:"0",encapsulation:n.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(G){const pe=this._nextAnimationId.toString();this._nextAnimationId++;const Ae=Array.isArray(G)?(0,v.vP)(G):G;return nt(this._renderer,null,pe,"register",[Ae]),new V(pe,this._renderer)}}return we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(X.DOCUMENT))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class V extends v.LC{constructor(N,G){super(),this._id=N,this._renderer=G}create(N,G){return new ve(this._id,N,G||{},this._renderer)}}class ve{constructor(N,G,pe,Ae){this.id=N,this.element=G,this._renderer=Ae,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",pe)}_listen(N,G){return this._renderer.listen(this.element,`@@${this.id}:${N}`,G)}_command(N,...G){return nt(this._renderer,this.element,this.id,N,G)}onDone(N){this._listen("done",N)}onStart(N){this._listen("start",N)}onDestroy(N){this._listen("destroy",N)}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"),this._started=!1}setPosition(N){this._command("setPosition",N)}getPosition(){var N,G;return null!==(G=null===(N=this._renderer.engine.players[+this.id])||void 0===N?void 0:N.getPosition())&&void 0!==G?G:0}}function nt(we,N,G,pe,Ae){return we.setProperty(N,`@@${G}:${pe}`,Ae)}const nn="@.disabled";let In=(()=>{class we{constructor(G,pe,Ae){this.delegate=G,this.engine=pe,this._zone=Ae,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),pe.onRemovalComplete=(We,rt)=>{const dt=null==rt?void 0:rt.parentNode(We);dt&&rt.removeChild(dt,We)}}createRenderer(G,pe){const We=this.delegate.createRenderer(G,pe);if(!(G&&pe&&pe.data&&pe.data.animation)){let rn=this._rendererCache.get(We);return rn||(rn=new ni("",We,this.engine),this._rendererCache.set(We,rn)),rn}const rt=pe.id,dt=pe.id+"-"+this._currentId;this._currentId++,this.engine.register(dt,G);const Rt=rn=>{Array.isArray(rn)?rn.forEach(Rt):this.engine.registerTrigger(rt,dt,G,rn.name,rn)};return pe.data.animation.forEach(Rt),new di(this,dt,We,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(G,pe,Ae){G>=0&&Gpe(Ae)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(We=>{const[rt,dt]=We;rt(dt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([pe,Ae]))}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 we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(Sn),n.\u0275\u0275inject(n.NgZone))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class ni{constructor(N,G,pe){this.namespaceId=N,this.delegate=G,this.engine=pe,this.destroyNode=this.delegate.destroyNode?Ae=>G.destroyNode(Ae):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(N,G){return this.delegate.createElement(N,G)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,G){this.delegate.appendChild(N,G),this.engine.onInsert(this.namespaceId,G,N,!1)}insertBefore(N,G,pe,Ae=!0){this.delegate.insertBefore(N,G,pe),this.engine.onInsert(this.namespaceId,G,N,Ae)}removeChild(N,G,pe){this.engine.onRemove(this.namespaceId,G,this.delegate,pe)}selectRootElement(N,G){return this.delegate.selectRootElement(N,G)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,G,pe,Ae){this.delegate.setAttribute(N,G,pe,Ae)}removeAttribute(N,G,pe){this.delegate.removeAttribute(N,G,pe)}addClass(N,G){this.delegate.addClass(N,G)}removeClass(N,G){this.delegate.removeClass(N,G)}setStyle(N,G,pe,Ae){this.delegate.setStyle(N,G,pe,Ae)}removeStyle(N,G,pe){this.delegate.removeStyle(N,G,pe)}setProperty(N,G,pe){"@"==G.charAt(0)&&G==nn?this.disableAnimations(N,!!pe):this.delegate.setProperty(N,G,pe)}setValue(N,G){this.delegate.setValue(N,G)}listen(N,G,pe){return this.delegate.listen(N,G,pe)}disableAnimations(N,G){this.engine.disableAnimations(N,G)}}class di extends ni{constructor(N,G,pe,Ae){super(G,pe,Ae),this.factory=N,this.namespaceId=G}setProperty(N,G,pe){"@"==G.charAt(0)?"."==G.charAt(1)&&G==nn?this.disableAnimations(N,pe=void 0===pe||!!pe):this.engine.process(this.namespaceId,N,G.substr(1),pe):this.delegate.setProperty(N,G,pe)}listen(N,G,pe){if("@"==G.charAt(0)){const Ae=function(we){switch(we){case"body":return document.body;case"document":return document;case"window":return window;default:return we}}(N);let We=G.substr(1),rt="";return"@"!=We.charAt(0)&&([We,rt]=function(we){const N=we.indexOf(".");return[we.substring(0,N),we.substr(N+1)]}(We)),this.engine.listen(this.namespaceId,Ae,We,rt,dt=>{this.factory.scheduleListenerCallback(dt._data||-1,pe,dt)})}return this.delegate.listen(N,G,pe)}}let Ei=(()=>{class we extends Sn{constructor(G,pe,Ae){super(G.body,pe,Ae)}ngOnDestroy(){this.flush()}}return we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(X.DOCUMENT),n.\u0275\u0275inject(b),n.\u0275\u0275inject(Yn))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const rr=new n.InjectionToken("AnimationModuleType"),xr=[{provide:v._j,useClass:k},{provide:Yn,useFactory:function(){return new Oi}},{provide:Sn,useClass:Ei},{provide:n.RendererFactory2,useFactory:function(we,N,G){return new In(we,N,G)},deps:[f.\u0275DomRendererFactory2,Sn,n.NgZone]}],cs=[{provide:b,useFactory:function(){return"function"==typeof be()?new zr:new Fr}},{provide:rr,useValue:"BrowserAnimations"},...xr],es=[{provide:b,useClass:I},{provide:rr,useValue:"NoopAnimations"},...xr];let ds=(()=>{class we{static withConfig(G){return{ngModule:we,providers:G.disableAnimations?es:cs}}}return we.\u0275fac=function(G){return new(G||we)},we.\u0275mod=n.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=n.\u0275\u0275defineInjector({providers:cs,imports:[f.BrowserModule]}),we})(),Bs=(()=>{class we{}return we.\u0275fac=function(G){return new(G||we)},we.\u0275mod=n.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=n.\u0275\u0275defineInjector({providers:es,imports:[f.BrowserModule]}),we})()},2313:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{\u0275getDOM:()=>n.\u0275getDOM,BrowserModule:()=>Tt,BrowserTransferStateModule:()=>mt,By:()=>Vt,DomSanitizer:()=>It,EVENT_MANAGER_PLUGINS:()=>g,EventManager:()=>y,HAMMER_GESTURE_CONFIG:()=>Se,HAMMER_LOADER:()=>ee,HammerGestureConfig:()=>re,HammerModule:()=>ze,Meta:()=>Et,Title:()=>H,TransferState:()=>Lt,VERSION:()=>An,disableDebugTools:()=>Dt,enableDebugTools:()=>tn,makeStateKey:()=>xt,platformBrowser:()=>_t,\u0275BrowserDomAdapter:()=>m,\u0275BrowserGetTestability:()=>c,\u0275DomEventsPlugin:()=>Oe,\u0275DomRendererFactory2:()=>te,\u0275DomSanitizerImpl:()=>cn,\u0275DomSharedStylesHost:()=>D,\u0275HammerGesturesPlugin:()=>Me,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>ot,\u0275KeyEventsPlugin:()=>tt,\u0275NAMESPACE_URIS:()=>w,\u0275SharedStylesHost:()=>T,\u0275TRANSITION_ID:()=>r,\u0275escapeHtml:()=>Kt,\u0275flattenStyles:()=>ne,\u0275initDomAdapter:()=>ft,\u0275shimContentAttribute:()=>L,\u0275shimHostAttribute:()=>F});var n=p(9808),f=p(5e3);class v extends n.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class m extends v{static makeCurrent(){(0,n.\u0275setRootDomAdapter)(new m)}onAndCancel(ct,He,pt){return ct.addEventListener(He,pt,!1),()=>{ct.removeEventListener(He,pt,!1)}}dispatchEvent(ct,He){ct.dispatchEvent(He)}remove(ct){ct.parentNode&&ct.parentNode.removeChild(ct)}createElement(ct,He){return(He=He||this.getDefaultDocument()).createElement(ct)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ct){return ct.nodeType===Node.ELEMENT_NODE}isShadowRoot(ct){return ct instanceof DocumentFragment}getGlobalEventTarget(ct,He){return"window"===He?window:"document"===He?ct:"body"===He?ct.body:null}getBaseHref(ct){const He=(o=o||document.querySelector("base"),o?o.getAttribute("href"):null);return null==He?null:function(lt){u=u||document.createElement("a"),u.setAttribute("href",lt);const ct=u.pathname;return"/"===ct.charAt(0)?ct:`/${ct}`}(He)}resetBaseElement(){o=null}getUserAgent(){return window.navigator.userAgent}getCookie(ct){return(0,n.\u0275parseCookieValue)(document.cookie,ct)}}let u,o=null;const r=new f.InjectionToken("TRANSITION_ID"),i=[{provide:f.APP_INITIALIZER,useFactory:function(lt,ct,He){return()=>{He.get(f.ApplicationInitStatus).donePromise.then(()=>{const pt=(0,n.\u0275getDOM)(),Ot=ct.querySelectorAll(`style[ng-transition="${lt}"]`);for(let un=0;un{const un=ct.findTestabilityInTree(pt,Ot);if(null==un)throw new Error("Could not find testability for element.");return un},f.\u0275global.getAllAngularTestabilities=()=>ct.getAllTestabilities(),f.\u0275global.getAllAngularRootElements=()=>ct.getAllRootElements(),f.\u0275global.frameworkStabilizers||(f.\u0275global.frameworkStabilizers=[]),f.\u0275global.frameworkStabilizers.push(pt=>{const Ot=f.\u0275global.getAllAngularTestabilities();let un=Ot.length,on=!1;const On=function(Yn){on=on||Yn,un--,0==un&&pt(on)};Ot.forEach(function(Yn){Yn.whenStable(On)})})}findTestabilityInTree(ct,He,pt){if(null==He)return null;const Ot=ct.getTestability(He);return null!=Ot?Ot:pt?(0,n.\u0275getDOM)().isShadowRoot(He)?this.findTestabilityInTree(ct,He.host,!0):this.findTestabilityInTree(ct,He.parentElement,!0):null}}let l=(()=>{class lt{build(){return new XMLHttpRequest}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();const g=new f.InjectionToken("EventManagerPlugins");let y=(()=>{class lt{constructor(He,pt){this._zone=pt,this._eventNameToPlugin=new Map,He.forEach(Ot=>Ot.manager=this),this._plugins=He.slice().reverse()}addEventListener(He,pt,Ot){return this._findPluginFor(pt).addEventListener(He,pt,Ot)}addGlobalEventListener(He,pt,Ot){return this._findPluginFor(pt).addGlobalEventListener(He,pt,Ot)}getZone(){return this._zone}_findPluginFor(He){const pt=this._eventNameToPlugin.get(He);if(pt)return pt;const Ot=this._plugins;for(let un=0;un{class lt{constructor(){this._stylesSet=new Set}addStyles(He){const pt=new Set;He.forEach(Ot=>{this._stylesSet.has(Ot)||(this._stylesSet.add(Ot),pt.add(Ot))}),this.onStylesAdded(pt)}onStylesAdded(He){}getAllStyles(){return Array.from(this._stylesSet)}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),D=(()=>{class lt extends T{constructor(He){super(),this._doc=He,this._hostNodes=new Map,this._hostNodes.set(He.head,[])}_addStylesToHost(He,pt,Ot){He.forEach(un=>{const on=this._doc.createElement("style");on.textContent=un,Ot.push(pt.appendChild(on))})}addHost(He){const pt=[];this._addStylesToHost(this._stylesSet,He,pt),this._hostNodes.set(He,pt)}removeHost(He){const pt=this._hostNodes.get(He);pt&&pt.forEach(O),this._hostNodes.delete(He)}onStylesAdded(He){this._hostNodes.forEach((pt,Ot)=>{this._addStylesToHost(He,Ot,pt)})}ngOnDestroy(){this._hostNodes.forEach(He=>He.forEach(O))}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function O(lt){(0,n.\u0275getDOM)().remove(lt)}const w={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/"},A=/%COMP%/g,M="%COMP%",I=`_nghost-${M}`,b=`_ngcontent-${M}`;function L(lt){return b.replace(A,lt)}function F(lt){return I.replace(A,lt)}function ne(lt,ct,He){for(let pt=0;pt{if("__ngUnwrap__"===ct)return lt;!1===lt(ct)&&(ct.preventDefault(),ct.returnValue=!1)}}let te=(()=>{class lt{constructor(He,pt,Ot){this.eventManager=He,this.sharedStylesHost=pt,this.appId=Ot,this.rendererByCompId=new Map,this.defaultRenderer=new $(He)}createRenderer(He,pt){if(!He||!pt)return this.defaultRenderer;switch(pt.encapsulation){case f.ViewEncapsulation.Emulated:{let Ot=this.rendererByCompId.get(pt.id);return Ot||(Ot=new ae(this.eventManager,this.sharedStylesHost,pt,this.appId),this.rendererByCompId.set(pt.id,Ot)),Ot.applyToHost(He),Ot}case 1:case f.ViewEncapsulation.ShadowDom:return new le(this.eventManager,this.sharedStylesHost,He,pt);default:if(!this.rendererByCompId.has(pt.id)){const Ot=ne(pt.id,pt.styles,[]);this.sharedStylesHost.addStyles(Ot),this.rendererByCompId.set(pt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(y),f.\u0275\u0275inject(D),f.\u0275\u0275inject(f.APP_ID))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();class ${constructor(ct){this.eventManager=ct,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ct,He){return He?document.createElementNS(w[He]||He,ct):document.createElement(ct)}createComment(ct){return document.createComment(ct)}createText(ct){return document.createTextNode(ct)}appendChild(ct,He){ct.appendChild(He)}insertBefore(ct,He,pt){ct&&ct.insertBefore(He,pt)}removeChild(ct,He){ct&&ct.removeChild(He)}selectRootElement(ct,He){let pt="string"==typeof ct?document.querySelector(ct):ct;if(!pt)throw new Error(`The selector "${ct}" did not match any elements`);return He||(pt.textContent=""),pt}parentNode(ct){return ct.parentNode}nextSibling(ct){return ct.nextSibling}setAttribute(ct,He,pt,Ot){if(Ot){He=Ot+":"+He;const un=w[Ot];un?ct.setAttributeNS(un,He,pt):ct.setAttribute(He,pt)}else ct.setAttribute(He,pt)}removeAttribute(ct,He,pt){if(pt){const Ot=w[pt];Ot?ct.removeAttributeNS(Ot,He):ct.removeAttribute(`${pt}:${He}`)}else ct.removeAttribute(He)}addClass(ct,He){ct.classList.add(He)}removeClass(ct,He){ct.classList.remove(He)}setStyle(ct,He,pt,Ot){Ot&(f.RendererStyleFlags2.DashCase|f.RendererStyleFlags2.Important)?ct.style.setProperty(He,pt,Ot&f.RendererStyleFlags2.Important?"important":""):ct.style[He]=pt}removeStyle(ct,He,pt){pt&f.RendererStyleFlags2.DashCase?ct.style.removeProperty(He):ct.style[He]=""}setProperty(ct,He,pt){ct[He]=pt}setValue(ct,He){ct.nodeValue=He}listen(ct,He,pt){return"string"==typeof ct?this.eventManager.addGlobalEventListener(ct,He,Y(pt)):this.eventManager.addEventListener(ct,He,Y(pt))}}class ae extends ${constructor(ct,He,pt,Ot){super(ct),this.component=pt;const un=ne(Ot+"-"+pt.id,pt.styles,[]);He.addStyles(un),this.contentAttr=L(Ot+"-"+pt.id),this.hostAttr=F(Ot+"-"+pt.id)}applyToHost(ct){super.setAttribute(ct,this.hostAttr,"")}createElement(ct,He){const pt=super.createElement(ct,He);return super.setAttribute(pt,this.contentAttr,""),pt}}class le extends ${constructor(ct,He,pt,Ot){super(ct),this.sharedStylesHost=He,this.hostEl=pt,this.shadowRoot=pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const un=ne(Ot.id,Ot.styles,[]);for(let on=0;on{class lt extends E{constructor(He){super(He)}supports(He){return!0}addEventListener(He,pt,Ot){return He.addEventListener(pt,Ot,!1),()=>this.removeEventListener(He,pt,Ot)}removeEventListener(He,pt,Ot){return He.removeEventListener(pt,Ot)}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();const Le=["alt","control","meta","shift"],Je={"\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"},gt={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"},Ue={alt:lt=>lt.altKey,control:lt=>lt.ctrlKey,meta:lt=>lt.metaKey,shift:lt=>lt.shiftKey};let tt=(()=>{class lt extends E{constructor(He){super(He)}supports(He){return null!=lt.parseEventName(He)}addEventListener(He,pt,Ot){const un=lt.parseEventName(pt),on=lt.eventCallback(un.fullKey,Ot,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.\u0275getDOM)().onAndCancel(He,un.domEventName,on))}static parseEventName(He){const pt=He.toLowerCase().split("."),Ot=pt.shift();if(0===pt.length||"keydown"!==Ot&&"keyup"!==Ot)return null;const un=lt._normalizeKey(pt.pop());let on="";if(Le.forEach(Yn=>{const ji=pt.indexOf(Yn);ji>-1&&(pt.splice(ji,1),on+=Yn+".")}),on+=un,0!=pt.length||0===un.length)return null;const On={};return On.domEventName=Ot,On.fullKey=on,On}static getEventFullKey(He){let pt="",Ot=function(lt){let ct=lt.key;if(null==ct){if(ct=lt.keyIdentifier,null==ct)return"Unidentified";ct.startsWith("U+")&&(ct=String.fromCharCode(parseInt(ct.substring(2),16)),3===lt.location&>.hasOwnProperty(ct)&&(ct=gt[ct]))}return Je[ct]||ct}(He);return Ot=Ot.toLowerCase()," "===Ot?Ot="space":"."===Ot&&(Ot="dot"),Le.forEach(un=>{un!=Ot&&Ue[un](He)&&(pt+=un+".")}),pt+=Ot,pt}static eventCallback(He,pt,Ot){return un=>{lt.getEventFullKey(un)===He&&Ot.runGuarded(()=>pt(un))}}static _normalizeKey(He){return"esc"===He?"escape":He}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function ft(){m.makeCurrent(),c.init()}const ot=[{provide:f.PLATFORM_ID,useValue:n.\u0275PLATFORM_BROWSER_ID},{provide:f.PLATFORM_INITIALIZER,useValue:ft,multi:!0},{provide:n.DOCUMENT,useFactory:function(){return(0,f.\u0275setDocument)(document),document},deps:[]}],_t=(0,f.createPlatformFactory)(f.platformCore,"browser",ot),At=[{provide:f.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:f.ErrorHandler,useFactory:function(){return new f.ErrorHandler},deps:[]},{provide:g,useClass:Oe,multi:!0,deps:[n.DOCUMENT,f.NgZone,f.PLATFORM_ID]},{provide:g,useClass:tt,multi:!0,deps:[n.DOCUMENT]},{provide:te,useClass:te,deps:[y,D,f.APP_ID]},{provide:f.RendererFactory2,useExisting:te},{provide:T,useExisting:D},{provide:D,useClass:D,deps:[n.DOCUMENT]},{provide:f.Testability,useClass:f.Testability,deps:[f.NgZone]},{provide:y,useClass:y,deps:[g,f.NgZone]},{provide:n.XhrFactory,useClass:l,deps:[]}];let Tt=(()=>{class lt{constructor(He){if(He)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(He){return{ngModule:lt,providers:[{provide:f.APP_ID,useValue:He.appId},{provide:r,useExisting:f.APP_ID},i]}}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(lt,12))},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:At,imports:[n.CommonModule,f.ApplicationModule]}),lt})(),Et=(()=>{class lt{constructor(He){this._doc=He,this._dom=(0,n.\u0275getDOM)()}addTag(He,pt=!1){return He?this._getOrCreateElement(He,pt):null}addTags(He,pt=!1){return He?He.reduce((Ot,un)=>(un&&Ot.push(this._getOrCreateElement(un,pt)),Ot),[]):[]}getTag(He){return He&&this._doc.querySelector(`meta[${He}]`)||null}getTags(He){if(!He)return[];const pt=this._doc.querySelectorAll(`meta[${He}]`);return pt?[].slice.call(pt):[]}updateTag(He,pt){if(!He)return null;pt=pt||this._parseSelector(He);const Ot=this.getTag(pt);return Ot?this._setMetaElementAttributes(He,Ot):this._getOrCreateElement(He,!0)}removeTag(He){this.removeTagElement(this.getTag(He))}removeTagElement(He){He&&this._dom.remove(He)}_getOrCreateElement(He,pt=!1){if(!pt){const on=this._parseSelector(He),On=this.getTags(on).filter(Yn=>this._containsAttributes(He,Yn))[0];if(void 0!==On)return On}const Ot=this._dom.createElement("meta");return this._setMetaElementAttributes(He,Ot),this._doc.getElementsByTagName("head")[0].appendChild(Ot),Ot}_setMetaElementAttributes(He,pt){return Object.keys(He).forEach(Ot=>pt.setAttribute(this._getMetaKeyMap(Ot),He[Ot])),pt}_parseSelector(He){const pt=He.name?"name":"property";return`${pt}="${He[pt]}"`}_containsAttributes(He,pt){return Object.keys(He).every(Ot=>pt.getAttribute(this._getMetaKeyMap(Ot))===He[Ot])}_getMetaKeyMap(He){return Ee[He]||He}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let pt=null;return pt=He?new He:new Et((0,f.\u0275\u0275inject)(n.DOCUMENT)),pt},providedIn:"root"}),lt})();const Ee={httpEquiv:"http-equiv"};let H=(()=>{class lt{constructor(He){this._doc=He}getTitle(){return this._doc.title}setTitle(He){this._doc.title=He||""}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let pt=null;return pt=He?new He:new H((0,f.\u0275\u0275inject)(n.DOCUMENT)),pt},providedIn:"root"}),lt})();function Be(lt,ct){"undefined"!=typeof COMPILED&&COMPILED||((f.\u0275global.ng=f.\u0275global.ng||{})[lt]=ct)}const $e="undefined"!=typeof window&&window||{};class st{constructor(ct,He){this.msPerTick=ct,this.numTicks=He}}class ut{constructor(ct){this.appRef=ct.injector.get(f.ApplicationRef)}timeChangeDetection(ct){const He=ct&&ct.record,pt="Change Detection",Ot=null!=$e.console.profile;He&&Ot&&$e.console.profile(pt);const un=St();let on=0;for(;on<5||St()-un<500;)this.appRef.tick(),on++;const On=St();He&&Ot&&$e.console.profileEnd(pt);const Yn=(On-un)/on;return $e.console.log(`ran ${on} change detection cycles`),$e.console.log(`${Yn.toFixed(2)} ms per check`),new st(Yn,on)}}function St(){return $e.performance&&$e.performance.now?$e.performance.now():(new Date).getTime()}const Xt="profiler";function tn(lt){return Be(Xt,new ut(lt)),lt}function Dt(){Be(Xt,null)}function Kt(lt){const ct={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return lt.replace(/[&"'<>]/g,He=>ct[He])}function xt(lt){return lt}let Lt=(()=>{class lt{constructor(){this.store={},this.onSerializeCallbacks={}}static init(He){const pt=new lt;return pt.store=He,pt}get(He,pt){return void 0!==this.store[He]?this.store[He]:pt}set(He,pt){this.store[He]=pt}remove(He){delete this.store[He]}hasKey(He){return this.store.hasOwnProperty(He)}onSerialize(He,pt){this.onSerializeCallbacks[He]=pt}toJson(){for(const He in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(He))try{this.store[He]=this.onSerializeCallbacks[He]()}catch(pt){console.warn("Exception in onSerialize callback: ",pt)}return JSON.stringify(this.store)}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function Qe(lt,ct){const He=lt.getElementById(ct+"-state");let pt={};if(He&&He.textContent)try{pt=JSON.parse(function(lt){const ct={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return lt.replace(/&[^;]+;/g,He=>ct[He])}(He.textContent))}catch(Ot){console.warn("Exception while restoring TransferState for app "+ct,Ot)}return Lt.init(pt)}let mt=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:[{provide:Lt,useFactory:Qe,deps:[n.DOCUMENT,f.APP_ID]}]}),lt})();class Vt{static all(){return()=>!0}static css(ct){return He=>null!=He.nativeElement&&function(lt,ct){return!!(0,n.\u0275getDOM)().isElementNode(lt)&&(lt.matches&<.matches(ct)||lt.msMatchesSelector&<.msMatchesSelector(ct)||lt.webkitMatchesSelector&<.webkitMatchesSelector(ct))}(He.nativeElement,ct)}static directive(ct){return He=>-1!==He.providerTokens.indexOf(ct)}}const Ne={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Se=new f.InjectionToken("HammerGestureConfig"),ee=new f.InjectionToken("HammerLoader");let re=(()=>{class lt{constructor(){this.events=[],this.overrides={}}buildHammer(He){const pt=new Hammer(He,this.options);pt.get("pinch").set({enable:!0}),pt.get("rotate").set({enable:!0});for(const Ot in this.overrides)pt.get(Ot).set(this.overrides[Ot]);return pt}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),Me=(()=>{class lt extends E{constructor(He,pt,Ot,un){super(He),this._config=pt,this.console=Ot,this.loader=un,this._loaderPromise=null}supports(He){return!(!Ne.hasOwnProperty(He.toLowerCase())&&!this.isCustomEvent(He)||!window.Hammer&&!this.loader)}addEventListener(He,pt,Ot){const un=this.manager.getZone();if(pt=pt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let on=!1,On=()=>{on=!0};return this._loaderPromise.then(()=>{window.Hammer?on||(On=this.addEventListener(He,pt,Ot)):On=()=>{}}).catch(()=>{On=()=>{}}),()=>{On()}}return un.runOutsideAngular(()=>{const on=this._config.buildHammer(He),On=function(Yn){un.runGuarded(function(){Ot(Yn)})};return on.on(pt,On),()=>{on.off(pt,On),"function"==typeof on.destroy&&on.destroy()}})}isCustomEvent(He){return this._config.events.indexOf(He)>-1}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(Se),f.\u0275\u0275inject(f.\u0275Console),f.\u0275\u0275inject(ee,8))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),ze=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:[{provide:g,useClass:Me,multi:!0,deps:[n.DOCUMENT,Se,f.\u0275Console,[new f.Optional,ee]]},{provide:Se,useClass:re,deps:[]}]}),lt})(),It=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let pt=null;return pt=He?new(He||lt):f.\u0275\u0275inject(cn),pt},providedIn:"root"}),lt})(),cn=(()=>{class lt extends It{constructor(He){super(),this._doc=He}sanitize(He,pt){if(null==pt)return null;switch(He){case f.SecurityContext.NONE:return pt;case f.SecurityContext.HTML:return(0,f.\u0275allowSanitizationBypassAndThrow)(pt,"HTML")?(0,f.\u0275unwrapSafeValue)(pt):(0,f.\u0275_sanitizeHtml)(this._doc,String(pt)).toString();case f.SecurityContext.STYLE:return(0,f.\u0275allowSanitizationBypassAndThrow)(pt,"Style")?(0,f.\u0275unwrapSafeValue)(pt):pt;case f.SecurityContext.SCRIPT:if((0,f.\u0275allowSanitizationBypassAndThrow)(pt,"Script"))return(0,f.\u0275unwrapSafeValue)(pt);throw new Error("unsafe value used in a script context");case f.SecurityContext.URL:return(0,f.\u0275getSanitizationBypassType)(pt),(0,f.\u0275allowSanitizationBypassAndThrow)(pt,"URL")?(0,f.\u0275unwrapSafeValue)(pt):(0,f.\u0275_sanitizeUrl)(String(pt));case f.SecurityContext.RESOURCE_URL:if((0,f.\u0275allowSanitizationBypassAndThrow)(pt,"ResourceURL"))return(0,f.\u0275unwrapSafeValue)(pt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${He} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(He){return(0,f.\u0275bypassSanitizationTrustHtml)(He)}bypassSecurityTrustStyle(He){return(0,f.\u0275bypassSanitizationTrustStyle)(He)}bypassSecurityTrustScript(He){return(0,f.\u0275bypassSanitizationTrustScript)(He)}bypassSecurityTrustUrl(He){return(0,f.\u0275bypassSanitizationTrustUrl)(He)}bypassSecurityTrustResourceUrl(He){return(0,f.\u0275bypassSanitizationTrustResourceUrl)(He)}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let pt=null;return pt=He?new He:function(lt){return new cn(lt.get(n.DOCUMENT))}(f.\u0275\u0275inject(f.Injector)),pt},providedIn:"root"}),lt})();const An=new f.Version("13.1.1")},4202:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{ActivatedRoute:()=>B,ActivatedRouteSnapshot:()=>Xe,ActivationEnd:()=>ft,ActivationStart:()=>at,BaseRouteReuseStrategy:()=>Xi,ChildActivationEnd:()=>tt,ChildActivationStart:()=>Ue,ChildrenOutletContexts:()=>hr,DefaultUrlSerializer:()=>ee,GuardsCheckEnd:()=>Oe,GuardsCheckStart:()=>le,NavigationCancel:()=>J,NavigationEnd:()=>$,NavigationError:()=>ie,NavigationStart:()=>te,NoPreloading:()=>ar,OutletContext:()=>$r,PRIMARY_OUTLET:()=>yt,PreloadAllModules:()=>or,PreloadingStrategy:()=>ws,ROUTER_CONFIGURATION:()=>Br,ROUTER_INITIALIZER:()=>ln,ROUTES:()=>zi,ResolveEnd:()=>Ye,ResolveStart:()=>Le,RouteConfigLoadEnd:()=>gt,RouteConfigLoadStart:()=>Je,RouteReuseStrategy:()=>fr,Router:()=>En,RouterEvent:()=>Q,RouterLink:()=>Hi,RouterLinkActive:()=>Si,RouterLinkWithHref:()=>Zn,RouterModule:()=>rs,RouterOutlet:()=>qr,RouterPreloader:()=>Ir,RouterState:()=>Ze,RouterStateSnapshot:()=>Wt,RoutesRecognized:()=>ae,Scroll:()=>vt,UrlHandlingStrategy:()=>ys,UrlSegment:()=>mt,UrlSegmentGroup:()=>Qe,UrlSerializer:()=>Se,UrlTree:()=>Lt,VERSION:()=>Ki,convertToParamMap:()=>_t,provideRoutes:()=>Ss,\u0275EmptyOutletComponent:()=>Cr,\u0275ROUTER_PROVIDERS:()=>qs,\u0275assignExtraOptionsToRouter:()=>z,\u0275flatten:()=>x});var n=p(5e3),f=p(5254),v=p(1086),m=p(591),o=p(6053),d=p(6498),u=p(4450),h=p(1961),r=p(8514),s=p(8896),i=p(1762),c=p(8929),l=p(4850),g=p(7545),y=p(2986),E=p(1059),T=p(2014),D=p(2198),O=p(7221),w=p(1406),A=p(8127),S=p(7224),M=p(1709),I=p(2868),b=p(2821),L=p(4327),F=p(537),ne=p(9146),Y=p(9808);class Q{constructor(oe,q){this.id=oe,this.url=q}}class te extends Q{constructor(oe,q,Ce="imperative",Te=null){super(oe,q),this.navigationTrigger=Ce,this.restoredState=Te}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $ extends Q{constructor(oe,q,Ce){super(oe,q),this.urlAfterRedirects=Ce}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class J extends Q{constructor(oe,q,Ce){super(oe,q),this.reason=Ce}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ie extends Q{constructor(oe,q,Ce){super(oe,q),this.error=Ce}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ae extends Q{constructor(oe,q,Ce,Te){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class le extends Q{constructor(oe,q,Ce,Te){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oe extends Q{constructor(oe,q,Ce,Te,Ve){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te,this.shouldActivate=Ve}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Le extends Q{constructor(oe,q,Ce,Te){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ye extends Q{constructor(oe,q,Ce,Te){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Je{constructor(oe){this.route=oe}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gt{constructor(oe){this.route=oe}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ue{constructor(oe){this.snapshot=oe}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tt{constructor(oe){this.snapshot=oe}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(oe){this.snapshot=oe}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ft{constructor(oe){this.snapshot=oe}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(oe,q,Ce){this.routerEvent=oe,this.position=q,this.anchor=Ce}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const yt="primary";class ot{constructor(oe){this.params=oe||{}}has(oe){return Object.prototype.hasOwnProperty.call(this.params,oe)}get(oe){if(this.has(oe)){const q=this.params[oe];return Array.isArray(q)?q[0]:q}return null}getAll(oe){if(this.has(oe)){const q=this.params[oe];return Array.isArray(q)?q:[q]}return[]}get keys(){return Object.keys(this.params)}}function _t(me){return new ot(me)}const At="ngNavigationCancelingError";function Tt(me){const oe=Error("NavigationCancelingError: "+me);return oe[At]=!0,oe}function Et(me,oe,q){const Ce=q.path.split("/");if(Ce.length>me.length||"full"===q.pathMatch&&(oe.hasChildren()||Ce.lengthCe[Ve]===Te)}return me===oe}function x(me){return Array.prototype.concat.apply([],me)}function U(me){return me.length>0?me[me.length-1]:null}function _e(me,oe){for(const q in me)me.hasOwnProperty(q)&&oe(me[q],q)}function Be(me){return(0,n.\u0275isObservable)(me)?me:(0,n.\u0275isPromise)(me)?(0,f.D)(Promise.resolve(me)):(0,v.of)(me)}const st={exact:function tn(me,oe,q){if(!qt(me.segments,oe.segments)||!xt(me.segments,oe.segments,q)||me.numberOfChildren!==oe.numberOfChildren)return!1;for(const Ce in oe.children)if(!me.children[Ce]||!tn(me.children[Ce],oe.children[Ce],q))return!1;return!0},subset:Kt},ut={exact:function(me,oe){return fe(me,oe)},subset:function(me,oe){return Object.keys(oe).length<=Object.keys(me).length&&Object.keys(oe).every(q=>H(me[q],oe[q]))},ignored:()=>!0};function St(me,oe,q){return st[q.paths](me.root,oe.root,q.matrixParams)&&ut[q.queryParams](me.queryParams,oe.queryParams)&&!("exact"===q.fragment&&me.fragment!==oe.fragment)}function Kt(me,oe,q){return et(me,oe,oe.segments,q)}function et(me,oe,q,Ce){if(me.segments.length>q.length){const Te=me.segments.slice(0,q.length);return!(!qt(Te,q)||oe.hasChildren()||!xt(Te,q,Ce))}if(me.segments.length===q.length){if(!qt(me.segments,q)||!xt(me.segments,q,Ce))return!1;for(const Te in oe.children)if(!me.children[Te]||!Kt(me.children[Te],oe.children[Te],Ce))return!1;return!0}{const Te=q.slice(0,me.segments.length),Ve=q.slice(me.segments.length);return!!(qt(me.segments,Te)&&xt(me.segments,Te,Ce)&&me.children[yt])&&et(me.children[yt],oe,Ve,Ce)}}function xt(me,oe,q){return oe.every((Ce,Te)=>ut[q](me[Te].parameters,Ce.parameters))}class Lt{constructor(oe,q,Ce){this.root=oe,this.queryParams=q,this.fragment=Ce}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return re.serialize(this)}}class Qe{constructor(oe,q){this.segments=oe,this.children=q,this.parent=null,_e(q,(Ce,Te)=>Ce.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Me(this)}}class mt{constructor(oe,q){this.path=oe,this.parameters=q}get parameterMap(){return this._parameterMap||(this._parameterMap=_t(this.parameters)),this._parameterMap}toString(){return He(this)}}function qt(me,oe){return me.length===oe.length&&me.every((q,Ce)=>q.path===oe[Ce].path)}class Se{}class ee{parse(oe){const q=new Ni(oe);return new Lt(q.parseRootSegment(),q.parseQueryParams(),q.parseFragment())}serialize(oe){const q=`/${ze(oe.root,!0)}`,Ce=function(me){const oe=Object.keys(me).map(q=>{const Ce=me[q];return Array.isArray(Ce)?Ce.map(Te=>`${Qt(q)}=${Qt(Te)}`).join("&"):`${Qt(q)}=${Qt(Ce)}`}).filter(q=>!!q);return oe.length?`?${oe.join("&")}`:""}(oe.queryParams);var me;return`${q}${Ce}${"string"==typeof oe.fragment?`#${me=oe.fragment,encodeURI(me)}`:""}`}}const re=new ee;function Me(me){return me.segments.map(oe=>He(oe)).join("/")}function ze(me,oe){if(!me.hasChildren())return Me(me);if(oe){const q=me.children[yt]?ze(me.children[yt],!1):"",Ce=[];return _e(me.children,(Te,Ve)=>{Ve!==yt&&Ce.push(`${Ve}:${ze(Te,!1)}`)}),Ce.length>0?`${q}(${Ce.join("//")})`:q}{const q=function(me,oe){let q=[];return _e(me.children,(Ce,Te)=>{Te===yt&&(q=q.concat(oe(Ce,Te)))}),_e(me.children,(Ce,Te)=>{Te!==yt&&(q=q.concat(oe(Ce,Te)))}),q}(me,(Ce,Te)=>Te===yt?[ze(me.children[yt],!1)]:[`${Te}:${ze(Ce,!1)}`]);return 1===Object.keys(me.children).length&&null!=me.children[yt]?`${Me(me)}/${q[0]}`:`${Me(me)}/(${q.join("//")})`}}function It(me){return encodeURIComponent(me).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qt(me){return It(me).replace(/%3B/gi,";")}function An(me){return It(me).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lt(me){return decodeURIComponent(me)}function ct(me){return lt(me.replace(/\+/g,"%20"))}function He(me){return`${An(me.path)}${function(me){return Object.keys(me).map(oe=>`;${An(oe)}=${An(me[oe])}`).join("")}(me.parameters)}`}const un=/^[^\/()?;=#]+/;function on(me){const oe=me.match(un);return oe?oe[0]:""}const On=/^[^=?&#]+/,ji=/^[^&#]+/;class Ni{constructor(oe){this.url=oe,this.remaining=oe}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qe([],{}):new Qe([],this.parseChildren())}parseQueryParams(){const oe={};if(this.consumeOptional("?"))do{this.parseQueryParam(oe)}while(this.consumeOptional("&"));return oe}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const oe=[];for(this.peekStartsWith("(")||oe.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),oe.push(this.parseSegment());let q={};this.peekStartsWith("/(")&&(this.capture("/"),q=this.parseParens(!0));let Ce={};return this.peekStartsWith("(")&&(Ce=this.parseParens(!1)),(oe.length>0||Object.keys(q).length>0)&&(Ce[yt]=new Qe(oe,q)),Ce}parseSegment(){const oe=on(this.remaining);if(""===oe&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(oe),new mt(lt(oe),this.parseMatrixParams())}parseMatrixParams(){const oe={};for(;this.consumeOptional(";");)this.parseParam(oe);return oe}parseParam(oe){const q=on(this.remaining);if(!q)return;this.capture(q);let Ce="";if(this.consumeOptional("=")){const Te=on(this.remaining);Te&&(Ce=Te,this.capture(Ce))}oe[lt(q)]=lt(Ce)}parseQueryParam(oe){const q=function(me){const oe=me.match(On);return oe?oe[0]:""}(this.remaining);if(!q)return;this.capture(q);let Ce="";if(this.consumeOptional("=")){const it=function(me){const oe=me.match(ji);return oe?oe[0]:""}(this.remaining);it&&(Ce=it,this.capture(Ce))}const Te=ct(q),Ve=ct(Ce);if(oe.hasOwnProperty(Te)){let it=oe[Te];Array.isArray(it)||(it=[it],oe[Te]=it),it.push(Ve)}else oe[Te]=Ve}parseParens(oe){const q={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ce=on(this.remaining),Te=this.remaining[Ce.length];if("/"!==Te&&")"!==Te&&";"!==Te)throw new Error(`Cannot parse url '${this.url}'`);let Ve;Ce.indexOf(":")>-1?(Ve=Ce.substr(0,Ce.indexOf(":")),this.capture(Ve),this.capture(":")):oe&&(Ve=yt);const it=this.parseChildren();q[Ve]=1===Object.keys(it).length?it[yt]:new Qe([],it),this.consumeOptional("//")}return q}peekStartsWith(oe){return this.remaining.startsWith(oe)}consumeOptional(oe){return!!this.peekStartsWith(oe)&&(this.remaining=this.remaining.substring(oe.length),!0)}capture(oe){if(!this.consumeOptional(oe))throw new Error(`Expected "${oe}".`)}}class Ti{constructor(oe){this._root=oe}get root(){return this._root.value}parent(oe){const q=this.pathFromRoot(oe);return q.length>1?q[q.length-2]:null}children(oe){const q=qn(oe,this._root);return q?q.children.map(Ce=>Ce.value):[]}firstChild(oe){const q=qn(oe,this._root);return q&&q.children.length>0?q.children[0].value:null}siblings(oe){const q=Vi(oe,this._root);return q.length<2?[]:q[q.length-2].children.map(Te=>Te.value).filter(Te=>Te!==oe)}pathFromRoot(oe){return Vi(oe,this._root).map(q=>q.value)}}function qn(me,oe){if(me===oe.value)return oe;for(const q of oe.children){const Ce=qn(me,q);if(Ce)return Ce}return null}function Vi(me,oe){if(me===oe.value)return[oe];for(const q of oe.children){const Ce=Vi(me,q);if(Ce.length)return Ce.unshift(oe),Ce}return[]}class ci{constructor(oe,q){this.value=oe,this.children=q}toString(){return`TreeNode(${this.value})`}}function xe(me){const oe={};return me&&me.children.forEach(q=>oe[q.value.outlet]=q),oe}class Ze extends Ti{constructor(oe,q){super(oe),this.snapshot=q,Ft(this,oe)}toString(){return this.snapshot.toString()}}function ue(me,oe){const q=function(me,oe){const it=new Xe([],{},{},"",{},yt,oe,null,me.root,-1,{});return new Wt("",new ci(it,[]))}(me,oe),Ce=new m.X([new mt("",{})]),Te=new m.X({}),Ve=new m.X({}),it=new m.X({}),bt=new m.X(""),zt=new B(Ce,Te,it,bt,Ve,yt,oe,q.root);return zt.snapshot=q.root,new Ze(new ci(zt,[]),q)}class B{constructor(oe,q,Ce,Te,Ve,it,bt,zt){this.url=oe,this.params=q,this.queryParams=Ce,this.fragment=Te,this.data=Ve,this.outlet=it,this.component=bt,this._futureSnapshot=zt}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((0,l.U)(oe=>_t(oe)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,l.U)(oe=>_t(oe)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function de(me,oe="emptyOnly"){const q=me.pathFromRoot;let Ce=0;if("always"!==oe)for(Ce=q.length-1;Ce>=1;){const Te=q[Ce],Ve=q[Ce-1];if(Te.routeConfig&&""===Te.routeConfig.path)Ce--;else{if(Ve.component)break;Ce--}}return function(me){return me.reduce((oe,q)=>({params:Object.assign(Object.assign({},oe.params),q.params),data:Object.assign(Object.assign({},oe.data),q.data),resolve:Object.assign(Object.assign({},oe.resolve),q._resolvedData)}),{params:{},data:{},resolve:{}})}(q.slice(Ce))}class Xe{constructor(oe,q,Ce,Te,Ve,it,bt,zt,vn,fi,Dn){this.url=oe,this.params=q,this.queryParams=Ce,this.fragment=Te,this.data=Ve,this.outlet=it,this.component=bt,this.routeConfig=zt,this._urlSegment=vn,this._lastPathIndex=fi,this._resolve=Dn}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=_t(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ce=>Ce.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Wt extends Ti{constructor(oe,q){super(q),this.url=oe,Ft(this,q)}toString(){return Ht(this._root)}}function Ft(me,oe){oe.value._routerState=me,oe.children.forEach(q=>Ft(me,q))}function Ht(me){const oe=me.children.length>0?` { ${me.children.map(Ht).join(", ")} } `:"";return`${me.value}${oe}`}function Zt(me){if(me.snapshot){const oe=me.snapshot,q=me._futureSnapshot;me.snapshot=q,fe(oe.queryParams,q.queryParams)||me.queryParams.next(q.queryParams),oe.fragment!==q.fragment&&me.fragment.next(q.fragment),fe(oe.params,q.params)||me.params.next(q.params),function(me,oe){if(me.length!==oe.length)return!1;for(let q=0;qfe(q.parameters,oe[Ce].parameters))}(me.url,oe.url);return q&&!(!me.parent!=!oe.parent)&&(!me.parent||an(me.parent,oe.parent))}function zn(me,oe,q){if(q&&me.shouldReuseRoute(oe.value,q.value.snapshot)){const Ce=q.value;Ce._futureSnapshot=oe.value;const Te=function(me,oe,q){return oe.children.map(Ce=>{for(const Te of q.children)if(me.shouldReuseRoute(Ce.value,Te.value.snapshot))return zn(me,Ce,Te);return zn(me,Ce)})}(me,oe,q);return new ci(Ce,Te)}{if(me.shouldAttach(oe.value)){const Ve=me.retrieve(oe.value);if(null!==Ve){const it=Ve.route;return it.value._futureSnapshot=oe.value,it.children=oe.children.map(bt=>zn(me,bt)),it}}const Ce=function(me){return new B(new m.X(me.url),new m.X(me.params),new m.X(me.queryParams),new m.X(me.fragment),new m.X(me.data),me.outlet,me.component,me)}(oe.value),Te=oe.children.map(Ve=>zn(me,Ve));return new ci(Ce,Te)}}function Qn(me){return"object"==typeof me&&null!=me&&!me.outlets&&!me.segmentPath}function kn(me){return"object"==typeof me&&null!=me&&me.outlets}function Mi(me,oe,q,Ce,Te){let Ve={};return Ce&&_e(Ce,(it,bt)=>{Ve[bt]=Array.isArray(it)?it.map(zt=>`${zt}`):`${it}`}),new Lt(q.root===me?oe:Zi(q.root,me,oe),Ve,Te)}function Zi(me,oe,q){const Ce={};return _e(me.children,(Te,Ve)=>{Ce[Ve]=Te===oe?q:Zi(Te,oe,q)}),new Qe(me.segments,Ce)}class Xn{constructor(oe,q,Ce){if(this.isAbsolute=oe,this.numberOfDoubleDots=q,this.commands=Ce,oe&&Ce.length>0&&Qn(Ce[0]))throw new Error("Root segment cannot have matrix parameters");const Te=Ce.find(kn);if(Te&&Te!==U(Ce))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gi{constructor(oe,q,Ce){this.segmentGroup=oe,this.processChildren=q,this.index=Ce}}function Rn(me,oe,q){if(me||(me=new Qe([],{})),0===me.segments.length&&me.hasChildren())return qi(me,oe,q);const Ce=function(me,oe,q){let Ce=0,Te=oe;const Ve={match:!1,pathIndex:0,commandIndex:0};for(;Te=q.length)return Ve;const it=me.segments[Te],bt=q[Ce];if(kn(bt))break;const zt=`${bt}`,vn=Ce0&&void 0===zt)break;if(zt&&vn&&"object"==typeof vn&&void 0===vn.outlets){if(!Gn(zt,vn,it))return Ve;Ce+=2}else{if(!Gn(zt,{},it))return Ve;Ce++}Te++}return{match:!0,pathIndex:Te,commandIndex:Ce}}(me,oe,q),Te=q.slice(Ce.commandIndex);if(Ce.match&&Ce.pathIndex{"string"==typeof Ve&&(Ve=[Ve]),null!==Ve&&(Te[it]=Rn(me.children[it],oe,Ve))}),_e(me.children,(Ve,it)=>{void 0===Ce[it]&&(Te[it]=Ve)}),new Qe(me.segments,Te)}}function Fn(me,oe,q){const Ce=me.segments.slice(0,oe);let Te=0;for(;Te{"string"==typeof q&&(q=[q]),null!==q&&(oe[Ce]=Fn(new Qe([],{}),0,q))}),oe}function mi(me){const oe={};return _e(me,(q,Ce)=>oe[Ce]=`${q}`),oe}function Gn(me,oe,q){return me==q.path&&fe(oe,q.parameters)}class gn{constructor(oe,q,Ce,Te){this.routeReuseStrategy=oe,this.futureState=q,this.currState=Ce,this.forwardEvent=Te}activate(oe){const q=this.futureState._root,Ce=this.currState?this.currState._root:null;this.deactivateChildRoutes(q,Ce,oe),Zt(this.futureState.root),this.activateChildRoutes(q,Ce,oe)}deactivateChildRoutes(oe,q,Ce){const Te=xe(q);oe.children.forEach(Ve=>{const it=Ve.value.outlet;this.deactivateRoutes(Ve,Te[it],Ce),delete Te[it]}),_e(Te,(Ve,it)=>{this.deactivateRouteAndItsChildren(Ve,Ce)})}deactivateRoutes(oe,q,Ce){const Te=oe.value,Ve=q?q.value:null;if(Te===Ve)if(Te.component){const it=Ce.getContext(Te.outlet);it&&this.deactivateChildRoutes(oe,q,it.children)}else this.deactivateChildRoutes(oe,q,Ce);else Ve&&this.deactivateRouteAndItsChildren(q,Ce)}deactivateRouteAndItsChildren(oe,q){oe.value.component&&this.routeReuseStrategy.shouldDetach(oe.value.snapshot)?this.detachAndStoreRouteSubtree(oe,q):this.deactivateRouteAndOutlet(oe,q)}detachAndStoreRouteSubtree(oe,q){const Ce=q.getContext(oe.value.outlet),Te=Ce&&oe.value.component?Ce.children:q,Ve=xe(oe);for(const it of Object.keys(Ve))this.deactivateRouteAndItsChildren(Ve[it],Te);if(Ce&&Ce.outlet){const it=Ce.outlet.detach(),bt=Ce.children.onOutletDeactivated();this.routeReuseStrategy.store(oe.value.snapshot,{componentRef:it,route:oe,contexts:bt})}}deactivateRouteAndOutlet(oe,q){const Ce=q.getContext(oe.value.outlet),Te=Ce&&oe.value.component?Ce.children:q,Ve=xe(oe);for(const it of Object.keys(Ve))this.deactivateRouteAndItsChildren(Ve[it],Te);Ce&&Ce.outlet&&(Ce.outlet.deactivate(),Ce.children.onOutletDeactivated(),Ce.attachRef=null,Ce.resolver=null,Ce.route=null)}activateChildRoutes(oe,q,Ce){const Te=xe(q);oe.children.forEach(Ve=>{this.activateRoutes(Ve,Te[Ve.value.outlet],Ce),this.forwardEvent(new ft(Ve.value.snapshot))}),oe.children.length&&this.forwardEvent(new tt(oe.value.snapshot))}activateRoutes(oe,q,Ce){const Te=oe.value,Ve=q?q.value:null;if(Zt(Te),Te===Ve)if(Te.component){const it=Ce.getOrCreateContext(Te.outlet);this.activateChildRoutes(oe,q,it.children)}else this.activateChildRoutes(oe,q,Ce);else if(Te.component){const it=Ce.getOrCreateContext(Te.outlet);if(this.routeReuseStrategy.shouldAttach(Te.snapshot)){const bt=this.routeReuseStrategy.retrieve(Te.snapshot);this.routeReuseStrategy.store(Te.snapshot,null),it.children.onOutletReAttached(bt.contexts),it.attachRef=bt.componentRef,it.route=bt.route.value,it.outlet&&it.outlet.attach(bt.componentRef,bt.route.value),Zt(bt.route.value),this.activateChildRoutes(oe,null,it.children)}else{const bt=function(me){for(let oe=me.parent;oe;oe=oe.parent){const q=oe.routeConfig;if(q&&q._loadedConfig)return q._loadedConfig;if(q&&q.component)return null}return null}(Te.snapshot),zt=bt?bt.module.componentFactoryResolver:null;it.attachRef=null,it.route=Te,it.resolver=zt,it.outlet&&it.outlet.activateWith(Te,zt),this.activateChildRoutes(oe,null,it.children)}}else this.activateChildRoutes(oe,null,Ce)}}class Sn{constructor(oe,q){this.routes=oe,this.module=q}}function Wn(me){return"function"==typeof me}function Li(me){return me instanceof Lt}const Mr=Symbol("INITIAL_VALUE");function cr(){return(0,g.w)(me=>(0,o.aj)(me.map(oe=>oe.pipe((0,y.q)(1),(0,E.O)(Mr)))).pipe((0,T.R)((oe,q)=>{let Ce=!1;return q.reduce((Te,Ve,it)=>Te!==Mr?Te:(Ve===Mr&&(Ce=!0),Ce||!1!==Ve&&it!==q.length-1&&!Li(Ve)?Te:Ve),oe)},Mr),(0,D.h)(oe=>oe!==Mr),(0,l.U)(oe=>Li(oe)?oe:!0===oe),(0,y.q)(1)))}class $r{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new hr,this.attachRef=null}}class hr{constructor(){this.contexts=new Map}onChildOutletCreated(oe,q){const Ce=this.getOrCreateContext(oe);Ce.outlet=q,this.contexts.set(oe,Ce)}onChildOutletDestroyed(oe){const q=this.getContext(oe);q&&(q.outlet=null,q.attachRef=null)}onOutletDeactivated(){const oe=this.contexts;return this.contexts=new Map,oe}onOutletReAttached(oe){this.contexts=oe}getOrCreateContext(oe){let q=this.getContext(oe);return q||(q=new $r,this.contexts.set(oe,q)),q}getContext(oe){return this.contexts.get(oe)||null}}let qr=(()=>{class me{constructor(q,Ce,Te,Ve,it){this.parentContexts=q,this.location=Ce,this.resolver=Te,this.changeDetector=it,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.attachEvents=new n.EventEmitter,this.detachEvents=new n.EventEmitter,this.name=Ve||yt,q.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const q=this.parentContexts.getContext(this.name);q&&q.route&&(q.attachRef?this.attach(q.attachRef,q.route):this.activateWith(q.route,q.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 q=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(q.instance),q}attach(q,Ce){this.activated=q,this._activatedRoute=Ce,this.location.insert(q.hostView),this.attachEvents.emit(q.instance)}deactivate(){if(this.activated){const q=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(q)}}activateWith(q,Ce){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=q;const it=(Ce=Ce||this.resolver).resolveComponentFactory(q._futureSnapshot.routeConfig.component),bt=this.parentContexts.getOrCreateContext(this.name).children,zt=new ir(q,bt,this.location.injector);this.activated=this.location.createComponent(it,this.location.length,zt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(hr),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275injectAttribute("name"),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),me})();class ir{constructor(oe,q,Ce){this.route=oe,this.childContexts=q,this.parent=Ce}get(oe,q){return oe===B?this.route:oe===hr?this.childContexts:this.parent.get(oe,q)}}let Cr=(()=>{class me{}return me.\u0275fac=function(q){return new(q||me)},me.\u0275cmp=n.\u0275\u0275defineComponent({type:me,selectors:[["ng-component"]],decls:1,vars:0,template:function(q,Ce){1&q&&n.\u0275\u0275element(0,"router-outlet")},directives:[qr],encapsulation:2}),me})();function Sr(me,oe=""){for(let q=0;qWi(Ce)===oe);return q.push(...me.filter(Ce=>Wi(Ce)!==oe)),q}const Rr={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Dr(me,oe,q){var Ce;if(""===oe.path)return"full"===oe.pathMatch&&(me.hasChildren()||q.length>0)?Object.assign({},Rr):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ve=(oe.matcher||Et)(q,me,oe);if(!Ve)return Object.assign({},Rr);const it={};_e(Ve.posParams,(zt,vn)=>{it[vn]=zt.path});const bt=Ve.consumed.length>0?Object.assign(Object.assign({},it),Ve.consumed[Ve.consumed.length-1].parameters):it;return{matched:!0,consumedSegments:Ve.consumed,lastChild:Ve.consumed.length,parameters:bt,positionalParamSegments:null!==(Ce=Ve.posParams)&&void 0!==Ce?Ce:{}}}function Lr(me,oe,q,Ce,Te="corrected"){if(q.length>0&&function(me,oe,q){return q.some(Ce=>Jr(me,oe,Ce)&&Wi(Ce)!==yt)}(me,q,Ce)){const it=new Qe(oe,function(me,oe,q,Ce){const Te={};Te[yt]=Ce,Ce._sourceSegment=me,Ce._segmentIndexShift=oe.length;for(const Ve of q)if(""===Ve.path&&Wi(Ve)!==yt){const it=new Qe([],{});it._sourceSegment=me,it._segmentIndexShift=oe.length,Te[Wi(Ve)]=it}return Te}(me,oe,Ce,new Qe(q,me.children)));return it._sourceSegment=me,it._segmentIndexShift=oe.length,{segmentGroup:it,slicedSegments:[]}}if(0===q.length&&function(me,oe,q){return q.some(Ce=>Jr(me,oe,Ce))}(me,q,Ce)){const it=new Qe(me.segments,function(me,oe,q,Ce,Te,Ve){const it={};for(const bt of Ce)if(Jr(me,q,bt)&&!Te[Wi(bt)]){const zt=new Qe([],{});zt._sourceSegment=me,zt._segmentIndexShift="legacy"===Ve?me.segments.length:oe.length,it[Wi(bt)]=zt}return Object.assign(Object.assign({},Te),it)}(me,oe,q,Ce,me.children,Te));return it._sourceSegment=me,it._segmentIndexShift=oe.length,{segmentGroup:it,slicedSegments:q}}const Ve=new Qe(me.segments,me.children);return Ve._sourceSegment=me,Ve._segmentIndexShift=oe.length,{segmentGroup:Ve,slicedSegments:q}}function Jr(me,oe,q){return(!(me.hasChildren()||oe.length>0)||"full"!==q.pathMatch)&&""===q.path}function Tr(me,oe,q,Ce){return!!(Wi(me)===Ce||Ce!==yt&&Jr(oe,q,me))&&("**"===me.path||Dr(oe,me,q).matched)}function us(me,oe,q){return 0===oe.length&&!me.children[q]}class si{constructor(oe){this.segmentGroup=oe||null}}class zr{constructor(oe){this.urlTree=oe}}function Er(me){return new d.y(oe=>oe.error(new si(me)))}function be(me){return new d.y(oe=>oe.error(new zr(me)))}function X(me){return new d.y(oe=>oe.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${me}'`)))}class ve{constructor(oe,q,Ce,Te,Ve){this.configLoader=q,this.urlSerializer=Ce,this.urlTree=Te,this.config=Ve,this.allowRedirects=!0,this.ngModule=oe.get(n.NgModuleRef)}apply(){const oe=Lr(this.urlTree.root,[],[],this.config).segmentGroup,q=new Qe(oe.segments,oe.children);return this.expandSegmentGroup(this.ngModule,this.config,q,yt).pipe((0,l.U)(Ve=>this.createUrlTree(Nt(Ve),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,O.K)(Ve=>{if(Ve instanceof zr)return this.allowRedirects=!1,this.match(Ve.urlTree);throw Ve instanceof si?this.noMatchError(Ve):Ve}))}match(oe){return this.expandSegmentGroup(this.ngModule,this.config,oe.root,yt).pipe((0,l.U)(Te=>this.createUrlTree(Nt(Te),oe.queryParams,oe.fragment))).pipe((0,O.K)(Te=>{throw Te instanceof si?this.noMatchError(Te):Te}))}noMatchError(oe){return new Error(`Cannot match any routes. URL Segment: '${oe.segmentGroup}'`)}createUrlTree(oe,q,Ce){const Te=oe.segments.length>0?new Qe([],{[yt]:oe}):oe;return new Lt(Te,q,Ce)}expandSegmentGroup(oe,q,Ce,Te){return 0===Ce.segments.length&&Ce.hasChildren()?this.expandChildren(oe,q,Ce).pipe((0,l.U)(Ve=>new Qe([],Ve))):this.expandSegment(oe,Ce,q,Ce.segments,Te,!0)}expandChildren(oe,q,Ce){const Te=[];for(const Ve of Object.keys(Ce.children))"primary"===Ve?Te.unshift(Ve):Te.push(Ve);return(0,f.D)(Te).pipe((0,w.b)(Ve=>{const it=Ce.children[Ve],bt=Wr(q,Ve);return this.expandSegmentGroup(oe,bt,it,Ve).pipe((0,l.U)(zt=>({segment:zt,outlet:Ve})))}),(0,T.R)((Ve,it)=>(Ve[it.outlet]=it.segment,Ve),{}),(0,A.Z)())}expandSegment(oe,q,Ce,Te,Ve,it){return(0,f.D)(Ce).pipe((0,w.b)(bt=>this.expandSegmentAgainstRoute(oe,q,Ce,bt,Te,Ve,it).pipe((0,O.K)(vn=>{if(vn instanceof si)return(0,v.of)(null);throw vn}))),(0,S.P)(bt=>!!bt),(0,O.K)((bt,zt)=>{if(bt instanceof u.K||"EmptyError"===bt.name){if(us(q,Te,Ve))return(0,v.of)(new Qe([],{}));throw new si(q)}throw bt}))}expandSegmentAgainstRoute(oe,q,Ce,Te,Ve,it,bt){return Tr(Te,q,Ve,it)?void 0===Te.redirectTo?this.matchSegmentAgainstRoute(oe,q,Te,Ve,it):bt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(oe,q,Ce,Te,Ve,it):Er(q):Er(q)}expandSegmentAgainstRouteUsingRedirect(oe,q,Ce,Te,Ve,it){return"**"===Te.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(oe,Ce,Te,it):this.expandRegularSegmentAgainstRouteUsingRedirect(oe,q,Ce,Te,Ve,it)}expandWildCardWithParamsAgainstRouteUsingRedirect(oe,q,Ce,Te){const Ve=this.applyRedirectCommands([],Ce.redirectTo,{});return Ce.redirectTo.startsWith("/")?be(Ve):this.lineralizeSegments(Ce,Ve).pipe((0,M.zg)(it=>{const bt=new Qe(it,{});return this.expandSegment(oe,bt,q,it,Te,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(oe,q,Ce,Te,Ve,it){const{matched:bt,consumedSegments:zt,lastChild:vn,positionalParamSegments:fi}=Dr(q,Te,Ve);if(!bt)return Er(q);const Dn=this.applyRedirectCommands(zt,Te.redirectTo,fi);return Te.redirectTo.startsWith("/")?be(Dn):this.lineralizeSegments(Te,Dn).pipe((0,M.zg)(vi=>this.expandSegment(oe,q,Ce,vi.concat(Ve.slice(vn)),it,!1)))}matchSegmentAgainstRoute(oe,q,Ce,Te,Ve){if("**"===Ce.path)return Ce.loadChildren?(Ce._loadedConfig?(0,v.of)(Ce._loadedConfig):this.configLoader.load(oe.injector,Ce)).pipe((0,l.U)(vi=>(Ce._loadedConfig=vi,new Qe(Te,{})))):(0,v.of)(new Qe(Te,{}));const{matched:it,consumedSegments:bt,lastChild:zt}=Dr(q,Ce,Te);if(!it)return Er(q);const vn=Te.slice(zt);return this.getChildConfig(oe,Ce,Te).pipe((0,M.zg)(Dn=>{const vi=Dn.module,Di=Dn.routes,{segmentGroup:hs,slicedSegments:Gr}=Lr(q,bt,vn,Di),fs=new Qe(hs.segments,hs.children);if(0===Gr.length&&fs.hasChildren())return this.expandChildren(vi,Di,fs).pipe((0,l.U)(Rs=>new Qe(bt,Rs)));if(0===Di.length&&0===Gr.length)return(0,v.of)(new Qe(bt,{}));const ps=Wi(Ce)===Ve;return this.expandSegment(vi,fs,Di,Gr,ps?yt:Ve,!0).pipe((0,l.U)(ss=>new Qe(bt.concat(ss.segments),ss.children)))}))}getChildConfig(oe,q,Ce){return q.children?(0,v.of)(new Sn(q.children,oe)):q.loadChildren?void 0!==q._loadedConfig?(0,v.of)(q._loadedConfig):this.runCanLoadGuards(oe.injector,q,Ce).pipe((0,M.zg)(Te=>{return Te?this.configLoader.load(oe.injector,q).pipe((0,l.U)(Ve=>(q._loadedConfig=Ve,Ve))):(me=q,new d.y(oe=>oe.error(Tt(`Cannot load children because the guard of the route "path: '${me.path}'" returned false`))));var me})):(0,v.of)(new Sn([],oe))}runCanLoadGuards(oe,q,Ce){const Te=q.canLoad;if(!Te||0===Te.length)return(0,v.of)(!0);const Ve=Te.map(it=>{const bt=oe.get(it);let zt;if((me=bt)&&Wn(me.canLoad))zt=bt.canLoad(q,Ce);else{if(!Wn(bt))throw new Error("Invalid CanLoad guard");zt=bt(q,Ce)}var me;return Be(zt)});return(0,v.of)(Ve).pipe(cr(),(0,I.b)(it=>{if(!Li(it))return;const bt=Tt(`Redirecting to "${this.urlSerializer.serialize(it)}"`);throw bt.url=it,bt}),(0,l.U)(it=>!0===it))}lineralizeSegments(oe,q){let Ce=[],Te=q.root;for(;;){if(Ce=Ce.concat(Te.segments),0===Te.numberOfChildren)return(0,v.of)(Ce);if(Te.numberOfChildren>1||!Te.children[yt])return X(oe.redirectTo);Te=Te.children[yt]}}applyRedirectCommands(oe,q,Ce){return this.applyRedirectCreatreUrlTree(q,this.urlSerializer.parse(q),oe,Ce)}applyRedirectCreatreUrlTree(oe,q,Ce,Te){const Ve=this.createSegmentGroup(oe,q.root,Ce,Te);return new Lt(Ve,this.createQueryParams(q.queryParams,this.urlTree.queryParams),q.fragment)}createQueryParams(oe,q){const Ce={};return _e(oe,(Te,Ve)=>{if("string"==typeof Te&&Te.startsWith(":")){const bt=Te.substring(1);Ce[Ve]=q[bt]}else Ce[Ve]=Te}),Ce}createSegmentGroup(oe,q,Ce,Te){const Ve=this.createSegments(oe,q.segments,Ce,Te);let it={};return _e(q.children,(bt,zt)=>{it[zt]=this.createSegmentGroup(oe,bt,Ce,Te)}),new Qe(Ve,it)}createSegments(oe,q,Ce,Te){return q.map(Ve=>Ve.path.startsWith(":")?this.findPosParam(oe,Ve,Te):this.findOrReturn(Ve,Ce))}findPosParam(oe,q,Ce){const Te=Ce[q.path.substring(1)];if(!Te)throw new Error(`Cannot redirect to '${oe}'. Cannot find '${q.path}'.`);return Te}findOrReturn(oe,q){let Ce=0;for(const Te of q){if(Te.path===oe.path)return q.splice(Ce),Te;Ce++}return oe}}function Nt(me){const oe={};for(const Ce of Object.keys(me.children)){const Ve=Nt(me.children[Ce]);(Ve.segments.length>0||Ve.hasChildren())&&(oe[Ce]=Ve)}return function(me){if(1===me.numberOfChildren&&me.children[yt]){const oe=me.children[yt];return new Qe(me.segments.concat(oe.segments),oe.children)}return me}(new Qe(me.segments,oe))}class In{constructor(oe){this.path=oe,this.route=this.path[this.path.length-1]}}class ni{constructor(oe,q){this.component=oe,this.route=q}}function di(me,oe,q){const Ce=me._root;return ki(Ce,oe?oe._root:null,q,[Ce.value])}function hi(me,oe,q){const Ce=function(me){if(!me)return null;for(let oe=me.parent;oe;oe=oe.parent){const q=oe.routeConfig;if(q&&q._loadedConfig)return q._loadedConfig}return null}(oe);return(Ce?Ce.module.injector:q).get(me)}function ki(me,oe,q,Ce,Te={canDeactivateChecks:[],canActivateChecks:[]}){const Ve=xe(oe);return me.children.forEach(it=>{(function(me,oe,q,Ce,Te={canDeactivateChecks:[],canActivateChecks:[]}){const Ve=me.value,it=oe?oe.value:null,bt=q?q.getContext(me.value.outlet):null;if(it&&Ve.routeConfig===it.routeConfig){const zt=function(me,oe,q){if("function"==typeof q)return q(me,oe);switch(q){case"pathParamsChange":return!qt(me.url,oe.url);case"pathParamsOrQueryParamsChange":return!qt(me.url,oe.url)||!fe(me.queryParams,oe.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!an(me,oe)||!fe(me.queryParams,oe.queryParams);default:return!an(me,oe)}}(it,Ve,Ve.routeConfig.runGuardsAndResolvers);zt?Te.canActivateChecks.push(new In(Ce)):(Ve.data=it.data,Ve._resolvedData=it._resolvedData),ki(me,oe,Ve.component?bt?bt.children:null:q,Ce,Te),zt&&bt&&bt.outlet&&bt.outlet.isActivated&&Te.canDeactivateChecks.push(new ni(bt.outlet.component,it))}else it&&rr(oe,bt,Te),Te.canActivateChecks.push(new In(Ce)),ki(me,null,Ve.component?bt?bt.children:null:q,Ce,Te)})(it,Ve[it.value.outlet],q,Ce.concat([it.value]),Te),delete Ve[it.value.outlet]}),_e(Ve,(it,bt)=>rr(it,q.getContext(bt),Te)),Te}function rr(me,oe,q){const Ce=xe(me),Te=me.value;_e(Ce,(Ve,it)=>{rr(Ve,Te.component?oe?oe.children.getContext(it):null:oe,q)}),q.canDeactivateChecks.push(new ni(Te.component&&oe&&oe.outlet&&oe.outlet.isActivated?oe.outlet.component:null,Te))}class pe{}function Ae(me){return new d.y(oe=>oe.error(me))}class rt{constructor(oe,q,Ce,Te,Ve,it){this.rootComponentType=oe,this.config=q,this.urlTree=Ce,this.url=Te,this.paramsInheritanceStrategy=Ve,this.relativeLinkResolution=it}recognize(){const oe=Lr(this.urlTree.root,[],[],this.config.filter(it=>void 0===it.redirectTo),this.relativeLinkResolution).segmentGroup,q=this.processSegmentGroup(this.config,oe,yt);if(null===q)return null;const Ce=new Xe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},yt,this.rootComponentType,null,this.urlTree.root,-1,{}),Te=new ci(Ce,q),Ve=new Wt(this.url,Te);return this.inheritParamsAndData(Ve._root),Ve}inheritParamsAndData(oe){const q=oe.value,Ce=de(q,this.paramsInheritanceStrategy);q.params=Object.freeze(Ce.params),q.data=Object.freeze(Ce.data),oe.children.forEach(Te=>this.inheritParamsAndData(Te))}processSegmentGroup(oe,q,Ce){return 0===q.segments.length&&q.hasChildren()?this.processChildren(oe,q):this.processSegment(oe,q,q.segments,Ce)}processChildren(oe,q){const Ce=[];for(const Ve of Object.keys(q.children)){const it=q.children[Ve],bt=Wr(oe,Ve),zt=this.processSegmentGroup(bt,it,Ve);if(null===zt)return null;Ce.push(...zt)}const Te=rn(Ce);return Te.sort((oe,q)=>oe.value.outlet===yt?-1:q.value.outlet===yt?1:oe.value.outlet.localeCompare(q.value.outlet)),Te}processSegment(oe,q,Ce,Te){for(const Ve of oe){const it=this.processSegmentAgainstRoute(Ve,q,Ce,Te);if(null!==it)return it}return us(q,Ce,Te)?[]:null}processSegmentAgainstRoute(oe,q,Ce,Te){if(oe.redirectTo||!Tr(oe,q,Ce,Te))return null;let Ve,it=[],bt=[];if("**"===oe.path){const Di=Ce.length>0?U(Ce).parameters:{};Ve=new Xe(Ce,Di,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(oe),Wi(oe),oe.component,oe,Pn(q),Ln(q)+Ce.length,Bn(oe))}else{const Di=Dr(q,oe,Ce);if(!Di.matched)return null;it=Di.consumedSegments,bt=Ce.slice(Di.lastChild),Ve=new Xe(it,Di.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(oe),Wi(oe),oe.component,oe,Pn(q),Ln(q)+it.length,Bn(oe))}const zt=(me=oe).children?me.children:me.loadChildren?me._loadedConfig.routes:[],{segmentGroup:vn,slicedSegments:fi}=Lr(q,it,bt,zt.filter(Di=>void 0===Di.redirectTo),this.relativeLinkResolution);var me;if(0===fi.length&&vn.hasChildren()){const Di=this.processChildren(zt,vn);return null===Di?null:[new ci(Ve,Di)]}if(0===zt.length&&0===fi.length)return[new ci(Ve,[])];const Dn=Wi(oe)===Te,vi=this.processSegment(zt,vn,fi,Dn?yt:Te);return null===vi?null:[new ci(Ve,vi)]}}function Gt(me){const oe=me.value.routeConfig;return oe&&""===oe.path&&void 0===oe.redirectTo}function rn(me){const oe=[],q=new Set;for(const Ce of me){if(!Gt(Ce)){oe.push(Ce);continue}const Te=oe.find(Ve=>Ce.value.routeConfig===Ve.value.routeConfig);void 0!==Te?(Te.children.push(...Ce.children),q.add(Te)):oe.push(Ce)}for(const Ce of q){const Te=rn(Ce.children);oe.push(new ci(Ce.value,Te))}return oe.filter(Ce=>!q.has(Ce))}function Pn(me){let oe=me;for(;oe._sourceSegment;)oe=oe._sourceSegment;return oe}function Ln(me){let oe=me,q=oe._segmentIndexShift?oe._segmentIndexShift:0;for(;oe._sourceSegment;)oe=oe._sourceSegment,q+=oe._segmentIndexShift?oe._segmentIndexShift:0;return q-1}function _n(me){return me.data||{}}function Bn(me){return me.resolve||{}}function Nr(me){return(0,g.w)(oe=>{const q=me(oe);return q?(0,f.D)(q).pipe((0,l.U)(()=>oe)):(0,v.of)(oe)})}class fr{}class Xi{shouldDetach(oe){return!1}store(oe,q){}shouldAttach(oe){return!1}retrieve(oe){return null}shouldReuseRoute(oe,q){return oe.routeConfig===q.routeConfig}}class gr extends Xi{}const zi=new n.InjectionToken("ROUTES");class Pr{constructor(oe,q,Ce,Te){this.injector=oe,this.compiler=q,this.onLoadStartListener=Ce,this.onLoadEndListener=Te}load(oe,q){if(q._loader$)return q._loader$;this.onLoadStartListener&&this.onLoadStartListener(q);const Te=this.loadModuleFactory(q.loadChildren).pipe((0,l.U)(Ve=>{this.onLoadEndListener&&this.onLoadEndListener(q);const it=Ve.create(oe);return new Sn(x(it.injector.get(zi,void 0,n.InjectFlags.Self|n.InjectFlags.Optional)).map(jr),it)}),(0,O.K)(Ve=>{throw q._loader$=void 0,Ve}));return q._loader$=new i.c(Te,()=>new c.xQ).pipe((0,L.x)()),q._loader$}loadModuleFactory(oe){return Be(oe()).pipe((0,M.zg)(q=>q instanceof n.NgModuleFactory?(0,v.of)(q):(0,f.D)(this.compiler.compileModuleAsync(q))))}}class ys{}class Yi{shouldProcessUrl(oe){return!0}extract(oe){return oe}merge(oe,q){return oe}}function Ur(me){throw me}function bs(me,oe,q){return oe.parse("/")}function Cs(me,oe){return(0,v.of)(null)}const mn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Mn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let En=(()=>{class me{constructor(q,Ce,Te,Ve,it,bt,zt){this.rootComponentType=q,this.urlSerializer=Ce,this.rootContexts=Te,this.location=Ve,this.config=zt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new c.xQ,this.errorHandler=Ur,this.malformedUriErrorHandler=bs,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Cs,afterPreactivation:Cs},this.urlHandlingStrategy=new Yi,this.routeReuseStrategy=new gr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=it.get(n.NgModuleRef),this.console=it.get(n.\u0275Console);const Dn=it.get(n.NgZone);this.isNgZoneEnabled=Dn instanceof n.NgZone&&n.NgZone.isInAngularZone(),this.resetConfig(zt),this.currentUrlTree=new Lt(new Qe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pr(it,bt,vi=>this.triggerEvent(new Je(vi)),vi=>this.triggerEvent(new gt(vi))),this.routerState=ue(this.currentUrlTree,this.rootComponentType),this.transitions=new m.X({id:0,targetPageId: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()}get browserPageId(){var q;return null===(q=this.location.getState())||void 0===q?void 0:q.\u0275routerPageId}setupNavigations(q){const Ce=this.events;return q.pipe((0,D.h)(Te=>0!==Te.id),(0,l.U)(Te=>Object.assign(Object.assign({},Te),{extractedUrl:this.urlHandlingStrategy.extract(Te.rawUrl)})),(0,g.w)(Te=>{let Ve=!1,it=!1;return(0,v.of)(Te).pipe((0,I.b)(bt=>{this.currentNavigation={id:bt.id,initialUrl:bt.currentRawUrl,extractedUrl:bt.extractedUrl,trigger:bt.source,extras:bt.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,g.w)(bt=>{const zt=this.browserUrlTree.toString(),vn=!this.navigated||bt.extractedUrl.toString()!==zt||zt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||vn)&&this.urlHandlingStrategy.shouldProcessUrl(bt.rawUrl))return ii(bt.source)&&(this.browserUrlTree=bt.extractedUrl),(0,v.of)(bt).pipe((0,g.w)(Dn=>{const vi=this.transitions.getValue();return Ce.next(new te(Dn.id,this.serializeUrl(Dn.extractedUrl),Dn.source,Dn.restoredState)),vi!==this.transitions.getValue()?s.E:Promise.resolve(Dn)}),function(me,oe,q,Ce){return(0,g.w)(Te=>function(me,oe,q,Ce,Te){return new ve(me,oe,q,Ce,Te).apply()}(me,oe,q,Te.extractedUrl,Ce).pipe((0,l.U)(Ve=>Object.assign(Object.assign({},Te),{urlAfterRedirects:Ve}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,I.b)(Dn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Dn.urlAfterRedirects})}),function(me,oe,q,Ce,Te){return(0,M.zg)(Ve=>function(me,oe,q,Ce,Te="emptyOnly",Ve="legacy"){try{const it=new rt(me,oe,q,Ce,Te,Ve).recognize();return null===it?Ae(new pe):(0,v.of)(it)}catch(it){return Ae(it)}}(me,oe,Ve.urlAfterRedirects,q(Ve.urlAfterRedirects),Ce,Te).pipe((0,l.U)(it=>Object.assign(Object.assign({},Ve),{targetSnapshot:it}))))}(this.rootComponentType,this.config,Dn=>this.serializeUrl(Dn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,I.b)(Dn=>{if("eager"===this.urlUpdateStrategy){if(!Dn.extras.skipLocationChange){const Di=this.urlHandlingStrategy.merge(Dn.urlAfterRedirects,Dn.rawUrl);this.setBrowserUrl(Di,Dn)}this.browserUrlTree=Dn.urlAfterRedirects}const vi=new ae(Dn.id,this.serializeUrl(Dn.extractedUrl),this.serializeUrl(Dn.urlAfterRedirects),Dn.targetSnapshot);Ce.next(vi)}));if(vn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:vi,extractedUrl:Di,source:hs,restoredState:Gr,extras:fs}=bt,ps=new te(vi,this.serializeUrl(Di),hs,Gr);Ce.next(ps);const eo=ue(Di,this.rootComponentType).snapshot;return(0,v.of)(Object.assign(Object.assign({},bt),{targetSnapshot:eo,urlAfterRedirects:Di,extras:Object.assign(Object.assign({},fs),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=bt.rawUrl,bt.resolve(null),s.E}),Nr(bt=>{const{targetSnapshot:zt,id:vn,extractedUrl:fi,rawUrl:Dn,extras:{skipLocationChange:vi,replaceUrl:Di}}=bt;return this.hooks.beforePreactivation(zt,{navigationId:vn,appliedUrlTree:fi,rawUrlTree:Dn,skipLocationChange:!!vi,replaceUrl:!!Di})}),(0,I.b)(bt=>{const zt=new le(bt.id,this.serializeUrl(bt.extractedUrl),this.serializeUrl(bt.urlAfterRedirects),bt.targetSnapshot);this.triggerEvent(zt)}),(0,l.U)(bt=>Object.assign(Object.assign({},bt),{guards:di(bt.targetSnapshot,bt.currentSnapshot,this.rootContexts)})),function(me,oe){return(0,M.zg)(q=>{const{targetSnapshot:Ce,currentSnapshot:Te,guards:{canActivateChecks:Ve,canDeactivateChecks:it}}=q;return 0===it.length&&0===Ve.length?(0,v.of)(Object.assign(Object.assign({},q),{guardsResult:!0})):function(me,oe,q,Ce){return(0,f.D)(me).pipe((0,M.zg)(Te=>function(me,oe,q,Ce,Te){const Ve=oe&&oe.routeConfig?oe.routeConfig.canDeactivate:null;if(!Ve||0===Ve.length)return(0,v.of)(!0);const it=Ve.map(bt=>{const zt=hi(bt,oe,Te);let vn;if(function(me){return me&&Wn(me.canDeactivate)}(zt))vn=Be(zt.canDeactivate(me,oe,q,Ce));else{if(!Wn(zt))throw new Error("Invalid CanDeactivate guard");vn=Be(zt(me,oe,q,Ce))}return vn.pipe((0,S.P)())});return(0,v.of)(it).pipe(cr())}(Te.component,Te.route,q,oe,Ce)),(0,S.P)(Te=>!0!==Te,!0))}(it,Ce,Te,me).pipe((0,M.zg)(bt=>bt&&function(me){return"boolean"==typeof me}(bt)?function(me,oe,q,Ce){return(0,f.D)(oe).pipe((0,w.b)(Te=>(0,h.z)(function(me,oe){return null!==me&&oe&&oe(new Ue(me)),(0,v.of)(!0)}(Te.route.parent,Ce),function(me,oe){return null!==me&&oe&&oe(new at(me)),(0,v.of)(!0)}(Te.route,Ce),function(me,oe,q){const Ce=oe[oe.length-1],Ve=oe.slice(0,oe.length-1).reverse().map(it=>function(me){const oe=me.routeConfig?me.routeConfig.canActivateChild:null;return oe&&0!==oe.length?{node:me,guards:oe}:null}(it)).filter(it=>null!==it).map(it=>(0,r.P)(()=>{const bt=it.guards.map(zt=>{const vn=hi(zt,it.node,q);let fi;if(function(me){return me&&Wn(me.canActivateChild)}(vn))fi=Be(vn.canActivateChild(Ce,me));else{if(!Wn(vn))throw new Error("Invalid CanActivateChild guard");fi=Be(vn(Ce,me))}return fi.pipe((0,S.P)())});return(0,v.of)(bt).pipe(cr())}));return(0,v.of)(Ve).pipe(cr())}(me,Te.path,q),function(me,oe,q){const Ce=oe.routeConfig?oe.routeConfig.canActivate:null;if(!Ce||0===Ce.length)return(0,v.of)(!0);const Te=Ce.map(Ve=>(0,r.P)(()=>{const it=hi(Ve,oe,q);let bt;if(function(me){return me&&Wn(me.canActivate)}(it))bt=Be(it.canActivate(oe,me));else{if(!Wn(it))throw new Error("Invalid CanActivate guard");bt=Be(it(oe,me))}return bt.pipe((0,S.P)())}));return(0,v.of)(Te).pipe(cr())}(me,Te.route,q))),(0,S.P)(Te=>!0!==Te,!0))}(Ce,Ve,me,oe):(0,v.of)(bt)),(0,l.U)(bt=>Object.assign(Object.assign({},q),{guardsResult:bt})))})}(this.ngModule.injector,bt=>this.triggerEvent(bt)),(0,I.b)(bt=>{if(Li(bt.guardsResult)){const vn=Tt(`Redirecting to "${this.serializeUrl(bt.guardsResult)}"`);throw vn.url=bt.guardsResult,vn}const zt=new Oe(bt.id,this.serializeUrl(bt.extractedUrl),this.serializeUrl(bt.urlAfterRedirects),bt.targetSnapshot,!!bt.guardsResult);this.triggerEvent(zt)}),(0,D.h)(bt=>!!bt.guardsResult||(this.restoreHistory(bt),this.cancelNavigationTransition(bt,""),!1)),Nr(bt=>{if(bt.guards.canActivateChecks.length)return(0,v.of)(bt).pipe((0,I.b)(zt=>{const vn=new Le(zt.id,this.serializeUrl(zt.extractedUrl),this.serializeUrl(zt.urlAfterRedirects),zt.targetSnapshot);this.triggerEvent(vn)}),(0,g.w)(zt=>{let vn=!1;return(0,v.of)(zt).pipe(function(me,oe){return(0,M.zg)(q=>{const{targetSnapshot:Ce,guards:{canActivateChecks:Te}}=q;if(!Te.length)return(0,v.of)(q);let Ve=0;return(0,f.D)(Te).pipe((0,w.b)(it=>function(me,oe,q,Ce){return function(me,oe,q,Ce){const Te=Object.keys(me);if(0===Te.length)return(0,v.of)({});const Ve={};return(0,f.D)(Te).pipe((0,M.zg)(it=>function(me,oe,q,Ce){const Te=hi(me,oe,Ce);return Be(Te.resolve?Te.resolve(oe,q):Te(oe,q))}(me[it],oe,q,Ce).pipe((0,I.b)(bt=>{Ve[it]=bt}))),(0,b.h)(1),(0,M.zg)(()=>Object.keys(Ve).length===Te.length?(0,v.of)(Ve):s.E))}(me._resolve,me,oe,Ce).pipe((0,l.U)(Ve=>(me._resolvedData=Ve,me.data=Object.assign(Object.assign({},me.data),de(me,q).resolve),null)))}(it.route,Ce,me,oe)),(0,I.b)(()=>Ve++),(0,b.h)(1),(0,M.zg)(it=>Ve===Te.length?(0,v.of)(q):s.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,I.b)({next:()=>vn=!0,complete:()=>{vn||(this.restoreHistory(zt),this.cancelNavigationTransition(zt,"At least one route resolver didn't emit any value."))}}))}),(0,I.b)(zt=>{const vn=new Ye(zt.id,this.serializeUrl(zt.extractedUrl),this.serializeUrl(zt.urlAfterRedirects),zt.targetSnapshot);this.triggerEvent(vn)}))}),Nr(bt=>{const{targetSnapshot:zt,id:vn,extractedUrl:fi,rawUrl:Dn,extras:{skipLocationChange:vi,replaceUrl:Di}}=bt;return this.hooks.afterPreactivation(zt,{navigationId:vn,appliedUrlTree:fi,rawUrlTree:Dn,skipLocationChange:!!vi,replaceUrl:!!Di})}),(0,l.U)(bt=>{const zt=function(me,oe,q){const Ce=zn(me,oe._root,q?q._root:void 0);return new Ze(Ce,oe)}(this.routeReuseStrategy,bt.targetSnapshot,bt.currentRouterState);return Object.assign(Object.assign({},bt),{targetRouterState:zt})}),(0,I.b)(bt=>{this.currentUrlTree=bt.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(bt.urlAfterRedirects,bt.rawUrl),this.routerState=bt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(bt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,bt),this.browserUrlTree=bt.urlAfterRedirects)}),((me,oe,q)=>(0,l.U)(Ce=>(new gn(oe,Ce.targetRouterState,Ce.currentRouterState,q).activate(me),Ce)))(this.rootContexts,this.routeReuseStrategy,bt=>this.triggerEvent(bt)),(0,I.b)({next(){Ve=!0},complete(){Ve=!0}}),(0,F.x)(()=>{var bt;Ve||it||this.cancelNavigationTransition(Te,`Navigation ID ${Te.id} is not equal to the current navigation id ${this.navigationId}`),(null===(bt=this.currentNavigation)||void 0===bt?void 0:bt.id)===Te.id&&(this.currentNavigation=null)}),(0,O.K)(bt=>{if(it=!0,function(me){return me&&me[At]}(bt)){const zt=Li(bt.url);zt||(this.navigated=!0,this.restoreHistory(Te,!0));const vn=new J(Te.id,this.serializeUrl(Te.extractedUrl),bt.message);Ce.next(vn),zt?setTimeout(()=>{const fi=this.urlHandlingStrategy.merge(bt.url,this.rawUrlTree),Dn={skipLocationChange:Te.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ii(Te.source)};this.scheduleNavigation(fi,"imperative",null,Dn,{resolve:Te.resolve,reject:Te.reject,promise:Te.promise})},0):Te.resolve(!1)}else{this.restoreHistory(Te,!0);const zt=new ie(Te.id,this.serializeUrl(Te.extractedUrl),bt);Ce.next(zt);try{Te.resolve(this.errorHandler(bt))}catch(vn){Te.reject(vn)}}return s.E}))}))}resetRootComponentType(q){this.rootComponentType=q,this.routerState.root.component=this.rootComponentType}setTransition(q){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),q))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(q=>{const Ce="popstate"===q.type?"popstate":"hashchange";"popstate"===Ce&&setTimeout(()=>{var Te;const Ve={replaceUrl:!0},it=(null===(Te=q.state)||void 0===Te?void 0:Te.navigationId)?q.state:null;if(it){const zt=Object.assign({},it);delete zt.navigationId,delete zt.\u0275routerPageId,0!==Object.keys(zt).length&&(Ve.state=zt)}const bt=this.parseUrl(q.url);this.scheduleNavigation(bt,Ce,it,Ve)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(q){this.events.next(q)}resetConfig(q){Sr(q),this.config=q.map(jr),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(q,Ce={}){const{relativeTo:Te,queryParams:Ve,fragment:it,queryParamsHandling:bt,preserveFragment:zt}=Ce,vn=Te||this.routerState.root,fi=zt?this.currentUrlTree.fragment:it;let Dn=null;switch(bt){case"merge":Dn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ve);break;case"preserve":Dn=this.currentUrlTree.queryParams;break;default:Dn=Ve||null}return null!==Dn&&(Dn=this.removeEmptyProps(Dn)),function(me,oe,q,Ce,Te){if(0===q.length)return Mi(oe.root,oe.root,oe,Ce,Te);const Ve=function(me){if("string"==typeof me[0]&&1===me.length&&"/"===me[0])return new Xn(!0,0,me);let oe=0,q=!1;const Ce=me.reduce((Te,Ve,it)=>{if("object"==typeof Ve&&null!=Ve){if(Ve.outlets){const bt={};return _e(Ve.outlets,(zt,vn)=>{bt[vn]="string"==typeof zt?zt.split("/"):zt}),[...Te,{outlets:bt}]}if(Ve.segmentPath)return[...Te,Ve.segmentPath]}return"string"!=typeof Ve?[...Te,Ve]:0===it?(Ve.split("/").forEach((bt,zt)=>{0==zt&&"."===bt||(0==zt&&""===bt?q=!0:".."===bt?oe++:""!=bt&&Te.push(bt))}),Te):[...Te,Ve]},[]);return new Xn(q,oe,Ce)}(q);if(Ve.toRoot())return Mi(oe.root,new Qe([],{}),oe,Ce,Te);const it=function(me,oe,q){if(me.isAbsolute)return new Gi(oe.root,!0,0);if(-1===q.snapshot._lastPathIndex){const Ve=q.snapshot._urlSegment;return new Gi(Ve,Ve===oe.root,0)}const Ce=Qn(me.commands[0])?0:1;return function(me,oe,q){let Ce=me,Te=oe,Ve=q;for(;Ve>Te;){if(Ve-=Te,Ce=Ce.parent,!Ce)throw new Error("Invalid number of '../'");Te=Ce.segments.length}return new Gi(Ce,!1,Te-Ve)}(q.snapshot._urlSegment,q.snapshot._lastPathIndex+Ce,me.numberOfDoubleDots)}(Ve,oe,me),bt=it.processChildren?qi(it.segmentGroup,it.index,Ve.commands):Rn(it.segmentGroup,it.index,Ve.commands);return Mi(it.segmentGroup,bt,oe,Ce,Te)}(vn,this.currentUrlTree,q,Dn,null!=fi?fi:null)}navigateByUrl(q,Ce={skipLocationChange:!1}){const Te=Li(q)?q:this.parseUrl(q),Ve=this.urlHandlingStrategy.merge(Te,this.rawUrlTree);return this.scheduleNavigation(Ve,"imperative",null,Ce)}navigate(q,Ce={skipLocationChange:!1}){return function(me){for(let oe=0;oe{const Ve=q[Te];return null!=Ve&&(Ce[Te]=Ve),Ce},{})}processNavigations(){this.navigations.subscribe(q=>{this.navigated=!0,this.lastSuccessfulId=q.id,this.currentPageId=q.targetPageId,this.events.next(new $(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,q.resolve(!0)},q=>{this.console.warn(`Unhandled Navigation Error: ${q}`)})}scheduleNavigation(q,Ce,Te,Ve,it){var bt,zt,vn;if(this.disposed)return Promise.resolve(!1);const fi=this.transitions.value,Dn=ii(Ce)&&fi&&!ii(fi.source),vi=fi.rawUrl.toString()===q.toString(),Di=fi.id===(null===(bt=this.currentNavigation)||void 0===bt?void 0:bt.id);if(Dn&&vi&&Di)return Promise.resolve(!0);let Gr,fs,ps;it?(Gr=it.resolve,fs=it.reject,ps=it.promise):ps=new Promise((Rs,ua)=>{Gr=Rs,fs=ua});const eo=++this.navigationId;let ss;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(Te=this.location.getState()),ss=Te&&Te.\u0275routerPageId?Te.\u0275routerPageId:Ve.replaceUrl||Ve.skipLocationChange?null!==(zt=this.browserPageId)&&void 0!==zt?zt:0:(null!==(vn=this.browserPageId)&&void 0!==vn?vn:0)+1):ss=0,this.setTransition({id:eo,targetPageId:ss,source:Ce,restoredState:Te,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:q,extras:Ve,resolve:Gr,reject:fs,promise:ps,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ps.catch(Rs=>Promise.reject(Rs))}setBrowserUrl(q,Ce){const Te=this.urlSerializer.serialize(q),Ve=Object.assign(Object.assign({},Ce.extras.state),this.generateNgRouterState(Ce.id,Ce.targetPageId));this.location.isCurrentPathEqualTo(Te)||Ce.extras.replaceUrl?this.location.replaceState(Te,"",Ve):this.location.go(Te,"",Ve)}restoreHistory(q,Ce=!1){var Te,Ve;if("computed"===this.canceledNavigationResolution){const it=this.currentPageId-q.targetPageId;"popstate"!==q.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(Te=this.currentNavigation)||void 0===Te?void 0:Te.finalUrl)||0===it?this.currentUrlTree===(null===(Ve=this.currentNavigation)||void 0===Ve?void 0:Ve.finalUrl)&&0===it&&(this.resetState(q),this.browserUrlTree=q.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(it)}else"replace"===this.canceledNavigationResolution&&(Ce&&this.resetState(q),this.resetUrlToCurrentUrlTree())}resetState(q){this.routerState=q.currentRouterState,this.currentUrlTree=q.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,q.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(q,Ce){const Te=new J(q.id,this.serializeUrl(q.extractedUrl),Ce);this.triggerEvent(Te),q.resolve(!1)}generateNgRouterState(q,Ce){return"computed"===this.canceledNavigationResolution?{navigationId:q,\u0275routerPageId:Ce}:{navigationId:q}}}return me.\u0275fac=function(q){n.\u0275\u0275invalidFactory()},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();function ii(me){return"imperative"!==me}let Hi=(()=>{class me{constructor(q,Ce,Te,Ve,it){this.router=q,this.route=Ce,this.tabIndexAttribute=Te,this.renderer=Ve,this.el=it,this.commands=null,this.onChanges=new c.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(q){if(null!=this.tabIndexAttribute)return;const Ce=this.renderer,Te=this.el.nativeElement;null!==q?Ce.setAttribute(Te,"tabindex",q):Ce.removeAttribute(Te,"tabindex")}ngOnChanges(q){this.onChanges.next(this)}set routerLink(q){null!=q?(this.commands=Array.isArray(q)?q:[q],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const q={skipLocationChange:dr(this.skipLocationChange),replaceUrl:dr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,q),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dr(this.preserveFragment)})}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(B),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(q,Ce){1&q&&n.\u0275\u0275listener("click",function(){return Ce.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.\u0275\u0275NgOnChangesFeature]}),me})(),Zn=(()=>{class me{constructor(q,Ce,Te){this.router=q,this.route=Ce,this.locationStrategy=Te,this.commands=null,this.href=null,this.onChanges=new c.xQ,this.subscription=q.events.subscribe(Ve=>{Ve instanceof $&&this.updateTargetUrlAndHref()})}set routerLink(q){this.commands=null!=q?Array.isArray(q)?q:[q]:null}ngOnChanges(q){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(q,Ce,Te,Ve,it){if(0!==q||Ce||Te||Ve||it||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const bt={skipLocationChange:dr(this.skipLocationChange),replaceUrl:dr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,bt),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dr(this.preserveFragment)})}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(B),n.\u0275\u0275directiveInject(Y.LocationStrategy))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(q,Ce){1&q&&n.\u0275\u0275listener("click",function(Ve){return Ce.onClick(Ve.button,Ve.ctrlKey,Ve.shiftKey,Ve.altKey,Ve.metaKey)}),2&q&&n.\u0275\u0275attribute("target",Ce.target)("href",Ce.href,n.\u0275\u0275sanitizeUrl)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.\u0275\u0275NgOnChangesFeature]}),me})();function dr(me){return""===me||!!me}let Si=(()=>{class me{constructor(q,Ce,Te,Ve,it,bt){this.router=q,this.element=Ce,this.renderer=Te,this.cdr=Ve,this.link=it,this.linkWithHref=bt,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new n.EventEmitter,this.routerEventsSubscription=q.events.subscribe(zt=>{zt instanceof $&&this.update()})}ngAfterContentInit(){(0,v.of)(this.links.changes,this.linksWithHrefs.changes,(0,v.of)(null)).pipe((0,ne.J)()).subscribe(q=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var q;null===(q=this.linkInputChangesSubscription)||void 0===q||q.unsubscribe();const Ce=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Te=>!!Te).map(Te=>Te.onChanges);this.linkInputChangesSubscription=(0,f.D)(Ce).pipe((0,ne.J)()).subscribe(Te=>{this.isActive!==this.isLinkActive(this.router)(Te)&&this.update()})}set routerLinkActive(q){const Ce=Array.isArray(q)?q:q.split(" ");this.classes=Ce.filter(Te=>!!Te)}ngOnChanges(q){this.update()}ngOnDestroy(){var q;this.routerEventsSubscription.unsubscribe(),null===(q=this.linkInputChangesSubscription)||void 0===q||q.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const q=this.hasActiveLinks();this.isActive!==q&&(this.isActive=q,this.cdr.markForCheck(),this.classes.forEach(Ce=>{q?this.renderer.addClass(this.element.nativeElement,Ce):this.renderer.removeClass(this.element.nativeElement,Ce)}),this.isActiveChange.emit(q))})}isLinkActive(q){const Ce=function(me){return!!me.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Te=>!!Te.urlTree&&q.isActive(Te.urlTree,Ce)}hasActiveLinks(){const q=this.isLinkActive(this.router);return this.link&&q(this.link)||this.linkWithHref&&q(this.linkWithHref)||this.links.some(q)||this.linksWithHrefs.some(q)}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Hi,8),n.\u0275\u0275directiveInject(Zn,8))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["","routerLinkActive",""]],contentQueries:function(q,Ce,Te){if(1&q&&(n.\u0275\u0275contentQuery(Te,Hi,5),n.\u0275\u0275contentQuery(Te,Zn,5)),2&q){let Ve;n.\u0275\u0275queryRefresh(Ve=n.\u0275\u0275loadQuery())&&(Ce.links=Ve),n.\u0275\u0275queryRefresh(Ve=n.\u0275\u0275loadQuery())&&(Ce.linksWithHrefs=Ve)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[n.\u0275\u0275NgOnChangesFeature]}),me})();class ws{}class or{preload(oe,q){return q().pipe((0,O.K)(()=>(0,v.of)(null)))}}class ar{preload(oe,q){return(0,v.of)(null)}}let Ir=(()=>{class me{constructor(q,Ce,Te,Ve){this.router=q,this.injector=Te,this.preloadingStrategy=Ve,this.loader=new Pr(Te,Ce,zt=>q.triggerEvent(new Je(zt)),zt=>q.triggerEvent(new gt(zt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,D.h)(q=>q instanceof $),(0,w.b)(()=>this.preload())).subscribe(()=>{})}preload(){const q=this.injector.get(n.NgModuleRef);return this.processRoutes(q,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(q,Ce){const Te=[];for(const Ve of Ce)if(Ve.loadChildren&&!Ve.canLoad&&Ve._loadedConfig){const it=Ve._loadedConfig;Te.push(this.processRoutes(it.module,it.routes))}else Ve.loadChildren&&!Ve.canLoad?Te.push(this.preloadConfig(q,Ve)):Ve.children&&Te.push(this.processRoutes(q,Ve.children));return(0,f.D)(Te).pipe((0,ne.J)(),(0,l.U)(Ve=>{}))}preloadConfig(q,Ce){return this.preloadingStrategy.preload(Ce,()=>(Ce._loadedConfig?(0,v.of)(Ce._loadedConfig):this.loader.load(q.injector,Ce)).pipe((0,M.zg)(Ve=>(Ce._loadedConfig=Ve,this.processRoutes(Ve.module,Ve.routes)))))}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(En),n.\u0275\u0275inject(n.Compiler),n.\u0275\u0275inject(n.Injector),n.\u0275\u0275inject(ws))},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})(),_r=(()=>{class me{constructor(q,Ce,Te={}){this.router=q,this.viewportScroller=Ce,this.options=Te,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Te.scrollPositionRestoration=Te.scrollPositionRestoration||"disabled",Te.anchorScrolling=Te.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(q=>{q instanceof te?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=q.navigationTrigger,this.restoredId=q.restoredState?q.restoredState.navigationId:0):q instanceof $&&(this.lastId=q.id,this.scheduleScrollEvent(q,this.router.parseUrl(q.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(q=>{q instanceof vt&&(q.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(q.position):q.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(q.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(q,Ce){this.router.triggerEvent(new vt(q,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ce))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return me.\u0275fac=function(q){n.\u0275\u0275invalidFactory()},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();const Br=new n.InjectionToken("ROUTER_CONFIGURATION"),Vs=new n.InjectionToken("ROUTER_FORROOT_GUARD"),qs=[Y.Location,{provide:Se,useClass:ee},{provide:En,useFactory:function(me,oe,q,Ce,Te,Ve,it={},bt,zt){const vn=new En(null,me,oe,q,Ce,Te,x(Ve));return bt&&(vn.urlHandlingStrategy=bt),zt&&(vn.routeReuseStrategy=zt),z(it,vn),it.enableTracing&&vn.events.subscribe(fi=>{var Dn,vi;null===(Dn=console.group)||void 0===Dn||Dn.call(console,`Router Event: ${fi.constructor.name}`),console.log(fi.toString()),console.log(fi),null===(vi=console.groupEnd)||void 0===vi||vi.call(console)}),vn},deps:[Se,hr,Y.Location,n.Injector,n.Compiler,zi,Br,[ys,new n.Optional],[fr,new n.Optional]]},hr,{provide:B,useFactory:function(me){return me.routerState.root},deps:[En]},Ir,ar,or,{provide:Br,useValue:{enableTracing:!1}}];function ns(){return new n.NgProbeToken("Router",En)}let rs=(()=>{class me{constructor(q,Ce){}static forRoot(q,Ce){return{ngModule:me,providers:[qs,Ss(q),{provide:Vs,useFactory:Ms,deps:[[En,new n.Optional,new n.SkipSelf]]},{provide:Br,useValue:Ce||{}},{provide:Y.LocationStrategy,useFactory:Js,deps:[Y.PlatformLocation,[new n.Inject(Y.APP_BASE_HREF),new n.Optional],Br]},{provide:_r,useFactory:$s,deps:[En,Y.ViewportScroller,Br]},{provide:ws,useExisting:Ce&&Ce.preloadingStrategy?Ce.preloadingStrategy:ar},{provide:n.NgProbeToken,multi:!0,useFactory:ns},[je,{provide:n.APP_INITIALIZER,multi:!0,useFactory:Mt,deps:[je]},{provide:ln,useFactory:jt,deps:[je]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:ln}]]}}static forChild(q){return{ngModule:me,providers:[Ss(q)]}}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(Vs,8),n.\u0275\u0275inject(En,8))},me.\u0275mod=n.\u0275\u0275defineNgModule({type:me}),me.\u0275inj=n.\u0275\u0275defineInjector({}),me})();function $s(me,oe,q){return q.scrollOffset&&oe.setOffset(q.scrollOffset),new _r(me,oe,q)}function Js(me,oe,q={}){return q.useHash?new Y.HashLocationStrategy(me,oe):new Y.PathLocationStrategy(me,oe)}function Ms(me){return"guarded"}function Ss(me){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:me},{provide:zi,multi:!0,useValue:me}]}function z(me,oe){me.errorHandler&&(oe.errorHandler=me.errorHandler),me.malformedUriErrorHandler&&(oe.malformedUriErrorHandler=me.malformedUriErrorHandler),me.onSameUrlNavigation&&(oe.onSameUrlNavigation=me.onSameUrlNavigation),me.paramsInheritanceStrategy&&(oe.paramsInheritanceStrategy=me.paramsInheritanceStrategy),me.relativeLinkResolution&&(oe.relativeLinkResolution=me.relativeLinkResolution),me.urlUpdateStrategy&&(oe.urlUpdateStrategy=me.urlUpdateStrategy),me.canceledNavigationResolution&&(oe.canceledNavigationResolution=me.canceledNavigationResolution)}let je=(()=>{class me{constructor(q){this.injector=q,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new c.xQ}appInitializer(){return this.injector.get(Y.LOCATION_INITIALIZED,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Ce=null;const Te=new Promise(bt=>Ce=bt),Ve=this.injector.get(En),it=this.injector.get(Br);return"disabled"===it.initialNavigation?(Ve.setUpLocationChangeListener(),Ce(!0)):"enabled"===it.initialNavigation||"enabledBlocking"===it.initialNavigation?(Ve.hooks.afterPreactivation=()=>this.initNavigation?(0,v.of)(null):(this.initNavigation=!0,Ce(!0),this.resultOfPreactivationDone),Ve.initialNavigation()):Ce(!0),Te})}bootstrapListener(q){const Ce=this.injector.get(Br),Te=this.injector.get(Ir),Ve=this.injector.get(_r),it=this.injector.get(En),bt=this.injector.get(n.ApplicationRef);q===bt.components[0]&&(("enabledNonBlocking"===Ce.initialNavigation||void 0===Ce.initialNavigation)&&it.initialNavigation(),Te.setUpPreloading(),Ve.init(),it.resetRootComponentType(bt.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(n.Injector))},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();function Mt(me){return me.appInitializer.bind(me)}function jt(me){return me.bootstrapListener.bind(me)}const ln=new n.InjectionToken("Router Initializer"),Ki=new n.Version("13.1.1")},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AUTH_CONFIG:()=>AUTH_CONFIG,AbstractValidationHandler:()=>AbstractValidationHandler,AuthConfig:()=>AuthConfig,DateTimeProvider:()=>DateTimeProvider,DefaultHashHandler:()=>DefaultHashHandler,DefaultOAuthInterceptor:()=>DefaultOAuthInterceptor,HashHandler:()=>HashHandler,JwksValidationHandler:()=>JwksValidationHandler,LoginOptions:()=>LoginOptions,MemoryStorage:()=>MemoryStorage,NullValidationHandler:()=>NullValidationHandler,OAuthErrorEvent:()=>OAuthErrorEvent,OAuthEvent:()=>OAuthEvent,OAuthInfoEvent:()=>OAuthInfoEvent,OAuthLogger:()=>OAuthLogger,OAuthModule:()=>OAuthModule,OAuthModuleConfig:()=>OAuthModuleConfig,OAuthNoopResourceServerErrorHandler:()=>OAuthNoopResourceServerErrorHandler,OAuthResourceServerConfig:()=>OAuthResourceServerConfig,OAuthResourceServerErrorHandler:()=>OAuthResourceServerErrorHandler,OAuthService:()=>OAuthService,OAuthStorage:()=>OAuthStorage,OAuthSuccessEvent:()=>OAuthSuccessEvent,ReceivedTokens:()=>ReceivedTokens,SystemDateTimeProvider:()=>SystemDateTimeProvider,UrlHelperService:()=>UrlHelperService,ValidationHandler:()=>ValidationHandler});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7e3),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class ye extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return ye.\u0275fac=function(){let j;return function(n){return(j||(j=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275getInheritedFactory(ye)))(n||ye)}}(),ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class ye{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,n){this.data.set(p,n)}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class ReceivedTokens{}class OAuthEvent{constructor(j){this.type=j}}class OAuthSuccessEvent extends OAuthEvent{constructor(j,p=null){super(j),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(j,p=null){super(j),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(j,p,n=null){super(j),this.reason=p,this.params=n}}function b64DecodeUnicode(ye){const j=ye.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(j).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(ye){return btoa(ye).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(j){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},j&&Object.assign(this,j)}}class WebHttpUrlEncodingCodec{encodeKey(j){return encodeURIComponent(j)}encodeValue(j){return encodeURIComponent(j)}decodeKey(j){return decodeURIComponent(j)}decodeValue(j){return decodeURIComponent(j)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(j){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){let p=this.inferHashAlgorithm(j.idTokenHeader),n=yield this.calcHash(j.accessToken,p),v=base64UrlEncode(n.substr(0,n.length/2)),m=j.idTokenClaims.at_hash.replace(/=/g,"");return v!==m&&(console.error("exptected at_hash: "+v),console.error("actual at_hash: "+m)),v===m})}inferHashAlgorithm(j){let p=j.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class ye{getHashFragmentParams(p){let n=p||window.location.hash;if(n=decodeURIComponent(n),0!==n.indexOf("#"))return{};const f=n.indexOf("?");return n=n.substr(f>-1?f+1:1),this.parseQueryString(n)}parseQueryString(p){const n={};let f,v,m,o,d,u,h;if(null===p)return n;f=p.split("&");for(let r=0;r>6,v[o++]=128|63&d):d<55296||d>=57344?(v[o++]=224|d>>12,v[o++]=128|d>>6&63,v[o++]=128|63&d):(d=65536+((1023&d)<<10|1023&ye.charCodeAt(++n)),v[o++]=240|d>>18,v[o++]=128|d>>12&63,v[o++]=128|d>>6&63,v[o++]=128|63&d);ye=v}else{if("object"!==f)throw new Error(ERROR);if(null===ye)throw new Error(ERROR);if(ARRAY_BUFFER&&ye.constructor===ArrayBuffer)ye=new Uint8Array(ye);else if(!(Array.isArray(ye)||ARRAY_BUFFER&&ArrayBuffer.isView(ye)))throw new Error(ERROR)}ye.length>64&&(ye=new Sha256(j,!0).update(ye).array());var u=[],h=[];for(n=0;n<64;++n){var r=ye[n]||0;u[n]=92^r,h[n]=54^r}Sha256.call(this,j,p),this.update(h),this.oKeyPad=u,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function(ye){if(!this.finalized){var j,p=typeof ye;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===ye)throw new Error(ERROR);if(ARRAY_BUFFER&&ye.constructor===ArrayBuffer)ye=new Uint8Array(ye);else if(!(Array.isArray(ye)||ARRAY_BUFFER&&ArrayBuffer.isView(ye)))throw new Error(ERROR);j=!0}for(var n,v,f=0,m=ye.length,o=this.blocks;f>2]|=ye[f]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(o[v>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=o[16],this.start=v-64,this.hash(),this.hashed=!0):this.start=v}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var ye=this.blocks,j=this.lastByteIndex;ye[16]=this.block,ye[j>>2]|=EXTRA[3&j],this.block=ye[16],j>=56&&(this.hashed||this.hash(),ye[0]=this.block,ye[16]=ye[1]=ye[2]=ye[3]=ye[4]=ye[5]=ye[6]=ye[7]=ye[8]=ye[9]=ye[10]=ye[11]=ye[12]=ye[13]=ye[14]=ye[15]=0),ye[14]=this.hBytes<<3|this.bytes>>>29,ye[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var u,i,g,y,E,T,ye=this.h0,j=this.h1,p=this.h2,n=this.h3,f=this.h4,v=this.h5,m=this.h6,o=this.h7,d=this.blocks;for(u=16;u<64;++u)d[u]=d[u-16]+(((i=d[u-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)+d[u-7]+(((i=d[u-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)<<0;for(T=j&p,u=0;u<64;u+=4)this.first?(this.is224?(g=300032,o=(i=d[0]-1413257819)-150054599<<0,n=i+24177077<<0):(g=704751109,o=(i=d[0]-210244248)-1521486534<<0,n=i+143694565<<0),this.first=!1):(o=n+(i=o+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&v^~f&m)+K[u]+d[u])<<0,n=i+(((ye>>>2|ye<<30)^(ye>>>13|ye<<19)^(ye>>>22|ye<<10))+((g=ye&j)^ye&p^T))<<0),m=p+(i=m+((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&f^~o&v)+K[u+1]+d[u+1])<<0,p=i+(((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+((y=n&ye)^n&j^g))<<0,v=j+(i=v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&o^~m&f)+K[u+2]+d[u+2])<<0,j=i+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((E=p&n)^p&ye^y))<<0,f=ye+(i=f+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&m^~v&o)+K[u+3]+d[u+3])<<0,ye=i+(((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+((T=j&p)^j&n^E))<<0;this.h0=this.h0+ye<<0,this.h1=this.h1+j<<0,this.h2=this.h2+p<<0,this.h3=this.h3+n<<0,this.h4=this.h4+f<<0,this.h5=this.h5+v<<0,this.h6=this.h6+m<<0,this.h7=this.h7+o<<0},Sha256.prototype.hex=function(){this.finalize();var ye=this.h0,j=this.h1,p=this.h2,n=this.h3,f=this.h4,v=this.h5,m=this.h6,o=this.h7,d=HEX_CHARS[ye>>28&15]+HEX_CHARS[ye>>24&15]+HEX_CHARS[ye>>20&15]+HEX_CHARS[ye>>16&15]+HEX_CHARS[ye>>12&15]+HEX_CHARS[ye>>8&15]+HEX_CHARS[ye>>4&15]+HEX_CHARS[15&ye]+HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]+HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[15&v]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[15&m];return this.is224||(d+=HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]),d},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var ye=this.h0,j=this.h1,p=this.h2,n=this.h3,f=this.h4,v=this.h5,m=this.h6,o=this.h7,d=[ye>>24&255,ye>>16&255,ye>>8&255,255&ye,j>>24&255,j>>16&255,j>>8&255,255&j,p>>24&255,p>>16&255,p>>8&255,255&p,n>>24&255,n>>16&255,n>>8&255,255&n,f>>24&255,f>>16&255,f>>8&255,255&f,v>>24&255,v>>16&255,v>>8&255,255&v,m>>24&255,m>>16&255,m>>8&255,255&m];return this.is224||d.push(o>>24&255,o>>16&255,o>>8&255,255&o),d},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var ye=new ArrayBuffer(this.is224?28:32),j=new DataView(ye);return j.setUint32(0,this.h0),j.setUint32(4,this.h1),j.setUint32(8,this.h2),j.setUint32(12,this.h3),j.setUint32(16,this.h4),j.setUint32(20,this.h5),j.setUint32(24,this.h6),this.is224||j.setUint32(28,this.h7),ye},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var ye=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(ye),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(ye){if("string"!=typeof ye)throw new TypeError("expected string");var j,p=ye,n=new Uint8Array(p.length);for(j=0;j{class ye{calcHash(p,n){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})}toHashString2(p){let n="";for(let f of p)n+=String.fromCharCode(f);return n}toHashString(p){const n=new Uint8Array(p);let f="";for(let v of n)f+=String.fromCharCode(v);return f}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})(),OAuthService=(()=>{class ye extends AuthConfig{constructor(p,n,f,v,m,o,d,u,h,r){var s;super(),this.ngZone=p,this.http=n,this.config=m,this.urlHelper=o,this.logger=d,this.crypto=u,this.dateTimeService=r,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=h,m||(m={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),v&&(this.tokenValidationHandler=v),m&&this.configure(m);try{f?this.setStorage(f):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(i){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",i)}if(this.checkLocalStorageAccessable()){const i=null===(s=null==window?void 0:window.navigator)||void 0===s?void 0:s.userAgent;((null==i?void 0:i.includes("MSIE "))||(null==i?void 0:i.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const p="test";try{return void 0!==window.localStorage&&(localStorage.setItem(p,p),localStorage.removeItem(p),!0)}catch(n){return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},n,f=!0){let v=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(m=>{"token_received"===m.type?v=!0:"logout"===m.type&&(v=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>"token_expires"===m.type&&(null==n||"any"===n||m.info===n)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(m=>{v&&this.refreshInternal(p,f).catch(o=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,n){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,n):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(n=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(n=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const n=[],f=this.validateUrlForHttps(p),v=this.validateUrlAgainstIssuer(p);return f||n.push("https for all urls required. Also for urls received by discovery."),v||n.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),n}validateUrlForHttps(p){if(!p)return!0;const n=p.toLowerCase();return!(!1!==this.requireHttps&&(!n.match(/^http:\/\/localhost($|[:\/])/)&&!n.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||n.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,n){if(!p)throw new Error(`'${n}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${n}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),n=this.getAccessTokenStoredAt(),f=this.calcTimeout(n,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(v=>{this.ngZone.run(()=>{this.eventsSubject.next(v)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),n=this.getIdTokenStoredAt(),f=this.calcTimeout(n,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(v=>{this.ngZone.run(()=>{this.eventsSubject.next(v)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,n){const f=this.dateTimeService.now();return Math.max(0,(n-p)*this.timeoutFactor-(f-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((n,f)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(v=>{if(!this.validateDiscoveryDocument(v))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void f("discovery_document_validation_error");this.loginUrl=v.authorization_endpoint,this.logoutUrl=v.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=v.grant_types_supported,this.issuer=v.issuer,this.tokenEndpoint=v.token_endpoint,this.userinfoEndpoint=v.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=v.jwks_uri,this.sessionCheckIFrameUrl=v.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(v),this.revocationEndpoint=v.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(m=>{const d=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:v,jwks:m});this.eventsSubject.next(d),n(d)}).catch(m=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",m)),f(m)})},v=>{this.logger.error("error loading discovery document",v),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",v)),f(v)}):f("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,n)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(f=>{this.jwks=f,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(f)},f=>{this.logger.error("error loading jwks",f),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",f)),n(f)}):p(null)})}validateDiscoveryDocument(p){let n;return this.skipIssuerCheck||p.issuer===this.issuer?(n=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),n.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),n.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.token_endpoint),n.length>0&&this.logger.error("error validating token_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),n.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),n.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.jwks_uri),n.length>0?(this.logger.error("error validating jwks_uri in discovery document",n),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){return this.fetchTokenUsingPasswordFlow(p,n,f).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,n)=>{const f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:f,observe:"response",responseType:"text"}).subscribe(v=>{if(this.debug("userinfo received",JSON.stringify(v)),v.headers.get("content-type").startsWith("application/json")){let m=JSON.parse(v.body);const o=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!o.sub||m.sub!==o.sub))return void n("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");m=Object.assign({},o,m),this._storage.setItem("id_token_claims_obj",JSON.stringify(m)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:m})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(v.body))},v=>{this.logger.error("error loading user info",v),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",v)),n(v)})})}fetchTokenUsingPasswordFlow(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){return this.fetchTokenUsingGrant("password",{username:p,password:n},f)}fetchTokenUsingGrant(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let v=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const m=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+m)}if(this.useHttpBasicAuth||(v=v.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(v=v.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))v=v.set(m,this.customQueryParams[m]);for(const m of Object.keys(n))v=v.set(m,n[m]);return f=f.set("Content-Type","application/x-www-form-urlencoded"),new Promise((m,o)=>{this.http.post(this.tokenEndpoint,v,{headers:f}).subscribe(d=>{this.debug("tokenResponse",d),this.storeAccessTokenResponse(d.access_token,d.refresh_token,d.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d.scope,this.extractRecognizedCustomParameters(d)),this.oidc&&d.id_token&&this.processIdToken(d.id_token,d.access_token).then(u=>{this.storeIdToken(u),m(d)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),m(d)},d=>{this.logger.error("Error performing ${grantType} flow",d),this.eventsSubject.next(new OAuthErrorEvent("token_error",d)),o(d)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,n)=>{let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),v=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const m=btoa(`${this.clientId}:${this.dummyClientSecret}`);v=v.set("Authorization","Basic "+m)}if(this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(m,this.customQueryParams[m]);this.http.post(this.tokenEndpoint,f,{headers:v}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(m=>m.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(m.id_token,m.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(o=>this.storeIdToken(o)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(o=>m)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(m))).subscribe(m=>{this.debug("refresh tokenResponse",m),this.storeAccessTokenResponse(m.access_token,m.refresh_token,m.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m.scope,this.extractRecognizedCustomParameters(m)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(m)},m=>{this.logger.error("Error refreshing token",m),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",m)),n(m)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const n=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:n,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(f=>this.debug("tryLogin during silent refresh failed",f))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},n=!0){const f=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const v=this.document.getElementById(this.silentRefreshIFrameName);v&&this.document.body.removeChild(v),this.silentRefreshSubject=f.sub;const m=this.document.createElement("iframe");m.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,n,p).then(r=>{m.setAttribute("src",r),this.silentRefreshShowIFrame||(m.style.display="none"),this.document.body.appendChild(m)});const d=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(r=>r instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),u=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(r=>"token_received"===r.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),h=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([d,u,h]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(r=>{if(r instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===r.type||(r=new OAuthErrorEvent("silent_refresh_error",r)),this.eventsSubject.next(r),r;return"token_received"===r.type&&(r=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(r)),r})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(n=>new Promise((f,v)=>{let d,o=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(o=p.windowRef,o.location.href=n):o=window.open(n,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const u=c=>{this.tryLogin({customHashFragment:c,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{r(),f(!0)},l=>{r(),v(l)})};o?d=window.setInterval(()=>{(!o||o.closed)&&(r(),v(new OAuthErrorEvent("popup_closed",{})))},500):v(new OAuthErrorEvent("popup_blocked",{}));const r=()=>{window.clearInterval(d),window.removeEventListener("storage",i),window.removeEventListener("message",s),null!==o&&o.close(),o=null},s=c=>{const l=this.processMessageEventMessage(c);l&&null!==l?(window.removeEventListener("storage",i),u(l)):console.log("false event firing")},i=c=>{"auth_hash"===c.key&&(window.removeEventListener("message",s),u(c.newValue))};window.addEventListener("message",s),window.addEventListener("storage",i)}))}calculatePopupFeatures(p){const n=p.height||470,f=p.width||500,v=window.screenLeft+(window.outerWidth-f)/2;return`location=no,toolbar=no,width=${f},height=${n},top=${window.screenTop+(window.outerHeight-n)/2},left=${v}`}processMessageEventMessage(p){let n="#";if(this.silentRefreshMessagePrefix&&(n+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const f=p.data;return f.startsWith(n)?"#"+f.substr(n.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const n=p.origin.toLowerCase(),f=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),f.startsWith(n)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",n,"expected",f,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const n=this.document.createElement("iframe");n.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),n.setAttribute("src",this.sessionCheckIFrameUrl),n.style.display="none",this.document.body.appendChild(n),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const n=this.getSessionState();n||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+n,this.issuer)}createLoginUrl(p="",n="",f="",v=!1,m={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){const o=this;let d;d=f||this.redirectUri;const u=yield this.createAndSaveNonce();if(p=p?u+this.config.nonceStateSeparator+encodeURIComponent(p):u,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const h=o.loginUrl.indexOf("?")>-1?"&":"?";let r=o.scope;this.oidc&&!r.match(/(^|\s)openid($|\s)/)&&(r="openid "+r);let s=o.loginUrl+h+"response_type="+encodeURIComponent(o.responseType)+"&client_id="+encodeURIComponent(o.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(d)+"&scope="+encodeURIComponent(r);if(this.responseType.includes("code")&&!this.disablePKCE){const[i,c]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",c):this._storage.setItem("PKCE_verifier",c),s+="&code_challenge="+i,s+="&code_challenge_method=S256"}n&&(s+="&login_hint="+encodeURIComponent(n)),o.resource&&(s+="&resource="+encodeURIComponent(o.resource)),o.oidc&&(s+="&nonce="+encodeURIComponent(u)),v&&(s+="&prompt=none");for(const i of Object.keys(m))s+="&"+encodeURIComponent(i)+"="+encodeURIComponent(m[i]);if(this.customQueryParams)for(const i of Object.getOwnPropertyNames(this.customQueryParams))s+="&"+i+"="+encodeURIComponent(this.customQueryParams[i]);return s})}initImplicitFlowInternal(p="",n=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},v=null;"string"==typeof n?v=n:"object"==typeof n&&(f=n),this.createLoginUrl(p,v,null,!1,f).then(this.config.openUri).catch(m=>{console.error("Error in initImplicitFlow",m),this.inImplicitFlow=!1})}initImplicitFlow(p="",n=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,n):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"discovery_document_loaded"===f.type)).subscribe(f=>this.initImplicitFlowInternal(p,n))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const n=this;if(p.onTokenReceived){const f={idClaims:n.getIdentityClaims(),idToken:n.getIdToken(),accessToken:n.getAccessToken(),state:n.state};p.onTokenReceived(f)}}storeAccessTokenResponse(p,n,f,v,m){if(this._storage.setItem("access_token",p),v&&!Array.isArray(v)?this._storage.setItem("granted_scopes",JSON.stringify(v.split(" "))):v&&Array.isArray(v)&&this._storage.setItem("granted_scopes",JSON.stringify(v)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),f){const o=1e3*f,u=this.dateTimeService.new().getTime()+o;this._storage.setItem("expires_at",""+u)}n&&this._storage.setItem("refresh_token",n),m&&m.forEach((o,d)=>{this._storage.setItem(d,o)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(n=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){const n=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,f=this.getCodePartsFromUrl(n),v=f.code,m=f.state,o=f.session_state;if(!p.preventClearHashAfterLogin){const h=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,h)}let[d,u]=this.parseState(m);if(this.state=u,f.error){this.debug("error trying to login"),this.handleLoginError(p,f);const h=new OAuthErrorEvent("code_error",{},f);return this.eventsSubject.next(h),Promise.reject(h)}if(!p.disableNonceCheck){if(!d)return this.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!this.validateNonce(d)){const r=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(r),Promise.reject(r)}return this.storeSessionState(o),v&&(yield this.getTokenFromCode(v,p),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,n){let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",n.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let v;v=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),v?f=f.set("code_verifier",v):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(f,n)}fetchAndProcessToken(p,n){n=n||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const v=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+v)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((v,m)=>{if(this.customQueryParams)for(let o of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(o,this.customQueryParams[o]);this.http.post(this.tokenEndpoint,p,{headers:f}).subscribe(o=>{this.debug("refresh tokenResponse",o),this.storeAccessTokenResponse(o.access_token,o.refresh_token,o.expires_in||this.fallbackAccessTokenExpirationTimeInSec,o.scope,this.extractRecognizedCustomParameters(o)),this.oidc&&o.id_token?this.processIdToken(o.id_token,o.access_token,n.disableNonceCheck).then(d=>{this.storeIdToken(d),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),v(o)}).catch(d=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",d)),console.error("Error validating tokens"),console.error(d),m(d)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),v(o))},o=>{console.error("Error getting token",o),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",o)),m(o)})})}tryLoginImplicitFlow(p=null){let n;n=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",n);const f=n.state;let[v,m]=this.parseState(f);if(this.state=m,n.error){this.debug("error trying to login"),this.handleLoginError(p,n);const r=new OAuthErrorEvent("token_error",{},n);return this.eventsSubject.next(r),Promise.reject(r)}const o=n.access_token,d=n.id_token,u=n.session_state,h=n.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!f||this.oidc&&!d)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!u&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(v)){const s=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(s),Promise.reject(s)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,n.expires_in||this.fallbackAccessTokenExpirationTimeInSec,h),this.oidc?this.processIdToken(d,o,p.disableNonceCheck).then(r=>p.validationHandler?p.validationHandler({accessToken:o,idClaims:r.idTokenClaims,idToken:r.idToken,state:f}).then(s=>r):r).then(r=>(this.storeIdToken(r),this.storeSessionState(u),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(r=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",r)),this.logger.error("Error validating tokens"),this.logger.error(r),Promise.reject(r))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let n=p,f="";if(p){const v=p.indexOf(this.config.nonceStateSeparator);v>-1&&(n=p.substr(0,v),f=p.substr(v+this.config.nonceStateSeparator.length))}return[n,f]}validateNonce(p){let n;return n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),n===p||(console.error("Validating access_token failed, wrong state/nonce.",n,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,n){p.onLoginError&&p.onLoginError(n),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,n,f=!1){const v=p.split("."),o=b64DecodeUnicode(this.padBase64(v[0])),d=JSON.parse(o),h=b64DecodeUnicode(this.padBase64(v[1])),r=JSON.parse(h);let s;if(s=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(r.aud)){if(r.aud.every(E=>E!==this.clientId)){const E="Wrong audience: "+r.aud.join(",");return this.logger.warn(E),Promise.reject(E)}}else if(r.aud!==this.clientId){const E="Wrong audience: "+r.aud;return this.logger.warn(E),Promise.reject(E)}if(!r.sub){const E="No sub claim in id_token";return this.logger.warn(E),Promise.reject(E)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==r.sub){const E=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${r.sub}`;return this.logger.warn(E),Promise.reject(E)}if(!r.iat){const E="No iat claim in id_token";return this.logger.warn(E),Promise.reject(E)}if(!this.skipIssuerCheck&&r.iss!==this.issuer){const E="Wrong issuer: "+r.iss;return this.logger.warn(E),Promise.reject(E)}if(!f&&r.nonce!==s){const E="Wrong nonce: "+r.nonce;return this.logger.warn(E),Promise.reject(E)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!r.at_hash){const E="An at_hash is needed!";return this.logger.warn(E),Promise.reject(E)}const i=this.dateTimeService.now(),c=1e3*r.iat,l=1e3*r.exp,g=this.getClockSkewInMsec();if(c-g>=i||l+g<=i){const E="Token has expired";return console.error(E),console.error({now:i,issuedAtMSec:c,expiresAtMSec:l}),Promise.reject(E)}const y={accessToken:n,idToken:p,jwks:this.jwks,idTokenClaims:r,idTokenHeader:d,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(y).then(E=>({idToken:p,idTokenClaims:r,idTokenClaimsJson:h,idTokenHeader:d,idTokenHeaderJson:o,idTokenExpiresAt:l})):this.checkAtHash(y).then(E=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!E){const T="Wrong at_hash";return this.logger.warn(T),Promise.reject(T)}return this.checkSignature(y).then(T=>{const O={idToken:p,idTokenClaims:r,idTokenClaimsJson:h,idTokenHeader:d,idTokenHeaderJson:o,idTokenExpiresAt:l};return this.disableAtHashCheck?O:this.checkAtHash(y).then(w=>{if(this.requestAccessToken&&!w){const A="Wrong at_hash";return this.logger.warn(A),Promise.reject(A)}return O})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),n=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},n=""){let f=!1;"boolean"==typeof p&&(f=p,p={});const v=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>this._storage.removeItem(o)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||f||!v&&!this.postLogoutRedirectUri)return;let m;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)m=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(v)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec});v&&(o=o.set("id_token_hint",v));const d=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";d&&(o=o.set("post_logout_redirect_uri",d),n&&(o=o.set("state",n)));for(let u in p)o=o.set(u,p[u]);m=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+o.toString()}this.config.openUri(m)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(n){return p.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",n):p._storage.setItem("nonce",n),n})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const n=this.document.getElementById(this.sessionCheckIFrameName);n&&n.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let f=45,v="";const m="undefined"==typeof self?null:self.crypto||self.msCrypto;if(m){let o=new Uint8Array(f);m.getRandomValues(o),o.map||(o.map=Array.prototype.map),o=o.map(d=>n.charCodeAt(d%n.length)),v=String.fromCharCode.apply(null,o)}else for(;0"discovery_document_loaded"===f.type)).subscribe(f=>this.initCodeFlowInternal(p,n))}initCodeFlowInternal(p="",n={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},v=null;"string"==typeof n?v=n:"object"==typeof n&&(f=n),this.createLoginUrl(p,v,null,!1,f).then(this.config.openUri).catch(m=>{console.error("Error in initAuthorizationCodeFlow"),console.error(m)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const p=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(p,"sha-256")),p]})}extractRecognizedCustomParameters(p){let n=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(f=>{p[f]&&n.set(f,JSON.stringify(p[f]))}),n}revokeTokenAndLogout(p={},n=!1){let f=this.revocationEndpoint,v=this.getAccessToken(),m=this.getRefreshToken();if(!v)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}),d=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const u=btoa(`${this.clientId}:${this.dummyClientSecret}`);d=d.set("Authorization","Basic "+u)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const u of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(u,this.customQueryParams[u]);return new Promise((u,h)=>{let r,s;if(v){let i=o.set("token",v).set("token_type_hint","access_token");r=this.http.post(f,i,{headers:d})}else r=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(m){let i=o.set("token",m).set("token_type_hint","refresh_token");s=this.http.post(f,i,{headers:d})}else s=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);n&&(r=r.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(i=>0===i.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(i))),s=s.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(i=>0===i.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(i)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([r,s]).subscribe(i=>{this.logOut(p),u(i),this.logger.info("Token successfully revoked")},i=>{this.logger.error("Error revoking token",i),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",i)),h(i)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return ye.\u0275fac=function(p){return new(p||ye)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpClient),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_common__WEBPACK_IMPORTED_MODULE_18__.DOCUMENT),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(DateTimeProvider))},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(j){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(j)}}let DefaultOAuthInterceptor=(()=>{class ye{constructor(p,n,f){this.oAuthService=p,this.errorHandler=n,this.moduleConfig=f}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(n=>p.toLowerCase().startsWith(n.toLowerCase()))}intercept(p,n){const f=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(f)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>!!m)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>"token_received"===m.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(m=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(m=>{if(m){const d=p.headers.set("Authorization","Bearer "+m);p=p.clone({headers:d})}return n.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(o=>this.errorHandler.handleError(o)))})):n.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>this.errorHandler.handleError(m))):n.handle(p)}}return ye.\u0275fac=function(p){return new(p||ye)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthModuleConfig,8))},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class NullValidationHandler{validateSignature(j){return Promise.resolve(null)}validateAtHash(j){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class ye{static forRoot(p=null,n=NullValidationHandler){return{ngModule:ye,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:n},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HTTP_INTERCEPTORS,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineNgModule({type:ye}),ye.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjector({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.CommonModule]]}),ye})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken("AUTH_CONFIG")},4956:(ye,j,p)=>{"use strict";function o(P){let Ie=P.length;for(;--Ie>=0;)P[Ie]=0}p.r(j),p.d(j,{Deflate:()=>Co,Inflate:()=>Xa,constants:()=>Yr,default:()=>ma,deflate:()=>ho,deflateRaw:()=>fa,gzip:()=>Qa,inflate:()=>Wl,inflateRaw:()=>zl,ungzip:()=>pa});const I=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),b=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Y=new Array(576);o(Y);const Q=new Array(60);o(Q);const te=new Array(512);o(te);const $=new Array(256);o($);const J=new Array(29);o(J);const ie=new Array(30);function ae(P,Ie,he,Ge,Fe){this.static_tree=P,this.extra_bits=Ie,this.extra_base=he,this.elems=Ge,this.max_length=Fe,this.has_stree=P&&P.length}let le,Oe,Le;function Ye(P,Ie){this.dyn_tree=P,this.max_code=0,this.stat_desc=Ie}o(ie);const Je=P=>P<256?te[P]:te[256+(P>>>7)],gt=(P,Ie)=>{P.pending_buf[P.pending++]=255&Ie,P.pending_buf[P.pending++]=Ie>>>8&255},Ue=(P,Ie,he)=>{P.bi_valid>16-he?(P.bi_buf|=Ie<>16-P.bi_valid,P.bi_valid+=he-16):(P.bi_buf|=Ie<{Ue(P,he[2*Ie],he[2*Ie+1])},at=(P,Ie)=>{let he=0;do{he|=1&P,P>>>=1,he<<=1}while(--Ie>0);return he>>>1},yt=(P,Ie,he)=>{const Ge=new Array(16);let ht,Ut,Fe=0;for(ht=1;ht<=15;ht++)Ge[ht]=Fe=Fe+he[ht-1]<<1;for(Ut=0;Ut<=Ie;Ut++){let kt=P[2*Ut+1];0!==kt&&(P[2*Ut]=at(Ge[kt]++,kt))}},_t=P=>{let Ie;for(Ie=0;Ie<286;Ie++)P.dyn_ltree[2*Ie]=0;for(Ie=0;Ie<30;Ie++)P.dyn_dtree[2*Ie]=0;for(Ie=0;Ie<19;Ie++)P.bl_tree[2*Ie]=0;P.dyn_ltree[512]=1,P.opt_len=P.static_len=0,P.last_lit=P.matches=0},At=P=>{P.bi_valid>8?gt(P,P.bi_buf):P.bi_valid>0&&(P.pending_buf[P.pending++]=P.bi_buf),P.bi_buf=0,P.bi_valid=0},Bt=(P,Ie,he,Ge)=>{const Fe=2*Ie,ht=2*he;return P[Fe]{const Ge=P.heap[he];let Fe=he<<1;for(;Fe<=P.heap_len&&(Fe{let Ge,Fe,Ut,kt,ht=0;if(0!==P.last_lit)do{Ge=P.pending_buf[P.d_buf+2*ht]<<8|P.pending_buf[P.d_buf+2*ht+1],Fe=P.pending_buf[P.l_buf+ht],ht++,0===Ge?tt(P,Fe,Ie):(Ut=$[Fe],tt(P,Ut+256+1,Ie),kt=I[Ut],0!==kt&&(Fe-=J[Ut],Ue(P,Fe,kt)),Ge--,Ut=Je(Ge),tt(P,Ut,he),kt=b[Ut],0!==kt&&(Ge-=ie[Ut],Ue(P,Ge,kt)))}while(ht{const he=Ie.dyn_tree,Ge=Ie.stat_desc.static_tree,Fe=Ie.stat_desc.has_stree,ht=Ie.stat_desc.elems;let Ut,kt,wt,bn=-1;for(P.heap_len=0,P.heap_max=573,Ut=0;Ut>1;Ut>=1;Ut--)Et(P,he,Ut);wt=ht;do{Ut=P.heap[1],P.heap[1]=P.heap[P.heap_len--],Et(P,he,1),kt=P.heap[1],P.heap[--P.heap_max]=Ut,P.heap[--P.heap_max]=kt,he[2*wt]=he[2*Ut]+he[2*kt],P.depth[wt]=(P.depth[Ut]>=P.depth[kt]?P.depth[Ut]:P.depth[kt])+1,he[2*Ut+1]=he[2*kt+1]=wt,P.heap[1]=wt++,Et(P,he,1)}while(P.heap_len>=2);P.heap[--P.heap_max]=P.heap[1],((P,Ie)=>{const he=Ie.dyn_tree,Ge=Ie.max_code,Fe=Ie.stat_desc.static_tree,ht=Ie.stat_desc.has_stree,Ut=Ie.stat_desc.extra_bits,kt=Ie.stat_desc.extra_base,bn=Ie.stat_desc.max_length;let wt,$t,Ii,hn,en,Nn,er=0;for(hn=0;hn<=15;hn++)P.bl_count[hn]=0;for(he[2*P.heap[P.heap_max]+1]=0,wt=P.heap_max+1;wt<573;wt++)$t=P.heap[wt],hn=he[2*he[2*$t+1]+1]+1,hn>bn&&(hn=bn,er++),he[2*$t+1]=hn,!($t>Ge)&&(P.bl_count[hn]++,en=0,$t>=kt&&(en=Ut[$t-kt]),Nn=he[2*$t],P.opt_len+=Nn*(hn+en),ht&&(P.static_len+=Nn*(Fe[2*$t+1]+en)));if(0!==er){do{for(hn=bn-1;0===P.bl_count[hn];)hn--;P.bl_count[hn]--,P.bl_count[hn+1]+=2,P.bl_count[bn]--,er-=2}while(er>0);for(hn=bn;0!==hn;hn--)for($t=P.bl_count[hn];0!==$t;)Ii=P.heap[--wt],!(Ii>Ge)&&(he[2*Ii+1]!==hn&&(P.opt_len+=(hn-he[2*Ii+1])*he[2*Ii],he[2*Ii+1]=hn),$t--)}})(P,Ie),yt(he,bn,P.bl_count)},H=(P,Ie,he)=>{let Ge,ht,Fe=-1,Ut=Ie[1],kt=0,bn=7,wt=4;for(0===Ut&&(bn=138,wt=3),Ie[2*(he+1)+1]=65535,Ge=0;Ge<=he;Ge++)ht=Ut,Ut=Ie[2*(Ge+1)+1],!(++kt{let Ge,ht,Fe=-1,Ut=Ie[1],kt=0,bn=7,wt=4;for(0===Ut&&(bn=138,wt=3),Ge=0;Ge<=he;Ge++)if(ht=Ut,Ut=Ie[2*(Ge+1)+1],!(++kt{Ue(P,0+(Ge?1:0),3),((P,Ie,he,Ge)=>{At(P),gt(P,he),gt(P,~he),P.pending_buf.set(P.window.subarray(Ie,Ie+he),P.pending),P.pending+=he})(P,Ie,he)};var Lt={_tr_init:P=>{Be||((()=>{let P,Ie,he,Ge,Fe;const ht=new Array(16);for(he=0,Ge=0;Ge<28;Ge++)for(J[Ge]=he,P=0;P<1<>=7;Ge<30;Ge++)for(ie[Ge]=Fe<<7,P=0;P<1<{let Fe,ht,Ut=0;P.level>0?(2===P.strm.data_type&&(P.strm.data_type=(P=>{let he,Ie=4093624447;for(he=0;he<=31;he++,Ie>>>=1)if(1&Ie&&0!==P.dyn_ltree[2*he])return 0;if(0!==P.dyn_ltree[18]||0!==P.dyn_ltree[20]||0!==P.dyn_ltree[26])return 1;for(he=32;he<256;he++)if(0!==P.dyn_ltree[2*he])return 1;return 0})(P)),fe(P,P.l_desc),fe(P,P.d_desc),Ut=(P=>{let Ie;for(H(P,P.dyn_ltree,P.l_desc.max_code),H(P,P.dyn_dtree,P.d_desc.max_code),fe(P,P.bl_desc),Ie=18;Ie>=3&&0===P.bl_tree[2*F[Ie]+1];Ie--);return P.opt_len+=3*(Ie+1)+5+5+4,Ie})(P),Fe=P.opt_len+3+7>>>3,ht=P.static_len+3+7>>>3,ht<=Fe&&(Fe=ht)):Fe=ht=he+5,he+4<=Fe&&-1!==Ie?st(P,Ie,he,Ge):4===P.strategy||ht===Fe?(Ue(P,2+(Ge?1:0),3),Ee(P,Y,Q)):(Ue(P,4+(Ge?1:0),3),((P,Ie,he,Ge)=>{let Fe;for(Ue(P,Ie-257,5),Ue(P,he-1,5),Ue(P,Ge-4,4),Fe=0;Fe(P.pending_buf[P.d_buf+2*P.last_lit]=Ie>>>8&255,P.pending_buf[P.d_buf+2*P.last_lit+1]=255&Ie,P.pending_buf[P.l_buf+P.last_lit]=255&he,P.last_lit++,0===Ie?P.dyn_ltree[2*he]++:(P.matches++,Ie--,P.dyn_ltree[2*($[he]+256+1)]++,P.dyn_dtree[2*Je(Ie)]++),P.last_lit===P.lit_bufsize-1),_tr_align:P=>{Ue(P,2,3),tt(P,256,Y),(P=>{16===P.bi_valid?(gt(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):P.bi_valid>=8&&(P.pending_buf[P.pending++]=255&P.bi_buf,P.bi_buf>>=8,P.bi_valid-=8)})(P)}},mt=(P,Ie,he,Ge)=>{let Fe=65535&P|0,ht=P>>>16&65535|0,Ut=0;for(;0!==he;){Ut=he>2e3?2e3:he,he-=Ut;do{Fe=Fe+Ie[Ge++]|0,ht=ht+Fe|0}while(--Ut);Fe%=65521,ht%=65521}return Fe|ht<<16|0};const qt=new Uint32Array((()=>{let P,Ie=[];for(var he=0;he<256;he++){P=he;for(var Ge=0;Ge<8;Ge++)P=1&P?3988292384^P>>>1:P>>>1;Ie[he]=P}return Ie})());var Se=(P,Ie,he,Ge)=>{const Fe=qt,ht=Ge+he;P^=-1;for(let Ut=Ge;Ut>>8^Fe[255&(P^Ie[Ut])];return-1^P},ee={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},re={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Me,_tr_stored_block:ze,_tr_flush_block:It,_tr_tally:Qt,_tr_align:cn}=Lt,{Z_NO_FLUSH:An,Z_PARTIAL_FLUSH:lt,Z_FULL_FLUSH:ct,Z_FINISH:He,Z_BLOCK:pt,Z_OK:Ot,Z_STREAM_END:un,Z_STREAM_ERROR:on,Z_DATA_ERROR:On,Z_BUF_ERROR:Yn,Z_DEFAULT_COMPRESSION:ji,Z_FILTERED:Oi,Z_HUFFMAN_ONLY:Ni,Z_RLE:Ti,Z_FIXED:qn,Z_DEFAULT_STRATEGY:Vi,Z_UNKNOWN:ci,Z_DEFLATED:xe}=re,Tn=262,bi=(P,Ie)=>(P.msg=ee[Ie],Ie),Rn=P=>(P<<1)-(P>4?9:0),qi=P=>{let Ie=P.length;for(;--Ie>=0;)P[Ie]=0};let Fn=(P,Ie,he)=>(Ie<{const Ie=P.state;let he=Ie.pending;he>P.avail_out&&(he=P.avail_out),0!==he&&(P.output.set(Ie.pending_buf.subarray(Ie.pending_out,Ie.pending_out+he),P.next_out),P.next_out+=he,Ie.pending_out+=he,P.total_out+=he,P.avail_out-=he,Ie.pending-=he,0===Ie.pending&&(Ie.pending_out=0))},mi=(P,Ie)=>{It(P,P.block_start>=0?P.block_start:-1,P.strstart-P.block_start,Ie),P.block_start=P.strstart,$i(P.strm)},Gn=(P,Ie)=>{P.pending_buf[P.pending++]=Ie},ur=(P,Ie)=>{P.pending_buf[P.pending++]=Ie>>>8&255,P.pending_buf[P.pending++]=255&Ie},gn=(P,Ie,he,Ge)=>{let Fe=P.avail_in;return Fe>Ge&&(Fe=Ge),0===Fe?0:(P.avail_in-=Fe,Ie.set(P.input.subarray(P.next_in,P.next_in+Fe),he),1===P.state.wrap?P.adler=mt(P.adler,Ie,Fe,he):2===P.state.wrap&&(P.adler=Se(P.adler,Ie,Fe,he)),P.next_in+=Fe,P.total_in+=Fe,Fe)},yn=(P,Ie)=>{let Fe,ht,he=P.max_chain_length,Ge=P.strstart,Ut=P.prev_length,kt=P.nice_match;const bn=P.strstart>P.w_size-Tn?P.strstart-(P.w_size-Tn):0,wt=P.window,$t=P.w_mask,Ii=P.prev,hn=P.strstart+258;let en=wt[Ge+Ut-1],Nn=wt[Ge+Ut];P.prev_length>=P.good_match&&(he>>=2),kt>P.lookahead&&(kt=P.lookahead);do{if(Fe=Ie,wt[Fe+Ut]===Nn&&wt[Fe+Ut-1]===en&&wt[Fe]===wt[Ge]&&wt[++Fe]===wt[Ge+1]){Ge+=2,Fe++;do{}while(wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&GeUt){if(P.match_start=Ie,Ut=ht,ht>=kt)break;en=wt[Ge+Ut-1],Nn=wt[Ge+Ut]}}}while((Ie=Ii[Ie&$t])>bn&&0!=--he);return Ut<=P.lookahead?Ut:P.lookahead},Sn=P=>{const Ie=P.w_size;let he,Ge,Fe,ht,Ut;do{if(ht=P.window_size-P.lookahead-P.strstart,P.strstart>=Ie+(Ie-Tn)){P.window.set(P.window.subarray(Ie,Ie+Ie),0),P.match_start-=Ie,P.strstart-=Ie,P.block_start-=Ie,Ge=P.hash_size,he=Ge;do{Fe=P.head[--he],P.head[he]=Fe>=Ie?Fe-Ie:0}while(--Ge);Ge=Ie,he=Ge;do{Fe=P.prev[--he],P.prev[he]=Fe>=Ie?Fe-Ie:0}while(--Ge);ht+=Ie}if(0===P.strm.avail_in)break;if(Ge=gn(P.strm,P.window,P.strstart+P.lookahead,ht),P.lookahead+=Ge,P.lookahead+P.insert>=3)for(Ut=P.strstart-P.insert,P.ins_h=P.window[Ut],P.ins_h=Fn(P,P.ins_h,P.window[Ut+1]);P.insert&&(P.ins_h=Fn(P,P.ins_h,P.window[Ut+3-1]),P.prev[Ut&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=Ut,Ut++,P.insert--,!(P.lookahead+P.insert<3)););}while(P.lookahead{let he,Ge;for(;;){if(P.lookahead=3&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),0!==he&&P.strstart-he<=P.w_size-Tn&&(P.match_length=yn(P,he)),P.match_length>=3)if(Ge=Qt(P,P.strstart-P.match_start,P.match_length-3),P.lookahead-=P.match_length,P.match_length<=P.max_lazy_match&&P.lookahead>=3){P.match_length--;do{P.strstart++,P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart}while(0!=--P.match_length);P.strstart++}else P.strstart+=P.match_length,P.match_length=0,P.ins_h=P.window[P.strstart],P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+1]);else Ge=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++;if(Ge&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=P.strstart<2?P.strstart:2,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2},Li=(P,Ie)=>{let he,Ge,Fe;for(;;){if(P.lookahead=3&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),P.prev_length=P.match_length,P.prev_match=P.match_start,P.match_length=2,0!==he&&P.prev_length4096)&&(P.match_length=2)),P.prev_length>=3&&P.match_length<=P.prev_length){Fe=P.strstart+P.lookahead-3,Ge=Qt(P,P.strstart-1-P.prev_match,P.prev_length-3),P.lookahead-=P.prev_length-1,P.prev_length-=2;do{++P.strstart<=Fe&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart)}while(0!=--P.prev_length);if(P.match_available=0,P.match_length=2,P.strstart++,Ge&&(mi(P,!1),0===P.strm.avail_out))return 1}else if(P.match_available){if(Ge=Qt(P,0,P.window[P.strstart-1]),Ge&&mi(P,!1),P.strstart++,P.lookahead--,0===P.strm.avail_out)return 1}else P.match_available=1,P.strstart++,P.lookahead--}return P.match_available&&(Ge=Qt(P,0,P.window[P.strstart-1]),P.match_available=0),P.insert=P.strstart<2?P.strstart:2,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2};function nr(P,Ie,he,Ge,Fe){this.good_length=P,this.max_lazy=Ie,this.nice_length=he,this.max_chain=Ge,this.func=Fe}const Or=[new nr(0,0,0,0,(P,Ie)=>{let he=65535;for(he>P.pending_buf_size-5&&(he=P.pending_buf_size-5);;){if(P.lookahead<=1){if(Sn(P),0===P.lookahead&&Ie===An)return 1;if(0===P.lookahead)break}P.strstart+=P.lookahead,P.lookahead=0;const Ge=P.block_start+he;if((0===P.strstart||P.strstart>=Ge)&&(P.lookahead=P.strstart-Ge,P.strstart=Ge,mi(P,!1),0===P.strm.avail_out)||P.strstart-P.block_start>=P.w_size-Tn&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):(P.strstart>P.block_start&&mi(P,!1),1)}),new nr(4,4,8,4,Ri),new nr(4,5,16,8,Ri),new nr(4,6,32,32,Ri),new nr(4,4,16,16,Li),new nr(8,16,32,32,Li),new nr(8,16,128,128,Li),new nr(8,32,128,256,Li),new nr(32,128,258,1024,Li),new nr(32,258,258,4096,Li)];function cr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=xe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),qi(this.dyn_ltree),qi(this.dyn_dtree),qi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),qi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),qi(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const $r=P=>{if(!P||!P.state)return bi(P,on);P.total_in=P.total_out=0,P.data_type=ci;const Ie=P.state;return Ie.pending=0,Ie.pending_out=0,Ie.wrap<0&&(Ie.wrap=-Ie.wrap),Ie.status=Ie.wrap?42:113,P.adler=2===Ie.wrap?0:1,Ie.last_flush=An,Me(Ie),Ot},hr=P=>{const Ie=$r(P);return Ie===Ot&&(P=>{P.window_size=2*P.w_size,qi(P.head),P.max_lazy_match=Or[P.level].max_lazy,P.good_match=Or[P.level].good_length,P.nice_match=Or[P.level].nice_length,P.max_chain_length=Or[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=2,P.match_available=0,P.ins_h=0})(P.state),Ie},ir=(P,Ie,he,Ge,Fe,ht)=>{if(!P)return on;let Ut=1;if(Ie===ji&&(Ie=6),Ge<0?(Ut=0,Ge=-Ge):Ge>15&&(Ut=2,Ge-=16),Fe<1||Fe>9||he!==xe||Ge<8||Ge>15||Ie<0||Ie>9||ht<0||ht>qn)return bi(P,on);8===Ge&&(Ge=9);const kt=new cr;return P.state=kt,kt.strm=P,kt.wrap=Ut,kt.gzhead=null,kt.w_bits=Ge,kt.w_size=1<P&&P.state&&2===P.state.wrap?(P.state.gzhead=Ie,Ot):on,kr_deflate=(P,Ie)=>{let he,Ge;if(!P||!P.state||Ie>pt||Ie<0)return P?bi(P,on):on;const Fe=P.state;if(!P.output||!P.input&&0!==P.avail_in||666===Fe.status&&Ie!==He)return bi(P,0===P.avail_out?Yn:on);Fe.strm=P;const ht=Fe.last_flush;if(Fe.last_flush=Ie,42===Fe.status)if(2===Fe.wrap)P.adler=0,Gn(Fe,31),Gn(Fe,139),Gn(Fe,8),Fe.gzhead?(Gn(Fe,(Fe.gzhead.text?1:0)+(Fe.gzhead.hcrc?2:0)+(Fe.gzhead.extra?4:0)+(Fe.gzhead.name?8:0)+(Fe.gzhead.comment?16:0)),Gn(Fe,255&Fe.gzhead.time),Gn(Fe,Fe.gzhead.time>>8&255),Gn(Fe,Fe.gzhead.time>>16&255),Gn(Fe,Fe.gzhead.time>>24&255),Gn(Fe,9===Fe.level?2:Fe.strategy>=Ni||Fe.level<2?4:0),Gn(Fe,255&Fe.gzhead.os),Fe.gzhead.extra&&Fe.gzhead.extra.length&&(Gn(Fe,255&Fe.gzhead.extra.length),Gn(Fe,Fe.gzhead.extra.length>>8&255)),Fe.gzhead.hcrc&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending,0)),Fe.gzindex=0,Fe.status=69):(Gn(Fe,0),Gn(Fe,0),Gn(Fe,0),Gn(Fe,0),Gn(Fe,0),Gn(Fe,9===Fe.level?2:Fe.strategy>=Ni||Fe.level<2?4:0),Gn(Fe,3),Fe.status=113);else{let Ut=xe+(Fe.w_bits-8<<4)<<8,kt=-1;kt=Fe.strategy>=Ni||Fe.level<2?0:Fe.level<6?1:6===Fe.level?2:3,Ut|=kt<<6,0!==Fe.strstart&&(Ut|=32),Ut+=31-Ut%31,Fe.status=113,ur(Fe,Ut),0!==Fe.strstart&&(ur(Fe,P.adler>>>16),ur(Fe,65535&P.adler)),P.adler=1}if(69===Fe.status)if(Fe.gzhead.extra){for(he=Fe.pending;Fe.gzindex<(65535&Fe.gzhead.extra.length)&&(Fe.pending!==Fe.pending_buf_size||(Fe.gzhead.hcrc&&Fe.pending>he&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),$i(P),he=Fe.pending,Fe.pending!==Fe.pending_buf_size));)Gn(Fe,255&Fe.gzhead.extra[Fe.gzindex]),Fe.gzindex++;Fe.gzhead.hcrc&&Fe.pending>he&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),Fe.gzindex===Fe.gzhead.extra.length&&(Fe.gzindex=0,Fe.status=73)}else Fe.status=73;if(73===Fe.status)if(Fe.gzhead.name){he=Fe.pending;do{if(Fe.pending===Fe.pending_buf_size&&(Fe.gzhead.hcrc&&Fe.pending>he&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),$i(P),he=Fe.pending,Fe.pending===Fe.pending_buf_size)){Ge=1;break}Ge=Fe.gzindexhe&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),0===Ge&&(Fe.gzindex=0,Fe.status=91)}else Fe.status=91;if(91===Fe.status)if(Fe.gzhead.comment){he=Fe.pending;do{if(Fe.pending===Fe.pending_buf_size&&(Fe.gzhead.hcrc&&Fe.pending>he&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),$i(P),he=Fe.pending,Fe.pending===Fe.pending_buf_size)){Ge=1;break}Ge=Fe.gzindexhe&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),0===Ge&&(Fe.status=103)}else Fe.status=103;if(103===Fe.status&&(Fe.gzhead.hcrc?(Fe.pending+2>Fe.pending_buf_size&&$i(P),Fe.pending+2<=Fe.pending_buf_size&&(Gn(Fe,255&P.adler),Gn(Fe,P.adler>>8&255),P.adler=0,Fe.status=113)):Fe.status=113),0!==Fe.pending){if($i(P),0===P.avail_out)return Fe.last_flush=-1,Ot}else if(0===P.avail_in&&Rn(Ie)<=Rn(ht)&&Ie!==He)return bi(P,Yn);if(666===Fe.status&&0!==P.avail_in)return bi(P,Yn);if(0!==P.avail_in||0!==Fe.lookahead||Ie!==An&&666!==Fe.status){let Ut=Fe.strategy===Ni?((P,Ie)=>{let he;for(;;){if(0===P.lookahead&&(Sn(P),0===P.lookahead)){if(Ie===An)return 1;break}if(P.match_length=0,he=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++,he&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2})(Fe,Ie):Fe.strategy===Ti?((P,Ie)=>{let he,Ge,Fe,ht;const Ut=P.window;for(;;){if(P.lookahead<=258){if(Sn(P),P.lookahead<=258&&Ie===An)return 1;if(0===P.lookahead)break}if(P.match_length=0,P.lookahead>=3&&P.strstart>0&&(Fe=P.strstart-1,Ge=Ut[Fe],Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe])){ht=P.strstart+258;do{}while(Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&FeP.lookahead&&(P.match_length=P.lookahead)}if(P.match_length>=3?(he=Qt(P,1,P.match_length-3),P.lookahead-=P.match_length,P.strstart+=P.match_length,P.match_length=0):(he=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++),he&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2})(Fe,Ie):Or[Fe.level].func(Fe,Ie);if((3===Ut||4===Ut)&&(Fe.status=666),1===Ut||3===Ut)return 0===P.avail_out&&(Fe.last_flush=-1),Ot;if(2===Ut&&(Ie===lt?cn(Fe):Ie!==pt&&(ze(Fe,0,0,!1),Ie===ct&&(qi(Fe.head),0===Fe.lookahead&&(Fe.strstart=0,Fe.block_start=0,Fe.insert=0))),$i(P),0===P.avail_out))return Fe.last_flush=-1,Ot}return Ie!==He?Ot:Fe.wrap<=0?un:(2===Fe.wrap?(Gn(Fe,255&P.adler),Gn(Fe,P.adler>>8&255),Gn(Fe,P.adler>>16&255),Gn(Fe,P.adler>>24&255),Gn(Fe,255&P.total_in),Gn(Fe,P.total_in>>8&255),Gn(Fe,P.total_in>>16&255),Gn(Fe,P.total_in>>24&255)):(ur(Fe,P.adler>>>16),ur(Fe,65535&P.adler)),$i(P),Fe.wrap>0&&(Fe.wrap=-Fe.wrap),0!==Fe.pending?Ot:un)},kr_deflateEnd=P=>{if(!P||!P.state)return on;const Ie=P.state.status;return 42!==Ie&&69!==Ie&&73!==Ie&&91!==Ie&&103!==Ie&&113!==Ie&&666!==Ie?bi(P,on):(P.state=null,113===Ie?bi(P,On):Ot)},kr_deflateSetDictionary=(P,Ie)=>{let he=Ie.length;if(!P||!P.state)return on;const Ge=P.state,Fe=Ge.wrap;if(2===Fe||1===Fe&&42!==Ge.status||Ge.lookahead)return on;if(1===Fe&&(P.adler=mt(P.adler,Ie,he,0)),Ge.wrap=0,he>=Ge.w_size){0===Fe&&(qi(Ge.head),Ge.strstart=0,Ge.block_start=0,Ge.insert=0);let bn=new Uint8Array(Ge.w_size);bn.set(Ie.subarray(he-Ge.w_size,he),0),Ie=bn,he=Ge.w_size}const ht=P.avail_in,Ut=P.next_in,kt=P.input;for(P.avail_in=he,P.next_in=0,P.input=Ie,Sn(Ge);Ge.lookahead>=3;){let bn=Ge.strstart,wt=Ge.lookahead-2;do{Ge.ins_h=Fn(Ge,Ge.ins_h,Ge.window[bn+3-1]),Ge.prev[bn&Ge.w_mask]=Ge.head[Ge.ins_h],Ge.head[Ge.ins_h]=bn,bn++}while(--wt);Ge.strstart=bn,Ge.lookahead=2,Sn(Ge)}return Ge.strstart+=Ge.lookahead,Ge.block_start=Ge.strstart,Ge.insert=Ge.lookahead,Ge.lookahead=0,Ge.match_length=Ge.prev_length=2,Ge.match_available=0,P.next_in=Ut,P.input=kt,P.avail_in=ht,Ge.wrap=Fe,Ot};const Jr=(P,Ie)=>Object.prototype.hasOwnProperty.call(P,Ie);var si_assign=function(P){const Ie=Array.prototype.slice.call(arguments,1);for(;Ie.length;){const he=Ie.shift();if(he){if("object"!=typeof he)throw new TypeError(he+"must be non-object");for(const Ge in he)Jr(he,Ge)&&(P[Ge]=he[Ge])}}return P},si_flattenChunks=P=>{let Ie=0;for(let Ge=0,Fe=P.length;Ge=252?6:P>=248?5:P>=240?4:P>=224?3:P>=192?2:1;Er[254]=Er[254]=1;var ve_string2buf=P=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(P);let Ie,he,Ge,Fe,ht,Ut=P.length,kt=0;for(Fe=0;Fe>>6,Ie[ht++]=128|63&he):he<65536?(Ie[ht++]=224|he>>>12,Ie[ht++]=128|he>>>6&63,Ie[ht++]=128|63&he):(Ie[ht++]=240|he>>>18,Ie[ht++]=128|he>>>12&63,Ie[ht++]=128|he>>>6&63,Ie[ht++]=128|63&he);return Ie},ve_buf2string=(P,Ie)=>{const he=Ie||P.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(P.subarray(0,Ie));let Ge,Fe;const ht=new Array(2*he);for(Fe=0,Ge=0;Ge4)ht[Fe++]=65533,Ge+=kt-1;else{for(Ut&=2===kt?31:3===kt?15:7;kt>1&&Ge1?ht[Fe++]=65533:Ut<65536?ht[Fe++]=Ut:(Ut-=65536,ht[Fe++]=55296|Ut>>10&1023,ht[Fe++]=56320|1023&Ut)}}return((P,Ie)=>{if(Ie<65534&&P.subarray&&zr)return String.fromCharCode.apply(null,P.length===Ie?P:P.subarray(0,Ie));let he="";for(let Ge=0;Ge{(Ie=Ie||P.length)>P.length&&(Ie=P.length);let he=Ie-1;for(;he>=0&&128==(192&P[he]);)he--;return he<0||0===he?Ie:he+Er[P[he]]>Ie?he:Ie},Nt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const nn=Object.prototype.toString,{Z_NO_FLUSH:In,Z_SYNC_FLUSH:ni,Z_FULL_FLUSH:di,Z_FINISH:ai,Z_OK:hi,Z_STREAM_END:Ei,Z_DEFAULT_COMPRESSION:ki,Z_DEFAULT_STRATEGY:xn,Z_DEFLATED:Kr}=re;function rr(P){this.options=si_assign({level:ki,method:Kr,chunkSize:16384,windowBits:15,memLevel:8,strategy:xn},P||{});let Ie=this.options;Ie.raw&&Ie.windowBits>0?Ie.windowBits=-Ie.windowBits:Ie.gzip&&Ie.windowBits>0&&Ie.windowBits<16&&(Ie.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nt,this.strm.avail_out=0;let he=kr_deflateInit2(this.strm,Ie.level,Ie.method,Ie.windowBits,Ie.memLevel,Ie.strategy);if(he!==hi)throw new Error(ee[he]);if(Ie.header&&kr_deflateSetHeader(this.strm,Ie.header),Ie.dictionary){let Ge;if(Ge="string"==typeof Ie.dictionary?ve_string2buf(Ie.dictionary):"[object ArrayBuffer]"===nn.call(Ie.dictionary)?new Uint8Array(Ie.dictionary):Ie.dictionary,he=kr_deflateSetDictionary(this.strm,Ge),he!==hi)throw new Error(ee[he]);this._dict_set=!0}}function xr(P,Ie){const he=new rr(Ie);if(he.push(P,!0),he.err)throw he.msg||ee[he.err];return he.result}rr.prototype.push=function(P,Ie){const he=this.strm,Ge=this.options.chunkSize;let Fe,ht;if(this.ended)return!1;for(ht=Ie===~~Ie?Ie:!0===Ie?ai:In,he.input="string"==typeof P?ve_string2buf(P):"[object ArrayBuffer]"===nn.call(P)?new Uint8Array(P):P,he.next_in=0,he.avail_in=he.input.length;;)if(0===he.avail_out&&(he.output=new Uint8Array(Ge),he.next_out=0,he.avail_out=Ge),(ht===ni||ht===di)&&he.avail_out<=6)this.onData(he.output.subarray(0,he.next_out)),he.avail_out=0;else{if(Fe=kr_deflate(he,ht),Fe===Ei)return he.next_out>0&&this.onData(he.output.subarray(0,he.next_out)),Fe=kr_deflateEnd(this.strm),this.onEnd(Fe),this.ended=!0,Fe===hi;if(0!==he.avail_out){if(ht>0&&he.next_out>0)this.onData(he.output.subarray(0,he.next_out)),he.avail_out=0;else if(0===he.avail_in)break}else this.onData(he.output)}return!0},rr.prototype.onData=function(P){this.chunks.push(P)},rr.prototype.onEnd=function(P){P===hi&&(this.result=si_flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};var pe={Deflate:rr,deflate:xr,deflateRaw:function(P,Ie){return(Ie=Ie||{}).raw=!0,xr(P,Ie)},gzip:function(P,Ie){return(Ie=Ie||{}).gzip=!0,xr(P,Ie)},constants:re},rt=function(Ie,he){let Ge,Fe,ht,Ut,kt,bn,wt,$t,Ii,hn,en,Nn,er,Ci,ui,Ai,gi,fn,wi,wr,Cn,Pi,Fi,ri;const Jn=Ie.state;Ge=Ie.next_in,Fi=Ie.input,Fe=Ge+(Ie.avail_in-5),ht=Ie.next_out,ri=Ie.output,Ut=ht-(he-Ie.avail_out),kt=ht+(Ie.avail_out-257),bn=Jn.dmax,wt=Jn.wsize,$t=Jn.whave,Ii=Jn.wnext,hn=Jn.window,en=Jn.hold,Nn=Jn.bits,er=Jn.lencode,Ci=Jn.distcode,ui=(1<>>24,en>>>=fn,Nn-=fn,fn=gi>>>16&255,0===fn)ri[ht++]=65535&gi;else{if(!(16&fn)){if(0==(64&fn)){gi=er[(65535&gi)+(en&(1<>>=fn,Nn-=fn),Nn<15&&(en+=Fi[Ge++]<>>24,en>>>=fn,Nn-=fn,fn=gi>>>16&255,!(16&fn)){if(0==(64&fn)){gi=Ci[(65535&gi)+(en&(1<bn){Ie.msg="invalid distance too far back",Jn.mode=30;break e}if(en>>>=fn,Nn-=fn,fn=ht-Ut,wr>fn){if(fn=wr-fn,fn>$t&&Jn.sane){Ie.msg="invalid distance too far back",Jn.mode=30;break e}if(Cn=0,Pi=hn,0===Ii){if(Cn+=wt-fn,fn2;)ri[ht++]=Pi[Cn++],ri[ht++]=Pi[Cn++],ri[ht++]=Pi[Cn++],wi-=3;wi&&(ri[ht++]=Pi[Cn++],wi>1&&(ri[ht++]=Pi[Cn++]))}else{Cn=ht-wr;do{ri[ht++]=ri[Cn++],ri[ht++]=ri[Cn++],ri[ht++]=ri[Cn++],wi-=3}while(wi>2);wi&&(ri[ht++]=ri[Cn++],wi>1&&(ri[ht++]=ri[Cn++]))}break}}break}}while(Ge>3,Ge-=wi,Nn-=wi<<3,en&=(1<{const bn=kt.bits;let gi,fn,wi,wr,Cn,ri,wt=0,$t=0,Ii=0,hn=0,en=0,Nn=0,er=0,Ci=0,ui=0,Ai=0,Pi=null,Fi=0;const Jn=new Uint16Array(16),no=new Uint16Array(16);let fo,Is,io,Ro=null,Za=0;for(wt=0;wt<=15;wt++)Jn[wt]=0;for($t=0;$t=1&&0===Jn[hn];hn--);if(en>hn&&(en=hn),0===hn)return Fe[ht++]=20971520,Fe[ht++]=20971520,kt.bits=1,0;for(Ii=1;Ii0&&(0===P||1!==hn))return-1;for(no[1]=0,wt=1;wt<15;wt++)no[wt+1]=no[wt]+Jn[wt];for($t=0;$t852||2===P&&ui>592)return 1;for(;;){fo=wt-er,Ut[$t]ri?(Is=Ro[Za+Ut[$t]],io=Pi[Fi+Ut[$t]]):(Is=96,io=0),gi=1<>er)+fn]=fo<<24|Is<<16|io|0}while(0!==fn);for(gi=1<>=1;if(0!==gi?(Ai&=gi-1,Ai+=gi):Ai=0,$t++,0==--Jn[wt]){if(wt===hn)break;wt=Ie[he+Ut[$t]]}if(wt>en&&(Ai&wr)!==wi){for(0===er&&(er=en),Cn+=Ii,Nn=wt-er,Ci=1<852||2===P&&ui>592)return 1;wi=Ai&wr,Fe[wi]=en<<24|Nn<<16|Cn-ht|0}}return 0!==Ai&&(Fe[Cn+Ai]=wt-er<<24|64<<16|0),kt.bits=en,0};const{Z_FINISH:fr,Z_BLOCK:Xi,Z_TREES:gr,Z_OK:zi,Z_STREAM_END:Pr,Z_NEED_DICT:ys,Z_STREAM_ERROR:Yi,Z_DATA_ERROR:Ur,Z_MEM_ERROR:bs,Z_BUF_ERROR:Cs,Z_DEFLATED:mn}=re,Ce=P=>(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24);function Te(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ve=P=>{if(!P||!P.state)return Yi;const Ie=P.state;return P.total_in=P.total_out=Ie.total=0,P.msg="",Ie.wrap&&(P.adler=1&Ie.wrap),Ie.mode=1,Ie.last=0,Ie.havedict=0,Ie.dmax=32768,Ie.head=null,Ie.hold=0,Ie.bits=0,Ie.lencode=Ie.lendyn=new Int32Array(852),Ie.distcode=Ie.distdyn=new Int32Array(592),Ie.sane=1,Ie.back=-1,zi},it=P=>{if(!P||!P.state)return Yi;const Ie=P.state;return Ie.wsize=0,Ie.whave=0,Ie.wnext=0,Ve(P)},bt=(P,Ie)=>{let he;if(!P||!P.state)return Yi;const Ge=P.state;return Ie<0?(he=0,Ie=-Ie):(he=1+(Ie>>4),Ie<48&&(Ie&=15)),Ie&&(Ie<8||Ie>15)?Yi:(null!==Ge.window&&Ge.wbits!==Ie&&(Ge.window=null),Ge.wrap=he,Ge.wbits=Ie,it(P))},zt=(P,Ie)=>{if(!P)return Yi;const he=new Te;P.state=he,he.window=null;const Ge=bt(P,Ie);return Ge!==zi&&(P.state=null),Ge};let Dn,vi,fi=!0;const Di=P=>{if(fi){Dn=new Int32Array(512),vi=new Int32Array(32);let Ie=0;for(;Ie<144;)P.lens[Ie++]=8;for(;Ie<256;)P.lens[Ie++]=9;for(;Ie<280;)P.lens[Ie++]=7;for(;Ie<288;)P.lens[Ie++]=8;for(xi(1,P.lens,0,288,Dn,0,P.work,{bits:9}),Ie=0;Ie<32;)P.lens[Ie++]=5;xi(2,P.lens,0,32,vi,0,P.work,{bits:5}),fi=!1}P.lencode=Dn,P.lenbits=9,P.distcode=vi,P.distbits=5},hs=(P,Ie,he,Ge)=>{let Fe;const ht=P.state;return null===ht.window&&(ht.wsize=1<=ht.wsize?(ht.window.set(Ie.subarray(he-ht.wsize,he),0),ht.wnext=0,ht.whave=ht.wsize):(Fe=ht.wsize-ht.wnext,Fe>Ge&&(Fe=Ge),ht.window.set(Ie.subarray(he-Ge,he-Ge+Fe),ht.wnext),(Ge-=Fe)?(ht.window.set(Ie.subarray(he-Ge,he),0),ht.wnext=Ge,ht.whave=ht.wsize):(ht.wnext+=Fe,ht.wnext===ht.wsize&&(ht.wnext=0),ht.whave{let he,Ge,Fe,ht,Ut,kt,bn,wt,$t,Ii,hn,en,Nn,er,ui,Ai,gi,fn,wi,wr,Cn,Pi,Ci=0;const Fi=new Uint8Array(4);let ri,Jn;const no=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!P||!P.state||!P.output||!P.input&&0!==P.avail_in)return Yi;he=P.state,12===he.mode&&(he.mode=13),Ut=P.next_out,Fe=P.output,bn=P.avail_out,ht=P.next_in,Ge=P.input,kt=P.avail_in,wt=he.hold,$t=he.bits,Ii=kt,hn=bn,Pi=zi;e:for(;;)switch(he.mode){case 1:if(0===he.wrap){he.mode=13;break}for(;$t<16;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(2&he.wrap&&35615===wt){he.check=0,Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0),wt=0,$t=0,he.mode=2;break}if(he.flags=0,he.head&&(he.head.done=!1),!(1&he.wrap)||(((255&wt)<<8)+(wt>>8))%31){P.msg="incorrect header check",he.mode=30;break}if((15&wt)!==mn){P.msg="unknown compression method",he.mode=30;break}if(wt>>>=4,$t-=4,Cn=8+(15&wt),0===he.wbits)he.wbits=Cn;else if(Cn>he.wbits){P.msg="invalid window size",he.mode=30;break}he.dmax=1<>8&1),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0,he.mode=3;case 3:for(;$t<32;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}he.head&&(he.head.time=wt),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,Fi[2]=wt>>>16&255,Fi[3]=wt>>>24&255,he.check=Se(he.check,Fi,4,0)),wt=0,$t=0,he.mode=4;case 4:for(;$t<16;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}he.head&&(he.head.xflags=255&wt,he.head.os=wt>>8),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0,he.mode=5;case 5:if(1024&he.flags){for(;$t<16;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}he.length=wt,he.head&&(he.head.extra_len=wt),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0}else he.head&&(he.head.extra=null);he.mode=6;case 6:if(1024&he.flags&&(en=he.length,en>kt&&(en=kt),en&&(he.head&&(Cn=he.head.extra_len-he.length,he.head.extra||(he.head.extra=new Uint8Array(he.head.extra_len)),he.head.extra.set(Ge.subarray(ht,ht+en),Cn)),512&he.flags&&(he.check=Se(he.check,Ge,en,ht)),kt-=en,ht+=en,he.length-=en),he.length))break e;he.length=0,he.mode=7;case 7:if(2048&he.flags){if(0===kt)break e;en=0;do{Cn=Ge[ht+en++],he.head&&Cn&&he.length<65536&&(he.head.name+=String.fromCharCode(Cn))}while(Cn&&en>9&1,he.head.done=!0),P.adler=he.check=0,he.mode=12;break;case 10:for(;$t<32;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}P.adler=he.check=Ce(wt),wt=0,$t=0,he.mode=11;case 11:if(0===he.havedict)return P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,ys;P.adler=he.check=1,he.mode=12;case 12:if(Ie===Xi||Ie===gr)break e;case 13:if(he.last){wt>>>=7&$t,$t-=7&$t,he.mode=27;break}for(;$t<3;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}switch(he.last=1&wt,wt>>>=1,$t-=1,3&wt){case 0:he.mode=14;break;case 1:if(Di(he),he.mode=20,Ie===gr){wt>>>=2,$t-=2;break e}break;case 2:he.mode=17;break;case 3:P.msg="invalid block type",he.mode=30}wt>>>=2,$t-=2;break;case 14:for(wt>>>=7&$t,$t-=7&$t;$t<32;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if((65535&wt)!=(wt>>>16^65535)){P.msg="invalid stored block lengths",he.mode=30;break}if(he.length=65535&wt,wt=0,$t=0,he.mode=15,Ie===gr)break e;case 15:he.mode=16;case 16:if(en=he.length,en){if(en>kt&&(en=kt),en>bn&&(en=bn),0===en)break e;Fe.set(Ge.subarray(ht,ht+en),Ut),kt-=en,ht+=en,bn-=en,Ut+=en,he.length-=en;break}he.mode=12;break;case 17:for(;$t<14;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(he.nlen=257+(31&wt),wt>>>=5,$t-=5,he.ndist=1+(31&wt),wt>>>=5,$t-=5,he.ncode=4+(15&wt),wt>>>=4,$t-=4,he.nlen>286||he.ndist>30){P.msg="too many length or distance symbols",he.mode=30;break}he.have=0,he.mode=18;case 18:for(;he.have>>=3,$t-=3}for(;he.have<19;)he.lens[no[he.have++]]=0;if(he.lencode=he.lendyn,he.lenbits=7,ri={bits:he.lenbits},Pi=xi(0,he.lens,0,19,he.lencode,0,he.work,ri),he.lenbits=ri.bits,Pi){P.msg="invalid code lengths set",he.mode=30;break}he.have=0,he.mode=19;case 19:for(;he.have>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(gi<16)wt>>>=ui,$t-=ui,he.lens[he.have++]=gi;else{if(16===gi){for(Jn=ui+2;$t>>=ui,$t-=ui,0===he.have){P.msg="invalid bit length repeat",he.mode=30;break}Cn=he.lens[he.have-1],en=3+(3&wt),wt>>>=2,$t-=2}else if(17===gi){for(Jn=ui+3;$t>>=ui,$t-=ui,Cn=0,en=3+(7&wt),wt>>>=3,$t-=3}else{for(Jn=ui+7;$t>>=ui,$t-=ui,Cn=0,en=11+(127&wt),wt>>>=7,$t-=7}if(he.have+en>he.nlen+he.ndist){P.msg="invalid bit length repeat",he.mode=30;break}for(;en--;)he.lens[he.have++]=Cn}}if(30===he.mode)break;if(0===he.lens[256]){P.msg="invalid code -- missing end-of-block",he.mode=30;break}if(he.lenbits=9,ri={bits:he.lenbits},Pi=xi(1,he.lens,0,he.nlen,he.lencode,0,he.work,ri),he.lenbits=ri.bits,Pi){P.msg="invalid literal/lengths set",he.mode=30;break}if(he.distbits=6,he.distcode=he.distdyn,ri={bits:he.distbits},Pi=xi(2,he.lens,he.nlen,he.ndist,he.distcode,0,he.work,ri),he.distbits=ri.bits,Pi){P.msg="invalid distances set",he.mode=30;break}if(he.mode=20,Ie===gr)break e;case 20:he.mode=21;case 21:if(kt>=6&&bn>=258){P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,rt(P,hn),Ut=P.next_out,Fe=P.output,bn=P.avail_out,ht=P.next_in,Ge=P.input,kt=P.avail_in,wt=he.hold,$t=he.bits,12===he.mode&&(he.back=-1);break}for(he.back=0;Ci=he.lencode[wt&(1<>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(Ai&&0==(240&Ai)){for(fn=ui,wi=Ai,wr=gi;Ci=he.lencode[wr+((wt&(1<>fn)],ui=Ci>>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(fn+ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}wt>>>=fn,$t-=fn,he.back+=fn}if(wt>>>=ui,$t-=ui,he.back+=ui,he.length=gi,0===Ai){he.mode=26;break}if(32&Ai){he.back=-1,he.mode=12;break}if(64&Ai){P.msg="invalid literal/length code",he.mode=30;break}he.extra=15&Ai,he.mode=22;case 22:if(he.extra){for(Jn=he.extra;$t>>=he.extra,$t-=he.extra,he.back+=he.extra}he.was=he.length,he.mode=23;case 23:for(;Ci=he.distcode[wt&(1<>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(0==(240&Ai)){for(fn=ui,wi=Ai,wr=gi;Ci=he.distcode[wr+((wt&(1<>fn)],ui=Ci>>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(fn+ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}wt>>>=fn,$t-=fn,he.back+=fn}if(wt>>>=ui,$t-=ui,he.back+=ui,64&Ai){P.msg="invalid distance code",he.mode=30;break}he.offset=gi,he.extra=15&Ai,he.mode=24;case 24:if(he.extra){for(Jn=he.extra;$t>>=he.extra,$t-=he.extra,he.back+=he.extra}if(he.offset>he.dmax){P.msg="invalid distance too far back",he.mode=30;break}he.mode=25;case 25:if(0===bn)break e;if(en=hn-bn,he.offset>en){if(en=he.offset-en,en>he.whave&&he.sane){P.msg="invalid distance too far back",he.mode=30;break}en>he.wnext?(en-=he.wnext,Nn=he.wsize-en):Nn=he.wnext-en,en>he.length&&(en=he.length),er=he.window}else er=Fe,Nn=Ut-he.offset,en=he.length;en>bn&&(en=bn),bn-=en,he.length-=en;do{Fe[Ut++]=er[Nn++]}while(--en);0===he.length&&(he.mode=21);break;case 26:if(0===bn)break e;Fe[Ut++]=he.length,bn--,he.mode=21;break;case 27:if(he.wrap){for(;$t<32;){if(0===kt)break e;kt--,wt|=Ge[ht++]<<$t,$t+=8}if(hn-=bn,P.total_out+=hn,he.total+=hn,hn&&(P.adler=he.check=he.flags?Se(he.check,Fe,hn,Ut-hn):mt(he.check,Fe,hn,Ut-hn)),hn=bn,(he.flags?wt:Ce(wt))!==he.check){P.msg="incorrect data check",he.mode=30;break}wt=0,$t=0}he.mode=28;case 28:if(he.wrap&&he.flags){for(;$t<32;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(wt!==(4294967295&he.total)){P.msg="incorrect length check",he.mode=30;break}wt=0,$t=0}he.mode=29;case 29:Pi=Pr;break e;case 30:Pi=Ur;break e;case 31:return bs;default:return Yi}return P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,(he.wsize||hn!==P.avail_out&&he.mode<30&&(he.mode<27||Ie!==fr))&&hs(P,P.output,P.next_out,hn-P.avail_out),Ii-=P.avail_in,hn-=P.avail_out,P.total_in+=Ii,P.total_out+=hn,he.total+=hn,he.wrap&&hn&&(P.adler=he.check=he.flags?Se(he.check,Fe,hn,P.next_out-hn):mt(he.check,Fe,hn,P.next_out-hn)),P.data_type=he.bits+(he.last?64:0)+(12===he.mode?128:0)+(20===he.mode||15===he.mode?256:0),(0===Ii&&0===hn||Ie===fr)&&Pi===zi&&(Pi=Cs),Pi},Ds_inflateEnd=P=>{if(!P||!P.state)return Yi;let Ie=P.state;return Ie.window&&(Ie.window=null),P.state=null,zi},Ds_inflateGetHeader=(P,Ie)=>{if(!P||!P.state)return Yi;const he=P.state;return 0==(2&he.wrap)?Yi:(he.head=Ie,Ie.done=!1,zi)},Ds_inflateSetDictionary=(P,Ie)=>{const he=Ie.length;let Ge,Fe,ht;return P&&P.state&&(Ge=P.state,0===Ge.wrap||11===Ge.mode)?11===Ge.mode&&(Fe=1,Fe=mt(Fe,Ie,he,0),Fe!==Ge.check)?Ur:(ht=hs(P,Ie,he,he),ht?(Ge.mode=31,bs):(Ge.havedict=1,zi)):Yi},da=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const to=Object.prototype.toString,{Z_NO_FLUSH:uo,Z_FINISH:co,Z_OK:Ts,Z_STREAM_END:_o,Z_NEED_DICT:Hs,Z_STREAM_ERROR:js,Z_DATA_ERROR:ha,Z_MEM_ERROR:lr}=re;function vo(P){this.options=si_assign({chunkSize:65536,windowBits:15,to:""},P||{});const Ie=this.options;Ie.raw&&Ie.windowBits>=0&&Ie.windowBits<16&&(Ie.windowBits=-Ie.windowBits,0===Ie.windowBits&&(Ie.windowBits=-15)),Ie.windowBits>=0&&Ie.windowBits<16&&!(P&&P.windowBits)&&(Ie.windowBits+=32),Ie.windowBits>15&&Ie.windowBits<48&&0==(15&Ie.windowBits)&&(Ie.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nt,this.strm.avail_out=0;let he=Ds_inflateInit2(this.strm,Ie.windowBits);if(he!==Ts)throw new Error(ee[he]);if(this.header=new da,Ds_inflateGetHeader(this.strm,this.header),Ie.dictionary&&("string"==typeof Ie.dictionary?Ie.dictionary=ve_string2buf(Ie.dictionary):"[object ArrayBuffer]"===to.call(Ie.dictionary)&&(Ie.dictionary=new Uint8Array(Ie.dictionary)),Ie.raw&&(he=Ds_inflateSetDictionary(this.strm,Ie.dictionary),he!==Ts)))throw new Error(ee[he])}function Ao(P,Ie){const he=new vo(Ie);if(he.push(P),he.err)throw he.msg||ee[he.err];return he.result}vo.prototype.push=function(P,Ie){const he=this.strm,Ge=this.options.chunkSize,Fe=this.options.dictionary;let ht,Ut,kt;if(this.ended)return!1;for(Ut=Ie===~~Ie?Ie:!0===Ie?co:uo,he.input="[object ArrayBuffer]"===to.call(P)?new Uint8Array(P):P,he.next_in=0,he.avail_in=he.input.length;;){for(0===he.avail_out&&(he.output=new Uint8Array(Ge),he.next_out=0,he.avail_out=Ge),ht=Ds_inflate(he,Ut),ht===Hs&&Fe&&(ht=Ds_inflateSetDictionary(he,Fe),ht===Ts?ht=Ds_inflate(he,Ut):ht===ha&&(ht=Hs));he.avail_in>0&&ht===_o&&he.state.wrap>0&&0!==P[he.next_in];)Ds_inflateReset(he),ht=Ds_inflate(he,Ut);switch(ht){case js:case ha:case Hs:case lr:return this.onEnd(ht),this.ended=!0,!1}if(kt=he.avail_out,he.next_out&&(0===he.avail_out||ht===_o))if("string"===this.options.to){let bn=ve_utf8border(he.output,he.next_out),wt=he.next_out-bn,$t=ve_buf2string(he.output,bn);he.next_out=wt,he.avail_out=Ge-wt,wt&&he.output.set(he.output.subarray(bn,bn+wt),0),this.onData($t)}else this.onData(he.output.length===he.next_out?he.output:he.output.subarray(0,he.next_out));if(ht!==Ts||0!==kt){if(ht===_o)return ht=Ds_inflateEnd(this.strm),this.onEnd(ht),this.ended=!0,!0;if(0===he.avail_in)break}}return!0},vo.prototype.onData=function(P){this.chunks.push(P)},vo.prototype.onEnd=function(P){P===Ts&&(this.result="string"===this.options.to?this.chunks.join(""):si_flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};var Gd={Inflate:vo,inflate:Ao,inflateRaw:function(P,Ie){return(Ie=Ie||{}).raw=!0,Ao(P,Ie)},ungzip:Ao,constants:re};const{Deflate:yr,deflate:Oo,deflateRaw:bo,gzip:Yd}=pe,{Inflate:jl,inflate:os,inflateRaw:xs,ungzip:Ya}=Gd;var Co=yr,ho=Oo,fa=bo,Qa=Yd,Xa=jl,Wl=os,zl=xs,pa=Ya,Yr=re,ma={Deflate:yr,deflate:Oo,deflateRaw:bo,gzip:Yd,Inflate:jl,inflate:os,inflateRaw:xs,ungzip:Ya,constants:re}},8210:ye=>{"use strict";ye.exports=JSON.parse('{"license":"The following data (prefixes and units) was generated by the UCUM LHC code from the UCUM data and selected LOINC combinations of UCUM units. The license for the UCUM LHC code (demo and library code as well as the combined units) is located at https://github.com/lhncbc/ucum-lhc/blob/LICENSE.md.","prefixes":{"config":["code_","ciCode_","name_","printSymbol_","value_","exp_"],"data":[["E","EX","exa","E",1000000000000000000,"18"],["G","GA","giga","G",1000000000,"9"],["Gi","GIB","gibi","Gi",1073741824,null],["Ki","KIB","kibi","Ki",1024,null],["M","MA","mega","M",1000000,"6"],["Mi","MIB","mebi","Mi",1048576,null],["P","PT","peta","P",1000000000000000,"15"],["T","TR","tera","T",1000000000000,"12"],["Ti","TIB","tebi","Ti",1099511627776,null],["Y","YA","yotta","Y",1e+24,"24"],["Z","ZA","zetta","Z",1e+21,"21"],["a","A","atto","a",1e-18,"-18"],["c","C","centi","c",0.01,"-2"],["d","D","deci","d",0.1,"-1"],["da","DA","deka","da",10,"1"],["f","F","femto","f",1e-15,"-15"],["h","H","hecto","h",100,"2"],["k","K","kilo","k",1000,"3"],["m","M","milli","m",0.001,"-3"],["n","N","nano","n",1e-9,"-9"],["p","P","pico","p",1e-12,"-12"],["u","U","micro","\u03bc",0.000001,"-6"],["y","YO","yocto","y",1.0000000000000001e-24,"-24"],["z","ZO","zepto","z",1e-21,"-21"]]},"units":{"config":["isBase_","name_","csCode_","ciCode_","property_","magnitude_",["dim_","dimVec_"],"printSymbol_","class_","isMetric_","variable_","cnv_","cnvPfx_","isSpecial_","isArbitrary_","moleExp_","synonyms_","source_","loincProperty_","category_","guidance_","csUnitString_","ciUnitString_","baseFactorStr_","baseFactor_","defError_"],"data":[[true,"meter","m","M","length",1,[1,0,0,0,0,0,0],"m",null,false,"L",null,1,false,false,0,"meters; metres; distance","UCUM","Len","Clinical","unit of length = 1.09361 yards",null,null,null,null,false],[true,"second - time","s","S","time",1,[0,1,0,0,0,0,0],"s",null,false,"T",null,1,false,false,0,"seconds","UCUM","Time","Clinical","",null,null,null,null,false],[true,"gram","g","G","mass",1,[0,0,1,0,0,0,0],"g",null,false,"M",null,1,false,false,0,"grams; gm","UCUM","Mass","Clinical","",null,null,null,null,false],[true,"radian","rad","RAD","plane angle",1,[0,0,0,1,0,0,0],"rad",null,false,"A",null,1,false,false,0,"radians","UCUM","Angle","Clinical","unit of angular measure where 1 radian = 1/2\u03c0 turn = 57.296 degrees. ",null,null,null,null,false],[true,"degree Kelvin","K","K","temperature",1,[0,0,0,0,1,0,0],"K",null,false,"C",null,1,false,false,0,"Kelvin; degrees","UCUM","Temp","Clinical","absolute, thermodynamic temperature scale ",null,null,null,null,false],[true,"coulomb","C","C","electric charge",1,[0,0,0,0,0,1,0],"C",null,false,"Q",null,1,false,false,0,"coulombs","UCUM","","Clinical","defined as amount of 1 electron charge = 6.2415093\xd710^18 e, and equivalent to 1 Ampere-second",null,null,null,null,false],[true,"candela","cd","CD","luminous intensity",1,[0,0,0,0,0,0,1],"cd",null,false,"F",null,1,false,false,0,"candelas","UCUM","","Clinical","SI base unit of luminous intensity",null,null,null,null,false],[false,"the number ten for arbitrary powers","10*","10*","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10^; 10 to the arbitrary powers","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number ten for arbitrary powers","10^","10^","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10*; 10 to the arbitrary power","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number pi","[pi]","[PI]","number",3.141592653589793,[0,0,0,0,0,0,0],"\u03c0","dimless",false,null,null,1,false,false,0,"\u03c0","UCUM","","Constant","a mathematical constant; the ratio of a circle\'s circumference to its diameter \u2248 3.14159","1","1","3.1415926535897932384626433832795028841971693993751058209749445923",3.141592653589793,false],[false,"","%","%","fraction",0.01,[0,0,0,0,0,0,0],"%","dimless",false,null,null,1,false,false,0,"percents","UCUM","FR; NFR; MFR; CFR; SFR Rto; etc. ","Clinical","","10*-2","10*-2","1",1,false],[false,"parts per thousand","[ppth]","[PPTH]","fraction",0.001,[0,0,0,0,0,0,0],"ppth","dimless",false,null,null,1,false,false,0,"ppth; 10^-3","UCUM","MCnc; MCnt","Clinical","[ppth] is often used in solution concentrations as 1 g/L or 1 g/kg.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-3","10*-3","1",1,false],[false,"parts per million","[ppm]","[PPM]","fraction",0.000001,[0,0,0,0,0,0,0],"ppm","dimless",false,null,null,1,false,false,0,"ppm; 10^-6","UCUM","MCnt; MCnc; SFr","Clinical","[ppm] is often used in solution concentrations as 1 mg/L or 1 mg/kg. Also used to express mole fractions as 1 mmol/mol.\\n\\n[ppm] is also used in nuclear magnetic resonance (NMR) to represent chemical shift - the difference of a measured frequency in parts per million from the reference frequency.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-6","10*-6","1",1,false],[false,"parts per billion","[ppb]","[PPB]","fraction",1e-9,[0,0,0,0,0,0,0],"ppb","dimless",false,null,null,1,false,false,0,"ppb; 10^-9","UCUM","MCnt; MCnc; SFr","Clinical","[ppb] is often used in solution concentrations as 1 ug/L or 1 ug/kg. Also used to express mole fractions as 1 umol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-9","10*-9","1",1,false],[false,"parts per trillion","[pptr]","[PPTR]","fraction",1e-12,[0,0,0,0,0,0,0],"pptr","dimless",false,null,null,1,false,false,0,"pptr; 10^-12","UCUM","MCnt; MCnc; SFr","Clinical","[pptr] is often used in solution concentrations as 1 ng/L or 1 ng/kg. Also used to express mole fractions as 1 nmol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-12","10*-12","1",1,false],[false,"mole","mol","MOL","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"mol","si",true,null,null,1,false,false,1,"moles","UCUM","Sub","Clinical","Measure the number of molecules ","10*23","10*23","6.0221367",6.0221367,false],[false,"steradian - solid angle","sr","SR","solid angle",1,[0,0,0,2,0,0,0],"sr","si",true,null,null,1,false,false,0,"square radian; rad2; rad^2","UCUM","Angle","Clinical","unit of solid angle in three-dimensional geometry analagous to radian; used in photometry which measures the perceived brightness of object by human eye (e.g. radiant intensity = watt/steradian)","rad2","RAD2","1",1,false],[false,"hertz","Hz","HZ","frequency",1,[0,-1,0,0,0,0,0],"Hz","si",true,null,null,1,false,false,0,"Herz; frequency; frequencies","UCUM","Freq; Num","Clinical","equal to one cycle per second","s-1","S-1","1",1,false],[false,"newton","N","N","force",1000,[1,-2,1,0,0,0,0],"N","si",true,null,null,1,false,false,0,"Newtons","UCUM","Force","Clinical","unit of force with base units kg.m/s2","kg.m/s2","KG.M/S2","1",1,false],[false,"pascal","Pa","PAL","pressure",1000,[-1,-2,1,0,0,0,0],"Pa","si",true,null,null,1,false,false,0,"pascals","UCUM","Pres","Clinical","standard unit of pressure equal to 1 newton per square meter (N/m2)","N/m2","N/M2","1",1,false],[false,"joule","J","J","energy",1000,[2,-2,1,0,0,0,0],"J","si",true,null,null,1,false,false,0,"joules","UCUM","Enrg","Clinical","unit of energy defined as the work required to move an object 1 m with a force of 1 N (N.m) or an electric charge of 1 C through 1 V (C.V), or to produce 1 W for 1 s (W.s) ","N.m","N.M","1",1,false],[false,"watt","W","W","power",1000,[2,-3,1,0,0,0,0],"W","si",true,null,null,1,false,false,0,"watts","UCUM","EngRat","Clinical","unit of power equal to 1 Joule per second (J/s) = kg\u22c5m2\u22c5s\u22123","J/s","J/S","1",1,false],[false,"Ampere","A","A","electric current",1,[0,-1,0,0,0,1,0],"A","si",true,null,null,1,false,false,0,"Amperes","UCUM","ElpotRat","Clinical","unit of electric current equal to flow rate of electrons equal to 16.2415\xd710^18 elementary charges moving past a boundary in one second or 1 Coulomb/second","C/s","C/S","1",1,false],[false,"volt","V","V","electric potential",1000,[2,-2,1,0,0,-1,0],"V","si",true,null,null,1,false,false,0,"volts","UCUM","Elpot","Clinical","unit of electric potential (voltage) = 1 Joule per Coulomb (J/C)","J/C","J/C","1",1,false],[false,"farad","F","F","electric capacitance",0.001,[-2,2,-1,0,0,2,0],"F","si",true,null,null,1,false,false,0,"farads; electric capacitance","UCUM","","Clinical","CGS unit of electric capacitance with base units C/V (Coulomb per Volt)","C/V","C/V","1",1,false],[false,"ohm","Ohm","OHM","electric resistance",1000,[2,-1,1,0,0,-2,0],"\u03a9","si",true,null,null,1,false,false,0,"\u03a9; resistance; ohms","UCUM","","Clinical","unit of electrical resistance with units of Volt per Ampere","V/A","V/A","1",1,false],[false,"siemens","S","SIE","electric conductance",0.001,[-2,1,-1,0,0,2,0],"S","si",true,null,null,1,false,false,0,"Reciprocal ohm; mho; \u03a9\u22121; conductance","UCUM","","Clinical","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","Ohm-1","OHM-1","1",1,false],[false,"weber","Wb","WB","magnetic flux",1000,[2,-1,1,0,0,-1,0],"Wb","si",true,null,null,1,false,false,0,"magnetic flux; webers","UCUM","","Clinical","unit of magnetic flux equal to Volt second","V.s","V.S","1",1,false],[false,"degree Celsius","Cel","CEL","temperature",1,[0,0,0,0,1,0,0],"\xb0C","si",true,null,"Cel",1,true,false,0,"\xb0C; degrees","UCUM","Temp","Clinical","","K",null,null,1,false],[false,"tesla","T","T","magnetic flux density",1000,[0,-1,1,0,0,-1,0],"T","si",true,null,null,1,false,false,0,"Teslas; magnetic field","UCUM","","Clinical","SI unit of magnetic field strength for magnetic field B equal to 1 Weber/square meter = 1 kg/(s2*A)","Wb/m2","WB/M2","1",1,false],[false,"henry","H","H","inductance",1000,[2,0,1,0,0,-2,0],"H","si",true,null,null,1,false,false,0,"henries; inductance","UCUM","","Clinical","unit of electrical inductance; usually expressed in millihenrys (mH) or microhenrys (uH).","Wb/A","WB/A","1",1,false],[false,"lumen","lm","LM","luminous flux",1,[0,0,0,2,0,0,1],"lm","si",true,null,null,1,false,false,0,"luminous flux; lumens","UCUM","","Clinical","unit of luminous flux defined as 1 lm = 1 cd\u22c5sr (candela times sphere)","cd.sr","CD.SR","1",1,false],[false,"lux","lx","LX","illuminance",1,[-2,0,0,2,0,0,1],"lx","si",true,null,null,1,false,false,0,"illuminance; luxes","UCUM","","Clinical","unit of illuminance equal to one lumen per square meter. ","lm/m2","LM/M2","1",1,false],[false,"becquerel","Bq","BQ","radioactivity",1,[0,-1,0,0,0,0,0],"Bq","si",true,null,null,1,false,false,0,"activity; radiation; becquerels","UCUM","","Clinical","measure of the atomic radiation rate with units s^-1","s-1","S-1","1",1,false],[false,"gray","Gy","GY","energy dose",1,[2,-2,0,0,0,0,0],"Gy","si",true,null,null,1,false,false,0,"absorbed doses; ionizing radiation doses; kerma; grays","UCUM","EngCnt","Clinical","unit of ionizing radiation dose with base units of 1 joule of radiation energy per kilogram of matter","J/kg","J/KG","1",1,false],[false,"sievert","Sv","SV","dose equivalent",1,[2,-2,0,0,0,0,0],"Sv","si",true,null,null,1,false,false,0,"sieverts; radiation dose quantities; equivalent doses; effective dose; operational dose; committed dose","UCUM","","Clinical","SI unit for radiation dose equivalent equal to 1 Joule/kilogram.","J/kg","J/KG","1",1,false],[false,"degree - plane angle","deg","DEG","plane angle",0.017453292519943295,[0,0,0,1,0,0,0],"\xb0","iso1000",false,null,null,1,false,false,0,"\xb0; degree of arc; arc degree; arcdegree; angle","UCUM","Angle","Clinical","one degree is equivalent to \u03c0/180 radians.","[pi].rad/360","[PI].RAD/360","2",2,false],[false,"gon","gon","GON","plane angle",0.015707963267948967,[0,0,0,1,0,0,0],"\u25a1g","iso1000",false,null,null,1,false,false,0,"gon (grade); gons","UCUM","Angle","Nonclinical","unit of plane angle measurement equal to 1/400 circle","deg","DEG","0.9",0.9,false],[false,"arc minute","\'","\'","plane angle",0.0002908882086657216,[0,0,0,1,0,0,0],"\'","iso1000",false,null,null,1,false,false,0,"arcminutes; arcmin; arc minutes; arc mins","UCUM","Angle","Clinical","equal to 1/60 degree; used in optometry and opthamology (e.g. visual acuity tests)","deg/60","DEG/60","1",1,false],[false,"arc second","\'\'","\'\'","plane angle",0.00000484813681109536,[0,0,0,1,0,0,0],"\'\'","iso1000",false,null,null,1,false,false,0,"arcseconds; arcsecs","UCUM","Angle","Clinical","equal to 1/60 arcminute = 1/3600 degree; used in optometry and opthamology (e.g. visual acuity tests)","\'/60","\'/60","1",1,false],[false,"Liters","l","L","volume",0.001,[3,0,0,0,0,0,0],"l","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","dm3","DM3","1",1,false],[false,"Liters","L","L","volume",0.001,[3,0,0,0,0,0,0],"L","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","l",null,"1",1,false],[false,"are","ar","AR","area",100,[2,0,0,0,0,0,0],"a","iso1000",true,null,null,1,false,false,0,"100 m2; 100 m^2; 100 square meter; meters squared; metres","UCUM","Area","Clinical","metric base unit for area defined as 100 m^2","m2","M2","100",100,false],[false,"minute","min","MIN","time",60,[0,1,0,0,0,0,0],"min","iso1000",false,null,null,1,false,false,0,"minutes","UCUM","Time","Clinical","","s","S","60",60,false],[false,"hour","h","HR","time",3600,[0,1,0,0,0,0,0],"h","iso1000",false,null,null,1,false,false,0,"hours; hrs; age","UCUM","Time","Clinical","","min","MIN","60",60,false],[false,"day","d","D","time",86400,[0,1,0,0,0,0,0],"d","iso1000",false,null,null,1,false,false,0,"days; age; dy; 24 hours; 24 hrs","UCUM","Time","Clinical","","h","HR","24",24,false],[false,"tropical year","a_t","ANN_T","time",31556925.216,[0,1,0,0,0,0,0],"at","iso1000",false,null,null,1,false,false,0,"solar years; a tropical; years","UCUM","Time","Clinical","has an average of 365.242181 days but is constantly changing.","d","D","365.24219",365.24219,false],[false,"mean Julian year","a_j","ANN_J","time",31557600,[0,1,0,0,0,0,0],"aj","iso1000",false,null,null,1,false,false,0,"mean Julian yr; a julian; years","UCUM","Time","Clinical","has an average of 365.25 days, and in everyday use, has been replaced by the Gregorian year. However, this unit is used in astronomy to calculate light year. ","d","D","365.25",365.25,false],[false,"mean Gregorian year","a_g","ANN_G","time",31556952,[0,1,0,0,0,0,0],"ag","iso1000",false,null,null,1,false,false,0,"mean Gregorian yr; a gregorian; years","UCUM","Time","Clinical","has an average of 365.2425 days and is the most internationally used civil calendar.","d","D","365.2425",365.2425,false],[false,"year","a","ANN","time",31557600,[0,1,0,0,0,0,0],"a","iso1000",false,null,null,1,false,false,0,"years; a; yr, yrs; annum","UCUM","Time","Clinical","","a_j","ANN_J","1",1,false],[false,"week","wk","WK","time",604800,[0,1,0,0,0,0,0],"wk","iso1000",false,null,null,1,false,false,0,"weeks; wks","UCUM","Time","Clinical","","d","D","7",7,false],[false,"synodal month","mo_s","MO_S","time",2551442.976,[0,1,0,0,0,0,0],"mos","iso1000",false,null,null,1,false,false,0,"Moon; synodic month; lunar month; mo-s; mo s; months; moons","UCUM","Time","Nonclinical","has an average of 29.53 days per month, unit used in astronomy","d","D","29.53059",29.53059,false],[false,"mean Julian month","mo_j","MO_J","time",2629800,[0,1,0,0,0,0,0],"moj","iso1000",false,null,null,1,false,false,0,"mo-julian; mo Julian; months","UCUM","Time","Clinical","has an average of 30.435 days per month","a_j/12","ANN_J/12","1",1,false],[false,"mean Gregorian month","mo_g","MO_G","time",2629746,[0,1,0,0,0,0,0],"mog","iso1000",false,null,null,1,false,false,0,"months; month-gregorian; mo-gregorian","UCUM","Time","Clinical","has an average 30.436875 days per month and is from the most internationally used civil calendar.","a_g/12","ANN_G/12","1",1,false],[false,"month","mo","MO","time",2629800,[0,1,0,0,0,0,0],"mo","iso1000",false,null,null,1,false,false,0,"months; duration","UCUM","Time","Clinical","based on Julian calendar which has an average of 30.435 days per month (this unit is used in astronomy but not in everyday life - see mo_g)","mo_j","MO_J","1",1,false],[false,"metric ton","t","TNE","mass",1000000,[0,0,1,0,0,0,0],"t","iso1000",true,null,null,1,false,false,0,"tonnes; megagrams; tons","UCUM","Mass","Nonclinical","equal to 1000 kg used in the US (recognized by NIST as metric ton), and internationally (recognized as tonne)","kg","KG","1e3",1000,false],[false,"bar","bar","BAR","pressure",100000000,[-1,-2,1,0,0,0,0],"bar","iso1000",true,null,null,1,false,false,0,"bars","UCUM","Pres","Nonclinical","unit of pressure equal to 10^5 Pascals, primarily used by meteorologists and in weather forecasting","Pa","PAL","1e5",100000,false],[false,"unified atomic mass unit","u","AMU","mass",1.6605402e-24,[0,0,1,0,0,0,0],"u","iso1000",true,null,null,1,false,false,0,"unified atomic mass units; amu; Dalton; Da","UCUM","Mass","Clinical","the mass of 1/12 of an unbound Carbon-12 atom nuclide equal to 1.6606x10^-27 kg ","g","G","1.6605402e-24",1.6605402e-24,false],[false,"astronomic unit","AU","ASU","length",149597870691,[1,0,0,0,0,0,0],"AU","iso1000",false,null,null,1,false,false,0,"AU; units","UCUM","Len","Clinical","unit of length used in astronomy for measuring distance in Solar system","Mm","MAM","149597.870691",149597.870691,false],[false,"parsec","pc","PRS","length",30856780000000000,[1,0,0,0,0,0,0],"pc","iso1000",true,null,null,1,false,false,0,"parsecs","UCUM","Len","Clinical","unit of length equal to 3.26 light years, nad used to measure large distances to objects outside our Solar System","m","M","3.085678e16",30856780000000000,false],[false,"velocity of light in a vacuum","[c]","[C]","velocity",299792458,[1,-1,0,0,0,0,0],"c","const",true,null,null,1,false,false,0,"speed of light","UCUM","Vel","Constant","equal to 299792458 m/s (approximately 3 x 10^8 m/s)","m/s","M/S","299792458",299792458,false],[false,"Planck constant","[h]","[H]","action",6.6260755e-31,[2,-1,1,0,0,0,0],"h","const",true,null,null,1,false,false,0,"Planck\'s constant","UCUM","","Constant","constant = 6.62607004 \xd7 10-34 m2.kg/s; defined as quantum of action","J.s","J.S","6.6260755e-34",6.6260755e-34,false],[false,"Boltzmann constant","[k]","[K]","(unclassified)",1.380658e-20,[2,-2,1,0,-1,0,0],"k","const",true,null,null,1,false,false,0,"k; kB","UCUM","","Constant","physical constant relating energy at the individual particle level with temperature = 1.38064852 \xd710^\u221223 J/K","J/K","J/K","1.380658e-23",1.380658e-23,false],[false,"permittivity of vacuum - electric","[eps_0]","[EPS_0]","electric permittivity",8.854187817000001e-15,[-3,2,-1,0,0,2,0],"\u03b50","const",true,null,null,1,false,false,0,"\u03b50; Electric Constant; vacuum permittivity; permittivity of free space ","UCUM","","Constant","approximately equal to 8.854\u2009\xd7 10^\u221212 F/m (farads per meter)","F/m","F/M","8.854187817e-12",8.854187817e-12,false],[false,"permeability of vacuum - magnetic","[mu_0]","[MU_0]","magnetic permeability",0.0012566370614359172,[1,0,1,0,0,-2,0],"\u03bc0","const",true,null,null,1,false,false,0,"\u03bc0; vacuum permeability; permeability of free space; magnetic constant","UCUM","","Constant","equal to 4\u03c0\xd710^\u22127 N/A2 (Newtons per square ampere) \u2248 1.2566\xd710^\u22126 H/m (Henry per meter)","N/A2","4.[PI].10*-7.N/A2","1",0.0000012566370614359173,false],[false,"elementary charge","[e]","[E]","electric charge",1.60217733e-19,[0,0,0,0,0,1,0],"e","const",true,null,null,1,false,false,0,"e; q; electric charges","UCUM","","Constant","the magnitude of the electric charge carried by a single electron or proton \u2248 1.60217\xd710^-19 Coulombs","C","C","1.60217733e-19",1.60217733e-19,false],[false,"electronvolt","eV","EV","energy",1.60217733e-16,[2,-2,1,0,0,0,0],"eV","iso1000",true,null,null,1,false,false,0,"Electron Volts; electronvolts","UCUM","Eng","Clinical","unit of kinetic energy = 1 V * 1.602\xd710^\u221219 C = 1.6\xd710\u221219 Joules","[e].V","[E].V","1",1,false],[false,"electron mass","[m_e]","[M_E]","mass",9.1093897e-28,[0,0,1,0,0,0,0],"me","const",true,null,null,1,false,false,0,"electron rest mass; me","UCUM","Mass","Constant","approximately equal to 9.10938356 \xd7 10-31 kg; defined as the mass of a stationary electron","g","g","9.1093897e-28",9.1093897e-28,false],[false,"proton mass","[m_p]","[M_P]","mass",1.6726231e-24,[0,0,1,0,0,0,0],"mp","const",true,null,null,1,false,false,0,"mp; masses","UCUM","Mass","Constant","approximately equal to 1.672622\xd710\u221227 kg","g","g","1.6726231e-24",1.6726231e-24,false],[false,"Newtonian constant of gravitation","[G]","[GC]","(unclassified)",6.67259e-14,[3,-2,-1,0,0,0,0],"G","const",true,null,null,1,false,false,0,"G; gravitational constant; Newton\'s constant","UCUM","","Constant","gravitational constant = 6.674\xd710\u221211 N\u22c5m2/kg2","m3.kg-1.s-2","M3.KG-1.S-2","6.67259e-11",6.67259e-11,false],[false,"standard acceleration of free fall","[g]","[G]","acceleration",9.80665,[1,-2,0,0,0,0,0],"gn","const",true,null,null,1,false,false,0,"standard gravity; g; \u02610; \u0261n","UCUM","Accel","Constant","defined by standard = 9.80665 m/s2","m/s2","M/S2","980665e-5",9.80665,false],[false,"Torr","Torr","Torr","pressure",133322,[-1,-2,1,0,0,0,0],"Torr","const",false,null,null,1,false,false,0,"torrs","UCUM","Pres","Clinical","1 torr = 1 mmHg; unit used to measure blood pressure","Pa","PAL","133.322",133.322,false],[false,"standard atmosphere","atm","ATM","pressure",101325000,[-1,-2,1,0,0,0,0],"atm","const",false,null,null,1,false,false,0,"reference pressure; atmos; std atmosphere","UCUM","Pres","Clinical","defined as being precisely equal to 101,325 Pa","Pa","PAL","101325",101325,false],[false,"light-year","[ly]","[LY]","length",9460730472580800,[1,0,0,0,0,0,0],"l.y.","const",true,null,null,1,false,false,0,"light years; ly","UCUM","Len","Constant","unit of astronomal distance = 5.88\xd710^12 mi","[c].a_j","[C].ANN_J","1",1,false],[false,"gram-force","gf","GF","force",9.80665,[1,-2,1,0,0,0,0],"gf","const",true,null,null,1,false,false,0,"Newtons; gram forces","UCUM","Force","Clinical","May be specific to unit related to cardiac output","g.[g]","G.[G]","1",1,false],[false,"Kayser","Ky","KY","lineic number",100,[-1,0,0,0,0,0,0],"K","cgs",true,null,null,1,false,false,0,"wavenumbers; kaysers","UCUM","InvLen","Clinical","unit of wavelength equal to cm^-1","cm-1","CM-1","1",1,false],[false,"Gal","Gal","GL","acceleration",0.01,[1,-2,0,0,0,0,0],"Gal","cgs",true,null,null,1,false,false,0,"galileos; Gals","UCUM","Accel","Clinical","unit of acceleration used in gravimetry; equivalent to cm/s2 ","cm/s2","CM/S2","1",1,false],[false,"dyne","dyn","DYN","force",0.01,[1,-2,1,0,0,0,0],"dyn","cgs",true,null,null,1,false,false,0,"dynes","UCUM","Force","Clinical","unit of force equal to 10^-5 Newtons","g.cm/s2","G.CM/S2","1",1,false],[false,"erg","erg","ERG","energy",0.0001,[2,-2,1,0,0,0,0],"erg","cgs",true,null,null,1,false,false,0,"10^-7 Joules, 10-7 Joules; 100 nJ; 100 nanoJoules; 1 dyne cm; 1 g.cm2/s2","UCUM","Eng","Clinical","unit of energy = 1 dyne centimeter = 10^-7 Joules","dyn.cm","DYN.CM","1",1,false],[false,"Poise","P","P","dynamic viscosity",100,[-1,-1,1,0,0,0,0],"P","cgs",true,null,null,1,false,false,0,"dynamic viscosity; poises","UCUM","Visc","Clinical","unit of dynamic viscosity where 1 Poise = 1/10 Pascal second","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"Biot","Bi","BI","electric current",10,[0,-1,0,0,0,1,0],"Bi","cgs",true,null,null,1,false,false,0,"Bi; abamperes; abA","UCUM","ElpotRat","Clinical","equal to 10 amperes","A","A","10",10,false],[false,"Stokes","St","ST","kinematic viscosity",0.0001,[2,-1,0,0,0,0,0],"St","cgs",true,null,null,1,false,false,0,"kinematic viscosity","UCUM","Visc","Clinical","unit of kimematic viscosity with units cm2/s","cm2/s","CM2/S","1",1,false],[false,"Maxwell","Mx","MX","flux of magnetic induction",0.00001,[2,-1,1,0,0,-1,0],"Mx","cgs",true,null,null,1,false,false,0,"magnetix flux; Maxwells","UCUM","","Clinical","unit of magnetic flux","Wb","WB","1e-8",1e-8,false],[false,"Gauss","G","GS","magnetic flux density",0.1,[0,-1,1,0,0,-1,0],"Gs","cgs",true,null,null,1,false,false,0,"magnetic fields; magnetic flux density; induction; B","UCUM","magnetic","Clinical","CGS unit of magnetic flux density, known as magnetic field B; defined as one maxwell unit per square centimeter (see Oersted for CGS unit for H field)","T","T","1e-4",0.0001,false],[false,"Oersted","Oe","OE","magnetic field intensity",79.57747154594767,[-1,-1,0,0,0,1,0],"Oe","cgs",true,null,null,1,false,false,0,"H magnetic B field; Oersteds","UCUM","","Clinical","CGS unit of the auxiliary magnetic field H defined as 1 dyne per unit pole = 1000/4\u03c0 amperes per meter (see Gauss for CGS unit for B field)","A/m","/[PI].A/M","250",79.57747154594767,false],[false,"Gilbert","Gb","GB","magnetic tension",0.7957747154594768,[0,-1,0,0,0,1,0],"Gb","cgs",true,null,null,1,false,false,0,"Gi; magnetomotive force; Gilberts","UCUM","","Clinical","unit of magnetomotive force (magnetic potential)","Oe.cm","OE.CM","1",1,false],[false,"stilb","sb","SB","lum. intensity density",10000,[-2,0,0,0,0,0,1],"sb","cgs",true,null,null,1,false,false,0,"stilbs","UCUM","","Obsolete","unit of luminance; equal to and replaced by unit candela per square centimeter (cd/cm2)","cd/cm2","CD/CM2","1",1,false],[false,"Lambert","Lmb","LMB","brightness",3183.098861837907,[-2,0,0,0,0,0,1],"L","cgs",true,null,null,1,false,false,0,"luminance; lamberts","UCUM","","Clinical","unit of luminance defined as 1 lambert = 1/ \u03c0 candela per square meter","cd/cm2/[pi]","CD/CM2/[PI]","1",1,false],[false,"phot","ph","PHT","illuminance",0.0001,[-2,0,0,2,0,0,1],"ph","cgs",true,null,null,1,false,false,0,"phots","UCUM","","Clinical","CGS photometric unit of illuminance, or luminous flux through an area equal to 10000 lumens per square meter = 10000 lux","lx","LX","1e-4",0.0001,false],[false,"Curie","Ci","CI","radioactivity",37000000000,[0,-1,0,0,0,0,0],"Ci","cgs",true,null,null,1,false,false,0,"curies","UCUM","","Obsolete","unit for measuring atomic disintegration rate; replaced by the Bequerel (Bq) unit","Bq","BQ","37e9",37000000000,false],[false,"Roentgen","R","ROE","ion dose",2.58e-7,[0,0,-1,0,0,1,0],"R","cgs",true,null,null,1,false,false,0,"r\xf6ntgen; Roentgens","UCUM","","Clinical","unit of exposure of X-rays and gamma rays in air; unit used primarily in the US but strongly discouraged by NIST","C/kg","C/KG","2.58e-4",0.000258,false],[false,"radiation absorbed dose","RAD","[RAD]","energy dose",0.01,[2,-2,0,0,0,0,0],"RAD","cgs",true,null,null,1,false,false,0,"doses","UCUM","","Clinical","unit of radiation absorbed dose used primarily in the US with base units 100 ergs per gram of material. Also see the SI unit Gray (Gy).","erg/g","ERG/G","100",100,false],[false,"radiation equivalent man","REM","[REM]","dose equivalent",0.01,[2,-2,0,0,0,0,0],"REM","cgs",true,null,null,1,false,false,0,"Roentgen Equivalent in Man; rems; dose equivalents","UCUM","","Clinical","unit of equivalent dose which measures the effect of radiation on humans equal to 0.01 sievert. Used primarily in the US. Also see SI unit Sievert (Sv)","RAD","[RAD]","1",1,false],[false,"inch","[in_i]","[IN_I]","length",0.025400000000000002,[1,0,0,0,0,0,0],"in","intcust",false,null,null,1,false,false,0,"inches; in; international inch; body height","UCUM","Len","Clinical","standard unit for inch in the US and internationally","cm","CM","254e-2",2.54,false],[false,"foot","[ft_i]","[FT_I]","length",0.3048,[1,0,0,0,0,0,0],"ft","intcust",false,null,null,1,false,false,0,"ft; fts; foot; international foot; feet; international feet; height","UCUM","Len","Clinical","unit used in the US and internationally","[in_i]","[IN_I]","12",12,false],[false,"yard","[yd_i]","[YD_I]","length",0.9144000000000001,[1,0,0,0,0,0,0],"yd","intcust",false,null,null,1,false,false,0,"international yards; yds; distance","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","3",3,false],[false,"mile","[mi_i]","[MI_I]","length",1609.344,[1,0,0,0,0,0,0],"mi","intcust",false,null,null,1,false,false,0,"international miles; mi I; statute mile","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","5280",5280,false],[false,"fathom","[fth_i]","[FTH_I]","depth of water",1.8288000000000002,[1,0,0,0,0,0,0],"fth","intcust",false,null,null,1,false,false,0,"international fathoms","UCUM","Len","Nonclinical","unit used in the US and internationally to measure depth of water; same length as the US fathom","[ft_i]","[FT_I]","6",6,false],[false,"nautical mile","[nmi_i]","[NMI_I]","length",1852,[1,0,0,0,0,0,0],"n.mi","intcust",false,null,null,1,false,false,0,"nautical mile; nautical miles; international nautical mile; international nautical miles; nm; n.m.; nmi","UCUM","Len","Nonclinical","standard unit used in the US and internationally","m","M","1852",1852,false],[false,"knot","[kn_i]","[KN_I]","velocity",0.5144444444444445,[1,-1,0,0,0,0,0],"knot","intcust",false,null,null,1,false,false,0,"kn; kt; international knots","UCUM","Vel","Nonclinical","defined as equal to one nautical mile (1.852 km) per hour","[nmi_i]/h","[NMI_I]/H","1",1,false],[false,"square inch","[sin_i]","[SIN_I]","area",0.0006451600000000001,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in2; in^2; inches squared; sq inch; inches squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[in_i]2","[IN_I]2","1",1,false],[false,"square foot","[sft_i]","[SFT_I]","area",0.09290304,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft2; ft^2; ft squared; sq ft; feet; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[ft_i]2","[FT_I]2","1",1,false],[false,"square yard","[syd_i]","[SYD_I]","area",0.8361273600000002,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"yd2; yd^2; sq. yds; yards squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[yd_i]2","[YD_I]2","1",1,false],[false,"cubic inch","[cin_i]","[CIN_I]","volume",0.000016387064000000003,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in3; in^3; in*3; inches^3; inches*3; cu. in; cu in; cubic inches; inches cubed; cin","UCUM","Vol","Clinical","standard unit used in the US and internationally","[in_i]3","[IN_I]3","1",1,false],[false,"cubic foot","[cft_i]","[CFT_I]","volume",0.028316846592000004,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft3; ft^3; ft*3; cu. ft; cubic feet; cubed; [ft_i]3; international","UCUM","Vol","Clinical","","[ft_i]3","[FT_I]3","1",1,false],[false,"cubic yard","[cyd_i]","[CYD_I]","volume",0.7645548579840002,[3,0,0,0,0,0,0],"cu.yd","intcust",false,null,null,1,false,false,0,"cubic yards; cubic yds; cu yards; CYs; yards^3; yd^3; yds^3; yd3; yds3","UCUM","Vol","Nonclinical","standard unit used in the US and internationally","[yd_i]3","[YD_I]3","1",1,false],[false,"board foot","[bf_i]","[BF_I]","volume",0.002359737216,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"BDFT; FBM; BF; board feet; international","UCUM","Vol","Nonclinical","unit of volume used to measure lumber","[in_i]3","[IN_I]3","144",144,false],[false,"cord","[cr_i]","[CR_I]","volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"crd I; international cords","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3","[ft_i]3","[FT_I]3","128",128,false],[false,"mil","[mil_i]","[MIL_I]","length",0.000025400000000000004,[1,0,0,0,0,0,0],"mil","intcust",false,null,null,1,false,false,0,"thou, thousandth; mils; international","UCUM","Len","Clinical","equal to 0.001 international inch","[in_i]","[IN_I]","1e-3",0.001,false],[false,"circular mil","[cml_i]","[CML_I]","area",5.067074790974979e-10,[2,0,0,0,0,0,0],"circ.mil","intcust",false,null,null,1,false,false,0,"circular mils; cml I; international","UCUM","Area","Clinical","","[pi]/4.[mil_i]2","[PI]/4.[MIL_I]2","1",1,false],[false,"hand","[hd_i]","[HD_I]","height of horses",0.10160000000000001,[1,0,0,0,0,0,0],"hd","intcust",false,null,null,1,false,false,0,"hands; international","UCUM","Len","Nonclinical","used to measure horse height","[in_i]","[IN_I]","4",4,false],[false,"foot - US","[ft_us]","[FT_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],"ftus","us-lengths",false,null,null,1,false,false,0,"US foot; foot US; us ft; ft us; height; visual distance; feet","UCUM","Len","Obsolete","Better to use [ft_i] which refers to the length used worldwide, including in the US; [ft_us] may be confused with land survey units. ","m/3937","M/3937","1200",1200,false],[false,"yard - US","[yd_us]","[YD_US]","length",0.9144018288036575,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US yards; us yds; distance","UCUM","Len; Nrat","Obsolete","Better to use [yd_i] which refers to the length used worldwide, including in the US; [yd_us] refers to unit used in land surveys in the US","[ft_us]","[FT_US]","3",3,false],[false,"inch - US","[in_us]","[IN_US]","length",0.0254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US inches; in us; us in; inch US","UCUM","Len","Obsolete","Better to use [in_i] which refers to the length used worldwide, including in the US","[ft_us]/12","[FT_US]/12","1",1,false],[false,"rod - US","[rd_us]","[RD_US]","length",5.029210058420117,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US rod; US rods; rd US; US rd","UCUM","Len","Obsolete","","[ft_us]","[FT_US]","16.5",16.5,false],[false,"Gunter\'s chain - US","[ch_us]","[CH_US]","length",20.116840233680467,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"surveyor\'s chain; Surveyor\'s chain USA; Gunter\u2019s measurement; surveyor\u2019s measurement; Gunter\'s Chain USA","UCUM","Len","Obsolete","historical unit used for land survey used only in the US","[rd_us]","[RD_US]","4",4,false],[false,"link for Gunter\'s chain - US","[lk_us]","[LK_US]","length",0.20116840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Links for Gunter\'s Chain USA","UCUM","Len","Obsolete","","[ch_us]/100","[CH_US]/100","1",1,false],[false,"Ramden\'s chain - US","[rch_us]","[RCH_US]","length",30.480060960121918,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Ramsden\'s chain; engineer\'s chains","UCUM","Len","Obsolete","distance measuring device used for\xa0land survey","[ft_us]","[FT_US]","100",100,false],[false,"link for Ramden\'s chain - US","[rlk_us]","[RLK_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"links for Ramsden\'s chain","UCUM","Len","Obsolete","","[rch_us]/100","[RCH_US]/100","1",1,false],[false,"fathom - US","[fth_us]","[FTH_US]","length",1.828803657607315,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US fathoms; fathom USA; fth us","UCUM","Len","Obsolete","same length as the international fathom - better to use international fathom ([fth_i])","[ft_us]","[FT_US]","6",6,false],[false,"furlong - US","[fur_us]","[FUR_US]","length",201.16840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US furlongs; fur us","UCUM","Len","Nonclinical","distance unit in horse racing","[rd_us]","[RD_US]","40",40,false],[false,"mile - US","[mi_us]","[MI_US]","length",1609.3472186944373,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"U.S. Survey Miles; US statute miles; survey mi; US mi; distance","UCUM","Len","Nonclinical","Better to use [mi_i] which refers to the length used worldwide, including in the US","[fur_us]","[FUR_US]","8",8,false],[false,"acre - US","[acr_us]","[ACR_US]","area",4046.872609874252,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Acre USA Survey; Acre USA; survey acres","UCUM","Area","Nonclinical","an older unit based on pre 1959 US statute lengths that is still sometimes used in the US only for land survey purposes. ","[rd_us]2","[RD_US]2","160",160,false],[false,"square rod - US","[srd_us]","[SRD_US]","area",25.292953811714074,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"rod2; rod^2; sq. rod; rods squared","UCUM","Area","Nonclinical","Used only in the US to measure land area, based on US statute land survey length units","[rd_us]2","[RD_US]2","1",1,false],[false,"square mile - US","[smi_us]","[SMI_US]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"mi2; mi^2; sq mi; miles squared","UCUM","Area","Nonclinical","historical unit used only in the US for land survey purposes (based on the US survey mile), not the internationally recognized [mi_i]","[mi_us]2","[MI_US]2","1",1,false],[false,"section","[sct]","[SCT]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"sct; sections","UCUM","Area","Nonclinical","tract of land approximately equal to 1 mile square containing 640 acres","[mi_us]2","[MI_US]2","1",1,false],[false,"township","[twp]","[TWP]","area",93239944.93150276,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"twp; townships","UCUM","Area","Nonclinical","land measurement equal to 6 mile square","[sct]","[SCT]","36",36,false],[false,"mil - US","[mil_us]","[MIL_US]","length",0.0000254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"thou, thousandth; mils","UCUM","Len","Obsolete","better to use [mil_i] which is based on the internationally recognized inch","[in_us]","[IN_US]","1e-3",0.001,false],[false,"inch - British","[in_br]","[IN_BR]","length",0.025399980000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial inches; imp in; br in; british inches","UCUM","Len","Obsolete","","cm","CM","2.539998",2.539998,false],[false,"foot - British","[ft_br]","[FT_BR]","length",0.30479976000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British Foot; Imperial Foot; feet; imp fts; br fts","UCUM","Len","Obsolete","","[in_br]","[IN_BR]","12",12,false],[false,"rod - British","[rd_br]","[RD_BR]","length",5.02919604,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British rods; br rd","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","16.5",16.5,false],[false,"Gunter\'s chain - British","[ch_br]","[CH_BR]","length",20.11678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Gunter\'s Chain British; Gunters Chain British; Surveyor\'s Chain British","UCUM","Len","Obsolete","historical unit used for land survey used only in Great Britain","[rd_br]","[RD_BR]","4",4,false],[false,"link for Gunter\'s chain - British","[lk_br]","[LK_BR]","length",0.2011678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Links for Gunter\'s Chain British","UCUM","Len","Obsolete","","[ch_br]/100","[CH_BR]/100","1",1,false],[false,"fathom - British","[fth_br]","[FTH_BR]","length",1.82879856,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British fathoms; imperial fathoms; br fth; imp fth","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6",6,false],[false,"pace - British","[pc_br]","[PC_BR]","length",0.7619994000000001,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British paces; br pc","UCUM","Len","Nonclinical","traditional unit of length equal to 152.4 centimeters, or 1.52 meter. ","[ft_br]","[FT_BR]","2.5",2.5,false],[false,"yard - British","[yd_br]","[YD_BR]","length",0.91439928,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British yards; Br yds; distance","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","3",3,false],[false,"mile - British","[mi_br]","[MI_BR]","length",1609.3427328000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial miles; British miles; English statute miles; imp mi, br mi","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","5280",5280,false],[false,"nautical mile - British","[nmi_br]","[NMI_BR]","length",1853.1825408000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British nautical miles; Imperial nautical miles; Admiralty miles; n.m. br; imp nm","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6080",6080,false],[false,"knot - British","[kn_br]","[KN_BR]","velocity",0.5147729280000001,[1,-1,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British knots; kn br; kt","UCUM","Vel","Obsolete","based on obsolete British nautical mile ","[nmi_br]/h","[NMI_BR]/H","1",1,false],[false,"acre","[acr_br]","[ACR_BR]","area",4046.850049400269,[2,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Imperial acres; British; a; ac; ar; acr","UCUM","Area","Nonclinical","the standard unit for acre used in the US and internationally","[yd_br]2","[YD_BR]2","4840",4840,false],[false,"gallon - US","[gal_us]","[GAL_US]","fluid volume",0.0037854117840000006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gallons; US liquid gallon; gal us; Queen Anne\'s wine gallon","UCUM","Vol","Nonclinical","only gallon unit used in the US; [gal_us] is only used in some other countries in South American and Africa to measure gasoline volume","[in_i]3","[IN_I]3","231",231,false],[false,"barrel - US","[bbl_us]","[BBL_US]","fluid volume",0.158987294928,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"bbl","UCUM","Vol","Nonclinical","[bbl_us] is the standard unit for oil barrel, which is a unit only used in the US to measure the volume oil. ","[gal_us]","[GAL_US]","42",42,false],[false,"quart - US","[qt_us]","[QT_US]","fluid volume",0.0009463529460000001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US quarts; us qts","UCUM","Vol","Clinical","Used only in the US","[gal_us]/4","[GAL_US]/4","1",1,false],[false,"pint - US","[pt_us]","[PT_US]","fluid volume",0.00047317647300000007,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pints; pint US; liquid pint; pt us; us pt","UCUM","Vol","Clinical","Used only in the US","[qt_us]/2","[QT_US]/2","1",1,false],[false,"gill - US","[gil_us]","[GIL_US]","fluid volume",0.00011829411825000002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gills; gil us","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in the US","[pt_us]/4","[PT_US]/4","1",1,false],[false,"fluid ounce - US","[foz_us]","[FOZ_US]","fluid volume",0.000029573529562500005,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"US fluid ounces; fl ozs; FO; fl. oz.; foz us","UCUM","Vol","Clinical","unit used only in the US","[gil_us]/4","[GIL_US]/4","1",1,false],[false,"fluid dram - US","[fdr_us]","[FDR_US]","fluid volume",0.0000036966911953125006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US fluid drams; fdr us","UCUM","Vol","Nonclinical","equal to 1/8 US fluid ounce = 3.69 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_us]/8","[FOZ_US]/8","1",1,false],[false,"minim - US","[min_us]","[MIN_US]","fluid volume",6.1611519921875e-8,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"min US; US min; \u264f US","UCUM","Vol","Obsolete","","[fdr_us]/60","[FDR_US]/60","1",1,false],[false,"cord - US","[crd_us]","[CRD_US]","fluid volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US cord; US cords; crd us; us crd","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3 (the same as international cord [cr_i])","[ft_i]3","[FT_I]3","128",128,false],[false,"bushel - US","[bu_us]","[BU_US]","dry volume",0.03523907016688001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US bushels; US bsh; US bu","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[in_i]3","[IN_I]3","2150.42",2150.42,false],[false,"gallon - historical","[gal_wi]","[GAL_WI]","dry volume",0.004404883770860001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Corn Gallon British; Dry Gallon US; Gallons Historical; Grain Gallon British; Winchester Corn Gallon; historical winchester gallons; wi gal","UCUM","Vol","Obsolete","historical unit of dry volume no longer used","[bu_us]/8","[BU_US]/8","1",1,false],[false,"peck - US","[pk_us]","[PK_US]","dry volume",0.008809767541720002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pecks; US pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[bu_us]/4","[BU_US]/4","1",1,false],[false,"dry quart - US","[dqt_us]","[DQT_US]","dry volume",0.0011012209427150002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry quarts; dry quart US; US dry quart; dry qt; us dry qt; dqt; dqt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[pk_us]/8","[PK_US]/8","1",1,false],[false,"dry pint - US","[dpt_us]","[DPT_US]","dry volume",0.0005506104713575001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry pints; dry pint US; US dry pint; dry pt; dpt; dpt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[dqt_us]/2","[DQT_US]/2","1",1,false],[false,"tablespoon - US","[tbs_us]","[TBS_US]","volume",0.000014786764781250002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Tbs; tbsp; tbs us; US tablespoons","UCUM","Vol","Clinical","unit defined as 0.5 US fluid ounces or 3 teaspoons - used only in the US. See [tbs_m] for the unit used internationally and in the US for nutrional labelling. ","[foz_us]/2","[FOZ_US]/2","1",1,false],[false,"teaspoon - US","[tsp_us]","[TSP_US]","volume",0.0000049289215937500005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; US teaspoons","UCUM","Vol","Nonclinical","unit defined as 1/6 US fluid ounces - used only in the US. See [tsp_m] for the unit used internationally and in the US for nutrional labelling. ","[tbs_us]/3","[TBS_US]/3","1",1,false],[false,"cup - US customary","[cup_us]","[CUP_US]","volume",0.00023658823650000004,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup us; us cups","UCUM","Vol","Nonclinical","Unit defined as 1/2 US pint or 16 US tablespoons \u2248 236.59 mL, which is not the standard unit defined by the FDA of 240 mL - see [cup_m] (metric cup)","[tbs_us]","[TBS_US]","16",16,false],[false,"fluid ounce - metric","[foz_m]","[FOZ_M]","fluid volume",0.000029999999999999997,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"metric fluid ounces; fozs m; fl ozs m","UCUM","Vol","Clinical","unit used only in the US for nutritional labelling, as set by the FDA","mL","ML","30",30,false],[false,"cup - US legal","[cup_m]","[CUP_M]","volume",0.00023999999999999998,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup m; metric cups","UCUM","Vol","Clinical","standard unit equal to 240 mL used in the US for nutritional labelling, as defined by the FDA. Note that this is different from the US customary cup (236.59 mL) and the metric cup used in Commonwealth nations (250 mL).","mL","ML","240",240,false],[false,"teaspoon - metric","[tsp_m]","[TSP_M]","volume",0.0000049999999999999996,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; metric teaspoons","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","5",5,false],[false,"tablespoon - metric","[tbs_m]","[TBS_M]","volume",0.000014999999999999999,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"metric tablespoons; Tbs; tbsp; T; tbs m","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","15",15,false],[false,"gallon- British","[gal_br]","[GAL_BR]","volume",0.004546090000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gallons, UK gallons; British gallons; br gal; imp gal","UCUM","Vol","Nonclinical","Used only in Great Britain and other Commonwealth countries","l","L","4.54609",4.54609,false],[false,"peck - British","[pk_br]","[PK_BR]","volume",0.009092180000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial pecks; British pecks; br pk; imp pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[gal_br]","[GAL_BR]","2",2,false],[false,"bushel - British","[bu_br]","[BU_BR]","volume",0.03636872000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British bushels; imperial; br bsh; br bu; imp","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[pk_br]","[PK_BR]","4",4,false],[false,"quart - British","[qt_br]","[QT_BR]","volume",0.0011365225000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British quarts; imperial quarts; br qts","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gal_br]/4","[GAL_BR]/4","1",1,false],[false,"pint - British","[pt_br]","[PT_BR]","volume",0.0005682612500000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British pints; imperial pints; pt br; br pt; imp pt; pt imp","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[qt_br]/2","[QT_BR]/2","1",1,false],[false,"gill - British","[gil_br]","[GIL_BR]","volume",0.00014206531250000003,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gills; British gills; imp gill, br gill","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in Great Britain","[pt_br]/4","[PT_BR]/4","1",1,false],[false,"fluid ounce - British","[foz_br]","[FOZ_BR]","volume",0.000028413062500000005,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid ounces; Imperial fluid ounces; br fozs; imp fozs; br fl ozs","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gil_br]/5","[GIL_BR]/5","1",1,false],[false,"fluid dram - British","[fdr_br]","[FDR_BR]","volume",0.0000035516328125000006,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid drams; fdr br","UCUM","Vol","Nonclinical","equal to 1/8 Imperial fluid ounce = 3.55 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_br]/8","[FOZ_BR]/8","1",1,false],[false,"minim - British","[min_br]","[MIN_BR]","volume",5.919388020833334e-8,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"min br; br min; \u264f br","UCUM","Vol","Obsolete","","[fdr_br]/60","[FDR_BR]/60","1",1,false],[false,"grain","[gr]","[GR]","mass",0.06479891,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"gr; grains","UCUM","Mass","Nonclinical","an apothecary measure of mass rarely used today","mg","MG","64.79891",64.79891,false],[false,"pound","[lb_av]","[LB_AV]","mass",453.59237,[0,0,1,0,0,0,0],"lb","avoirdupois",false,null,null,1,false,false,0,"avoirdupois pounds, international pounds; av lbs; pounds","UCUM","Mass","Clinical","standard unit used in the US and internationally","[gr]","[GR]","7000",7000,false],[false,"pound force - US","[lbf_av]","[LBF_AV]","force",4448.2216152605,[1,-2,1,0,0,0,0],"lbf","const",false,null,null,1,false,false,0,"lbfs; US lbf; US pound forces","UCUM","Force","Clinical","only rarely needed in health care - see [lb_av] which is the more common unit to express weight","[lb_av].[g]","[LB_AV].[G]","1",1,false],[false,"ounce","[oz_av]","[OZ_AV]","mass",28.349523125,[0,0,1,0,0,0,0],"oz","avoirdupois",false,null,null,1,false,false,0,"ounces; international ounces; avoirdupois ounces; av ozs","UCUM","Mass","Clinical","standard unit used in the US and internationally","[lb_av]/16","[LB_AV]/16","1",1,false],[false,"Dram mass unit","[dr_av]","[DR_AV]","mass",1.7718451953125,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"Dram; drams avoirdupois; avoidupois dram; international dram","UCUM","Mass","Clinical","unit from the avoirdupois system, which is used in the US and internationally","[oz_av]/16","[OZ_AV]/16","1",1,false],[false,"short hundredweight","[scwt_av]","[SCWT_AV]","mass",45359.237,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"hundredweights; s cwt; scwt; avoirdupois","UCUM","Mass","Nonclinical","Used only in the US to equal 100 pounds","[lb_av]","[LB_AV]","100",100,false],[false,"long hundredweight","[lcwt_av]","[LCWT_AV]","mass",50802.345440000005,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial hundredweights; imp cwt; lcwt; avoirdupois","UCUM","Mass","Obsolete","","[lb_av]","[LB_AV]","112",112,false],[false,"short ton - US","[ston_av]","[STON_AV]","mass",907184.74,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"ton; US tons; avoirdupois tons","UCUM","Mass","Clinical","Used only in the US","[scwt_av]","[SCWT_AV]","20",20,false],[false,"long ton - British","[lton_av]","[LTON_AV]","mass",1016046.9088000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial tons; weight tons; British long tons; long ton avoirdupois","UCUM","Mass","Nonclinical","Used only in Great Britain and other Commonwealth countries","[lcwt_av]","[LCWT_AV]","20",20,false],[false,"stone - British","[stone_av]","[STONE_AV]","mass",6350.293180000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"British stones; avoirdupois","UCUM","Mass","Nonclinical","Used primarily in the UK and Ireland to measure body weight","[lb_av]","[LB_AV]","14",14,false],[false,"pennyweight - troy","[pwt_tr]","[PWT_TR]","mass",1.5551738400000001,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"dwt; denarius weights","UCUM","Mass","Obsolete","historical unit used to measure mass and cost of precious metals","[gr]","[GR]","24",24,false],[false,"ounce - troy","[oz_tr]","[OZ_TR]","mass",31.103476800000003,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy ounces; tr ozs","UCUM","Mass","Nonclinical","unit of mass for precious metals and gemstones only","[pwt_tr]","[PWT_TR]","20",20,false],[false,"pound - troy","[lb_tr]","[LB_TR]","mass",373.2417216,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy pounds; tr lbs","UCUM","Mass","Nonclinical","only used for weighing precious metals","[oz_tr]","[OZ_TR]","12",12,false],[false,"scruple","[sc_ap]","[SC_AP]","mass",1.2959782,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"scruples; sc ap","UCUM","Mass","Obsolete","","[gr]","[GR]","20",20,false],[false,"dram - apothecary","[dr_ap]","[DR_AP]","mass",3.8879346,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"\u0292; drachm; apothecaries drams; dr ap; dram ap","UCUM","Mass","Nonclinical","unit still used in the US occasionally to measure amount of drugs in pharmacies","[sc_ap]","[SC_AP]","3",3,false],[false,"ounce - apothecary","[oz_ap]","[OZ_AP]","mass",31.1034768,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary ounces; oz ap; ap ozs; ozs ap","UCUM","Mass","Obsolete","","[dr_ap]","[DR_AP]","8",8,false],[false,"pound - apothecary","[lb_ap]","[LB_AP]","mass",373.2417216,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary pounds; apothecaries pounds; ap lb; lb ap; ap lbs; lbs ap","UCUM","Mass","Obsolete","","[oz_ap]","[OZ_AP]","12",12,false],[false,"ounce - metric","[oz_m]","[OZ_M]","mass",28,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"metric ounces; m ozs","UCUM","Mass","Clinical","see [oz_av] (the avoirdupois ounce) for the standard ounce used internationally; [oz_m] is equal to 28 grams and is based on the apothecaries\' system of mass units which is used in some US pharmacies. ","g","g","28",28,false],[false,"line","[lne]","[LNE]","length",0.002116666666666667,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"British lines; br L; L; l","UCUM","Len","Obsolete","","[in_i]/12","[IN_I]/12","1",1,false],[false,"point (typography)","[pnt]","[PNT]","length",0.0003527777777777778,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"DTP points; desktop publishing point; pt; pnt","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[lne]/6","[LNE]/6","1",1,false],[false,"pica (typography)","[pca]","[PCA]","length",0.004233333333333334,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt]","[PNT]","12",12,false],[false,"Printer\'s point (typography)","[pnt_pr]","[PNT_PR]","length",0.00035145980000000004,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pnt pr","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[in_i]","[IN_I]","0.013837",0.013837,false],[false,"Printer\'s pica (typography)","[pca_pr]","[PCA_PR]","length",0.004217517600000001,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pca pr; Printer\'s picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt_pr]","[PNT_PR]","12",12,false],[false,"pied","[pied]","[PIED]","length",0.3248,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pieds du roi; Paris foot; royal; French; feet","UCUM","Len","Obsolete","","cm","CM","32.48",32.48,false],[false,"pouce","[pouce]","[POUCE]","length",0.027066666666666666,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"historical French inches; French royal inches","UCUM","Len","Obsolete","","[pied]/12","[PIED]/12","1",1,false],[false,"ligne","[ligne]","[LIGNE]","length",0.0022555555555555554,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Paris lines; lignes","UCUM","Len","Obsolete","","[pouce]/12","[POUCE]/12","1",1,false],[false,"didot","[didot]","[DIDOT]","length",0.0003759259259259259,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot point; dd; Didots Point; didots; points","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[ligne]/6","[LIGNE]/6","1",1,false],[false,"cicero","[cicero]","[CICERO]","length",0.004511111111111111,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot\'s pica; ciceros; picas","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[didot]","[DIDOT]","12",12,false],[false,"degrees Fahrenheit","[degF]","[DEGF]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"\xb0F","heat",false,null,"degF",1,true,false,0,"\xb0F; deg F","UCUM","Temp","Clinical","","K",null,null,0.5555555555555556,false],[false,"degrees Rankine","[degR]","[degR]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"\xb0R","heat",false,null,null,1,false,false,0,"\xb0R; \xb0Ra; Rankine","UCUM","Temp","Obsolete","Replaced by Kelvin","K/9","K/9","5",5,false],[false,"degrees R\xe9aumur","[degRe]","[degRe]","temperature",1.25,[0,0,0,0,1,0,0],"\xb0R\xe9","heat",false,null,"degRe",1,true,false,0,"\xb0R\xe9, \xb0Re, \xb0r; R\xe9aumur; degree Reaumur; Reaumur","UCUM","Temp","Obsolete","replaced by Celsius","K",null,null,1.25,false],[false,"calorie at 15\xb0C","cal_[15]","CAL_[15]","energy",4185.8,[2,-2,1,0,0,0,0],"cal15\xb0C","heat",true,null,null,1,false,false,0,"calorie 15 C; cals 15 C; calories at 15 C","UCUM","Enrg","Nonclinical","equal to 4.1855 joules; calorie most often used in engineering","J","J","4.18580",4.1858,false],[false,"calorie at 20\xb0C","cal_[20]","CAL_[20]","energy",4181.9,[2,-2,1,0,0,0,0],"cal20\xb0C","heat",true,null,null,1,false,false,0,"calorie 20 C; cal 20 C; calories at 20 C","UCUM","Enrg","Clinical","equal to 4.18190 joules. ","J","J","4.18190",4.1819,false],[false,"mean calorie","cal_m","CAL_M","energy",4190.0199999999995,[2,-2,1,0,0,0,0],"calm","heat",true,null,null,1,false,false,0,"mean cals; mean calories","UCUM","Enrg","Clinical","equal to 4.19002 joules. ","J","J","4.19002",4.19002,false],[false,"international table calorie","cal_IT","CAL_IT","energy",4186.8,[2,-2,1,0,0,0,0],"calIT","heat",true,null,null,1,false,false,0,"calories IT; IT cals; international steam table calories","UCUM","Enrg","Nonclinical","used in engineering steam tables and defined as 1/860 international watt-hour; equal to 4.1868 joules","J","J","4.1868",4.1868,false],[false,"thermochemical calorie","cal_th","CAL_TH","energy",4184,[2,-2,1,0,0,0,0],"calth","heat",true,null,null,1,false,false,0,"thermochemical calories; th cals","UCUM","Enrg","Clinical","equal to 4.184 joules; used as the unit in medicine and biochemistry (equal to cal)","J","J","4.184",4.184,false],[false,"calorie","cal","CAL","energy",4184,[2,-2,1,0,0,0,0],"cal","heat",true,null,null,1,false,false,0,"gram calories; small calories","UCUM","Enrg","Clinical","equal to 4.184 joules (the same value as the thermochemical calorie, which is the most common calorie used in medicine and biochemistry)","cal_th","CAL_TH","1",1,false],[false,"nutrition label Calories","[Cal]","[CAL]","energy",4184000,[2,-2,1,0,0,0,0],"Cal","heat",false,null,null,1,false,false,0,"food calories; Cal; kcal","UCUM","Eng","Clinical","","kcal_th","KCAL_TH","1",1,false],[false,"British thermal unit at 39\xb0F","[Btu_39]","[BTU_39]","energy",1059670,[2,-2,1,0,0,0,0],"Btu39\xb0F","heat",false,null,null,1,false,false,0,"BTU 39F; BTU 39 F; B.T.U. 39 F; B.Th.U. 39 F; BThU 39 F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05967 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05967",1.05967,false],[false,"British thermal unit at 59\xb0F","[Btu_59]","[BTU_59]","energy",1054800,[2,-2,1,0,0,0,0],"Btu59\xb0F","heat",false,null,null,1,false,false,0,"BTU 59 F; BTU 59F; B.T.U. 59 F; B.Th.U. 59 F; BThU 59F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05480 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05480",1.0548,false],[false,"British thermal unit at 60\xb0F","[Btu_60]","[BTU_60]","energy",1054680,[2,-2,1,0,0,0,0],"Btu60\xb0F","heat",false,null,null,1,false,false,0,"BTU 60 F; BTU 60F; B.T.U. 60 F; B.Th.U. 60 F; BThU 60 F; British thermal units 60 F","UCUM","Eng","Nonclinical","equal to 1.05468 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05468",1.05468,false],[false,"mean British thermal unit","[Btu_m]","[BTU_M]","energy",1055870,[2,-2,1,0,0,0,0],"Btum","heat",false,null,null,1,false,false,0,"BTU mean; B.T.U. mean; B.Th.U. mean; BThU mean; British thermal units mean; ","UCUM","Eng","Nonclinical","equal to 1.05587 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05587",1.05587,false],[false,"international table British thermal unit","[Btu_IT]","[BTU_IT]","energy",1055055.85262,[2,-2,1,0,0,0,0],"BtuIT","heat",false,null,null,1,false,false,0,"BTU IT; B.T.U. IT; B.Th.U. IT; BThU IT; British thermal units IT","UCUM","Eng","Nonclinical","equal to 1.055 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05505585262",1.05505585262,false],[false,"thermochemical British thermal unit","[Btu_th]","[BTU_TH]","energy",1054350,[2,-2,1,0,0,0,0],"Btuth","heat",false,null,null,1,false,false,0,"BTU Th; B.T.U. Th; B.Th.U. Th; BThU Th; thermochemical British thermal units","UCUM","Eng","Nonclinical","equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.054350",1.05435,false],[false,"British thermal unit","[Btu]","[BTU]","energy",1054350,[2,-2,1,0,0,0,0],"btu","heat",false,null,null,1,false,false,0,"BTU; B.T.U. ; B.Th.U.; BThU; British thermal units","UCUM","Eng","Nonclinical","equal to the thermochemical British thermal unit equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","[Btu_th]","[BTU_TH]","1",1,false],[false,"horsepower - mechanical","[HP]","[HP]","power",745699.8715822703,[2,-3,1,0,0,0,0],null,"heat",false,null,null,1,false,false,0,"imperial horsepowers","UCUM","EngRat","Nonclinical","refers to mechanical horsepower, which is unit used to measure engine power primarily in the US. ","[ft_i].[lbf_av]/s","[FT_I].[LBF_AV]/S","550",550,false],[false,"tex","tex","TEX","linear mass density (of textile thread)",0.001,[-1,0,1,0,0,0,0],"tex","heat",true,null,null,1,false,false,0,"linear mass density; texes","UCUM","","Clinical","unit of linear mass density for fibers equal to gram per 1000 meters","g/km","G/KM","1",1,false],[false,"Denier (linear mass density)","[den]","[DEN]","linear mass density (of textile thread)",0.0001111111111111111,[-1,0,1,0,0,0,0],"den","heat",false,null,null,1,false,false,0,"den; deniers","UCUM","","Nonclinical","equal to the mass in grams per 9000 meters of the fiber (1 denier = 1 strand of silk)","g/9/km","G/9/KM","1",1,false],[false,"meter of water column","m[H2O]","M[H2O]","pressure",9806650,[-1,-2,1,0,0,0,0],"m\xa0HO2","clinical",true,null,null,1,false,false,0,"mH2O; m H2O; meters of water column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"meter of mercury column","m[Hg]","M[HG]","pressure",133322000,[-1,-2,1,0,0,0,0],"m\xa0Hg","clinical",true,null,null,1,false,false,0,"mHg; m Hg; meters of mercury column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","133.3220",133.322,false],[false,"inch of water column","[in_i\'H2O]","[IN_I\'H2O]","pressure",249088.91000000003,[-1,-2,1,0,0,0,0],"in\xa0HO2","clinical",false,null,null,1,false,false,0,"inches WC; inAq; in H2O; inch of water gauge; iwg; pressure","UCUM","Pres","Clinical","unit of pressure, especially in respiratory and ventilation care","m[H2O].[in_i]/m","M[H2O].[IN_I]/M","1",1,false],[false,"inch of mercury column","[in_i\'Hg]","[IN_I\'HG]","pressure",3386378.8000000003,[-1,-2,1,0,0,0,0],"in\xa0Hg","clinical",false,null,null,1,false,false,0,"inHg; in Hg; pressure; inches","UCUM","Pres","Clinical","unit of pressure used in US to measure barometric pressure and occasionally blood pressure (see mm[Hg] for unit used internationally)","m[Hg].[in_i]/m","M[HG].[IN_I]/M","1",1,false],[false,"peripheral vascular resistance unit","[PRU]","[PRU]","fluid resistance",133322000000,[-4,-1,1,0,0,0,0],"P.R.U.","clinical",false,null,null,1,false,false,0,"peripheral vascular resistance units; peripheral resistance unit; peripheral resistance units; PRU","UCUM","FldResist","Clinical","used to assess blood flow in the capillaries; equal to 1 mmH.min/mL = 133.3 Pa\xb7min/mL","mm[Hg].s/ml","MM[HG].S/ML","1",1,false],[false,"Wood unit","[wood\'U]","[WOOD\'U]","fluid resistance",7999320000,[-4,-1,1,0,0,0,0],"Wood U.","clinical",false,null,null,1,false,false,0,"hybrid reference units; HRU; mmHg.min/L; vascular resistance","UCUM","Pres","Clinical","simplified unit of measurement for for measuring pulmonary vascular resistance that uses pressure; equal to mmHg.min/L","mm[Hg].min/L","MM[HG].MIN/L","1",1,false],[false,"diopter (lens)","[diop]","[DIOP]","refraction of a lens",1,[1,0,0,0,0,0,0],"dpt","clinical",false,null,"inv",1,false,false,0,"diopters; diop; dioptre; dpt; refractive power","UCUM","InvLen","Clinical","unit of optical power of lens represented by inverse meters (m^-1)","m","/M","1",1,false],[false,"prism diopter (magnifying power)","[p\'diop]","[P\'DIOP]","refraction of a prism",1,[0,0,0,1,0,0,0],"PD","clinical",false,null,"tanTimes100",1,true,false,0,"diopters; dioptres; p diops; pdiop; dpt; pdptr; \u0394; cm/m; centimeter per meter; centimetre; metre","UCUM","Angle","Clinical","unit for prism correction in eyeglass prescriptions","rad",null,null,1,false],[false,"percent of slope","%[slope]","%[SLOPE]","slope",0.017453292519943295,[0,0,0,1,0,0,0],"%","clinical",false,null,"100tan",1,true,false,0,"% slope; %slope; percents slopes","UCUM","VelFr; ElpotRatFr; VelRtoFr; AccelFr","Clinical","","deg",null,null,1,false],[false,"mesh","[mesh_i]","[MESH_I]","lineic number",0.025400000000000002,[1,0,0,0,0,0,0],null,"clinical",false,null,"inv",1,false,false,0,"meshes","UCUM","NLen (lineic number)","Clinical","traditional unit of length defined as the number of strands or particles per inch","[in_i]","/[IN_I]","1",1,false],[false,"French (catheter gauge) ","[Ch]","[CH]","gauge of catheters",0.0003333333333333333,[1,0,0,0,0,0,0],"Ch","clinical",false,null,null,1,false,false,0,"Charri\xe8res, French scales; French gauges; Fr, Fg, Ga, FR, Ch","UCUM","Len; Circ; Diam","Clinical","","mm/3","MM/3","1",1,false],[false,"drop - metric (1/20 mL)","[drp]","[DRP]","volume",5e-8,[3,0,0,0,0,0,0],"drp","clinical",false,null,null,1,false,false,0,"drop dosing units; metric drops; gtt","UCUM","Vol","Clinical","standard unit used in the US and internationally for clinical medicine but note that although [drp] is defined as 1/20 milliliter, in practice, drop sizes will vary due to external factors","ml/20","ML/20","1",1,false],[false,"Hounsfield unit","[hnsf\'U]","[HNSF\'U]","x-ray attenuation",1,[0,0,0,0,0,0,0],"HF","clinical",false,null,null,1,false,false,0,"HU; units","UCUM","","Clinical","used to measure X-ray attenuation, especially in CT scans.","1","1","1",1,false],[false,"Metabolic Equivalent of Task ","[MET]","[MET]","metabolic cost of physical activity",5.833333333333334e-11,[3,-1,-1,0,0,0,0],"MET","clinical",false,null,null,1,false,false,0,"metabolic equivalents","UCUM","RelEngRat","Clinical","unit used to measure rate of energy expenditure per power in treadmill and other functional tests","mL/min/kg","ML/MIN/KG","3.5",3.5,false],[false,"homeopathic potency of decimal series (retired)","[hp\'_X]","[HP\'_X]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,"hpX",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of centesimal series (retired)","[hp\'_C]","[HP\'_C]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,"hpC",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of millesimal series (retired)","[hp\'_M]","[HP\'_M]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,"hpM",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of quintamillesimal series (retired)","[hp\'_Q]","[HP\'_Q]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,"hpQ",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of decimal hahnemannian series","[hp_X]","[HP_X]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal hahnemannian series","[hp_C]","[HP_C]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal hahnemannian series","[hp_M]","[HP_M]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal hahnemannian series","[hp_Q]","[HP_Q]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of decimal korsakovian series","[kp_X]","[KP_X]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal korsakovian series","[kp_C]","[KP_C]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal korsakovian series","[kp_M]","[KP_M]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal korsakovian series","[kp_Q]","[KP_Q]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"equivalent","eq","EQ","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"eq","chemical",true,null,null,1,false,false,1,"equivalents","UCUM","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"osmole","osm","OSM","amount of substance (dissolved particles)",6.0221367e+23,[0,0,0,0,0,0,0],"osm","chemical",true,null,null,1,false,false,1,"osmoles; osmols","UCUM","Osmol","Clinical","the number of moles of solute that contribute to the osmotic pressure of a solution","mol","MOL","1",1,false],[false,"pH","[pH]","[PH]","acidity",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"pH","chemical",false,null,"pH",1,true,false,0,"pH scale","UCUM","LogCnc","Clinical","Log concentration of H+","mol/l",null,null,1,false],[false,"gram percent","g%","G%","mass concentration",10000,[-3,0,1,0,0,0,0],"g%","chemical",true,null,null,1,false,false,0,"gram %; gram%; grams per deciliter; g/dL; gm per dL; gram percents","UCUM","MCnc","Clinical","equivalent to unit gram per deciliter (g/dL), a unit often used in medical tests to represent solution concentrations","g/dl","G/DL","1",1,false],[false,"Svedberg unit","[S]","[S]","sedimentation coefficient",1e-13,[0,1,0,0,0,0,0],"S","chemical",false,null,null,1,false,false,0,"Sv; 10^-13 seconds; 100 fs; 100 femtoseconds","UCUM","Time","Clinical","unit of time used in measuring particle\'s sedimentation rate, usually after centrifugation. ","s","10*-13.S","1",1e-13,false],[false,"high power field (microscope)","[HPF]","[HPF]","view area in microscope",1,[0,0,0,0,0,0,0],"HPF","chemical",false,null,null,1,false,false,0,"HPF","UCUM","Area","Clinical","area visible under the maximum magnification power of the objective in microscopy (usually 400x)\\n","1","1","1",1,false],[false,"low power field (microscope)","[LPF]","[LPF]","view area in microscope",1,[0,0,0,0,0,0,0],"LPF","chemical",false,null,null,1,false,false,0,"LPF; fields","UCUM","Area","Clinical","area visible under the low magnification of the objective in microscopy (usually 100 x)\\n","1","1","100",100,false],[false,"katal","kat","KAT","catalytic activity",6.0221367e+23,[0,-1,0,0,0,0,0],"kat","chemical",true,null,null,1,false,false,1,"mol/secs; moles per second; mol*sec-1; mol*s-1; mol.s-1; katals; catalytic activity; enzymatic; enzyme units; activities","UCUM","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"enzyme unit","U","U","catalytic activity",10036894500000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"micromoles per minute; umol/min; umol per minute; umol min-1; enzymatic activity; enzyme activity","UCUM","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"international unit - arbitrary","[iU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"IU","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","1",1,false],[false,"international unit - arbitrary","[IU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"i.U.","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"arbitary unit","[arb\'U]","[ARB\'U]","arbitrary",1,[0,0,0,0,0,0,0],"arb. U","chemical",false,null,null,1,false,true,0,"arbitary units; arb units; arbU","UCUM","Arb","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"United States Pharmacopeia unit","[USP\'U]","[USP\'U]","arbitrary",1,[0,0,0,0,0,0,0],"U.S.P.","chemical",false,null,null,1,false,true,0,"USP U; USP\'U","UCUM","Arb","Clinical","a dose unit to express potency of drugs and vitamins defined by the United States Pharmacopoeia; usually 1 USP = 1 IU","1","1","1",1,false],[false,"GPL unit","[GPL\'U]","[GPL\'U]","biologic activity of anticardiolipin IgG",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"GPL Units; GPL U; IgG anticardiolipin units; IgG Phospholipid","UCUM","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"MPL unit","[MPL\'U]","[MPL\'U]","biologic activity of anticardiolipin IgM",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"MPL units; MPL U; MPL\'U; IgM anticardiolipin units; IgM Phospholipid Units ","UCUM","ACnc","Clinical","units for antiphospholipid test","1","1","1",1,false],[false,"APL unit","[APL\'U]","[APL\'U]","biologic activity of anticardiolipin IgA",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"APL units; APL U; IgA anticardiolipin; IgA Phospholipid; biologic activity of","UCUM","AMass; ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"Bethesda unit","[beth\'U]","[BETH\'U]","biologic activity of factor VIII inhibitor",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"BU","UCUM","ACnc","Clinical","measures of blood coagulation inhibitior for many blood factors","1","1","1",1,false],[false,"anti factor Xa unit","[anti\'Xa\'U]","[ANTI\'XA\'U]","biologic activity of factor Xa inhibitor (heparin)",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","ACnc","Clinical","[anti\'Xa\'U] unit is equivalent to and can be converted to IU/mL. ","1","1","1",1,false],[false,"Todd unit","[todd\'U]","[TODD\'U]","biologic activity antistreptolysin O",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","InvThres; RtoThres","Clinical","the unit for the results of the testing for antistreptolysin O (ASO)","1","1","1",1,false],[false,"Dye unit","[dye\'U]","[DYE\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","CCnc","Obsolete","equivalent to the Somogyi unit, which is an enzyme unit for amylase but better to use U, the standard enzyme unit for measuring catalytic activity","1","1","1",1,false],[false,"Somogyi unit","[smgy\'U]","[SMGY\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Somogyi units; smgy U","UCUM","CAct","Clinical","measures the enzymatic activity of amylase in blood serum - better to use base units mg/mL ","1","1","1",1,false],[false,"Bodansky unit","[bdsk\'U]","[BDSK\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"","UCUM","ACnc","Obsolete","Enzyme unit specific to alkaline phosphatase - better to use standard enzyme unit of U","1","1","1",1,false],[false,"King-Armstrong unit","[ka\'U]","[KA\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"King-Armstrong Units; King units","UCUM","AMass","Obsolete","enzyme units for acid phosphatase - better to use enzyme unit [U]","1","1","1",1,false],[false,"Kunkel unit","[knk\'U]","[KNK\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"Mac Lagan unit","[mclg\'U]","[MCLG\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"galactose index; galactose tolerance test; thymol turbidity test unit; mclg U; units; indexes","UCUM","ACnc","Obsolete","unit for liver tests - previously used in thymol turbidity tests for liver disease diagnoses, and now is sometimes referred to in the oral galactose tolerance test","1","1","1",1,false],[false,"tuberculin unit","[tb\'U]","[TB\'U]","biologic activity of tuberculin",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"TU; units","UCUM","Arb","Clinical","amount of tuberculin antigen -usually in reference to a TB skin test ","1","1","1",1,false],[false,"50% cell culture infectious dose","[CCID_50]","[CCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"CCID50","chemical",false,null,null,1,false,true,0,"CCID50; 50% cell culture infective doses","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% tissue culture infectious dose","[TCID_50]","[TCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"TCID50","chemical",false,null,null,1,false,true,0,"TCID50; 50% tissue culture infective dose","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% embryo infectious dose","[EID_50]","[EID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"EID50","chemical",false,null,null,1,false,true,0,"EID50; 50% embryo infective doses; EID50 Egg Infective Dosage","UCUM","thresNum","Clinical","","1","1","1",1,false],[false,"plaque forming units","[PFU]","[PFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"PFU","chemical",false,null,null,1,false,true,0,"PFU","UCUM","ACnc","Clinical","tests usually report unit as number of PFU per unit volume","1","1","1",1,false],[false,"focus forming units (cells)","[FFU]","[FFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"FFU","chemical",false,null,null,1,false,true,0,"FFU","UCUM","EntNum","Clinical","","1","1","1",1,false],[false,"colony forming units","[CFU]","[CFU]","amount of a proliferating organism",1,[0,0,0,0,0,0,0],"CFU","chemical",false,null,null,1,false,true,0,"CFU","UCUM","Num","Clinical","","1","1","1",1,false],[false,"index of reactivity (allergen)","[IR]","[IR]","amount of an allergen callibrated through in-vivo testing using the Stallergenes\xae method.",1,[0,0,0,0,0,0,0],"IR","chemical",false,null,null,1,false,true,0,"IR; indexes","UCUM","Acnc","Clinical","amount of an allergen callibrated through in-vivo testing using the Stallergenes method. Usually reported in tests as IR/mL","1","1","1",1,false],[false,"bioequivalent allergen unit","[BAU]","[BAU]","amount of an allergen callibrated through in-vivo testing based on the ID50EAL method of (intradermal dilution for 50mm sum of erythema diameters",1,[0,0,0,0,0,0,0],"BAU","chemical",false,null,null,1,false,true,0,"BAU; Bioequivalent Allergy Units; bioequivalent allergen units","UCUM","Arb","Clinical","","1","1","1",1,false],[false,"allergy unit","[AU]","[AU]","procedure defined amount of an allergen using some reference standard",1,[0,0,0,0,0,0,0],"AU","chemical",false,null,null,1,false,true,0,"allergy units; allergen units; AU","UCUM","Arb","Clinical","Most standard test allergy units are reported as [IU] or as %. ","1","1","1",1,false],[false,"allergen unit for Ambrosia artemisiifolia","[Amb\'a\'1\'U]","[AMB\'A\'1\'U]","procedure defined amount of the major allergen of ragweed.",1,[0,0,0,0,0,0,0],"Amb a 1 U","chemical",false,null,null,1,false,true,0,"Amb a 1 unit; Antigen E; AgE U; allergen units","UCUM","Arb","Clinical","Amb a 1 is the major allergen in short ragweed, and can be converted Bioequivalent allergen units (BAU) where 350 Amb a 1 U/mL = 100,000 BAU/mL","1","1","1",1,false],[false,"protein nitrogen unit (allergen testing)","[PNU]","[PNU]","procedure defined amount of a protein substance",1,[0,0,0,0,0,0,0],"PNU","chemical",false,null,null,1,false,true,0,"protein nitrogen units; PNU","UCUM","Mass","Clinical","defined as 0.01 ug of phosphotungstic acid-precipitable protein nitrogen. Being replaced by bioequivalent allergy units (BAU).","1","1","1",1,false],[false,"Limit of flocculation","[Lf]","[LF]","procedure defined amount of an antigen substance",1,[0,0,0,0,0,0,0],"Lf","chemical",false,null,null,1,false,true,0,"Lf doses","UCUM","Arb","Clinical","the antigen content forming 1:1 ratio against 1 unit of antitoxin","1","1","1",1,false],[false,"D-antigen unit (polio)","[D\'ag\'U]","[D\'AG\'U]","procedure defined amount of a poliomyelitis d-antigen substance",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"DAgU; units","UCUM","Acnc","Clinical","unit of potency of poliovirus vaccine used for poliomyelitis prevention reported as D antigen units/mL. The unit is poliovirus type-specific.","1","1","1",1,false],[false,"fibrinogen equivalent units","[FEU]","[FEU]","amount of fibrinogen broken down into the measured d-dimers",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"FEU","UCUM","MCnc","Clinical","Note both the FEU and DDU units are used to report D-dimer measurements. 1 DDU = 1/2 FFU","1","1","1",1,false],[false,"ELISA unit","[ELU]","[ELU]","arbitrary ELISA unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Enzyme-Linked Immunosorbent Assay Units; ELU; EL. U","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"Ehrlich units (urobilinogen)","[EU]","[EU]","Ehrlich unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"EU/dL; mg{urobilinogen}/dL","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"neper","Np","NEP","level",1,[0,0,0,0,0,0,0],"Np","levels",true,null,"ln",1,true,false,0,"nepers","UCUM","LogRto","Clinical","logarithmic unit for ratios of measurements of physical field and power quantities, such as gain and loss of electronic signals","1",null,null,1,false],[false,"bel","B","B","level",1,[0,0,0,0,0,0,0],"B","levels",true,null,"lg",1,true,false,0,"bels","UCUM","LogRto","Clinical","Logarithm of the ratio of power- or field-type quantities; usually expressed in decibels ","1",null,null,1,false],[false,"bel sound pressure","B[SPL]","B[SPL]","pressure level",0.02,[-1,-2,1,0,0,0,0],"B(SPL)","levels",true,null,"lgTimes2",1,true,false,0,"bel SPL; B SPL; sound pressure bels","UCUM","LogRto","Clinical","used to measure sound level in acoustics","Pa",null,null,0.00002,false],[false,"bel volt","B[V]","B[V]","electric potential level",1000,[2,-2,1,0,0,-1,0],"B(V)","levels",true,null,"lgTimes2",1,true,false,0,"bel V; B V; volts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","V",null,null,1,false],[false,"bel millivolt","B[mV]","B[MV]","electric potential level",1,[2,-2,1,0,0,-1,0],"B(mV)","levels",true,null,"lgTimes2",1,true,false,0,"bel mV; B mV; millivolt bels; 10^-3V bels; 10*-3V ","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","mV",null,null,1,false],[false,"bel microvolt","B[uV]","B[UV]","electric potential level",0.001,[2,-2,1,0,0,-1,0],"B(\u03bcV)","levels",true,null,"lgTimes2",1,true,false,0,"bel uV; B uV; microvolts bels; 10^-6V bel; 10*-6V bel","UCUM","LogRto","Clinical","used to express power gain in electrical circuits","uV",null,null,1,false],[false,"bel 10 nanovolt","B[10.nV]","B[10.NV]","electric potential level",0.000010000000000000003,[2,-2,1,0,0,-1,0],"B(10 nV)","levels",true,null,"lgTimes2",1,true,false,0,"bel 10 nV; B 10 nV; 10 nanovolts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","nV",null,null,10,false],[false,"bel watt","B[W]","B[W]","power level",1000,[2,-3,1,0,0,0,0],"B(W)","levels",true,null,"lg",1,true,false,0,"bel W; b W; b Watt; Watts bels","UCUM","LogRto","Clinical","used to express power","W",null,null,1,false],[false,"bel kilowatt","B[kW]","B[KW]","power level",1000000,[2,-3,1,0,0,0,0],"B(kW)","levels",true,null,"lg",1,true,false,0,"bel kW; B kW; kilowatt bel; kW bel; kW B","UCUM","LogRto","Clinical","used to express power","kW",null,null,1,false],[false,"stere","st","STR","volume",1,[3,0,0,0,0,0,0],"st","misc",true,null,null,1,false,false,0,"st\xe8re; m3; cubic meter; m^3; meters cubed; metre","UCUM","Vol","Nonclinical","equal to one cubic meter, usually used for measuring firewoord","m3","M3","1",1,false],[false,"\xc5ngstr\xf6m","Ao","AO","length",1.0000000000000002e-10,[1,0,0,0,0,0,0],"\xc5","misc",false,null,null,1,false,false,0,"\xc5; Angstroms; Ao; \xc5ngstr\xf6ms","UCUM","Len","Clinical","equal to 10^-10 meters; used to express wave lengths and atom scaled differences ","nm","NM","0.1",0.1,false],[false,"barn","b","BRN","action area",9.999999999999999e-29,[2,0,0,0,0,0,0],"b","misc",false,null,null,1,false,false,0,"barns","UCUM","Area","Clinical","used in high-energy physics to express cross-sectional areas","fm2","FM2","100",100,false],[false,"technical atmosphere","att","ATT","pressure",98066499.99999999,[-1,-2,1,0,0,0,0],"at","misc",false,null,null,1,false,false,0,"at; tech atm; tech atmosphere; kgf/cm2; atms; atmospheres","UCUM","Pres","Obsolete","non-SI unit of pressure equal to one kilogram-force per square centimeter","kgf/cm2","KGF/CM2","1",1,false],[false,"mho","mho","MHO","electric conductance",0.001,[-2,1,-1,0,0,2,0],"mho","misc",true,null,null,1,false,false,0,"siemens; ohm reciprocals; \u03a9^\u22121; \u03a9-1 ","UCUM","","Obsolete","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","S","S","1",1,false],[false,"pound per square inch","[psi]","[PSI]","pressure",6894757.293168359,[-1,-2,1,0,0,0,0],"psi","misc",false,null,null,1,false,false,0,"psi; lb/in2; lb per in2","UCUM","Pres","Clinical","","[lbf_av]/[in_i]2","[LBF_AV]/[IN_I]2","1",1,false],[false,"circle - plane angle","circ","CIRC","plane angle",6.283185307179586,[0,0,0,1,0,0,0],"circ","misc",false,null,null,1,false,false,0,"angles; circles","UCUM","Angle","Clinical","","[pi].rad","[PI].RAD","2",2,false],[false,"spere - solid angle","sph","SPH","solid angle",12.566370614359172,[0,0,0,2,0,0,0],"sph","misc",false,null,null,1,false,false,0,"speres","UCUM","Angle","Clinical","equal to the solid angle of an entire sphere = 4\u03c0sr (sr = steradian) ","[pi].sr","[PI].SR","4",4,false],[false,"metric carat","[car_m]","[CAR_M]","mass",0.2,[0,0,1,0,0,0,0],"ctm","misc",false,null,null,1,false,false,0,"carats; ct; car m","UCUM","Mass","Nonclinical","unit of mass for gemstones","g","G","2e-1",0.2,false],[false,"carat of gold alloys","[car_Au]","[CAR_AU]","mass fraction",0.041666666666666664,[0,0,0,0,0,0,0],"ctAu","misc",false,null,null,1,false,false,0,"karats; k; kt; car au; carats","UCUM","MFr","Nonclinical","unit of purity for gold alloys","/24","/24","1",1,false],[false,"Smoot","[smoot]","[SMOOT]","length",1.7018000000000002,[1,0,0,0,0,0,0],null,"misc",false,null,null,1,false,false,0,"","UCUM","Len","Nonclinical","prank unit of length from MIT","[in_i]","[IN_I]","67",67,false],[false,"meter per square seconds per square root of hertz","[m/s2/Hz^(1/2)]","[M/S2/HZ^(1/2)]","amplitude spectral density",1,[2,-3,0,0,0,0,0],null,"misc",false,null,"sqrt",1,true,false,0,"m/s2/(Hz^.5); m/s2/(Hz^(1/2)); m per s2 per Hz^1/2","UCUM","","Constant","measures amplitude spectral density, and is equal to the square root of power spectral density\\n ","m2/s4/Hz",null,null,1,false],[false,"bit - logarithmic","bit_s","BIT_S","amount of information",1,[0,0,0,0,0,0,0],"bits","infotech",false,null,"ld",1,true,false,0,"bit-s; bit s; bit logarithmic","UCUM","LogA","Nonclinical","defined as the log base 2 of the number of distinct signals; cannot practically be used to express more than 1000 bits\\n\\nIn information theory, the definition of the amount of self-information and information entropy is often expressed with the binary logarithm (log base 2)","1",null,null,1,false],[false,"bit","bit","BIT","amount of information",1,[0,0,0,0,0,0,0],"bit","infotech",true,null,null,1,false,false,0,"bits","UCUM","","Nonclinical","dimensionless information unit of 1 used in computing and digital communications","1","1","1",1,false],[false,"byte","By","BY","amount of information",8,[0,0,0,0,0,0,0],"B","infotech",true,null,null,1,false,false,0,"bytes","UCUM","","Nonclinical","equal to 8 bits","bit","bit","8",8,false],[false,"baud","Bd","BD","signal transmission rate",1,[0,1,0,0,0,0,0],"Bd","infotech",true,null,"inv",1,false,false,0,"Bd; bauds","UCUM","Freq","Nonclinical","unit to express rate in symbols per second or pulses per second. ","s","/s","1",1,false],[false,"per twelve hour","/(12.h)","/HR","",0.000023148148148148147,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"per 12 hours; 12hrs; 12 hrs; /12hrs","LOINC","Rat","Clinical","",null,null,null,null,false],[false,"per arbitrary unit","/[arb\'U]","/[ARB\'U]","",1,[0,0,0,0,0,0,0],"/arb/ U",null,false,null,null,1,false,true,0,"/arbU","LOINC","InvA ","Clinical","",null,null,null,null,false],[false,"per high power field","/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"/HPF; per HPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per international unit","/[IU]","/[IU]","",1,[0,0,0,0,0,0,0],"/i/U.",null,false,null,null,1,false,true,0,"international units; /IU; per IU","LOINC","InvA","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)",null,null,null,null,false],[false,"per low power field","/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"/LPF; per LPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per 10 billion ","/10*10","/10*10","",1e-10,[0,0,0,0,0,0,0],"/1010<.sup>",null,false,null,null,1,false,false,0,"/10^10; per 10*10","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per trillion ","/10*12","/10*12","",1e-12,[0,0,0,0,0,0,0],"/1012<.sup>",null,false,null,null,1,false,false,0,"/10^12; per 10*12","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per thousand","/10*3","/10*3","",0.001,[0,0,0,0,0,0,0],"/103<.sup>",null,false,null,null,1,false,false,0,"/10^3; per 10*3","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per million","/10*6","/10*6","",0.000001,[0,0,0,0,0,0,0],"/106<.sup>",null,false,null,null,1,false,false,0,"/10^6; per 10*6;","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per billion","/10*9","/10*9","",1e-9,[0,0,0,0,0,0,0],"/109<.sup>",null,false,null,null,1,false,false,0,"/10^9; per 10*9","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100","/100","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"per hundred; 10^2; 10*2","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100 cells","/100{cells}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 cells; /100cells; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 neutrophils","/100{neutrophils}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 neutrophils; /100neutrophils; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 spermatozoa","/100{spermatozoa}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 spermatozoa; /100spermatozoa; per hundred","LOINC","NFr","Clinical","",null,null,null,null,false],[false,"per 100 white blood cells","/100{WBCs}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 WBCs; /100WBCs; per hundred","LOINC","Ratio; NFr","Clinical","",null,null,null,null,false],[false,"per year","/a","/ANN","",3.168808781402895e-8,[0,-1,0,0,0,0,0],"/a",null,false,null,null,1,false,false,0,"/Years; /yrs; yearly","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per centimeter of water","/cm[H2O]","/CM[H2O]","",0.000010197162129779282,[1,2,-1,0,0,0,0],"/cm\xa0HO2<.r>",null,false,null,null,1,false,false,0,"/cmH2O; /cm H2O; centimeters; centimetres","LOINC","InvPress","Clinical","",null,null,null,null,false],[false,"per day","/d","/D","",0.000011574074074074073,[0,-1,0,0,0,0,0],"/d",null,false,null,null,1,false,false,0,"/dy; per day","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per deciliter","/dL","/DL","",10000,[-3,0,0,0,0,0,0],"/dL",null,false,null,null,1,false,false,0,"per dL; /deciliter; decilitre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per gram","/g","/G","",1,[0,0,-1,0,0,0,0],"/g",null,false,null,null,1,false,false,0,"/gm; /gram; per g","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per hour","/h","/HR","",0.0002777777777777778,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"/hr; /hour; per hr","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per kilogram","/kg","/KG","",0.001,[0,0,-1,0,0,0,0],"/kg",null,false,null,null,1,false,false,0,"per kg; per kilogram","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per liter","/L","/L","",1000,[-3,0,0,0,0,0,0],"/L",null,false,null,null,1,false,false,0,"/liter; litre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per square meter","/m2","/M2","",1,[-2,0,0,0,0,0,0],"/m2<.sup>",null,false,null,null,1,false,false,0,"/m^2; /m*2; /sq. m; per square meter; meter squared; metre","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per cubic meter","/m3","/M3","",1,[-3,0,0,0,0,0,0],"/m3<.sup>",null,false,null,null,1,false,false,0,"/m^3; /m*3; /cu. m; per cubic meter; meter cubed; per m3; metre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per milligram","/mg","/MG","",1000,[0,0,-1,0,0,0,0],"/mg",null,false,null,null,1,false,false,0,"/milligram; per mg","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per minute","/min","/MIN","",0.016666666666666666,[0,-1,0,0,0,0,0],"/min",null,false,null,null,1,false,false,0,"/minute; per mins; breaths beats per minute","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per milliliter","/mL","/ML","",1000000,[-3,0,0,0,0,0,0],"/mL",null,false,null,null,1,false,false,0,"/milliliter; per mL; millilitre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per millimeter","/mm","/MM","",1000,[-1,0,0,0,0,0,0],"/mm",null,false,null,null,1,false,false,0,"/millimeter; per mm; millimetre","LOINC","InvLen","Clinical","",null,null,null,null,false],[false,"per month","/mo","/MO","",3.802570537683474e-7,[0,-1,0,0,0,0,0],"/mo",null,false,null,null,1,false,false,0,"/month; per mo; monthly; month","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per second","/s","/S","",1,[0,-1,0,0,0,0,0],"/s",null,false,null,null,1,false,false,0,"/second; /sec; per sec; frequency; Hertz; Herz; Hz; becquerels; Bq; s-1; s^-1","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per enzyme unit","/U","/U","",9.963241120049633e-17,[0,1,0,0,0,0,0],"/U",null,false,null,null,1,false,false,-1,"/enzyme units; per U","LOINC","InvC; NCat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"per microliter","/uL","/UL","",999999999.9999999,[-3,0,0,0,0,0,0],"/\u03bcL",null,false,null,null,1,false,false,0,"/microliter; microlitre; /mcl; per uL","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"per week","/wk","/WK","",0.0000016534391534391535,[0,-1,0,0,0,0,0],"/wk",null,false,null,null,1,false,false,0,"/week; per wk; weekly, weeks","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"APL unit per milliliter","[APL\'U]/mL","[APL\'U]/ML","biologic activity of anticardiolipin IgA",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"APL/mL; APL\'U/mL; APL U/mL; APL/milliliter; IgA anticardiolipin units per milliliter; IgA Phospholipid Units; millilitre; biologic activity of","LOINC","ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"arbitrary unit per milliliter","[arb\'U]/mL","[ARB\'U]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(arb. U)/mL","chemical",false,null,null,1,false,true,0,"arb\'U/mL; arbU/mL; arb U/mL; arbitrary units per milliliter; millilitre","LOINC","ACnc","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"colony forming units per liter","[CFU]/L","[CFU]/L","amount of a proliferating organism",1000,[-3,0,0,0,0,0,0],"CFU/L","chemical",false,null,null,1,false,true,0,"CFU per Liter; CFU/L","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"colony forming units per milliliter","[CFU]/mL","[CFU]/ML","amount of a proliferating organism",1000000,[-3,0,0,0,0,0,0],"CFU/mL","chemical",false,null,null,1,false,true,0,"CFU per mL; CFU/mL","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"foot per foot - US","[ft_us]/[ft_us]","[FT_US]/[FT_US]","length",1,[0,0,0,0,0,0,0],"(ftus)/(ftus)","us-lengths",false,null,null,1,false,false,0,"ft/ft; ft per ft; feet per feet; visual acuity","","LenRto","Clinical","distance ratio to measure 20:20 vision","m/3937","M/3937","1200",1200,false],[false,"GPL unit per milliliter","[GPL\'U]/mL","[GPL\'U]/ML","biologic activity of anticardiolipin IgG",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"GPL U/mL; GPL\'U/mL; GPL/mL; GPL U per mL; IgG Phospholipid Units per milliliters; IgG anticardiolipin units; millilitres ","LOINC","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"international unit per 2 hour","[IU]/(2.h)","[IU]/HR","arbitrary",0.0001388888888888889,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/2hrs; IU/2 hours; IU per 2 hrs; international units per 2 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per 24 hour","[IU]/(24.h)","[IU]/HR","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/24hr; IU/24 hours; IU per 24 hrs; international units per 24 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per day","[IU]/d","[IU]/D","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/d","chemical",true,null,null,1,false,true,0,"IU/dy; IU/days; IU per dys; international units per day","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per deciliter","[IU]/dL","[IU]/DL","arbitrary",10000,[-3,0,0,0,0,0,0],"(i.U.)/dL","chemical",true,null,null,1,false,true,0,"IU/dL; IU per dL; international units per deciliters; decilitres","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per gram","[IU]/g","[IU]/G","arbitrary",1,[0,0,-1,0,0,0,0],"(i.U.)/g","chemical",true,null,null,1,false,true,0,"IU/gm; IU/gram; IU per gm; IU per g; international units per gram","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per hour","[IU]/h","[IU]/HR","arbitrary",0.0002777777777777778,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/hrs; IU per hours; international units per hour","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram","[IU]/kg","[IU]/KG","arbitrary",0.001,[0,0,-1,0,0,0,0],"(i.U.)/kg","chemical",true,null,null,1,false,true,0,"IU/kg; IU/kilogram; IU per kg; units","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram per day","[IU]/kg/d","[IU]/KG/D","arbitrary",1.1574074074074074e-8,[0,-1,-1,0,0,0,0],"(i.U.)/kg/d","chemical",true,null,null,1,false,true,0,"IU/kg/dy; IU/kg/day; IU/kilogram/day; IU per kg per day; units","LOINC","ACntRat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per liter","[IU]/L","[IU]/L","arbitrary",1000,[-3,0,0,0,0,0,0],"(i.U.)/L","chemical",true,null,null,1,false,true,0,"IU/L; IU/liter; IU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per minute","[IU]/min","[IU]/MIN","arbitrary",0.016666666666666666,[0,-1,0,0,0,0,0],"(i.U.)/min","chemical",true,null,null,1,false,true,0,"IU/min; IU/minute; IU per minute; international units","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per milliliter","[IU]/mL","[IU]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(i.U.)/mL","chemical",true,null,null,1,false,true,0,"IU/mL; IU per mL; international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"MPL unit per milliliter","[MPL\'U]/mL","[MPL\'U]/ML","biologic activity of anticardiolipin IgM",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"MPL/mL; MPL U/mL; MPL\'U/mL; IgM anticardiolipin units; IgM Phospholipid Units; millilitre ","LOINC","ACnc","Clinical","units for antiphospholipid test\\n","1","1","1",1,false],[false,"number per high power field","{#}/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"#/HPF; # per HPF; number/HPF; numbers per high power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"number per low power field","{#}/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"#/LPF; # per LPF; number/LPF; numbers per low power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"IgA antiphosphatidylserine unit ","{APS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"APS Unit; Phosphatidylserine Antibody IgA Units","LOINC","ACnc","Clinical","unit for antiphospholipid test",null,null,null,null,false],[false,"EIA index","{EIA_index}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"enzyme immunoassay index","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"kaolin clotting time","{KCT\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"KCT","LOINC","Time","Clinical","sensitive\xa0test to detect\xa0lupus anticoagulants; measured in seconds",null,null,null,null,false],[false,"IgM antiphosphatidylserine unit","{MPS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"Phosphatidylserine Antibody IgM Measurement ","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"trillion per liter","10*12/L","(10*12)/L","number",1000000000000000,[-3,0,0,0,0,0,0],"(1012)/L","dimless",false,null,null,1,false,false,0,"10^12/L; 10*12 per Liter; trillion per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^3 (used for cell count)","10*3","10*3","number",1000,[0,0,0,0,0,0,0],"103","dimless",false,null,null,1,false,false,0,"10^3; thousand","LOINC","Num","Clinical","usually used for counting entities (e.g. blood cells) per volume","1","1","10",10,false],[false,"thousand per liter","10*3/L","(10*3)/L","number",1000000,[-3,0,0,0,0,0,0],"(103)/L","dimless",false,null,null,1,false,false,0,"10^3/L; 10*3 per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per milliliter","10*3/mL","(10*3)/ML","number",1000000000,[-3,0,0,0,0,0,0],"(103)/mL","dimless",false,null,null,1,false,false,0,"10^3/mL; 10*3 per mL; thousand per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per microliter","10*3/uL","(10*3)/UL","number",999999999999.9999,[-3,0,0,0,0,0,0],"(103)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^3/uL; 10*3 per uL; thousand per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 thousand per microliter","10*4/uL","(10*4)/UL","number",10000000000000,[-3,0,0,0,0,0,0],"(104)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^4/uL; 10*4 per uL; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^5 ","10*5","10*5","number",100000,[0,0,0,0,0,0,0],"105","dimless",false,null,null,1,false,false,0,"one hundred thousand","LOINC","Num","Clinical","","1","1","10",10,false],[false,"10^6","10*6","10*6","number",1000000,[0,0,0,0,0,0,0],"106","dimless",false,null,null,1,false,false,0,"","LOINC","Num","Clinical","","1","1","10",10,false],[false,"million colony forming unit per liter","10*6.[CFU]/L","(10*6).[CFU]/L","number",1000000000,[-3,0,0,0,0,0,0],"(106).CFU/L","dimless",false,null,null,1,false,true,0,"10*6 CFU/L; 10^6 CFU/L; 10^6CFU; 10^6 CFU per liter; million colony forming units; litre","LOINC","ACnc","Clinical","","1","1","10",10,false],[false,"million international unit","10*6.[IU]","(10*6).[IU]","number",1000000,[0,0,0,0,0,0,0],"(106).(i.U.)","dimless",false,null,null,1,false,true,0,"10*6 IU; 10^6 IU; international units","LOINC","arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","10",10,false],[false,"million per 24 hour","10*6/(24.h)","(10*6)/HR","number",11.574074074074074,[0,-1,0,0,0,0,0],"(106)/h","dimless",false,null,null,1,false,false,0,"10*6/24hrs; 10^6/24 hrs; 10*6 per 24 hrs; 10^6 per 24 hours","LOINC","NRat","Clinical","","1","1","10",10,false],[false,"million per kilogram","10*6/kg","(10*6)/KG","number",1000,[0,0,-1,0,0,0,0],"(106)/kg","dimless",false,null,null,1,false,false,0,"10^6/kg; 10*6 per kg; 10*6 per kilogram; millions","LOINC","NCnt","Clinical","","1","1","10",10,false],[false,"million per liter","10*6/L","(10*6)/L","number",1000000000,[-3,0,0,0,0,0,0],"(106)/L","dimless",false,null,null,1,false,false,0,"10^6/L; 10*6 per Liter; 10^6 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per milliliter","10*6/mL","(10*6)/ML","number",1000000000000,[-3,0,0,0,0,0,0],"(106)/mL","dimless",false,null,null,1,false,false,0,"10^6/mL; 10*6 per mL; 10*6 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per microliter","10*6/uL","(10*6)/UL","number",1000000000000000,[-3,0,0,0,0,0,0],"(106)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^6/uL; 10^6 per uL; 10^6/mcl; 10^6 per mcl; 10^6 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^8","10*8","10*8","number",100000000,[0,0,0,0,0,0,0],"108","dimless",false,null,null,1,false,false,0,"100 million; one hundred million; 10^8","LOINC","Num","Clinical","","1","1","10",10,false],[false,"billion per liter","10*9/L","(10*9)/L","number",1000000000000,[-3,0,0,0,0,0,0],"(109)/L","dimless",false,null,null,1,false,false,0,"10^9/L; 10*9 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per milliliter","10*9/mL","(10*9)/ML","number",1000000000000000,[-3,0,0,0,0,0,0],"(109)/mL","dimless",false,null,null,1,false,false,0,"10^9/mL; 10*9 per mL; 10^9 per mL; 10*9 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per microliter","10*9/uL","(10*9)/UL","number",1000000000000000000,[-3,0,0,0,0,0,0],"(109)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^9/uL; 10^9 per uL; 10^9/mcl; 10^9 per mcl; 10*9 per uL; 10*9 per mcl; 10*9/mcl; 10^9 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 liter per minute per square meter","10.L/(min.m2)","L/(MIN.M2)","",0.00016666666666666666,[1,-1,0,0,0,0,0],"L/(min.(m2))",null,false,null,null,1,false,false,0,"10 liters per minutes per square meter; 10 L per min per m2; m^2; 10 L/(min*m2); 10L/(min*m^2); litres; sq. meter; metre; meters squared","LOINC","ArVRat","Clinical","",null,null,null,null,false],[false,"10 liter per minute","10.L/min","L/MIN","",0.00016666666666666666,[3,-1,0,0,0,0,0],"L/min",null,false,null,null,1,false,false,0,"10 liters per minute; 10 L per min; 10L; 10 L/min; litre","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"10 micronewton second per centimeter to the fifth power per square meter","10.uN.s/(cm5.m2)","(UN.S)/(CM5.M2)","",100000000,[-6,-1,1,0,0,0,0],"(\u03bcN.s)/(cm5).(m2)",null,false,null,null,1,false,false,0,"dyne seconds per centimeter5 and square meter; dyn.s/(cm5.m2); dyn.s/cm5/m2; cm^5; m^2","LOINC","","Clinical","unit to measure systemic vascular resistance per body surface area",null,null,null,null,false],[false,"24 hour","24.h","HR","",86400,[0,1,0,0,0,0,0],"h",null,false,null,null,1,false,false,0,"24hrs; 24 hrs; 24 hours; days; dy","LOINC","Time","Clinical","",null,null,null,null,false],[false,"ampere per meter","A/m","A/M","electric current",1,[-1,-1,0,0,0,1,0],"A/m","si",true,null,null,1,false,false,0,"A/m; amp/meter; magnetic field strength; H; B; amperes per meter; metre","LOINC","","Clinical","unit of magnetic field strength","C/s","C/S","1",1,false],[true,"centigram","cg","CG","mass",0.01,[0,0,1,0,0,0,0],"cg",null,false,"M",null,1,false,false,0,"centigrams; cg; cgm","LOINC","Mass","Clinical","",null,null,null,null,false],[false,"centiliter","cL","CL","volume",0.00001,[3,0,0,0,0,0,0],"cL","iso1000",true,null,null,1,false,false,0,"centiliters; centilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"centimeter","cm","CM","length",0.01,[1,0,0,0,0,0,0],"cm",null,false,"L",null,1,false,false,0,"centimeters; centimetres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"centimeter of water","cm[H2O]","CM[H2O]","pressure",98066.5,[-1,-2,1,0,0,0,0],"cm\xa0HO2","clinical",true,null,null,1,false,false,0,"cm H2O; cmH2O; centimetres; pressure","LOINC","Pres","Clinical","unit of pressure mostly applies to blood pressure","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per liter per second","cm[H2O]/L/s","(CM[H2O]/L)/S","pressure",98066500,[-4,-3,1,0,0,0,0],"(cm\xa0HO2)/L/s","clinical",true,null,null,1,false,false,0,"cm[H2O]/(L/s); cm[H2O].s/L; cm H2O/L/sec; cmH2O/L/sec; cmH2O/Liter; cmH2O per L per secs; centimeters of water per liters per second; centimetres; litres; cm[H2O]/(L/s)","LOINC","PresRat","Clinical","unit used to measure mean pulmonary resistance","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per second per meter","cm[H2O]/s/m","(CM[H2O]/S)/M","pressure",98066.5,[-2,-3,1,0,0,0,0],"(cm\xa0HO2)/s/m","clinical",true,null,null,1,false,false,0,"cm[H2O]/(s.m); cm H2O/s/m; cmH2O; cmH2O/sec/m; cmH2O per secs per meters; centimeters of water per seconds per meter; centimetres; metre","LOINC","PresRat","Clinical","unit used to measure pulmonary pressure time product","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of mercury","cm[Hg]","CM[HG]","pressure",1333220,[-1,-2,1,0,0,0,0],"cm\xa0Hg","clinical",true,null,null,1,false,false,0,"centimeters of mercury; centimetres; cmHg; cm Hg","LOINC","Pres","Clinical","unit of pressure where 1 cmHg = 10 torr","kPa","KPAL","133.3220",133.322,false],[true,"square centimeter","cm2","CM2","length",0.0001,[2,0,0,0,0,0,0],"cm2",null,false,"L",null,1,false,false,0,"cm^2; sq cm; centimeters squared; square centimeters; centimetre; area","LOINC","Area","Clinical","",null,null,null,null,false],[true,"square centimeter per second","cm2/s","CM2/S","length",0.0001,[2,-1,0,0,0,0,0],"(cm2)/s",null,false,"L",null,1,false,false,0,"cm^2/sec; square centimeters per second; sq cm per sec; cm2; centimeters squared; centimetres","LOINC","AreaRat","Clinical","",null,null,null,null,false],[false,"centipoise","cP","CP","dynamic viscosity",1,[-1,-1,1,0,0,0,0],"cP","cgs",true,null,null,1,false,false,0,"cps; centiposes","LOINC","Visc","Clinical","unit of dynamic viscosity in the CGS system with base units: 10^\u22123 Pa.s = 1 mPa\xb7.s (1 millipascal second)","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"centistoke","cSt","CST","kinematic viscosity",0.0000010000000000000002,[2,-1,0,0,0,0,0],"cSt","cgs",true,null,null,1,false,false,0,"centistokes","LOINC","Visc","Clinical","unit for kinematic viscosity with base units of mm^2/s (square millimeter per second)","cm2/s","CM2/S","1",1,false],[false,"dekaliter per minute","daL/min","DAL/MIN","volume",0.00016666666666666666,[3,-1,0,0,0,0,0],"daL/min","iso1000",true,null,null,1,false,false,0,"dekalitres; dekaliters per minute; per min","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"dekaliter per minute per square meter","daL/min/m2","(DAL/MIN)/M2","volume",0.00016666666666666666,[1,-1,0,0,0,0,0],"(daL/min)/(m2)","iso1000",true,null,null,1,false,false,0,"daL/min/m^2; daL/minute/m2; sq. meter; dekaliters per minutes per square meter; meter squared; dekalitres; metre","LOINC","ArVRat","Clinical","The area usually is the body surface area used to normalize cardiovascular measures for patient\'s size","l",null,"1",1,false],[false,"decibel","dB","DB","level",1,[0,0,0,0,0,0,0],"dB","levels",true,null,"lg",0.1,true,false,0,"decibels","LOINC","LogRto","Clinical","unit most commonly used in acoustics as unit of sound pressure level. (also see B[SPL] or bel sound pressure level). ","1",null,null,1,false],[false,"degree per second","deg/s","DEG/S","plane angle",0.017453292519943295,[0,-1,0,1,0,0,0],"\xb0/s","iso1000",false,null,null,1,false,false,0,"deg/sec; deg per sec; \xb0/sec; twist rate; angular speed; rotational speed","LOINC","ARat","Clinical","unit of angular (rotational) speed used to express turning rate","[pi].rad/360","[PI].RAD/360","2",2,false],[true,"decigram","dg","DG","mass",0.1,[0,0,1,0,0,0,0],"dg",null,false,"M",null,1,false,false,0,"decigrams; dgm; 0.1 grams; 1/10 gm","LOINC","Mass","Clinical","equal to 1/10 gram",null,null,null,null,false],[false,"deciliter","dL","DL","volume",0.0001,[3,0,0,0,0,0,0],"dL","iso1000",true,null,null,1,false,false,0,"deciliters; decilitres; 0.1 liters; 1/10 L","LOINC","Vol","Clinical","equal to 1/10 liter","l",null,"1",1,false],[true,"decimeter","dm","DM","length",0.1,[1,0,0,0,0,0,0],"dm",null,false,"L",null,1,false,false,0,"decimeters; decimetres; 0.1 meters; 1/10 m; 10 cm; centimeters","LOINC","Len","Clinical","equal to 1/10 meter or 10 centimeters",null,null,null,null,false],[true,"square decimeter per square second","dm2/s2","DM2/S2","length",0.010000000000000002,[2,-2,0,0,0,0,0],"(dm2)/(s2)",null,false,"L",null,1,false,false,0,"dm2 per s2; dm^2/s^2; decimeters squared per second squared; sq dm; sq sec","LOINC","EngMass (massic energy)","Clinical","units for energy per unit mass or Joules per kilogram (J/kg = kg.m2/s2/kg = m2/s2) ",null,null,null,null,false],[false,"dyne second per centimeter per square meter","dyn.s/(cm.m2)","(DYN.S)/(CM.M2)","force",1,[-2,-1,1,0,0,0,0],"(dyn.s)/(cm.(m2))","cgs",true,null,null,1,false,false,0,"(dyn*s)/(cm*m2); (dyn*s)/(cm*m^2); dyn s per cm per m2; m^2; dyne seconds per centimeters per square meter; centimetres; sq. meter; squared","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"dyne second per centimeter","dyn.s/cm","(DYN.S)/CM","force",1,[0,-1,1,0,0,0,0],"(dyn.s)/cm","cgs",true,null,null,1,false,false,0,"(dyn*s)/cm; dyn sec per cm; seconds; centimetre; dyne seconds","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"equivalent per liter","eq/L","EQ/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"eq/L","chemical",true,null,null,1,false,false,1,"eq/liter; eq/litre; eqs; equivalents per liter; litre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per milliliter","eq/mL","EQ/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"eq/mL","chemical",true,null,null,1,false,false,1,"equivalent/milliliter; equivalents per milliliter; eq per mL; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per millimole","eq/mmol","EQ/MMOL","amount of substance",1000,[0,0,0,0,0,0,0],"eq/mmol","chemical",true,null,null,1,false,false,0,"equivalent/millimole; equivalents per millimole; eq per mmol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per micromole","eq/umol","EQ/UMOL","amount of substance",1000000,[0,0,0,0,0,0,0],"eq/\u03bcmol","chemical",true,null,null,1,false,false,0,"equivalent/micromole; equivalents per micromole; eq per umol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"femtogram","fg","FG","mass",1e-15,[0,0,1,0,0,0,0],"fg",null,false,"M",null,1,false,false,0,"fg; fgm; femtograms; weight","LOINC","Mass","Clinical","equal to 10^-15 grams",null,null,null,null,false],[false,"femtoliter","fL","FL","volume",1e-18,[3,0,0,0,0,0,0],"fL","iso1000",true,null,null,1,false,false,0,"femtolitres; femtoliters","LOINC","Vol; EntVol","Clinical","equal to 10^-15 liters","l",null,"1",1,false],[true,"femtometer","fm","FM","length",1e-15,[1,0,0,0,0,0,0],"fm",null,false,"L",null,1,false,false,0,"femtometres; femtometers","LOINC","Len","Clinical","equal to 10^-15 meters",null,null,null,null,false],[false,"femtomole","fmol","FMOL","amount of substance",602213670,[0,0,0,0,0,0,0],"fmol","si",true,null,null,1,false,false,1,"femtomoles","LOINC","EntSub","Clinical","equal to 10^-15 moles","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per gram","fmol/g","FMOL/G","amount of substance",602213670,[0,0,-1,0,0,0,0],"fmol/g","si",true,null,null,1,false,false,1,"femtomoles; fmol/gm; fmol per gm","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per liter","fmol/L","FMOL/L","amount of substance",602213670000,[-3,0,0,0,0,0,0],"fmol/L","si",true,null,null,1,false,false,1,"femtomoles; fmol per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milligram","fmol/mg","FMOL/MG","amount of substance",602213670000,[0,0,-1,0,0,0,0],"fmol/mg","si",true,null,null,1,false,false,1,"fmol per mg; femtomoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milliliter","fmol/mL","FMOL/ML","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"fmol/mL","si",true,null,null,1,false,false,1,"femtomoles; millilitre; fmol per mL; fmol per milliliter","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"gram meter","g.m","G.M","mass",1,[1,0,1,0,0,0,0],"g.m",null,false,"M",null,1,false,false,0,"g*m; gxm; meters; metres","LOINC","Enrg","Clinical","Unit for measuring stroke work (heart work)",null,null,null,null,false],[true,"gram per 100 gram","g/(100.g)","G/G","mass",0.01,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"g/100 gm; 100gm; grams per 100 grams; gm per 100 gm","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per 12 hour","g/(12.h)","G/HR","mass",0.000023148148148148147,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/12hrs; 12 hrs; gm per 12 hrs; 12hrs; grams per 12 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 24 hour","g/(24.h)","G/HR","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; gm/dy; gm per dy; grams per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 3 days","g/(3.d)","G/D","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/3dy; gm/3 dy; gm per 3 days; grams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 4 hour","g/(4.h)","G/HR","mass",0.00006944444444444444,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/4hrs; gm/4 hrs; gm per 4 hrs; 4hrs; grams per 4 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 48 hour","g/(48.h)","G/HR","mass",0.000005787037037037037,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/48hrs; gm/48 hrs; gm per 48 hrs; 48hrs; grams per 48 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 5 hour","g/(5.h)","G/HR","mass",0.00005555555555555556,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/5hrs; gm/5 hrs; gm per 5 hrs; 5hrs; grams per 5 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 6 hour","g/(6.h)","G/HR","mass",0.000046296296296296294,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/6hrs; gm/6 hrs; gm per 6 hrs; 6hrs; grams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 72 hour","g/(72.h)","G/HR","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/72hrs; gm/72 hrs; gm per 72 hrs; 72hrs; grams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per cubic centimeter","g/cm3","G/CM3","mass",999999.9999999999,[-3,0,1,0,0,0,0],"g/(cm3)",null,false,"M",null,1,false,false,0,"g/cm^3; gm per cm3; g per cm^3; grams per centimeter cubed; cu. cm; centimetre; g/mL; gram per milliliter; millilitre","LOINC","MCnc","Clinical","g/cm3 = g/mL",null,null,null,null,false],[true,"gram per day","g/d","G/D","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/dy; gm per dy; grams per day; gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; serving","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per deciliter","g/dL","G/DL","mass",10000,[-3,0,1,0,0,0,0],"g/dL",null,false,"M",null,1,false,false,0,"gm/dL; gm per dL; grams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per gram","g/g","G/G","mass",1,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"gm; grams","LOINC","MRto ","Clinical","",null,null,null,null,false],[true,"gram per hour","g/h","G/HR","mass",0.0002777777777777778,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/hr; gm per hr; grams; intake; output","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per hour per square meter","g/h/m2","(G/HR)/M2","mass",0.0002777777777777778,[-2,-1,1,0,0,0,0],"(g/h)/(m2)",null,false,"M",null,1,false,false,0,"gm/hr/m2; gm/h/m2; /m^2; sq. m; g per hr per m2; grams per hours per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"gram per kilogram","g/kg ","G/KG","mass",0.001,[0,0,0,0,0,0,0],"g/kg",null,false,"M",null,1,false,false,0,"g per kg; gram per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per kilogram per 8 hour ","g/kg/(8.h)","(G/KG)/HR","mass",3.472222222222222e-8,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(8.kg.h); gm/kg/8hrs; 8 hrs; g per kg per 8 hrs; 8hrs; grams per kilograms per 8 hours; shift","LOINC","MCntRat; RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a 8 hours, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per day","g/kg/d","(G/KG)/D","mass",1.1574074074074074e-8,[0,-1,0,0,0,0,0],"(g/kg)/d",null,false,"M",null,1,false,false,0,"g/(kg.d); gm/kg/dy; gm per kg per dy; grams per kilograms per day","LOINC","RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a day, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per hour","g/kg/h","(G/KG)/HR","mass",2.7777777777777776e-7,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(kg.h); g/kg/hr; g per kg per hrs; grams per kilograms per hour","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per minute","g/kg/min","(G/KG)/MIN","mass",0.000016666666666666667,[0,-1,0,0,0,0,0],"(g/kg)/min",null,false,"M",null,1,false,false,0,"g/(kg.min); g/kg/min; g per kg per min; grams per kilograms per minute","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per liter","g/L","G/L","mass",1000,[-3,0,1,0,0,0,0],"g/L",null,false,"M",null,1,false,false,0,"gm per liter; g/liter; grams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per square meter","g/m2","G/M2","mass",1,[-2,0,1,0,0,0,0],"g/(m2)",null,false,"M",null,1,false,false,0,"g/m^2; gram/square meter; g/sq m; g per m2; g per m^2; grams per square meter; meters squared; metre","LOINC","ArMass","Clinical","Tests measure myocardial mass (heart ventricle system) per body surface area; unit used to measure mass dose per body surface area",null,null,null,null,false],[true,"gram per milligram","g/mg","G/MG","mass",1000,[0,0,0,0,0,0,0],"g/mg",null,false,"M",null,1,false,false,0,"g per mg; grams per milligram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"gram per minute","g/min","G/MIN","mass",0.016666666666666666,[0,-1,1,0,0,0,0],"g/min",null,false,"M",null,1,false,false,0,"g per min; grams per minute; gram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per milliliter","g/mL","G/ML","mass",1000000,[-3,0,1,0,0,0,0],"g/mL",null,false,"M",null,1,false,false,0,"g per mL; grams per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per millimole","g/mmol","G/MMOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"g/mmol",null,false,"M",null,1,false,false,-1,"grams per millimole; g per mmol","LOINC","Ratio","Clinical","",null,null,null,null,false],[false,"joule per liter","J/L","J/L","energy",1000000,[-1,-2,1,0,0,0,0],"J/L","si",true,null,null,1,false,false,0,"joules per liter; litre; J per L","LOINC","EngCnc","Clinical","","N.m","N.M","1",1,false],[true,"degree Kelvin per Watt","K/W","K/W","temperature",0.001,[-2,3,-1,0,1,0,0],"K/W",null,false,"C",null,1,false,false,0,"degree Kelvin/Watt; K per W; thermal ohm; thermal resistance; degrees","LOINC","TempEngRat","Clinical","unit for absolute thermal resistance equal to the reciprocal of thermal conductance. Unit used for tests to measure work of breathing",null,null,null,null,false],[false,"kilo international unit per liter","k[IU]/L","K[IU]/L","arbitrary",1000000,[-3,0,0,0,0,0,0],"(ki.U.)/L","chemical",true,null,null,1,false,true,0,"kIU/L; kIU per L; kIU per liter; kilo international units; litre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/L","[iU]","[IU]","1",1,false],[false,"kilo international unit per milliliter","k[IU]/mL","K[IU]/ML","arbitrary",1000000000,[-3,0,0,0,0,0,0],"(ki.U.)/mL","chemical",true,null,null,1,false,true,0,"kIU/mL; kIU per mL; kIU per milliliter; kilo international units; millilitre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/mL","[iU]","[IU]","1",1,false],[false,"katal per kilogram","kat/kg","KAT/KG","catalytic activity",602213670000000000000,[0,-1,-1,0,0,0,0],"kat/kg","chemical",true,null,null,1,false,false,1,"kat per kg; katals per kilogram; mol/s/kg; moles per seconds per kilogram","LOINC","CCnt","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"katal per liter","kat/L","KAT/L","catalytic activity",6.0221366999999994e+26,[-3,-1,0,0,0,0,0],"kat/L","chemical",true,null,null,1,false,false,1,"kat per L; katals per liter; litre; mol/s/L; moles per seconds per liter","LOINC","CCnc","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"kilocalorie","kcal","KCAL","energy",4184000,[2,-2,1,0,0,0,0],"kcal","heat",true,null,null,1,false,false,0,"kilogram calories; large calories; food calories; kcals","LOINC","EngRat","Clinical","It is equal to 1000 calories (equal to 4.184 kJ). But in practical usage, kcal refers to food calories which excludes caloric content in fiber and other constitutes that is not digestible by humans. Also see nutrition label Calories ([Cal])","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per 24 hour","kcal/(24.h)","KCAL/HR","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/24hrs; kcal/24 hrs; kcal per 24hrs; kilocalories per 24 hours; kilojoules; kJ/24hr; kJ/(24.h); kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","","EngRat","Clinical","","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per ounce","kcal/[oz_av]","KCAL/[OZ_AV]","energy",147586.25679704445,[2,-2,0,0,0,0,0],"kcal/oz","heat",true,null,null,1,false,false,0,"kcal/oz; kcal per ozs; large calories per ounces; food calories; servings; international","LOINC","EngCnt","Clinical","used in nutrition to represent calorie of food","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per day","kcal/d","KCAL/D","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/d","heat",true,null,null,1,false,false,0,"kcal/dy; kcal per day; kilocalories per days; kilojoules; kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","LOINC","EngRat","Clinical","unit in nutrition for food intake (measured in calories) in a day","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per hour","kcal/h","KCAL/HR","energy",1162.2222222222222,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/hrs; kcals per hr; intake; kilocalories per hours; kilojoules","LOINC","EngRat","Clinical","used in nutrition to represent caloric requirement or consumption","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per kilogram per 24 hour","kcal/kg/(24.h)","(KCAL/KG)/HR","energy",0.04842592592592593,[2,-3,0,0,0,0,0],"(kcal/kg)/h","heat",true,null,null,1,false,false,0,"kcal/kg/24hrs; 24 hrs; kcal per kg per 24hrs; kilocalories per kilograms per 24 hours; kilojoules","LOINC","EngCntRat","Clinical","used in nutrition to represent caloric requirement per day based on subject\'s body weight in kilograms","cal_th","CAL_TH","1",1,false],[true,"kilogram","kg","KG","mass",1000,[0,0,1,0,0,0,0],"kg",null,false,"M",null,1,false,false,0,"kilograms; kgs","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"kilogram meter per second","kg.m/s","(KG.M)/S","mass",1000,[1,-1,1,0,0,0,0],"(kg.m)/s",null,false,"M",null,1,false,false,0,"kg*m/s; kg.m per sec; kg*m per sec; p; momentum","LOINC","","Clinical","unit for momentum = mass times velocity",null,null,null,null,false],[true,"kilogram per second per square meter","kg/(s.m2)","KG/(S.M2)","mass",1000,[-2,-1,1,0,0,0,0],"kg/(s.(m2))",null,false,"M",null,1,false,false,0,"kg/(s*m2); kg/(s*m^2); kg per s per m2; per sec; per m^2; kilograms per seconds per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"kilogram per hour","kg/h","KG/HR","mass",0.2777777777777778,[0,-1,1,0,0,0,0],"kg/h",null,false,"M",null,1,false,false,0,"kg/hr; kg per hr; kilograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per liter","kg/L","KG/L","mass",1000000,[-3,0,1,0,0,0,0],"kg/L",null,false,"M",null,1,false,false,0,"kg per liter; litre; kilograms","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per square meter","kg/m2","KG/M2","mass",1000,[-2,0,1,0,0,0,0],"kg/(m2)",null,false,"M",null,1,false,false,0,"kg/m^2; kg/sq. m; kg per m2; per m^2; per sq. m; kilograms; meter squared; metre; BMI","LOINC","Ratio","Clinical","units for body mass index (BMI)",null,null,null,null,false],[true,"kilogram per cubic meter","kg/m3","KG/M3","mass",1000,[-3,0,1,0,0,0,0],"kg/(m3)",null,false,"M",null,1,false,false,0,"kg/m^3; kg/cu. m; kg per m3; per m^3; per cu. m; kilograms; meters cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per minute","kg/min","KG/MIN","mass",16.666666666666668,[0,-1,1,0,0,0,0],"kg/min",null,false,"M",null,1,false,false,0,"kilogram/minute; kg per min; kilograms per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per mole","kg/mol","KG/MOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"kg/mol",null,false,"M",null,1,false,false,-1,"kilogram/mole; kg per mol; kilograms per mole","LOINC","SCnt","Clinical","",null,null,null,null,false],[true,"kilogram per second","kg/s","KG/S","mass",1000,[0,-1,1,0,0,0,0],"kg/s",null,false,"M",null,1,false,false,0,"kg/sec; kilogram/second; kg per sec; kilograms; second","LOINC","MRat","Clinical","",null,null,null,null,false],[false,"kiloliter","kL","KL","volume",1,[3,0,0,0,0,0,0],"kL","iso1000",true,null,null,1,false,false,0,"kiloliters; kilolitres; m3; m^3; meters cubed; metre","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"kilometer","km","KM","length",1000,[1,0,0,0,0,0,0],"km",null,false,"L",null,1,false,false,0,"kilometers; kilometres; distance","LOINC","Len","Clinical","",null,null,null,null,false],[false,"kilopascal","kPa","KPAL","pressure",1000000,[-1,-2,1,0,0,0,0],"kPa","si",true,null,null,1,false,false,0,"kilopascals; pressure","LOINC","Pres; PPresDiff","Clinical","","N/m2","N/M2","1",1,false],[true,"kilosecond","ks","KS","time",1000,[0,1,0,0,0,0,0],"ks",null,false,"T",null,1,false,false,0,"kiloseconds; ksec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"kilo enzyme unit","kU","KU","catalytic activity",10036894500000000000,[0,-1,0,0,0,0,0],"kU","chemical",true,null,null,1,false,false,1,"units; mmol/min; millimoles per minute","LOINC","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per gram","kU/g","KU/G","catalytic activity",10036894500000000000,[0,-1,-1,0,0,0,0],"kU/g","chemical",true,null,null,1,false,false,1,"units per grams; kU per gm","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per liter","kU/L","KU/L","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"kU/L","chemical",true,null,null,1,false,false,1,"units per liter; litre; enzymatic activity; enzyme activity per volume; activities","LOINC","ACnc; CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per milliliter","kU/mL","KU/ML","catalytic activity",1.00368945e+25,[-3,-1,0,0,0,0,0],"kU/mL","chemical",true,null,null,1,false,false,1,"kU per mL; units per milliliter; millilitre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Liters per 24 hour","L/(24.h)","L/HR","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/24hrs; L/24 hrs; L per 24hrs; liters per 24 hours; day; dy; litres; volume flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per 8 hour","L/(8.h)","L/HR","volume",3.472222222222222e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/8hrs; L/8 hrs; L per 8hrs; liters per 8 hours; litres; volume flow rate; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/(min.m2) ","L/(MIN.M2)","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"L/(min.(m2))","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per day","L/d","L/D","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/d","iso1000",true,null,null,1,false,false,0,"L/dy; L per day; 24hrs; 24 hrs; 24 hours; liters; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per hour","L/h","L/HR","volume",2.7777777777777776e-7,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/hr; L per hr; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per kilogram","L/kg","L/KG","volume",0.000001,[3,0,-1,0,0,0,0],"L/kg","iso1000",true,null,null,1,false,false,0,"L per kg; litre","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"Liters per liter","L/L","L/L","volume",1,[0,0,0,0,0,0,0],"L/L","iso1000",true,null,null,1,false,false,0,"L per L; liter/liter; litre","LOINC","VFr","Clinical","","l",null,"1",1,false],[false,"Liters per minute","L/min","L/MIN","volume",0.000016666666666666667,[3,-1,0,0,0,0,0],"L/min","iso1000",true,null,null,1,false,false,0,"liters per minute; litre","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/min/m2","(L/MIN)/M2","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"(L/min)/(m2)","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per second","L/s","L/S","volume",0.001,[3,-1,0,0,0,0,0],"L/s","iso1000",true,null,null,1,false,false,0,"L per sec; litres","LOINC","VRat","Clinical","unit used often to measure gas flow and peak expiratory flow","l",null,"1",1,false],[false,"Liters per second per square second","L/s/s2","(L/S)/S2","volume",0.001,[3,-3,0,0,0,0,0],"(L/s)/(s2)","iso1000",true,null,null,1,false,false,0,"L/s/s^2; L/sec/sec2; L/sec/sec^2; L/sec/sq. sec; L per s per s2; L per sec per sec2; s^2; sec^2; liters per seconds per square second; second squared; litres ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output/body surface area","l",null,"1",1,false],[false,"lumen square meter","lm.m2","LM.M2","luminous flux",1,[2,0,0,2,0,0,1],"lm.(m2)","si",true,null,null,1,false,false,0,"lm*m2; lm*m^2; lumen meters squared; lumen sq. meters; metres","LOINC","","Clinical","","cd.sr","CD.SR","1",1,false],[true,"meter per second","m/s","M/S","length",1,[1,-1,0,0,0,0,0],"m/s",null,false,"L",null,1,false,false,0,"meter/second; m per sec; meters per second; metres; velocity; speed","LOINC","Vel","Clinical","unit of velocity",null,null,null,null,false],[true,"meter per square second","m/s2","M/S2","length",1,[1,-2,0,0,0,0,0],"m/(s2)",null,false,"L",null,1,false,false,0,"m/s^2; m/sq. sec; m per s2; per s^2; meters per square second; second squared; sq second; metres; acceleration","LOINC","Accel","Clinical","unit of acceleration",null,null,null,null,false],[false,"milli international unit per liter","m[IU]/L","M[IU]/L","arbitrary",1,[-3,0,0,0,0,0,0],"(mi.U.)/L","chemical",true,null,null,1,false,true,0,"mIU/L; m IU/L; mIU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"milli international unit per milliliter","m[IU]/mL","M[IU]/ML","arbitrary",1000.0000000000001,[-3,0,0,0,0,0,0],"(mi.U.)/mL","chemical",true,null,null,1,false,true,0,"mIU/mL; m IU/mL; mIU per mL; milli international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[true,"square meter","m2","M2","length",1,[2,0,0,0,0,0,0],"m2",null,false,"L",null,1,false,false,0,"m^2; sq m; square meters; meters squared; metres","LOINC","Area","Clinical","unit often used to represent body surface area",null,null,null,null,false],[true,"square meter per second","m2/s","M2/S","length",1,[2,-1,0,0,0,0,0],"(m2)/s",null,false,"L",null,1,false,false,0,"m^2/sec; m2 per sec; m^2 per sec; sq m/sec; meters squared/seconds; sq m per sec; meters squared; metres","LOINC","ArRat","Clinical","",null,null,null,null,false],[true,"cubic meter per second","m3/s","M3/S","length",1,[3,-1,0,0,0,0,0],"(m3)/s",null,false,"L",null,1,false,false,0,"m^3/sec; m3 per sec; m^3 per sec; cu m/sec; cubic meters per seconds; meters cubed; metres","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"milliampere","mA","MA","electric current",0.001,[0,-1,0,0,0,1,0],"mA","si",true,null,null,1,false,false,0,"mamp; milliamperes","LOINC","ElpotRat","Clinical","unit of electric current","C/s","C/S","1",1,false],[false,"millibar","mbar","MBAR","pressure",100000,[-1,-2,1,0,0,0,0],"mbar","iso1000",true,null,null,1,false,false,0,"millibars","LOINC","Pres","Clinical","unit of pressure","Pa","PAL","1e5",100000,false],[false,"millibar second per liter","mbar.s/L","(MBAR.S)/L","pressure",100000000,[-4,-1,1,0,0,0,0],"(mbar.s)/L","iso1000",true,null,null,1,false,false,0,"mbar*s/L; mbar.s per L; mbar*s per L; millibar seconds per liter; millibar second per litre","LOINC","","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"millibar per liter per second","mbar/L/s","(MBAR/L)/S","pressure",100000000,[-4,-3,1,0,0,0,0],"(mbar/L)/s","iso1000",true,null,null,1,false,false,0,"mbar/(L.s); mbar/L/sec; mbar/liter/second; mbar per L per sec; mbar per liter per second; millibars per liters per seconds; litres","LOINC","PresCncRat","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"milliequivalent","meq","MEQ","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"meq","chemical",true,null,null,1,false,false,1,"milliequivalents; meqs","LOINC","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 2 hour","meq/(2.h)","MEQ/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/2hrs; meq/2 hrs; meq per 2 hrs; milliequivalents per 2 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 24 hour","meq/(24.h)","MEQ/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 8 hour","meq/(8.h)","MEQ/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/8hrs; meq/8 hrs; meq per 8 hrs; milliequivalents per 8 hours; shift","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per day","meq/d","MEQ/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/d","chemical",true,null,null,1,false,false,1,"meq/dy; meq per day; milliquivalents per days; meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per deciliter","meq/dL","MEQ/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"meq/dL","chemical",true,null,null,1,false,false,1,"meq per dL; milliequivalents per deciliter; decilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per gram","meq/g","MEQ/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"meq/g","chemical",true,null,null,1,false,false,1,"mgq/gm; meq per gm; milliequivalents per gram","LOINC","MCnt","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per hour","meq/h","MEQ/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/hrs; meq per hrs; milliequivalents per hour","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per kilogram","meq/kg","MEQ/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"meq/kg","chemical",true,null,null,1,false,false,1,"meq per kg; milliequivalents per kilogram","LOINC","SCnt","Clinical","equivalence equals moles per valence; used to measure dose per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per kilogram per hour","meq/kg/h","(MEQ/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(meq/kg)/h","chemical",true,null,null,1,false,false,1,"meq/(kg.h); meq/kg/hr; meq per kg per hr; milliequivalents per kilograms per hour","LOINC","SCntRat","Clinical","equivalence equals moles per valence; unit used to measure dose rate per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per liter","meq/L","MEQ/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"meq/L","chemical",true,null,null,1,false,false,1,"milliequivalents per liter; litre; meq per l; acidity","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per square meter","meq/m2","MEQ/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"meq/(m2)","chemical",true,null,null,1,false,false,1,"meq/m^2; meq/sq. m; milliequivalents per square meter; meter squared; metre","LOINC","ArSub","Clinical","equivalence equals moles per valence; note that the use of m2 in clinical units ofter refers to body surface area","mol","MOL","1",1,false],[false,"milliequivalent per minute","meq/min","MEQ/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"meq/min","chemical",true,null,null,1,false,false,1,"meq per min; milliequivalents per minute","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per milliliter","meq/mL","MEQ/ML","amount of substance",6.0221367e+26,[-3,0,0,0,0,0,0],"meq/mL","chemical",true,null,null,1,false,false,1,"meq per mL; milliequivalents per milliliter; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"milligram","mg","MG","mass",0.001,[0,0,1,0,0,0,0],"mg",null,false,"M",null,1,false,false,0,"milligrams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"milligram per 10 hour","mg/(10.h)","MG/HR","mass",2.7777777777777777e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/10hrs; mg/10 hrs; mg per 10 hrs; milligrams per 10 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 12 hour","mg/(12.h)","MG/HR","mass",2.3148148148148148e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/12hrs; mg/12 hrs; per 12 hrs; 12hrs; milligrams per 12 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 2 hour","mg/(2.h)","MG/HR","mass",1.3888888888888888e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/2hrs; mg/2 hrs; mg per 2 hrs; 2hrs; milligrams per 2 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 24 hour","mg/(24.h)","MG/HR","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/kg/dy; mg per kg per day; milligrams per kilograms per days","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 6 hour","mg/(6.h)","MG/HR","mass",4.6296296296296295e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/6hrs; mg/6 hrs; mg per 6 hrs; 6hrs; milligrams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 72 hour","mg/(72.h)","MG/HR","mass",3.858024691358025e-9,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/72hrs; mg/72 hrs; 72 hrs; 72hrs; milligrams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 8 hour","mg/(8.h)","MG/HR","mass",3.472222222222222e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/8hrs; mg/8 hrs; milligrams per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per day","mg/d","MG/D","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/d",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/dy; mg per day; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per deciliter","mg/dL","MG/DL","mass",10,[-3,0,1,0,0,0,0],"mg/dL",null,false,"M",null,1,false,false,0,"mg per dL; milligrams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per gram","mg/g","MG/G","mass",0.001,[0,0,0,0,0,0,0],"mg/g",null,false,"M",null,1,false,false,0,"mg per gm; milligrams per gram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"milligram per hour","mg/h","MG/HR","mass",2.7777777777777776e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/hr; mg per hr; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per kilogram","mg/kg","MG/KG","mass",0.000001,[0,0,0,0,0,0,0],"mg/kg",null,false,"M",null,1,false,false,0,"mg per kg; milligrams per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"milligram per kilogram per 8 hour","mg/kg/(8.h)","(MG/KG)/HR","mass",3.472222222222222e-11,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(8.h.kg); mg/kg/8hrs; mg/kg/8 hrs; mg per kg per 8hrs; 8 hrs; milligrams per kilograms per 8 hours; shift","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per day","mg/kg/d","(MG/KG)/D","mass",1.1574074074074074e-11,[0,-1,0,0,0,0,0],"(mg/kg)/d",null,false,"M",null,1,false,false,0,"mg/(kg.d); mg/(kg.24.h)mg/kg/dy; mg per kg per day; milligrams per kilograms per days; mg/kg/(24.h); mg/kg/24hrs; 24 hrs; 24 hours","LOINC","RelMRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per hour","mg/kg/h","(MG/KG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(kg.h); mg/kg/hr; mg per kg per hr; milligrams per kilograms per hour","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per minute","mg/kg/min","(MG/KG)/MIN","mass",1.6666666666666667e-8,[0,-1,0,0,0,0,0],"(mg/kg)/min",null,false,"M",null,1,false,false,0,"mg/(kg.min); mg per kg per min; milligrams per kilograms per minute","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per liter","mg/L","MG/L","mass",1,[-3,0,1,0,0,0,0],"mg/L",null,false,"M",null,1,false,false,0,"mg per l; milligrams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per square meter","mg/m2","MG/M2","mass",0.001,[-2,0,1,0,0,0,0],"mg/(m2)",null,false,"M",null,1,false,false,0,"mg/m^2; mg/sq. m; mg per m2; mg per m^2; mg per sq. milligrams; meter squared; metre","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"milligram per cubic meter","mg/m3","MG/M3","mass",0.001,[-3,0,1,0,0,0,0],"mg/(m3)",null,false,"M",null,1,false,false,0,"mg/m^3; mg/cu. m; mg per m3; milligrams per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per milligram","mg/mg","MG/MG","mass",1,[0,0,0,0,0,0,0],"mg/mg",null,false,"M",null,1,false,false,0,"mg per mg; milligrams; milligram/milligram","LOINC","MRto","Clinical","",null,null,null,null,false],[true,"milligram per minute","mg/min","MG/MIN","mass",0.000016666666666666667,[0,-1,1,0,0,0,0],"mg/min",null,false,"M",null,1,false,false,0,"mg per min; milligrams per minutes; milligram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per milliliter","mg/mL","MG/ML","mass",1000.0000000000001,[-3,0,1,0,0,0,0],"mg/mL",null,false,"M",null,1,false,false,0,"mg per mL; milligrams per milliliters; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per millimole","mg/mmol","MG/MMOL","mass",1.660540186674939e-24,[0,0,1,0,0,0,0],"mg/mmol",null,false,"M",null,1,false,false,-1,"mg per mmol; milligrams per millimole; ","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"milligram per week","mg/wk","MG/WK","mass",1.6534391534391535e-9,[0,-1,1,0,0,0,0],"mg/wk",null,false,"M",null,1,false,false,0,"mg/week; mg per wk; milligrams per weeks; milligram/week","LOINC","Mrat","Clinical","",null,null,null,null,false],[false,"milliliter","mL","ML","volume",0.000001,[3,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"milliliters; millilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"milliliter per 10 hour","mL/(10.h)","ML/HR","volume",2.7777777777777777e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/10hrs; ml/10 hrs; mL per 10hrs; 10 hrs; milliliters per 10 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 12 hour","mL/(12.h)","ML/HR","volume",2.3148148148148147e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/12hrs; ml/12 hrs; mL per 12hrs; 12 hrs; milliliters per 12 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 2 hour","mL/(2.h)","ML/HR","volume",1.3888888888888888e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/2hrs; ml/2 hrs; mL per 2hrs; 2 hrs; milliliters per 2 hours; millilitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 24 hour","mL/(24.h)","ML/HR","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/24hrs; ml/24 hrs; mL per 24hrs; 24 hrs; milliliters per 24 hours; millilitres; ml/dy; /day; ml per dy; days; fluid outputs; fluid inputs; flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 4 hour","mL/(4.h)","ML/HR","volume",6.944444444444444e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/4hrs; ml/4 hrs; mL per 4hrs; 4 hrs; milliliters per 4 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 5 hour","mL/(5.h)","ML/HR","volume",5.5555555555555553e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/5hrs; ml/5 hrs; mL per 5hrs; 5 hrs; milliliters per 5 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 6 hour","mL/(6.h)","ML/HR","volume",4.6296296296296294e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/6hrs; ml/6 hrs; mL per 6hrs; 6 hrs; milliliters per 6 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 72 hour","mL/(72.h)","ML/HR","volume",3.8580246913580245e-12,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/72hrs; ml/72 hrs; mL per 72hrs; 72 hrs; milliliters per 72 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour","mL/(8.h)","ML/HR","volume",3.472222222222222e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/8hrs; ml/8 hrs; mL per 8hrs; 8 hrs; milliliters per 8 hours; millilitres; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour per kilogram","mL/(8.h)/kg","(ML/HR)/KG","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/h)/kg","iso1000",true,null,null,1,false,false,0,"mL/kg/(8.h); ml/8h/kg; ml/8 h/kg; ml/8hr/kg; ml/8 hr/kgr; mL per 8h per kg; 8 h; 8hr; 8 hr; milliliters per 8 hours per kilogram; millilitres; shift","LOINC","VRatCnt","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per square inch (international)","mL/[sin_i]","ML/[SIN_I]","volume",0.0015500031000061998,[1,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"mL/sin; mL/in2; mL/in^2; mL per sin; in2; in^2; sq. in; milliliters per square inch; inch squared","LOINC","ArVol","Clinical","","l",null,"1",1,false],[false,"milliliter per centimeter of water","mL/cm[H2O]","ML/CM[H2O]","volume",1.0197162129779282e-11,[4,2,-1,0,0,0,0],"mL/(cm\xa0HO2)","iso1000",true,null,null,1,false,false,0,"milliliters per centimeter of water; millilitre per centimetre of water; millilitres per centimetre of water; mL/cmH2O; mL/cm H2O; mL per cmH2O; mL per cm H2O","LOINC","Compli","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per day","mL/d","ML/D","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/d","iso1000",true,null,null,1,false,false,0,"ml/day; ml per day; milliliters per day; 24 hours; 24hrs; millilitre;","LOINC","VRat","Clinical","usually used to measure fluid output or input; flow rate","l",null,"1",1,false],[false,"milliliter per deciliter","mL/dL","ML/DL","volume",0.009999999999999998,[0,0,0,0,0,0,0],"mL/dL","iso1000",true,null,null,1,false,false,0,"mL per dL; millilitres; decilitre; milliliters","LOINC","VFr; VFrDiff","Clinical","","l",null,"1",1,false],[false,"milliliter per hour","mL/h","ML/HR","volume",2.7777777777777777e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"mL/hr; mL per hr; milliliters per hour; millilitres; fluid intake; fluid output","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram","mL/kg","ML/KG","volume",9.999999999999999e-10,[3,0,-1,0,0,0,0],"mL/kg","iso1000",true,null,null,1,false,false,0,"mL per kg; milliliters per kilogram; millilitres","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram per 8 hour","mL/kg/(8.h)","(ML/KG)/HR","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(8.h.kg); mL/kg/8hrs; mL/kg/8 hrs; mL per kg per 8hrs; 8 hrs; milliliters per kilograms per 8 hours; millilitres; shift","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per day","mL/kg/d","(ML/KG)/D","volume",1.1574074074074072e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/d","iso1000",true,null,null,1,false,false,0,"mL/(kg.d); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; mg/kg/24hrs; 24 hrs; per 24 hours millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per hour","mL/kg/h","(ML/KG)/HR","volume",2.7777777777777774e-13,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(kg.h); mL/kg/hr; mL per kg per hr; milliliters per kilograms per hour; millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per minute","mL/kg/min","(ML/KG)/MIN","volume",1.6666666666666664e-11,[3,-1,-1,0,0,0,0],"(mL/kg)/min","iso1000",true,null,null,1,false,false,0,"mL/(kg.min); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; millilitres","LOINC","RelEngRat","Clinical","used for tests that measure activity metabolic rate compared to standard resting metabolic rate ","l",null,"1",1,false],[false,"milliliter per square meter","mL/m2","ML/M2","volume",0.000001,[1,0,0,0,0,0,0],"mL/(m2)","iso1000",true,null,null,1,false,false,0,"mL/m^2; mL/sq. meter; mL per m2; m^2; sq. meter; milliliters per square meter; millilitres; meter squared","LOINC","ArVol","Clinical","used for tests that relate to heart work - e.g. ventricular stroke volume; atrial volume per body surface area","l",null,"1",1,false],[false,"milliliter per millibar","mL/mbar","ML/MBAR","volume",1e-11,[4,2,-1,0,0,0,0],"mL/mbar","iso1000",true,null,null,1,false,false,0,"mL per mbar; milliliters per millibar; millilitres","LOINC","","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per minute","mL/min","ML/MIN","volume",1.6666666666666667e-8,[3,-1,0,0,0,0,0],"mL/min","iso1000",true,null,null,1,false,false,0,"mL per min; milliliters; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per minute per square meter","mL/min/m2","(ML/MIN)/M2","volume",1.6666666666666667e-8,[1,-1,0,0,0,0,0],"(mL/min)/(m2)","iso1000",true,null,null,1,false,false,0,"ml/min/m^2; ml/min/sq. meter; mL per min per m2; m^2; sq. meter; milliliters per minutes per square meter; millilitres; metre; meter squared","LOINC","ArVRat","Clinical","unit used to measure volume per body surface area; oxygen consumption index","l",null,"1",1,false],[false,"milliliter per millimeter","mL/mm","ML/MM","volume",0.001,[2,0,0,0,0,0,0],"mL/mm","iso1000",true,null,null,1,false,false,0,"mL per mm; milliliters per millimeter; millilitres; millimetre","LOINC","Lineic Volume","Clinical","","l",null,"1",1,false],[false,"milliliter per second","mL/s","ML/S","volume",0.000001,[3,-1,0,0,0,0,0],"mL/s","iso1000",true,null,null,1,false,false,0,"ml/sec; mL per sec; milliliters per second; millilitres","LOINC","Vel; VelRat; VRat","Clinical","","l",null,"1",1,false],[true,"millimeter","mm","MM","length",0.001,[1,0,0,0,0,0,0],"mm",null,false,"L",null,1,false,false,0,"millimeters; millimetres; height; length; diameter; thickness; axis; curvature; size","LOINC","Len","Clinical","",null,null,null,null,false],[true,"millimeter per hour","mm/h","MM/HR","length",2.7777777777777776e-7,[1,-1,0,0,0,0,0],"mm/h",null,false,"L",null,1,false,false,0,"mm/hr; mm per hr; millimeters per hour; millimetres","LOINC","Vel","Clinical","unit to measure sedimentation rate",null,null,null,null,false],[true,"millimeter per minute","mm/min","MM/MIN","length",0.000016666666666666667,[1,-1,0,0,0,0,0],"mm/min",null,false,"L",null,1,false,false,0,"mm per min; millimeters per minute; millimetres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"millimeter of water","mm[H2O]","MM[H2O]","pressure",9806.65,[-1,-2,1,0,0,0,0],"mm\xa0HO2","clinical",true,null,null,1,false,false,0,"mmH2O; mm H2O; millimeters of water; millimetres","LOINC","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"millimeter of mercury","mm[Hg]","MM[HG]","pressure",133322,[-1,-2,1,0,0,0,0],"mm\xa0Hg","clinical",true,null,null,1,false,false,0,"mmHg; mm Hg; millimeters of mercury; millimetres","LOINC","Pres; PPres; Ratio","Clinical","1 mm[Hg] = 1 torr; unit to measure blood pressure","kPa","KPAL","133.3220",133.322,false],[true,"square millimeter","mm2","MM2","length",0.000001,[2,0,0,0,0,0,0],"mm2",null,false,"L",null,1,false,false,0,"mm^2; sq. mm.; sq. millimeters; millimeters squared; millimetres","LOINC","Area","Clinical","",null,null,null,null,false],[false,"millimole","mmol","MMOL","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"mmol","si",true,null,null,1,false,false,1,"millimoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 12 hour","mmol/(12.h)","MMOL/HR","amount of substance",13940131250000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/12hrs; mmol/12 hrs; mmol per 12 hrs; 12hrs; millimoles per 12 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 2 hour","mmol/(2.h)","MMOL/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/2hrs; mmol/2 hrs; mmol per 2 hrs; 2hrs; millimoles per 2 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 24 hour","mmol/(24.h)","MMOL/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 5 hour","mmol/(5.h)","MMOL/HR","amount of substance",33456315000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/5hrs; mmol/5 hrs; mmol per 5 hrs; 5hrs; millimoles per 5 hours","LOINC","SRat","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 6 hour","mmol/(6.h)","MMOL/HR","amount of substance",27880262500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/6hrs; mmol/6 hrs; mmol per 6 hrs; 6hrs; millimoles per 6 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 8 hour","mmol/(8.h)","MMOL/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/8hrs; mmol/8 hrs; mmol per 8 hrs; 8hrs; millimoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per day","mmol/d","MMOL/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/d","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per deciliter","mmol/dL","MMOL/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"mmol/dL","si",true,null,null,1,false,false,1,"mmol per dL; millimoles; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per gram","mmol/g","MMOL/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mmol/g","si",true,null,null,1,false,false,1,"mmol per gram; millimoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per hour","mmol/h","MMOL/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/hr; mmol per hr; millimoles per hour","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram","mmol/kg","MMOL/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"mmol/kg","si",true,null,null,1,false,false,1,"mmol per kg; millimoles per kilogram","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per 8 hour","mmol/kg/(8.h)","(MMOL/KG)/HR","amount of substance",20910196875000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/(8.h.kg); mmol/kg/8hrs; mmol/kg/8 hrs; mmol per kg per 8hrs; 8 hrs; millimoles per kilograms per 8 hours; shift","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per day","mmol/kg/d","(MMOL/KG)/D","amount of substance",6970065625000,[0,-1,-1,0,0,0,0],"(mmol/kg)/d","si",true,null,null,1,false,false,1,"mmol/kg/dy; mmol/kg/day; mmol per kg per dy; millimoles per kilograms per day","LOINC","RelSRat","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per hour","mmol/kg/h","(MMOL/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/kg/hr; mmol per kg per hr; millimoles per kilograms per hour","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per minute","mmol/kg/min","(MMOL/KG)/MIN","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/min","si",true,null,null,1,false,false,1,"mmol/(kg.min); mmol/kg/min; mmol per kg per min; millimoles per kilograms per minute","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass; note that the unit for the enzyme unit U = umol/min. mmol/kg/min = kU/kg; ","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per liter","mmol/L","MMOL/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mmol/L","si",true,null,null,1,false,false,1,"mmol per L; millimoles per liter; litre","LOINC","SCnc","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per square meter","mmol/m2","MMOL/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"mmol/(m2)","si",true,null,null,1,false,false,1,"mmol/m^2; mmol/sq. meter; mmol per m2; m^2; sq. meter; millimoles; meter squared; metre","LOINC","ArSub","Clinical","unit used to measure molar dose per patient body surface area","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per minute","mmol/min","MMOL/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"mmol/min","si",true,null,null,1,false,false,1,"mmol per min; millimoles per minute","LOINC","Srat; CAct","Clinical","unit for the enzyme unit U = umol/min. mmol/min = kU","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per millimole","mmol/mmol","MMOL/MMOL","amount of substance",1,[0,0,0,0,0,0,0],"mmol/mmol","si",true,null,null,1,false,false,0,"mmol per mmol; millimoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per mole","mmol/mol","MMOL/MOL","amount of substance",0.001,[0,0,0,0,0,0,0],"mmol/mol","si",true,null,null,1,false,false,0,"mmol per mol; millimoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per second per liter","mmol/s/L","(MMOL/S)/L","amount of substance",6.0221367e+23,[-3,-1,0,0,0,0,0],"(mmol/s)/L","si",true,null,null,1,false,false,1,"mmol/sec/L; mmol per s per L; per sec; millimoles per seconds per liter; litre","LOINC","CCnc ","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram","mol/kg","MOL/KG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mol/kg","si",true,null,null,1,false,false,1,"mol per kg; moles; mols","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram per second","mol/kg/s","(MOL/KG)/S","amount of substance",602213670000000000000,[0,-1,-1,0,0,0,0],"(mol/kg)/s","si",true,null,null,1,false,false,1,"mol/kg/sec; mol per kg per sec; moles per kilograms per second; mols","LOINC","CCnt","Clinical","unit of catalytic activity (mol/s) per mass (kg)","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per liter","mol/L","MOL/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"mol/L","si",true,null,null,1,false,false,1,"mol per L; moles per liter; litre; moles; mols","LOINC","SCnc","Clinical","unit often used in tests measuring oxygen content","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per cubic meter","mol/m3","MOL/M3","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mol/(m3)","si",true,null,null,1,false,false,1,"mol/m^3; mol/cu. m; mol per m3; m^3; cu. meter; mols; moles; meters cubed; metre; mole per kiloliter; kilolitre; mol/kL","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per milliliter","mol/mL","MOL/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"mol/mL","si",true,null,null,1,false,false,1,"mol per mL; moles; millilitre; mols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per mole","mol/mol","MOL/MOL","amount of substance",1,[0,0,0,0,0,0,0],"mol/mol","si",true,null,null,1,false,false,0,"mol per mol; moles per mol; mols","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per second","mol/s","MOL/S","amount of substance",6.0221367e+23,[0,-1,0,0,0,0,0],"mol/s","si",true,null,null,1,false,false,1,"mol per sec; moles per second; mols","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"milliosmole","mosm","MOSM","amount of substance (dissolved particles)",602213670000000000000,[0,0,0,0,0,0,0],"mosm","chemical",true,null,null,1,false,false,1,"milliosmoles","LOINC","Osmol","Clinical","equal to 1/1000 of an osmole","mol","MOL","1",1,false],[false,"milliosmole per kilogram","mosm/kg","MOSM/KG","amount of substance (dissolved particles)",602213670000000000,[0,0,-1,0,0,0,0],"mosm/kg","chemical",true,null,null,1,false,false,1,"mosm per kg; milliosmoles per kilogram","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"milliosmole per liter","mosm/L","MOSM/L","amount of substance (dissolved particles)",6.0221367e+23,[-3,0,0,0,0,0,0],"mosm/L","chemical",true,null,null,1,false,false,1,"mosm per liter; litre; milliosmoles","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"millipascal","mPa","MPAL","pressure",1,[-1,-2,1,0,0,0,0],"mPa","si",true,null,null,1,false,false,0,"millipascals","LOINC","Pres","Clinical","unit of pressure","N/m2","N/M2","1",1,false],[false,"millipascal second","mPa.s","MPAL.S","pressure",1,[-1,-1,1,0,0,0,0],"mPa.s","si",true,null,null,1,false,false,0,"mPa*s; millipoise; mP; dynamic viscosity","LOINC","Visc","Clinical","base units for millipoise, a measurement of dynamic viscosity","N/m2","N/M2","1",1,false],[true,"megasecond","Ms","MAS","time",1000000,[0,1,0,0,0,0,0],"Ms",null,false,"T",null,1,false,false,0,"megaseconds","LOINC","Time","Clinical","",null,null,null,null,false],[true,"millisecond","ms","MS","time",0.001,[0,1,0,0,0,0,0],"ms",null,false,"T",null,1,false,false,0,"milliseconds; duration","LOINC","Time","Clinical","",null,null,null,null,false],[false,"milli enzyme unit per gram","mU/g","MU/G","catalytic activity",10036894500000,[0,-1,-1,0,0,0,0],"mU/g","chemical",true,null,null,1,false,false,1,"mU per gm; milli enzyme units per gram; enzyme activity; enzymatic activity per mass","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per liter","mU/L","MU/L","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"mU/L","chemical",true,null,null,1,false,false,1,"mU per liter; litre; milli enzyme units enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milligram","mU/mg","MU/MG","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"mU/mg","chemical",true,null,null,1,false,false,1,"mU per mg; milli enzyme units per milligram","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter","mU/mL","MU/ML","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"mU/mL","chemical",true,null,null,1,false,false,1,"mU per mL; milli enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter per minute","mU/mL/min","(MU/ML)/MIN","catalytic activity",167281575000000000,[-3,-2,0,0,0,0,0],"(mU/mL)/min","chemical",true,null,null,1,false,false,1,"mU per mL per min; mU per milliliters per minute; millilitres; milli enzyme units; enzymatic activity; enzyme activity","LOINC","CCncRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"millivolt","mV","MV","electric potential",1,[2,-2,1,0,0,-1,0],"mV","si",true,null,null,1,false,false,0,"millivolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false],[false,"Newton centimeter","N.cm","N.CM","force",10,[2,-2,1,0,0,0,0],"N.cm","si",true,null,null,1,false,false,0,"N*cm; Ncm; N cm; Newton*centimeters; Newton* centimetres; torque; work","LOINC","","Clinical","as a measurement of work, N.cm = 1/100 Joules;\\nnote that N.m is the standard unit of measurement for torque (although dimensionally equivalent to Joule), and N.cm can also be thought of as a torqe unit","kg.m/s2","KG.M/S2","1",1,false],[false,"Newton second","N.s","N.S","force",1000,[1,-1,1,0,0,0,0],"N.s","si",true,null,null,1,false,false,0,"Newton*seconds; N*s; N s; Ns; impulse; imp","LOINC","","Clinical","standard unit of impulse","kg.m/s2","KG.M/S2","1",1,false],[true,"nanogram","ng","NG","mass",1e-9,[0,0,1,0,0,0,0],"ng",null,false,"M",null,1,false,false,0,"nanograms","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"nanogram per 24 hour","ng/(24.h)","NG/HR","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/24hrs; ng/24 hrs; nanograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per 8 hour","ng/(8.h)","NG/HR","mass",3.4722222222222224e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/8hrs; ng/8 hrs; nanograms per 8 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per million","ng/10*6","NG/(10*6)","mass",1e-15,[0,0,1,0,0,0,0],"ng/(106)",null,false,"M",null,1,false,false,0,"ng/10^6; ng per 10*6; 10^6; nanograms","LOINC","MNum","Clinical","",null,null,null,null,false],[true,"nanogram per day","ng/d","NG/D","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/d",null,false,"M",null,1,false,false,0,"ng/dy; ng per day; nanograms ","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per deciliter","ng/dL","NG/DL","mass",0.00001,[-3,0,1,0,0,0,0],"ng/dL",null,false,"M",null,1,false,false,0,"ng per dL; nanograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per gram","ng/g","NG/G","mass",1e-9,[0,0,0,0,0,0,0],"ng/g",null,false,"M",null,1,false,false,0,"ng/gm; ng per gm; nanograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per hour","ng/h","NG/HR","mass",2.777777777777778e-13,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/hr; ng per hr; nanograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram","ng/kg","NG/KG","mass",1e-12,[0,0,0,0,0,0,0],"ng/kg",null,false,"M",null,1,false,false,0,"ng per kg; nanograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram per 8 hour","ng/kg/(8.h)","(NG/KG)/HR","mass",3.472222222222222e-17,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(8.h.kg); ng/kg/8hrs; ng/kg/8 hrs; ng per kg per 8hrs; 8 hrs; nanograms per kilograms per 8 hours; shift","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per hour","ng/kg/h","(NG/KG)/HR","mass",2.7777777777777775e-16,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(kg.h); ng/kg/hr; ng per kg per hr; nanograms per kilograms per hour","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per minute","ng/kg/min","(NG/KG)/MIN","mass",1.6666666666666667e-14,[0,-1,0,0,0,0,0],"(ng/kg)/min",null,false,"M",null,1,false,false,0,"ng/(kg.min); ng per kg per min; nanograms per kilograms per minute","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per liter","ng/L","NG/L","mass",0.000001,[-3,0,1,0,0,0,0],"ng/L",null,false,"M",null,1,false,false,0,"ng per L; nanograms per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per square meter","ng/m2","NG/M2","mass",1e-9,[-2,0,1,0,0,0,0],"ng/(m2)",null,false,"M",null,1,false,false,0,"ng/m^2; ng/sq. m; ng per m2; m^2; sq. meter; nanograms; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"nanogram per milligram","ng/mg","NG/MG","mass",0.000001,[0,0,0,0,0,0,0],"ng/mg",null,false,"M",null,1,false,false,0,"ng per mg; nanograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per milligram per hour","ng/mg/h","(NG/MG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(ng/mg)/h",null,false,"M",null,1,false,false,0,"ng/mg/hr; ng per mg per hr; nanograms per milligrams per hour","LOINC","MRtoRat ","Clinical","",null,null,null,null,false],[true,"nanogram per minute","ng/min","NG/MIN","mass",1.6666666666666667e-11,[0,-1,1,0,0,0,0],"ng/min",null,false,"M",null,1,false,false,0,"ng per min; nanograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per millliiter","ng/mL","NG/ML","mass",0.001,[-3,0,1,0,0,0,0],"ng/mL",null,false,"M",null,1,false,false,0,"ng per mL; nanograms; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per milliliter per hour","ng/mL/h","(NG/ML)/HR","mass",2.7777777777777776e-7,[-3,-1,1,0,0,0,0],"(ng/mL)/h",null,false,"M",null,1,false,false,0,"ng/mL/hr; ng per mL per mL; nanograms per milliliter per hour; nanogram per millilitre per hour; nanograms per millilitre per hour; enzymatic activity per volume; enzyme activity per milliliters","LOINC","CCnc","Clinical","tests that measure enzymatic activity",null,null,null,null,false],[true,"nanogram per second","ng/s","NG/S","mass",1e-9,[0,-1,1,0,0,0,0],"ng/s",null,false,"M",null,1,false,false,0,"ng/sec; ng per sec; nanograms per second","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per enzyme unit","ng/U","NG/U","mass",9.963241120049634e-26,[0,1,1,0,0,0,0],"ng/U",null,false,"M",null,1,false,false,-1,"ng per U; nanograms per enzyme unit","LOINC","CMass","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"nanokatal","nkat","NKAT","catalytic activity",602213670000000,[0,-1,0,0,0,0,0],"nkat","chemical",true,null,null,1,false,false,1,"nanokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"nanoliter","nL","NL","volume",1.0000000000000002e-12,[3,0,0,0,0,0,0],"nL","iso1000",true,null,null,1,false,false,0,"nanoliters; nanolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"nanometer","nm","NM","length",1e-9,[1,0,0,0,0,0,0],"nm",null,false,"L",null,1,false,false,0,"nanometers; nanometres","LOINC","Len","Clinical","",null,null,null,null,false],[true,"nanometer per second per liter","nm/s/L","(NM/S)/L","length",0.000001,[-2,-1,0,0,0,0,0],"(nm/s)/L",null,false,"L",null,1,false,false,0,"nm/sec/liter; nm/sec/litre; nm per s per l; nm per sec per l; nanometers per second per liter; nanometre per second per litre; nanometres per second per litre","LOINC","VelCnc","Clinical","",null,null,null,null,false],[false,"nanomole","nmol","NMOL","amount of substance",602213670000000,[0,0,0,0,0,0,0],"nmol","si",true,null,null,1,false,false,1,"nanomoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per 24 hour","nmol/(24.h)","NMOL/HR","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/h","si",true,null,null,1,false,false,1,"nmol/24hr; nmol/24 hr; nanomoles per 24 hours; nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per day","nmol/d","NMOL/D","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/d","si",true,null,null,1,false,false,1,"nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day; nmol/24hr; nmol/24 hr; nanomoles per 24 hours; ","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per deciliter","nmol/dL","NMOL/DL","amount of substance",6022136700000000000,[-3,0,0,0,0,0,0],"nmol/dL","si",true,null,null,1,false,false,1,"nmol per dL; nanomoles per deciliter; nanomole per decilitre; nanomoles per decilitre; nanomole/deciliter; nanomole/decilitre; nanomol/deciliter; nanomol/decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per gram","nmol/g","NMOL/G","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"nmol/g","si",true,null,null,1,false,false,1,"nmol per gram; nanomoles per gram; nanomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per hour per liter","nmol/h/L","(NMOL/HR)/L","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(nmol/h)/L","si",true,null,null,1,false,false,1,"nmol/hrs/L; nmol per hrs per L; nanomoles per hours per liter; litre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per liter","nmol/L","NMOL/L","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"nmol/L","si",true,null,null,1,false,false,1,"nmol per L; nanomoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram","nmol/mg","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nmol per mg; nanomoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram per hour","nmol/mg/h","(NMOL/MG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(nmol/mg)/h","si",true,null,null,1,false,false,1,"nmol/mg/hr; nmol per mg per hr; nanomoles per milligrams per hour","LOINC","SCntRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram of protein","nmol/mg{prot}","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nanomoles; nmol/mg prot; nmol per mg prot","LOINC","Ratio; CCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute","nmol/min","NMOL/MIN","amount of substance",10036894500000,[0,-1,0,0,0,0,0],"nmol/min","si",true,null,null,1,false,false,1,"nmol per min; nanomoles per minute; milli enzyme units; enzyme activity per volume; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/min = mU (milli enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute per milliliter","nmol/min/mL","(NMOL/MIN)/ML","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/min)/mL","si",true,null,null,1,false,false,1,"nmol per min per mL; nanomoles per minutes per milliliter; millilitre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter","nmol/mL","NMOL/ML","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"nmol/mL","si",true,null,null,1,false,false,1,"nmol per mL; nanomoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per hour","nmol/mL/h","(NMOL/ML)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/h","si",true,null,null,1,false,false,1,"nmol/mL/hr; nmol per mL per hr; nanomoles per milliliters per hour; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per minute","nmol/mL/min","(NMOL/ML)/MIN","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/min","si",true,null,null,1,false,false,1,"nmol per mL per min; nanomoles per milliliters per min; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole","nmol/mmol","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nmol per mmol; nanomoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole of creatinine","nmol/mmol{creat}","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per mole","nmol/mol","NMOL/MOL","amount of substance",1e-9,[0,0,0,0,0,0,0],"nmol/mol","si",true,null,null,1,false,false,0,"nmol per mole; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per nanomole","nmol/nmol","NMOL/NMOL","amount of substance",1,[0,0,0,0,0,0,0],"nmol/nmol","si",true,null,null,1,false,false,0,"nmol per nmol; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second","nmol/s","NMOL/S","amount of substance",602213670000000,[0,-1,0,0,0,0,0],"nmol/s","si",true,null,null,1,false,false,1,"nmol/sec; nmol per sec; nanomoles per sercond; milli enzyme units; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second per liter","nmol/s/L","(NMOL/S)/L","amount of substance",602213670000000000,[-3,-1,0,0,0,0,0],"(nmol/s)/L","si",true,null,null,1,false,false,1,"nmol/sec/L; nmol per s per L; nmol per sec per L; nanomoles per seconds per liter; litre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[true,"nanosecond","ns","NS","time",1e-9,[0,1,0,0,0,0,0],"ns",null,false,"T",null,1,false,false,0,"nanoseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"nanoenzyme unit per milliliter","nU/mL","NU/ML","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"nU/mL","chemical",true,null,null,1,false,false,1,"nU per mL; nanoenzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 fU = pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Ohm meter","Ohm.m","OHM.M","electric resistance",1000,[3,-1,1,0,0,-2,0],"\u03a9.m","si",true,null,null,1,false,false,0,"electric resistivity; meters; metres","LOINC","","Clinical","unit of electric resistivity","V/A","V/A","1",1,false],[false,"osmole per kilogram","osm/kg","OSM/KG","amount of substance (dissolved particles)",602213670000000000000,[0,0,-1,0,0,0,0],"osm/kg","chemical",true,null,null,1,false,false,1,"osm per kg; osmoles per kilogram; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"osmole per liter","osm/L","OSM/L","amount of substance (dissolved particles)",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"osm/L","chemical",true,null,null,1,false,false,1,"osm per L; osmoles per liter; litre; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"picoampere","pA","PA","electric current",1e-12,[0,-1,0,0,0,1,0],"pA","si",true,null,null,1,false,false,0,"picoamperes","LOINC","","Clinical","equal to 10^-12 amperes","C/s","C/S","1",1,false],[true,"picogram","pg","PG","mass",1e-12,[0,0,1,0,0,0,0],"pg",null,false,"M",null,1,false,false,0,"picograms","LOINC","Mass; EntMass","Clinical","",null,null,null,null,false],[true,"picogram per deciliter","pg/dL","PG/DL","mass",9.999999999999999e-9,[-3,0,1,0,0,0,0],"pg/dL",null,false,"M",null,1,false,false,0,"pg per dL; picograms; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per liter","pg/L","PG/L","mass",1e-9,[-3,0,1,0,0,0,0],"pg/L",null,false,"M",null,1,false,false,0,"pg per L; picograms; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per milligram","pg/mg","PG/MG","mass",1e-9,[0,0,0,0,0,0,0],"pg/mg",null,false,"M",null,1,false,false,0,"pg per mg; picograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"picogram per milliliter","pg/mL","PG/ML","mass",0.000001,[-3,0,1,0,0,0,0],"pg/mL",null,false,"M",null,1,false,false,0,"pg per mL; picograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per millimeter","pg/mm","PG/MM","mass",1e-9,[-1,0,1,0,0,0,0],"pg/mm",null,false,"M",null,1,false,false,0,"pg per mm; picogram/millimeter; picogram/millimetre; picograms per millimeter; millimetre","LOINC","Lineic Mass","Clinical","",null,null,null,null,false],[false,"picokatal","pkat","PKAT","catalytic activity",602213670000,[0,-1,0,0,0,0,0],"pkat","chemical",true,null,null,1,false,false,1,"pkats; picokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"picoliter","pL","PL","volume",1e-15,[3,0,0,0,0,0,0],"pL","iso1000",true,null,null,1,false,false,0,"picoliters; picolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"picometer","pm","PM","length",1e-12,[1,0,0,0,0,0,0],"pm",null,false,"L",null,1,false,false,0,"picometers; picometres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"picomole","pmol","PMOL","amount of substance",602213670000,[0,0,0,0,0,0,0],"pmol","si",true,null,null,1,false,false,1,"picomoles; pmols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per 24 hour","pmol/(24.h)","PMOL/HR","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/h","si",true,null,null,1,false,false,1,"pmol/24hrs; pmol/24 hrs; pmol per 24 hrs; 24hrs; days; dy; picomoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per day","pmol/d","PMOL/D","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/d","si",true,null,null,1,false,false,1,"pmol/dy; pmol per day; 24 hours; 24hrs; 24 hrs; picomoles","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per deciliter","pmol/dL","PMOL/DL","amount of substance",6022136700000000,[-3,0,0,0,0,0,0],"pmol/dL","si",true,null,null,1,false,false,1,"pmol per dL; picomoles per deciliter; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per gram","pmol/g","PMOL/G","amount of substance",602213670000,[0,0,-1,0,0,0,0],"pmol/g","si",true,null,null,1,false,false,1,"pmol per gm; picomoles per gram; picomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per hour per milliliter ","pmol/h/mL","(PMOL/HR)/ML","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(pmol/h)/mL","si",true,null,null,1,false,false,1,"pmol/hrs/mL; pmol per hrs per mL; picomoles per hour per milliliter; millilitre; micro enzyme units per volume; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. ","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per liter","pmol/L","PMOL/L","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"pmol/L","si",true,null,null,1,false,false,1,"picomole/liter; pmol per L; picomoles; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per minute","pmol/min","PMOL/MIN","amount of substance",10036894500,[0,-1,0,0,0,0,0],"pmol/min","si",true,null,null,1,false,false,1,"picomole/minute; pmol per min; picomoles per minute; micro enzyme units; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. pmol/min = uU (micro enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per milliliter","pmol/mL","PMOL/ML","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"pmol/mL","si",true,null,null,1,false,false,1,"picomole/milliliter; picomole/millilitre; pmol per mL; picomoles; millilitre; picomols; pmols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per micromole","pmol/umol","PMOL/UMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"pmol/\u03bcmol","si",true,null,null,1,false,false,0,"pmol/mcgmol; picomole/micromole; pmol per umol; pmol per mcgmol; picomoles ","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"picosecond","ps","PS","time",1e-12,[0,1,0,0,0,0,0],"ps",null,false,"T",null,1,false,false,0,"picoseconds; psec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"picotesla","pT","PT","magnetic flux density",1e-9,[0,-1,1,0,0,-1,0],"pT","si",true,null,null,1,false,false,0,"picoteslas","LOINC","","Clinical","SI unit of magnetic field strength for magnetic field B","Wb/m2","WB/M2","1",1,false],[false,"enzyme unit per 12 hour","U/(12.h)","U/HR","catalytic activity",232335520833.33334,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/12hrs; U/ 12hrs; U per 12 hrs; 12hrs; enzyme units per 12 hours; enzyme activity; enzymatic activity per time; umol per min per 12 hours; micromoles per minute per 12 hours; umol/min/12hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 2 hour","U/(2.h)","U/HR","catalytic activity",1394013125000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/2hrs; U/ 2hrs; U per 2 hrs; 2hrs; enzyme units per 2 hours; enzyme activity; enzymatic activity per time; umol per minute per 2 hours; micromoles per minute; umol/min/2hr; umol per min per 2hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 24 hour","U/(24.h)","U/HR","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/24hrs; U/ 24hrs; U per 24 hrs; 24hrs; enzyme units per 24 hours; enzyme activity; enzymatic activity per time; micromoles per minute per 24 hours; umol/min/24hr; umol per min per 24hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10","U/10","U","catalytic activity",1003689450000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"enzyme unit/10; U per 10; enzyme units per 10; enzymatic activity; enzyme activity; micromoles per minute; umol/min/10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10 billion","U/10*10","U/(10*10)","catalytic activity",1003689.45,[0,-1,0,0,0,0,0],"U/(1010)","chemical",true,null,null,1,false,false,1,"U per 10*10; enzyme units per 10*10; U per 10 billion; enzyme units; enzymatic activity; micromoles per minute per 10 billion; umol/min/10*10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per trillion","U/10*12","U/(10*12)","catalytic activity",10036.8945,[0,-1,0,0,0,0,0],"U/(1012)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*12; U per 10*12; enzyme units per 10*12; enzyme units per trillion; enzymatic activity; micromoles per minute per trillion; umol/min/10*12; umol per min per 10*12","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per million","U/10*6","U/(10*6)","catalytic activity",10036894500,[0,-1,0,0,0,0,0],"U/(106)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*6; U per 10*6; enzyme units per 10*6; enzyme units; enzymatic activity per volume; micromoles per minute per million; umol/min/10*6; umol per min per 10*6","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per billion","U/10*9","U/(10*9)","catalytic activity",10036894.5,[0,-1,0,0,0,0,0],"U/(109)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*9; U per 10*9; enzyme units per 10*9; enzymatic activity per volume; micromoles per minute per billion; umol/min/10*9; umol per min per 10*9","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per day","U/d","U/D","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/d","chemical",true,null,null,1,false,false,1,"U/dy; enzyme units per day; enzyme units; enzyme activity; enzymatic activity per time; micromoles per minute per day; umol/min/day; umol per min per day","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per deciliter","U/dL","U/DL","catalytic activity",100368945000000000000,[-3,-1,0,0,0,0,0],"U/dL","chemical",true,null,null,1,false,false,1,"U per dL; enzyme units per deciliter; decilitre; micromoles per minute per deciliter; umol/min/dL; umol per min per dL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per gram","U/g","U/G","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"U/g","chemical",true,null,null,1,false,false,1,"U/gm; U per gm; enzyme units per gram; micromoles per minute per gram; umol/min/g; umol per min per g","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per hour","U/h","U/HR","catalytic activity",2788026250000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/hr; U per hr; enzyme units per hour; micromoles per minute per hour; umol/min/hr; umol per min per hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per liter","U/L","U/L","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"U/L","chemical",true,null,null,1,false,false,1,"enzyme unit/liter; enzyme unit/litre; U per L; enzyme units per liter; enzyme unit per litre; micromoles per minute per liter; umol/min/L; umol per min per L","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per minute","U/min","U/MIN","catalytic activity",167281575000000,[0,-2,0,0,0,0,0],"U/min","chemical",true,null,null,1,false,false,1,"enzyme unit/minute; U per min; enzyme units; umol/min/min; micromoles per minute per minute; micromoles per min per min; umol","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per milliliter","U/mL","U/ML","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"U/mL","chemical",true,null,null,1,false,false,1,"U per mL; enzyme units per milliliter; millilitre; micromoles per minute per milliliter; umol/min/mL; umol per min per mL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per second","U/s","U/S","catalytic activity",10036894500000000,[0,-2,0,0,0,0,0],"U/s","chemical",true,null,null,1,false,false,1,"U/sec; U per second; enzyme units per second; micromoles per minute per second; umol/min/sec; umol per min per sec","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"micro international unit","u[IU]","U[IU]","arbitrary",0.000001,[0,0,0,0,0,0,0],"\u03bci.U.","chemical",true,null,null,1,false,true,0,"uIU; u IU; microinternational units","LOINC","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per liter","u[IU]/L","U[IU]/L","arbitrary",0.001,[-3,0,0,0,0,0,0],"(\u03bci.U.)/L","chemical",true,null,null,1,false,true,0,"uIU/L; u IU/L; uIU per L; microinternational units per liter; litre; ","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per milliliter","u[IU]/mL","U[IU]/ML","arbitrary",1,[-3,0,0,0,0,0,0],"(\u03bci.U.)/mL","chemical",true,null,null,1,false,true,0,"uIU/mL; u IU/mL; uIU per mL; microinternational units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"microequivalent","ueq","UEQ","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"\u03bceq","chemical",true,null,null,1,false,false,1,"microequivalents; 10^-6 equivalents; 10-6 equivalents","LOINC","Sub","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per liter","ueq/L","UEQ/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"\u03bceq/L","chemical",true,null,null,1,false,false,1,"ueq per liter; litre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per milliliter","ueq/mL","UEQ/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"\u03bceq/mL","chemical",true,null,null,1,false,false,1,"ueq per milliliter; millilitre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[true,"microgram","ug","UG","mass",0.000001,[0,0,1,0,0,0,0],"\u03bcg",null,false,"M",null,1,false,false,0,"mcg; micrograms; 10^-6 grams; 10-6 grams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"microgram per 100 gram","ug/(100.g)","UG/G","mass",1e-8,[0,0,0,0,0,0,0],"\u03bcg/g",null,false,"M",null,1,false,false,0,"ug/100gm; ug/100 gm; mcg; ug per 100g; 100 gm; mcg per 100g; micrograms per 100 grams","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per 24 hour","ug/(24.h)","UG/HR","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/24hrs; ug/24 hrs; mcg/24hrs; ug per 24hrs; mcg per 24hrs; 24 hrs; micrograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per 8 hour","ug/(8.h)","UG/HR","mass",3.472222222222222e-11,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/8hrs; ug/8 hrs; mcg/8hrs; ug per 8hrs; mcg per 8hrs; 8 hrs; micrograms per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per square foot (international)","ug/[sft_i]","UG/[SFT_I]","mass",0.000010763910416709721,[-2,0,1,0,0,0,0],"\u03bcg",null,false,"M",null,1,false,false,0,"ug/sft; ug/ft2; ug/ft^2; ug/sq. ft; micrograms; sq. foot; foot squared","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"microgram per day","ug/d","UG/D","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"\u03bcg/d",null,false,"M",null,1,false,false,0,"ug/dy; mcg/dy; ug per day; mcg; micrograms per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per deciliter","ug/dL","UG/DL","mass",0.009999999999999998,[-3,0,1,0,0,0,0],"\u03bcg/dL",null,false,"M",null,1,false,false,0,"ug per dL; mcg/dl; mcg per dl; micrograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per gram","ug/g","UG/G","mass",0.000001,[0,0,0,0,0,0,0],"\u03bcg/g",null,false,"M",null,1,false,false,0,"ug per gm; mcg/gm; mcg per g; micrograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per hour","ug/h","UG/HR","mass",2.7777777777777777e-10,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/hr; mcg/hr; mcg per hr; ug per hr; ug per hour; micrograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per kilogram","ug/kg","UG/KG","mass",9.999999999999999e-10,[0,0,0,0,0,0,0],"\u03bcg/kg",null,false,"M",null,1,false,false,0,"ug per kg; mcg/kg; mcg per kg; micrograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per kilogram per 8 hour","ug/kg/(8.h)","(UG/KG)/HR","mass",3.472222222222222e-14,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/h",null,false,"M",null,1,false,false,0,"ug/kg/8hrs; mcg/kg/8hrs; ug/kg/8 hrs; mcg/kg/8 hrs; ug per kg per 8hrs; 8 hrs; mcg per kg per 8hrs; micrograms per kilograms per 8 hours; shift","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per day","ug/kg/d","(UG/KG)/D","mass",1.1574074074074072e-14,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/d",null,false,"M",null,1,false,false,0,"ug/(kg.d); ug/kg/dy; mcg/kg/day; ug per kg per dy; 24 hours; 24hrs; mcg; kilograms; microgram per kilogram and day","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per hour","ug/kg/h","(UG/KG)/HR","mass",2.7777777777777774e-13,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/h",null,false,"M",null,1,false,false,0,"ug/(kg.h); ug/kg/hr; mcg/kg/hr; ug per kg per hr; mcg per kg per hr; kilograms","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per minute","ug/kg/min","(UG/KG)/MIN","mass",1.6666666666666664e-11,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/min",null,false,"M",null,1,false,false,0,"ug/kg/min; ug/kg/min; mcg/kg/min; ug per kg per min; mcg; micrograms per kilograms per minute ","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per liter","ug/L","UG/L","mass",0.001,[-3,0,1,0,0,0,0],"\u03bcg/L",null,false,"M",null,1,false,false,0,"mcg/L; ug per L; mcg; micrograms per liter; litre ","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per liter per 24 hour","ug/L/(24.h)","(UG/L)/HR","mass",1.1574074074074074e-8,[-3,-1,1,0,0,0,0],"(\u03bcg/L)/h",null,false,"M",null,1,false,false,0,"ug/L/24hrs; ug/L/24 hrs; mcg/L/24hrs; ug per L per 24hrs; 24 hrs; day; dy mcg; micrograms per liters per 24 hours; litres","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per square meter","ug/m2","UG/M2","mass",0.000001,[-2,0,1,0,0,0,0],"\u03bcg/(m2)",null,false,"M",null,1,false,false,0,"ug/m^2; ug/sq. m; mcg/m2; mcg/m^2; mcg/sq. m; ug per m2; m^2; sq. meter; mcg; micrograms per square meter; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"microgram per cubic meter","ug/m3","UG/M3","mass",0.000001,[-3,0,1,0,0,0,0],"\u03bcg/(m3)",null,false,"M",null,1,false,false,0,"ug/m^3; ug/cu. m; mcg/m3; mcg/m^3; mcg/cu. m; ug per m3; ug per m^3; ug per cu. m; mcg; micrograms per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per milligram","ug/mg","UG/MG","mass",0.001,[0,0,0,0,0,0,0],"\u03bcg/mg",null,false,"M",null,1,false,false,0,"ug per mg; mcg/mg; mcg per mg; micromilligrams per milligram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per minute","ug/min","UG/MIN","mass",1.6666666666666667e-8,[0,-1,1,0,0,0,0],"\u03bcg/min",null,false,"M",null,1,false,false,0,"ug per min; mcg/min; mcg per min; microminutes per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per milliliter","ug/mL","UG/ML","mass",1,[-3,0,1,0,0,0,0],"\u03bcg/mL",null,false,"M",null,1,false,false,0,"ug per mL; mcg/mL; mcg per mL; micrograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per millimole","ug/mmol","UG/MMOL","mass",1.660540186674939e-27,[0,0,1,0,0,0,0],"\u03bcg/mmol",null,false,"M",null,1,false,false,-1,"ug per mmol; mcg/mmol; mcg per mmol; micrograms per millimole","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"microgram per nanogram","ug/ng","UG/NG","mass",999.9999999999999,[0,0,0,0,0,0,0],"\u03bcg/ng",null,false,"M",null,1,false,false,0,"ug per ng; mcg/ng; mcg per ng; micrograms per nanogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[false,"microkatal","ukat","UKAT","catalytic activity",602213670000000000,[0,-1,0,0,0,0,0],"\u03bckat","chemical",true,null,null,1,false,false,1,"microkatals; ukats","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"microliter","uL","UL","volume",1e-9,[3,0,0,0,0,0,0],"\u03bcL","iso1000",true,null,null,1,false,false,0,"microliters; microlitres; mcl","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"microliter per 2 hour","uL/(2.h)","UL/HR","volume",1.388888888888889e-13,[3,-1,0,0,0,0,0],"\u03bcL/h","iso1000",true,null,null,1,false,false,0,"uL/2hrs; uL/2 hrs; mcg/2hr; mcg per 2hr; uL per 2hr; uL per 2 hrs; microliters per 2 hours; microlitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"microliter per hour","uL/h","UL/HR","volume",2.777777777777778e-13,[3,-1,0,0,0,0,0],"\u03bcL/h","iso1000",true,null,null,1,false,false,0,"uL/hr; mcg/hr; mcg per hr; uL per hr; microliters per hour; microlitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[true,"micrometer","um","UM","length",0.000001,[1,0,0,0,0,0,0],"\u03bcm",null,false,"L",null,1,false,false,0,"micrometers; micrometres; \u03bcm; microns","LOINC","Len","Clinical","Unit of length that is usually used in tests related to the eye",null,null,null,null,false],[true,"microns per second","um/s","UM/S","length",0.000001,[1,-1,0,0,0,0,0],"\u03bcm/s",null,false,"L",null,1,false,false,0,"um/sec; micron/second; microns/second; um per sec; micrometers per second; micrometres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"micromole","umol","UMOL","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"\u03bcmol","si",true,null,null,1,false,false,1,"micromoles; umols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 2 hour","umol/(2.h)","UMOL/HR","amount of substance",83640787500000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/2hrs; umol/2 hrs; umol per 2 hrs; 2hrs; micromoles per 2 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 24 hour","umol/(24.h)","UMOL/HR","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/24hrs; umol/24 hrs; umol per 24 hrs; per 24hrs; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 8 hour","umol/(8.h)","UMOL/HR","amount of substance",20910196875000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/8hr; umol/8 hr; umol per 8 hr; umol per 8hr; umols per 8hr; umol per 8 hours; micromoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per day","umol/d","UMOL/D","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"\u03bcmol/d","si",true,null,null,1,false,false,1,"umol/day; umol per day; umols per day; umol per days; micromoles per days; umol/24hr; umol/24 hr; umol per 24 hr; umol per 24hr; umols per 24hr; umol per 24 hours; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per deciliter","umol/dL","UMOL/DL","amount of substance",6.0221367e+21,[-3,0,0,0,0,0,0],"\u03bcmol/dL","si",true,null,null,1,false,false,1,"micromole/deciliter; micromole/decilitre; umol per dL; micromoles per deciliters; micromole per decilitres","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per gram","umol/g","UMOL/G","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"\u03bcmol/g","si",true,null,null,1,false,false,1,"micromole/gram; umol per g; micromoles per gram","LOINC","SCnt; Ratio","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per hour","umol/h","UMOL/HR","amount of substance",167281575000000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/hr; umol per hr; umol per hour; micromoles per hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per kilogram","umol/kg","UMOL/KG","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"\u03bcmol/kg","si",true,null,null,1,false,false,1,"umol per kg; micromoles per kilogram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter","umol/L","UMOL/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"\u03bcmol/L","si",true,null,null,1,false,false,1,"micromole/liter; micromole/litre; umol per liter; micromoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter per hour","umol/L/h","(UMOL/L)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(\u03bcmol/L)/h","si",true,null,null,1,false,false,1,"umol/liter/hr; umol/litre/hr; umol per L per hr; umol per liter per hour; micromoles per liters per hour; litre","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min; umol/L/h is a derived unit of enzyme units","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milligram","umol/mg","UMOL/MG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"\u03bcmol/mg","si",true,null,null,1,false,false,1,"micromole/milligram; umol per mg; micromoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute","umol/min","UMOL/MIN","amount of substance",10036894500000000,[0,-1,0,0,0,0,0],"\u03bcmol/min","si",true,null,null,1,false,false,1,"micromole/minute; umol per min; micromoles per minute; enzyme units","LOINC","CAct","Clinical","unit for the enzyme unit U = umol/min","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per gram","umol/min/g","(UMOL/MIN)/G","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(\u03bcmol/min)/g","si",true,null,null,1,false,false,1,"umol/min/gm; umol per min per gm; micromoles per minutes per gram; U/g; enzyme units","LOINC","CCnt","Clinical","unit for the enzyme unit U = umol/min. umol/min/g = U/g","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per liter","umol/min/L","(UMOL/MIN)/L","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(\u03bcmol/min)/L","si",true,null,null,1,false,false,1,"umol/min/liter; umol/minute/liter; micromoles per minutes per liter; litre; enzyme units; U/L","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/min/L = U/L","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter","umol/mL","UMOL/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"\u03bcmol/mL","si",true,null,null,1,false,false,1,"umol per mL; micromoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter per minute","umol/mL/min","(UMOL/ML)/MIN","amount of substance",1.00368945e+22,[-3,-1,0,0,0,0,0],"(\u03bcmol/mL)/min","si",true,null,null,1,false,false,1,"umol per mL per min; micromoles per milliliters per minute; millilitres","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/mL/min = U/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per millimole","umol/mmol","UMOL/MMOL","amount of substance",0.001,[0,0,0,0,0,0,0],"\u03bcmol/mmol","si",true,null,null,1,false,false,0,"umol per mmol; micromoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per mole","umol/mol","UMOL/MOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"\u03bcmol/mol","si",true,null,null,1,false,false,0,"umol per mol; micromoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per micromole","umol/umol","UMOL/UMOL","amount of substance",1,[0,0,0,0,0,0,0],"\u03bcmol/\u03bcmol","si",true,null,null,1,false,false,0,"umol per umol; micromoles per micromole","LOINC","Srto; SFr; EntSRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"microOhm","uOhm","UOHM","electric resistance",0.001,[2,-1,1,0,0,-2,0],"\u03bc\u03a9","si",true,null,null,1,false,false,0,"microOhms; \xb5\u03a9","LOINC","","Clinical","unit of electric resistance","V/A","V/A","1",1,false],[true,"microsecond","us","US","time",0.000001,[0,1,0,0,0,0,0],"\u03bcs",null,false,"T",null,1,false,false,0,"microseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"micro enzyme unit per gram","uU/g","UU/G","catalytic activity",10036894500,[0,-1,-1,0,0,0,0],"\u03bcU/g","chemical",true,null,null,1,false,false,1,"uU per gm; micro enzyme units per gram; micro enzymatic activity per mass; enzyme activity","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per liter","uU/L","UU/L","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"\u03bcU/L","chemical",true,null,null,1,false,false,1,"uU per L; micro enzyme units per liter; litre; enzymatic activity per volume; enzyme activity ","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per milliliter","uU/mL","UU/ML","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"\u03bcU/mL","chemical",true,null,null,1,false,false,1,"uU per mL; micro enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"microvolt","uV","UV","electric potential",0.001,[2,-2,1,0,0,-1,0],"\u03bcV","si",true,null,null,1,false,false,0,"microvolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false]]}}')},4147:ye=>{"use strict";ye.exports=JSON.parse('{"name":"matchboxv3","version":"3.2.0","license":"MIT","scripts":{"ng":"ng","start":"ng serve","build":"ng build --configuration production --base-href /matchboxv3/","test":"ng test","test-ci":"ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox --code-coverage","lint":"ng lint","e2e":"ng e2e"},"private":true,"dependencies":{"@angular/animations":"^13.1.1","@angular/common":"^13.1.1","@angular/core":"^13.1.1","@angular/forms":"^13.1.1","@angular/material":"^13.1.1","@angular/platform-browser":"^13.1.1","@angular/platform-browser-dynamic":"^13.1.1","@angular/router":"^13.1.1","@ngx-translate/core":"^11.0.1","@ngx-translate/http-loader":"^4.0.0","@types/jasmine":"^3.6.9","@types/pako":"^1.0.3","ace-builds":"^1.4.14","angular-oauth2-oidc":"^13.0.1","browserify-zlib":"^0.2.0","core-js":"^2.6.2","debug":"^4.3.1","fhir-kit-client":"1.9.2","fhirpath":"^2.10.2","jasmine":"^3.7.0","js-base64":"^3.7.2","js-untar":"^2.0.0","ngx-highlightjs":"^4.1.3","pako":"^2.0.4","rxjs":"^6.6.7","tslib":"^2.0.0","uuid":"^8.3.2","yarn":"^1.22.17","zone.js":"^0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"^13.1.2","@angular-eslint/builder":"13.0.0-alpha.1","@angular-eslint/eslint-plugin":"13.0.0-alpha.1","@angular-eslint/eslint-plugin-template":"13.0.0-alpha.1","@angular-eslint/schematics":"13.0.0-alpha.1","@angular-eslint/template-parser":"13.0.0-alpha.1","@angular/cli":"^13.1.2","@angular/compiler-cli":"^13.1.1","@angular/language-service":"^13.1.1","@types/debug":"^4.1.5","@types/node":"^10.12.18","@types/ramda":"^0.26.44","@typescript-eslint/eslint-plugin":"5.3.0","@typescript-eslint/parser":"5.3.0","eslint":"^8.2.0","husky":"^1.3.1","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","json-patch":"^0.7.0","karma":"~6.3.1","karma-chrome-launcher":"~3.1.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","prettier":"2.2.1","pretty-quick":"^1.10.0","protractor":"~7.0.0","ts-node":"~7.0.1","tslint":"~6.1.0","typescript":"~4.5.4"},"browser":{"fs":false,"os":false,"path":false,"zlib":false},"prettier":{"singleQuote":true,"trailingComma":"es5"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}}}')}},ye=>{ye(ye.s=4431)}]); \ No newline at end of file +(self.webpackChunkmatchbox_formfiller=self.webpackChunkmatchbox_formfiller||[]).push([[179],{5424:(ye,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.Ucum=void 0,j.Ucum={dimLen_:7,validOps_:[".","/"],codeSep_:": ",valMsgStart_:"Did you mean ",valMsgEnd_:"?",cnvMsgStart_:"We assumed you meant ",cnvMsgEnd_:".",openEmph_:" ->",closeEmph_:"<- ",openEmphHTML_:'',closeEmphHTML_:"",bracesMsg_:"FYI - annotations (text in curly braces {}) are ignored, except that an annotation without a leading symbol implies the default unit 1 (the unity).",needMoleWeightMsg_:"Did you wish to convert between mass and moles? The molecular weight of the substance represented by the units is required to perform the conversion.",csvCols_:{"case-sensitive code":"csCode_","LOINC property":"loincProperty_","name (display)":"name_",synonyms:"synonyms_",source:"source_",category:"category_",Guidance:"guidance_"},inputKey_:"case-sensitive code",specUnits_:{"B[10.nV]":"specialUnitOne","[m/s2/Hz^(1/2)]":"specialUnitTwo"}}},6227:(ye,j,p)=>{"use strict";j.R=void 0;var f=p(5424),v=p(5984);class m{constructor(d){if(0===f.Ucum.dimLen_)throw new Error("Dimension.setDimensionLen must be called before Dimension constructor");if(null==d)this.assignZero();else if(d instanceof Array){if(d.length!==f.Ucum.dimLen_)throw new Error(`Parameter error, incorrect length of vector passed to Dimension constructor, vector = ${JSON.stringify(d)}`);this.dimVec_=[];for(let u=0;u=f.Ucum.dimLen_)throw new Error("Parameter error, invalid element number specified for Dimension constructor");this.assignZero(),this.dimVec_[d]=1}}setElementAt(d,u){if(!v(d)||d<0||d>=f.Ucum.dimLen_)throw new Error(`Dimension.setElementAt called with an invalid index position (${d})`);this.dimVec_||this.assignZero(),null==u&&(u=1),this.dimVec_[d]=u}getElementAt(d){if(!v(d)||d<0||d>=f.Ucum.dimLen_)throw new Error(`Dimension.getElementAt called with an invalid index position (${d})`);let u=null;return this.dimVec_&&(u=this.dimVec_[d]),u}getProperty(d){return this["_"===d.charAt(d.length-1)?d:d+"_"]}toString(){let d=null;return this.dimVec_&&(d="["+this.dimVec_.join(", ")+"]"),d}add(d){if(!d instanceof m)throw new Error(`Dimension.add called with an invalid parameter - ${typeof d} instead of a Dimension object`);if(this.dimVec_&&d.dimVec_)for(let u=0;u{"use strict";j.DP=function(r){const s=r&&r.config;if(s){if(s.length&&r.data){const i=m(s);return r.data.map(d.bind(null,i))}return r.data}return r};function m(r){return r.map(s=>Array.isArray(s)?s:[s])}function d(r,s){let i={};return r.forEach((c,l)=>{let g=i;for(let y=0;y{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.Prefix=void 0,p(5424),j.Prefix=class{constructor(m){if(null==m.code_||null==m.name_||null==m.value_||void 0===m.exp_)throw new Error("Prefix constructor called missing one or more parameters. Prefix codes (cs or ci), name, value and exponent must all be specified and all but the exponent must not be null.");this.code_=m.code_,this.ciCode_=m.ciCode_,this.name_=m.name_,this.printSymbol_=m.printSymbol_,this.value_="string"==typeof m.value_?parseFloat(m.value_):m.value_,this.exp_=m.exp_}getValue(){return this.value_}getCode(){return this.code_}getCiCode(){return this.ciCode_}getName(){return this.name_}getPrintSymbol(){return this.printSymbol_}getExp(){return this.exp_}equals(m){return this.code_===m.code_&&this.ciCode_===m.ciCode_&&this.name_===m.name_&&this.printSymbol_===m.printSymbol_&&this.value_===m.value_&&this.exp_===m.exp_}}},5361:(ye,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.PrefixTables=j.PrefixTablesFactory=void 0;class p{constructor(){this.byCode_={},this.byValue_={}}prefixCount(){return Object.keys(this.byCode_).length}allPrefixesByValue(){let m="",o=Object.keys(this.byValue_),d=o.length;for(let u=0;u{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0;var n=new class{constructor(){this.funcs={},this.funcs.cel={cnvTo:function(v){return v-273.15},cnvFrom:function(v){return v+273.15}},this.funcs.degf={cnvTo:function(v){return v-459.67},cnvFrom:function(v){return v+459.67}},this.funcs.degre={cnvTo:function(v){return v-273.15},cnvFrom:function(v){return v+273.15}},this.funcs.ph={cnvTo:function(v){return-Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,-v)}},this.funcs.ln={cnvTo:function(v){return Math.log(v)},cnvFrom:function(v){return Math.exp(v)}},this.funcs["2ln"]={cnvTo:function(v){return 2*Math.log(v)},cnvFrom:function(v){return Math.exp(v/2)}},this.funcs.lg={cnvTo:function(v){return Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,v)}},this.funcs["10lg"]={cnvTo:function(v){return 10*Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,v/10)}},this.funcs["20lg"]={cnvTo:function(v){return 20*Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,v/20)}},this.funcs["2lg"]={cnvTo:function(v){return 2*Math.log(v)/Math.LN10},cnvFrom:function(v){return Math.pow(10,v/2)}},this.funcs.lgtimes2=this.funcs["2lg"],this.funcs.ld={cnvTo:function(v){return Math.log(v)/Math.LN2},cnvFrom:function(v){return Math.pow(2,v)}},this.funcs["100tan"]={cnvTo:function(v){return 100*Math.tan(v)},cnvFrom:function(v){return Math.atan(v/100)}},this.funcs.tanTimes100=this.funcs["100tan"],this.funcs.sqrt={cnvTo:function(v){return Math.sqrt(v)},cnvFrom:function(v){return v*v}},this.funcs.inv={cnvTo:function(v){return 1/v},cnvFrom:function(v){return 1/v}},this.funcs.hpX={cnvTo:function(v){return-this.funcs.lg(v)},cnvFrom:function(v){return Math.pow(10,-v)}},this.funcs.hpC={cnvTo:function(v){return-this.func.ln(v)/this.funcs.ln(100)},cnvFrom:function(v){return Math.pow(100,-v)}},this.funcs.hpM={cnvTo:function(v){return-this.funcs.ln(v)/this.funcs.ln(1e3)},cnvFrom:function(v){return Math.pow(1e3,-v)}},this.funcs.hpQ={cnvTo:function(v){return-this.funcs.ln(v)/this.funcs.ln(5e4)},cnvFrom:function(v){return Math.pow(5e4,-v)}}}forName(v){v=v.toLowerCase();let m=this.funcs[v];if(null===m)throw new Error(`Requested function ${v} is not defined`);return m}isDefined(v){return v=v.toLowerCase(),null!==this.funcs[v]}};j.default=n},4693:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.isNumericString=function(o){let d=""+o;return!isNaN(d)&&!isNaN(parseFloat(d))},j.isIntegerUnit=function(o){return/^\d+$/.test(o)},j.getSynonyms=function(o){let d={},h={};if(h=n.getInstance().getUnitBySynonym(o),h.units){d.status="succeeded";let r=h.units.length;d.units=[];for(let s=0;s{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.ucumJsonDefs=j.UcumJsonDefs=void 0;var n=p(3355),f=p(5361),v=p(8897),m=p(8334),o=p(4784).DP;class d{loadJsonDefs(){const r=p(8210);if(r.prefixes=o(r.prefixes),r.units=o(r.units),0===m.UnitTables.getInstance().unitsCount()){let s=f.PrefixTables.getInstance(),i=r.prefixes,c=i.length;for(let E=0;E{"use strict";j.n=void 0;var f=p(6395),v=function(s){if(s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var i=m();if(i&&i.has(s))return i.get(s);var c={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in s)if(Object.prototype.hasOwnProperty.call(s,g)){var y=l?Object.getOwnPropertyDescriptor(s,g):null;y&&(y.get||y.set)?Object.defineProperty(c,g,y):c[g]=s[g]}return c.default=s,i&&i.set(s,c),c}(p(4693));function m(){if("function"!=typeof WeakMap)return null;var s=new WeakMap;return m=function(){return s},s}var d=p(5424).Ucum,u=p(8334).UnitTables,h=p(5744).T;class r{constructor(){0===u.getInstance().unitsCount()&&f.ucumJsonDefs.loadJsonDefs(),this.uStrParser_=h.getInstance()}useHTMLInMessages(i){void 0===i&&(i=!0),this.uStrParser_.useHTMLInMessages(i)}useBraceMsgForEachString(i){void 0===i&&(i=!0),this.uStrParser_.useBraceMsgForEachString(i)}validateUnitString(i,c,l){void 0===c&&(c=!1),void 0===l&&(l="validate");let g=this.getSpecifiedUnit(i,l,c),y=g.unit,E={};return E=y?{status:g.origString===i?"valid":"invalid",ucumCode:g.origString,unit:{code:y.csCode_,name:y.name_,guidance:y.guidance_}}:{status:g.origString&&null!==g.origString?"invalid":"error",ucumCode:null},g.suggestions&&(E.suggestions=g.suggestions),E.msg=g.retMsg,E}convertUnitTo(i,c,l,g,y){void 0===g&&(g=!1),void 0===y&&(y=null);let E={status:"failed",toVal:null,msg:[]};if(i&&(i=i.trim()),(!i||""==i)&&(E.status="error",E.msg.push('No "from" unit expression specified.')),(null===c||isNaN(c)||"number"!=typeof c&&!v.isNumericString(c))&&(E.status="error",E.msg.push('No "from" value, or an invalid "from" value, was specified.')),l&&(l=l.trim()),(!l||""==l)&&(E.status="error",E.msg.push('No "to" unit expression specified.')),"error"!==E.status)try{let T=null,D=this.getSpecifiedUnit(i,"convert",g);T=D.unit,D.retMsg&&(E.msg=E.msg.concat(D.retMsg)),D.suggestions&&(E.suggestions={},E.suggestions.from=D.suggestions),T||E.msg.push(`Unable to find a unit for ${i}, so no conversion could be performed.`);let O=null;if(D=this.getSpecifiedUnit(l,"convert",g),O=D.unit,D.retMsg&&(E.msg=E.msg.concat(D.retMsg)),D.suggestions&&(E.suggestions||(E.suggestions={}),E.suggestions.to=D.suggestions),O||E.msg.push(`Unable to find a unit for ${l}, so no conversion could be performed.`),T&&O)try{if(y){if(0!==T.moleExp_&&0!==O.moleExp_)throw new Error("A molecular weight was specified but a mass <-> mole conversion cannot be executed for two mole-based units. No conversion was attempted.");if(0===T.moleExp_&&0===O.moleExp_)throw new Error("A molecular weight was specified but a mass <-> mole conversion cannot be executed when neither unit is mole-based. No conversion was attempted.");if(!T.isMoleMassCommensurable(O))throw new Error(`Sorry. ${i} cannot be converted to ${l}.`);E.toVal=0!==T.moleExp_?T.convertMolToMass(c,O,y):T.convertMassToMol(c,O,y)}else E.toVal=O.convertFrom(c,T);E.status="succeeded",E.fromUnit=T,E.toUnit=O}catch(w){E.status="failed",E.msg.push(w.message)}}catch(T){E.status=T.message==d.needMoleWeightMsg_?"failed":"error",E.msg.push(T.message)}return E}checkSynonyms(i){let c={};return null==i?(c.status="error",c.msg="No term specified for synonym search."):c=v.getSynonyms(i),c}getSpecifiedUnit(i,c,l){void 0===l&&(l=!1);let g={retMsg:[]};if(i){let y=u.getInstance();i=i.trim();let E=y.getUnitByCode(i);if(E)g.unit=E,g.origString=i;else try{let T=this.uStrParser_.parseString(i,c,l);g.unit=T[0],g.origString=T[1],T[2]&&(g.retMsg=T[2]),g.suggestions=T[3]}catch(T){console.log(`Unit requested for unit string ${i}.request unsuccessful; error thrown = `+T.message),g.retMsg.unshift(`${i} is not a valid unit. ${T.message}`)}}else g.retMsg.push("No unit string specified.");return g}commensurablesList(i){let c=[],l=null,g=this.getSpecifiedUnit(i,"validate",!1),y=g.unit;if(g.retMsg.length>0&&(c=g.retMsg),y){let E=null,T=y.getProperty("dim_");if(T){try{E=T.getProperty("dimVec_")}catch(D){c.push(D.message),"Dimension does not have requested property(dimVec_)"===D.message&&(E=null)}E&&(l=u.getInstance().getUnitsByDimension(E))}else c.push("No commensurable units were found for "+i)}else c.push(`Could not find unit ${i}.`);return[l,c]}}j.n=r,r.getInstance=function(){return new r}},1334:(ye,j,p)=>{"use strict";j.ng=void 0,p(5424);var v=p(4854).n;j.ng=v,p(8334)},8897:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.Unit=void 0;var i,n=(i=p(8287))&&i.__esModule?i:{default:i},f=function(i){if(i&&i.__esModule)return i;if(null===i||"object"!=typeof i&&"function"!=typeof i)return{default:i};var c=v();if(c&&c.has(i))return c.get(i);var l={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in i)if(Object.prototype.hasOwnProperty.call(i,y)){var E=g?Object.getOwnPropertyDescriptor(i,y):null;E&&(E.get||E.set)?Object.defineProperty(l,y,E):l[y]=i[y]}return l.default=i,c&&c.set(i,l),l}(p(4693));function v(){if("function"!=typeof WeakMap)return null;var i=new WeakMap;return v=function(){return i},i}var h,d=p(5424).Ucum,u=p(6227).R,r=p(5984);class s{constructor(c={}){this.isBase_=c.isBase_||!1,this.name_=c.name_||"",this.csCode_=c.csCode_||"",this.ciCode_=c.ciCode_||"",this.property_=c.property_||"",this.magnitude_=c.magnitude_||1,this.dim_=null==c.dim_?new u:void 0!==c.dim_.dimVec_?new u(c.dim_.dimVec_):c.dim_ instanceof u?c.dim_:c.dim_ instanceof Array||r(c.dim_)?new u(c.dim_):new u,this.printSymbol_=c.printSymbol_||null,this.class_=c.class_||null,this.isMetric_=c.isMetric_||!1,this.variable_=c.variable_||null,this.cnv_=c.cnv_||null,this.cnvPfx_=c.cnvPfx_||1,this.isSpecial_=c.isSpecial_||!1,this.isArbitrary_=c.isArbitrary_||!1,this.moleExp_=c.moleExp_||0,this.synonyms_=c.synonyms_||null,this.source_=c.source_||null,this.loincProperty_=c.loincProperty_||null,this.category_=c.category_||null,this.guidance_=c.guidance_||null,this.csUnitString_=c.csUnitString_||null,this.ciUnitString_=c.ciUnitString_||null,this.baseFactorStr_=c.baseFactorStr_||null,this.baseFactor_=c.baseFactor_||null,this.defError_=c.defError_||!1}assignUnity(){return this.name_="",this.magnitude_=1,this.dim_||(this.dim_=new u),this.dim_.assignZero(),this.cnv_=null,this.cnvPfx_=1,this}assignVals(c){for(let l in c){let g="_"===!l.charAt(l.length-1)?l+"_":l;if(!this.hasOwnProperty(g))throw new Error(`Parameter error; ${l} is not a property of a Unit`);this[g]=c[l]}}clone(){let c=new s;return Object.getOwnPropertyNames(this).forEach(l=>{"dim_"===l?c.dim_=this.dim_?this.dim_.clone():null:c[l]=this[l]}),c}assign(c){Object.getOwnPropertyNames(c).forEach(l=>{"dim_"===l?this.dim_=c.dim_?c.dim_.clone():null:this[l]=c[l]})}equals(c){return this.magnitude_===c.magnitude_&&this.cnv_===c.cnv_&&this.cnvPfx_===c.cnvPfx_&&(null===this.dim_&&null===c.dim_||this.dim_.equals(c.dim_))}fullEquals(c){let l=Object.keys(this).sort(),g=Object.keys(c).sort(),y=l.length,E=y===g.length;for(let T=0;T0){let l=c.replace("/","!").replace(".","/").replace("!",".");switch(l.charAt(0)){case".":c=l.substr(1);break;case"/":c=l;break;default:c="/"+l}}return c}_concatStrs(c,l,g,y,E){return this._buildOneString(c,y,E)+l+this._buildOneString(g,y,E)}_buildOneString(c,l,g){let y="";return y=f.isNumericString(c)||"("===c.charAt(0)||"["===c.charAt(0)?c:/[./* ]/.test(c)?l+c+g:c,y}power(c){if(null!=this.cnv_)throw new Error(`Attempt to raise a non-ratio unit, ${this.name_}, to a power.`);let g=this.csCode_.match(/([./]|[^./]+)/g),y=g.length;for(let E=0;E=0;w--){let A=parseInt(T[w]);if(!r(A)){if(("-"===T[w]||"+"===T[w])&&w--,w{"use strict";j.T=void 0;var f=function(s){if(s&&s.__esModule)return s;if(null===s||"object"!=typeof s&&"function"!=typeof s)return{default:s};var i=v();if(i&&i.has(s))return i.get(s);var c={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in s)if(Object.prototype.hasOwnProperty.call(s,g)){var y=l?Object.getOwnPropertyDescriptor(s,g):null;y&&(y.get||y.set)?Object.defineProperty(c,g,y):c[g]=s[g]}return c.default=s,i&&i.set(s,c),c}(p(4693));function v(){if("function"!=typeof WeakMap)return null;var s=new WeakMap;return v=function(){return s},s}var o=p(5424).Ucum,d=p(8897).Unit,u=p(8334).UnitTables,h=p(5361).PrefixTables;class r{constructor(){this.utabs_=u.getInstance(),this.pfxTabs_=h.getInstance(),this.openEmph_=o.openEmph_,this.closeEmph_=o.closeEmph_,this.bracesMsg_="",this.parensFlag_="parens_placeholder",this.pFlagLen_=this.parensFlag_.length,this.braceFlag_="braces_placeholder",this.bFlagLen_=this.braceFlag_.length,this.vcMsgStart_=null,this.vcMsgEnd_=null,this.retMsg_=[],this.parensUnits_=[],this.annotations_=[],this.suggestions=[]}useHTMLInMessages(i){void 0===i||i?(this.openEmph_=o.openEmphHTML_,this.closeEmph_=o.closeEmphHTML_):(this.openEmph_=o.openEmph_,this.closeEmph_=o.closeEmph_)}useBraceMsgForEachString(i){this.bracesMsg_=void 0===i||i?o.bracesMsg_:""}parseString(i,c,l){if(""===(i=i.trim())||null===i)throw new Error("Please specify a unit expression to be validated.");"validate"===c?(this.vcMsgStart_=o.valMsgStart_,this.vcMsgEnd_=o.valMsgEnd_):(this.vcMsgStart_=o.cnvMsgStart_,this.vcMsgEnd_=o.cnvMsgEnd_),this.suggestions_=void 0===l||!1===l?null:[],this.retMsg_=[],this.parensUnits_=[],this.annotations_=[];let g=i,y=[];if(i=this._getAnnotations(i),this.retMsg_.length>0)y[0]=null,y[1]=null;else{let T=null;for(T in o.specUnits_)for(;-1!==i.indexOf(T);)i=i.replace(T,o.specUnits_[T]);if(i.indexOf(" ")>-1)throw new Error("Blank spaces are not allowed in unit expressions.");y=this._parseTheString(i,g);let D=y[0];(f.isIntegerUnit(D)||"number"==typeof D)&&(D=new d({csCode_:g,magnitude_:D,name_:g}),y[0]=D)}return y[2]=this.retMsg_,this.suggestions_&&this.suggestions_.length>0&&(y[3]=this.suggestions_),y}_parseTheString(i,c){let l=null,g=this.retMsg_.length>0,y=this._processParens(i,c);g=y[2];let E=[];if(!g){let T=this._makeUnitsArray(i=y[0],c=y[1]);if(g=T[2],!g){E=T[0],c=T[1];let D=E.length;for(let O=0;O=0){let A=this._getParensUnit(w,c);g||(g=A[1]),g||(E[O].un=A[0])}else{let A=this._makeUnit(w,c);null===A[0]?g=!0:(E[O].un=A[0],c=A[1])}}}}return g||(null===E[0]||" "===E[0]||null==E[0].un)&&0===this.retMsg_.length&&(this.retMsg_.push(`Unit string (${c}) did not contain anything that could be used to create a unit, or else something that is not handled yet by this package. Sorry`),g=!0),g||(l=this._performUnitArithmetic(E,c)),[l,c]}_getAnnotations(i){let c=i.indexOf("{");for(;c>=0;){let g=i.indexOf("}");if(g<0)this.retMsg_.push("Missing closing brace for annotation starting at "+this.openEmph_+i.substr(c)+this.closeEmph_),c=-1;else{let y=i.substring(c,g+1),E=this.annotations_.length.toString();i=i.replace(y,this.braceFlag_+E+this.braceFlag_),this.annotations_.push(y),c=i.indexOf("{")}}let l=i.indexOf("}");return l>=0&&this.retMsg_.push("Missing opening brace for closing brace found at "+this.openEmph_+i.substring(0,l+1)+this.closeEmph_),i}_processParens(i,c){let l=[],g=0,y=!1,E=this.parensUnits_.length,T=0;for(;""!==i&&!y;){let D=0,O=0,w=i.indexOf("(");if(w<0){let A=i.indexOf(")");if(A>=0){let S=`Missing open parenthesis for close parenthesis at ${i.substring(0,A+T)}${this.openEmph_}${i.substr(A,1)}${this.closeEmph_}`;A0&&(l[g++]=i.substr(0,w));let S=0,M=w+1;for(;M0&&(O=i.substr(0,D-1));let w=i.lastIndexOf(this.parensFlag_),A=null;w+this.pFlagLen_=0){let M=this._getAnnoText(O,c);if(M[1]||M[2])throw new Error(`Text found before the parentheses (${O}) included an annotation along with other text for parenthetical unit ${y.csCode_}`);this.retMsg_.push(`The annotation ${M[0]} before the unit code is invalid.\n`+this.vcMsgStart_+(i+=M[0])+this.vcMsgEnd_)}else this.suggestions_?l="succeeded"!==this._getSuggestions(O):(this.retMsg_.push(`${O} preceding the unit code ${i} is invalid. Unable to make a substitution.`),l=!0);if(A)if(A.indexOf(this.braceFlag_)>=0){let M=this._getAnnoText(A,c);if(M[1]||M[2])throw new Error(`Text found after the parentheses (${A}) included an annotation along with other text for parenthetical unit ${y.csCode_}`);i+=M[0]}else f.isNumericString(A)?(i+=A,y=y.power(Number(A)),this.retMsg_.push(`An exponent (${A}) following a parenthesis is invalid as of revision 1.9 of the UCUM Specification.\n `+this.vcMsgStart_+i+this.vcMsgEnd_)):this.suggestions_?l="succeeded"!==this._getSuggestions(O):(this.retMsg_.push(`Text ${A} following the unit code ${i} is invalid. Unable to make a substitution.`),l=!0);return l||(y?f.isIntegerUnit(y)?y=new d({csCode_:y,magnitude_:y,name_:y}):y.csCode_=i:y=new d({csCode_:i,magnitude_:1,name_:i})),[y,l]}_getAnnoText(i,c){let l=i.indexOf(this.braceFlag_),g=l>0?i.substring(0,l):null;0!==l&&(i=i.substr(l));let y=i.indexOf(this.braceFlag_,1),E=y+this.bFlagLen_=this.annotations_.length)throw new Error(`Processing Error - invalid annotation index ${T} found in ${i} that was created from ${c}`);return[i=this.annotations_[D],g,E]}_getSuggestions(i){let c=f.getSynonyms(i);if("succeeded"===c.status){let l={};l.msg=`${i} is not a valid UCUM code. We found possible units that might be what was meant:`,l.invalidUnit=i;let g=c.units.length;l.units=[];for(let y=0;y=0){let g=this._getUnitWithAnnotation(i,c);l=g[0],l&&(c=g[1])}else{if(i.indexOf("^")>-1){let g=i.replace("^","*");l=this.utabs_.getUnitByCode(g),l&&(l=l.clone(),l.csCode_=l.csCode_.replace("*","^"),l.ciCode_=l.ciCode_.replace("*","^"))}if(!l){let g="["+i+"]";l=this.utabs_.getUnitByCode(g),l&&(l=l.clone(),c=c.replace(i,g),this.retMsg_.push(`${i} is not a valid unit expression, but ${g} is.\n`+this.vcMsgStart_+`${g} (${l.name_})${this.vcMsgEnd_}`))}if(!l){let g=this.utabs_.getUnitByName(i);if(g&&g.length>0){l=g[0].clone();let y="The UCUM code for "+i+" is "+l.csCode_+".\n"+this.vcMsgStart_+l.csCode_+this.vcMsgEnd_,E=!1;for(let O=0;O"+ne+"",csCode_:F+ne,ciCode_:b+ne,printSymbol_:L+""+ne+""})}}else l=null,this.suggestions_?this._getSuggestions(g):this.retMsg_.push(`${g} is not a valid UCUM code.`)}}return[l,c]}_getUnitWithAnnotation(i,c){let l=null,g=this._getAnnoText(i,c),y=g[0],E=g[1],T=g[2];this.bracesMsg_&&-1===this.retMsg_.indexOf(this.bracesMsg_)&&this.retMsg_.push(this.bracesMsg_);let D=this.retMsg_.length;if(E||T)if(E&&!T)if(f.isIntegerUnit(E))l=E;else{let O=this._makeUnit(E,c);O[0]?(l=O[0],l.csCode_+=y,c=O[1]):this.retMsg_.push(`Unable to find a unit for ${E} that precedes the annotation ${y}.`)}else if(!E&&T)if(f.isIntegerUnit(T))l=T+y,this.retMsg_.push(`The annotation ${y} before the ``${T} is invalid.\n`+this.vcMsgStart_+l+this.vcMsgEnd_);else{let O=this._makeUnit(T,c);O[0]?(l=O[0],l.csCode_+=y,c=l.csCode_,this.retMsg_.push(`The annotation ${y} before the unit code is invalid.\n`+this.vcMsgStart_+l.csCode_+this.vcMsgEnd_)):this.retMsg_.push(`Unable to find a unit for ${E} that follows the annotation ${y}.`)}else this.retMsg_.push(`Unable to find a unit for ${E}${y}${T}.\nWe are not sure how to interpret text both before and after the annotation. Sorry`);else{let O="["+y.substring(1,y.length-1)+"]",w=this._makeUnit(O,c);w[0]?(l=w[0],c=c.replace(y,O),this.retMsg_.push(`${y} is not a valid unit expression, but ${O} is.\n`+this.vcMsgStart_+`${O} (${l.name_})${this.vcMsgEnd_}`)):(this.retMsg_.length>D&&this.retMsg_.pop(),i=1,l=1)}return[l,c]}_performUnitArithmetic(i,c){let l=i[0].un;f.isIntegerUnit(l)&&(l=new d({csCode_:l,magnitude_:Number(l),name_:l}));let g=i.length,y=!1;for(let E=1;E{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.UnitTables=void 0;var n=p(5424).Ucum,v=new class{constructor(){this.unitNames_={},this.unitCodes_={},this.codeOrder_=[],this.unitStrings_={},this.unitDimensions_={},this.unitSynonyms_={},this.massDimIndex_=0}unitsCount(){return Object.keys(this.unitCodes_).length}addUnit(d){d.name_&&this.addUnitName(d),this.addUnitCode(d),this.addUnitString(d);try{d.dim_.getProperty("dimVec_")&&this.addUnitDimension(d)}catch(h){}}addUnitName(d){let u=d.name_;if(!u)throw new Error(`UnitTables.addUnitName called for a unit with no name. Unit code = ${d.csCode_}.`);this.unitNames_[u]?this.unitNames_[u].push(d):this.unitNames_[u]=[d]}addUnitCode(d){let u=d.csCode_;if(!u)throw new Error("UnitTables.addUnitCode called for unit that has no code.");if(this.unitCodes_[u])throw new Error(`UnitTables.addUnitCode called, already contains entry for unit with code = ${u}`);if(this.unitCodes_[u]=d,this.codeOrder_.push(u),"g"==u){let h=d.dim_.dimVec_,r=0;for(;r=1&&(h=d.substr(u+n.codeSep_.length),d=d.substr(0,u));let r=this.unitNames_[d];if(r){let s=r.length;if(h&&s>1){let i=0;for(;r[i].csCode_!==h&&i0&&(h+=u),"dim_"===d[E])h+=null!=y.dim_&&y.dim_.dimVec_ instanceof Array?"["+y.dim_.dimVec_.join(",")+"]":"";else{let T=y[d[E]];h+="string"==typeof T?T.replace(/[\n\r]/g," "):T}h+="\r\n"}}return h}printUnits(d,u){void 0===d&&(d=!1),void 0===u&&(u="|");let h="",r=this.codeOrder_.length,s="csCode"+u;d&&(s+="ciCode"+u),s+="name"+u,d&&(s+="isBase"+u),s+="magnitude"+u+"dimension"+u+"from unit(s)"+u+"value"+u+"function"+u,d&&(s+="property"+u+"printSymbol"+u+"synonyms"+u+"source"+u+"class"+u+"isMetric"+u+"variable"+u+"isSpecial"+u+"isAbitrary"+u),s+="comment",h=s+"\n";for(let i=0;i{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.AppComponent=void 0;const n=p(655),m=(p(6165),p(2466),(0,n.__importStar)(p(5e3))),o=(0,n.__importStar)(p(2466)),d=(0,n.__importStar)(p(6165)),u=(0,n.__importStar)(p(4594)),h=(0,n.__importStar)(p(4202)),r=(0,n.__importStar)(p(7423)),s=(0,n.__importStar)(p(2181)),i=(0,n.__importStar)(p(5245));class c{constructor(g,y){g.setDefaultLang("de"),g.use(g.getBrowserLang()),"https://ahdis.github.io"===location.origin?(console.log("note: using ahdis test systems for matchbox and mag"+location.origin),y.changeFhirMicroService("https://test.ahdis.ch/matchboxv3/fhir"),y.changeMagMicroService("https://test.ahdis.ch/mag-pmp/fhir")):console.log("running at "+location.origin)}}j.AppComponent=c,c.\u0275fac=function(g){return new(g||c)(m.\u0275\u0275directiveInject(o.TranslateService),m.\u0275\u0275directiveInject(d.FhirConfigService))},c.\u0275cmp=m.\u0275\u0275defineComponent({type:c,selectors:[["app-root"]],decls:53,vars:1,consts:[["color","primary","role","header"],["routerLink","/",1,"home-link"],[1,"logo-container"],["src","assets/matchbox_logo_color.png"],[1,"example-fill-remaining-space"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","","routerLink","/"],["mat-menu-item","","routerLink","/CapabilityStatement"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/fhirpath"],["mat-menu-item","","routerLink","/mappinglanguage"],["mat-menu-item","","routerLink","/transform"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/settings"],[1,"mat-typography"]],template:function(g,y){if(1&g&&(m.\u0275\u0275elementStart(0,"mat-toolbar",0),m.\u0275\u0275elementStart(1,"div",1),m.\u0275\u0275elementStart(2,"div",2),m.\u0275\u0275element(3,"img",3),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(4,"span",4),m.\u0275\u0275elementStart(5,"span"),m.\u0275\u0275elementStart(6,"button",5),m.\u0275\u0275elementStart(7,"mat-icon"),m.\u0275\u0275text(8,"more_vert"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(9,"mat-menu",null,6),m.\u0275\u0275elementStart(11,"button",7),m.\u0275\u0275elementStart(12,"mat-icon"),m.\u0275\u0275text(13,"home"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(14,"span"),m.\u0275\u0275text(15,"Home"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(16,"button",8),m.\u0275\u0275elementStart(17,"mat-icon"),m.\u0275\u0275text(18,"info"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(19,"span"),m.\u0275\u0275text(20,"CapabilityStatement"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(21,"button",9),m.\u0275\u0275elementStart(22,"mat-icon"),m.\u0275\u0275text(23,"info"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(24,"span"),m.\u0275\u0275text(25,"IGs ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(26,"button",10),m.\u0275\u0275elementStart(27,"mat-icon"),m.\u0275\u0275text(28,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(29,"span"),m.\u0275\u0275text(30,"FHIRPath ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(31,"button",11),m.\u0275\u0275elementStart(32,"mat-icon"),m.\u0275\u0275text(33,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(34,"span"),m.\u0275\u0275text(35,"FHIR mapping language ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(36,"button",12),m.\u0275\u0275elementStart(37,"mat-icon"),m.\u0275\u0275text(38,"search"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(39,"span"),m.\u0275\u0275text(40,"Transform ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(41,"button",13),m.\u0275\u0275elementStart(42,"mat-icon"),m.\u0275\u0275text(43,"Validate"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(44,"span"),m.\u0275\u0275text(45,"Validate ..."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(46,"button",14),m.\u0275\u0275elementStart(47,"mat-icon"),m.\u0275\u0275text(48,"settings"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(49,"span"),m.\u0275\u0275text(50,"Settings"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(51,"main",15),m.\u0275\u0275element(52,"router-outlet"),m.\u0275\u0275elementEnd()),2&g){const E=m.\u0275\u0275reference(10);m.\u0275\u0275advance(6),m.\u0275\u0275property("matMenuTriggerFor",E)}},directives:[u.MatToolbar,h.RouterLink,r.MatButton,s.MatMenuTrigger,i.MatIcon,s.MatMenu,s.MatMenuItem,h.RouterOutlet],styles:[".example-fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{padding-left:0}mat-toolbar[_ngcontent-%COMP%] .home-link[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;height:100%;width:160px;justify-content:center;align-items:center}mat-toolbar[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:calc(100% - 1.2em)}main[_ngcontent-%COMP%]{width:100%;margin:0 auto}@media screen and (min-width: 1020px){main[_ngcontent-%COMP%]{padding:3rem 0;width:1000px}}"]})},6747:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.AppModule=j.createTranslateLoader=void 0;const n=p(655),f=p(520),v=p(4202),m=p(2466),o=p(1744),d=p(5041),u=p(7901),h=p(4090),r=p(5067),s=p(6218),i=p(4586),c=p(4466),l=p(7206),g=p(2756),y=p(719),E=p(3026),T=p(6114),D=(0,n.__importStar)(p(5e3)),S=((0,n.__importStar)(p(4202)),(0,n.__importStar)(p(2466)),(0,n.__importStar)(p(6114)),[{path:"",component:r.HomeComponent},{path:"fhirpath",component:h.FhirPathComponent},{path:"mappinglanguage",component:s.MappingLanguageComponent},{path:"CapabilityStatement",component:u.CapabilityStatementComponent},{path:"igs",component:l.IgsComponent},{path:"settings",component:i.SettingsComponent},{path:"transform",component:y.TransformComponent},{path:"validate",component:E.ValidateComponent}]);function M(b){return new o.TranslateHttpLoader(b,"./assets/i18n/",".json")}j.createTranslateLoader=M;class I{}j.AppModule=I,I.\u0275fac=function(L){return new(L||I)},I.\u0275mod=D.\u0275\u0275defineNgModule({type:I,bootstrap:[d.AppComponent]}),I.\u0275inj=D.\u0275\u0275defineInjector({providers:[{provide:g.HIGHLIGHT_OPTIONS,useValue:{coreLibraryLoader:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(5241))),lineNumbersLoader:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(859))),languages:{json:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(7652))),xml:()=>Promise.resolve().then(()=>(0,n.__importStar)(p(1891)))}}}],imports:[[c.SharedModule,f.HttpClientModule,g.HighlightModule,v.RouterModule.forRoot(S,{useHash:!0,relativeLinkResolution:"legacy"}),m.TranslateModule.forRoot({loader:{provide:m.TranslateLoader,useFactory:M,deps:[f.HttpClient]}}),T.OAuthModule.forRoot()]]})},7901:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.CapabilityStatementComponent=void 0;const n=p(655),v=(p(6165),(0,n.__importStar)(p(5e3))),m=(0,n.__importStar)(p(6165)),o=(0,n.__importStar)(p(9224)),d=(0,n.__importStar)(p(2756)),u=(0,n.__importStar)(p(9808)),h=(0,n.__importStar)(p(7322));function r(c,l){if(1&c&&(v.\u0275\u0275elementStart(0,"li"),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&c){const g=l.$implicit;v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate1(" ",g.diagnostics," ")}}function s(c,l){if(1&c&&(v.\u0275\u0275elementStart(0,"mat-error"),v.\u0275\u0275elementStart(1,"ul"),v.\u0275\u0275template(2,r,2,1,"li",3),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd()),2&c){const g=v.\u0275\u0275nextContext();v.\u0275\u0275advance(2),v.\u0275\u0275property("ngForOf",g.operationOutcome.issue)}}class i{constructor(l){this.data=l,this.client=l.getFhirClient(),this.client.capabilityStatement().then(g=>{this.operationOutcome=void 0,this.capabilitystatement=g}).catch(g=>{this.capabilitystatement=void 0,this.operationOutcome=g.response.data})}getJson(){return JSON.stringify(this.capabilitystatement,null,2)}ngOnInit(){}ngOnDestroy(){}}j.CapabilityStatementComponent=i,i.\u0275fac=function(l){return new(l||i)(v.\u0275\u0275directiveInject(m.FhirConfigService))},i.\u0275cmp=v.\u0275\u0275defineComponent({type:i,selectors:[["app-capability-statement"]],decls:8,vars:4,consts:[[1,"display"],[3,"highlight","lineNumbers"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(l,g){1&l&&(v.\u0275\u0275elementStart(0,"mat-card",0),v.\u0275\u0275elementStart(1,"mat-card-content"),v.\u0275\u0275elementStart(2,"mat-card-header"),v.\u0275\u0275elementStart(3,"mat-card-title"),v.\u0275\u0275text(4),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(5,"pre"),v.\u0275\u0275element(6,"code",1),v.\u0275\u0275elementEnd(),v.\u0275\u0275template(7,s,3,1,"mat-error",2),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd()),2&l&&(v.\u0275\u0275advance(4),v.\u0275\u0275textInterpolate(g.client.baseUrl),v.\u0275\u0275advance(2),v.\u0275\u0275property("highlight",g.getJson())("lineNumbers",!0),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",g.operationOutcome))},directives:[o.MatCard,o.MatCardContent,o.MatCardHeader,o.MatCardTitle,d.Highlight,u.NgIf,h.MatError,u.NgForOf],styles:[".display[_ngcontent-%COMP%]{display:inline-block}"]})},4090:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.FhirPathComponent=void 0;const n=p(655),m=(p(5e3),p(6315),p(3075)),o=p(3460),d=(0,n.__importStar)(p(5e3)),u=(0,n.__importStar)(p(6315)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(7322)),s=(0,n.__importStar)(p(7531)),i=(0,n.__importStar)(p(3075)),c=(0,n.__importStar)(p(2756));class l{constructor(y,E){this.fhirPathService=y,this.cd=E,this.fhirPathExpression=new m.FormControl,this.fhirPathExpression.valueChanges.pipe((0,o.debounceTime)(400),(0,o.distinctUntilChanged)()).subscribe(T=>{if(console.log("called with "+T),T)try{this.fhirPathResult=this.fhirPathService.evaluate(this.resource,T)}catch(D){console.log(D),this.fhirPathResult=void 0}else this.fhirPathResult=void 0})}fileChange(y){const E=new FileReader;if(y.target.files&&y.target.files.length){const[T]=y.target.files;E.readAsText(T),E.onload=()=>{this.resource=JSON.parse(E.result),this.cd.markForCheck()}}}getFhirPathResult(){return JSON.stringify(this.fhirPathResult,null,2)}getJson(){return JSON.stringify(this.resource,null,2)}ngOnInit(){}}j.FhirPathComponent=l,l.\u0275fac=function(y){return new(y||l)(d.\u0275\u0275directiveInject(u.FhirPathService),d.\u0275\u0275directiveInject(d.ChangeDetectorRef))},l.\u0275cmp=d.\u0275\u0275defineComponent({type:l,selectors:[["app-fhir-path"]],decls:15,vars:5,consts:[[1,"display"],["matInput","",3,"formControl"],[3,"highlight","lineNumbers"],["type","file","placeholder","Upload resource","accept",".json",3,"change"]],template:function(y,E){1&y&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"mat-form-field"),d.\u0275\u0275elementStart(3,"mat-label"),d.\u0275\u0275text(4,"FHIRPath Expression"),d.\u0275\u0275elementEnd(),d.\u0275\u0275element(5,"input",1),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"div"),d.\u0275\u0275text(7,"Result"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"pre"),d.\u0275\u0275element(9,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"div"),d.\u0275\u0275text(11,"Resource"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"input",3),d.\u0275\u0275listener("change",function(D){return E.fileChange(D)}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(13,"pre"),d.\u0275\u0275element(14,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&y&&(d.\u0275\u0275advance(5),d.\u0275\u0275property("formControl",E.fhirPathExpression),d.\u0275\u0275advance(4),d.\u0275\u0275property("highlight",E.getFhirPathResult())("lineNumbers",!0),d.\u0275\u0275advance(5),d.\u0275\u0275property("highlight",E.getJson())("lineNumbers",!0))},directives:[h.MatCard,h.MatCardContent,r.MatFormField,r.MatLabel,s.MatInput,i.DefaultValueAccessor,i.NgControlStatus,i.FormControlDirective,c.Highlight],styles:[".display[_ngcontent-%COMP%]{display:inline-block}"]})},6165:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.FhirConfigService=void 0;const n=p(655),f=(0,n.__importDefault)(p(6336)),v=(0,n.__importStar)(p(5e3));class m{constructor(){}changeFhirMicroService(d){localStorage.setItem("fhirMicroServer",d)}changeMagMicroService(d){localStorage.setItem("magMicroService",d)}getFhirMicroService(){return localStorage.getItem("fhirMicroServer")||"/matchboxv3/fhir"}getMobileAccessGatewayService(){return localStorage.getItem("magMicroService")||"/mag/fhir"}getMobileAccessGatewayLoginUrl(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/authorize")}getMobileAccessGatewayTokenEndpoint(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/token")}getMobileAccessGatewayAssertionEndpoint(){return localStorage.getItem("magMicroService").replace("/fhir","/camel/assertion")}getRedirectUri(){return location.origin+location.pathname+"#/mag"}getClientId(){return this.getRedirectUri().indexOf("localhost")>=0?"matchboxdev":"matchbox"}getClientSecret(){return"cd8455fc-e294-465a-8c86-35ae468c6b2f"}getFhirClient(){return new f.default({baseUrl:this.getFhirMicroService()})}getMobileAccessGatewayClient(){return new f.default({baseUrl:this.getMobileAccessGatewayService()})}getAuthCodeFlowConfig(){return{loginUrl:this.getMobileAccessGatewayLoginUrl(),redirectUri:this.getRedirectUri(),tokenEndpoint:this.getMobileAccessGatewayTokenEndpoint(),clientId:this.getClientId(),responseType:"code",scope:"todo",dummyClientSecret:this.getClientSecret(),showDebugInformation:!0,timeoutFactor:.75}}}j.FhirConfigService=m,m.\u0275fac=function(d){return new(d||m)},m.\u0275prov=v.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})},6315:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.FhirPathService=void 0;const n=p(655),f=p(2729),v=(0,n.__importStar)(p(5e3));class m{evaluate(d,u){return(0,f.evaluate)(d,u,null)}evaluateToString(d,u){const h=this.evaluate(d,u);return h&&h instanceof Array&&1===h.length?h[0]:null}getOauthUriToken(d){return this.evaluateToString(d,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='token').valueUri")}getOauthUriAuthorize(d){return this.evaluateToString(d,"rest.security.extension.where(url='http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris').extension.where(url='authorize').valueUri")}}j.FhirPathService=m,m.\u0275fac=function(d){return new(d||m)},m.\u0275prov=v.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"})},5067:(ye,j,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(j,"__esModule",{value:!0}),j.HomeComponent=void 0;const f=p(655),o=(p(6165),p(4202),(0,f.__importDefault)(p(4147))),d=(0,f.__importStar)(p(5e3)),u=(0,f.__importStar)(p(6165)),h=(0,f.__importStar)(p(4202)),r=(0,f.__importStar)(p(9224)),s=(0,f.__importStar)(p(2181)),i=(0,f.__importStar)(p(5245));class c{constructor(g,y){this.router=y,this.version=o.default.version,this.client=g.getFhirClient()}ngOnInit(){return n(function*(){})()}}j.HomeComponent=c,c.\u0275fac=function(g){return new(g||c)(d.\u0275\u0275directiveInject(u.FhirConfigService),d.\u0275\u0275directiveInject(h.Router))},c.\u0275cmp=d.\u0275\u0275defineComponent({type:c,selectors:[["app-home"]],decls:22,vars:1,consts:[[1,"primary"],["mat-menu-item","","routerLink","/validate"],["mat-menu-item","","routerLink","/igs"],["mat-menu-item","","routerLink","/settings"],["href","https://www.ahdis.ch"]],template:function(g,y){1&g&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"button",1),d.\u0275\u0275elementStart(3,"mat-icon"),d.\u0275\u0275text(4,"Validate"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"span"),d.\u0275\u0275text(6,"Validate ..."),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(7,"button",2),d.\u0275\u0275elementStart(8,"mat-icon"),d.\u0275\u0275text(9,"info"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"span"),d.\u0275\u0275text(11,"IGs ..."),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"button",3),d.\u0275\u0275elementStart(13,"mat-icon"),d.\u0275\u0275text(14,"settings"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(15,"span"),d.\u0275\u0275text(16,"Settings"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(17,"mat-card-footer"),d.\u0275\u0275elementStart(18,"p"),d.\u0275\u0275text(19),d.\u0275\u0275elementStart(20,"a",4),d.\u0275\u0275text(21,"contact"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&g&&(d.\u0275\u0275advance(19),d.\u0275\u0275textInterpolate1("version: ",y.version," "))},directives:[r.MatCard,r.MatCardContent,s.MatMenuItem,h.RouterLink,i.MatIcon,r.MatCardFooter],styles:[".mat-card.primary[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mat-card.primary[_ngcontent-%COMP%] mat-card-header[_ngcontent-%COMP%] .mat-subheading-2[_ngcontent-%COMP%]{margin:1rem 0 0}.mat-card.primary[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] mat-tab-body>div{box-shadow:0 0 5px -3px #000 inset}.mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%]{padding:0 1.5rem 1.5rem}.mat-card.primary[_ngcontent-%COMP%] mat-card-footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-top:1rem;margin:0}"]})},7206:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.IgsComponent=void 0;const n=p(655),v=(p(6165),p(6346)),m=p(3075),o=(0,n.__importDefault)(p(1455)),u=(p(6315),(0,n.__importStar)(p(5e3))),h=(0,n.__importStar)(p(6165)),r=(0,n.__importStar)(p(6315)),s=(0,n.__importStar)(p(9224)),i=(0,n.__importStar)(p(6346)),c=(0,n.__importStar)(p(7850)),l=(0,n.__importStar)(p(7322)),g=(0,n.__importStar)(p(7531)),y=(0,n.__importStar)(p(3075)),E=(0,n.__importStar)(p(7423)),T=(0,n.__importStar)(p(9808)),D=(0,n.__importStar)(p(773)),O=(0,n.__importStar)(p(7259));function w(ie,ae){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",20),u.\u0275\u0275text(1,"Package Id"),u.\u0275\u0275elementEnd())}function A(ie,ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell",20),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const le=ae.$implicit,Oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(Oe.getPackageId(le))}}function S(ie,ae){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",21),u.\u0275\u0275text(1,"Version"),u.\u0275\u0275elementEnd())}function M(ie,ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell",21),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const le=ae.$implicit,Oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(Oe.getVersion(le))}}function I(ie,ae){1&ie&&(u.\u0275\u0275elementStart(0,"mat-header-cell",20),u.\u0275\u0275text(1,"Title"),u.\u0275\u0275elementEnd())}function b(ie,ae){if(1&ie&&(u.\u0275\u0275elementStart(0,"mat-cell"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ie){const le=ae.$implicit,Oe=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(Oe.getTitle(le))}}function L(ie,ae){1&ie&&u.\u0275\u0275element(0,"mat-header-row")}function F(ie,ae){if(1&ie){const le=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"mat-row",22),u.\u0275\u0275listener("click",function(){const Ye=u.\u0275\u0275restoreView(le).$implicit;return u.\u0275\u0275nextContext().selectRow(Ye)}),u.\u0275\u0275elementEnd()}}function ne(ie,ae){if(1&ie){const le=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275text(1,"\xa0 "),u.\u0275\u0275elementStart(2,"button",23),u.\u0275\u0275listener("click",function(){return u.\u0275\u0275restoreView(le),u.\u0275\u0275nextContext().onUpdate()}),u.\u0275\u0275text(3,"Update"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()}}function Y(ie,ae){if(1&ie){const le=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275text(1,"\xa0 "),u.\u0275\u0275elementStart(2,"button",23),u.\u0275\u0275listener("click",function(){return u.\u0275\u0275restoreView(le),u.\u0275\u0275nextContext().onDelete()}),u.\u0275\u0275text(3,"Delete"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementContainerEnd()}}function Q(ie,ae){1&ie&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275element(1,"mat-progress-spinner",24),u.\u0275\u0275elementContainerEnd())}function te(ie,ae){if(1&ie&&(u.\u0275\u0275elementContainerStart(0),u.\u0275\u0275element(1,"app-operation-outcome",25),u.\u0275\u0275elementContainerEnd()),2&ie){const le=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("operationOutcome",le.operationOutcome)("title",le.errMsg)}}const $=function(){return["packageId","version","title"]};class J{constructor(ae,le){this.data=ae,this.fhirPathService=le,this.length=100,this.pageSize=1e3,this.pageIndex=0,this.pageSizeOptions=[this.pageSize],this.dataSource=new v.MatTableDataSource,this.update=!1,this.query={_sort:"title"},this.client=ae.getFhirClient(),this.addPackageId=new m.FormControl("",[m.Validators.required,m.Validators.minLength(1)]),this.addVersion=new m.FormControl("current",[m.Validators.required,m.Validators.minLength(1)]),this.addUrl=new m.FormControl("url"),this.search()}search(){this.client.search({resourceType:"ImplementationGuide",searchParams:this.query}).then(ae=>{this.pageIndex=0,this.setBundle(ae),this.selection=void 0,this.addPackageId.setValue(""),this.addVersion.setValue(""),this.addUrl.setValue("")}).catch(ae=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=ae.response.data}),this.update=!1}getPackageId(ae){const le=ae.resource;return le.packageId?le.packageId:""}getTitle(ae){const le=ae.resource;return le.title?le.title:""}getVersion(ae){const le=ae.resource;return le.version?le.version:""}getPackageUrl(ae){return this.fhirPathService.evaluateToString(ae.resource,"extension.where(url='http://ahdis.ch/fhir/extension/packageUrl').valueUri")}setBundle(ae){this.bundle=ae,this.dataSource.data=this.bundle.entry,this.length=this.bundle.total,this.selection=void 0}ngOnInit(){}selectRow(ae){this.selection=ae.resource,this.addPackageId.setValue(this.selection.packageId),this.addUrl.setValue(this.getPackageUrl(ae));let le=this.selection.version;le&&le.endsWith(" (current)")&&(le=le.substring(0,le.length-10)),this.addVersion.setValue(le)}onSubmit(){if(J.log("onSubmit "+this.addPackageId.value),this.errMsg=null,this.addPackageId.invalid||this.addVersion.invalid)return void(this.errMsg="Please provide package name");let ae=this.addPackageId.value.trim();ae.indexOf("#")>0&&(ae.substring(0,ae.indexOf("#")-1),this.addVersion.setValue(ae.substring(0,ae.indexOf("#")+1))),this.addPackageId.setValue(ae);const le=this.addVersion.value.trim();this.addVersion.setValue(le),this.update=!0,this.client.create({resourceType:"ImplementationGuide",body:{resourceType:"ImplementationGuide",name:ae,version:le,packageId:ae,url:this.addUrl.value},options:{headers:{Prefer:"return=OperationOutcome"}}}).then(Oe=>{this.errMsg="Created Implementation Guide"+this.addPackageId.value,this.operationOutcome=Oe,this.search()}).catch(Oe=>{this.errMsg="Error creating Implementation Guide "+this.addPackageId.value,this.operationOutcome=Oe.response.data,this.update=!1})}goToPage(ae){ae.pageIndex>this.pageIndex?this.client.nextPage({bundle:this.bundle}).then(le=>{this.pageIndex=ae.pageIndex,this.setBundle(le),this.selection=void 0,console.log("next page called ")}):this.client.prevPage({bundle:this.bundle}).then(le=>{this.pageIndex=ae.pageIndex,this.setBundle(le),this.selection=void 0,console.log("previous page called ")})}onUpdate(){this.errMsg=null,this.selection.name=this.addPackageId.value,this.selection.version=this.addVersion.value,this.selection.packageId=this.addPackageId.value,this.selection.url=this.addUrl.value,this.update=!0,this.client.update({resourceType:this.selection.resourceType,id:this.selection.id,body:this.selection,options:{headers:{Prefer:"return=OperationOutcome"}}}).then(ae=>{this.errMsg="Updated Implementation Guide "+this.selection.packageId,this.operationOutcome=ae,this.search()}).catch(ae=>{this.errMsg="Error updating Implementation Guide "+this.selection.packageId,this.operationOutcome=ae.response.data,this.update=!1})}onDelete(){this.errMsg=null,this.update=!0,this.client.delete({resourceType:this.selection.resourceType,id:this.selection.id,options:{headers:{Prefer:"return=OperationOutcome","X-Cascade":"delete"}}}).then(ae=>{this.errMsg="Deleted Implementation Guide Resource "+this.selection.packageId,this.operationOutcome=ae,this.search()}).catch(ae=>{this.errMsg="Error deleting Implementation Guide "+this.selection.packageId,this.operationOutcome=ae.response.data,this.update=!1})}}j.IgsComponent=J,J.log=(0,o.default)("app:"),J.\u0275fac=function(ae){return new(ae||J)(u.\u0275\u0275directiveInject(h.FhirConfigService),u.\u0275\u0275directiveInject(r.FhirPathService))},J.\u0275cmp=u.\u0275\u0275defineComponent({type:J,selectors:[["app-igs"]],decls:45,vars:16,consts:[[1,"card-igs"],[3,"dataSource"],["table",""],["matColumnDef","packageId"],["class","packageId",4,"matHeaderCellDef"],["class","packageId",4,"matCellDef"],["matColumnDef","version"],["class","version",4,"matHeaderCellDef"],["class","version",4,"matCellDef"],["matColumnDef","title",1,"title"],[4,"matCellDef"],[4,"matHeaderRowDef"],[3,"click",4,"matRowDef","matRowDefColumns"],[3,"pageIndex","length","pageSize","pageSizeOptions","page"],[1,"Search"],["matInput","",3,"formControl"],[2,"width","50vw"],["href","https://packages.fhir.org"],["mat-raised-button","","color","primary","type","submit",3,"click"],[4,"ngIf"],[1,"packageId"],[1,"version"],[3,"click"],["mat-button","","type","submit",3,"click"],["mode","indeterminate"],[3,"operationOutcome","title"]],template:function(ae,le){1&ae&&(u.\u0275\u0275elementStart(0,"mat-card",0),u.\u0275\u0275elementStart(1,"mat-card-content"),u.\u0275\u0275elementStart(2,"mat-card-header"),u.\u0275\u0275elementStart(3,"mat-card-title"),u.\u0275\u0275text(4,"FHIR ImplementationGuides installed on server"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"mat-table",1,2),u.\u0275\u0275elementContainerStart(7,3),u.\u0275\u0275template(8,w,2,0,"mat-header-cell",4),u.\u0275\u0275template(9,A,2,1,"mat-cell",5),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(10,6),u.\u0275\u0275template(11,S,2,0,"mat-header-cell",7),u.\u0275\u0275template(12,M,2,1,"mat-cell",8),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(13,9),u.\u0275\u0275template(14,I,2,0,"mat-header-cell",4),u.\u0275\u0275template(15,b,2,1,"mat-cell",10),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(16,L,1,0,"mat-header-row",11),u.\u0275\u0275template(17,F,1,0,"mat-row",12),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(18,"mat-paginator",13),u.\u0275\u0275listener("page",function(Le){return le.goToPage(Le)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(19,"mat-card",14),u.\u0275\u0275elementStart(20,"mat-card-content"),u.\u0275\u0275elementStart(21,"mat-form-field"),u.\u0275\u0275elementStart(22,"mat-label"),u.\u0275\u0275text(23,"PackageId"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(24,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(25," \xa0 "),u.\u0275\u0275elementStart(26,"mat-form-field"),u.\u0275\u0275elementStart(27,"mat-label"),u.\u0275\u0275text(28,"Version"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(29,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(30," \xa0 "),u.\u0275\u0275elementStart(31,"mat-form-field",16),u.\u0275\u0275elementStart(32,"mat-label"),u.\u0275\u0275text(33,"Package url (optional, use only if not available through "),u.\u0275\u0275elementStart(34,"a",17),u.\u0275\u0275text(35,"packages.fhir.org"),u.\u0275\u0275elementEnd(),u.\u0275\u0275text(36,")"),u.\u0275\u0275elementEnd(),u.\u0275\u0275element(37,"input",15),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(38,"mat-card-actions"),u.\u0275\u0275elementStart(39,"button",18),u.\u0275\u0275listener("click",function(){return le.onSubmit()}),u.\u0275\u0275text(40," Upload "),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(41,ne,4,0,"ng-container",19),u.\u0275\u0275template(42,Y,4,0,"ng-container",19),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(43,Q,2,0,"ng-container",19),u.\u0275\u0275template(44,te,2,2,"ng-container",19)),2&ae&&(u.\u0275\u0275advance(5),u.\u0275\u0275property("dataSource",le.dataSource),u.\u0275\u0275advance(11),u.\u0275\u0275property("matHeaderRowDef",u.\u0275\u0275pureFunction0(14,$)),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",u.\u0275\u0275pureFunction0(15,$)),u.\u0275\u0275advance(1),u.\u0275\u0275property("pageIndex",le.pageIndex)("length",le.length)("pageSize",le.pageSize)("pageSizeOptions",le.pageSizeOptions),u.\u0275\u0275advance(6),u.\u0275\u0275property("formControl",le.addPackageId),u.\u0275\u0275advance(5),u.\u0275\u0275property("formControl",le.addVersion),u.\u0275\u0275advance(8),u.\u0275\u0275property("formControl",le.addUrl),u.\u0275\u0275advance(4),u.\u0275\u0275property("ngIf",le.selection),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",le.selection),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",le.update),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",le.errMsg))},directives:[s.MatCard,s.MatCardContent,s.MatCardHeader,s.MatCardTitle,i.MatTable,i.MatColumnDef,i.MatHeaderCellDef,i.MatCellDef,i.MatHeaderRowDef,i.MatRowDef,c.MatPaginator,l.MatFormField,l.MatLabel,g.MatInput,y.DefaultValueAccessor,y.NgControlStatus,y.FormControlDirective,s.MatCardActions,E.MatButton,T.NgIf,i.MatHeaderCell,i.MatCell,i.MatHeaderRow,i.MatRow,D.MatProgressSpinner,O.OperationOutcomeComponent],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.mat-form-field.url[_ngcontent-%COMP%]{width:200px}.mat-table[_ngcontent-%COMP%]{margin:1rem}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-table[_ngcontent-%COMP%] .mat-cell.title[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.title[_ngcontent-%COMP%]{flex:2;justify-content:flex-end}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:first-child{padding-left:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-child{padding-right:1rem}.card-igs[_ngcontent-%COMP%]{margin-bottom:10px}"]})},6218:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.MappingLanguageComponent=void 0;const n=p(655),m=(p(5e3),p(6165),p(3075)),o=p(3460),d=(0,n.__importDefault)(p(1455)),u=(0,n.__importStar)(p(5e3)),h=(0,n.__importStar)(p(6165)),r=(0,n.__importStar)(p(9224)),s=(0,n.__importStar)(p(7322)),i=(0,n.__importStar)(p(7531)),c=(0,n.__importStar)(p(3075)),l=(0,n.__importStar)(p(9808));function g(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&w){const S=A.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1(" ",S.diagnostics," ")}}function y(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"mat-error"),u.\u0275\u0275elementStart(1,"ul"),u.\u0275\u0275template(2,g,2,1,"li",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&w){const S=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",S.operationOutcome.issue)}}function E(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"mat-hint"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&w){const S=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1("Successfully created on server: ",S.structureMap.url,"")}}function T(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&w){const S=A.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate1(" ",S.diagnostics," ")}}function D(w,A){if(1&w&&(u.\u0275\u0275elementStart(0,"mat-error"),u.\u0275\u0275elementStart(1,"ul"),u.\u0275\u0275template(2,T,2,1,"li",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&w){const S=u.\u0275\u0275nextContext();u.\u0275\u0275advance(2),u.\u0275\u0275property("ngForOf",S.operationOutcomeTransformed.issue)}}class O{constructor(A,S){this.cd=A,this.data=S,this.client=S.getFhirClient(),this.source=new m.FormControl,this.map=new m.FormControl,this.structureMap=null,this.map.valueChanges.pipe((0,o.debounceTime)(1e3),(0,o.distinctUntilChanged)()).subscribe(M=>{O.log("create StructureMap"),this.client.create({resourceType:"StructureMap",body:M,headers:{accept:"application/fhir+json","content-type":"text/fhir-mapping"}}).then(I=>{this.operationOutcome=null,this.structureMap=I,this.transform()}).catch(I=>{this.structureMap=null,this.operationOutcome=I.response.data})}),this.source.valueChanges.pipe((0,o.debounceTime)(1e3),(0,o.distinctUntilChanged)()).subscribe(M=>this.transform())}transform(){O.log("transform Source");let A=JSON.parse(this.source.value);null!=this.structureMap&&this.client.operation({name:"transform?source="+encodeURIComponent(this.structureMap.url),resourceType:"StructureMap",input:A}).then(S=>{this.operationOutcomeTransformed=null,this.transformed=S}).catch(S=>{this.transformed=null,this.operationOutcomeTransformed=S.response.data})}ngOnInit(){}fileSource(A){const S=new FileReader;if(A.target.files&&A.target.files.length){const[M]=A.target.files;S.readAsText(M),S.onload=()=>{this.source.setValue(S.result),this.cd.markForCheck()}}}fileChange(A){const S=new FileReader;if(A.target.files&&A.target.files.length){const[M]=A.target.files;S.readAsText(M),S.onload=()=>{this.map.setValue(S.result),this.cd.markForCheck()}}}}j.MappingLanguageComponent=O,O.log=(0,d.default)("app:"),O.\u0275fac=function(A){return new(A||O)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(h.FhirConfigService))},O.\u0275cmp=u.\u0275\u0275defineComponent({type:O,selectors:[["app-mapping-language"]],decls:31,vars:8,consts:[[1,"card-maps"],[1,"fixtextarea"],["type","file","placeholder","Upload source","accept",".json",3,"change"],["matNativeControl","","rows","15","cols","400",3,"formControl"],["type","file","placeholder","Upload map","accept",".map",3,"change"],["matNativeControl","","rows","20","cols","400",3,"formControl"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(A,S){1&A&&(u.\u0275\u0275elementStart(0,"mat-card",0),u.\u0275\u0275elementStart(1,"mat-card-content"),u.\u0275\u0275elementStart(2,"mat-card-header"),u.\u0275\u0275elementStart(3,"mat-card-title"),u.\u0275\u0275text(4,"Source"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"mat-form-field",1),u.\u0275\u0275elementStart(6,"mat-card-actions"),u.\u0275\u0275elementStart(7,"input",2),u.\u0275\u0275listener("change",function(I){return S.fileSource(I)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(8,"textarea",3),u.\u0275\u0275text(9," "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(10,"mat-card",0),u.\u0275\u0275elementStart(11,"mat-card-content"),u.\u0275\u0275elementStart(12,"mat-card-header"),u.\u0275\u0275elementStart(13,"mat-card-title"),u.\u0275\u0275text(14,"FHIR Mapping Language map"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(15,"mat-form-field",1),u.\u0275\u0275elementStart(16,"mat-card-actions"),u.\u0275\u0275elementStart(17,"input",4),u.\u0275\u0275listener("change",function(I){return S.fileChange(I)}),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(18,"textarea",5),u.\u0275\u0275text(19," "),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(20,y,3,1,"mat-error",6),u.\u0275\u0275template(21,E,2,1,"mat-hint",6),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(22,"mat-card",0),u.\u0275\u0275elementStart(23,"mat-card-content"),u.\u0275\u0275elementStart(24,"mat-card-header"),u.\u0275\u0275elementStart(25,"mat-card-title"),u.\u0275\u0275text(26,"Transformed"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(27,D,3,1,"mat-error",6),u.\u0275\u0275elementStart(28,"pre"),u.\u0275\u0275text(29),u.\u0275\u0275pipe(30,"json"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&A&&(u.\u0275\u0275advance(8),u.\u0275\u0275property("formControl",S.source),u.\u0275\u0275advance(10),u.\u0275\u0275property("formControl",S.map),u.\u0275\u0275advance(2),u.\u0275\u0275property("ngIf",S.operationOutcome),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",S.structureMap),u.\u0275\u0275advance(6),u.\u0275\u0275property("ngIf",S.operationOutcomeTransformed),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(u.\u0275\u0275pipeBind1(30,6,S.transformed)))},directives:[r.MatCard,r.MatCardContent,r.MatCardHeader,r.MatCardTitle,s.MatFormField,r.MatCardActions,i.MatInput,c.DefaultValueAccessor,c.NgControlStatus,c.FormControlDirective,l.NgIf,s.MatError,l.NgForOf,s.MatHint],pipes:[l.JsonPipe],styles:[".fixtextarea[_ngcontent-%COMP%]{display:inline}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})},7259:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.OperationOutcomeComponent=void 0;const n=p(655),v=(p(5e3),(0,n.__importStar)(p(5682))),m=(0,n.__importStar)(p(5e3)),o=(0,n.__importStar)(p(9224)),d=(0,n.__importStar)(p(9808)),u=["editor"];function h(g,y){if(1&g&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1),m.\u0275\u0275elementContainerEnd()),2&g){const E=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",E.diagnostics," ")}}function r(g,y){if(1&g&&(m.\u0275\u0275elementStart(0,"li",5),m.\u0275\u0275text(1),m.\u0275\u0275elementEnd()),2&g){const E=y.$implicit;m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",E," ")}}function s(g,y){if(1&g&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275elementStart(1,"ol"),m.\u0275\u0275template(2,r,2,1,"li",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementContainerEnd()),2&g){const E=m.\u0275\u0275nextContext().$implicit,T=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(2),m.\u0275\u0275property("ngForOf",T.getSliceInfo(E))}}function i(g,y){if(1&g){const E=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"div",5),m.\u0275\u0275elementStart(1,"a",6),m.\u0275\u0275listener("click",function(){const O=m.\u0275\u0275restoreView(E).$implicit,w=m.\u0275\u0275nextContext(2);return w.scroll(w.getLineNo(O))}),m.\u0275\u0275text(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275text(3,":"),m.\u0275\u0275element(4,"br"),m.\u0275\u0275template(5,h,2,1,"ng-container",1),m.\u0275\u0275template(6,s,3,1,"ng-container",1),m.\u0275\u0275elementEnd()}if(2&g){const E=y.$implicit,T=m.\u0275\u0275nextContext(2);m.\u0275\u0275advance(1),m.\u0275\u0275classMap(E.severity),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate2("",T.getLineFromExtension(E),": ",T.getLocation(E),""),m.\u0275\u0275advance(3),m.\u0275\u0275property("ngIf",0==T.hasSliceInfo(E)),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",T.hasSliceInfo(E))}}function c(g,y){if(1&g&&(m.\u0275\u0275elementStart(0,"div"),m.\u0275\u0275template(1,i,7,7,"div",4),m.\u0275\u0275elementEnd()),2&g){const E=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275property("ngForOf",E.outcome.issue)}}class l{constructor(){this.mode="ace/mode/json"}ngOnInit(){}ngAfterViewInit(){var y;this.editor&&this.editor.nativeElement&&(v.config.set("fontSize","11px"),v.config.set("basePath","https://unpkg.com/ace-builds@1.4.12/src-noconflict"),this.aceEditor=v.edit(this.editor.nativeElement),this.aceEditor.setOption("useWorker",!1),this.aceEditor.setTheme("ace/theme/chrome"),(null===(y=this.mode)||void 0===y?void 0:y.indexOf("xml"))>=0?this.aceEditor.session.setMode("ace/mode/xml"):this.aceEditor.session.setMode("ace/mode/json"),this.aceEditor.session.setValue(this.content),this.aceEditor.setReadOnly(!0),this.aceEditor.on("change",()=>{console.log(this.aceEditor.getValue())}),this.updateAnnotations())}updateAnnotations(){var y,E;const T=[];if(this.outcome&&this.aceEditor){const D=this.aceEditor.session.getMarkers();if(D){const O=Object.keys(D);for(let w of O)this.aceEditor.session.removeMarker(D[w].id)}null===(y=this.outcome.issue)||void 0===y||y.forEach(O=>this.aceEditor.getSession().addMarker(new v.Range(this.getLineNo(O)-1,0,this.getLineNo(O)-1,1),this.getLineAceClass(O),"fullLine",!0)),null===(E=this.outcome.issue)||void 0===E||E.forEach(O=>T.push({row:this.getLineNo(O)-1,column:0,text:O.diagnostics,type:this.getErrorType(O)})),this.aceEditor.session.setAnnotations(T)}}getErrorType(y){switch(y.severity){case"fatal":case"error":return"error";case"warning":case"information":return"warning"}return""}set json(y){this.content=y,this.ngAfterViewInit()}set operationOutcome(y){var E,T;this.outcome=y,this.outcome&&(null===(E=this.outcome.issue)||void 0===E?void 0:E.length)>0&&(null===(T=this.outcome.issue)||void 0===T||T.sort((D,O)=>this.getLineNo(D)-this.getLineNo(O)),this.ngAfterViewInit())}getJson(){return this.content}getLineAceClass(y){return"ace-highlight-"+(null==y?void 0:y.severity)}getLineNo(y){var E;return(null===(E=y.extension)||void 0===E?void 0:E.length)>0?y.extension[0].valueInteger:0}hasSliceInfo(y){var E;return(null===(E=null==y?void 0:y.diagnostics)||void 0===E?void 0:E.indexOf("Slice info:"))>=0}getSliceInfo(y){var E;let T=null==y?void 0:y.diagnostics.substring((null===(E=null==y?void 0:y.diagnostics)||void 0===E?void 0:E.indexOf("Slice info: 1.)"))+15).trimLeft(),D=new RegExp("[\\d]+[\\.][\\)]");return T.split(D)}getLineFromExtension(y){var E;return(null===(E=y.extension)||void 0===E?void 0:E.length)>0?"L"+y.extension[0].valueInteger:""}getLocation(y){var E;return(null===(E=y.location)||void 0===E?void 0:E.length)>0?y.location[0]:""}scroll(y){(y-=1)<0&&(y=0),this.aceEditor.scrollToLine(y,!1,!0,null)}}j.OperationOutcomeComponent=l,l.\u0275fac=function(y){return new(y||l)},l.\u0275cmp=m.\u0275\u0275defineComponent({type:l,selectors:[["app-operation-outcome"]],viewQuery:function(y,E){if(1&y&&m.\u0275\u0275viewQuery(u,5),2&y){let T;m.\u0275\u0275queryRefresh(T=m.\u0275\u0275loadQuery())&&(E.editor=T.first)}},inputs:{mode:"mode",title:"title",json:"json",operationOutcome:"operationOutcome"},decls:8,vars:2,consts:[[1,"card-maps"],[4,"ngIf"],[1,"app-ace-editor",2,"width","100%","height","500px"],["editor",""],["class","issue",4,"ngFor","ngForOf"],[1,"issue"],[3,"click"]],template:function(y,E){1&y&&(m.\u0275\u0275elementStart(0,"mat-card",0),m.\u0275\u0275elementStart(1,"mat-card-content"),m.\u0275\u0275elementStart(2,"mat-card-header"),m.\u0275\u0275elementStart(3,"mat-card-title"),m.\u0275\u0275text(4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(5,c,2,1,"div",1),m.\u0275\u0275element(6,"div",2,3),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()),2&y&&(m.\u0275\u0275advance(4),m.\u0275\u0275textInterpolate(E.title),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",E.outcome))},directives:[o.MatCard,o.MatCardContent,o.MatCardHeader,o.MatCardTitle,d.NgIf,d.NgForOf],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.app-ace-editor[_ngcontent-%COMP%]{border:2px solid #f8f9fa;box-shadow:0 .5rem 1rem #00000026}.issue[_ngcontent-%COMP%]{border:2px solid #f8f9fa;padding:2px}.fatal[_ngcontent-%COMP%]{background:#cc3300}.error[_ngcontent-%COMP%]{background:#ff9966}.warning[_ngcontent-%COMP%]{background:#ffe69e}.information[_ngcontent-%COMP%]{background:#cde8a5} .ace-highlight-fatal{position:absolute;background:#cc3300;opacity:.4} .ace-highlight-error{position:absolute;background:#ff9966;opacity:.4} .ace-highlight-warning{position:absolute;background:#ffcc00;opacity:.4} .ace-highlight-information{position:absolute;background:#99cc33;opacity:.4}"]})},4586:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.SettingsComponent=void 0;const n=p(655),v=(p(6165),(0,n.__importDefault)(p(1455))),o=(p(4202),(0,n.__importStar)(p(5e3))),d=(0,n.__importStar)(p(6165)),u=(0,n.__importStar)(p(4202)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(3075)),s=(0,n.__importStar)(p(7322)),i=(0,n.__importStar)(p(4107)),c=(0,n.__importStar)(p(9808)),l=(0,n.__importStar)(p(508));function g(E,T){if(1&E&&(o.\u0275\u0275elementStart(0,"mat-option",2),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&E){const D=T.$implicit;o.\u0275\u0275property("value",D),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",D," ")}}class y{constructor(T,D){this.data=T,this.router=D,this.fhirServers=["https://test.ahdis.ch/matchboxv3/fhir","https://gazelle.ihe.net/matchbox/fhir","https://ehealthsuisse.ihe-europe.net/matchbox/fhir","https://hapi.fhir.org/baseR4","http://hapi.fhir.org/baseR4","http://tx.fhir.org/r4/","http://test.fhir.org/r4","https://test.ahdis.ch/mag-cara/fhir","https://test.ahdis.ch/mag-pmp/fhir","https://test.ahdis.ch/mag-bfh/fhir","https://test.ahdis.ch/mag-test-emedo/fhir","http://localhost:8080/matchboxv3/fhir","http://localhost:9090/mag-pmp/fhir","http://localhost:9090/mag-cara/fhir","https://fhir-mapping-lab.azurewebsites.net/"],this.client=T.getFhirClient()}ngOnInit(){this.baseUrlFhir=this.data.getFhirMicroService()}getFhirSelectedValue(){return this.baseUrlFhir}setFhirSelectedValue(T){(0,v.default)("setting new server to "+T),this.data.changeFhirMicroService(T)}}j.SettingsComponent=y,y.\u0275fac=function(T){return new(T||y)(o.\u0275\u0275directiveInject(d.FhirConfigService),o.\u0275\u0275directiveInject(u.Router))},y.\u0275cmp=o.\u0275\u0275defineComponent({type:y,selectors:[["app-settings"]],decls:7,vars:2,consts:[["placeholder","FHIR Server","name","selectserver",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(T,D){1&T&&(o.\u0275\u0275elementStart(0,"mat-card"),o.\u0275\u0275elementStart(1,"mat-card-content"),o.\u0275\u0275elementStart(2,"form"),o.\u0275\u0275elementStart(3,"mat-form-field"),o.\u0275\u0275elementStart(4,"mat-select",0),o.\u0275\u0275listener("ngModelChange",function(w){return D.setFhirSelectedValue(w)}),o.\u0275\u0275template(5,g,2,2,"mat-option",1),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(6,"br"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&T&&(o.\u0275\u0275advance(4),o.\u0275\u0275property("ngModel",D.getFhirSelectedValue()),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",D.fhirServers))},directives:[h.MatCard,h.MatCardContent,r.\u0275NgNoValidate,r.NgControlStatusGroup,r.NgForm,s.MatFormField,i.MatSelect,r.NgControlStatus,r.NgModel,c.NgForOf,l.MatOption],styles:[""]})},4466:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.SharedModule=void 0;const n=p(655),f=p(9808),v=p(3075),m=p(6360),o=p(2313),d=p(1079),u=p(7423),h=p(9224),r=p(7446),s=p(508),i=p(4703),c=p(4834),l=p(7322),g=p(5245),y=p(7531),E=p(2181),T=p(7850),D=p(9814),O=p(4107),w=p(2368),A=p(8029),S=p(6346),M=p(3251),I=p(4594),b=p(2466),L=p(773),F=(0,n.__importStar)(p(5e3)),ne=[f.CommonModule,o.BrowserModule,m.BrowserAnimationsModule,v.FormsModule,v.ReactiveFormsModule,b.TranslateModule,d.MatAutocompleteModule,u.MatButtonModule,h.MatCardModule,r.MatCheckboxModule,c.MatDividerModule,l.MatFormFieldModule,g.MatIconModule,y.MatInputModule,E.MatMenuModule,T.MatPaginatorModule,O.MatSelectModule,A.MatSliderModule,w.MatSlideToggleModule,S.MatTableModule,I.MatToolbarModule,M.MatTabsModule,i.MatDatepickerModule,s.MatNativeDateModule,D.MatRadioModule,L.MatProgressSpinnerModule];class Q{}j.SharedModule=Q,Q.\u0275fac=function($){return new($||Q)},Q.\u0275mod=F.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=F.\u0275\u0275defineInjector({imports:[ne,f.CommonModule,o.BrowserModule,m.BrowserAnimationsModule,v.FormsModule,v.ReactiveFormsModule,b.TranslateModule,d.MatAutocompleteModule,u.MatButtonModule,h.MatCardModule,r.MatCheckboxModule,c.MatDividerModule,l.MatFormFieldModule,g.MatIconModule,y.MatInputModule,E.MatMenuModule,T.MatPaginatorModule,O.MatSelectModule,A.MatSliderModule,w.MatSlideToggleModule,S.MatTableModule,I.MatToolbarModule,M.MatTabsModule,i.MatDatepickerModule,s.MatNativeDateModule,D.MatRadioModule,L.MatProgressSpinnerModule]})},719:(ye,j,p)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.TransformComponent=void 0;const n=p(655),m=(p(5e3),p(6165),p(3075)),o=p(3460),d=(0,n.__importStar)(p(5e3)),u=(0,n.__importStar)(p(6165)),h=(0,n.__importStar)(p(9224)),r=(0,n.__importStar)(p(68)),s=(0,n.__importStar)(p(2756)),i=(0,n.__importStar)(p(7322)),c=(0,n.__importStar)(p(4107)),l=(0,n.__importStar)(p(3075)),g=(0,n.__importStar)(p(9808)),y=(0,n.__importStar)(p(508));function E(w,A){if(1&w&&(d.\u0275\u0275elementStart(0,"mat-option",7),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&w){const S=A.$implicit;d.\u0275\u0275propertyInterpolate("value",S.url),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(S.name)}}function T(w,A){if(1&w&&(d.\u0275\u0275elementStart(0,"li"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&w){const S=A.$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate1(" ",S.diagnostics," ")}}function D(w,A){if(1&w&&(d.\u0275\u0275elementStart(0,"mat-error"),d.\u0275\u0275elementStart(1,"ul"),d.\u0275\u0275template(2,T,2,1,"li",8),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&w){const S=d.\u0275\u0275nextContext();d.\u0275\u0275advance(2),d.\u0275\u0275property("ngForOf",S.operationOutcomeTransformed.issue)}}class O{constructor(A,S){this.data=A,this.cd=S,this.query={_summary:"true",_sort:"name"},this.panelOpenState=!1,this.client=A.getFhirClient(),this.client.search({resourceType:"StructureMap",searchParams:this.query}).then(M=>(this.setMaps(M),M)),this.selectedMap=new m.FormControl,this.selectedMap.valueChanges.pipe((0,o.debounceTime)(400),(0,o.distinctUntilChanged)()).subscribe(M=>{this.selectedUrl=M,this.transform()})}transform(){null!=this.source&&null!=this.selectedUrl&&this.client.operation({name:"transform?source="+encodeURIComponent(this.selectedUrl),resourceType:"StructureMap",input:this.source,options:{headers:{"content-type":this.mimeType}}}).then(A=>{this.operationOutcomeTransformed=null,this.transformed=A}).catch(A=>{this.transformed=null,this.operationOutcomeTransformed=A.response.data})}getSource(){return this.source}getMapped(){return JSON.stringify(this.transformed,null,2)}setMaps(A){this.structureMaps=A.entry.map(S=>S.resource)}ngOnInit(){}addFile(A){this.transformed=null,("application/json"===A.contentType||A.name.endsWith(".json"))&&(this.mimeType="application/fhir+json"),("application/xml"===A.contentType||A.name.endsWith(".xml"))&&(this.mimeType="application/fhir+xml");const S=new FileReader;S.readAsText(A.blob),S.onload=()=>{this.source=S.result}}}j.TransformComponent=O,O.\u0275fac=function(A){return new(A||O)(d.\u0275\u0275directiveInject(u.FhirConfigService),d.\u0275\u0275directiveInject(d.ChangeDetectorRef))},O.\u0275cmp=d.\u0275\u0275defineComponent({type:O,selectors:[["app-transform"]],decls:24,vars:8,consts:[[1,"card-maps"],[3,"addFiles"],[3,"highlight","lineNumbers"],["appearance","fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],[4,"ngFor","ngForOf"]],template:function(A,S){1&A&&(d.\u0275\u0275elementStart(0,"mat-card",0),d.\u0275\u0275elementStart(1,"mat-card-content"),d.\u0275\u0275elementStart(2,"mat-card-header"),d.\u0275\u0275elementStart(3,"mat-card-title"),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"div"),d.\u0275\u0275text(6,"Resource"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(7,"app-upload",1),d.\u0275\u0275listener("addFiles",function(I){return S.addFile(I)}),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(8,"pre"),d.\u0275\u0275element(9,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(10,"mat-card",0),d.\u0275\u0275elementStart(11,"mat-form-field",3),d.\u0275\u0275elementStart(12,"mat-label"),d.\u0275\u0275text(13,"Map for transforming"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(14,"mat-select",4),d.\u0275\u0275template(15,E,2,2,"mat-option",5),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(16,"mat-card",0),d.\u0275\u0275elementStart(17,"mat-card-content"),d.\u0275\u0275elementStart(18,"mat-card-header"),d.\u0275\u0275elementStart(19,"mat-card-title"),d.\u0275\u0275text(20,"Transformed"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(21,D,3,1,"mat-error",6),d.\u0275\u0275elementStart(22,"pre"),d.\u0275\u0275element(23,"code",2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementEnd()),2&A&&(d.\u0275\u0275advance(4),d.\u0275\u0275textInterpolate(S.client.baseUrl),d.\u0275\u0275advance(5),d.\u0275\u0275property("highlight",S.getSource())("lineNumbers",!0),d.\u0275\u0275advance(5),d.\u0275\u0275property("formControl",S.selectedMap),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",S.structureMaps),d.\u0275\u0275advance(6),d.\u0275\u0275property("ngIf",S.operationOutcomeTransformed),d.\u0275\u0275advance(2),d.\u0275\u0275property("highlight",S.getMapped())("lineNumbers",!0))},directives:[h.MatCard,h.MatCardContent,h.MatCardHeader,h.MatCardTitle,r.UploadComponent,s.Highlight,i.MatFormField,i.MatLabel,c.MatSelect,l.NgControlStatus,l.FormControlDirective,g.NgForOf,g.NgIf,y.MatOption,i.MatError],styles:[".card-maps[_ngcontent-%COMP%]{margin-bottom:10px}"]})},68:(ye,j,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(j,"__esModule",{value:!0}),j.UploadComponent=void 0;const f=p(655),v=p(5e3),m=(0,f.__importStar)(p(5e3)),o=(0,f.__importStar)(p(5245)),d=(0,f.__importStar)(p(7423));class u{constructor(){this.addFiles=new v.EventEmitter,this.dragCounter=0}checkStatus(r){if(!r.ok)throw new Error(`HTTP ${r.status} - ${r.statusText}`);return r}onDrop(r){r.preventDefault(),this.dragCounter=0;const s=r.target.files||r.dataTransfer.items;if(s)for(let c=0;c0))},directives:[o.MatIcon,d.MatButton],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.attachment-field[_ngcontent-%COMP%]{border-radius:5px;background:#f0f3f6}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%]{border-bottom:1px solid #dedede;display:flex;align-items:center;height:40px}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .attachment-name[_ngcontent-%COMP%]{flex:1;padding:0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .attachment-size[_ngcontent-%COMP%]:last-child{margin-right:1rem}.attachment-field[_ngcontent-%COMP%] .attachment-entry[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;line-height:inherit}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%]{text-align:center;padding:2rem;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-top-right-radius:5px}.attachment-field[_ngcontent-%COMP%] .drop-zone.file-over[_ngcontent-%COMP%]{background:#e0e6ec}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{line-height:3rem}.attachment-field[_ngcontent-%COMP%] .drop-zone[_ngcontent-%COMP%] .bold-text[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0})},3026:(ye,j,p)=>{"use strict";var n=p(8926).default;Object.defineProperty(j,"__esModule",{value:!0}),j.ValidateComponent=void 0;const f=p(655),o=(p(5e3),p(6165),p(3075)),d=(0,f.__importDefault)(p(4956)),u=(0,f.__importDefault)(p(1654)),h=p(6346),r=(0,f.__importStar)(p(5e3)),s=(0,f.__importStar)(p(6165)),i=(0,f.__importStar)(p(9224)),c=(0,f.__importStar)(p(68)),l=(0,f.__importStar)(p(7322)),g=(0,f.__importStar)(p(4107)),y=(0,f.__importStar)(p(3075)),E=(0,f.__importStar)(p(9808)),T=(0,f.__importStar)(p(7423)),D=(0,f.__importStar)(p(6346)),O=(0,f.__importStar)(p(2181)),w=(0,f.__importStar)(p(5245)),A=(0,f.__importStar)(p(508)),S=(0,f.__importStar)(p(773)),M=(0,f.__importStar)(p(7259)),I=(0,f.__importStar)(p(7531));function b(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-option",26),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275property("value",Ee),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function L(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-option",26),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275property("value",Ee),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function F(Bt,Et){1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"mat-progress-spinner",27),r.\u0275\u0275elementContainerEnd())}function ne(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"app-operation-outcome",28),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("operationOutcome",Ee.operationOutcome)("title",Ee.errMsg)}}function Y(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",29),r.\u0275\u0275text(1,"Resource"),r.\u0275\u0275elementEnd())}function Q(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",29),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ee.name)}}function te(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",30),r.\u0275\u0275text(1,"Profile/IG"),r.\u0275\u0275elementEnd())}function $(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee," ")}}function J(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1(" ",Ee.ig," ")}}function ie(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",30),r.\u0275\u0275elementStart(1,"div"),r.\u0275\u0275template(2,$,2,1,"div",31),r.\u0275\u0275template(3,J,2,1,"div",7),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",Ee.profiles),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.ig)}}function ae(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Errors"),r.\u0275\u0275elementEnd())}function le(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getErrors():"-"," ")}}function Oe(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Warnings"),r.\u0275\u0275elementEnd())}function Le(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getWarnings():"-"," ")}}function Ye(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Info"),r.\u0275\u0275elementEnd())}function Je(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("",Ee.operationOutcome?Ee.getInfos():"-"," ")}}function gt(Bt,Et){1&Bt&&(r.\u0275\u0275elementStart(0,"mat-header-cell",32),r.\u0275\u0275text(1,"Remove"),r.\u0275\u0275elementEnd())}function Ue(Bt,Et){if(1&Bt){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-cell",32),r.\u0275\u0275elementStart(1,"button",33),r.\u0275\u0275listener("click",function(){const x=r.\u0275\u0275restoreView(Ee).$implicit;return r.\u0275\u0275nextContext().remove(x)}),r.\u0275\u0275elementStart(2,"mat-icon"),r.\u0275\u0275text(3,"remove"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()}}function tt(Bt,Et){1&Bt&&r.\u0275\u0275element(0,"mat-header-row")}function at(Bt,Et){if(1&Bt){const Ee=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-row",34),r.\u0275\u0275listener("click",function(){const x=r.\u0275\u0275restoreView(Ee).$implicit;return r.\u0275\u0275nextContext().selectRow(x)}),r.\u0275\u0275elementEnd()}}function ft(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementStart(0,"div",2),r.\u0275\u0275elementStart(1,"mat-form-field",36),r.\u0275\u0275elementStart(2,"mat-label"),r.\u0275\u0275text(3),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(4,"input",37),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementEnd()),2&Bt){const Ee=Et.$implicit;r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate(Ee.param.name),r.\u0275\u0275advance(1),r.\u0275\u0275property("formControl",Ee.formControl)}}function vt(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275template(1,ft,5,2,"div",35),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",Ee.validatorSettings)}}function yt(Bt,Et){if(1&Bt&&(r.\u0275\u0275elementContainerStart(0),r.\u0275\u0275element(1,"app-operation-outcome",38),r.\u0275\u0275elementContainerEnd()),2&Bt){const Ee=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("mode",Ee.selectedEntry.mimetype)("operationOutcome",Ee.operationOutcome)("json",Ee.json)("title",Ee.validationOutcomeTitle())}}const ot=function(){return["name","profile","error","warning","info","action"]};class _t{constructor(Et){this.param=Et,this.formControl=new o.FormControl}isValueSet(){return null!=this.valueBoolean||null!=this.valueString}}class At{constructor(Et,Ee,fe,H){this.name=Et,this.json=Ee,this.mimetype=fe,this.profiles=H}getErrors(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&("error"===fe.severity||"fatal"===fe.severity)).length}getWarnings(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&"warning"===fe.severity).length}getInfos(){var Et,Ee;if(this.operationOutcome)return null===(Ee=null===(Et=this.operationOutcome)||void 0===Et?void 0:Et.issue)||void 0===Ee?void 0:Ee.filter(fe=>"processing"===fe.code&&"information"===fe.severity).length}}class Tt{constructor(Et,Ee){this.data=Et,this.cd=Ee,this.selectedIg=null,this.validatorSettings=new Array,this.dataSource=new h.MatTableDataSource,this.showSettings=!1,this.client=Et.getFhirClient(),this.client.capabilityStatement().then(fe=>{this.capabilitystatement=fe,this.client.read({resourceType:"OperationDefinition",id:"-s-validate"}).then(H=>{var x;null===(x=H.parameter)||void 0===x||x.forEach(U=>{"profile"==U.name&&(this.profiles=U.targetProfile)}),H.parameter.filter(U=>"in"==U.use&&"resource"!=U.name&&"profile"!=U.name&&"ig"!=U.name).forEach(U=>{this.validatorSettings.push(new _t(U))})})}).catch(fe=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=fe.response.data}),this.client.search({resourceType:"ImplementationGuide",searchParams:{_sort:"title"}}).then(fe=>{this.igs=fe.entry.map(H=>H.resource.packageId+"#"+H.resource.version).sort()}).catch(fe=>{this.errMsg="Error accessing FHIR server",this.operationOutcome=fe.response.data}),this.validationInProgress=0}getSelectedProfile(){return this.selectedProfile}setSelectedProfile(Et){this.selectedProfile=Et}getSelectedIg(){return this.selectedIg}setSelectedIg(Et){this.selectedIg=Et}getProfiles(){return this.profiles}addFile(Et){this.validationInProgress+=1,("application/json"===Et.contentType||Et.name.endsWith(".json"))&&this.addJson(Et.blob),("application/xml"===Et.contentType||Et.name.endsWith(".xml"))&&this.addXml(Et.blob),Et.name.endsWith(".tgz")&&this.addPackage(Et.blob),this.validationInProgress-=1}addXml(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsText(Et),Ee.onload=()=>{this.cd.markForCheck();let H=new At(Et.name,Ee.result,"application/fhir+xml",null);this.selectRow(H),null!=this.selectedProfile&&(H.profiles=[this.selectedProfile]),this.validate(H)}}addJson(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsText(Et),Ee.onload=()=>{this.cd.markForCheck();let H=new At(Et.name,Ee.result,"application/fhir+json",null);this.selectRow(H),null!=this.selectedProfile&&(H.profiles=[this.selectedProfile]),this.validate(H)}}onValidateIg(){let Et="";null!=this.selectedIg&&(Et=this.selectedIg.endsWith(" (current)")?this.selectedIg.substring(0,this.selectedIg.length-10):this.selectedIg,Et=Et.replace("#","-"),this.fetchData(this.client.baseUrl+"/ImplementationGuide/"+Et))}fetchData(Et){var Ee=this;return n(function*(){const fe=yield fetch(Et,{cache:"no-store",headers:{Accept:"application/gzip"}}),x=(fe.headers.get("Content-Type"),yield fe.blob());Ee.addPackage(x)})()}addPackage(Et){this.selectedProfile=null,this.selectedIg=null;const Ee=new FileReader;Ee.readAsArrayBuffer(Et),Ee.onload=()=>{if(this.package=Ee.result,this.cd.markForCheck(),null!=this.package){const fe=d.default.inflate(new Uint8Array(this.package)),H=new Array;let x=null,U=null;const Z=this;(0,u.default)(fe.buffer).then(function(_e){H.forEach(Be=>{Be.ig=U,Be.fhirVersion=x,Z.validate(Be)})},function(_e){},function(_e){var Be,$e,st,ut;if((null===(Be=_e.name)||void 0===Be?void 0:Be.indexOf("package.json"))>=0){let St=new TextDecoder("utf-8"),Xt=JSON.parse(St.decode(_e.buffer));x=Xt.fhirVersions[0],U=Xt.name+"#"+Xt.version}if((null===($e=_e.name)||void 0===$e?void 0:$e.indexOf("example"))>=0&&-1==(null===(st=_e.name)||void 0===st?void 0:st.indexOf(".index.json"))){let St=_e.name;St.startsWith("package/example/")&&(St=St.substring("package/example/".length)),St.startsWith("example/")&&(St=St.substring("example/".length));let Xt=new TextDecoder("utf-8"),tn=JSON.parse(Xt.decode(_e.buffer)),Dt=null===(ut=tn.meta)||void 0===ut?void 0:ut.profile;for(let et=0;et0))return;fe="?profile="+encodeURIComponent(Et.profiles[0]),null!=Et.ig&&(fe+="&ig="+encodeURIComponent(Et.ig))}catch(H){}for(let H=0;H0&&(fe+="&"+this.validatorSettings[H].param.name+"="+encodeURIComponent(this.validatorSettings[H].formControl.value));this.validationInProgress+=1,this.client.operation({name:"validate"+fe,resourceType:void 0,input:Et.json,options:{headers:{accept:"application/fhir+json","content-type":Et.mimetype}}}).then(H=>{this.validationInProgress-=1,Et.operationOutcome=H,this.dataSource.data.push(Et),this.dataSource.data=this.dataSource.data,0==this.validationInProgress&&this.selectRow(Et)}).catch(H=>{this.validationInProgress-=1})}selectRow(Et){var Ee,fe;if(this.errMsg="",this.selectedEntry=Et,Et){if(this.operationOutcome=Et.operationOutcome,this.json=Et.json,this.resourceName="",this.resourceId="","application/fhir+json"===Et.mimetype)try{const H=JSON.parse(this.json);(null==H?void 0:H.resourceType)&&(this.resourceName=H.resourceType,this.resourceId=H.id),this.selectedProfile=null===(fe=null===(Ee=H.meta)||void 0===Ee?void 0:Ee.profile)||void 0===fe?void 0:fe[0],null==this.selectedProfile&&(null==H?void 0:H.resourceType)&&(this.selectedProfile="http://hl7.org/fhir/StructureDefinition/"+H.resourceType)}catch(H){this.errMsg=H.message}if("application/fhir+xml"===Et.mimetype){let H=this.json.indexOf("",x);if(x0&&(Z=Z.substring(0,_e)),_e=Z.indexOf(":"),_e>0&&(Z=Z.substring(_e+1)),this.resourceName=Z;let Be=this.json.indexOf("profile",U);if(Be>0){let $e=this.json.indexOf('value="',Be)+7,st=this.json.indexOf('"',$e);$e0),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.errMsg),r.\u0275\u0275advance(6),r.\u0275\u0275property("dataSource",Ee.dataSource),r.\u0275\u0275advance(20),r.\u0275\u0275property("matHeaderRowDef",r.\u0275\u0275pureFunction0(13,ot)),r.\u0275\u0275advance(1),r.\u0275\u0275property("matRowDefColumns",r.\u0275\u0275pureFunction0(14,ot)),r.\u0275\u0275advance(9),r.\u0275\u0275property("ngIf",Ee.showSettings),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ee.operationOutcome))},directives:[i.MatCard,i.MatCardContent,i.MatCardHeader,i.MatCardTitle,c.UploadComponent,l.MatFormField,g.MatSelect,y.NgControlStatus,y.NgModel,E.NgForOf,i.MatCardActions,T.MatButton,E.NgIf,D.MatTable,D.MatColumnDef,D.MatHeaderCellDef,D.MatCellDef,D.MatHeaderRowDef,D.MatRowDef,O.MatMenuItem,w.MatIcon,A.MatOption,S.MatProgressSpinner,M.OperationOutcomeComponent,D.MatHeaderCell,D.MatCell,D.MatHeaderRow,D.MatRow,l.MatLabel,I.MatInput,y.DefaultValueAccessor,y.FormControlDirective],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.mat-table[_ngcontent-%COMP%]{margin:1rem}.mat-table[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]{cursor:pointer}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}.mat-table[_ngcontent-%COMP%] .mat-cell.name[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.name[_ngcontent-%COMP%]{flex:2}.mat-table[_ngcontent-%COMP%] .mat-cell.profile[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.profile[_ngcontent-%COMP%]{flex:4}.mat-table[_ngcontent-%COMP%] .mat-cell.res[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell.res[_ngcontent-%COMP%]{flex:.5;justify-content:flex-end}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:first-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:first-child{padding-left:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%]:last-child, .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]:last-child{padding-right:1rem}.mat-table[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%] .cell-content[_ngcontent-%COMP%], .mat-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%] .cell-content[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.form-field-group[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;display:flex;flex-direction:row}.form-field-group[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.card-maps[_ngcontent-%COMP%]{margin-bottom:10px}.column50[_ngcontent-%COMP%]{width:40%}"]})},2340:(ye,j)=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0}),j.environment=void 0,j.environment={production:!0}},4431:(ye,j,p)=>{"use strict";const v=(0,p(655).__importStar)(p(2313)),m=p(5e3),o=p(6747);p(2340).environment.production&&(0,m.enableProdMode)(),v.platformBrowser().bootstrapModule(o.AppModule).catch(u=>console.log(u))},2466:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{TranslateModule:()=>Y,TranslateLoader:()=>i,TranslateFakeLoader:()=>c,USE_STORE:()=>I,USE_DEFAULT_LANG:()=>b,TranslateService:()=>L,MissingTranslationHandler:()=>l,FakeMissingTranslationHandler:()=>g,TranslateParser:()=>A,TranslateDefaultParser:()=>S,TranslateCompiler:()=>y,TranslateFakeCompiler:()=>E,TranslateDirective:()=>F,TranslatePipe:()=>ne,TranslateStore:()=>M});var n=p(5e3),f=p(1086),v=p(6787),m=p(6498),o=p(1961),d=p(2986),u=p(8117),h=p(4850),r=p(864),s=p(7545);class i{}let c=(()=>{class Q extends i{getTranslation($){return(0,f.of)({})}}return Q.\u0275fac=function(){let te;return function(J){return(te||(te=n.\u0275\u0275getInheritedFactory(Q)))(J||Q)}}(),Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();class l{}let g=(()=>{class Q{handle($){return $.key}}return Q.\u0275fac=function($){return new($||Q)},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();class y{}let E=(()=>{class Q extends y{compile($,J){return $}compileTranslations($,J){return $}}return Q.\u0275fac=function(){let te;return function(J){return(te||(te=n.\u0275\u0275getInheritedFactory(Q)))(J||Q)}}(),Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();function T(Q,te){if(Q===te)return!0;if(null===Q||null===te)return!1;if(Q!=Q&&te!=te)return!0;let ie,ae,le,$=typeof Q;if($==typeof te&&"object"==$){if(!Array.isArray(Q)){if(Array.isArray(te))return!1;for(ae in le=Object.create(null),Q){if(!T(Q[ae],te[ae]))return!1;le[ae]=!0}for(ae in te)if(!(ae in le)&&void 0!==te[ae])return!1;return!0}if(!Array.isArray(te))return!1;if((ie=Q.length)==te.length){for(ae=0;ae{O(te[J])?J in Q?$[J]=w(Q[J],te[J]):Object.assign($,{[J]:te[J]}):Object.assign($,{[J]:te[J]})}),$}class A{}let S=(()=>{class Q extends A{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate($,J){let ie;return ie="string"==typeof $?this.interpolateString($,J):"function"==typeof $?this.interpolateFunction($,J):$,ie}getValue($,J){let ie=J.split(".");J="";do{J+=ie.shift(),!D($)||!D($[J])||"object"!=typeof $[J]&&ie.length?ie.length?J+=".":$=void 0:($=$[J],J="")}while(ie.length);return $}interpolateFunction($,J){return $(J)}interpolateString($,J){return J?$.replace(this.templateMatcher,(ie,ae)=>{let le=this.getValue(J,ae);return D(le)?le:ie}):$}}return Q.\u0275fac=function(){let te;return function(J){return(te||(te=n.\u0275\u0275getInheritedFactory(Q)))(J||Q)}}(),Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})();class M{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new n.EventEmitter,this.onLangChange=new n.EventEmitter,this.onDefaultLangChange=new n.EventEmitter}}const I=new n.InjectionToken("USE_STORE"),b=new n.InjectionToken("USE_DEFAULT_LANG");let L=(()=>{class Q{constructor($,J,ie,ae,le,Oe=!0,Le=!1){this.store=$,this.currentLoader=J,this.compiler=ie,this.parser=ae,this.missingTranslationHandler=le,this.useDefaultLang=Oe,this.isolate=Le,this.pending=!1,this._onTranslationChange=new n.EventEmitter,this._onLangChange=new n.EventEmitter,this._onDefaultLangChange=new n.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang($){this.isolate?this._defaultLang=$:this.store.defaultLang=$}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang($){this.isolate?this._currentLang=$:this.store.currentLang=$}get langs(){return this.isolate?this._langs:this.store.langs}set langs($){this.isolate?this._langs=$:this.store.langs=$}get translations(){return this.isolate?this._translations:this.store.translations}set translations($){this.isolate?this._translations=$:this.store.translations=$}setDefaultLang($){if($===this.defaultLang)return;let J=this.retrieveTranslations($);void 0!==J?(this.defaultLang||(this.defaultLang=$),J.pipe((0,d.q)(1)).subscribe(ie=>{this.changeDefaultLang($)})):this.changeDefaultLang($)}getDefaultLang(){return this.defaultLang}use($){if($===this.currentLang)return(0,f.of)(this.translations[$]);let J=this.retrieveTranslations($);return void 0!==J?(this.currentLang||(this.currentLang=$),J.pipe((0,d.q)(1)).subscribe(ie=>{this.changeLang($)}),J):(this.changeLang($),(0,f.of)(this.translations[$]))}retrieveTranslations($){let J;return void 0===this.translations[$]&&(this._translationRequests[$]=this._translationRequests[$]||this.getTranslation($),J=this._translationRequests[$]),J}getTranslation($){this.pending=!0;const J=this.currentLoader.getTranslation($).pipe((0,u.B)());return this.loadingTranslations=J.pipe((0,d.q)(1),(0,h.U)(ie=>this.compiler.compileTranslations(ie,$)),(0,u.B)()),this.loadingTranslations.subscribe(ie=>{this.translations[$]=ie,this.updateLangs(),this.pending=!1},ie=>{this.pending=!1}),J}setTranslation($,J,ie=!1){J=this.compiler.compileTranslations(J,$),this.translations[$]=ie&&this.translations[$]?w(this.translations[$],J):J,this.updateLangs(),this.onTranslationChange.emit({lang:$,translations:this.translations[$]})}getLangs(){return this.langs}addLangs($){$.forEach(J=>{-1===this.langs.indexOf(J)&&this.langs.push(J)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult($,J,ie){let ae;if(J instanceof Array){let le={},Oe=!1;for(let Le of J)le[Le]=this.getParsedResult($,Le,ie),"function"==typeof le[Le].subscribe&&(Oe=!0);if(Oe){let Le;for(let Ye of J){let Je="function"==typeof le[Ye].subscribe?le[Ye]:(0,f.of)(le[Ye]);Le=void 0===Le?Je:(0,v.T)(Le,Je)}return Le.pipe((0,r.q)(),(0,h.U)(Ye=>{let Je={};return Ye.forEach((gt,Ue)=>{Je[J[Ue]]=gt}),Je}))}return le}if($&&(ae=this.parser.interpolate(this.parser.getValue($,J),ie)),void 0===ae&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ae=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],J),ie)),void 0===ae){let le={key:J,translateService:this};void 0!==ie&&(le.interpolateParams=ie),ae=this.missingTranslationHandler.handle(le)}return void 0!==ae?ae:J}get($,J){if(!D($)||!$.length)throw new Error('Parameter "key" required');if(this.pending)return m.y.create(ie=>{let ae=Oe=>{ie.next(Oe),ie.complete()},le=Oe=>{ie.error(Oe)};this.loadingTranslations.subscribe(Oe=>{"function"==typeof(Oe=this.getParsedResult(Oe,$,J)).subscribe?Oe.subscribe(ae,le):ae(Oe)},le)});{let ie=this.getParsedResult(this.translations[this.currentLang],$,J);return"function"==typeof ie.subscribe?ie:(0,f.of)(ie)}}stream($,J){if(!D($)||!$.length)throw new Error('Parameter "key" required');return(0,o.z)(this.get($,J),this.onLangChange.pipe((0,s.w)(ie=>{const ae=this.getParsedResult(ie.translations,$,J);return"function"==typeof ae.subscribe?ae:(0,f.of)(ae)})))}instant($,J){if(!D($)||!$.length)throw new Error('Parameter "key" required');let ie=this.getParsedResult(this.translations[this.currentLang],$,J);if(void 0!==ie.subscribe){if($ instanceof Array){let ae={};return $.forEach((le,Oe)=>{ae[$[Oe]]=$[Oe]}),ae}return $}return ie}set($,J,ie=this.currentLang){this.translations[ie][$]=this.compiler.compile(J,ie),this.updateLangs(),this.onTranslationChange.emit({lang:ie,translations:this.translations[ie]})}changeLang($){this.currentLang=$,this.onLangChange.emit({lang:$,translations:this.translations[$]}),this.defaultLang||this.changeDefaultLang($)}changeDefaultLang($){this.defaultLang=$,this.onDefaultLangChange.emit({lang:$,translations:this.translations[$]})}reloadLang($){return this.resetLang($),this.getTranslation($)}resetLang($){this._translationRequests[$]=void 0,this.translations[$]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let $=window.navigator.languages?window.navigator.languages[0]:null;return $=$||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==$.indexOf("-")&&($=$.split("-")[0]),-1!==$.indexOf("_")&&($=$.split("_")[0]),$}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let $=window.navigator.languages?window.navigator.languages[0]:null;return $=$||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,$}}return Q.\u0275fac=function($){return new($||Q)(n.\u0275\u0275inject(M),n.\u0275\u0275inject(i),n.\u0275\u0275inject(y),n.\u0275\u0275inject(A),n.\u0275\u0275inject(l),n.\u0275\u0275inject(b),n.\u0275\u0275inject(I))},Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})(),F=(()=>{class Q{constructor($,J,ie){this.translateService=$,this.element=J,this._ref=ie,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(ae=>{ae.lang===this.translateService.currentLang&&this.checkNodes(!0,ae.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(ae=>{this.checkNodes(!0,ae.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(ae=>{this.checkNodes(!0)}))}set translate($){$&&(this.key=$,this.checkNodes())}set translateParams($){T(this.currentParams,$)||(this.currentParams=$,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes($=!1,J){let ie=this.element.nativeElement.childNodes;ie.length||(this.setContent(this.element.nativeElement,this.key),ie=this.element.nativeElement.childNodes);for(let ae=0;ae{le!==$&&(J.lastKey=$),J.originalContent||(J.originalContent=this.getContent(J)),J.currentValue=D(le)?le:J.originalContent||$,this.setContent(J,this.key?J.currentValue:J.originalContent.replace($,J.currentValue)),this._ref.markForCheck()};if(D(ie)){let le=this.translateService.getParsedResult(ie,$,this.currentParams);"function"==typeof le.subscribe?le.subscribe(ae):ae(le)}else this.translateService.get($,this.currentParams).subscribe(ae)}}getContent($){return D($.textContent)?$.textContent:$.data}setContent($,J){D($.textContent)?$.textContent=J:$.data=J}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return Q.\u0275fac=function($){return new($||Q)(n.\u0275\u0275directiveInject(L),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},Q.\u0275dir=n.\u0275\u0275defineDirective({type:Q,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),Q})(),ne=(()=>{class Q{constructor($,J){this.translate=$,this._ref=J,this.value=""}updateValue($,J,ie){let ae=le=>{this.value=void 0!==le?le:$,this.lastKey=$,this._ref.markForCheck()};if(ie){let le=this.translate.getParsedResult(ie,$,J);"function"==typeof le.subscribe?le.subscribe(ae):ae(le)}this.translate.get($,J).subscribe(ae)}transform($,...J){if(!$||0===$.length)return $;if(T($,this.lastKey)&&T(J,this.lastParams))return this.value;let ie;if(D(J[0])&&J.length)if("string"==typeof J[0]&&J[0].length){let ae=J[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{ie=JSON.parse(ae)}catch(le){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${J[0]}`)}}else"object"==typeof J[0]&&!Array.isArray(J[0])&&(ie=J[0]);return this.lastKey=$,this.lastParams=J,this.updateValue($,ie),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ae=>{this.lastKey&&ae.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue($,ie,ae.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ae=>{this.lastKey&&(this.lastKey=null,this.updateValue($,ie,ae.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue($,ie))})),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 Q.\u0275fac=function($){return new($||Q)(n.\u0275\u0275directiveInject(L,16),n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},Q.\u0275pipe=n.\u0275\u0275definePipe({name:"translate",type:Q,pure:!1}),Q.\u0275prov=n.\u0275\u0275defineInjectable({token:Q,factory:Q.\u0275fac}),Q})(),Y=(()=>{class Q{static forRoot($={}){return{ngModule:Q,providers:[$.loader||{provide:i,useClass:c},$.compiler||{provide:y,useClass:E},$.parser||{provide:A,useClass:S},$.missingTranslationHandler||{provide:l,useClass:g},M,{provide:I,useValue:$.isolate},{provide:b,useValue:$.useDefaultLang},L]}}static forChild($={}){return{ngModule:Q,providers:[$.loader||{provide:i,useClass:c},$.compiler||{provide:y,useClass:E},$.parser||{provide:A,useClass:S},$.missingTranslationHandler||{provide:l,useClass:g},{provide:I,useValue:$.isolate},{provide:b,useValue:$.useDefaultLang},L]}}}return Q.\u0275fac=function($){return new($||Q)},Q.\u0275mod=n.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=n.\u0275\u0275defineInjector({}),Q})()},1744:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{TranslateHttpLoader:()=>n});class n{constructor(v,m="/assets/i18n/",o=".json"){this.http=v,this.prefix=m,this.suffix=o}getTranslation(v){return this.http.get(`${this.prefix}${v}${this.suffix}`)}}},5682:(ye,j,p)=>{ye=p.nmd(ye),function(){var f=function(){return this}();!f&&"undefined"!=typeof window&&(f=window);var v=function(r,s,i){"string"==typeof r?(2==arguments.length&&(i=s),v.modules[r]||(v.payloads[r]=i,v.modules[r]=null)):v.original?v.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};v.modules={},v.payloads={};var r,s,m=function(r,s,i){if("string"==typeof s){var c=u(r,s);if(null!=c)return i&&i(),c}else if("[object Array]"===Object.prototype.toString.call(s)){for(var l=[],g=0,y=s.length;g=0?parseFloat((d.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((d.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),f.isOldIE=f.isIE&&f.isIE<9,f.isGecko=f.isMozilla=d.match(/ Gecko\/\d+/),f.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),f.isWebKit=parseFloat(d.split("WebKit/")[1])||void 0,f.isChrome=parseFloat(d.split(" Chrome/")[1])||void 0,f.isEdge=parseFloat(d.split(" Edge/")[1])||void 0,f.isAIR=d.indexOf("AdobeAIR")>=0,f.isAndroid=d.indexOf("Android")>=0,f.isChromeOS=d.indexOf(" CrOS ")>=0,f.isIOS=/iPad|iPhone|iPod/.test(d)&&!window.MSStream,f.isIOS&&(f.isMac=!0),f.isMobile=f.isIOS||f.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("./useragent");f.buildDom=function i(c,l,g){if("string"==typeof c&&c){var y=document.createTextNode(c);return l&&l.appendChild(y),y}if(!Array.isArray(c))return c&&c.appendChild&&l&&l.appendChild(c),c;if("string"!=typeof c[0]||!c[0]){for(var E=[],T=0;T=1.5,m.isChromeOS&&(f.HI_DPI=!1),"undefined"!=typeof document){var s=document.createElement("div");f.HI_DPI&&void 0!==s.style.transform&&(f.HAS_CSS_TRANSFORMS=!0),!m.isEdge&&void 0!==s.style.animationName&&(f.HAS_CSS_ANIMATION=!0),s=null}f.translate=f.HAS_CSS_TRANSFORMS?function(i,c,l){i.style.transform="translate("+Math.round(c)+"px, "+Math.round(l)+"px)"}:function(i,c,l){i.style.top=Math.round(l)+"px",i.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,f,v){"use strict";f.inherits=function(m,o){m.super_=o,m.prototype=Object.create(o.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}})},f.mixin=function(m,o){for(var d in o)m[d]=o[d];return m},f.implement=function(m,o){f.mixin(m,o)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(n,f,v){"use strict";var m=n("./oop"),o=function(){var u,h,d={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(h in d.FUNCTION_KEYS)u=d.FUNCTION_KEYS[h].toLowerCase(),d[u]=parseInt(h,10);for(h in d.PRINTABLE_KEYS)u=d.PRINTABLE_KEYS[h].toLowerCase(),d[u]=parseInt(h,10);return m.mixin(d,d.MODIFIER_KEYS),m.mixin(d,d.PRINTABLE_KEYS),m.mixin(d,d.FUNCTION_KEYS),d.enter=d.return,d.escape=d.esc,d.del=d.delete,d[173]="-",function(){for(var r=["cmd","ctrl","alt","shift"],s=Math.pow(2,r.length);s--;)d.KEY_MODS[s]=r.filter(function(i){return s&d.KEY_MODS[i]}).join("-")+"-"}(),d.KEY_MODS[0]="",d.KEY_MODS[-1]="input-",d}();m.mixin(f,o),f.keyCodeToString=function(d){var u=o[d];return"string"!=typeof u&&(u=String.fromCharCode(d)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,f,v){"use strict";var h,m=n("./keys"),o=n("./useragent"),d=null,u=0;function s(){return null==h&&function(){h=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){h={passive:!1}}})}catch(D){}}(),h}function i(D,O,w){this.elem=D,this.type=O,this.callback=w}i.prototype.destroy=function(){l(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=f.addListener=function(D,O,w,A){D.addEventListener(O,w,s()),A&&A.$toDestroy.push(new i(D,O,w))},l=f.removeListener=function(D,O,w){D.removeEventListener(O,w,s())};f.stopEvent=function(D){return f.stopPropagation(D),f.preventDefault(D),!1},f.stopPropagation=function(D){D.stopPropagation&&D.stopPropagation()},f.preventDefault=function(D){D.preventDefault&&D.preventDefault()},f.getButton=function(D){return"dblclick"==D.type?0:"contextmenu"==D.type||o.isMac&&D.ctrlKey&&!D.altKey&&!D.shiftKey?2:D.button},f.capture=function(D,O,w){var A=D&&D.ownerDocument||document;function S(M){O&&O(M),w&&w(M),l(A,"mousemove",O),l(A,"mouseup",S),l(A,"dragstart",S)}return c(A,"mousemove",O),c(A,"mouseup",S),c(A,"dragstart",S),S},f.addMouseWheelListener=function(D,O,w){"onmousewheel"in D?c(D,"mousewheel",function(A){void 0!==A.wheelDeltaX?(A.wheelX=-A.wheelDeltaX/8,A.wheelY=-A.wheelDeltaY/8):(A.wheelX=0,A.wheelY=-A.wheelDelta/8),O(A)},w):"onwheel"in D?c(D,"wheel",function(A){switch(A.deltaMode){case A.DOM_DELTA_PIXEL:A.wheelX=.35*A.deltaX||0,A.wheelY=.35*A.deltaY||0;break;case A.DOM_DELTA_LINE:case A.DOM_DELTA_PAGE:A.wheelX=5*(A.deltaX||0),A.wheelY=5*(A.deltaY||0)}O(A)},w):c(D,"DOMMouseScroll",function(A){A.axis&&A.axis==A.HORIZONTAL_AXIS?(A.wheelX=5*(A.detail||0),A.wheelY=0):(A.wheelX=0,A.wheelY=5*(A.detail||0)),O(A)},w)},f.addMultiMouseDownListener=function(D,O,w,A,S){var I,b,L,M=0,F={2:"dblclick",3:"tripleclick",4:"quadclick"};function ne(Y){if(0!==f.getButton(Y)?M=0:Y.detail>1?++M>4&&(M=1):M=1,o.isIE){var Q=Math.abs(Y.clientX-I)>5||Math.abs(Y.clientY-b)>5;(!L||Q)&&(M=1),L&&clearTimeout(L),L=setTimeout(function(){L=null},O[M-1]||600),1==M&&(I=Y.clientX,b=Y.clientY)}if(Y._clicks=M,w[A]("mousedown",Y),M>4)M=0;else if(M>1)return w[A](F[M],Y)}Array.isArray(D)||(D=[D]),D.forEach(function(Y){c(Y,"mousedown",ne,S)})};var g=function(D){return 0|(D.ctrlKey?1:0)|(D.altKey?2:0)|(D.shiftKey?4:0)|(D.metaKey?8:0)};function y(D,O,w){var A=g(O);if(!o.isMac&&d){if(O.getModifierState&&(O.getModifierState("OS")||O.getModifierState("Win"))&&(A|=8),d.altGr){if(3==(3&A))return;d.altGr=0}if(18===w||17===w){var S="location"in O?O.location:O.keyLocation;17===w&&1===S?1==d[w]&&(u=O.timeStamp):18===w&&3===A&&2===S&&O.timeStamp-u<50&&(d.altGr=!0)}}if(w in m.MODIFIER_KEYS&&(w=-1),A||13!==w||3!==(S="location"in O?O.location:O.keyLocation)||(D(O,A,-w),!O.defaultPrevented)){if(o.isChromeOS&&8&A){if(D(O,A,w),O.defaultPrevented)return;A&=-9}return!!(A||w in m.FUNCTION_KEYS||w in m.PRINTABLE_KEYS)&&D(O,A,w)}}function E(){d=Object.create(null)}if(f.getModifierString=function(D){return m.KEY_MODS[g(D)]},f.addCommandKeyListener=function(D,O,w){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var A=null;c(D,"keydown",function(M){A=M.keyCode},w),c(D,"keypress",function(M){return y(O,M,A)},w)}else{var S=null;c(D,"keydown",function(M){d[M.keyCode]=(d[M.keyCode]||0)+1;var I=y(O,M,M.keyCode);return S=M.defaultPrevented,I},w),c(D,"keypress",function(M){S&&(M.ctrlKey||M.altKey||M.shiftKey||M.metaKey)&&(f.stopEvent(M),S=null)},w),c(D,"keyup",function(M){d[M.keyCode]=null},w),d||(E(),c(window,"focus",E))}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var T=1;f.nextTick=function(D,O){O=O||window;var w="zero-timeout-message-"+T++,A=function(S){S.data==w&&(f.stopPropagation(S),l(O,"message",A),D())};c(O,"message",A),O.postMessage(w,"*")}}f.$idleBlocked=!1,f.onIdle=function(D,O){return setTimeout(function w(){f.$idleBlocked?setTimeout(w,100):D()},O)},f.$idleBlockId=null,f.blockIdle=function(D){f.$idleBlockId&&clearTimeout(f.$idleBlockId),f.$idleBlocked=!0,f.$idleBlockId=setTimeout(function(){f.$idleBlocked=!1},D||100)},f.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),f.nextFrame=f.nextFrame?f.nextFrame.bind(window):function(D){setTimeout(D,17)}}),ace.define("ace/range",["require","exports","module"],function(n,f,v){"use strict";var o=function(d,u,h,r){this.start={row:d,column:u},this.end={row:h,column:r}};(function(){this.isEqual=function(d){return this.start.row===d.start.row&&this.end.row===d.end.row&&this.start.column===d.start.column&&this.end.column===d.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(d,u){return 0==this.compare(d,u)},this.compareRange=function(d){var u,h=d.end,r=d.start;return 1==(u=this.compare(h.row,h.column))?1==(u=this.compare(r.row,r.column))?2:0==u?1:0:-1==u?-2:-1==(u=this.compare(r.row,r.column))?-1:1==u?42:0},this.comparePoint=function(d){return this.compare(d.row,d.column)},this.containsRange=function(d){return 0==this.comparePoint(d.start)&&0==this.comparePoint(d.end)},this.intersects=function(d){var u=this.compareRange(d);return-1==u||0==u||1==u},this.isEnd=function(d,u){return this.end.row==d&&this.end.column==u},this.isStart=function(d,u){return this.start.row==d&&this.start.column==u},this.setStart=function(d,u){"object"==typeof d?(this.start.column=d.column,this.start.row=d.row):(this.start.row=d,this.start.column=u)},this.setEnd=function(d,u){"object"==typeof d?(this.end.column=d.column,this.end.row=d.row):(this.end.row=d,this.end.column=u)},this.inside=function(d,u){return 0==this.compare(d,u)&&!(this.isEnd(d,u)||this.isStart(d,u))},this.insideStart=function(d,u){return 0==this.compare(d,u)&&!this.isEnd(d,u)},this.insideEnd=function(d,u){return 0==this.compare(d,u)&&!this.isStart(d,u)},this.compare=function(d,u){return this.isMultiLine()||d!==this.start.row?dthis.end.row?1:this.start.row===d?u>=this.start.column?0:-1:this.end.row===d?u<=this.end.column?0:1:0:uthis.end.column?1:0},this.compareStart=function(d,u){return this.start.row==d&&this.start.column==u?-1:this.compare(d,u)},this.compareEnd=function(d,u){return this.end.row==d&&this.end.column==u?1:this.compare(d,u)},this.compareInside=function(d,u){return this.end.row==d&&this.end.column==u?1:this.start.row==d&&this.start.column==u?-1:this.compare(d,u)},this.clipRows=function(d,u){if(this.end.row>u)var h={row:u+1,column:0};else this.end.rowu)var r={row:u+1,column:0};else this.start.row0;)1&u&&(h+=d),(u>>=1)&&(d+=d);return h};var m=/^\s\s*/,o=/\s\s*$/;f.stringTrimLeft=function(d){return d.replace(m,"")},f.stringTrimRight=function(d){return d.replace(o,"")},f.copyObject=function(d){var u={};for(var h in d)u[h]=d[h];return u},f.copyArray=function(d){for(var u=[],h=0,r=d.length;hDate.now()-50)||(m=!1)},cancel:function(){m=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,f,v){"use strict";var m=n("../lib/event"),o=n("../lib/useragent"),d=n("../lib/dom"),u=n("../lib/lang"),h=n("../clipboard"),r=o.isChrome<18,s=o.isIE,i=o.isChrome>63,c=400,l=n("../lib/keys"),g=l.KEY_MODS,y=o.isIOS,E=y?/\s/:/\n/,T=o.isMobile;f.TextInput=function(O,w){var A=d.createElement("textarea");A.className="ace_text-input",A.setAttribute("wrap","off"),A.setAttribute("autocorrect","off"),A.setAttribute("autocapitalize","off"),A.setAttribute("spellcheck",!1),A.style.opacity="0",O.insertBefore(A,O.firstChild);var S=!1,M=!1,I=!1,b=!1,L="";T||(A.style.fontSize="1px");var F=!1,ne=!1,Y="",Q=0,te=0,$=0;try{var J=document.activeElement===A}catch(H){}m.addListener(A,"blur",function(H){ne||(w.onBlur(H),J=!1)},w),m.addListener(A,"focus",function(H){if(!ne){if(J=!0,o.isEdge)try{if(!document.hasFocus())return}catch(x){}w.onFocus(H),o.isEdge?setTimeout(ie):ie()}},w),this.$focusScroll=!1,this.focus=function(){if(L||i||"browser"==this.$focusScroll)return A.focus({preventScroll:!0});var H=A.style.top;A.style.position="fixed",A.style.top="0px";try{var x=0!=A.getBoundingClientRect().top}catch(_e){return}var U=[];if(x)for(var Z=A.parentElement;Z&&1==Z.nodeType;)U.push(Z),Z.setAttribute("ace_nocontext",!0),Z=!Z.parentElement&&Z.getRootNode?Z.getRootNode().host:Z.parentElement;A.focus({preventScroll:!0}),x&&U.forEach(function(_e){_e.removeAttribute("ace_nocontext")}),setTimeout(function(){A.style.position="","0px"==A.style.top&&(A.style.top=H)},0)},this.blur=function(){A.blur()},this.isFocused=function(){return J},w.on("beforeEndOperation",function(){var H=w.curOp,x=H&&H.command&&H.command.name;"insertstring"!=x&&(I&&x&&(H.docChanged||H.selectionChanged)&&(Y=A.value="",ot()),ie())});var ie=y?function(H){if(J&&(!S||H)&&!b){H||(H="");var x="\n ab"+H+"cde fg\n";x!=A.value&&(A.value=Y=x);var Z=4+(H.length||(w.selection.isEmpty()?0:1));(4!=Q||te!=Z)&&A.setSelectionRange(4,Z),Q=4,te=Z}}:function(){if(!I&&!b&&(J||Le)){I=!0;var H=0,x=0,U="";if(w.session){var Z=w.selection,_e=Z.getRange(),Be=Z.cursor.row;if(H=_e.start.column,x=_e.end.column,U=w.session.getLine(Be),_e.start.row!=Be){var $e=w.session.getLine(Be-1);H=_e.start.rowBe+1?st.length:x,x+=U.length+1,U=U+"\n"+st}else T&&Be>0&&(U="\n"+U,x+=1,H+=1);U.length>c&&(H0&&Y[St]==H[St];)St++,_e--;for($e=$e.slice(St),St=1;Be>0&&Y.length-St>Q-1&&Y[Y.length-St]==H[H.length-St];)St++,Be--;st-=St-1,ut-=St-1;var Xt=$e.length-St+1;if(Xt<0&&(_e=-Xt,Xt=0),$e=$e.slice(0,Xt),!(x||$e||st||_e||Be||ut))return"";b=!0;var tn=!1;return o.isAndroid&&". "==$e&&($e=" ",tn=!0),$e&&!_e&&!Be&&!st&&!ut||F?w.onTextInput($e):w.onTextInput($e,{extendLeft:_e,extendRight:Be,restoreStart:st,restoreEnd:ut}),b=!1,Y=H,Q=U,te=Z,$=ut,tn?"\n":$e},Je=function(H){if(I)return yt();if(H&&H.inputType){if("historyUndo"==H.inputType)return w.execCommand("undo");if("historyRedo"==H.inputType)return w.execCommand("redo")}var x=A.value,U=Ye(x,!0);(x.length>500||E.test(U)||T&&Q<1&&Q==te)&&ie()},gt=function(H,x,U){var Z=H.clipboardData||window.clipboardData;if(Z&&!r){var _e=s||U?"Text":"text/plain";try{return x?!1!==Z.setData(_e,x):Z.getData(_e)}catch(Be){if(!U)return gt(Be,x,!0)}}},Ue=function(H,x){var U=w.getCopyText();if(!U)return m.preventDefault(H);gt(H,U)?(y&&(ie(U),S=U,setTimeout(function(){S=!1},10)),x?w.onCut():w.onCopy(),m.preventDefault(H)):(S=!0,A.value=U,A.select(),setTimeout(function(){S=!1,ie(),x?w.onCut():w.onCopy()}))},tt=function(H){Ue(H,!0)},at=function(H){Ue(H,!1)},ft=function(H){var x=gt(H);h.pasteCancelled()||("string"==typeof x?(x&&w.onPaste(x,H),o.isIE&&setTimeout(ie),m.preventDefault(H)):(A.value="",M=!0))};m.addCommandKeyListener(A,w.onCommandKey.bind(w),w),m.addListener(A,"select",function(H){I||(S?S=!1:function(H){return 0===H.selectionStart&&H.selectionEnd>=Y.length&&H.value===Y&&Y&&H.selectionEnd!==te}(A)?(w.selectAll(),ie()):T&&A.selectionStart!=Q&&ie())},w),m.addListener(A,"input",Je,w),m.addListener(A,"cut",tt,w),m.addListener(A,"copy",at,w),m.addListener(A,"paste",ft,w),(!("oncut"in A)||!("oncopy"in A)||!("onpaste"in A))&&m.addListener(O,"keydown",function(H){if((!o.isMac||H.metaKey)&&H.ctrlKey)switch(H.keyCode){case 67:at(H);break;case 86:ft(H);break;case 88:tt(H)}},w);var yt=function(){if(I&&w.onCompositionUpdate&&!w.$readOnly){if(F)return _t();I.useTextareaForIME?w.onCompositionUpdate(A.value):(Ye(A.value),I.markerRange&&(I.context&&(I.markerRange.start.column=I.selectionStart=I.context.compositionStartOffset),I.markerRange.end.column=I.markerRange.start.column+te-I.selectionStart+$))}},ot=function(H){!w.onCompositionEnd||w.$readOnly||(I=!1,w.onCompositionEnd(),w.off("mousedown",_t),H&&Je())};function _t(){ne=!0,A.blur(),A.focus(),ne=!1}var Bt,At=u.delayedCall(yt,50).schedule.bind(null,null);function Et(){clearTimeout(Bt),Bt=setTimeout(function(){L&&(A.style.cssText=L,L=""),w.renderer.$isMousePressed=!1,w.renderer.$keepTextAreaAtCursor&&w.renderer.$moveTextAreaToCursor()},0)}m.addListener(A,"compositionstart",function(H){if(!I&&w.onCompositionStart&&!w.$readOnly&&(I={},!F)){H.data&&(I.useTextareaForIME=!1),setTimeout(yt,0),w._signal("compositionStart"),w.on("mousedown",_t);var x=w.getSelectionRange();x.end.row=x.start.row,x.end.column=x.start.column,I.markerRange=x,I.selectionStart=Q,w.onCompositionStart(I),I.useTextareaForIME?(Y=A.value="",Q=0,te=0):(A.msGetInputContext&&(I.context=A.msGetInputContext()),A.getInputContext&&(I.context=A.getInputContext()))}},w),m.addListener(A,"compositionupdate",yt,w),m.addListener(A,"keyup",function(H){27==H.keyCode&&A.value.lengthte&&"\n"==Y[ut]?St=l.end:stte&&Y.slice(0,ut).split("\n").length>2?St=l.down:ut>te&&" "==Y[ut-1]?(St=l.right,Xt=g.option):(ut>te||ut==te&&te!=Q&&st==ut)&&(St=l.right),st!==ut&&(Xt|=g.shift),St){if(!x.onCommandKey({},Xt,St)&&x.commands){St=l.keyCodeToString(St);var Dt=x.commands.findKeyCommand(Xt,St);Dt&&x.execCommand(Dt)}Q=st,te=ut,ie("")}}};document.addEventListener("selectionchange",Be),x.on("destroy",function(){document.removeEventListener("selectionchange",Be)})}(0,w,A)},f.$setUserAgentForTests=function(O,w){T=O,y=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("../lib/useragent");function u(s){s.$clickSelection=null;var i=s.editor;i.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),i.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),i.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),i.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),i.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(l){s[l]=this[l]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}function r(s,i){if(s.start.row==s.end.row)var c=2*i.column-s.start.column-s.end.column;else if(s.start.row!=s.end.row-1||s.start.column||s.end.column)c=2*i.row-s.start.row-s.end.row;else c=i.column-4;return c<0?{cursor:s.start,anchor:s.end}:{cursor:s.end,anchor:s.start}}(function(){this.onMouseDown=function(s){var i=s.inSelection(),c=s.getDocumentPosition();this.mousedownEvent=s;var l=this.editor,g=s.getButton();return 0!==g?((l.getSelectionRange().isEmpty()||1==g)&&l.selection.moveToPosition(c),void(2==g&&(l.textInput.onContextMenu(s.domEvent),m.isMozilla||s.preventDefault()))):(this.mousedownEvent.time=Date.now(),!i||l.isFocused()||(l.focus(),!this.$focusTimeout||this.$clickSelection||l.inMultiSelectMode)?(this.captureMouse(s),this.startSelect(c,s.domEvent._clicks>1),s.preventDefault()):(this.setState("focusWait"),void this.captureMouse(s)))},this.startSelect=function(s,i){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var c=this.editor;!this.mousedownEvent||(this.mousedownEvent.getShiftKey()?c.selection.selectToPosition(s):i||c.selection.moveToPosition(s),i||this.select(),c.renderer.scroller.setCapture&&c.renderer.scroller.setCapture(),c.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var s,i=this.editor,c=i.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var l=this.$clickSelection.comparePoint(c);if(-1==l)s=this.$clickSelection.end;else if(1==l)s=this.$clickSelection.start;else{var g=r(this.$clickSelection,c);c=g.cursor,s=g.anchor}i.selection.setSelectionAnchor(s.row,s.column)}i.selection.selectToPosition(c),i.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(s){var i,c=this.editor,l=c.renderer.screenToTextCoordinates(this.x,this.y),g=c.selection[s](l.row,l.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(g.start),E=this.$clickSelection.comparePoint(g.end);if(-1==y&&E<=0)i=this.$clickSelection.end,(g.end.row!=l.row||g.end.column!=l.column)&&(l=g.start);else if(1==E&&y>=0)i=this.$clickSelection.start,(g.start.row!=l.row||g.start.column!=l.column)&&(l=g.end);else if(-1==y&&1==E)l=g.end,i=g.start;else{var T=r(this.$clickSelection,l);l=T.cursor,i=T.anchor}c.selection.setSelectionAnchor(i.row,i.column)}c.selection.selectToPosition(l),c.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var s=function(s,i,c,l){return Math.sqrt(Math.pow(c-s,2)+Math.pow(l-i,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),i=Date.now();(s>0||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(s){var i=s.getDocumentPosition(),c=this.editor,g=c.session.getBracketRange(i);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=c.selection.getWordRange(i.row,i.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},this.onTripleClick=function(s){var i=s.getDocumentPosition(),c=this.editor;this.setState("selectByLines");var l=c.getSelectionRange();l.isMultiLine()&&l.contains(i.row,i.column)?(this.$clickSelection=c.selection.getLineRange(l.start.row),this.$clickSelection.end=c.selection.getLineRange(l.end.row).end):this.$clickSelection=c.selection.getLineRange(i.row),this.select()},this.onQuadClick=function(s){var i=this.editor;i.selectAll(),this.$clickSelection=i.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var i=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var c=this.$lastScroll,l=s.domEvent.timeStamp,g=l-c.t,y=g?s.wheelX/g:c.vx,E=g?s.wheelY/g:c.vy;g<550&&(y=(y+c.vx)/2,E=(E+c.vy)/2);var T=Math.abs(y/E),D=!1;if(T>=1&&i.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(D=!0),T<=1&&i.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(D=!0),D?c.allowed=l:l-c.allowed<550&&(Math.abs(y)<=1.5*Math.abs(c.vx)&&Math.abs(E)<=1.5*Math.abs(c.vy)?(D=!0,c.allowed=l):c.allowed=0),c.t=l,c.vx=y,c.vy=E,D)return i.renderer.scrollBy(s.wheelX*s.speed,s.wheelY*s.speed),s.stop()}}}).call(u.prototype),f.DefaultHandlers=u}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(n,f,v){"use strict";n("./lib/oop");var o=n("./lib/dom");function d(u){this.isOpen=!1,this.$element=null,this.$parentNode=u}(function(){this.$init=function(){return this.$element=o.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(u){this.getElement().textContent=u},this.setHtml=function(u){this.getElement().innerHTML=u},this.setPosition=function(u,h){this.getElement().style.left=u+"px",this.getElement().style.top=h+"px"},this.setClassName=function(u){o.addCssClass(this.getElement(),u)},this.show=function(u,h,r){null!=u&&this.setText(u),null!=h&&null!=r&&this.setPosition(h,r),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(d.prototype),f.Tooltip=d}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(n,f,v){"use strict";var m=n("../lib/dom"),o=n("../lib/oop"),d=n("../lib/event"),u=n("../tooltip").Tooltip;function r(s){u.call(this,s)}o.inherits(r,u),function(){this.setPosition=function(s,i){var c=window.innerWidth||document.documentElement.clientWidth,l=window.innerHeight||document.documentElement.clientHeight,g=this.getWidth(),y=this.getHeight();(s+=15)+g>c&&(s-=s+g-c),(i+=15)+y>l&&(i-=20+y),u.prototype.setPosition.call(this,s,i)}}.call(r.prototype),f.GutterHandler=function(s){var g,y,E,i=s.editor,c=i.renderer.$gutterLayer,l=new r(i.container);function D(){g&&(g=clearTimeout(g)),E&&(l.hide(),E=null,i._signal("hideGutterTooltip",l),i.off("mousewheel",D))}function O(w){l.setPosition(w.x,w.y)}s.editor.setDefaultHandler("guttermousedown",function(w){if(i.isFocused()&&0==w.getButton()&&"foldWidgets"!=c.getRegion(w)){var S=w.getDocumentPosition().row,M=i.session.selection;if(w.getShiftKey())M.selectTo(S,0);else{if(2==w.domEvent.detail)return i.selectAll(),w.preventDefault();s.$clickSelection=i.selection.getLineRange(S)}return s.setState("selectByLines"),s.captureMouse(w),w.preventDefault()}}),s.editor.setDefaultHandler("guttermousemove",function(w){if(m.hasCssClass(w.domEvent.target||w.domEvent.srcElement,"ace_fold-widget"))return D();E&&s.$tooltipFollowsMouse&&O(w),y=w,!g&&(g=setTimeout(function(){g=null,y&&!s.isMousePressed?function(){var w=y.getDocumentPosition().row,A=c.$annotations[w];if(!A)return D();if(w==i.session.getLength()){var M=i.renderer.pixelToScreenCoordinates(0,y.y).row,I=y.$pos;if(M>i.session.documentToScreenRow(I.row,I.column))return D()}if(E!=A)if(E=A.text.join("
"),l.setHtml(E),l.show(),i._signal("showGutterTooltip",l),i.on("mousewheel",D),s.$tooltipFollowsMouse)O(y);else{var L=y.domEvent.target.getBoundingClientRect(),F=l.getElement().style;F.left=L.right+"px",F.top=L.bottom+"px"}}():D()},50))}),d.addListener(i.renderer.$gutter,"mouseout",function(w){y=null,E&&!g&&(g=setTimeout(function(){g=null,D()},50))},i),i.on("changeSession",D)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("../lib/event"),o=n("../lib/useragent"),d=f.MouseEvent=function(u,h){this.domEvent=u,this.editor=h,this.x=this.clientX=u.clientX,this.y=this.clientY=u.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){m.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){m.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var h=this.editor.getSelectionRange();if(h.isEmpty())this.$inSelection=!1;else{var r=this.getDocumentPosition();this.$inSelection=h.contains(r.row,r.column)}return this.$inSelection},this.getButton=function(){return m.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=o.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(d.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("../lib/dom"),o=n("../lib/event"),d=n("../lib/useragent");function s(c){var l=c.editor,g=m.createElement("div");g.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",g.textContent="\xa0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(Le){c[Le]=this[Le]},this),l.on("mousedown",this.onMouseDown.bind(c));var T,D,O,w,A,S,I,b,L,F,ne,E=l.container,M=0;function te(){var Le=S;(function(Le,Ye){var Je=Date.now();F&&Ye&&Le.row==Ye.row&&Ye&&Le.column==Ye.column?i(ne.x,ne.y,D,O)>5?F=null:Je-F>=200&&(l.renderer.scrollCursorIntoView(),F=null):(l.moveCursorToPosition(Le),F=Je,ne={x:D,y:O})})(S=l.renderer.screenToTextCoordinates(D,O),Le),function(Le,Ye){var Je=Date.now(),gt=l.renderer.layerConfig.lineHeight,Ue=l.renderer.layerConfig.characterWidth,tt=l.renderer.scroller.getBoundingClientRect(),at={x:{left:D-tt.left,right:tt.right-D},y:{top:O-tt.top,bottom:tt.bottom-O}},ft=Math.min(at.x.left,at.x.right),vt=Math.min(at.y.top,at.y.bottom),yt={row:Le.row,column:Le.column};ft/Ue<=2&&(yt.column+=at.x.left=200&&l.renderer.scrollCursorIntoView(yt):L=Je:L=null}(S,Le)}function $(){A=l.selection.toOrientedRange(),T=l.session.addMarker(A,"ace_selection",l.getSelectionStyle()),l.clearSelection(),l.isFocused()&&l.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),te(),w=setInterval(te,20),M=0,o.addListener(document,"mousemove",ae)}function J(){clearInterval(w),l.session.removeMarker(T),T=null,l.selection.fromOrientedRange(A),l.isFocused()&&!b&&l.$resetCursorStyle(),A=null,S=null,M=0,L=null,F=null,o.removeListener(document,"mousemove",ae)}this.onDragStart=function(Le){if(this.cancelDrag||!E.draggable){var Ye=this;return setTimeout(function(){Ye.startSelect(),Ye.captureMouse(Le)},0),Le.preventDefault()}A=l.getSelectionRange();var Je=Le.dataTransfer;Je.effectAllowed=l.getReadOnly()?"copy":"copyMove",l.container.appendChild(g),Je.setDragImage&&Je.setDragImage(g,0,0),setTimeout(function(){l.container.removeChild(g)}),Je.clearData(),Je.setData("Text",l.session.getTextRange()),b=!0,this.setState("drag")},this.onDragEnd=function(Le){E.draggable=!1,b=!1,this.setState(null),l.getReadOnly()||(!I&&"move"==Le.dataTransfer.dropEffect&&l.session.remove(l.getSelectionRange()),l.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Le){if(!l.getReadOnly()&&le(Le.dataTransfer))return D=Le.clientX,O=Le.clientY,T||$(),M++,Le.dataTransfer.dropEffect=I=Oe(Le),o.preventDefault(Le)},this.onDragOver=function(Le){if(!l.getReadOnly()&&le(Le.dataTransfer))return D=Le.clientX,O=Le.clientY,T||($(),M++),null!==ie&&(ie=null),Le.dataTransfer.dropEffect=I=Oe(Le),o.preventDefault(Le)},this.onDragLeave=function(Le){if(--M<=0&&T)return J(),I=null,o.preventDefault(Le)},this.onDrop=function(Le){if(S){var Ye=Le.dataTransfer;if(b)switch(I){case"move":A=A.contains(S.row,S.column)?{start:S,end:S}:l.moveText(A,S);break;case"copy":A=l.moveText(A,S,!0)}else{var Je=Ye.getData("Text");A={start:S,end:l.session.insert(S,Je)},l.focus(),I=null}return J(),o.preventDefault(Le)}},o.addListener(E,"dragstart",this.onDragStart.bind(c),l),o.addListener(E,"dragend",this.onDragEnd.bind(c),l),o.addListener(E,"dragenter",this.onDragEnter.bind(c),l),o.addListener(E,"dragover",this.onDragOver.bind(c),l),o.addListener(E,"dragleave",this.onDragLeave.bind(c),l),o.addListener(E,"drop",this.onDrop.bind(c),l);var ie=null;function ae(){null==ie&&(ie=setTimeout(function(){null!=ie&&T&&J()},20))}function le(Le){var Ye=Le.types;return!Ye||Array.prototype.some.call(Ye,function(Je){return"text/plain"==Je||"Text"==Je})}function Oe(Le){var Ye=["copy","copymove","all","uninitialized"],gt=d.isMac?Le.altKey:Le.ctrlKey,Ue="uninitialized";try{Ue=Le.dataTransfer.effectAllowed.toLowerCase()}catch(at){}var tt="none";return gt&&Ye.indexOf(Ue)>=0?tt="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(Ue)>=0?tt="move":Ye.indexOf(Ue)>=0&&(tt="copy"),tt}}function i(c,l,g,y){return Math.sqrt(Math.pow(g-c,2)+Math.pow(y-l,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor;c.container.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging"),c.renderer.setCursorStyle(d.isWin?"default":"move"),this.setState("dragReady")},this.onMouseDrag=function(c){var l=this.editor.container;d.isIE&&"dragReady"==this.state&&i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&l.dragDrop(),"dragWait"===this.state&&i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var l=this.editor,g=c.inSelection(),y=c.getButton();if(1===(c.domEvent.detail||1)&&0===y&&g){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var T=c.domEvent.target||c.domEvent.srcElement;"unselectable"in T&&(T.unselectable="on"),l.getDragDelay()?(d.isWebKit&&(this.cancelDrag=!0,l.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(s.prototype),f.DragdropHandler=s}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,f,v){"use strict";var m=n("./mouse_event").MouseEvent,o=n("../lib/event"),d=n("../lib/dom");f.addTouchListeners=function(u,h){var s,i,c,l,g,y,T,A,S,r="scroll",E=0,D=0,O=0,w=0;function I(){S||function(){var Y=window.navigator&&window.navigator.clipboard,Q=!1,$=function(J){var ie=J.target.getAttribute("action");if("more"==ie||!Q)return Q=!Q,function(){var J=h.getCopyText(),ie=h.session.getUndoManager().hasUndo();S.replaceChild(d.buildDom(Q?["span",!J&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],J&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],J&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],Y&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],ie&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),S.firstChild)}();"paste"==ie?Y.readText().then(function(ae){h.execCommand(ie,ae)}):ie&&(("cut"==ie||"copy"==ie)&&(Y?Y.writeText(h.getCopyText()):document.execCommand("copy")),h.execCommand(ie)),S.firstChild.style.display="none",Q=!1,"openCommandPallete"!=ie&&h.focus()};S=d.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(J){r="menu",J.stopPropagation(),J.preventDefault(),h.textInput.focus()},ontouchend:function(J){J.stopPropagation(),J.preventDefault(),$(J)},onclick:$},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],h.container)}();var Y=h.selection.cursor,Q=h.renderer.textToScreenCoordinates(Y.row,Y.column),te=h.renderer.textToScreenCoordinates(0,0).pageX,$=h.renderer.scrollLeft,J=h.container.getBoundingClientRect();S.style.top=Q.pageY-J.top-3+"px",Q.pageX-J.left1)return clearTimeout(g),g=null,c=-1,void(r="zoom");A=h.$mouseHandler.isMousePressed=!0;var te=h.renderer.layerConfig.lineHeight,$=h.renderer.layerConfig.lineHeight,J=Y.timeStamp;l=J;var ie=Q[0],ae=ie.clientX,le=ie.clientY;Math.abs(s-ae)+Math.abs(i-le)>te&&(c=-1),s=Y.clientX=ae,i=Y.clientY=le,O=w=0;var Oe=new m(Y,h);if(T=Oe.getDocumentPosition(),J-c<500&&1==Q.length&&!E)D++,Y.preventDefault(),Y.button=0,function(){g=null,clearTimeout(g),h.selection.moveToPosition(T);var Y=D>=2?h.selection.getLineRange(T.row):h.session.getBracketRange(T);Y&&!Y.isEmpty()?h.selection.setRange(Y):h.selection.selectWord(),r="wait"}();else{D=0;var Le=h.selection.cursor,Ye=h.selection.isEmpty()?Le:h.selection.anchor,Je=h.renderer.$cursorLayer.getPixelPosition(Le,!0),gt=h.renderer.$cursorLayer.getPixelPosition(Ye,!0),Ue=h.renderer.scroller.getBoundingClientRect(),tt=h.renderer.layerConfig.offset,at=h.renderer.scrollLeft,ft=function(ot,_t){return(ot/=$)*ot+(_t=_t/te-.75)*_t};if(Y.clientXyt?"cursor":"anchor"),r=yt<3.5?"anchor":vt<3.5?"cursor":"scroll",g=setTimeout(L,450)}c=J},h),o.addListener(u,"touchend",function(Y){A=h.$mouseHandler.isMousePressed=!1,y&&clearInterval(y),"zoom"==r?(r="",E=0):g?(h.selection.moveToPosition(T),E=0,I()):"scroll"==r?(E+=60,y=setInterval(function(){E--<=0&&(clearInterval(y),y=null),Math.abs(O)<.01&&(O=0),Math.abs(w)<.01&&(w=0),E<20&&(O*=.9),E<20&&(w*=.9);var Y=h.session.getScrollTop();h.renderer.scrollBy(10*O,10*w),Y==h.session.getScrollTop()&&(E=0)},10),b()):I(),clearTimeout(g),g=null},h),o.addListener(u,"touchmove",function(Y){g&&(clearTimeout(g),g=null);var Q=Y.touches;if(!(Q.length>1||"zoom"==r)){var te=Q[0],$=s-te.clientX,J=i-te.clientY;if("wait"==r){if(!($*$+J*J>4))return Y.preventDefault();r="cursor"}s=te.clientX,i=te.clientY,Y.clientX=te.clientX,Y.clientY=te.clientY;var ie=Y.timeStamp,ae=ie-l;if(l=ie,"scroll"==r){var le=new m(Y,h);le.speed=1,le.wheelX=$,le.wheelY=J,10*Math.abs($)1&&(D=E[E.length-2]);var w=s[y+"Path"];return null==w?w=s.basePath:"/"==T&&(y=T=""),w&&"/"!=w.slice(-1)&&(w+="/"),w+y+T+D+this.get("suffix")},f.setModuleUrl=function(g,y){return s.$moduleUrls[g]=y},f.$loading={},f.loadModule=function(g,y){var E,T;Array.isArray(g)&&(T=g[0],g=g[1]);try{E=n(g)}catch(O){}if(E&&!f.$loading[g])return y&&y(E);if(f.$loading[g]||(f.$loading[g]=[]),f.$loading[g].push(y),!(f.$loading[g].length>1)){var D=function(){n([g],function(O){f._emit("load.module",{name:g,module:O});var w=f.$loading[g];f.$loading[g]=null,w.forEach(function(A){A&&A(O)})})};if(!f.get("packaged"))return D();d.loadScript(f.moduleUrl(g,T),D),i()}};var i=function(){!s.basePath&&!s.workerPath&&!s.modePath&&!s.themePath&&!Object.keys(s.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),i=function(){})};function c(g){if(r&&r.document){s.packaged=g||n.packaged||v.packaged||r.define&&p.amdD.packaged;for(var y={},E="",T=document.currentScript||document._currentScript,O=(T&&T.ownerDocument||document).getElementsByTagName("script"),w=0;w=at){for(_t=ot+1;_t=at;)_t++;for(At=ot,Tt=_t-1;At=ft.length||2!=(_t=vt[yt-1])&&3!=_t||2!=(At=ft[yt+1])&&3!=At?4:(h&&(At=3),At==_t?At:4);case 10:return 2==(_t=yt>0?vt[yt-1]:5)&&yt+10&&2==vt[yt-1])return 2;if(h)return 4;for(Bt=yt+1,Tt=ft.length;Bt=1425&&Et<=2303||64286==Et)&&(1==_t||7==_t))return 1}return yt<1||5==(_t=ft[yt-1])?4:vt[yt-1];case 5:return h=!1,s=!0,d;case 6:return i=!0,4;case 13:case 14:case 16:case 17:case 15:h=!1;case 18:return 4}}function Ue(at){var ft=at.charCodeAt(0),vt=ft>>8;return 0==vt?ft>191?0:Oe[ft]:5==vt?/[\u0591-\u05f4]/.test(at)?1:0:6==vt?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(at)?12:/[\u0660-\u0669\u066b-\u066c]/.test(at)?3:1642==ft?Y:/[\u06f0-\u06f9]/.test(at)?2:7:32==vt&&ft<=8287?Le[255&ft]:254==vt&&ft>=65136?7:4}f.L=0,f.R=1,f.EN=2,f.ON_R=3,f.AN=4,f.R_H=5,f.B=6,f.RLE=7,f.DOT="\xb7",f.doBidiReorder=function(at,ft,vt){if(at.length<2)return{};var yt=at.split(""),ot=new Array(yt.length),_t=new Array(yt.length),At=[];d=vt?1:0,function(at,ft,vt,yt){var ot=d?y:g,_t=null,At=null,Tt=null,Bt=0,Et=null,fe=-1,H=null,x=null,U=[];if(!yt)for(H=0,yt=[];H0)if(16==Et){for(H=fe;H-1){for(H=fe;H=0&&8==yt[Z];Z--)ft[Z]=d}}(yt,At,yt.length,ft);for(var Tt=0;Tt7&&ft[Tt]<13||4===ft[Tt]||18===ft[Tt])?At[Tt]=f.ON_R:Tt>0&&"\u0644"===yt[Tt-1]&&/\u0622|\u0623|\u0625|\u0627/.test(yt[Tt])&&(At[Tt-1]=At[Tt]=f.R_H,Tt++);for(yt[yt.length-1]===f.DOT&&(At[yt.length-1]=f.B),"\u202b"===yt[0]&&(At[0]=f.RLE),Tt=0;Tt=0&&(h=this.session.$docRowCache[s])}return h},this.getSplitIndex=function(){var h=0,r=this.session.$screenRowCache;if(r.length)for(var s,i=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-h>0&&(s=this.session.$getRowCacheIndex(r,this.currentRow-h-1))===i;)i=s,h++;else h=this.currentRow;return h},this.updateRowLine=function(h,r){void 0===h&&(h=this.getDocumentRow());var i=h===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(h),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var c=this.session.$wrapData[h];c&&(void 0===r&&(r=this.getSplitIndex()),r>0&&c.length?(this.wrapIndent=c.indent,this.wrapOffset=this.wrapIndent*this.charWidths[m.L],this.line=rr?this.session.getOverwrite()?h:h-1:r,i=m.getVisualFromLogicalIdx(s,this.bidiMap),c=this.bidiMap.bidiLevels,l=0;!this.session.getOverwrite()&&h<=r&&c[i]%2!=0&&i++;for(var g=0;gr&&c[i]%2==0&&(l+=this.charWidths[c[i]]),this.wrapIndent&&(l+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(l+=this.rtlLineOffset),l},this.getSelections=function(h,r){var c,s=this.bidiMap,i=s.bidiLevels,l=[],g=0,y=Math.min(h,r)-this.wrapIndent,E=Math.max(h,r)-this.wrapIndent,T=!1,D=!1,O=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,A=0;A=y&&ws+l/2;){if(s+=l,i===c.length-1){l=0;break}l=this.charWidths[c[++i]]}return i>0&&c[i-1]%2!=0&&c[i]%2==0?(h0&&c[i-1]%2==0&&c[i]%2!=0?r=1+(h>s?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===c.length-1&&0===l&&c[i-1]%2==0||!this.isRtlDir&&0===i&&c[i]%2!=0?r=1+this.bidiMap.logicalFromVisual[i]:(i>0&&c[i-1]%2!=0&&0!==l&&i--,r=this.bidiMap.logicalFromVisual[i]),0===r&&this.isRtlDir&&r++,r+this.wrapIndent}}).call(u.prototype),f.BidiHandler=u}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,f,v){"use strict";var m=n("./lib/oop"),o=n("./lib/lang"),d=n("./lib/event_emitter").EventEmitter,u=n("./range").Range,h=function(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var s=this;this.cursor.on("change",function(i){s.$cursorChanged=!0,s.$silent||s._emit("changeCursor"),!s.$isEmpty&&!s.$silent&&s._emit("changeSelection"),!s.$keepDesiredColumnOnChange&&i.old.column!=i.value.column&&(s.$desiredColumn=null)}),this.anchor.on("change",function(){s.$anchorChanged=!0,!s.$isEmpty&&!s.$silent&&s._emit("changeSelection")})};(function(){m.implement(this,d),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(r,s){this.$isEmpty=!1,this.anchor.setPosition(r,s)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var r=this.anchor,s=this.lead;return r.row>s.row||r.row==s.row&&r.column>s.column},this.getRange=function(){var r=this.anchor,s=this.lead;return this.$isEmpty?u.fromPoints(s,s):this.isBackwards()?u.fromPoints(s,r):u.fromPoints(r,s)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(r,s){var i=s?r.end:r.start,c=s?r.start:r.end;this.$setSelection(i.row,i.column,c.row,c.column)},this.$setSelection=function(r,s,i,c){if(!this.$silent){var l=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,s),this.cursor.setPosition(i,c),this.$isEmpty=!u.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||l!=this.$isEmpty||g)&&this._emit("changeSelection")}},this.$moveSelection=function(r){var s=this.lead;this.$isEmpty&&this.setSelectionAnchor(s.row,s.column),r.call(this)},this.selectTo=function(r,s){this.$moveSelection(function(){this.moveCursorTo(r,s)})},this.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},this.moveTo=function(r,s){this.clearSelection(),this.moveCursorTo(r,s)},this.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(r,s){if(void 0===s){var i=r||this.lead;r=i.row,s=i.column}return this.session.getWordRange(r,s)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var r=this.getCursor(),s=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(s)},this.getLineRange=function(r,s){var c,i="number"==typeof r?r:this.lead.row,l=this.session.getFoldLine(i);return l?(i=l.start.row,c=l.end.row):c=i,!0===s?new u(i,0,c,this.session.getLine(c).length):new u(i,0,c+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(r,s,i){var c=r.column,l=r.column+s;return i<0&&(c=r.column-s,l=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(c,l).split(" ").length-1==s},this.moveCursorLeft=function(){var s,r=this.lead.getPosition();if(s=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(s.start.row,s.start.column);else if(0===r.column)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var s,r=this.lead.getPosition();if(s=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(s.end.row,s.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(s.column=c)}}this.moveCursorTo(s.row,s.column)},this.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,s=this.doc.getLine(r).length;this.moveCursorTo(r,s)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var r=this.lead.row,s=this.lead.column,i=this.doc.getLine(r),c=i.substring(s);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var l=this.session.getFoldAt(r,s,1);if(!l)return this.session.nonTokenRe.exec(c)&&(s+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,c=i.substring(s)),s>=i.length?(this.moveCursorTo(r,i.length),this.moveCursorRight(),void(r0&&this.moveCursorWordLeft());this.session.tokenRe.exec(l)&&(s-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,s)}},this.$shortWordEndIndex=function(r){var i,s=0,c=/\s/,l=this.session.tokenRe;if(l.lastIndex=0,this.session.tokenRe.exec(r))s=this.session.tokenRe.lastIndex;else{for(;(i=r[s])&&c.test(i);)s++;if(s<1)for(l.lastIndex=0;(i=r[s])&&!l.test(i);)if(l.lastIndex=0,s++,c.test(i)){if(s>2){s--;break}for(;(i=r[s])&&c.test(i);)s++;if(s>2)break}}return l.lastIndex=0,s},this.moveCursorShortWordRight=function(){var r=this.lead.row,s=this.lead.column,i=this.doc.getLine(r),c=i.substring(s),l=this.session.getFoldAt(r,s,1);if(l)return this.moveCursorTo(l.end.row,l.end.column);if(s==i.length){var g=this.doc.getLength();do{r++,c=this.doc.getLine(r)}while(r0&&/^\s*$/.test(c));s=c.length,/\s+$/.test(c)||(c="")}var l=o.stringReverse(c),g=this.$shortWordEndIndex(l);return this.moveCursorTo(r,s-g)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(r,s){var c,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===s&&(0!==r&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(c=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(c/this.session.$bidiHandler.charWidths[0])):c=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=r&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var l=this.session.lineWidgets[this.lead.row];r<0?r-=l.rowsAbove||0:r>0&&(r+=l.rowCount-(l.rowsAbove||0))}var g=this.session.screenToDocumentPosition(i.row+r,i.column,c);this.moveCursorTo(g.row,g.column+s,0===s)},this.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},this.moveCursorTo=function(r,s,i){var c=this.session.getFoldAt(r,s,1);c&&(r=c.start.row,s=c.start.column),this.$keepDesiredColumnOnChange=!0;var l=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(l.charAt(s))&&l.charAt(s-1)&&(this.lead.row==r&&this.lead.column==s+1?s-=1:s+=1),this.lead.setPosition(r,s),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(r,s,i){var c=this.session.screenToDocumentPosition(r,s);this.moveCursorTo(c.row,c.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(r){var s=this.getRange();return r?(r.start.column=s.start.column,r.start.row=s.start.row,r.end.column=s.end.column,r.end.row=s.end.row):r=s,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},this.getRangeOfMovements=function(r){var s=this.getCursor();try{r(this);var i=this.getCursor();return u.fromPoints(s,i)}catch(c){return u.fromPoints(s,s)}finally{this.moveCursorToPosition(s)}},this.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(s){var i=s.clone();return i.isBackwards=s.cursor==s.start,i});else(r=this.getRange()).isBackwards=this.isBackwards();return r},this.fromJSON=function(r){if(null==r.start){if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var s=r.length;s--;){var i=u.fromPoints(r[s].start,r[s].end);r[s].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}r=r[0]}this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},this.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var s=this.ranges.length;s--;)if(!this.ranges[s].isEqual(r[s]))return!1;return!0}}).call(h.prototype),f.Selection=h}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(n,f,v){"use strict";var m=n("./config"),o=2e3,d=function(u){for(var h in this.states=u,this.regExps={},this.matchMappings={},this.states){for(var r=this.states[h],s=[],i=0,c=this.matchMappings[h]={defaultToken:"text"},l="g",g=[],y=0;y1?this.$applyToken:E.token),D>1&&(/\\\d/.test(E.regex)?T=E.regex.replace(/\\([0-9]+)/g,function(O,w){return"\\"+(parseInt(w,10)+i+1)}):(D=1,T=this.removeCapturingGroups(E.regex)),!E.splitRegex&&"string"!=typeof E.token&&g.push(E)),c[i]=y,i+=D,s.push(T),E.onMatch||(E.onMatch=null)}}s.length||(c[0]=0,s.push("$")),g.forEach(function(O){O.splitRegex=this.createSplitterRegexp(O.regex,l)},this),this.regExps[h]=new RegExp("("+s.join(")|(")+")|($)",l)}};(function(){this.$setMaxTokenCount=function(u){o=0|u},this.$applyToken=function(u){var h=this.splitRegex.exec(u).slice(1),r=this.token.apply(this,h);if("string"==typeof r)return[{type:r,value:u}];for(var s=[],i=0,c=r.length;iE){var M=u.substring(E,S-A.length);D.type==O?D.value+=M:(D.type&&y.push(D),D={type:O,value:M})}for(var I=0;Io){for(T>2*u.length&&this.reportError("infinite loop with in ace tokenizer",{startState:h,line:u});E1&&r[0]!==s&&r.unshift("#tmp",s),{tokens:y,state:r.length?r:s}},this.reportError=m.reportError}).call(d.prototype),f.Tokenizer=d}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(n,f,v){"use strict";var m=n("../lib/lang"),o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(h,r){if(r)for(var s in h){for(var i=h[s],c=0;c=this.$rowTokens.length;){if(this.$row+=1,d||(d=this.$session.getLength()),this.$row>=d)return this.$row=d-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var d=this.$rowTokens,u=this.$tokenIndex,h=d[u].start;if(void 0!==h)return h;for(h=0;u>0;)h+=d[u-=1].value.length;return h},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var d=this.$rowTokens[this.$tokenIndex],u=this.getCurrentTokenColumn();return new m(this.$row,u,this.$row,u+d.value.length)}}).call(o.prototype),f.TokenIterator=o}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,f,v){"use strict";var s,m=n("../../lib/oop"),o=n("../behaviour").Behaviour,d=n("../../token_iterator").TokenIterator,u=n("../../lib/lang"),h=["text","paren.rparen","rparen","paren","punctuation.operator"],r=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],i={},c={'"':'"',"'":"'"},l=function(E){var T=-1;if(E.multiSelect&&(T=E.selection.index,i.rangeCount!=E.multiSelect.rangeCount&&(i={rangeCount:E.multiSelect.rangeCount})),i[T])return s=i[T];s=i[T]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(E,T,D,O){var w=E.end.row-E.start.row;return{text:D+T+O,selection:[0,E.start.column+1,w,E.end.column+(w?0:1)]}},y=function(E){this.add("braces","insertion",function(T,D,O,w,A){var S=O.getCursorPosition(),M=w.doc.getLine(S.row);if("{"==A){l(O);var I=O.getSelectionRange(),b=w.doc.getTextRange(I);if(""!==b&&"{"!==b&&O.getWrapBehavioursEnabled())return g(I,b,"{","}");if(y.isSaneInsertion(O,w))return/[\]\}\)]/.test(M[S.column])||O.inMultiSelectMode||E&&E.braces?(y.recordAutoInsert(O,w,"}"),{text:"{}",selection:[1,1]}):(y.recordMaybeInsert(O,w,"{"),{text:"{",selection:[1,1]})}else if("}"==A){if(l(O),"}"==M.substring(S.column,S.column+1)&&null!==w.$findOpeningBracket("}",{column:S.column+1,row:S.row})&&y.isAutoInsertedClosing(S,M,A))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==A||"\r\n"==A){l(O);var ne="";if(y.isMaybeInsertedClosing(S,M)&&(ne=u.stringRepeat("}",s.maybeInsertedBrackets),y.clearMaybeInsertedClosing()),"}"===M.substring(S.column,S.column+1)){var Y=w.findMatchingBracket({row:S.row,column:S.column+1},"}");if(!Y)return null;var Q=this.$getIndent(w.getLine(Y.row))}else{if(!ne)return void y.clearMaybeInsertedClosing();Q=this.$getIndent(M)}var te=Q+w.getTabString();return{text:"\n"+te+"\n"+Q+ne,selection:[1,te.length,1,te.length]}}y.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(T,D,O,w,A){var S=w.doc.getTextRange(A);if(!A.isMultiLine()&&"{"==S){if(l(O),"}"==w.doc.getLine(A.start.row).substring(A.end.column,A.end.column+1))return A.end.column++,A;s.maybeInsertedBrackets--}}),this.add("parens","insertion",function(T,D,O,w,A){if("("==A){l(O);var S=O.getSelectionRange(),M=w.doc.getTextRange(S);if(""!==M&&O.getWrapBehavioursEnabled())return g(S,M,"(",")");if(y.isSaneInsertion(O,w))return y.recordAutoInsert(O,w,")"),{text:"()",selection:[1,1]}}else if(")"==A){l(O);var I=O.getCursorPosition(),b=w.doc.getLine(I.row);if(")"==b.substring(I.column,I.column+1)&&null!==w.$findOpeningBracket(")",{column:I.column+1,row:I.row})&&y.isAutoInsertedClosing(I,b,A))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(T,D,O,w,A){var S=w.doc.getTextRange(A);if(!A.isMultiLine()&&"("==S&&(l(O),")"==w.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)))return A.end.column++,A}),this.add("brackets","insertion",function(T,D,O,w,A){if("["==A){l(O);var S=O.getSelectionRange(),M=w.doc.getTextRange(S);if(""!==M&&O.getWrapBehavioursEnabled())return g(S,M,"[","]");if(y.isSaneInsertion(O,w))return y.recordAutoInsert(O,w,"]"),{text:"[]",selection:[1,1]}}else if("]"==A){l(O);var I=O.getCursorPosition(),b=w.doc.getLine(I.row);if("]"==b.substring(I.column,I.column+1)&&null!==w.$findOpeningBracket("]",{column:I.column+1,row:I.row})&&y.isAutoInsertedClosing(I,b,A))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(T,D,O,w,A){var S=w.doc.getTextRange(A);if(!A.isMultiLine()&&"["==S&&(l(O),"]"==w.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)))return A.end.column++,A}),this.add("string_dquotes","insertion",function(T,D,O,w,A){var S=w.$mode.$quotes||c;if(1==A.length&&S[A]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(A))return;l(O);var M=A,I=O.getSelectionRange(),b=w.doc.getTextRange(I);if(""!==b&&(1!=b.length||!S[b])&&O.getWrapBehavioursEnabled())return g(I,b,M,M);if(!b){var L=O.getCursorPosition(),F=w.doc.getLine(L.row),ne=F.substring(L.column-1,L.column),Y=F.substring(L.column,L.column+1),Q=w.getTokenAt(L.row,L.column),te=w.getTokenAt(L.row,L.column+1);if("\\"==ne&&Q&&/escape/.test(Q.type))return null;var ie,$=Q&&/string|escape/.test(Q.type),J=!te||/string|escape/.test(te.type);if(Y==M)(ie=$!==J)&&/string\.end/.test(te.type)&&(ie=!1);else{if($&&!J||$&&J)return null;var ae=w.$mode.tokenRe;ae.lastIndex=0;var le=ae.test(ne);ae.lastIndex=0;var Oe=ae.test(ne);if(le||Oe||Y&&!/[\s;,.})\]\\]/.test(Y))return null;var Le=F[L.column-2];if(ne==M&&(Le==M||ae.test(Le)))return null;ie=!0}return{text:ie?M+M:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(T,D,O,w,A){var S=w.$mode.$quotes||c,M=w.doc.getTextRange(A);if(!A.isMultiLine()&&S.hasOwnProperty(M)&&(l(O),w.doc.getLine(A.start.row).substring(A.start.column+1,A.start.column+2)==M))return A.end.column++,A})};y.isSaneInsertion=function(E,T){var D=E.getCursorPosition(),O=new d(T,D.row,D.column);if(!this.$matchTokenType(O.getCurrentToken()||"text",h)){if(/[)}\]]/.test(E.session.getLine(D.row)[D.column]))return!0;var w=new d(T,D.row,D.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",h))return!1}return O.stepForward(),O.getCurrentTokenRow()!==D.row||this.$matchTokenType(O.getCurrentToken()||"text",r)},y.$matchTokenType=function(E,T){return T.indexOf(E.type||E)>-1},y.recordAutoInsert=function(E,T,D){var O=E.getCursorPosition(),w=T.doc.getLine(O.row);this.isAutoInsertedClosing(O,w,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=O.row,s.autoInsertedLineEnd=D+w.substr(O.column),s.autoInsertedBrackets++},y.recordMaybeInsert=function(E,T,D){var O=E.getCursorPosition(),w=T.doc.getLine(O.row);this.isMaybeInsertedClosing(O,w)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=O.row,s.maybeInsertedLineStart=w.substr(0,O.column)+D,s.maybeInsertedLineEnd=w.substr(O.column),s.maybeInsertedBrackets++},y.isAutoInsertedClosing=function(E,T,D){return s.autoInsertedBrackets>0&&E.row===s.autoInsertedRow&&D===s.autoInsertedLineEnd[0]&&T.substr(E.column)===s.autoInsertedLineEnd},y.isMaybeInsertedClosing=function(E,T){return s.maybeInsertedBrackets>0&&E.row===s.maybeInsertedRow&&T.substr(E.column)===s.maybeInsertedLineEnd&&T.substr(0,E.column)==s.maybeInsertedLineStart},y.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},y.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},m.inherits(y,o),f.CstyleBehaviour=y}),ace.define("ace/unicode",["require","exports","module"],function(n,f,v){"use strict";for(var m=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,d=[],u=0;u2?Je%A!=A-1:Je%A==0}}else{if(!this.blockComment)return!1;M=this.blockComment.start;var I=this.blockComment.end,L=(b=new RegExp("^(\\s*)(?:"+r.escapeRegExp(M)+")"),new RegExp("(?:"+r.escapeRegExp(I)+")\\s*$"));F=function(ie,ae){Y(ie,ae)||(!D||/\S/.test(ie))&&(T.insertInLine({row:ae,column:ie.length},I),T.insertInLine({row:ae,column:w},M))},ne=function(ie,ae){var le;(le=ie.match(L))&&T.removeInLine(ae,ie.length-le[0].length,ie.length),(le=ie.match(b))&&T.removeInLine(ae,le[1].length,le[0].length)},Y=function(ie,ae){if(b.test(ie))return!0;for(var le=g.getTokens(ae),Oe=0;Oeie.length&&(J=ie.length)}),w==1/0&&(w=J,D=!1,O=!1),S&&w%A!=0&&(w=Math.floor(w/A)*A),$(O?ne:F)},this.toggleBlockComment=function(l,g,y,E){var T=this.blockComment;if(T){!T.start&&T[0]&&(T=T[0]);var S,M,O=(D=new s(g,E.row,E.column)).getCurrentToken(),A=g.selection.toOrientedRange();if(O&&/comment/.test(O.type)){for(var I,b;O&&/comment/.test(O.type);){if(-1!=(L=O.value.indexOf(T.start))){var F=D.getCurrentTokenRow(),ne=D.getCurrentTokenColumn()+L;I=new i(F,ne,F,ne+T.start.length);break}O=D.stepBackward()}var D;for(O=(D=new s(g,E.row,E.column)).getCurrentToken();O&&/comment/.test(O.type);){var L;if(-1!=(L=O.value.indexOf(T.end))){F=D.getCurrentTokenRow(),ne=D.getCurrentTokenColumn()+L,b=new i(F,ne,F,ne+T.end.length);break}O=D.stepForward()}b&&g.remove(b),I&&(g.remove(I),S=I.start.row,M=-T.start.length)}else M=T.start.length,S=y.start.row,g.insert(y.end,T.end),g.insert(y.start,T.start);A.start.row==S&&(A.start.column+=M),A.end.row==S&&(A.end.column+=M),g.selection.fromOrientedRange(A)}},this.getNextLineIndent=function(l,g,y){return this.$getIndent(g)},this.checkOutdent=function(l,g,y){return!1},this.autoOutdent=function(l,g,y){},this.$getIndent=function(l){return l.match(/^\s*/)[0]},this.createWorker=function(l){return null},this.createModeDelegates=function(l){for(var g in this.$embeds=[],this.$modes={},l)if(l[g]){var y=l[g],E=y.prototype.$id,T=m.$modes[E];T||(m.$modes[E]=T=new y),m.$modes[g]||(m.$modes[g]=T),this.$embeds.push(g),this.$modes[g]=T}var D=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(g=0;gthis.row)){var s=function(r,s,i){var c="insert"==r.action,l=(c?1:-1)*(r.end.row-r.start.row),g=(c?1:-1)*(r.end.column-r.start.column),y=r.start,E=c?y:r.end;return u(s,y,i)?{row:s.row,column:s.column}:u(E,s,!i)?{row:s.row+l,column:s.column+(s.row==E.row?g:0)}:{row:y.row,column:y.column}}(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(r,s,i){var c;if(c=i?{row:r,column:s}:this.$clipPositionToDocument(r,s),this.row!=c.row||this.column!=c.column){var l={row:this.row,column:this.column};this.row=c.row,this.column=c.column,this._signal("change",{old:l,value:c})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(r,s){var i={};return r>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):r<0?(i.row=0,i.column=0):(i.row=r,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,s))),s<0&&(i.column=0),i}}).call(d.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(n,f,v){"use strict";var m=n("./lib/oop"),o=n("./apply_delta").applyDelta,d=n("./lib/event_emitter").EventEmitter,u=n("./range").Range,h=n("./anchor").Anchor,r=function(s){this.$lines=[""],0===s.length?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){m.implement(this,d),this.setValue=function(s){var i=this.getLength()-1;this.remove(new u(0,0,i,this.getLine(i).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,i){return new h(this,s,i)},this.$split=0==="aaa".split(/a/).length?function(s){return s.replace(/\r\n|\r/g,"\n").split("\n")}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){var i=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=i?i[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return"\r\n"==s||"\r"==s||"\n"==s},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,i){return this.$lines.slice(s,i+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){var i;if(s.start.row===s.end.row)i=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{(i=this.getLines(s.start.row,s.end.row))[0]=(i[0]||"").substring(s.start.column);var c=i.length-1;s.end.row-s.start.row==c&&(i[c]=i[c].substring(0,s.end.column))}return i},this.insertLines=function(s,i){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,i)},this.removeLines=function(s,i){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,i)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,i){return this.getLength()<=1&&this.$detectNewLine(i),this.insertMergedLines(s,this.$split(i))},this.insertInLine=function(s,i){var c=this.clippedPos(s.row,s.column),l=this.pos(s.row,s.column+i.length);return this.applyDelta({start:c,end:l,action:"insert",lines:[i]},!0),this.clonePos(l)},this.clippedPos=function(s,i){var c=this.getLength();void 0===s?s=c:s<0?s=0:s>=c&&(s=c-1,i=void 0);var l=this.getLine(s);return null==i&&(i=l.length),{row:s,column:i=Math.min(Math.max(i,0),l.length)}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,i){return{row:s,column:i}},this.$clipPosition=function(s){var i=this.getLength();return s.row>=i?(s.row=Math.max(0,i-1),s.column=this.getLine(i-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,i){var c=0;(s=Math.min(Math.max(s,0),this.getLength()))0,l=i=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,i){return s instanceof u||(s=u.fromPoints(s.start,s.end)),0===i.length&&s.isEmpty()?s.start:i==this.getTextRange(s)?s.end:(this.remove(s),i?this.insert(s.start,i):s.start)},this.applyDeltas=function(s){for(var i=0;i=0;i--)this.revertDelta(s[i])},this.applyDelta=function(s,i){var c="insert"==s.action;(c?s.lines.length<=1&&!s.lines[0]:!u.comparePoints(s.start,s.end))||(c&&s.lines.length>2e4?this.$splitAndapplyLargeDelta(s,2e4):(o(this.$lines,s,i),this._signal("change",s)))},this.$safeApplyDelta=function(s){var i=this.$lines.length;("remove"==s.action&&s.start.row20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=i,-1==c&&(c=i),g<=c&&r.fireUpdateEvent(g,c)}}};(function(){m.implement(this,o),this.setTokenizer=function(u){this.tokenizer=u,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(u){this.doc=u,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(u,h){this._signal("update",{data:{first:u,last:h}})},this.start=function(u){this.currentLine=Math.min(u||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(u){var h=u.start.row,r=u.end.row-h;if(0===r)this.lines[h]=null;else if("remove"==u.action)this.lines.splice(h,r+1,null),this.states.splice(h,r+1,null);else{var s=Array(r+1);s.unshift(h,1),this.lines.splice.apply(this.lines,s),this.states.splice.apply(this.states,s)}this.currentLine=Math.min(h,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(u){return this.lines[u]||this.$tokenizeRow(u)},this.getState=function(u){return this.currentLine==u&&this.$tokenizeRow(u),this.states[u]||"start"},this.$tokenizeRow=function(u){var h=this.doc.getLine(u),s=this.tokenizer.getLineTokens(h,this.states[u-1],u);return this.states[u]+""!=s.state+""?(this.states[u]=s.state,this.lines[u+1]=null,this.currentLine>u+1&&(this.currentLine=u+1)):this.currentLine==u&&(this.currentLine=u+1),this.lines[u]=s.tokens}}).call(d.prototype),f.BackgroundTokenizer=d}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,f,v){"use strict";var m=n("./lib/lang"),d=(n("./lib/oop"),n("./range").Range),u=function(h,r,s){this.setRegexp(h),this.clazz=r,this.type=s||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(h){this.regExp+""!=h+""&&(this.regExp=h,this.cache=[])},this.update=function(h,r,s,i){if(this.regExp)for(var l=i.lastRow,g=i.firstRow;g<=l;g++){var y=this.cache[g];null==y&&((y=m.getMatchOffsets(s.getLine(g),this.regExp)).length>this.MAX_RANGES&&(y=y.slice(0,this.MAX_RANGES)),y=y.map(function(T){return new d(g,T.offset,g,T.offset+T.length)}),this.cache[g]=y.length?y:"");for(var E=y.length;E--;)r.drawSingleLineMarker(h,y[E].toScreenRange(s),this.clazz,i)}}}).call(u.prototype),f.SearchHighlight=u}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(n,f,v){"use strict";var m=n("../range").Range;function o(d,u){this.foldData=d,Array.isArray(u)?this.folds=u:u=this.folds=[u];var h=u[u.length-1];this.range=new m(u[0].start.row,u[0].start.column,h.end.row,h.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(r){r.setFoldLine(this)},this)}(function(){this.shiftRow=function(d){this.start.row+=d,this.end.row+=d,this.folds.forEach(function(u){u.start.row+=d,u.end.row+=d})},this.addFold=function(d){if(d.sameRow){if(d.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(d),this.folds.sort(function(u,h){return-u.range.compareEnd(h.start.row,h.start.column)}),this.range.compareEnd(d.start.row,d.start.column)>0?(this.end.row=d.end.row,this.end.column=d.end.column):this.range.compareStart(d.end.row,d.end.column)<0&&(this.start.row=d.start.row,this.start.column=d.start.column)}else if(d.start.row==this.end.row)this.folds.push(d),this.end.row=d.end.row,this.end.column=d.end.column;else{if(d.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(d),this.start.row=d.start.row,this.start.column=d.start.column}d.foldLine=this},this.containsRow=function(d){return d>=this.start.row&&d<=this.end.row},this.walk=function(d,u,h){var i,c,r=0,s=this.folds,g=!0;null==u&&(u=this.end.row,h=this.end.column);for(var y=0;y0)){var g=o(u,c.start);return 0===l?h&&0!==g?-i-2:i:g>0||0===g&&!h?i:-i-1}}return-i-1},this.add=function(u){var h=!u.isEmpty(),r=this.pointIndex(u.start,h);r<0&&(r=-r-1);var s=this.pointIndex(u.end,h,r);return s<0?s=-s-1:s++,this.ranges.splice(r,s-r,u)},this.addList=function(u){for(var h=[],r=u.length;r--;)h.push.apply(h,this.add(u[r]));return h},this.substractPoint=function(u){var h=this.pointIndex(u);if(h>=0)return this.ranges.splice(h,1)},this.merge=function(){for(var s,u=[],h=this.ranges,r=(h=h.sort(function(l,g){return o(l.start,g.start)}))[0],i=1;i=0},this.containsPoint=function(u){return this.pointIndex(u)>=0},this.rangeAtPoint=function(u){var h=this.pointIndex(u);if(h>=0)return this.ranges[h]},this.clipRows=function(u,h){var r=this.ranges;if(r[0].start.row>h||r[r.length-1].start.row=s);l++);if("insert"==u.action){for(var E=i-s,T=-h.column+r.column;ls);l++)if(y.start.row==s&&y.start.column>=h.column&&(y.start.column==h.column&&this.$bias<=0||(y.start.column+=T,y.start.row+=E)),y.end.row==s&&y.end.column>=h.column){if(y.end.column==h.column&&this.$bias<0)continue;y.end.column==h.column&&T>0&&ly.start.column&&y.end.column==c[l+1].start.column&&(y.end.column-=T),y.end.column+=T,y.end.row+=E}}else for(E=s-i,T=h.column-r.column;li);l++)y.end.rowh.column)&&(y.end.column=h.column,y.end.row=h.row):(y.end.column+=T,y.end.row+=E):y.end.row>i&&(y.end.row+=E),y.start.rowh.column)&&(y.start.column=h.column,y.start.row=h.row):(y.start.column+=T,y.start.row+=E):y.start.row>i&&(y.start.row+=E);if(0!=E&&l=r)return l;if(l.end.row>r)return null}return null},this.getNextFoldLine=function(r,s){var i=this.$foldData,c=0;for(s&&(c=i.indexOf(s)),-1==c&&(c=0);c=r)return l}return null},this.getFoldedRowCount=function(r,s){for(var i=this.$foldData,c=s-r+1,l=0;l=s){E=r?c-=s-E:c=0);break}y>=r&&(c-=E>=r?y-E:y-r+1)}return c},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(s,i){return s.start.row-i.start.row}),r},this.addFold=function(r,s){var l,i=this.$foldData,c=!1;r instanceof d?l=r:(l=new d(s,r)).collapseChildren=s.collapseChildren,this.$clipRangeToDocument(l.range);var g=l.start.row,y=l.start.column,E=l.end.row,T=l.end.column,D=this.getFoldAt(g,y,1),O=this.getFoldAt(E,T,-1);if(D&&O==D)return D.addSubFold(l);D&&!D.range.isStart(g,y)&&this.removeFold(D),O&&!O.range.isEnd(E,T)&&this.removeFold(O);var w=this.getFoldsInRange(l.range);w.length>0&&(this.removeFolds(w),l.collapseChildren||w.forEach(function(I){l.addSubFold(I)}));for(var A=0;A0&&this.foldAll(r.start.row+1,r.end.row,r.collapseChildren-1),r.subFolds=[]},this.expandFolds=function(r){r.forEach(function(s){this.expandFold(s)},this)},this.unfold=function(r,s){var i,c;if(null==r)i=new m(0,0,this.getLength(),0),null==s&&(s=!0);else if("number"==typeof r)i=new m(r,0,r,this.getLine(r).length);else if("row"in r)i=m.fromPoints(r,r);else{if(Array.isArray(r))return c=[],r.forEach(function(g){c=c.concat(this.unfold(g))},this),c;i=r}for(var l=c=this.getFoldsInRangeList(i);1==c.length&&m.comparePoints(c[0].start,i.start)<0&&m.comparePoints(c[0].end,i.end)>0;)this.expandFolds(c),c=this.getFoldsInRangeList(i);if(0!=s?this.removeFolds(c):this.expandFolds(c),l.length)return l},this.isRowFolded=function(r,s){return!!this.getFoldLine(r,s)},this.getRowFoldEnd=function(r,s){var i=this.getFoldLine(r,s);return i?i.end.row:r},this.getRowFoldStart=function(r,s){var i=this.getFoldLine(r,s);return i?i.start.row:r},this.getFoldDisplayLine=function(r,s,i,c,l){null==c&&(c=r.start.row),null==l&&(l=0),null==s&&(s=r.end.row),null==i&&(i=this.getLine(s).length);var g=this.doc,y="";return r.walk(function(E,T,D,O){if(!(TT)break}while(l&&y.test(l.type));l=c.stepBackward()}else l=c.getCurrentToken();return E.end.row=c.getCurrentTokenRow(),E.end.column=c.getCurrentTokenColumn()+l.value.length-2,E}},this.foldAll=function(r,s,i,c){null==i&&(i=1e5);var l=this.foldWidgets;if(l){s=s||this.getLength();for(var g=r=r||0;g=r&&(g=y.end.row,y.collapseChildren=i,this.addFold("...",y))}}},this.foldToLevel=function(r){for(this.foldAll();r-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(s){for(var i=r.getTokens(s),c=0;c=0;){var g=i[c];if(null==g&&(g=i[c]=this.getFoldWidget(c)),"start"==g){var y=this.getFoldWidgetRange(c);if(l||(l=y),y&&y.end.row>=r)break}c--}return{range:-1!==c&&y,firstRange:l}},this.onFoldWidgetClick=function(r,s){if(!this.$toggleFoldWidget(r,{children:(s=s.domEvent).shiftKey,all:s.ctrlKey||s.metaKey,siblings:s.altKey})){var l=s.target||s.srcElement;l&&/ace_fold-widget/.test(l.className)&&(l.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,s){if(this.getFoldWidget){var i=this.getFoldWidget(r),c=this.getLine(r),l="end"===i?-1:1,g=this.getFoldAt(r,-1===l?0:c.length,l);if(g)return s.children||s.all?this.removeFold(g):this.expandFold(g),g;var y=this.getFoldWidgetRange(r,!0);if(y&&!y.isMultiLine()&&(g=this.getFoldAt(y.start.row,y.start.column,1))&&y.isEqual(g.range))return this.removeFold(g),g;if(s.siblings){var E=this.getParentFoldRangeData(r);if(E.range)var T=E.range.start.row+1,D=E.range.end.row;this.foldAll(T,D,s.all?1e4:0)}else s.children?(D=y?y.end.row:this.getLength(),this.foldAll(r+1,D,s.all?1e4:0)):y&&(s.all&&(y.collapseChildren=1e4),this.addFold("...",y));return y}},this.toggleFoldWidget=function(r){var s=this.selection.getCursor().row;s=this.getRowFoldStart(s);var i=this.$toggleFoldWidget(s,{});if(!i){var c=this.getParentFoldRangeData(s,!0);if(i=c.range||c.firstRange){var l=this.getFoldAt(s=i.start.row,this.getLine(s).length,1);l?this.removeFold(l):this.addFold("...",i)}}},this.updateFoldWidgets=function(r){var s=r.start.row,i=r.end.row-s;if(0===i)this.foldWidgets[s]=null;else if("remove"==r.action)this.foldWidgets.splice(s,i+1,null);else{var c=Array(i+1);c.unshift(s,1),this.foldWidgets.splice.apply(this.foldWidgets,c)}},this.tokenizerUpdateFoldWidgets=function(r){var s=r.data;s.first!=s.last&&this.foldWidgets.length>s.first&&this.foldWidgets.splice(s.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,f,v){"use strict";var m=n("../token_iterator").TokenIterator,o=n("../range").Range;f.BracketMatch=function(){this.findMatchingBracket=function(u,h){if(0==u.column)return null;var r=h||this.getLine(u.row).charAt(u.column-1);if(""==r)return null;var s=r.match(/([\(\[\{])|([\)\]\}])/);return s?s[1]?this.$findClosingBracket(s[1],u):this.$findOpeningBracket(s[2],u):null},this.getBracketRange=function(u){var s,h=this.getLine(u.row),r=!0,i=h.charAt(u.column-1),c=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(c||(i=h.charAt(u.column),u={row:u.row,column:u.column+1},c=i&&i.match(/([\(\[\{])|([\)\]\}])/),r=!1),!c)return null;if(c[1]){if(!(l=this.$findClosingBracket(c[1],u)))return null;s=o.fromPoints(u,l),r||(s.end.column++,s.start.column--),s.cursor=s.end}else{var l;if(!(l=this.$findOpeningBracket(c[2],u)))return null;s=o.fromPoints(l,u),r||(s.start.column++,s.end.column--),s.cursor=s.start}return s},this.getMatchingBracketRanges=function(u){var h=this.getLine(u.row),r=h.charAt(u.column-1),s=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(s||(r=h.charAt(u.column),u={row:u.row,column:u.column+1},s=r&&r.match(/([\(\[\{])|([\)\]\}])/)),!s)return null;var i=new o(u.row,u.column-1,u.row,u.column),c=s[1]?this.$findClosingBracket(s[1],u):this.$findOpeningBracket(s[2],u);return c?[i,new o(c.row,c.column,c.row,c.column+1)]:[i]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(u,h,r){var s=this.$brackets[u],i=1,c=new m(this,h.row,h.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),l){r||(r=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var g=h.column-c.getCurrentTokenColumn()-2,y=l.value;;){for(;g>=0;){var E=y.charAt(g);if(E==s){if(0==(i-=1))return{row:c.getCurrentTokenRow(),column:g+c.getCurrentTokenColumn()}}else E==u&&(i+=1);g-=1}do{l=c.stepBackward()}while(l&&!r.test(l.type));if(null==l)break;g=(y=l.value).length-1}return null}},this.$findClosingBracket=function(u,h,r){var s=this.$brackets[u],i=1,c=new m(this,h.row,h.column),l=c.getCurrentToken();if(l||(l=c.stepForward()),l){r||(r=new RegExp("(\\.?"+l.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var g=h.column-c.getCurrentTokenColumn();;){for(var y=l.value,E=y.length;gF&&(this.$docRowCache.splice(F,L),this.$screenRowCache.splice(F,L))},this.$getRowCacheIndex=function(b,L){for(var F=0,ne=b.length-1;F<=ne;){var Y=F+ne>>1,Q=b[Y];if(L>Q)F=Y+1;else{if(!(L=L);Q++);return(ne=F[Q])?(ne.index=Q,ne.start=Y-ne.value.length,ne):null},this.setUndoManager=function(b){if(this.$undoManager=b,this.$informUndoManager&&this.$informUndoManager.cancel(),b){var L=this;b.addSession(this),this.$syncInformUndoManager=function(){L.$informUndoManager.cancel(),L.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(b){this.setOption("useSoftTabs",b)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(b){this.setOption("tabSize",b)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(b){return this.$useSoftTabs&&b.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(b){this.setOption("navigateWithinSoftTabs",b)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(b){this.setOption("overwrite",b)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(b,L){this.$decorations[b]||(this.$decorations[b]=""),this.$decorations[b]+=" "+L,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(b,L){this.$decorations[b]=(this.$decorations[b]||"").replace(" "+L,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(b){this.$breakpoints=[];for(var L=0;L0&&(ne=!!F.charAt(L-1).match(this.tokenRe)),ne||(ne=!!F.charAt(L).match(this.tokenRe)),ne)var Y=this.tokenRe;else Y=/^\s+$/.test(F.slice(L-1,L+1))?/\s/:this.nonTokenRe;var Q=L;if(Q>0){do{Q--}while(Q>=0&&F.charAt(Q).match(Y));Q++}for(var te=L;teb&&(b=L.screenWidth)}),this.lineWidgetWidth=b},this.$computeWidth=function(b){if(this.$modified||b){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var L=this.doc.getAllLines(),F=this.$rowLengthCache,ne=0,Y=0,Q=this.$foldData[Y],te=Q?Q.start.row:1/0,$=L.length,J=0;J<$;J++){if(J>te){if((J=Q.end.row+1)>=$)break;te=(Q=this.$foldData[Y++])?Q.start.row:1/0}null==F[J]&&(F[J]=this.$getStringScreenWidth(L[J])[0]),F[J]>ne&&(ne=F[J])}this.screenWidth=ne}},this.getLine=function(b){return this.doc.getLine(b)},this.getLines=function(b,L){return this.doc.getLines(b,L)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(b){return this.doc.getTextRange(b||this.selection.getRange())},this.insert=function(b,L){return this.doc.insert(b,L)},this.remove=function(b){return this.doc.remove(b)},this.removeFullLines=function(b,L){return this.doc.removeFullLines(b,L)},this.undoChanges=function(b,L){if(b.length){this.$fromUndo=!0;for(var F=b.length-1;-1!=F;F--){var ne=b[F];"insert"==ne.action||"remove"==ne.action?this.doc.revertDelta(ne):ne.folds&&this.addFolds(ne.folds)}!L&&this.$undoSelect&&(b.selectionBefore?this.selection.fromJSON(b.selectionBefore):this.selection.setRange(this.$getUndoSelection(b,!0))),this.$fromUndo=!1}},this.redoChanges=function(b,L){if(b.length){this.$fromUndo=!0;for(var F=0;Fb.end.column&&(Q.start.column+=$),Q.end.row==b.end.row&&Q.end.column>b.end.column&&(Q.end.column+=$)),te&&Q.start.row>=b.end.row&&(Q.start.row+=te,Q.end.row+=te)),Q.end=this.insert(Q.start,ne),Y.length){var J=b.start,ie=Q.start,te=ie.row-J.row,$=ie.column-J.column;this.addFolds(Y.map(function(Oe){return(Oe=Oe.clone()).start.row==J.row&&(Oe.start.column+=$),Oe.end.row==J.row&&(Oe.end.column+=$),Oe.start.row+=te,Oe.end.row+=te,Oe}))}return Q},this.indentRows=function(b,L,F){F=F.replace(/\t/g,this.getTabString());for(var ne=b;ne<=L;ne++)this.doc.insertInLine({row:ne,column:0},F)},this.outdentRows=function(b){for(var L=b.collapseRows(),F=new i(0,0,0,0),ne=this.getTabSize(),Y=L.start.row;Y<=L.end.row;++Y){var Q=this.getLine(Y);F.start.row=Y,F.end.row=Y;for(var te=0;te0){var ne;if((ne=this.getRowFoldEnd(L+F))>this.doc.getLength()-1)return 0;Y=ne-L}else b=this.$clipRowToDocument(b),Y=(L=this.$clipRowToDocument(L))-b+1;var Q=new i(b,0,L,Number.MAX_VALUE),te=this.getFoldsInRange(Q).map(function(J){return(J=J.clone()).start.row+=Y,J.end.row+=Y,J}),$=0==F?this.doc.getLines(b,L):this.doc.removeFullLines(b,L);return this.doc.insertFullLines(b+Y,$),te.length&&this.addFolds(te),Y},this.moveLinesUp=function(b,L){return this.$moveLines(b,L,-1)},this.moveLinesDown=function(b,L){return this.$moveLines(b,L,1)},this.duplicateLines=function(b,L){return this.$moveLines(b,L,0)},this.$clipRowToDocument=function(b){return Math.max(0,Math.min(b,this.doc.getLength()-1))},this.$clipColumnToRow=function(b,L){return L<0?0:Math.min(this.doc.getLine(b).length,L)},this.$clipPositionToDocument=function(b,L){if(L=Math.max(0,L),b<0)b=0,L=0;else{var F=this.doc.getLength();b>=F?(b=F-1,L=this.doc.getLine(F-1).length):L=Math.min(this.doc.getLine(b).length,L)}return{row:b,column:L}},this.$clipRangeToDocument=function(b){b.start.row<0?(b.start.row=0,b.start.column=0):b.start.column=this.$clipColumnToRow(b.start.row,b.start.column);var L=this.doc.getLength()-1;return b.end.row>L?(b.end.row=L,b.end.column=this.doc.getLine(L).length):b.end.column=this.$clipColumnToRow(b.end.row,b.end.column),b},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(b){if(b!=this.$useWrapMode){if(this.$useWrapMode=b,this.$modified=!0,this.$resetRowCache(0),b){var L=this.getLength();this.$wrapData=Array(L),this.$updateWrapData(0,L-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(b,L){(this.$wrapLimitRange.min!==b||this.$wrapLimitRange.max!==L)&&(this.$wrapLimitRange={min:b,max:L},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(b,L){var F=this.$wrapLimitRange;F.max<0&&(F={min:L,max:L});var ne=this.$constrainWrapLimit(b,F.min,F.max);return ne!=this.$wrapLimit&&ne>1&&(this.$wrapLimit=ne,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(b,L,F){return L&&(b=Math.max(L,b)),F&&(b=Math.min(F,b)),b},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(b){this.setWrapLimitRange(b,b)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(b){var L=this.$useWrapMode,F=b.action,ne=b.start,Y=b.end,Q=ne.row,te=Y.row,$=te-Q,J=null;if(this.$updating=!0,0!=$)if("remove"===F){this[L?"$wrapData":"$rowLengthCache"].splice(Q,$);var ie=this.$foldData;J=this.getFoldsInRange(b),this.removeFolds(J);var le=0;if(ae=this.getFoldLine(Y.row)){ae.addRemoveChars(Y.row,Y.column,ne.column-Y.column),ae.shiftRow(-$);var Oe=this.getFoldLine(Q);Oe&&Oe!==ae&&(Oe.merge(ae),ae=Oe),le=ie.indexOf(ae)+1}for(;le=Y.row&&ae.shiftRow(-$);te=Q}else{var Le=Array($);Le.unshift(Q,0);var Ye=L?this.$wrapData:this.$rowLengthCache;if(Ye.splice.apply(Ye,Le),ie=this.$foldData,le=0,ae=this.getFoldLine(Q)){var Je=ae.range.compareInside(ne.row,ne.column);0==Je?(ae=ae.split(ne.row,ne.column))&&(ae.shiftRow($),ae.addRemoveChars(te,0,Y.column-ne.column)):-1==Je&&(ae.addRemoveChars(Q,0,Y.column-ne.column),ae.shiftRow($)),le=ie.indexOf(ae)+1}for(;le=Q&&ae.shiftRow($)}}else $=Math.abs(b.start.column-b.end.column),"remove"===F&&(J=this.getFoldsInRange(b),this.removeFolds(J),$=-$),(ae=this.getFoldLine(Q))&&ae.addRemoveChars(Q,ne.column,$);return L&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,L?this.$updateWrapData(Q,te):this.$updateRowLengthCache(Q,te),J},this.$updateRowLengthCache=function(b,L,F){this.$rowLengthCache[b]=null,this.$rowLengthCache[L]=null},this.$updateWrapData=function(b,L){var te,$,F=this.doc.getAllLines(),ne=this.getTabSize(),Y=this.$wrapData,Q=this.$wrapLimit,J=b;for(L=Math.min(L,F.length-1);J<=L;)($=this.getFoldLine(J,$))?(te=[],$.walk(function(ie,ae,le,Oe){var Le;if(null!=ie){(Le=this.$getDisplayTokens(ie,te.length))[0]=D;for(var Ye=1;Ye=4352&&b<=4447||b>=4515&&b<=4519||b>=4602&&b<=4607||b>=9001&&b<=9002||b>=11904&&b<=11929||b>=11931&&b<=12019||b>=12032&&b<=12245||b>=12272&&b<=12283||b>=12288&&b<=12350||b>=12353&&b<=12438||b>=12441&&b<=12543||b>=12549&&b<=12589||b>=12593&&b<=12686||b>=12688&&b<=12730||b>=12736&&b<=12771||b>=12784&&b<=12830||b>=12832&&b<=12871||b>=12880&&b<=13054||b>=13056&&b<=19903||b>=19968&&b<=42124||b>=42128&&b<=42182||b>=43360&&b<=43388||b>=44032&&b<=55203||b>=55216&&b<=55238||b>=55243&&b<=55291||b>=63744&&b<=64255||b>=65040&&b<=65049||b>=65072&&b<=65106||b>=65108&&b<=65126||b>=65128&&b<=65131||b>=65281&&b<=65376||b>=65504&&b<=65510)}this.$computeWrapSplits=function(b,L,F){if(0==b.length)return[];var ne=[],Y=b.length,Q=0,te=0,$=this.$wrapAsCode,J=this.$indentedSoftWrap,ie=L<=Math.max(2*F,8)||!1===J?0:Math.floor(L/2);function le(Je){for(var gt=Je-Q,Ue=Q;UeL-Oe;){var Le=Q+L-Oe;if(b[Le-1]>=10&&b[Le]>=10)le(Le);else if(b[Le]!=D&&b[Le]!=O){for(var Ye=Math.max(Le-(L-(L>>2)),Q-1);Le>Ye&&b[Le]Ye&&b[Le]Ye&&9==b[Le];)Le--}else for(;Le>Ye&&b[Le]<10;)Le--;Le>Ye?le(++Le):(2==b[Le=Q+L]&&Le--,le(Le-Oe))}else{for(;Le!=Q-1&&b[Le]!=D;Le--);if(Le>Q){le(Le);continue}for(Le=Q+L;Le39&&Q<48||Q>57&&Q<64?F.push(9):Q>=4352&&I(Q)?F.push(1,2):F.push(1)}return F},this.$getStringScreenWidth=function(b,L,F){if(0==L)return[0,0];var ne,Y;for(null==L&&(L=1/0),F=F||0,Y=0;Y=4352&&I(ne)?F+=2:F+=1,!(F>L));Y++);return[F,Y]},this.lineWidgets=null,this.getRowLength=function(b){var L=1;return this.lineWidgets&&(L+=this.lineWidgets[b]&&this.lineWidgets[b].rowCount||0),this.$useWrapMode&&this.$wrapData[b]?this.$wrapData[b].length+L:L},this.getRowLineCount=function(b){return this.$useWrapMode&&this.$wrapData[b]?this.$wrapData[b].length+1:1},this.getRowWrapIndent=function(b){if(this.$useWrapMode){var L=this.screenToDocumentPosition(b,Number.MAX_VALUE),F=this.$wrapData[L.row];return F.length&&F[0]=0){$=ie[ae],Y=this.$docRowCache[ae];var Oe=b>ie[le-1]}else Oe=!le;for(var Le=this.getLength()-1,Ye=this.getNextFoldLine(Y),Je=Ye?Ye.start.row:1/0;$<=b&&!($+(J=this.getRowLength(Y))>b||Y>=Le);)$+=J,++Y>Je&&(Je=(Ye=this.getNextFoldLine(Y=Ye.end.row+1,Ye))?Ye.start.row:1/0),Oe&&(this.$docRowCache.push(Y),this.$screenRowCache.push($));if(Ye&&Ye.start.row<=Y)ne=this.getFoldDisplayLine(Ye),Y=Ye.start.row;else{if($+J<=b||Y>Le)return{row:Le,column:this.getLine(Le).length};ne=this.getLine(Y),Ye=null}var gt=0,Ue=Math.floor(b-$);if(this.$useWrapMode){var tt=this.$wrapData[Y];tt&&(te=tt[Ue],Ue>0&&tt.length&&(gt=tt.indent,ne=ne.substring(Q=tt[Ue-1]||tt[tt.length-1])))}return void 0!==F&&this.$bidiHandler.isBidiRow($+Ue,Y,Ue)&&(L=this.$bidiHandler.offsetToCol(F)),Q+=this.$getStringScreenWidth(ne,L-gt)[1],this.$useWrapMode&&Q>=te&&(Q=te-1),Ye?Ye.idxToPosition(Q):{row:Y,column:Q}},this.documentToScreenPosition=function(b,L){if(void 0===L)var F=this.$clipPositionToDocument(b.row,b.column);else F=this.$clipPositionToDocument(b,L);var Q,ne=0,Y=null;(Q=this.getFoldAt(b=F.row,L=F.column,1))&&(b=Q.start.row,L=Q.start.column);var te,$=0,J=this.$docRowCache,ie=this.$getRowCacheIndex(J,b),ae=J.length;if(ae&&ie>=0){$=J[ie],ne=this.$screenRowCache[ie];var le=b>J[ae-1]}else le=!ae;for(var Oe=this.getNextFoldLine($),Le=Oe?Oe.start.row:1/0;$=Le){if((te=Oe.end.row+1)>b)break;Le=(Oe=this.getNextFoldLine(te,Oe))?Oe.start.row:1/0}else te=$+1;ne+=this.getRowLength($),$=te,le&&(this.$docRowCache.push($),this.$screenRowCache.push(ne))}var Ye="";Oe&&$>=Le?(Ye=this.getFoldDisplayLine(Oe,b,L),Y=Oe.start.row):(Ye=this.getLine(b).substring(0,L),Y=b);var Je=0;if(this.$useWrapMode){var gt=this.$wrapData[Y];if(gt){for(var Ue=0;Ye.length>=gt[Ue];)ne++,Ue++;Ye=Ye.substring(gt[Ue-1]||0,Ye.length),Je=Ue>0?gt.indent:0}}return this.lineWidgets&&this.lineWidgets[$]&&this.lineWidgets[$].rowsAbove&&(ne+=this.lineWidgets[$].rowsAbove),{row:ne,column:Je+this.$getStringScreenWidth(Ye)[0]}},this.documentToScreenColumn=function(b,L){return this.documentToScreenPosition(b,L).column},this.documentToScreenRow=function(b,L){return this.documentToScreenPosition(b,L).row},this.getScreenLength=function(){var b=0,L=null;if(this.$useWrapMode)for(var Y=this.$wrapData.length,Q=0,ne=0,te=(L=this.$foldData[ne++])?L.start.row:1/0;Qte&&(Q=L.end.row+1,te=(L=this.$foldData[ne++])?L.start.row:1/0)}else{b=this.getLength();var F=this.$foldData;for(ne=0;neF);Q++);return[ne,Q]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=I}.call(y.prototype),n("./edit_session/folding").Folding.call(y.prototype),n("./edit_session/bracket_match").BracketMatch.call(y.prototype),u.defineOptions(y.prototype,"session",{wrap:{set:function(E){if(E&&"off"!=E?"free"==E?E=!0:"printMargin"==E?E=-1:"string"==typeof E&&(E=parseInt(E,10)||!1):E=!1,this.$wrap!=E)if(this.$wrap=E,E){var T="number"==typeof E?E:null;this.setWrapLimitRange(T,T),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(E){(E="auto"==E?"text"!=this.$mode.type:"text"!=E)!=this.$wrapAsCode&&(this.$wrapAsCode=E,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(E){this.$useWorker=E,this.$stopWorker(),E&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(E){(E=parseInt(E))>0&&this.$tabSize!==E&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=E,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(E){this.setFoldStyle(E)},handlesSet:!0},overwrite:{set:function(E){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(E){this.doc.setNewLineMode(E)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(E){this.setMode(E)},get:function(){return this.$modeId},handlesSet:!0}}),f.EditSession=y}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,f,v){"use strict";var m=n("./lib/lang"),o=n("./lib/oop"),d=n("./range").Range,u=function(){this.$options={}};(function(){this.set=function(r){return o.mixin(this.$options,r),this},this.getOptions=function(){return m.copyObject(this.$options)},this.setOptions=function(r){this.$options=r},this.find=function(r){var s=this.$options,i=this.$matchIterator(r,s);if(!i)return!1;var c=null;return i.forEach(function(l,g,y,E){return c=new d(l,g,y,E),!(g==E&&s.start&&s.start.start&&0!=s.skipCurrent&&c.isEqual(s.start)&&(c=null,1))}),c},this.findAll=function(r){var s=this.$options;if(!s.needle)return[];this.$assembleRegExp(s);var i=s.range,c=i?r.getLines(i.start.row,i.end.row):r.doc.getAllLines(),l=[],g=s.re;if(s.$isMultiLine){var T,y=g.length,E=c.length-y;e:for(var D=g.offset||0;D<=E;D++){for(var O=0;OS||(l.push(T=new d(D,S,D+y-1,M)),y>2&&(D=D+y-2))}}else for(var I=0;Ine&&l[O].end.row==i.end.row;)O--;for(l=l.slice(I,O+1),I=0,O=l.length;I=E;S--)if(w(S,Number.MAX_VALUE,A))return;if(0!=s.wrap)for(S=T,E=y.row;S>=E;S--)if(w(S,Number.MAX_VALUE,A))return}};else D=function(S){var M=y.row;if(!w(M,y.column,S)){for(M+=1;M<=T;M++)if(w(M,0,S))return;if(0!=s.wrap)for(M=E,T=y.row;M<=T;M++)if(w(M,0,S))return}};if(s.$isMultiLine)var O=i.length,w=function(A,S,M){var I=c?A-O+1:A;if(!(I<0||I+O>r.getLength())){var b=r.getLine(I),L=b.search(i[0]);if(!(!c&&LS)&&M(I,L,I+O-1,ne))return!0}}};else w=c?function(S,M,I){var F,b=r.getLine(S),L=[],ne=0;for(i.lastIndex=0;F=i.exec(b);){if(ne=F.index,!(Y=F[0].length)){if(ne>=b.length)break;i.lastIndex=ne+=1}if(F.index+Y>M)break;L.push(F.index,Y)}for(var Q=L.length-1;Q>=0;Q-=2){var Y,te=L[Q-1];if(I(S,te,S,te+(Y=L[Q])))return!0}}:function(S,M,I){var L,F,b=r.getLine(S);for(i.lastIndex=M;F=i.exec(b);){var ne=F[0].length;if(I(S,L=F.index,S,L+ne))return!0;if(!ne&&(i.lastIndex=L+=1,L>=b.length))return!1}};return{forEach:D}}}).call(u.prototype),f.Search=u}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("../lib/keys"),o=n("../lib/useragent"),d=m.KEY_MODS;function u(r,s){this.platform=s||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(r),this.$singleCommand=!0}function h(r,s){u.call(this,r,s),this.$singleCommand=!1}h.prototype=u.prototype,function(){function r(s){return"object"==typeof s&&s.bindKey&&s.bindKey.position||(s.isDefault?-100:0)}this.addCommand=function(s){this.commands[s.name]&&this.removeCommand(s),this.commands[s.name]=s,s.bindKey&&this._buildKeyHash(s)},this.removeCommand=function(s,i){var c=s&&("string"==typeof s?s:s.name);s=this.commands[c],i||delete this.commands[c];var l=this.commandKeyBinding;for(var g in l){var y=l[g];if(y==s)delete l[g];else if(Array.isArray(y)){var E=y.indexOf(s);-1!=E&&(y.splice(E,1),1==y.length&&(l[g]=y[0]))}}},this.bindKey=function(s,i,c){if("object"==typeof s&&s&&(null==c&&(c=s.position),s=s[this.platform]),s){if("function"==typeof i)return this.addCommand({exec:i,bindKey:s,name:i.name||s});s.split("|").forEach(function(l){var g="";if(-1!=l.indexOf(" ")){var y=l.split(/\s+/);l=y.pop(),y.forEach(function(D){var O=this.parseKeys(D);this._addCommandToBinding(g+=(g?" ":"")+(d[O.hashId]+O.key),"chainKeys")},this),g+=" "}var E=this.parseKeys(l);this._addCommandToBinding(g+(d[E.hashId]+E.key),i,c)},this)}},this._addCommandToBinding=function(s,i,c){var g,l=this.commandKeyBinding;if(i)if(!l[s]||this.$singleCommand)l[s]=i;else{Array.isArray(l[s])?-1!=(g=l[s].indexOf(i))&&l[s].splice(g,1):l[s]=[l[s]],"number"!=typeof c&&(c=r(i));var y=l[s];for(g=0;gc);g++);y.splice(g,0,i)}else delete l[s]},this.addCommands=function(s){s&&Object.keys(s).forEach(function(i){var c=s[i];if(c){if("string"==typeof c)return this.bindKey(c,i);"function"==typeof c&&(c={exec:c}),"object"==typeof c&&(c.name||(c.name=i),this.addCommand(c))}},this)},this.removeCommands=function(s){Object.keys(s).forEach(function(i){this.removeCommand(s[i])},this)},this.bindKeys=function(s){Object.keys(s).forEach(function(i){this.bindKey(i,s[i])},this)},this._buildKeyHash=function(s){this.bindKey(s.bindKey,s)},this.parseKeys=function(s){var i=s.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(T){return T}),c=i.pop(),l=m[c];if(m.FUNCTION_KEYS[l])c=m.FUNCTION_KEYS[l].toLowerCase();else{if(!i.length)return{key:c,hashId:-1};if(1==i.length&&"shift"==i[0])return{key:c.toUpperCase(),hashId:-1}}for(var g=0,y=i.length;y--;){var E=m.KEY_MODS[i[y]];if(null==E)return"undefined"!=typeof console&&console.error("invalid modifier "+i[y]+" in "+s),!1;g|=E}return{key:c,hashId:g}},this.findKeyCommand=function(i,c){return this.commandKeyBinding[d[i]+c]},this.handleKeyboard=function(s,i,c,l){if(!(l<0)){var g=d[i]+c,y=this.commandKeyBinding[g];return s.$keyChain&&(s.$keyChain+=" "+g,y=this.commandKeyBinding[s.$keyChain]||y),!y||"chainKeys"!=y&&"chainKeys"!=y[y.length-1]?(s.$keyChain&&(i&&4!=i||1!=c.length?(-1==i||l>0)&&(s.$keyChain=""):s.$keyChain=s.$keyChain.slice(0,-g.length-1)),{command:y}):(s.$keyChain=s.$keyChain||g,{command:"null"})}},this.getStatusText=function(s,i){return i.$keyChain||""}}.call(u.prototype),f.HashHandler=u,f.MultiHashHandler=h}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,f,v){"use strict";var m=n("../lib/oop"),o=n("../keyboard/hash_handler").MultiHashHandler,d=n("../lib/event_emitter").EventEmitter,u=function(h,r){o.call(this,r,h),this.byName=this.commands,this.setDefaultHandler("exec",function(s){return s.command.exec(s.editor,s.args||{})})};m.inherits(u,o),function(){m.implement(this,d),this.exec=function(h,r,s){if(Array.isArray(h)){for(var i=h.length;i--;)if(this.exec(h[i],r,s))return!0;return!1}if("string"==typeof h&&(h=this.commands[h]),!h||r&&r.$readOnly&&!h.readOnly||0!=this.$checkCommandState&&h.isAvailable&&!h.isAvailable(r))return!1;var c={editor:r,command:h,args:s};return c.returnValue=this._emit("exec",c),this._signal("afterExec",c),!1!==c.returnValue},this.toggleRecording=function(h){if(!this.$inReplay)return h&&h._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(r){this.macro.push([r.command,r.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(h){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(h);try{this.$inReplay=!0,this.macro.forEach(function(r){"string"==typeof r?this.exec(r,h):this.exec(r[0],h,r[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(h){return h.map(function(r){return"string"!=typeof r[0]&&(r[0]=r[0].name),r[1]||(r=r[0]),r})}}.call(u.prototype),f.CommandManager=u}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,f,v){"use strict";var m=n("../lib/lang"),o=n("../config"),d=n("../range").Range;function u(r,s){return{win:r,mac:s}}f.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:u("Ctrl-,","Command-,"),exec:function(r){o.loadModule("ace/ext/settings_menu",function(s){s.init(r),r.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:u("Alt-E","F4"),exec:function(r){o.loadModule("./ext/error_marker",function(s){s.showErrorMarker(r,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:u("Alt-Shift-E","Shift-F4"),exec:function(r){o.loadModule("./ext/error_marker",function(s){s.showErrorMarker(r,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:u("Ctrl-A","Command-A"),exec:function(r){r.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:u(null,"Ctrl-L"),exec:function(r){r.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:u("Ctrl-L","Command-L"),exec:function(r,s){"number"==typeof s&&!isNaN(s)&&r.gotoLine(s),r.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:u("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(r){r.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:u("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(r){r.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:u("F2","F2"),exec:function(r){r.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:u("Alt-F2","Alt-F2"),exec:function(r){r.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(r){r.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:u("Alt-0","Command-Option-0"),exec:function(r){r.session.foldAll(),r.session.unfold(r.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:u("Alt-Shift-0","Command-Option-Shift-0"),exec:function(r){r.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:u("Ctrl-K","Command-G"),exec:function(r){r.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:u("Ctrl-Shift-K","Command-Shift-G"),exec:function(r){r.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:u("Alt-K","Ctrl-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:u("Alt-Shift-K","Ctrl-Shift-G"),exec:function(r){r.selection.isEmpty()?r.selection.selectWord():r.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:u("Ctrl-F","Command-F"),exec:function(r){o.loadModule("ace/ext/searchbox",function(s){s.Search(r)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(r){r.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:u("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(r){r.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:u("Ctrl-Home","Command-Home|Command-Up"),exec:function(r){r.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:u("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(r){r.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:u("Up","Up|Ctrl-P"),exec:function(r,s){r.navigateUp(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:u("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(r){r.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:u("Ctrl-End","Command-End|Command-Down"),exec:function(r){r.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:u("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(r){r.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:u("Down","Down|Ctrl-N"),exec:function(r,s){r.navigateDown(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:u("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(r){r.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:u("Ctrl-Left","Option-Left"),exec:function(r){r.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:u("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:u("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(r){r.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:u("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(r){r.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:u("Left","Left|Ctrl-B"),exec:function(r,s){r.navigateLeft(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:u("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(r){r.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:u("Ctrl-Right","Option-Right"),exec:function(r){r.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:u("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:u("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(r){r.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:u("Shift-Right","Shift-Right"),exec:function(r){r.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:u("Right","Right|Ctrl-F"),exec:function(r,s){r.navigateRight(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(r){r.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:u(null,"Option-PageDown"),exec:function(r){r.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:u("PageDown","PageDown|Ctrl-V"),exec:function(r){r.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(r){r.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:u(null,"Option-PageUp"),exec:function(r){r.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(r){r.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:u("Ctrl-Up",null),exec:function(r){r.renderer.scrollBy(0,-2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:u("Ctrl-Down",null),exec:function(r){r.renderer.scrollBy(0,2*r.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(r){r.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(r){r.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:u("Ctrl-Alt-E","Command-Option-E"),exec:function(r){r.commands.toggleRecording(r)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:u("Ctrl-Shift-E","Command-Shift-E"),exec:function(r){r.commands.replay(r)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:u("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(r){r.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:u("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(r){r.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:u("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(r){r.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:u(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(r){},readOnly:!0},{name:"cut",description:"Cut",exec:function(r){var i=r.$copyWithEmptySelection&&r.selection.isEmpty()?r.selection.getLineRange():r.selection.getRange();r._emit("cut",i),i.isEmpty()||r.session.remove(i),r.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(r,s){r.$handlePaste(s)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:u("Ctrl-D","Command-D"),exec:function(r){r.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:u("Ctrl-Shift-D","Command-Shift-D"),exec:function(r){r.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:u("Ctrl-Alt-S","Command-Alt-S"),exec:function(r){r.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:u("Ctrl-/","Command-/"),exec:function(r){r.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:u("Ctrl-Shift-/","Command-Shift-/"),exec:function(r){r.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:u("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(r){r.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:u("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(r){r.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:u("Ctrl-H","Command-Option-F"),exec:function(r){o.loadModule("ace/ext/searchbox",function(s){s.Search(r,!0)})}},{name:"undo",description:"Undo",bindKey:u("Ctrl-Z","Command-Z"),exec:function(r){r.undo()}},{name:"redo",description:"Redo",bindKey:u("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(r){r.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:u("Alt-Shift-Up","Command-Option-Up"),exec:function(r){r.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:u("Alt-Up","Option-Up"),exec:function(r){r.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:u("Alt-Shift-Down","Command-Option-Down"),exec:function(r){r.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:u("Alt-Down","Option-Down"),exec:function(r){r.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:u("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(r){r.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:u("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(r){r.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:u("Shift-Delete",null),exec:function(r){if(!r.selection.isEmpty())return!1;r.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:u("Alt-Backspace","Command-Backspace"),exec:function(r){r.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:u("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(r){r.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:u("Ctrl-Shift-Backspace",null),exec:function(r){var s=r.selection.getRange();s.start.column=0,r.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:u("Ctrl-Shift-Delete",null),exec:function(r){var s=r.selection.getRange();s.end.column=Number.MAX_VALUE,r.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:u("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(r){r.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:u("Ctrl-Delete","Alt-Delete"),exec:function(r){r.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:u("Shift-Tab","Shift-Tab"),exec:function(r){r.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:u("Tab","Tab"),exec:function(r){r.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:u("Ctrl-[","Ctrl-["),exec:function(r){r.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:u("Ctrl-]","Ctrl-]"),exec:function(r){r.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(r,s){r.insert(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(r,s){r.insert(m.stringRepeat(s.text||"",s.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:u(null,"Ctrl-O"),exec:function(r){r.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:u("Alt-Shift-X","Ctrl-T"),exec:function(r){r.transposeLetters()},multiSelectAction:function(r){r.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:u("Ctrl-U","Ctrl-U"),exec:function(r){r.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:u("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(r){r.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:u(null,null),exec:function(r){r.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:u("Ctrl-Shift-L","Command-Shift-L"),exec:function(r){var s=r.selection.getRange();s.start.column=s.end.column=0,s.end.row++,r.selection.setRange(s,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:u(null,null),exec:function(r){for(var s=r.selection.isBackwards(),i=s?r.selection.getSelectionLead():r.selection.getSelectionAnchor(),c=s?r.selection.getSelectionAnchor():r.selection.getSelectionLead(),l=r.session.doc.getLine(i.row).length,y=r.session.doc.getTextRange(r.selection.getRange()).replace(/\n\s*/," ").length,E=r.session.doc.getLine(i.row),T=i.row+1;T<=c.row+1;T++){var D=m.stringTrimLeft(m.stringTrimRight(r.session.doc.getLine(T)));0!==D.length&&(D=" "+D),E+=D}c.row+10?(r.selection.moveCursorTo(i.row,i.column),r.selection.selectTo(i.row,i.column+y)):(l=r.session.doc.getLine(i.row).length>l?l+1:l,r.selection.moveCursorTo(i.row,l))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:u(null,null),exec:function(r){var s=r.session.doc.getLength()-1,i=r.session.doc.getLine(s).length,c=r.selection.rangeList.ranges,l=[];c.length<1&&(c=[r.selection.getRange()]);for(var g=0;g=F.lastRow||L.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==b&&this.renderer.animateScrolling(this.curOp.scrollTop)}var ne=this.selection.toJSON();this.curOp.selectionAfter=ne,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(ne),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(M){if(this.$mergeUndoDeltas){var I=this.prevOp,b=this.$mergeableCommands,L=I.command&&M.command.name==I.command.name;if("insertstring"==M.command.name){var F=M.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),L=L&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(I.args)),this.mergeNextCommand=!0}else L=L&&-1!==b.indexOf(M.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(L=!1),L?this.session.mergeUndoDeltas=!0:-1!==b.indexOf(M.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(M,I){if(M&&"string"==typeof M&&"ace"!=M){this.$keybindingId=M;var b=this;D.loadModule(["keybinding",M],function(L){b.$keybindingId==M&&b.keyBinding.setKeyboardHandler(L&&L.handler),I&&I()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(M),I&&I()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(M){if(this.session!=M){this.curOp&&this.endOperation(),this.curOp={};var I=this.session;if(I){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var b=this.session.getSelection();b.off("changeCursor",this.$onCursorChange),b.off("changeSelection",this.$onSelectionChange)}this.session=M,M?(this.$onDocumentChange=this.onDocumentChange.bind(this),M.on("change",this.$onDocumentChange),this.renderer.setSession(M),this.$onChangeMode=this.onChangeMode.bind(this),M.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),M.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),M.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),M.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),M.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),M.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=M.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(M)),this._signal("changeSession",{session:M,oldSession:I}),this.curOp=null,I&&I._signal("changeEditor",{oldEditor:this}),M&&M._signal("changeEditor",{editor:this}),M&&M.bgTokenizer&&M.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(M,I){return this.session.doc.setValue(M),I?1==I?this.navigateFileEnd():-1==I&&this.navigateFileStart():this.selectAll(),M},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(M){this.renderer.onResize(M)},this.setTheme=function(M,I){this.renderer.setTheme(M,I)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(M){this.renderer.setStyle(M)},this.unsetStyle=function(M){this.renderer.unsetStyle(M)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(M){this.setOption("fontSize",M)},this.$highlightBrackets=function(){if(!this.$highlightPending){var M=this;this.$highlightPending=!0,setTimeout(function(){M.$highlightPending=!1;var I=M.session;if(I&&I.bgTokenizer){I.$bracketHighlight&&(I.$bracketHighlight.markerIds.forEach(function(F){I.removeMarker(F)}),I.$bracketHighlight=null);var b=I.getMatchingBracketRanges(M.getCursorPosition());if(!b&&I.$mode.getMatching&&(b=I.$mode.getMatching(M.session)),b){var L="ace_bracket";Array.isArray(b)?1==b.length&&(L="ace_error_bracket"):b=[b],2==b.length&&(0==g.comparePoints(b[0].end,b[1].start)?b=[g.fromPoints(b[0].start,b[1].end)]:0==g.comparePoints(b[0].start,b[1].end)&&(b=[g.fromPoints(b[1].start,b[0].end)])),I.$bracketHighlight={ranges:b,markerIds:b.map(function(F){return I.addMarker(F,L,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var M=this;this.$highlightTagPending=!0,setTimeout(function(){M.$highlightTagPending=!1;var I=M.session;if(I&&I.bgTokenizer){var b=M.getCursorPosition(),L=new O(M.session,b.row,b.column),F=L.getCurrentToken();if(!F||!/\b(?:tag-open|tag-name)/.test(F.type))return I.removeMarker(I.$tagHighlight),void(I.$tagHighlight=null);if(-1===F.type.indexOf("tag-open")||(F=L.stepForward())){var ne=F.value,Y=F.value,Q=0,te=L.stepBackward();if("<"===te.value)do{te=F,(F=L.stepForward())&&(-1!==F.type.indexOf("tag-name")?ne===(Y=F.value)&&("<"===te.value?Q++:""===F.value&&Q--)}while(F&&Q>=0);else{do{if(F=te,te=L.stepBackward(),F)if(-1!==F.type.indexOf("tag-name"))ne===F.value&&("<"===te.value?Q++:""===F.value){for(var $=0,J=te;J;){if(-1!==J.type.indexOf("tag-name")&&J.value===ne){Q--;break}if("<"===J.value)break;J=L.stepBackward(),$++}for(var ie=0;ie<$;ie++)L.stepForward()}}while(te&&Q<=0);L.stepForward()}if(!F)return I.removeMarker(I.$tagHighlight),void(I.$tagHighlight=null);var ae=L.getCurrentTokenRow(),le=L.getCurrentTokenColumn(),Oe=new g(ae,le,ae,le+F.value.length),Le=I.$backMarkers[I.$tagHighlight];I.$tagHighlight&&null!=Le&&0!==Oe.compareRange(Le.range)&&(I.removeMarker(I.$tagHighlight),I.$tagHighlight=null),I.$tagHighlight||(I.$tagHighlight=I.addMarker(Oe,"ace_bracket","text"))}}},50)}},this.focus=function(){var M=this;setTimeout(function(){M.isFocused()||M.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(M){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",M))},this.onBlur=function(M){!this.$isFocused||(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",M))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(M){this.renderer.updateLines(M.start.row,M.start.row==M.end.row?M.end.row:1/0,this.session.$useWrapMode),this._signal("change",M),this.$cursorChange()},this.onTokenizerUpdate=function(M){var I=M.data;this.renderer.updateLines(I.first,I.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var I,M=this.getSession();if(this.$highlightActiveLine&&(("line"!=this.$selectionStyle||!this.selection.isMultiLine())&&(I=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(I=!1),this.renderer.$maxLines&&1===this.session.getLength()&&!(this.renderer.$minLines>1)&&(I=!1)),M.$highlightLineMarker&&!I)M.removeMarker(M.$highlightLineMarker.id),M.$highlightLineMarker=null;else if(!M.$highlightLineMarker&&I){var b=new g(I.row,I.column,I.row,1/0);b.id=M.addMarker(b,"ace_active-line","screenLine"),M.$highlightLineMarker=b}else I&&(M.$highlightLineMarker.start.row=I.row,M.$highlightLineMarker.end.row=I.row,M.$highlightLineMarker.start.column=I.column,M._signal("changeBackMarker"))},this.onSelectionChange=function(M){var I=this.session;if(I.$selectionMarker&&I.removeMarker(I.$selectionMarker),I.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var b=this.selection.getRange(),L=this.getSelectionStyle();I.$selectionMarker=I.addMarker(b,"ace_selection",L)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var M=this.session,I=this.getSelectionRange();if(!I.isEmpty()&&!I.isMultiLine()){var b=I.start.column,L=I.end.column,F=M.getLine(I.start.row),ne=F.substring(b,L);if(!(ne.length>5e3)&&/[\w\d]/.test(ne)){var Y=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:ne}),Q=F.substring(b-1,L+1);if(Y.test(Q))return Y}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(M){this.renderer.updateText(),this._emit("changeMode",M)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var M=this.getSelectedText(),I=this.session.doc.getNewLineCharacter(),b=!1;if(!M&&this.$copyWithEmptySelection){b=!0;for(var L=this.selection.getAllRanges(),F=0;FJ.search(/\S|$/)){var Q=J.substr(F.column).search(/\S|$/);b.doc.removeInLine(F.row,F.column,F.column+Q)}}this.clearSelection();var te=F.column,$=b.getState(F.row),ie=(J=b.getLine(F.row),L.checkOutdent($,J,M));if(b.insert(F,M),ne&&ne.selection&&this.selection.setSelectionRange(2==ne.selection.length?new g(F.row,te+ne.selection[0],F.row,te+ne.selection[1]):new g(F.row+ne.selection[0],ne.selection[1],F.row+ne.selection[2],ne.selection[3])),this.$enableAutoIndent){if(b.getDocument().isNewLine(M)){var ae=L.getNextLineIndent($,J.slice(0,F.column),b.getTabString());b.insert({row:F.row+1,column:0},ae)}ie&&L.autoOutdent($,b,F.row)}},this.autoIndent=function(){var b,L,M=this.session,I=M.getMode();if(this.selection.isEmpty())b=0,L=M.doc.getLength()-1;else{var F=this.getSelectionRange();b=F.start.row,L=F.end.row}for(var te,$,J,ne="",Y="",Q="",ie=M.getTabString(),ae=b;ae<=L;ae++)ae>0&&(ne=M.getState(ae-1),Y=M.getLine(ae-1),Q=I.getNextLineIndent(ne,Y,ie)),te=M.getLine(ae),Q!==($=I.$getIndent(te))&&($.length>0&&(J=new g(ae,0,ae,$.length),M.remove(J)),Q.length>0&&M.insert({row:ae,column:0},Q)),I.autoOutdent(ne,M,ae)},this.onTextInput=function(M,I){if(!I)return this.keyBinding.onTextInput(M);this.startOperation({command:{name:"insertstring"}});var b=this.applyComposition.bind(this,M,I);this.selection.rangeCount?this.forEachSelection(b):b(),this.endOperation()},this.applyComposition=function(M,I){var b;(I.extendLeft||I.extendRight)&&((b=this.selection.getRange()).start.column-=I.extendLeft,b.end.column+=I.extendRight,b.start.column<0&&(b.start.row--,b.start.column+=this.session.getLine(b.start.row).length+1),this.selection.setRange(b),!M&&!b.isEmpty()&&this.remove()),(M||!this.selection.isEmpty())&&this.insert(M,!0),(I.restoreStart||I.restoreEnd)&&((b=this.selection.getRange()).start.column-=I.restoreStart,b.end.column-=I.restoreEnd,this.selection.setRange(b))},this.onCommandKey=function(M,I,b){return this.keyBinding.onCommandKey(M,I,b)},this.setOverwrite=function(M){this.session.setOverwrite(M)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(M){this.setOption("scrollSpeed",M)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(M){this.setOption("dragDelay",M)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(M){this.setOption("selectionStyle",M)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(M){this.setOption("highlightActiveLine",M)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(M){this.setOption("highlightGutterLine",M)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(M){this.setOption("highlightSelectedWord",M)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(M){this.renderer.setAnimatedScroll(M)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(M){this.renderer.setShowInvisibles(M)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(M){this.renderer.setDisplayIndentGuides(M)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(M){this.renderer.setShowPrintMargin(M)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(M){this.renderer.setPrintMarginColumn(M)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(M){this.setOption("readOnly",M)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(M){this.setOption("behavioursEnabled",M)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(M){this.setOption("wrapBehavioursEnabled",M)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(M){this.setOption("showFoldWidgets",M)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(M){this.setOption("fadeFoldWidgets",M)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(M){this.selection.isEmpty()&&("left"==M?this.selection.selectLeft():this.selection.selectRight());var I=this.getSelectionRange();if(this.getBehavioursEnabled()){var b=this.session,L=b.getState(I.start.row),F=b.getMode().transformAction(L,"deletion",this,b,I);if(0===I.end.column){var ne=b.getTextRange(I);if("\n"==ne[ne.length-1]){var Y=b.getLine(I.end.row);/^\s+$/.test(Y)&&(I.end.column=Y.length)}}F&&(I=F)}this.session.remove(I),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var M=this.getSelectionRange();M.start.column==M.end.column&&M.start.row==M.end.row&&(M.end.column=0,M.end.row++),this.session.remove(M),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var M=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(M)},this.transposeLetters=function(){if(this.selection.isEmpty()){var M=this.getCursorPosition(),I=M.column;if(0!==I){var L,F,b=this.session.getLine(M.row);IQ.toLowerCase()?1:0});var F=new g(0,0,0,0);for(L=M.first;L<=M.last;L++){var ne=I.getLine(L);F.start.row=L,F.end.row=L,F.end.column=ne.length,I.replace(F,b[L-M.first])}},this.toggleCommentLines=function(){var M=this.session.getState(this.getCursorPosition().row),I=this.$getSelectedRows();this.session.getMode().toggleCommentLines(M,this.session,I.first,I.last)},this.toggleBlockComment=function(){var M=this.getCursorPosition(),I=this.session.getState(M.row),b=this.getSelectionRange();this.session.getMode().toggleBlockComment(I,this.session,b,M)},this.getNumberAt=function(M,I){var b=/[\-]?[0-9]+(?:\.[0-9]+)?/g;b.lastIndex=0;for(var L=this.session.getLine(M);b.lastIndex=I)return{value:F[0],start:F.index,end:F.index+F[0].length}}return null},this.modifyNumber=function(M){var I=this.selection.getCursor().row,b=this.selection.getCursor().column,L=new g(I,b-1,I,b),F=this.session.getTextRange(L);if(!isNaN(parseFloat(F))&&isFinite(F)){var ne=this.getNumberAt(I,b);if(ne){var Y=ne.value.indexOf(".")>=0?ne.start+ne.value.indexOf(".")+1:ne.end,Q=ne.start+ne.value.length-Y,te=parseFloat(ne.value);te*=Math.pow(10,Q),te+=M*=Y!==ne.end&&b=Y&&ne<=Q&&(b=Je,te.selection.clearSelection(),te.moveCursorTo(M,Y+L),te.selection.selectTo(M,Q+L)),Y=Q});for(var J,$=this.$toggleWordPairs,ie=0;ie<$.length;ie++)for(var ae=$[ie],le=0;le<=1;le++){var Oe=+!le,Le=b.match(new RegExp("^\\s?_?("+d.escapeRegExp(ae[le])+")\\s?$","i"));Le&&b.match(new RegExp("([_]|^|\\s)("+d.escapeRegExp(Le[1])+")($|\\s)","g"))&&(J=b.replace(new RegExp(d.escapeRegExp(ae[le]),"i"),function(Je){var gt=ae[Oe];return Je.toUpperCase()==Je?gt=gt.toUpperCase():Je.charAt(0).toUpperCase()==Je.charAt(0)&&(gt=gt.substr(0,0)+ae[Oe].charAt(0).toUpperCase()+gt.substr(1)),gt}),this.insert(J),J="")}},this.removeLines=function(){var M=this.$getSelectedRows();this.session.removeFullLines(M.first,M.last),this.clearSelection()},this.duplicateSelection=function(){var M=this.selection,I=this.session,b=M.getRange(),L=M.isBackwards();if(b.isEmpty()){var F=b.start.row;I.duplicateLines(F,F)}else{var ne=L?b.start:b.end,Y=I.insert(ne,I.getTextRange(b),!1);b.start=ne,b.end=Y,M.setSelectionRange(b,L)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(M,I,b){return this.session.moveText(M,I,b)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(M,I){var b,L,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var ne=F.toOrientedRange();b=this.$getSelectedRows(ne),L=this.session.$moveLines(b.first,b.last,I?0:M),I&&-1==M&&(L=0),ne.moveBy(L,0),F.fromOrientedRange(ne)}else{var Y=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var Q=0,te=0,$=Y.length,J=0;J<$;J++){var ie=J;Y[J].moveBy(Q,0);for(var ae=(b=this.$getSelectedRows(Y[J])).first,le=b.last;++J<$;){te&&Y[J].moveBy(te,0);var Oe=this.$getSelectedRows(Y[J]);if(I&&Oe.first!=le)break;if(!I&&Oe.first>le+1)break;le=Oe.last}for(J--,Q=this.session.$moveLines(ae,le,I?0:M),I&&-1==M&&(ie=J+1);ie<=J;)Y[ie].moveBy(Q,0),ie++;I||(Q=0),te+=Q}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(M){return M=(M||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(M.start.row),last:this.session.getRowFoldEnd(M.end.row)}},this.onCompositionStart=function(M){this.renderer.showComposition(M)},this.onCompositionUpdate=function(M){this.renderer.setCompositionText(M)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(M){return M>=this.getFirstVisibleRow()&&M<=this.getLastVisibleRow()},this.isRowFullyVisible=function(M){return M>=this.renderer.getFirstFullyVisibleRow()&&M<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(M,I){var b=this.renderer,L=this.renderer.layerConfig,F=M*Math.floor(L.height/L.lineHeight);!0===I?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):!1===I&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var ne=b.scrollTop;b.scrollBy(0,F*L.lineHeight),null!=I&&b.scrollCursorIntoView(null,.5),b.animateScrolling(ne)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(M){this.renderer.scrollToRow(M)},this.scrollToLine=function(M,I,b,L){this.renderer.scrollToLine(M,I,b,L)},this.centerSelection=function(){var M=this.getSelectionRange(),I={row:Math.floor(M.start.row+(M.end.row-M.start.row)/2),column:Math.floor(M.start.column+(M.end.column-M.start.column)/2)};this.renderer.alignCursor(I,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(M,I){this.selection.moveCursorTo(M,I)},this.moveCursorToPosition=function(M){this.selection.moveCursorToPosition(M)},this.jumpToMatching=function(M,I){var b=this.getCursorPosition(),L=new O(this.session,b.row,b.column),F=L.getCurrentToken(),ne=F||L.stepForward();if(ne){var Y,J,Q=!1,te={},$=b.column-ne.start,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(ne.value.match(/[{}()\[\]]/g)){for(;$=0;--ne)this.$tryReplace(b[ne],M)&&L++;return this.selection.setSelectionRange(F),L},this.$tryReplace=function(M,I){var b=this.session.getTextRange(M);return null!==(I=this.$search.replace(b,I))?(M.end=this.session.replace(M,I),M):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(M,I,b){I||(I={}),"string"==typeof M||M instanceof RegExp?I.needle=M:"object"==typeof M&&m.mixin(I,M);var L=this.selection.getRange();null==I.needle&&((M=this.session.getTextRange(L)||this.$search.$options.needle)||(L=this.session.getWordRange(L.start.row,L.start.column),M=this.session.getTextRange(L)),this.$search.set({needle:M})),this.$search.set(I),I.start||this.$search.set({start:L});var F=this.$search.find(this.session);return I.preventScroll?F:F?(this.revealRange(F,b),F):(I.backwards?L.start=L.end:L.end=L.start,void this.selection.setRange(L))},this.findNext=function(M,I){this.find({skipCurrent:!0,backwards:!1},M,I)},this.findPrevious=function(M,I){this.find(M,{skipCurrent:!0,backwards:!0},I)},this.revealRange=function(M,I){this.session.unfold(M),this.selection.setSelectionRange(M);var b=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(M.start,M.end,.5),!1!==I&&this.renderer.animateScrolling(b)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(M){M.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(M){if(M){var I,b=this,L=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var ne=this.on("changeSelection",function(){L=!0}),Y=this.renderer.on("beforeRender",function(){L&&(I=b.renderer.container.getBoundingClientRect())}),Q=this.renderer.on("afterRender",function(){if(L&&I&&(b.isFocused()||b.searchBox&&b.searchBox.isFocused())){var te=b.renderer,$=te.$cursorLayer.$pixelPos,J=te.layerConfig,ie=$.top-J.offset;null!=(L=$.top>=0&&ie+I.top<0||!($.topwindow.innerHeight)&&null)&&(F.style.top=ie+"px",F.style.left=$.left+"px",F.style.height=J.lineHeight+"px",F.scrollIntoView(L)),L=I=null}});this.setAutoScrollEditorIntoView=function(te){te||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",ne),this.renderer.off("afterRender",Q),this.renderer.off("beforeRender",Y))}}},this.$resetCursorStyle=function(){var M=this.$cursorStyle||"ace",I=this.renderer.$cursorLayer;!I||(I.setSmoothBlinking(/smooth/.test(M)),I.isBlinking=!this.$readOnly&&"wide"!=M,o.setCssClass(I.element,"ace_slim-cursors",/slim/.test(M)))},this.prompt=function(M,I,b){var L=this;D.loadModule("./ext/prompt",function(F){F.prompt(L,M,I,b)})}}.call(A.prototype),D.defineOptions(A.prototype,"editor",{selectionStyle:{set:function(M){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:M})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(M){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(M){this.textInput.setReadOnly(M),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(M){this.textInput.setCopyWithEmptySelection(M)},initialValue:!1},cursorStyle:{set:function(M){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(M){this.setAutoScrollEditorIntoView(M)}},keyboardHandler:{set:function(M){this.setKeyboardHandler(M)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(M){this.session.setValue(M)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(M){this.setSession(M)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(M){this.renderer.$gutterLayer.setShowLineNumbers(M),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),M&&this.$relativeLineNumbers?S.attach(this):S.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(M){this.$showLineNumbers&&M?S.attach(this):S.detach(this)}},placeholder:{set:function(M){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var I=this.session&&(this.renderer.$composition||this.getValue());if(I&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(I||this.renderer.placeholderNode)!I&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var b=o.createElement("div");b.className="ace_placeholder",b.textContent=this.$placeholder||"",this.renderer.placeholderNode=b,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var S={getText:function(M,I){return(Math.abs(M.selection.lead.row-I)||I+1+(I<9?"\xb7":""))+""},getWidth:function(M,I,b){return Math.max(I.toString().length,(b.lastRow+1).toString().length,2)*b.characterWidth},update:function(M,I){I.renderer.$loop.schedule(I.renderer.CHANGE_GUTTER)},attach:function(M){M.renderer.$gutterLayer.$renderer=this,M.on("changeSelection",this.update),this.update(null,M)},detach:function(M){M.renderer.$gutterLayer.$renderer==this&&(M.renderer.$gutterLayer.$renderer=null),M.off("changeSelection",this.update),this.update(null,M)}};f.Editor=A}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,f,v){"use strict";var m=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(S){this.$session=S},this.add=function(S,M,I){this.$fromUndo||S!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),(!1===M||!this.lastDeltas)&&(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),S.id=this.$rev=++this.$maxRev),("remove"==S.action||"insert"==S.action)&&(this.$lastDelta=S),this.lastDeltas.push(S))},this.addSelection=function(S,M){this.selections.push({value:S,rev:M||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(S,M){null==M&&(M=this.$rev+1);for(var I=this.$undoStack,b=I.length;b--;){var L=I[b][0];if(L.id<=S)break;L.id0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(S){null==S&&(S=this.$rev),this.mark=S},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(S){return S?c(S):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)}}).call(m.prototype);var d=n("./range").Range,u=d.comparePoints;function s(S){return{row:S.row,column:S.column}}function c(S){if(S=S||this,Array.isArray(S))return S.map(c).join("\n");var M="";return S.action?(M="insert"==S.action?"+":"-",M+="["+S.lines+"]"):S.value&&(M=Array.isArray(S.value)?S.value.map(l).join("\n"):l(S.value)),S.start&&(M+=l(S)),(S.id||S.rev)&&(M+="\t("+(S.id||S.rev)+")"),M}function l(S){return S.start.row+":"+S.start.column+"=>"+S.end.row+":"+S.end.column}function g(S,M){var I="insert"==S.action,b="insert"==M.action;if(I&&b)if(u(M.start,S.end)>=0)T(M,S,-1);else{if(!(u(M.start,S.start)<=0))return null;T(S,M,1)}else if(I&&!b)if(u(M.start,S.end)>=0)T(M,S,-1);else{if(!(u(M.end,S.start)<=0))return null;T(S,M,-1)}else if(!I&&b)if(u(M.start,S.start)>=0)T(M,S,1);else{if(!(u(M.start,S.start)<=0))return null;T(S,M,1)}else if(!I&&!b)if(u(M.start,S.start)>=0)T(M,S,1);else{if(!(u(M.end,S.start)<=0))return null;T(S,M,-1)}return[M,S]}function y(S,M){for(var I=S.length;I--;)for(var b=0;b=0?T(S,M,-1):(u(S.start,M.start)<=0||T(S,d.fromPoints(M.start,S.start),-1),T(M,S,1));else if(!I&&b)u(M.start,S.end)>=0?T(M,S,-1):(u(M.start,S.start)<=0||T(M,d.fromPoints(S.start,M.start),-1),T(S,M,1));else if(!I&&!b)if(u(M.start,S.end)>=0)T(M,S,-1);else{var L,F;if(!(u(M.end,S.start)<=0))return u(S.start,M.start)<0&&(L=S,S=O(S,M.start)),u(S.end,M.end)>0&&(F=O(S,M.end)),D(M.end,S.start,S.end,-1),F&&!L&&(S.lines=F.lines,S.start=F.start,S.end=F.end,F=S),[M,L,F].filter(Boolean);T(S,M,-1)}return[M,S]}function T(S,M,I){D(S.start,M.start,M.end,I),D(S.end,M.start,M.end,I)}function D(S,M,I,b){S.row==(1==b?M:I).row&&(S.column+=b*(I.column-M.column)),S.row+=b*(I.row-M.row)}function O(S,M){var I=S.lines,b=S.end;S.end=s(M);var L=S.end.row-S.start.row,F=I.splice(L,I.length),ne=L?M.column:M.column-S.start.column;return I.push(F[0].substring(0,ne)),F[0]=F[0].substr(ne),{start:s(M),end:b,lines:F,action:S.action}}function w(S,M){M=function(S){return{start:s(S.start),end:s(S.end),action:S.action,lines:S.lines.slice()}}(M);for(var I=S.length;I--;){for(var b=S[I],L=0;LE&&(E=(y=c.getNextFoldLine(O=y.end.row+1,y))?y.start.row:1/0),O>g){for(;this.$lines.getLength()>D+1;)this.$lines.pop();break}(T=this.$lines.get(++D))?T.row=O:(T=this.$lines.createCell(O,i,this.session,s),this.$lines.push(T)),this.$renderCell(T,i,y,O),O++}this._signal("afterRender"),this.$updateGutterWidth(i)},this.$updateGutterWidth=function(i){var c=this.session,l=c.gutterRenderer||this.$renderer,g=c.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||c.$useWrapMode)&&(y=c.getLength()+g-1);var E=l?l.getWidth(c,y,i):y.toString().length*i.characterWidth,T=this.$padding||this.$computePadding();(E+=T.left+T.right)!==this.gutterWidth&&!isNaN(E)&&(this.gutterWidth=E,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",E))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var i=this.session.selection.getCursor();this.$cursorRow!==i.row&&(this.$cursorRow=i.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var i=this.session.selection.cursor.row;if(this.$cursorRow=i,!this.$cursorCell||this.$cursorCell.row!=i){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var c=this.$lines.cells;this.$cursorCell=null;for(var l=0;l=this.$cursorRow){if(g.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(!(l>0&&y&&y.start.row==c[l-1].row))break;g=c[l-1]}g.element.className="ace_gutter-active-line "+g.element.className,this.$cursorCell=g;break}}}}},this.scrollLines=function(i){var c=this.config;if(this.config=i,this.$updateCursorRow(),this.$lines.pageChanged(c,i))return this.update(i);this.$lines.moveContainer(i);var l=Math.min(i.lastRow+i.gutterOffset,this.session.getLength()-1),g=this.oldLastRow;if(this.oldLastRow=l,!c||g0;y--)this.$lines.shift();if(g>l)for(y=this.session.getFoldedRowCount(l+1,g);y>0;y--)this.$lines.pop();i.firstRowg&&this.$lines.push(this.$renderLines(i,g+1,l)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(i)},this.$renderLines=function(i,c,l){for(var g=[],y=c,E=this.session.getNextFoldLine(y),T=E?E.start.row:1/0;y>T&&(T=(E=this.session.getNextFoldLine(y=E.end.row+1,E))?E.start.row:1/0),!(y>l);){var D=this.$lines.createCell(y,i,this.session,s);this.$renderCell(D,i,E,y),g.push(D),y++}return g},this.$renderCell=function(i,c,l,g){var y=i.element,E=this.session,T=y.childNodes[0],D=y.childNodes[1],O=E.$firstLineNumber,w=E.$breakpoints,A=E.$decorations,S=E.gutterRenderer||this.$renderer,M=this.$showFoldWidgets&&E.foldWidgets,I=l?l.start.row:Number.MAX_VALUE,b="ace_gutter-cell ";if(this.$highlightGutterLine&&(g==this.$cursorRow||l&&g=I&&this.$cursorRow<=l.end.row)&&(b+="ace_gutter-active-line ",this.$cursorCell!=i&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=i)),w[g]&&(b+=w[g]),A[g]&&(b+=A[g]),this.$annotations[g]&&(b+=this.$annotations[g].className),y.className!=b&&(y.className=b),M){var L=M[g];null==L&&(L=M[g]=E.getFoldWidget(g))}L?(b="ace_fold-widget ace_"+L,D.className!=(b+="start"==L&&g==I&&gl.right-c.right?"foldWidgets":void 0}}).call(r.prototype),f.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,f,v){"use strict";var m=n("../range").Range,o=n("../lib/dom"),d=function(u){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",u.appendChild(this.element)};(function(){function u(h,r,s,i){return(h?1:0)|(r?2:0)|(s?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(h){this.$padding=h},this.setSession=function(h){this.session=h},this.setMarkers=function(h){this.markers=h},this.elt=function(h,r){var s=-1!=this.i&&this.element.childNodes[this.i];s?this.i++:(s=document.createElement("div"),this.element.appendChild(s),this.i=-1),s.style.cssText=r,s.className=h},this.update=function(h){if(h){var r;for(var s in this.config=h,this.i=0,this.markers){var i=this.markers[s];if(i.range){var c=i.range.clipRows(h.firstRow,h.lastRow);if(!c.isEmpty())if(c=c.toScreenRange(this.session),i.renderer){var l=this.$getTop(c.start.row,h);i.renderer(r,c,this.$padding+c.start.column*h.characterWidth,l,h)}else"fullLine"==i.type?this.drawFullLineMarker(r,c,i.clazz,h):"screenLine"==i.type?this.drawScreenLineMarker(r,c,i.clazz,h):c.isMultiLine()?"text"==i.type?this.drawTextMarker(r,c,i.clazz,h):this.drawMultiLineMarker(r,c,i.clazz,h):this.drawSingleLineMarker(r,c,i.clazz+" ace_start ace_br15",h)}else i.update(r,this,this.session,h)}if(-1!=this.i)for(;this.iO,E==y),i,E==y?0:1,c)},this.drawMultiLineMarker=function(h,r,s,i,c){var T,l=this.$padding,g=i.lineHeight,y=this.$getTop(r.start.row,i),E=l+r.start.column*i.characterWidth;if(c=c||"",this.session.$bidiHandler.isBidiRow(r.start.row)?((T=r.clone()).end.row=T.start.row,T.end.column=this.session.getLine(T.start.row).length,this.drawBidiSingleLineMarker(h,T,s+" ace_br1 ace_start",i,null,c)):this.elt(s+" ace_br1 ace_start","height:"+g+"px;right:0;top:"+y+"px;left:"+E+"px;"+(c||"")),this.session.$bidiHandler.isBidiRow(r.end.row)?((T=r.clone()).start.row=T.end.row,T.start.column=0,this.drawBidiSingleLineMarker(h,T,s+" ace_br12",i,null,c)):(y=this.$getTop(r.end.row,i),this.elt(s+" ace_br12","height:"+g+"px;width:"+r.end.column*i.characterWidth+"px;top:"+y+"px;left:"+l+"px;"+(c||""))),!((g=(r.end.row-r.start.row-1)*i.lineHeight)<=0)){y=this.$getTop(r.start.row+1,i);var O=(r.start.column?1:0)|(r.end.column?0:8);this.elt(s+(O?" ace_br"+O:""),"height:"+g+"px;right:0;top:"+y+"px;left:"+l+"px;"+(c||""))}},this.drawSingleLineMarker=function(h,r,s,i,c,l){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(h,r,s,i,c,l);var g=i.lineHeight,y=(r.end.column+(c||0)-r.start.column)*i.characterWidth,E=this.$getTop(r.start.row,i);this.elt(s,"height:"+g+"px;width:"+y+"px;top:"+E+"px;left:"+(this.$padding+r.start.column*i.characterWidth)+"px;"+(l||""))},this.drawBidiSingleLineMarker=function(h,r,s,i,c,l){var g=i.lineHeight,y=this.$getTop(r.start.row,i),E=this.$padding;this.session.$bidiHandler.getSelections(r.start.column,r.end.column).forEach(function(D){this.elt(s,"height:"+g+"px;width:"+D.width+(c||0)+"px;top:"+y+"px;left:"+(E+D.left)+"px;"+(l||""))},this)},this.drawFullLineMarker=function(h,r,s,i,c){var l=this.$getTop(r.start.row,i),g=i.lineHeight;r.start.row!=r.end.row&&(g+=this.$getTop(r.end.row,i)-l),this.elt(s,"height:"+g+"px;top:"+l+"px;left:0;right:0;"+(c||""))},this.drawScreenLineMarker=function(h,r,s,i,c){var l=this.$getTop(r.start.row,i);this.elt(s,"height:"+i.lineHeight+"px;top:"+l+"px;left:0;right:0;"+(c||""))}}).call(d.prototype),f.Marker=d}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(n,f,v){"use strict";var m=n("../lib/oop"),o=n("../lib/dom"),d=n("../lib/lang"),u=n("./lines").Lines,h=n("../lib/event_emitter").EventEmitter,r=function(s){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",s.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new u(this.element)};(function(){m.implement(this,h),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var s=this.session.doc,c="\n"==s.getNewLineCharacter()&&"windows"!=s.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=c)return this.EOL_CHAR=c,!0},this.setPadding=function(s){this.$padding=s,this.element.style.margin="0 "+s+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(s){this.$fontMetrics=s,this.$fontMetrics.on("changeCharacterSize",function(i){this._signal("changeCharacterSize",i)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(s){this.session=s,s&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(s){return this.showInvisibles!=s&&(this.showInvisibles=s,"string"==typeof s?(this.showSpaces=/tab/i.test(s),this.showTabs=/space/i.test(s),this.showEOL=/eol/i.test(s)):this.showSpaces=this.showTabs=this.showEOL=s,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(s){return this.displayIndentGuides!=s&&(this.displayIndentGuides=s,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var s=this.session.getTabSize();this.tabSize=s;for(var i=this.$tabStrings=[0],c=1;cw&&(w=(O=this.session.getNextFoldLine(D=O.end.row+1,O))?O.start.row:1/0),!(D>g);){var A=y[E++];if(A){this.dom.removeChildren(A),this.$renderLine(A,D,D==w&&O),T&&(A.style.top=this.$lines.computeLineTop(D,s,this.session)+"px");var S=s.lineHeight*this.session.getRowLength(D)+"px";A.style.height!=S&&(T=!0,A.style.height=S)}D++}if(T)for(;E0;g--)this.$lines.shift();if(i.lastRow>s.lastRow)for(g=this.session.getFoldedRowCount(s.lastRow+1,i.lastRow);g>0;g--)this.$lines.pop();s.firstRowi.lastRow&&this.$lines.push(this.$renderLinesFragment(s,i.lastRow+1,s.lastRow))},this.$renderLinesFragment=function(s,i,c){for(var l=[],g=i,y=this.session.getNextFoldLine(g),E=y?y.start.row:1/0;g>E&&(E=(y=this.session.getNextFoldLine(g=y.end.row+1,y))?y.start.row:1/0),!(g>c);){var T=this.$lines.createCell(g,s,this.session),D=T.element;this.dom.removeChildren(D),o.setStyle(D.style,"height",this.$lines.computeLineHeight(g,s,this.session)+"px"),o.setStyle(D.style,"top",this.$lines.computeLineTop(g,s,this.session)+"px"),this.$renderLine(D,g,g==E&&y),D.className=this.$useLineGroups()?"ace_line_group":"ace_line",l.push(T),g++}return l},this.update=function(s){this.$lines.moveContainer(s),this.config=s;for(var i=s.firstRow,c=s.lastRow,l=this.$lines;l.getLength();)l.pop();l.push(this.$renderLinesFragment(s,i,c))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(s,i,c,l){for(var T,g=this,y=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,E=this.dom.createFragment(this.element),D=0;T=y.exec(l);){var O=T[1],w=T[2],A=T[3],S=T[4],M=T[5];if(g.showSpaces||!w){var I=D!=T.index?l.slice(D,T.index):"";if(D=T.index+T[0].length,I&&E.appendChild(this.dom.createTextNode(I,this.element)),O){var b=g.session.getScreenTabSize(i+T.index);E.appendChild(g.$tabStrings[b].cloneNode(!0)),i+=b-1}else w?g.showSpaces?((L=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",L.textContent=d.stringRepeat(g.SPACE_CHAR,w.length),E.appendChild(L)):E.appendChild(this.com.createTextNode(w,this.element)):A?((L=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",L.textContent=d.stringRepeat(g.SPACE_CHAR,A.length),E.appendChild(L)):S?(i+=1,(L=this.dom.createElement("span")).style.width=2*g.config.characterWidth+"px",L.className=g.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",L.textContent=g.showSpaces?g.SPACE_CHAR:S,E.appendChild(L)):M&&(i+=1,(L=this.dom.createElement("span")).style.width=2*g.config.characterWidth+"px",L.className="ace_cjk",L.textContent=M,E.appendChild(L))}}if(E.appendChild(this.dom.createTextNode(D?l.slice(D):l,this.element)),this.$textToken[c.type])s.appendChild(E);else{var F="ace_"+c.type.replace(/\./g," ace_"),L=this.dom.createElement("span");"fold"==c.type&&(L.style.width=c.value.length*this.config.characterWidth+"px"),L.className=F,L.appendChild(E),s.appendChild(L)}return i+l.length},this.renderIndentGuide=function(s,i,c){var l=i.search(this.$indentGuideRe);if(l<=0||l>=c)return i;if(" "==i[0]){for(var g=(l-=l%this.tabSize)/this.tabSize,y=0;y=y;)E=this.$renderToken(T,E,O,w.substring(0,y-l)),w=w.substring(y-l),l=y,T=this.$createLineElement(),s.appendChild(T),T.appendChild(this.dom.createTextNode(d.stringRepeat("\xa0",c.indent),this.element)),E=0,y=c[++g]||Number.MAX_VALUE;0!=w.length&&(l+=w.length,E=this.$renderToken(T,E,O,w))}}c[c.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(T,E,null,"",!0)},this.$renderSimpleLine=function(s,i){var c=0,l=i[0],g=l.value;this.displayIndentGuides&&(g=this.renderIndentGuide(s,g)),g&&(c=this.$renderToken(s,c,l,g));for(var y=1;ythis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(s,c,l,g);c=this.$renderToken(s,c,l,g)}},this.$renderOverflowMessage=function(s,i,c,l,g){c&&this.$renderToken(s,i,c,l.slice(0,this.MAX_LINE_LENGTH-i));var y=this.dom.createElement("span");y.className="ace_inline_button ace_keyword ace_toggle_wrap",y.textContent=g?"":"",s.appendChild(y)},this.$renderLine=function(s,i,c){if(!c&&0!=c&&(c=this.session.getFoldLine(i)),c)var l=this.$getFoldLineTokens(i,c);else l=this.session.getTokens(i);var g=s;if(l.length){var y=this.session.getRowSplitData(i);y&&y.length?(this.$renderWrappedLine(s,l,y),g=s.lastChild):(g=s,this.$useLineGroups()&&(g=this.$createLineElement(),s.appendChild(g)),this.$renderSimpleLine(g,l))}else this.$useLineGroups()&&(g=this.$createLineElement(),s.appendChild(g));if(this.showEOL&&g){c&&(i=c.end.row);var E=this.dom.createElement("span");E.className="ace_invisible ace_invisible_eol",E.textContent=i==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,g.appendChild(E)}},this.$getFoldLineTokens=function(s,i){var c=this.session,l=[],y=c.getTokens(s);return i.walk(function(E,T,D,O,w){null!=E?l.push({type:"fold",value:E}):(w&&(y=c.getTokens(T)),y.length&&function(E,T,D){for(var O=0,w=0;w+E[O].value.lengthD-T&&(A=A.substring(0,D-T)),l.push({type:E[O].type,value:A}),w=T+A.length,O+=1);wD?{type:E[O].type,value:A.substring(0,D-w)}:E[O]),w+=A.length,O+=1}}(y,O,D))},i.end.row,this.session.getLine(i.end.row).length),l},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(r.prototype),f.Text=r}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,f,v){"use strict";var m=n("../lib/dom"),o=function(d){this.element=m.createElement("div"),this.element.className="ace_layer ace_cursor-layer",d.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),m.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(d){for(var u=this.cursors,h=u.length;h--;)m.setStyle(u[h].style,"opacity",d?"":"0")},this.$startCssAnimation=function(){for(var d=this.cursors,u=d.length;u--;)d[u].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&m.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,m.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(d){this.$padding=d},this.setSession=function(d){this.session=d},this.setBlinking=function(d){d!=this.isBlinking&&(this.isBlinking=d,this.restartTimer())},this.setBlinkInterval=function(d){d!=this.blinkInterval&&(this.blinkInterval=d,this.restartTimer())},this.setSmoothBlinking=function(d){d!=this.smoothBlinking&&(this.smoothBlinking=d,m.setCssClass(this.element,"ace_smooth-blinking",d),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var d=m.createElement("div");return d.className="ace_cursor",this.element.appendChild(d),this.cursors.push(d),d},this.removeCursor=function(){if(this.cursors.length>1){var d=this.cursors.pop();return d.parentNode.removeChild(d),d}},this.hideCursor=function(){this.isVisible=!1,m.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,m.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var d=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,m.removeCssClass(this.element,"ace_smooth-blinking")),d(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&m.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),m.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var u=function(){this.timeoutId=setTimeout(function(){d(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){d(!0),u()},this.blinkInterval),u()}else this.$stopCssAnimation()},this.getPixelPosition=function(d,u){if(!this.config||!this.session)return{left:0,top:0};d||(d=this.session.selection.getCursor());var h=this.session.documentToScreenPosition(d);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(h.row,d.row)?this.session.$bidiHandler.getPosLeft(h.column):h.column*this.config.characterWidth),top:(h.row-(u?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(d,u){return d.top>=0&&d.topd.height+d.offset||i.top<0)&&h>1)){var c=this.cursors[r++]||this.addCursor(),l=c.style;this.drawCursor?this.drawCursor(c,i,d,u[h],this.session):this.isCursorInView(i,d)?(m.setStyle(l,"display","block"),m.translate(c,i.left,i.top),m.setStyle(l,"width",Math.round(d.characterWidth)+"px"),m.setStyle(l,"height",d.lineHeight+"px")):m.setStyle(l,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=i,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(d){d!=this.overwrite&&(this.overwrite=d,d?m.addCssClass(this.element,"ace_overwrite-cursors"):m.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),f.Cursor=o}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,f,v){"use strict";var m=n("./lib/oop"),o=n("./lib/dom"),d=n("./lib/event"),u=n("./lib/event_emitter").EventEmitter,h=32768,r=function(c){this.element=o.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=o.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),c.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addListener(this.element,"scroll",this.onScroll.bind(this)),d.addListener(this.element,"mousedown",d.preventDefault)};(function(){m.implement(this,u),this.setVisible=function(c){this.element.style.display=c?"":"none",this.isVisible=c,this.coeff=1}}).call(r.prototype);var s=function(c,l){r.call(this,c),this.scrollTop=0,this.scrollHeight=0,l.$scrollbarWidth=this.width=o.scrollbarWidth(c.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};m.inherits(s,r),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var c=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-c)/(this.coeff-c)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(c){this.element.style.height=c+"px"},this.setInnerHeight=this.setScrollHeight=function(c){this.scrollHeight=c,c>h?(this.coeff=h/c,c=h):1!=this.coeff&&(this.coeff=1),this.inner.style.height=c+"px"},this.setScrollTop=function(c){this.scrollTop!=c&&(this.skipEvent=!0,this.scrollTop=c,this.element.scrollTop=c*this.coeff)}}.call(s.prototype);var i=function(c,l){r.call(this,c),this.scrollLeft=0,this.height=l.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};m.inherits(i,r),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(c){this.element.style.width=c+"px"},this.setInnerWidth=function(c){this.inner.style.width=c+"px"},this.setScrollWidth=function(c){this.inner.style.width=c+"px"},this.setScrollLeft=function(c){this.scrollLeft!=c&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=c)}}.call(i.prototype),f.ScrollBar=s,f.ScrollBarV=s,f.ScrollBarH=i,f.VScrollBar=s,f.HScrollBar=i}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,f,v){"use strict";var m=n("./lib/event"),o=function(d,u){this.onRender=d,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=u||window;var h=this;this._flush=function(r){h.pending=!1;var s=h.changes;if(s&&(m.blockIdle(100),h.changes=0,h.onRender(s)),h.changes){if(h.$recursionLimit--<0)return;h.schedule()}else h.$recursionLimit=2}};(function(){this.schedule=function(d){this.changes=this.changes|d,this.changes&&!this.pending&&(m.nextFrame(this._flush),this.pending=!0)},this.clear=function(d){var u=this.changes;return this.changes=0,u}}).call(o.prototype),f.RenderLoop=o}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,f,v){var m=n("../lib/oop"),o=n("../lib/dom"),d=n("../lib/lang"),u=n("../lib/event"),h=n("../lib/useragent"),r=n("../lib/event_emitter").EventEmitter,s=256,i="function"==typeof ResizeObserver,c=200,l=f.FontMetrics=function(g){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=d.stringRepeat("X",s),this.$characterSize={width:0,height:0},i?this.$addObserver():this.checkForSizeChanges()};(function(){m.implement(this,r),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(g,y){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",h.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=y?"hidden":"visible"},this.checkForSizeChanges=function(g){if(void 0===g&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var y=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=y&&y.width===g.width&&y.height===g.height,this._emit("changeCharacterSize",{data:g})}},this.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(y){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=u.onIdle(function y(){g.checkForSizeChanges(),u.onIdle(y,500)},500)},this.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(g){var y={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/s};return 0===y.width||0===y.height?null:y},this.$measureCharWidth=function(g){return this.$main.textContent=d.stringRepeat(g,s),this.$main.getBoundingClientRect().width/s},this.getCharacterWidth=function(g){var y=this.charSizes[g];return void 0===y&&(y=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),y},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function g(y){return y&&y.parentElement?(window.getComputedStyle(y).zoom||1)*g(y.parentElement):1},this.$initTransformMeasureNodes=function(){var g=function(y,E){return["div",{style:"position: absolute;top:"+y+"px;left:"+E+"px;"}]};this.els=o.buildDom([g(0,0),g(c,0),g(0,c),g(c,c)],this.el)},this.transformCoordinates=function(g,y){function T(ie,ae,le){var Oe=ie[1]*ae[0]-ie[0]*ae[1];return[(-ae[1]*le[0]+ae[0]*le[1])/Oe,(+ie[1]*le[0]-ie[0]*le[1])/Oe]}function D(ie,ae){return[ie[0]-ae[0],ie[1]-ae[1]]}function O(ie,ae){return[ie[0]+ae[0],ie[1]+ae[1]]}function w(ie,ae){return[ie*ae[0],ie*ae[1]]}function A(ie){var ae=ie.getBoundingClientRect();return[ae.left,ae.top]}g&&(g=w(1/this.$getZoom(this.el),g)),this.els||this.$initTransformMeasureNodes();var S=A(this.els[0]),M=A(this.els[1]),I=A(this.els[2]),b=A(this.els[3]),L=T(D(b,M),D(b,I),D(O(M,I),O(b,S))),F=w(1+L[0],D(M,S)),ne=w(1+L[1],D(I,S));if(y){var Y=y,Q=L[0]*Y[0]/c+L[1]*Y[1]/c+1,te=O(w(Y[0],F),w(Y[1],ne));return O(w(1/Q/c,te),S)}var $=D(g,S),J=T(D(F,w(L[0],$)),D(ne,w(L[1],$)),$);return w(c,J)}}).call(l.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(n,f,v){"use strict";var m=n("./lib/oop"),o=n("./lib/dom"),d=n("./config"),u=n("./layer/gutter").Gutter,h=n("./layer/marker").Marker,r=n("./layer/text").Text,s=n("./layer/cursor").Cursor,i=n("./scrollbar").HScrollBar,c=n("./scrollbar").VScrollBar,l=n("./renderloop").RenderLoop,g=n("./layer/font_metrics").FontMetrics,y=n("./lib/event_emitter").EventEmitter,E='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',T=n("./lib/useragent"),D=T.isIE;o.importCssString(E,"ace_editor.css",!1);var O=function(w,A){var S=this;this.container=w||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(A),null==d.get("useStrictCSP")&&d.set("useStrictCSP",!1),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new u(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new h(this.content);var M=this.$textLayer=new r(this.content);this.canvas=M.element,this.$markerFront=new h(this.content),this.$cursorLayer=new s(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new c(this.container,this),this.scrollBarH=new i(this.container,this),this.scrollBarV.on("scroll",function(I){S.$scrollAnimation||S.session.setScrollTop(I.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function(I){S.$scrollAnimation||S.session.setScrollLeft(I.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(I){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",I)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!T.isIOS,this.$loop=new l(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),d.resetOptions(this),d._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,m.implement(this,y),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(w){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=w,w&&this.scrollMargin.top&&w.getScrollTop()<=0&&w.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(w),this.$markerBack.setSession(w),this.$markerFront.setSession(w),this.$gutterLayer.setSession(w),this.$textLayer.setSession(w),w&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(w,A,S){if(void 0===A&&(A=1/0),this.$changedLines?(this.$changedLines.firstRow>w&&(this.$changedLines.firstRow=w),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(w){w?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(w,A,S,M){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=w?1:0;var I=this.container;M||(M=I.clientHeight||I.scrollHeight),S||(S=I.clientWidth||I.scrollWidth);var b=this.$updateCachedSize(w,A,S,M);if(!this.$size.scrollerHeight||!S&&!M)return this.resizing=0;w&&(this.$gutterLayer.$padding=null),w?this.$renderChanges(b|this.$changes,!0):this.$loop.schedule(b|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(w,A,S,M){var I=0,b=this.$size,L={width:b.width,height:b.height,scrollerHeight:b.scrollerHeight,scrollerWidth:b.scrollerWidth};if((M-=this.$extraHeight||0)&&(w||b.height!=M)&&(b.height=M,I|=this.CHANGE_SIZE,b.scrollerHeight=b.height,this.$horizScroll&&(b.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",I|=this.CHANGE_SCROLL),S&&(w||b.width!=S)){I|=this.CHANGE_SIZE,b.width=S,null==A&&(A=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=A,o.setStyle(this.scrollBarH.element.style,"left",A+"px"),o.setStyle(this.scroller.style,"left",A+this.margin.left+"px"),b.scrollerWidth=Math.max(0,S-A-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",F),o.setStyle(this.scroller.style,"right",F),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||w)&&(I|=this.CHANGE_FULL)}return b.$dirty=!S||!M,I&&this._signal("resize",L),I},this.onGutterResize=function(w){var A=this.$showGutter?w:0;A!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,A,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var A=Math.floor((this.$size.scrollerWidth-2*this.$padding)/this.characterWidth);return this.session.adjustWrapLimit(A,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(w){this.setOption("animatedScroll",w)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(w){this.setOption("showInvisibles",w),this.session.$bidiHandler.setShowInvisibles(w)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(w){this.setOption("displayIndentGuides",w)},this.setShowPrintMargin=function(w){this.setOption("showPrintMargin",w)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(w){this.setOption("printMarginColumn",w)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(w){return this.setOption("showGutter",w)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},this.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var w=o.createElement("div");w.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",w.appendChild(this.$printMarginEl),this.content.insertBefore(w,this.content.firstChild)}var A=this.$printMarginEl.style;A.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",A.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var w=this.textarea.style,A=this.$composition;if(!this.$keepTextAreaAtCursor&&!A)return void o.translate(this.textarea,-100,0);var S=this.$cursorLayer.$pixelPos;if(S){A&&A.markerRange&&(S=this.$cursorLayer.getPixelPosition(A.markerRange.start,!0));var M=this.layerConfig,I=S.top,b=S.left,L=A&&A.useTextareaForIME?this.lineHeight:D?0:1;if((I-=M.offset)<0||I>M.height-L)return void o.translate(this.textarea,0,0);var F=1,ne=this.$size.height-L;A?A.useTextareaForIME?F=this.characterWidth*this.session.$getStringScreenWidth(this.textarea.value)[0]:I+=this.lineHeight+2:I+=this.lineHeight,(b-=this.scrollLeft)>this.$size.scrollerWidth-F&&(b=this.$size.scrollerWidth-F),b+=this.gutterWidth+this.margin.left,o.setStyle(w,"height",L+"px"),o.setStyle(w,"width",F+"px"),o.translate(this.textarea,Math.min(b,this.$size.scrollerWidth-F),Math.min(I,ne))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var w=this.layerConfig,A=w.lastRow;return this.session.documentToScreenRow(A,0)*w.lineHeight-this.session.getScrollTop()>w.height-w.lineHeight?A-1:A},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(w){this.$padding=w,this.$textLayer.setPadding(w),this.$cursorLayer.setPadding(w),this.$markerFront.setPadding(w),this.$markerBack.setPadding(w),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(w,A,S,M){var I=this.scrollMargin;I.top=0|w,I.bottom=0|A,I.right=0|M,I.left=0|S,I.v=I.top+I.bottom,I.h=I.left+I.right,I.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-I.top),this.updateFull()},this.setMargin=function(w,A,S,M){var I=this.margin;I.top=0|w,I.bottom=0|A,I.right=0|M,I.left=0|S,I.v=I.top+I.bottom,I.h=I.left+I.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(w){this.setOption("hScrollBarAlwaysVisible",w)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(w){this.setOption("vScrollBarAlwaysVisible",w)},this.$updateScrollBarV=function(){var w=this.layerConfig.maxHeight,A=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&this.scrollTop>(w-=(A-this.lineHeight)*this.$scrollPastEnd)-A&&(w=this.scrollTop+A,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(w+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(w,A){if(this.$changes&&(w|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(w||A)){if(this.$size.$dirty)return this.$changes|=w,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",w),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var S=this.layerConfig;if(w&this.CHANGE_FULL||w&this.CHANGE_SIZE||w&this.CHANGE_TEXT||w&this.CHANGE_LINES||w&this.CHANGE_SCROLL||w&this.CHANGE_H_SCROLL){if(w|=this.$computeLayerConfig()|this.$loop.clear(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var M=this.scrollTop+(S.firstRow-this.layerConfig.firstRow)*this.lineHeight;M>0&&(this.scrollTop=M,w|=this.CHANGE_SCROLL,w|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),w&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-S.offset);var b=S.minHeight+"px";o.setStyle(this.content.style,"width",S.width+2*this.$padding+"px"),o.setStyle(this.content.style,"height",b)}return w&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),w&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),void this._signal("afterRender",w)):w&this.CHANGE_SCROLL?(this.$changedLines=null,w&this.CHANGE_TEXT||w&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(w&this.CHANGE_GUTTER||w&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),void this._signal("afterRender",w)):(w&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S)):w&this.CHANGE_LINES?(this.$updateLines()||w&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S):w&this.CHANGE_TEXT||w&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(S):w&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),w&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),w&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),w&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),void this._signal("afterRender",w))}this.$changes|=w},this.$autosize=function(){var w=this.session.getScreenLength()*this.lineHeight,A=this.$maxLines*this.lineHeight,S=Math.min(A,Math.max((this.$minLines||1)*this.lineHeight,w))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var I=!(S<=2*this.lineHeight)&&w>A;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||I!=this.$vScroll){I!=this.$vScroll&&(this.$vScroll=I,this.scrollBarV.setVisible(I));var b=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,b,S),this.desiredHeight=S,this._signal("autosize")}},this.$computeLayerConfig=function(){var w=this.session,A=this.$size,S=A.height<=2*this.lineHeight,I=this.session.getScreenLength()*this.lineHeight,b=this.$getLongestLine(),L=!S&&(this.$hScrollBarAlwaysVisible||A.scrollerWidth-b-2*this.$padding<0),F=this.$horizScroll!==L;F&&(this.$horizScroll=L,this.scrollBarH.setVisible(L));var ne=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Y=A.scrollerHeight+this.lineHeight,Q=!this.$maxLines&&this.$scrollPastEnd?(A.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;I+=Q;var te=this.scrollMargin;this.session.setScrollTop(Math.max(-te.top,Math.min(this.scrollTop,I-A.scrollerHeight+te.bottom))),this.session.setScrollLeft(Math.max(-te.left,Math.min(this.scrollLeft,b+2*this.$padding-A.scrollerWidth+te.right)));var $=!S&&(this.$vScrollBarAlwaysVisible||A.scrollerHeight-I+Q<0||this.scrollTop>te.top),J=ne!==$;J&&(this.$vScroll=$,this.scrollBarV.setVisible($));var Le,Ye,ie=this.scrollTop%this.lineHeight,ae=Math.ceil(Y/this.lineHeight)-1,le=Math.max(0,Math.round((this.scrollTop-ie)/this.lineHeight)),Oe=le+ae,Je=this.lineHeight;le=w.screenToDocumentRow(le,0);var gt=w.getFoldLine(le);gt&&(le=gt.start.row),Le=w.documentToScreenRow(le,0),Ye=w.getRowLength(le)*Je,Oe=Math.min(w.screenToDocumentRow(Oe,0),w.getLength()-1),Y=A.scrollerHeight+w.getRowLength(Oe)*Je+Ye,ie=this.scrollTop-Le*Je;var Ue=0;return(this.layerConfig.width!=b||F)&&(Ue=this.CHANGE_H_SCROLL),(F||J)&&(Ue|=this.$updateCachedSize(!0,this.gutterWidth,A.width,A.height),this._signal("scrollbarVisibilityChanged"),J&&(b=this.$getLongestLine())),this.layerConfig={width:b,padding:this.$padding,firstRow:le,firstRowScreen:Le,lastRow:Oe,lineHeight:Je,characterWidth:this.characterWidth,minHeight:Y,maxHeight:I,offset:ie,gutterOffset:Je?Math.max(0,Math.ceil((ie+A.height-A.scrollerHeight)/Je)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(b-this.$padding),Ue},this.$updateLines=function(){if(this.$changedLines){var w=this.$changedLines.firstRow,A=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(w>S.lastRow+1||Athis.$textLayer.MAX_LINE_LENGTH&&(w=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(w*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(w,A){this.$gutterLayer.addGutterDecoration(w,A)},this.removeGutterDecoration=function(w,A){this.$gutterLayer.removeGutterDecoration(w,A)},this.updateBreakpoints=function(w){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(w){this.$gutterLayer.setAnnotations(w),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(w,A,S){this.scrollCursorIntoView(w,S),this.scrollCursorIntoView(A,S)},this.scrollCursorIntoView=function(w,A,S){if(0!==this.$size.scrollerHeight){var M=this.$cursorLayer.getPixelPosition(w),I=M.left,b=M.top,L=S&&S.top||0,F=S&&S.bottom||0,ne=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;ne+L>b?(A&&ne+L>b+this.lineHeight&&(b-=A*this.$size.scrollerHeight),0===b&&(b=-this.scrollMargin.top),this.session.setScrollTop(b)):ne+this.$size.scrollerHeight-FI?(I=1-this.scrollMargin.top||A>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||w<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||w>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(w,A){var S;if(this.$hasCssTransforms){S={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([w,A]);w=M[1]-this.gutterWidth-this.margin.left,A=M[0]}else S=this.scroller.getBoundingClientRect();var I=w+this.scrollLeft-S.left-this.$padding,b=I/this.characterWidth,L=Math.floor((A+this.scrollTop-S.top)/this.lineHeight),F=this.$blockCursor?Math.floor(b):Math.round(b);return{row:L,column:F,side:b-F>0?1:-1,offsetX:I}},this.screenToTextCoordinates=function(w,A){var S;if(this.$hasCssTransforms){S={top:0,left:0};var M=this.$fontMetrics.transformCoordinates([w,A]);w=M[1]-this.gutterWidth-this.margin.left,A=M[0]}else S=this.scroller.getBoundingClientRect();var I=w+this.scrollLeft-S.left-this.$padding,b=I/this.characterWidth,L=this.$blockCursor?Math.floor(b):Math.round(b),F=Math.floor((A+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(L,0),I)},this.textToScreenCoordinates=function(w,A){var S=this.scroller.getBoundingClientRect(),M=this.session.documentToScreenPosition(w,A),I=this.$padding+(this.session.$bidiHandler.isBidiRow(M.row,w)?this.session.$bidiHandler.getPosLeft(M.column):Math.round(M.column*this.characterWidth));return{pageX:S.left+I-this.scrollLeft,pageY:S.top+M.row*this.lineHeight-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(w){this.$composition=w,w.cssText||(w.cssText=this.textarea.style.cssText),null==w.useTextareaForIME&&(w.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):w.markerId=this.session.addMarker(w.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(w){var A=this.session.selection.cursor;this.addToken(w,"composition_placeholder",A.row,A.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var w=this.session.selection.cursor;this.removeExtraToken(w.row,w.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(w,A,S,M){var I=this.session;I.bgTokenizer.lines[S]=null;var b={type:A,value:w},L=I.getTokens(S);if(null==M)L.push(b);else for(var F=0,ne=0;ne50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(s.prototype),f.UIWorkerClient=function(c,l,g){var y=null,E=!1,T=Object.create(d),D=[],O=new s({messageBuffer:D,terminate:function(){},postMessage:function(A){D.push(A),y&&(E?setTimeout(w):w())}});O.setEmitSync=function(A){E=A};var w=function(){var A=D.shift();A.command?y[A.command].apply(y,A.args):A.event&&T._signal(A.event,A.data)};return T.postMessage=function(A){O.onMessage({data:A})},T.callback=function(A,S){this.postMessage({type:"call",id:S,data:A})},T.emit=function(A,S){this.postMessage({type:"event",name:A,data:S})},u.loadModule(["worker",l],function(A){for(y=new A[g](T);D.length;)w()}),O},f.WorkerClient=s,f.createWorker=r}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,f,v){"use strict";var m=n("./range").Range,o=n("./lib/event_emitter").EventEmitter,d=n("./lib/oop"),u=function(h,r,s,i,c,l){var g=this;this.length=r,this.session=h,this.doc=h.getDocument(),this.mainClass=c,this.othersClass=l,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=s;var y=h.getUndoManager().$undoStack||h.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=y.length,this.setup(),h.selection.on("changeCursor",this.$onCursorChange)};(function(){d.implement(this,o),this.setup=function(){var h=this,r=this.doc,s=this.session;this.selectionBefore=s.selection.toJSON(),s.selection.inMultiSelectMode&&s.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=s.addMarker(new m(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(c){var l=r.createAnchor(c.row,c.column);l.$insertRight=!0,l.detach(),h.others.push(l)}),s.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var h=this.session,r=this;this.othersActive=!0,this.others.forEach(function(s){s.markerId=h.addMarker(new m(s.row,s.column,s.row,s.column+r.length),r.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var h=0;h=this.pos.column&&r.start.column<=this.pos.column+this.length+1,c=r.start.column-this.pos.column;if(this.updateAnchors(h),i&&(this.length+=s),i&&!this.session.$fromUndo)if("insert"===h.action)for(var l=this.others.length-1;l>=0;l--)this.doc.insertMergedLines(y={row:(g=this.others[l]).row,column:g.column+c},h.lines);else if("remove"===h.action)for(l=this.others.length-1;l>=0;l--){var g,y;this.doc.remove(new m((y={row:(g=this.others[l]).row,column:g.column+c}).row,y.column,y.row,y.column-s))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(h){this.pos.onChange(h);for(var r=this.others.length;r--;)this.others[r].onChange(h);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var h=this,r=this.session,s=function(c,l){r.removeMarker(c.markerId),c.markerId=r.addMarker(new m(c.row,c.column,c.row,c.column+h.length),l,null,!1)};s(this.pos,this.mainClass);for(var i=this.others.length;i--;)s(this.others[i],this.othersClass)}},this.onCursorChange=function(h){if(!this.$updating&&this.session){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",h)):(this.hideOtherMarkers(),this._emit("cursorLeave",h))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var h=this.session.getUndoManager(),r=(h.$undoStack||h.$undostack).length-this.$undoStackDepth,s=0;s1?o.multiSelect.joinSelections():o.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(o){o.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(o){o.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(o){o.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],f.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(o){o.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(o){return o&&o.inMultiSelectMode}}];var m=n("../keyboard/hash_handler").HashHandler;f.keyboardHandler=new m(f.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,f,v){var m=n("./range_list").RangeList,o=n("./range").Range,d=n("./selection").Selection,u=n("./mouse/multi_select_handler").onMouseDown,h=n("./lib/event"),r=n("./lib/lang"),s=n("./commands/multi_select_commands");f.commands=s.defaultCommands.concat(s.multiSelectCommands);var c=new(0,n("./search").Search),g=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(g.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(O,w){if(O){if(!this.inMultiSelectMode&&0===this.rangeCount){var A=this.toOrientedRange();if(this.rangeList.add(A),this.rangeList.add(O),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),w||this.fromOrientedRange(O);this.rangeList.removeAll(),this.rangeList.add(A),this.$onAddRange(A)}O.cursor||(O.cursor=O.end);var S=this.rangeList.add(O);return this.$onAddRange(O),S.length&&this.$onRemoveRange(S),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(O)}},this.toSingleRange=function(O){O=O||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),O&&this.fromOrientedRange(O)},this.substractPoint=function(O){var w=this.rangeList.substractPoint(O);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var O=this.rangeList.merge();O.length&&this.$onRemoveRange(O)},this.$onAddRange=function(O){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(O),this._signal("addRange",{range:O})},this.$onRemoveRange=function(O){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();O.push(w),this.rangeCount=0}for(var A=O.length;A--;){var S=this.ranges.indexOf(O[A]);this.ranges.splice(S,1)}this._signal("removeRange",{ranges:O}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(w=w||this.ranges[0])&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new m,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var O=this.ranges.length?this.ranges:[this.getRange()],w=[],A=0;A1){var O=this.rangeList.ranges,w=O[O.length-1],A=o.fromPoints(O[0].start,w.end);this.toSingleRange(),this.setSelectionRange(A,w.cursor==w.start)}else{var S=this.session.documentToScreenPosition(this.cursor),M=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(S,M).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(O,w,A){var S=[],M=O.column0;)ie--;if(ie>0)for(var ae=0;S[ae].isEmpty();)ae++;for(var le=ie;le>=ae;le--)S[le].isEmpty()&&S.splice(le,1)}return S}}.call(d.prototype);var y=n("./editor").Editor;function E(O,w){return O.row==w.row&&O.column==w.column}function T(O){O.$multiselectOnSessionChange||(O.$onAddRange=O.$onAddRange.bind(O),O.$onRemoveRange=O.$onRemoveRange.bind(O),O.$onMultiSelect=O.$onMultiSelect.bind(O),O.$onSingleSelect=O.$onSingleSelect.bind(O),O.$multiselectOnSessionChange=f.onSessionChange.bind(O),O.$checkMultiselectChange=O.$checkMultiselectChange.bind(O),O.$multiselectOnSessionChange(O),O.on("changeSession",O.$multiselectOnSessionChange),O.on("mousedown",u),O.commands.addCommands(s.defaultCommands),function(O){if(O.textInput){var w=O.textInput.getElement(),A=!1;h.addListener(w,"keydown",function(M){O.$blockSelectEnabled&&18==M.keyCode&&!(M.ctrlKey||M.shiftKey||M.metaKey)?A||(O.renderer.setMouseCursor("crosshair"),A=!0):A&&S()},O),h.addListener(w,"keyup",S,O),h.addListener(w,"blur",S,O)}function S(M){A&&(O.renderer.setMouseCursor(""),A=!1)}}(O))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(O){O.cursor||(O.cursor=O.end);var w=this.getSelectionStyle();return O.marker=this.session.addMarker(O,"ace_selection",w),this.session.$selectionMarkers.push(O),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,O},this.removeSelectionMarker=function(O){if(O.marker){this.session.removeMarker(O.marker);var w=this.session.$selectionMarkers.indexOf(O);-1!=w&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(O){for(var w=this.session.$selectionMarkers,A=O.length;A--;){var S=O[A];if(S.marker){this.session.removeMarker(S.marker);var M=w.indexOf(S);-1!=M&&w.splice(M,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(O){this.addSelectionMarker(O.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(O){this.removeSelectionMarkers(O.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(O){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(O){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(O){var w=O.command,A=O.editor;if(A.multiSelect){if(w.multiSelectAction)"forEach"==w.multiSelectAction?S=A.forEachSelection(w,O.args):"forEachLine"==w.multiSelectAction?S=A.forEachSelection(w,O.args,!0):"single"==w.multiSelectAction?(A.exitMultiSelectMode(),S=w.exec(A,O.args||{})):S=w.multiSelectAction(A,O.args||{});else{var S=w.exec(A,O.args||{});A.multiSelect.addRange(A.multiSelect.toOrientedRange()),A.multiSelect.mergeOverlappingRanges()}return S}},this.forEachSelection=function(O,w,A){if(!this.inVirtualSelectionMode){var ne,M=1==A||A&&A.$byLines,I=this.session,b=this.selection,F=(A&&A.keepOrder?b:b.rangeList).ranges;if(!F.length)return O.exec?O.exec(this,w||{}):O(this,w||{});var Y=b._eventRegistry;b._eventRegistry={};var Q=new d(I);this.inVirtualSelectionMode=!0;for(var te=F.length;te--;){if(M)for(;te>0&&F[te].start.row==F[te-1].end.row;)te--;Q.fromOrientedRange(F[te]),Q.index=te,this.selection=I.selection=Q;var $=O.exec?O.exec(this,w||{}):O(this,w||{});!ne&&void 0!==$&&(ne=$),Q.toOrientedRange(F[te])}Q.detach(),this.selection=I.selection=b,this.inVirtualSelectionMode=!1,b._eventRegistry=Y,b.mergeOverlappingRanges(),b.ranges[0]&&b.fromOrientedRange(b.ranges[0]);var J=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),J&&J.from==J.to&&this.renderer.animateScrolling(J.from),ne}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var O="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,A=[],S=0;Ste&&(te=ae.column),Oe<$&&($=Oe),Oe});A.forEach(function(ie,ae){var le=ie.cursor,Oe=te-le.column,Le=J[ae]-$;Oe>Le?O.insert(le,r.stringRepeat(" ",Oe-Le)):O.remove(new o(le.row,le.column,le.row,le.column-Oe+Le)),ie.start.column=ie.end.column=te,ie.start.row=ie.end.row=le.row,ie.cursor=ie.end}),w.fromOrientedRange(A[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var I=this.selection.getRange(),b=I.start.row,L=I.end.row,F=b==L;if(F){var Y,ne=this.session.getLength();do{Y=this.session.getLine(L)}while(/[=:]/.test(Y)&&++L0);b<0&&(b=0),L>=ne&&(L=ne-1)}var Q=this.session.removeFullLines(b,L);Q=this.$reAlignText(Q,F),this.session.insert({row:b,column:0},Q.join("\n")+"\n"),F||(I.start.column=0,I.end.column=Q[Q.length-1].length),this.selection.setRange(I)}},this.$reAlignText=function(O,w){var M,I,b,A=!0,S=!0;return O.map(function(Q){var te=Q.match(/(\s*)(.*?)(\s*)([=:].*)/);return te?null==M?(M=te[1].length,I=te[2].length,b=te[3].length,te):(M+I+b!=te[1].length+te[2].length+te[3].length&&(S=!1),M!=te[1].length&&(A=!1),M>te[1].length&&(M=te[1].length),Ite[3].length&&(b=te[3].length),te):[Q]}).map(w?F:A?S?function(Q){return Q[2]?L(M+I-Q[2].length)+Q[2]+L(b)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]}:F:function(Q){return Q[2]?L(M)+Q[2]+L(b)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]});function L(Q){return r.stringRepeat(" ",Q)}function F(Q){return Q[2]?L(M)+Q[2]+L(I-Q[2].length+b)+Q[4].replace(/^([=:])\s+/,"$1 "):Q[0]}}}).call(y.prototype),f.onSessionChange=function(O){var w=O.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var A=O.oldSession;A&&(A.multiSelect.off("addRange",this.$onAddRange),A.multiSelect.off("removeRange",this.$onRemoveRange),A.multiSelect.off("multiSelect",this.$onMultiSelect),A.multiSelect.off("singleSelect",this.$onSingleSelect),A.multiSelect.lead.off("change",this.$checkMultiselectChange),A.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},f.MultiSelect=T,n("./config").defineOptions(y.prototype,"editor",{enableMultiselect:{set:function(O){T(this),O?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",u)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",u))},value:!0},enableBlockSelect:{set:function(O){this.$blockSelectEnabled=O},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,f,v){"use strict";var m=n("../../range").Range,o=f.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(d,u,h){var r=d.getLine(h);return this.foldingStartMarker.test(r)?"start":"markbeginend"==u&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(d,u,h){return null},this.indentationBlock=function(d,u,h){var r=/\S/,s=d.getLine(u),i=s.search(r);if(-1!=i){for(var c=h||s.length,l=d.getLength(),g=u,y=u;++ug){var D=d.getLine(y).length;return new m(g,c,y,D)}}},this.openingBracketBlock=function(d,u,h,r,s){var i={row:h,column:r+1},c=d.$findClosingBracket(u,i,s);if(c){var l=d.foldWidgets[c.row];return null==l&&(l=d.getFoldWidget(c.row)),"start"==l&&c.row>i.row&&(c.row--,c.column=d.getLine(c.row).length),m.fromPoints(i,c)}},this.closingBracketBlock=function(d,u,h,r,s){var i={row:h,column:r},c=d.$findOpeningBracket(u,i);if(c)return c.column++,i.column--,m.fromPoints(c,i)}}).call(o.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(n,f,v){"use strict";f.isDark=!1,f.cssClass="ace-tm",f.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',f.$id="ace/theme/textmate",n("../lib/dom").importCssString(f.cssText,f.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(n,f,v){"use strict";var m=n("./lib/dom");function o(d){this.session=d,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(d){var u;return u=this.lineWidgets&&this.lineWidgets[d]&&this.lineWidgets[d].rowCount||0,this.$useWrapMode&&this.$wrapData[d]?this.$wrapData[d].length+1+u:1+u},this.$getWidgetScreenLength=function(){var d=0;return this.lineWidgets.forEach(function(u){u&&u.rowCount&&!u.hidden&&(d+=u.rowCount)}),d},this.$onChangeEditor=function(d){this.attach(d.editor)},this.attach=function(d){d&&d.widgetManager&&d.widgetManager!=this&&d.widgetManager.detach(),this.editor!=d&&(this.detach(),this.editor=d,d&&(d.widgetManager=this,d.renderer.on("beforeRender",this.measureWidgets),d.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(d){var u=this.editor;if(u){this.editor=null,u.widgetManager=null,u.renderer.off("beforeRender",this.measureWidgets),u.renderer.off("afterRender",this.renderWidgets);var h=this.session.lineWidgets;h&&h.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},this.updateOnFold=function(d,u){var h=u.lineWidgets;if(h&&d.action){for(var r=d.data,s=r.start.row,i=r.end.row,c="add"==d.action,l=s+1;lu[h].column&&h++,i.unshift(h,0),u.splice.apply(u,i),this.$updateRows()}}},this.$updateRows=function(){var d=this.session.lineWidgets;if(d){var u=!0;d.forEach(function(h,r){if(h)for(u=!1,h.row=r;h.$oldWidget;)h.$oldWidget.row=r,h=h.$oldWidget}),u&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(d){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var u=this.session.lineWidgets[d.row];return u&&(d.$oldWidget=u,u.el&&u.el.parentNode&&(u.el.parentNode.removeChild(u.el),u._inDocument=!1)),this.session.lineWidgets[d.row]=d,d},this.addLineWidget=function(d){if(this.$registerLineWidget(d),d.session=this.session,!this.editor)return d;var u=this.editor.renderer;d.html&&!d.el&&(d.el=m.createElement("div"),d.el.innerHTML=d.html),d.el&&(m.addCssClass(d.el,"ace_lineWidgetContainer"),d.el.style.position="absolute",d.el.style.zIndex=5,u.container.appendChild(d.el),d._inDocument=!0,d.coverGutter||(d.el.style.zIndex=3),null==d.pixelHeight&&(d.pixelHeight=d.el.offsetHeight)),null==d.rowCount&&(d.rowCount=d.pixelHeight/u.layerConfig.lineHeight);var h=this.session.getFoldAt(d.row,0);if(d.$fold=h,h){var r=this.session.lineWidgets;d.row!=h.end.row||r[h.start.row]?d.hidden=!0:r[h.start.row]=d}return this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows(),this.renderWidgets(null,u),this.onWidgetChanged(d),d},this.removeLineWidget=function(d){if(d._inDocument=!1,d.session=null,d.el&&d.el.parentNode&&d.el.parentNode.removeChild(d.el),d.editor&&d.editor.destroy)try{d.editor.destroy()}catch(h){}if(this.session.lineWidgets){var u=this.session.lineWidgets[d.row];if(u==d)this.session.lineWidgets[d.row]=d.$oldWidget,d.$oldWidget&&this.onWidgetChanged(d.$oldWidget);else for(;u;){if(u.$oldWidget==d){u.$oldWidget=d.$oldWidget;break}u=u.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(d){for(var u=this.session.lineWidgets,h=u&&u[d],r=[];h;)r.push(h),h=h.$oldWidget;return r},this.onWidgetChanged=function(d){this.session._changedWidgets.push(d),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(d,u){var h=this.session._changedWidgets,r=u.layerConfig;if(h&&h.length){for(var s=1/0,i=0;i0&&!r[s];)s--;this.firstRow=h.firstRow,this.lastRow=h.lastRow,u.$cursorLayer.config=h;for(var c=s;c<=i;c++){var l=r[c];if(l&&l.el){if(l.hidden){l.el.style.top=-100-(l.pixelHeight||0)+"px";continue}l._inDocument||(l._inDocument=!0,u.container.appendChild(l.el));var g=u.$cursorLayer.getPixelPosition({row:c,column:0},!0).top;l.coverLine||(g+=h.lineHeight*this.session.getRowLineCount(l.row)),l.el.style.top=g-h.offset+"px";var y=l.coverGutter?0:u.gutterWidth;l.fixedWidth||(y-=u.scrollLeft),l.el.style.left=y+"px",l.fullWidth&&l.screenWidth&&(l.el.style.minWidth=h.width+2*h.padding+"px"),l.el.style.right=l.fixedWidth?u.scrollBar.getWidth()+"px":""}}}}}).call(o.prototype),f.LineWidgets=o}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(n,f,v){"use strict";var m=n("../line_widgets").LineWidgets,o=n("../lib/dom"),d=n("../range").Range;f.showErrorMarker=function(r,s){var i=r.session;i.widgetManager||(i.widgetManager=new m(i),i.widgetManager.attach(r));var c=r.getCursorPosition(),l=c.row,g=i.widgetManager.getWidgetsAtRow(l).filter(function(M){return"errorMarker"==M.type})[0];g?g.destroy():l-=s;var E,y=function(r,s,i){var c=r.getAnnotations().sort(d.comparePoints);if(c.length){var l=function(r,s,i){for(var c=0,l=r.length-1;c<=l;){var g=c+l>>1,y=i(s,r[g]);if(y>0)c=g+1;else{if(!(y<0))return g;l=g-1}}return-(c+1)}(c,{row:s,column:-1},d.comparePoints);l<0&&(l=-l-1),l>=c.length?l=i>0?0:c.length-1:0===l&&i<0&&(l=c.length-1);var g=c[l];if(g&&i){if(g.row===s){do{g=c[l+=i]}while(g&&g.row===s);if(!g)return c.slice()}var y=[];s=g.row;do{y[i<0?"unshift":"push"](g),g=c[l+=i]}while(g&&g.row==s);return y.length&&y}}}(i,l,s);if(y){var T=y[0];c.column=(T.pos&&"number"!=typeof T.column?T.pos.sc:T.column)||0,c.row=T.row,E=r.renderer.$gutterLayer.$annotations[c.row]}else{if(g)return;E={text:["Looks good!"],className:"ace_ok"}}r.session.unfold(c.row),r.selection.moveToPosition(c);var D={row:c.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},O=D.el.appendChild(o.createElement("div")),w=D.el.appendChild(o.createElement("div"));w.className="error_widget_arrow "+E.className;var A=r.renderer.$cursorLayer.getPixelPosition(c).left;w.style.left=A+r.renderer.gutterWidth-5+"px",D.el.className="error_widget_wrapper",O.className="error_widget "+E.className,O.innerHTML=E.text.join("
"),O.appendChild(o.createElement("div"));var S=function(M,I,b){if(0===I&&("esc"===b||"return"===b))return D.destroy(),{command:"null"}};D.destroy=function(){r.$mouseHandler.isMousePressed||(r.keyBinding.removeKeyboardHandler(S),i.widgetManager.removeLineWidget(D),r.off("changeSelection",D.destroy),r.off("changeSession",D.destroy),r.off("mouseup",D.destroy),r.off("change",D.destroy))},r.keyBinding.addKeyboardHandler(S),r.on("changeSelection",D.destroy),r.on("changeSession",D.destroy),r.on("mouseup",D.destroy),r.on("change",D.destroy),r.session.widgetManager.addLineWidget(D),D.el.onmousedown=r.focus.bind(r),r.renderer.scrollCursorIntoView(null,.5,{bottom:D.el.offsetHeight})},o.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(n,f,v){"use strict";n("./lib/fixoldbrowsers");var m=n("./lib/dom"),o=n("./lib/event"),d=n("./range").Range,u=n("./editor").Editor,h=n("./edit_session").EditSession,r=n("./undomanager").UndoManager,s=n("./virtual_renderer").VirtualRenderer;n("./worker/worker_client"),n("./keyboard/hash_handler"),n("./placeholder"),n("./multi_select"),n("./mode/folding/fold_mode"),n("./theme/textmate"),n("./ext/error_marker"),f.config=n("./config"),f.require=n,f.define=p.amdD,f.edit=function(i,c){if("string"==typeof i){var l=i;if(!(i=document.getElementById(l)))throw new Error("ace.edit can't find div #"+l)}if(i&&i.env&&i.env.editor instanceof u)return i.env.editor;var g="";if(i&&/input|textarea/i.test(i.tagName)){var y=i;g=y.value,i=m.createElement("pre"),y.parentNode.replaceChild(i,y)}else i&&(g=i.textContent,i.innerHTML="");var E=f.createEditSession(g),T=new u(new s(i),E,c),D={document:E,editor:T,onResize:T.resize.bind(T,null)};return y&&(D.textarea=y),o.addListener(window,"resize",D.onResize),T.on("destroy",function(){o.removeListener(window,"resize",D.onResize),D.editor.container.env=null}),T.container.env=T.env=D,T},f.createEditSession=function(i,c){var l=new h(i,c);return l.setUndoManager(new r),l},f.Range=d,f.Editor=u,f.EditSession=h,f.UndoManager=r,f.VirtualRenderer=s,f.version=f.config.version}),ace.require(["ace/ace"],function(n){for(var f in n&&(n.config.init(!0),n.define=ace.define),window.ace||(window.ace=n),n)n.hasOwnProperty(f)&&(window.ace[f]=n[f]);window.ace.default=window.ace,ye&&(ye.exports=window.ace)})},9426:ye=>{function j(){}ye.exports=j,ye.exports.HttpsAgent=j},5618:function(){var ye;ye="undefined"!=typeof self?self:this,function(p){var n_searchParams="URLSearchParams"in ye,n_iterable="Symbol"in ye&&"iterator"in Symbol,n_blob="FileReader"in ye&&"Blob"in ye&&function(){try{return new Blob,!0}catch(I){return!1}}(),n_formData="FormData"in ye,n_arrayBuffer="ArrayBuffer"in ye;if(n_arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(I){return I&&v.indexOf(Object.prototype.toString.call(I))>-1};function o(I){if("string"!=typeof I&&(I=String(I)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(I))throw new TypeError("Invalid character in header field name");return I.toLowerCase()}function d(I){return"string"!=typeof I&&(I=String(I)),I}function u(I){var b={next:function(){var L=I.shift();return{done:void 0===L,value:L}}};return n_iterable&&(b[Symbol.iterator]=function(){return b}),b}function h(I){this.map={},I instanceof h?I.forEach(function(b,L){this.append(L,b)},this):Array.isArray(I)?I.forEach(function(b){this.append(b[0],b[1])},this):I&&Object.getOwnPropertyNames(I).forEach(function(b){this.append(b,I[b])},this)}function r(I){if(I.bodyUsed)return Promise.reject(new TypeError("Already read"));I.bodyUsed=!0}function s(I){return new Promise(function(b,L){I.onload=function(){b(I.result)},I.onerror=function(){L(I.error)}})}function i(I){var b=new FileReader,L=s(b);return b.readAsArrayBuffer(I),L}function g(I){if(I.slice)return I.slice(0);var b=new Uint8Array(I.byteLength);return b.set(new Uint8Array(I)),b.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(I){this._bodyInit=I,I?"string"==typeof I?this._bodyText=I:n_blob&&Blob.prototype.isPrototypeOf(I)?this._bodyBlob=I:n_formData&&FormData.prototype.isPrototypeOf(I)?this._bodyFormData=I:n_searchParams&&URLSearchParams.prototype.isPrototypeOf(I)?this._bodyText=I.toString():n_arrayBuffer&&n_blob&&function(I){return I&&DataView.prototype.isPrototypeOf(I)}(I)?(this._bodyArrayBuffer=g(I.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n_arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(I)||m(I))?this._bodyArrayBuffer=g(I):this._bodyText=I=Object.prototype.toString.call(I):this._bodyText="",this.headers.get("content-type")||("string"==typeof I?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n_searchParams&&URLSearchParams.prototype.isPrototypeOf(I)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n_blob&&(this.blob=function(){var I=r(this);if(I)return I;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?r(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(i)}),this.text=function(){var I=r(this);if(I)return I;if(this._bodyBlob)return function(I){var b=new FileReader,L=s(b);return b.readAsText(I),L}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(I){for(var b=new Uint8Array(I),L=new Array(b.length),F=0;F-1?b:I}(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}function O(I){var b=new FormData;return I.trim().split("&").forEach(function(L){if(L){var F=L.split("="),ne=F.shift().replace(/\+/g," "),Y=F.join("=").replace(/\+/g," ");b.append(decodeURIComponent(ne),decodeURIComponent(Y))}}),b}function w(I){var b=new h;return I.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(F){var ne=F.split(":"),Y=ne.shift().trim();if(Y){var Q=ne.join(":").trim();b.append(Y,Q)}}),b}function A(I,b){b||(b={}),this.type="default",this.status=void 0===b.status?200:b.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in b?b.statusText:"OK",this.headers=new h(b.headers),this.url=b.url||"",this._initBody(I)}D.prototype.clone=function(){return new D(this,{body:this._bodyInit})},y.call(D.prototype),y.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},A.error=function(){var I=new A(null,{status:0,statusText:""});return I.type="error",I};var S=[301,302,303,307,308];A.redirect=function(I,b){if(-1===S.indexOf(b))throw new RangeError("Invalid status code");return new A(null,{status:b,headers:{location:I}})},p.DOMException=ye.DOMException;try{new p.DOMException}catch(I){p.DOMException=function(b,L){this.message=b,this.name=L;var F=Error(b);this.stack=F.stack},p.DOMException.prototype=Object.create(Error.prototype),p.DOMException.prototype.constructor=p.DOMException}function M(I,b){return new Promise(function(L,F){var ne=new D(I,b);if(ne.signal&&ne.signal.aborted)return F(new p.DOMException("Aborted","AbortError"));var Y=new XMLHttpRequest;function Q(){Y.abort()}Y.onload=function(){var te={status:Y.status,statusText:Y.statusText,headers:w(Y.getAllResponseHeaders()||"")};te.url="responseURL"in Y?Y.responseURL:te.headers.get("X-Request-URL"),L(new A("response"in Y?Y.response:Y.responseText,te))},Y.onerror=function(){F(new TypeError("Network request failed"))},Y.ontimeout=function(){F(new TypeError("Network request failed"))},Y.onabort=function(){F(new p.DOMException("Aborted","AbortError"))},Y.open(ne.method,ne.url,!0),"include"===ne.credentials?Y.withCredentials=!0:"omit"===ne.credentials&&(Y.withCredentials=!1),"responseType"in Y&&n_blob&&(Y.responseType="blob"),ne.headers.forEach(function(te,$){Y.setRequestHeader($,te)}),ne.signal&&(ne.signal.addEventListener("abort",Q),Y.onreadystatechange=function(){4===Y.readyState&&ne.signal.removeEventListener("abort",Q)}),Y.send(void 0===ne._bodyInit?null:ne._bodyInit)})}M.polyfill=!0,ye.fetch||(ye.fetch=M,ye.Headers=h,ye.Request=D,ye.Response=A),p.Headers=h,p.Request=D,p.Response=A,p.fetch=M,Object.defineProperty(p,"__esModule",{value:!0})}({})},7664:ye=>{ye.exports=function(n){var f=new Date(n.getTime()),v=f.getTimezoneOffset();return f.setSeconds(0,0),6e4*v+f.getTime()%6e4}},6937:(ye,j,p)=>{var n=p(6910);ye.exports=function(v,m){var o=n(v),d=Number(m);return o.setDate(o.getDate()+d),o}},2500:(ye,j,p)=>{var n=p(7862);ye.exports=function(m,o){var d=Number(o);return n(m,36e5*d)}},7862:(ye,j,p)=>{var n=p(6910);ye.exports=function(v,m){var o=n(v).getTime(),d=Number(m);return new Date(o+d)}},8091:(ye,j,p)=>{var n=p(7862);ye.exports=function(m,o){var d=Number(o);return n(m,6e4*d)}},4992:(ye,j,p)=>{var n=p(6910),f=p(5490);ye.exports=function(m,o){var d=n(m),u=Number(o),h=d.getMonth()+u,r=new Date(0);r.setFullYear(d.getFullYear(),h,1),r.setHours(0,0,0,0);var s=f(r);return d.setMonth(h,Math.min(s,d.getDate())),d}},734:(ye,j,p)=>{var n=p(7862);ye.exports=function(v,m){var o=Number(m);return n(v,1e3*o)}},5213:(ye,j,p)=>{var n=p(6937);ye.exports=function(v,m){var o=Number(m);return n(v,7*o)}},2486:(ye,j,p)=>{var n=p(4992);ye.exports=function(v,m){var o=Number(m);return n(v,12*o)}},5490:(ye,j,p)=>{var n=p(6910);ye.exports=function(v){var m=n(v),o=m.getFullYear(),d=m.getMonth(),u=new Date(0);return u.setFullYear(o,d+1,0),u.setHours(0,0,0,0),u.getDate()}},9882:ye=>{ye.exports=function(p){return p instanceof Date}},6910:(ye,j,p)=>{var n=p(7664),f=p(9882),v=36e5,m=6e4,d=/[T ]/,u=/:/,h=/^(\d{2})$/,r=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],s=/^(\d{4})/,i=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],c=/^-(\d{2})$/,l=/^-?(\d{3})$/,g=/^-?(\d{2})-?(\d{2})$/,y=/^-?W(\d{2})$/,E=/^-?W(\d{2})-?(\d{1})$/,T=/^(\d{2}([.,]\d*)?)$/,D=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,O=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/([Z+-].*)$/,A=/^(Z)$/,S=/^([+-])(\d{2})$/,M=/^([+-])(\d{2}):?(\d{2})$/;function Q(te,$,J){$=$||0,J=J||0;var ie=new Date(0);ie.setUTCFullYear(te,0,4);var le=7*$+J+1-(ie.getUTCDay()||7);return ie.setUTCDate(ie.getUTCDate()+le),ie}ye.exports=function(te,$){if(f(te))return new Date(te.getTime());if("string"!=typeof te)return new Date(te);var ie=($||{}).additionalDigits;ie=null==ie?2:Number(ie);var ae=function(te){var ie,$={},J=te.split(d);if(u.test(J[0])?($.date=null,ie=J[0]):($.date=J[0],ie=J[1]),ie){var ae=w.exec(ie);ae?($.time=ie.replace(ae[1],""),$.timezone=ae[1]):$.time=ie}return $}(te),le=function(te,$){var ae,J=r[$],ie=i[$];if(ae=s.exec(te)||ie.exec(te)){var le=ae[1];return{year:parseInt(le,10),restDateString:te.slice(le.length)}}if(ae=h.exec(te)||J.exec(te)){var Oe=ae[1];return{year:100*parseInt(Oe,10),restDateString:te.slice(Oe.length)}}return{year:null}}(ae.date,ie),Ye=function(te,$){if(null===$)return null;var J,ie,ae;if(0===te.length)return(ie=new Date(0)).setUTCFullYear($),ie;if(J=c.exec(te))return ie=new Date(0),ae=parseInt(J[1],10)-1,ie.setUTCFullYear($,ae),ie;if(J=l.exec(te)){ie=new Date(0);var Oe=parseInt(J[1],10);return ie.setUTCFullYear($,0,Oe),ie}if(J=g.exec(te)){ie=new Date(0),ae=parseInt(J[1],10)-1;var Le=parseInt(J[2],10);return ie.setUTCFullYear($,ae,Le),ie}return(J=y.exec(te))?Q($,parseInt(J[1],10)-1):(J=E.exec(te))?Q($,parseInt(J[1],10)-1,parseInt(J[2],10)-1):null}(le.restDateString,le.year);if(Ye){var Ue,Je=Ye.getTime(),gt=0;if(ae.time&&(gt=function(te){var $,J,ie;if($=T.exec(te))return(J=parseFloat($[1].replace(",",".")))%24*v;if($=D.exec(te))return J=parseInt($[1],10),ie=parseFloat($[2].replace(",",".")),J%24*v+ie*m;if($=O.exec(te)){J=parseInt($[1],10),ie=parseInt($[2],10);var ae=parseFloat($[3].replace(",","."));return J%24*v+ie*m+1e3*ae}return null}(ae.time)),ae.timezone)Ue=function(te){var $,J;return($=A.exec(te))?0:($=S.exec(te))?(J=60*parseInt($[2],10),"+"===$[1]?-J:J):($=M.exec(te))?(J=60*parseInt($[2],10)+parseInt($[3],10),"+"===$[1]?-J:J):0}(ae.timezone)*m;else{var tt=Je+gt,at=new Date(tt);Ue=n(at);var ft=new Date(tt);ft.setDate(at.getDate()+1);var vt=n(ft)-n(at);vt>0&&(Ue+=vt)}return new Date(Je+gt+Ue)}return new Date(te)}},1455:(ye,j,p)=>{j.formatArgs=function(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+ye.exports.humanize(this.diff),!this.useColors)return;const h="color: "+this.color;u.splice(1,0,h,"color: inherit");let r=0,s=0;u[0].replace(/%[a-zA-Z%]/g,i=>{"%%"!==i&&(r++,"%c"===i&&(s=r))}),u.splice(s,0,h)},j.save=function(u){try{u?j.storage.setItem("debug",u):j.storage.removeItem("debug")}catch(h){}},j.load=function(){let u;try{u=j.storage.getItem("debug")}catch(h){}return!u&&"undefined"!=typeof process&&"env"in process&&(u=process.env.DEBUG),u},j.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},j.storage=function(){try{return localStorage}catch(u){}}(),j.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),j.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],j.log=console.debug||console.log||(()=>{}),ye.exports=p(3283)(j);const{formatters:d}=ye.exports;d.j=function(u){try{return JSON.stringify(u)}catch(h){return"[UnexpectedJSONParseError]: "+h.message}}},3283:(ye,j,p)=>{ye.exports=function(f){function m(c){let l,y,E,g=null;function T(...D){if(!T.enabled)return;const O=T,w=Number(new Date);O.diff=w-(l||w),O.prev=l,O.curr=w,l=w,D[0]=m.coerce(D[0]),"string"!=typeof D[0]&&D.unshift("%O");let S=0;D[0]=D[0].replace(/%([a-zA-Z%])/g,(I,b)=>{if("%%"===I)return"%";S++;const L=m.formatters[b];return"function"==typeof L&&(I=L.call(O,D[S]),D.splice(S,1),S--),I}),m.formatArgs.call(O,D),(O.log||m.log).apply(O,D)}return T.namespace=c,T.useColors=m.useColors(),T.color=m.selectColor(c),T.extend=o,T.destroy=m.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==g?g:(y!==m.namespaces&&(y=m.namespaces,E=m.enabled(c)),E),set:D=>{g=D}}),"function"==typeof m.init&&m.init(T),T}function o(c,l){const g=m(this.namespace+(void 0===l?":":l)+c);return g.log=this.log,g}function r(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}return m.debug=m,m.default=m,m.coerce=function(c){return c instanceof Error?c.stack||c.message:c},m.disable=function(){const c=[...m.names.map(r),...m.skips.map(r).map(l=>"-"+l)].join(",");return m.enable(""),c},m.enable=function(c){let l;m.save(c),m.namespaces=c,m.names=[],m.skips=[];const g=("string"==typeof c?c:"").split(/[\s,]+/),y=g.length;for(l=0;l{m[c]=f[c]}),m.names=[],m.skips=[],m.formatters={},m.selectColor=function(c){let l=0;for(let g=0;g{"use strict";var j="%[a-f0-9]{2}",p=new RegExp("("+j+")|([^%]+?)","gi"),n=new RegExp("("+j+")+","gi");function f(o,d){try{return[decodeURIComponent(o.join(""))]}catch(r){}if(1===o.length)return o;var u=o.slice(0,d=d||1),h=o.slice(d);return Array.prototype.concat.call([],f(u),f(h))}function v(o){try{return decodeURIComponent(o)}catch(h){for(var d=o.match(p)||[],u=1;u=64;){for(D=g[0],O=g[1],w=g[2],A=g[3],S=g[4],M=g[5],I=g[6],b=g[7],F=0;F<16;F++)l[F]=(255&y[ne=E+4*F])<<24|(255&y[ne+1])<<16|(255&y[ne+2])<<8|255&y[ne+3];for(F=16;F<64;F++)l[F]=((Y=((L=l[F-2])>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+l[F-7]|0)+((Q=((L=l[F-15])>>>7|L<<25)^(L>>>18|L<<14)^L>>>3)+l[F-16]|0);for(F=0;F<64;F++)Y=(((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&M^~S&I)|0)+(b+(v[F]+l[F]|0)|0)|0,Q=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&O^D&w^O&w)|0,b=I,I=M,M=S,S=A+Y|0,A=w,w=O,O=D,D=Y+Q|0;g[0]+=D,g[1]+=O,g[2]+=w,g[3]+=A,g[4]+=S,g[5]+=M,g[6]+=I,g[7]+=b,E+=64,T-=64}return E}var o=function(){function l(){this.digestLength=f.digestLength,this.blockSize=f.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return l.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},l.prototype.clean=function(){for(var g=0;g0){for(;this.bufferLength<64&&y>0;)this.buffer[this.bufferLength++]=g[E++],y--;64===this.bufferLength&&(m(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(y>=64&&(E=m(this.temp,this.state,g,E,y),y%=64);y>0;)this.buffer[this.bufferLength++]=g[E++],y--;return this},l.prototype.finish=function(g){if(!this.finished){var y=this.bytesHashed,E=this.bufferLength,T=y/536870912|0,D=y<<3,O=y%64<56?64:128;this.buffer[E]=128;for(var w=E+1;w>>24&255,this.buffer[O-7]=T>>>16&255,this.buffer[O-6]=T>>>8&255,this.buffer[O-5]=T>>>0&255,this.buffer[O-4]=D>>>24&255,this.buffer[O-3]=D>>>16&255,this.buffer[O-2]=D>>>8&255,this.buffer[O-1]=D>>>0&255,m(this.temp,this.state,this.buffer,0,O),this.finished=!0}for(w=0;w<8;w++)g[4*w+0]=this.state[w]>>>24&255,g[4*w+1]=this.state[w]>>>16&255,g[4*w+2]=this.state[w]>>>8&255,g[4*w+3]=this.state[w]>>>0&255;return this},l.prototype.digest=function(){var g=new Uint8Array(this.digestLength);return this.finish(g),g},l.prototype._saveState=function(g){for(var y=0;ythis.blockSize)(new o).update(g).finish(y).clean();else for(var E=0;E1&&g.update(l),y&&g.update(y),g.update(E),g.finish(l),E[0]++}f.HMAC=d,f.hash=u,f.default=u,f.hmac=h;var s=new Uint8Array(f.digestLength);f.hkdf=function(l,g,y,E){void 0===g&&(g=s),void 0===E&&(E=32);for(var T=new Uint8Array([1]),D=h(g,l),O=new d(D),w=new Uint8Array(O.digestLength),A=w.length,S=new Uint8Array(E),M=0;M>>24&255,O[1]=I>>>16&255,O[2]=I>>>8&255,O[3]=I>>>0&255,T.reset(),T.update(g),T.update(O),T.finish(A);for(var b=0;b{ye.exports=class{constructor(n){this.capabilityStatement=n}serverCan(n){return this.supportFor({capabilityType:"interaction",where:{code:n}})}resourceCan(n,f){return this.supportFor({resourceType:n,capabilityType:"interaction",where:{code:f}})}serverSearch(n){return this.supportFor({capabilityType:"searchParam",where:{name:n}})}resourceSearch(n,f){return this.supportFor({resourceType:n,capabilityType:"searchParam",where:{name:f}})}supportFor({resourceType:n,capabilityType:f,where:v}={}){let m;if(m=n?this.resourceCapabilities({resourceType:n}):this.serverCapabilities(),!m)return!1;const o=m[f];if(v&&o){const d=Object.keys(v)[0];return void 0!==o.find(h=>h[d]===v[d])}return void 0!==o}interactionsFor({resourceType:n}={}){const f=this.resourceCapabilities({resourceType:n});return void 0===f?[]:f.interaction.map(v=>v.code)}searchParamsFor({resourceType:n}={}){const f=this.resourceCapabilities({resourceType:n});return void 0===f||void 0===f.searchParam?[]:f.searchParam.map(v=>v.name)}resourceCapabilities({resourceType:n}={}){return this.serverCapabilities().resource.find(m=>m.type===n)}capabilityContents({resourceType:n,capabilityType:f}={}){const v=this.resourceCapabilities({resourceType:n});if(void 0!==v)return v[f]}serverCapabilities(){return this.capabilityStatement.rest.find(n=>"server"===n.mode)}}},6336:(ye,j,p)=>{var n=p(8926).default;const f=p(3230),{authFromCapability:v,authFromWellKnown:m}=p(231),o=p(3302),d=p(6357),u=p(8279),{createQueryString:h,validResourceType:r}=p(7800),{FetchQueue:s}=p(7011),{deprecatePaginationArgs:i,deprecateHeaders:c}=p(4712),l=p(5457);ye.exports=class{constructor({baseUrl:E,customHeaders:T,requestOptions:D,requestSigner:O,bearerToken:w}={}){this.httpClient=new o({baseUrl:E,customHeaders:T,requestOptions:D,requestSigner:O}),w&&(this.httpClient.bearerToken=w),this.resolver=new d(this),this.pagination=new u(this.httpClient)}static httpFor(E){return{request:o.requestFor(E),response:o.responseFor(E)}}get baseUrl(){return this.httpClient&&this.httpClient.baseUrl}set baseUrl(E){this.httpClient&&(this.httpClient.baseUrl=E)}get customHeaders(){return this.httpClient.customHeaders}set customHeaders(E){this.httpClient.customHeaders=E}set bearerToken(E){this.httpClient.bearerToken=E}resolve({reference:E,context:T,headers:D,options:O={}}={}){return this.resolver.resolve({reference:E,context:T,options:c(O,D)})}smartAuthMetadata({headers:E,options:T={}}={}){var D=this;return n(function*(){const O={options:c(T,E)};O.options.headers||(O.options.headers={}),O.options.headers.accept="application/fhir+json,application/json";const w=D.baseUrl.replace(/\/*$/,"/"),A=new s,S=A.buildJob(),M=A.buildJob(),I=A.buildJob(),b=[];return new Promise((L,F)=>{function ne(Y){b.push(Y)===A.numJobs&&F(new Error(b.map(Q=>Q.message).join("; ")))}D.httpClient.request("GET",`${w}.well-known/smart-configuration`,M.addSignalOption(O)).then(Y=>(A.safeAbortOthers(M),L(m(Y)))).catch(Y=>ne(Y)),D.capabilityStatement(S.addSignalOption(O)).then(Y=>(A.safeAbortOthers(S),L(v(Y)))).catch(Y=>ne(Y)),D.httpClient.request("GET",`${w}.well-known/openid-configuration`,I.addSignalOption(O)).then(Y=>(A.safeAbortOthers(I),L(m(Y)))).catch(Y=>ne(Y))})})()}capabilityStatement({headers:E,options:T={}}={}){return this.metadata||(this.metadata=this.httpClient.get("metadata",c(T,E))),this.metadata}request(E,{method:T="GET",options:D={},body:O}={}){return D.method&&D.method!==T&&console.warn(`WARNING: 'options.method' has been specified: ${D.method} but will be ignored. Use 'method' instead.`),this.httpClient.request(T,E,D,O)}read({resourceType:E,id:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.get(`${E}/${T}`,c(O,D))}vread({resourceType:E,id:T,version:D,headers:O,options:w={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.get(`${E}/${T}/_history/${D}`,c(w,O))}create({resourceType:E,body:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.post(E,T,c(O,D))}delete({resourceType:E,id:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.delete(`${E}/${T}`,c(O,D))}update({resourceType:E,id:T,searchParams:D,body:O,headers:w,options:A={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);if(T&&D)throw new Error("Conditional update with search params cannot be with id",E);if(D){const S=h(D);return this.httpClient.put(`${E}?${S}`,O,c(A,w))}return this.httpClient.put(`${E}/${T}`,O,c(A,w))}patch({resourceType:E,id:T,JSONPatch:D,headers:O,options:w={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);const S={...c(w,O).headers||{},"Content-Type":"application/json-patch+json"};return this.httpClient.patch(`${E}/${T}`,D,{...w,headers:S})}batch({body:E,headers:T,options:D={}}={}){return this.httpClient.post("/",E,c(D,T))}transaction({body:E,headers:T,options:D={}}={}){return this.httpClient.post("/",E,c(D,T))}operation({name:E,resourceType:T,id:D,method:O="POST",input:w,options:A={}}={}){const S=["/"];if(T){if(!r(T))throw new Error("Invalid resourceType",T);S.push(`${T}/`)}return D&&S.push(`${D}/`),S.push(`${E.startsWith("$")?E:`$${E}`}`),"POST"===O.toUpperCase()?this.httpClient.post(S.join(""),w,A):"GET"===O.toUpperCase()?(w&&S.push(`?${f.stringify(w)}`),this.httpClient.get(S.join(""),A)):void 0}nextPage(E,T){const{bundle:D,options:O={}}=i(E,T);return this.pagination.nextPage(D,O)}prevPage(E,T){const{bundle:D,options:O={}}=i(E,T);return this.pagination.prevPage(D,O)}search({resourceType:E,compartment:T,searchParams:D,headers:O,options:w={}}={}){if(E&&!r(E))throw new Error("Invalid resourceType",E);if(T&&E)return this.compartmentSearch({resourceType:E,compartment:T,searchParams:D,options:c(w,O)});if(E)return this.resourceSearch({resourceType:E,searchParams:D,options:c(w,O)});if(D instanceof Object&&Object.keys(D).length>0)return this.systemSearch({searchParams:D,options:c(w,O)});throw new Error("search requires either searchParams or a resourceType")}resourceSearch({resourceType:E,searchParams:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);let w=E;return O.postSearch&&(w+="/_search"),this.baseSearch({searchPath:w,searchParams:T,headers:D,options:O})}systemSearch({searchParams:E,headers:T,options:D={}}={}){return this.baseSearch({searchPath:"/_search",searchParams:E,headers:T,options:D})}compartmentSearch({resourceType:E,compartment:T,searchParams:D,headers:O,options:w={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);const{resourceType:A,id:S}=T;if(!r(A))throw new Error("Invalid compartmentType",A);let M=`/${A}/${S}/${E}`;return w.postSearch&&(M+="/_search"),this.baseSearch({searchPath:M,searchParams:D,headers:O,options:w})}baseSearch({searchPath:E,searchParams:T,headers:D,options:O}){const w=h(T),A=c(O,D);return this[O.postSearch?"postSearch":"getSearch"](E,w,A)}postSearch(E,T,D){const w={"Content-Type":"application/x-www-form-urlencoded",...D.headers},A={...D,headers:w};return this.httpClient.post(E,T,A)}getSearch(E,T,D){let O=E;return T&&(O+=`?${T}`),this.httpClient.get(O,D)}history({resourceType:E,id:T,headers:D,options:O={}}={}){if(E&&!r(E))throw new Error("Invalid resourceType",E);return T&&E?this.resourceHistory({resourceType:E,id:T,options:c(O,D)}):E?this.typeHistory({resourceType:E,options:c(O,D)}):this.systemHistory({options:c(O,D)})}resourceHistory({resourceType:E,id:T,headers:D,options:O={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.get(`${E}/${T}/_history`,c(O,D))}typeHistory({resourceType:E,headers:T,options:D={}}={}){if(!r(E))throw new Error("Invalid resourceType",E);return this.httpClient.get(`${E}/_history`,c(D,T))}systemHistory({headers:E,options:T={}}={}){return this.httpClient.get("_history",c(T,E))}},ye.exports.CapabilityTool=l},4712:ye=>{ye.exports={deprecateHeaders:(n,f)=>f?(console.warn("WARNING: headers is deprecated and will be removed in the next major version. Use options.headers instead."),console.warn(JSON.stringify(f,null," ")),{headers:f,...n}):n,deprecatePaginationArgs:(n,f)=>{if(Object.prototype.hasOwnProperty.call(n,"resourceType")){console.warn("WARNING: positional parameters for pagination methods are deprecated and will be removed in the next major version. Call with ({ bundle, options }) rather than (bundle, headers)");const v={bundle:n};return f&&(v.options={headers:f}),v}return n}}},7011:(ye,j,p)=>{const{AbortController:n}=p(2398);class f{constructor(){this.controller=new n,this.resolving=!1}addSignalOption(o){return{signal:this.controller.signal,...o}}safeAbort(){this.resolving||this.controller.abort()}}ye.exports={FetchQueue:class{constructor(){this.jobs=[],this.numJobs=0}buildJob(){const o=new f;return this.numJobs=this.jobs.push(o),o}safeAbortOthers(o){o.resolving=!0;for(let d=0,u=this.numJobs;d{ye.exports={fhirReferenceRegEx:/^((http|https):\/\/([A-Za-z0-9\\.:%$]*\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodySite|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Conformance|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DataElement|DecisionSupportRule|DecisionSupportServiceModule|DetectedIssue|Device|DeviceComponent|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseRequest|DeviceUseStatement|DiagnosticOrder|DiagnosticReport|DiagnosticRequest|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|EligibilityRequest|EligibilityResponse|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EntryDefinition|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExpansionProfile|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceRequest|GuidanceResponse|HealthcareService|ImagingExcerpt|ImagingManifest|ImagingObjectSelection|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|ImplementationGuideInput|ImplementationGuideOutput|InsurancePlan|Invoice|ItemInstance|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationOrder|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductClinicals|MedicinalProductContraindication|MedicinalProductDeviceSpec|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|ModuleDefinition|ModuleMetadata|MolecularSequence|NamingSystem|NutritionOrder|NutritionRequest|Observation|ObservationDefinition|OccupationalData|OperationDefinition|OperationOutcome|Order|OrderResponse|OrderSet|Organization|OrganizationAffiliation|OrganizationRole|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|ProcedureRequest|ProcessRequest|ProcessResponse|ProductPlan|Protocol|Provenance|Questionnaire|QuestionnaireResponse|ReferralRequest|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|Sequence|ServiceDefinition|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|UserSession|ValueSet|VerificationResult|VisionPrescription)\/[A-Za-z0-9\-.]{1,256}(\/_history\/[A-Za-z0-9\-.]{1,256})?$/}},3302:(ye,j,p)=>{var n=p(8926).default;p(6604).polyfill(),p(5618);const{logRequestError:f,logRequestInfo:v,logResponseInfo:m}=p(6988),o={accept:"application/fhir+json"},d="__response",u="__request";let r,s,h=!1;try{r=p(9426),s=p(9426).HttpsAgent,h=!0}catch(y){v("HTTP Agent is not available")}const i=new WeakMap;function l({status:y,data:E,method:T,headers:D,url:O}){const w={response:{status:y,data:E},config:{method:T,url:O,headers:D}};return f(w),w}ye.exports=class Fl{static lcKeys(E){return E&&Object.keys(E).reduce((T,D)=>(T[D.toLowerCase()]=E[D],T),{})}constructor({baseUrl:E,customHeaders:T={},requestOptions:D={},requestSigner:O}){this.baseUrl=E,this.customHeaders=T,this.baseRequestOptions=D,this.requestSigner=O}set baseUrl(E){if(!E)throw new Error("baseUrl cannot be blank");if("string"!=typeof E)throw new Error("baseUrl must be a string");this.baseUrlValue=E}get baseUrl(){return this.baseUrlValue}static responseFor(E){return E[d]}static requestFor(E){return E[u]}set bearerToken(E){this.authHeader={authorization:`Bearer ${E}`}}requestBuilder(E,T,D,O){const w={...this.baseRequestOptions,...D,method:E,body:(y=O,"string"==typeof y?y:JSON.stringify(y))};var y;let A={};return h||(A={keepalive:!Object.prototype.hasOwnProperty.call(w,"keepalive")||w.keepalive}),Object.assign(w,A,{headers:new Headers(this.mergeHeaders(D.headers))},function(y,E={}){const T={baseUrl:y,agentOptions:E};return h?(i.get(T)||(y.startsWith("https")?i.set(T,{agent:new s(E)}):i.set(T,{agent:new r(E)})),i.get(T)):{}}(this.baseUrl,w)),this.requestSigner&&this.requestSigner(T,w),new Request(T,w)}request(E,T,D={},O){var w=this;return n(function*(){const A=w.expandUrl(T),S=w.requestBuilder(E,A,D,O);v(E,A,S.headers);const M=yield fetch(S),{status:I,headers:b}=M;m({status:I,response:M});const L=yield M.text();let F={};if(L)try{F=JSON.parse(L)}catch(ne){throw F=L,l({status:I,data:F,method:E,headers:b,url:A})}if(!M.ok)throw l({status:I,data:F,method:E,headers:b,url:A});return Object.defineProperty(F,d,{writable:!1,enumerable:!1,value:M}),Object.defineProperty(F,u,{writable:!1,enumerable:!1,value:S}),F})()}get(E,T){var D=this;return n(function*(){return D.request("GET",E,T)})()}delete(E,T){var D=this;return n(function*(){return D.request("DELETE",E,T)})()}put(E,T,D={}){var O=this;return n(function*(){const w={"content-type":"application/fhir+json",...Fl.lcKeys(D.headers)},A={...D,headers:w};return O.request("PUT",E,A,T)})()}post(E,T,D={}){var O=this;return n(function*(){const w={"content-type":"application/fhir+json",...Fl.lcKeys(D.headers)},A={...D,headers:w};return O.request("POST",E,A,T)})()}patch(E,T,D){var O=this;return n(function*(){return O.request("PATCH",E,D,T)})()}expandUrl(E=""){return E.toLowerCase().startsWith("http")?E:this.baseUrl.endsWith("/")&&E.startsWith("/")?this.baseUrl+E.slice(1):this.baseUrl.endsWith("/")||E.startsWith("/")?this.baseUrl+E:`${this.baseUrl}/${E}`}mergeHeaders(E){const{lcKeys:T}=Fl;return{...T(o),...T(this.authHeader),...T(this.customHeaders),...T(E)}}}},6988:(ye,j,p)=>{const n=p(642),f=p(1455)("fhir-kit-client:error"),v=p(1455)("fhir-kit-client:info");function m(s){return n(s)}function o(s){return m(s.raw&&"function"==typeof s.raw?s.raw():s)}ye.exports={logRequestError:function(s){!f.enabled||(f("!!! Error"),s.response&&f(` Status: ${s.response.status}`),s.config&&(f(` ${s.config.method.toUpperCase()}: ${s.config.url}`),f(` Headers: ${o(s.config.headers)}`)),s.response&&s.response.data&&f(m(s.response.data)),f("!!! Request Error"))},logRequestInfo:function(s,i,c){!v.enabled||(i&&v(`Request: ${s.toUpperCase()} ${i.toString()}`),v(`Request Headers: ${o(c)}`))},logResponseInfo:function(s){!v.enabled||(v(`Response: ${s.status}`),s.data&&v(m(s.data)))},logError:function(s){!f.enabled||f(s)}}},8279:ye=>{ye.exports=class{constructor(n){this.httpClient=n}nextPage(n,{headers:f}={}){const v=n.link.find(m=>"next"===m.relation);return v?this.httpClient.get(v.url,{headers:f}):void 0}prevPage(n,{headers:f}={}){const v=n.link.find(m=>m.relation.match(/^prev(ious)?$/));return v?this.httpClient.get(v.url,{headers:f}):void 0}}},6357:(ye,j,p)=>{var n=p(8926).default;const{splitReference:f}=p(7800),{deprecateHeaders:v}=p(4712);ye.exports=class{constructor(m){this.client=m}resolve({reference:m,context:o,headers:d,options:u={}}={}){var h=this;return n(function*(){return void 0===o?m.startsWith("http")?h.resolveAbsoluteReference(m,v(u,d)):h.client.httpClient.get(m,v(u,d)):m.startsWith("#")?h.resolveContainedReference(m,o):h.resolveBundleReference(m,o,v(u,d))})()}resolveAbsoluteReference(m,o){var d=this;return n(function*(){if(m.startsWith(d.client.baseUrl))return d.client.httpClient.get(m,o);const{baseUrl:u,resourceType:h,id:r}=f(m);return new(p(6336))({baseUrl:u}).read({resourceType:h,id:r,options:o})})()}resolveContainedReference(m,o){if(o.contained){const d=m.slice(1),u=o.contained.find(h=>h.id===d);if(u)return u}throw new Error(`Unable to resolve contained reference: ${m}`)}resolveBundleReference(m,o,d){var u=this;return n(function*(){const h=new RegExp(`(^|/)${m}$`),r=o.entry.find(s=>h.test(s.fullUrl));return r?r.resource:u.resolve({reference:m,options:d})})()}}},231:(ye,j,p)=>{const{logError:f}=p(6988);ye.exports={authFromCapability:function(o){const d={};try{return o.rest.forEach(u=>{u.security.extension.find(r=>"http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris"===r.url).extension.forEach(r=>{switch(r.url){case"authorize":d.authorizeUrl=new URL(r.valueUri);break;case"token":d.tokenUrl=new URL(r.valueUri);break;case"register":d.registerUrl=new URL(r.valueUri);break;case"manage":d.manageUrl=new URL(r.valueUri)}})}),d}catch(u){return f(u),d}},authFromWellKnown:function(o){const{authorization_endpoint:d,token_endpoint:u,registration_endpoint:h}=o;return{authorizeUrl:d&&new URL(d),tokenUrl:u&&new URL(u),registerUrl:h&&new URL(h)}}}},7800:(ye,j,p)=>{const n=p(3230),{fhirReferenceRegEx:f}=p(3113);ye.exports={createQueryString:function(d){if(d instanceof Object&&Object.keys(d).length>0)return n.stringify(d)},splitReference:function(d){if(!d.match(f))throw new Error(`${d} is not a recognized FHIR reference`);let u,h=d;d.startsWith("http")&&([,u]=f.exec(d),h=d.slice(u.length),u.endsWith("/")&&(u=u.slice(0,-1)));const[r,s]=h.split("/");return{baseUrl:u,resourceType:r,id:s}},validResourceType:function(d){return!d.startsWith("/")&&!d.includes(":")&&/\S/.test(d)}}},6665:(ye,j,p)=>{var n=p(8443).Token,f=p(3805).Lexer,v=p(210).Interval;function m(){return this}function o(d){return m.call(this),this.tokenSource=d,this.tokens=[],this.index=-1,this.fetchedEOF=!1,this}(o.prototype=Object.create(m.prototype)).constructor=o,o.prototype.mark=function(){return 0},o.prototype.release=function(d){},o.prototype.reset=function(){this.seek(0)},o.prototype.seek=function(d){this.lazyInit(),this.index=this.adjustSeekIndex(d)},o.prototype.get=function(d){return this.lazyInit(),this.tokens[d]},o.prototype.consume=function(){if(!(this.index>=0&&(this.fetchedEOF?this.index0)||this.fetch(u)>=u},o.prototype.fetch=function(d){if(this.fetchedEOF)return 0;for(var u=0;u=this.tokens.length&&(u=this.tokens.length-1);for(var s=d;s=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[u]},o.prototype.adjustSeekIndex=function(d){return d},o.prototype.lazyInit=function(){-1===this.index&&this.setup()},o.prototype.setup=function(){this.sync(0),this.index=this.adjustSeekIndex(0)},o.prototype.setTokenSource=function(d){this.tokenSource=d,this.tokens=[],this.index=-1,this.fetchedEOF=!1},o.prototype.nextTokenOnChannel=function(d,u){if(this.sync(d),d>=this.tokens.length)return-1;for(var h=this.tokens[d];h.channel!==this.channel;){if(h.type===n.EOF)return-1;this.sync(d+=1),h=this.tokens[d]}return d},o.prototype.previousTokenOnChannel=function(d,u){for(;d>=0&&this.tokens[d].channel!==u;)d-=1;return d},o.prototype.getHiddenTokensToRight=function(d,u){if(void 0===u&&(u=-1),this.lazyInit(),d<0||d>=this.tokens.length)throw d+" not in 0.."+this.tokens.length-1;var h=this.nextTokenOnChannel(d+1,f.DEFAULT_TOKEN_CHANNEL);return this.filterForChannel(d+1,-1===h?this.tokens.length-1:h,u)},o.prototype.getHiddenTokensToLeft=function(d,u){if(void 0===u&&(u=-1),this.lazyInit(),d<0||d>=this.tokens.length)throw d+" not in 0.."+this.tokens.length-1;var h=this.previousTokenOnChannel(d-1,f.DEFAULT_TOKEN_CHANNEL);return h===d-1?null:this.filterForChannel(h+1,d-1,u)},o.prototype.filterForChannel=function(d,u,h){for(var r=[],s=d;s=this.tokens.length&&(h=this.tokens.length-1);for(var r="",s=u;s{var n=p(8443).CommonToken;function f(){return this}function v(m){return f.call(this),this.copyText=void 0!==m&&m,this}(v.prototype=Object.create(f.prototype)).constructor=v,v.DEFAULT=new v,v.prototype.create=function(m,o,d,u,h,r,s,i){var c=new n(m,o,u,h,r);return c.line=s,c.column=i,null!==d?c.text=d:this.copyText&&null!==m[1]&&(c.text=m[1].getText(h,r)),c},v.prototype.createThin=function(m,o){var d=new n(null,m);return d.text=o,d},j.$=v},2430:(ye,j,p)=>{var n=p(8443).Token,f=p(6665).B;function v(m,o){return f.call(this,m),this.channel=void 0===o?n.DEFAULT_CHANNEL:o,this}(v.prototype=Object.create(f.prototype)).constructor=v,v.prototype.adjustSeekIndex=function(m){return this.nextTokenOnChannel(m,this.channel)},v.prototype.LB=function(m){if(0===m||this.index-m<0)return null;for(var o=this.index,d=1;d<=m;)o=this.previousTokenOnChannel(o-1,this.channel),d+=1;return o<0?null:this.tokens[o]},v.prototype.LT=function(m){if(this.lazyInit(),0===m)return null;if(m<0)return this.LB(-m);for(var o=this.index,d=1;d{var n=p(8443).Token;function v(m,o){return this.name="",this.strdata=m,this.decodeToUnicodeCodePoints=o||!1,function(m){if(m._index=0,m.data=[],m.decodeToUnicodeCodePoints)for(var o=0;o=this._size)throw"cannot consume EOF";this._index+=1},v.prototype.LA=function(m){if(0===m)return 0;m<0&&(m+=1);var o=this._index+m-1;return o<0||o>=this._size?n.EOF:this.data[o]},v.prototype.LT=function(m){return this.LA(m)},v.prototype.mark=function(){return-1},v.prototype.release=function(m){},v.prototype.seek=function(m){this._index=m<=this._index?m:Math.min(m,this._size)},v.prototype.getText=function(m,o){if(o>=this._size&&(o=this._size-1),m>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var d="",u=m;u<=o;u++)d+=String.fromCodePoint(this.data[u]);return d}return this.strdata.slice(m,o+1)},v.prototype.toString=function(){return this.strdata},j.InputStream=v},210:(ye,j,p)=>{var n=p(8443).Token;function f(m,o){return this.start=m,this.stop=o,this}function v(){this.intervals=null,this.readOnly=!1}f.prototype.contains=function(m){return m>=this.start&&m=d.stop?(this.intervals.pop(m+1),this.reduce(m)):o.stop>=d.start&&(this.intervals[m]=new f(o.start,d.stop),this.intervals.pop(m+1))}},v.prototype.complement=function(m,o){var d=new v;d.addInterval(new f(m,o+1));for(var u=0;uu.start&&m.stop=u.stop?(this.intervals.splice(o,1),o-=1):m.start":"'"+String.fromCharCode(d.start)+"'":"'"+String.fromCharCode(d.start)+"'..'"+String.fromCharCode(d.stop-1)+"'")}return m.length>1?"{"+m.join(", ")+"}":m[0]},v.prototype.toIndexString=function(){for(var m=[],o=0;o":d.start.toString():d.start.toString()+".."+(d.stop-1).toString())}return m.length>1?"{"+m.join(", ")+"}":m[0]},v.prototype.toTokenString=function(m,o){for(var d=[],u=0;u1?"{"+d.join(", ")+"}":d[0]},v.prototype.elementName=function(m,o,d){return d===n.EOF?"":d===n.EPSILON?"":m[d]||o[d]},j.Interval=f,j.V=v},8802:(ye,j,p)=>{var n=p(8065).Set,f=p(8065).BitSet,v=p(8443).Token,m=p(2348).m,d=(p(210),p(210).V),u=p(9855).RuleStopState,h=p(7131).RuleTransition,r=p(7131).NotSetTransition,s=p(7131).WildcardTransition,i=p(7131).AbstractPredicateTransition,c=p(4825),l=c.predictionContextFromRuleContext,g=c.PredictionContext,y=c.SingletonPredictionContext;function E(T){this.atn=T}E.HIT_PRED=v.INVALID_TYPE,E.prototype.getDecisionLookahead=function(T){if(null===T)return null;for(var D=T.transitions.length,O=[],w=0;w{var n=p(8443).Token,f=p(3788).c,v=p(5207).$,m=p(6071).RecognitionException,o=p(6071).LexerNoViableAltException;function u(h){return f.call(this),this._input=h,this._factory=v.DEFAULT,this._tokenFactorySourcePair=[this,h],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=n.DEFAULT_CHANNEL,this._type=n.INVALID_TYPE,this._modeStack=[],this._mode=u.DEFAULT_MODE,this._text=null,this}(u.prototype=Object.create(f.prototype)).constructor=u,u.DEFAULT_MODE=0,u.MORE=-2,u.SKIP=-3,u.DEFAULT_TOKEN_CHANNEL=n.DEFAULT_CHANNEL,u.HIDDEN=n.HIDDEN_CHANNEL,u.MIN_CHAR_VALUE=0,u.MAX_CHAR_VALUE=1114111,u.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._token=null,this._type=n.INVALID_TYPE,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=u.DEFAULT_MODE,this._modeStack=[],this._interp.reset()},u.prototype.nextToken=function(){if(null===this._input)throw"nextToken requires a non-null input stream.";var h=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var r=!1;;){this._type=n.INVALID_TYPE;var s=u.SKIP;try{s=this._interp.match(this._input,this._mode)}catch(i){if(!(i instanceof m))throw console.log(i.stack),i;this.notifyListeners(i),this.recover(i)}if(this._input.LA(1)===n.EOF&&(this._hitEOF=!0),this._type===n.INVALID_TYPE&&(this._type=s),this._type===u.SKIP){r=!0;break}if(this._type!==u.MORE)break}if(!r)return null===this._token&&this.emit(),this._token}}finally{this._input.release(h)}},u.prototype.skip=function(){this._type=u.SKIP},u.prototype.more=function(){this._type=u.MORE},u.prototype.mode=function(h){this._mode=h},u.prototype.pushMode=function(h){this._interp.debug&&console.log("pushMode "+h),this._modeStack.push(this._mode),this.mode(h)},u.prototype.popMode=function(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode},Object.defineProperty(u.prototype,"inputStream",{get:function(){return this._input},set:function(h){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=h,this._tokenFactorySourcePair=[this,this._input]}}),Object.defineProperty(u.prototype,"sourceName",{get:function(){return this._input.sourceName}}),u.prototype.emitToken=function(h){this._token=h},u.prototype.emit=function(){var h=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(h),h},u.prototype.emitEOF=function(){var s=this._factory.create(this._tokenFactorySourcePair,n.EOF,null,n.DEFAULT_CHANNEL,this._input.index,this._input.index-1,this.line,this.column);return this.emitToken(s),s},Object.defineProperty(u.prototype,"type",{get:function(){return this.type},set:function(h){this._type=h}}),Object.defineProperty(u.prototype,"line",{get:function(){return this._interp.line},set:function(h){this._interp.line=h}}),Object.defineProperty(u.prototype,"column",{get:function(){return this._interp.column},set:function(h){this._interp.column=h}}),u.prototype.getCharIndex=function(){return this._input.index},Object.defineProperty(u.prototype,"text",{get:function(){return null!==this._text?this._text:this._interp.getText(this._input)},set:function(h){this._text=h}}),u.prototype.getAllTokens=function(){for(var h=[],r=this.nextToken();r.type!==n.EOF;)h.push(r),r=this.nextToken();return h},u.prototype.notifyListeners=function(h){var i=this._input.getText(this._tokenStartCharIndex,this._input.index),c="token recognition error at: '"+this.getErrorDisplay(i)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,c,h)},u.prototype.getErrorDisplay=function(h){for(var r=[],s=0;s":"\n"===h?"\\n":"\t"===h?"\\t":"\r"===h?"\\r":h},u.prototype.getCharErrorDisplay=function(h){return"'"+this.getErrorDisplayForChar(h)+"'"},u.prototype.recover=function(h){this._input.LA(1)!==n.EOF&&(h instanceof o?this._interp.consume(this._input):this._input.consume())},j.Lexer=u},6554:(ye,j,p)=>{var n=p(8443).Token,f=p(1029).ParseTreeListener,v=p(3788).c,m=p(7675).t,o=p(3031).ATNDeserializer,d=p(7360).W,u=p(1029).TerminalNode,h=p(1029).ErrorNode;function r(c){return f.call(this),this.parser=c,this}function s(c){return v.call(this),this._input=null,this._errHandler=new m,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(c),this}(r.prototype=Object.create(f.prototype)).constructor=r,r.prototype.enterEveryRule=function(c){console.log("enter "+this.parser.ruleNames[c.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},r.prototype.visitTerminal=function(c){console.log("consume "+c.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])},r.prototype.exitEveryRule=function(c){console.log("exit "+this.parser.ruleNames[c.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)},(s.prototype=Object.create(v.prototype)).contructor=s,s.bypassAltsAtnCache={},s.prototype.reset=function(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()},s.prototype.match=function(c){var l=this.getCurrentToken();return l.type===c?(this._errHandler.reportMatch(this),this.consume()):(l=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===l.tokenIndex&&this._ctx.addErrorNode(l)),l},s.prototype.matchWildcard=function(){var c=this.getCurrentToken();return c.type>0?(this._errHandler.reportMatch(this),this.consume()):(c=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===c.tokenIndex&&this._ctx.addErrorNode(c)),c},s.prototype.getParseListeners=function(){return this._parseListeners||[]},s.prototype.addParseListener=function(c){if(null===c)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(c)},s.prototype.removeParseListener=function(c){if(null!==this._parseListeners){var l=this._parseListeners.indexOf(c);l>=0&&this._parseListeners.splice(l,1),0===this._parseListeners.length&&(this._parseListeners=null)}},s.prototype.removeParseListeners=function(){this._parseListeners=null},s.prototype.triggerEnterRuleEvent=function(){if(null!==this._parseListeners){var c=this._ctx;this._parseListeners.map(function(l){l.enterEveryRule(c),c.enterRule(l)})}},s.prototype.triggerExitRuleEvent=function(){if(null!==this._parseListeners){var c=this._ctx;this._parseListeners.slice(0).reverse().map(function(l){c.exitRule(l),l.exitEveryRule(c)})}},s.prototype.getTokenFactory=function(){return this._input.tokenSource._factory},s.prototype.setTokenFactory=function(c){this._input.tokenSource._factory=c},s.prototype.getATNWithBypassAlts=function(){var c=this.getSerializedATN();if(null===c)throw"The current parser does not support an ATN with bypass alternatives.";var l=this.bypassAltsAtnCache[c];if(null===l){var g=new d;g.generateRuleBypassTransitions=!0,l=new o(g).deserialize(c),this.bypassAltsAtnCache[c]=l}return l};var i=p(3805).Lexer;s.prototype.compileParseTreePattern=function(c,l,g){if(null===(g=g||null)&&null!==this.getTokenStream()){var y=this.getTokenStream().tokenSource;y instanceof i&&(g=y)}if(null===g)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(g,this).compile(c,l)},s.prototype.getInputStream=function(){return this.getTokenStream()},s.prototype.setInputStream=function(c){this.setTokenStream(c)},s.prototype.getTokenStream=function(){return this._input},s.prototype.setTokenStream=function(c){this._input=null,this.reset(),this._input=c},s.prototype.getCurrentToken=function(){return this._input.LT(1)},s.prototype.notifyErrorListeners=function(c,l,g){g=g||null,null===(l=l||null)&&(l=this.getCurrentToken()),this._syntaxErrors+=1;var y=l.line,E=l.column;this.getErrorListenerDispatch().syntaxError(this,l,y,E,c,g)},s.prototype.consume=function(){var c=this.getCurrentToken();c.type!==n.EOF&&this.getInputStream().consume();var g,l=null!==this._parseListeners&&this._parseListeners.length>0;return(this.buildParseTrees||l)&&((g=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(c):this._ctx.addTokenNode(c)).invokingState=this.state,l&&this._parseListeners.map(function(y){g instanceof h||void 0!==g.isErrorNode&&g.isErrorNode()?y.visitErrorNode(g):g instanceof u&&y.visitTerminal(g)})),c},s.prototype.addContextToParseTree=function(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)},s.prototype.enterRule=function(c,l,g){this.state=l,this._ctx=c,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()},s.prototype.exitRule=function(){this._ctx.stop=this._input.LT(-1),null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx},s.prototype.enterOuterAlt=function(c,l){c.setAltNumber(l),this.buildParseTrees&&this._ctx!==c&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(c)),this._ctx=c},s.prototype.getPrecedence=function(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]},s.prototype.enterRecursionRule=function(c,l,g,y){this.state=l,this._precedenceStack.push(y),this._ctx=c,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()},s.prototype.pushNewRecursionContext=function(c,l,g){var y=this._ctx;y.parentCtx=c,y.invokingState=l,y.stop=this._input.LT(-1),this._ctx=c,this._ctx.start=y.start,this.buildParseTrees&&this._ctx.addChild(y),null!==this._parseListeners&&this.triggerEnterRuleEvent()},s.prototype.unrollRecursionContexts=function(c){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var l=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==c;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=c;l.parentCtx=c,this.buildParseTrees&&null!==c&&c.addChild(l)},s.prototype.getInvokingContext=function(c){for(var l=this._ctx;null!==l;){if(l.ruleIndex===c)return l;l=l.parentCtx}return null},s.prototype.precpred=function(c,l){return l>=this._precedenceStack[this._precedenceStack.length-1]},s.prototype.inContext=function(c){return!1},s.prototype.isExpectedToken=function(c){var l=this._interp.atn,g=this._ctx,E=l.nextTokens(l.states[this.state]);if(E.contains(c))return!0;if(!E.contains(n.EPSILON))return!1;for(;null!==g&&g.invokingState>=0&&E.contains(n.EPSILON);){if((E=l.nextTokens(l.states[g.invokingState].transitions[0].followState)).contains(c))return!0;g=g.parentCtx}return!(!E.contains(n.EPSILON)||c!==n.EOF)},s.prototype.getExpectedTokens=function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)},s.prototype.getExpectedTokensWithinCurrentRule=function(){var c=this._interp.atn;return c.nextTokens(c.states[this.state])},s.prototype.getRuleIndex=function(c){var l=this.getRuleIndexMap()[c];return null!==l?l:-1},s.prototype.getRuleInvocationStack=function(c){null===(c=c||null)&&(c=this._ctx);for(var l=[];null!==c;){var g=c.ruleIndex;l.push(g<0?"n/a":this.ruleNames[g]),c=c.parentCtx}return l},s.prototype.getDFAStrings=function(){return this._interp.decisionToDFA.toString()},s.prototype.dumpDFA=function(){for(var c=!1,l=0;l0&&(c&&console.log(),this.printer.println("Decision "+g.decision+":"),this.printer.print(g.toString(this.literalNames,this.symbolicNames)),c=!0)}},s.prototype.getSourceName=function(){return this._input.sourceName},s.prototype.setTrace=function(c){c?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new r(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)},j.Parser=s},911:(ye,j,p)=>{var n=p(61).r,f=p(1029),v=f.INVALID_INTERVAL,m=f.TerminalNode,o=f.TerminalNodeImpl,d=f.ErrorNodeImpl,u=p(210).Interval;function h(s,i){n.call(this,s=s||null,i=i||null),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}function r(s,i,c){return h.call(s,i),this.ruleIndex=c,this}(h.prototype=Object.create(n.prototype)).constructor=h,h.prototype.copyFrom=function(s){this.parentCtx=s.parentCtx,this.invokingState=s.invokingState,this.children=null,this.start=s.start,this.stop=s.stop,s.children&&(this.children=[],s.children.map(function(i){i instanceof d&&(this.children.push(i),i.parentCtx=this)},this))},h.prototype.enterRule=function(s){},h.prototype.exitRule=function(s){},h.prototype.addChild=function(s){return null===this.children&&(this.children=[]),this.children.push(s),s},h.prototype.removeLastChild=function(){null!==this.children&&this.children.pop()},h.prototype.addTokenNode=function(s){var i=new o(s);return this.addChild(i),i.parentCtx=this,i},h.prototype.addErrorNode=function(s){var i=new d(s);return this.addChild(i),i.parentCtx=this,i},h.prototype.getChild=function(s,i){if(null===this.children||s<0||s>=this.children.length)return null;if(null===(i=i||null))return this.children[s];for(var c=0;c=this.children.length)return null;for(var c=0;c{var n=p(61).r,f=p(8065).Hash,v=p(8065).Map;function m(T){this.cachedHashCode=T}function o(){return this.cache=new v,this}function d(T,D){var O,w=new f;null!==T?w.update(T,D):w.update(1),O=w.finish(),m.call(this,O),this.parentCtx=T,this.returnState=D}function u(){return d.call(this,null,m.EMPTY_RETURN_STATE),this}function h(T,D){var O=new f;O.update(T,D);var w=O.finish();return m.call(this,w),this.parents=T,this.returnStates=D,this}m.EMPTY=null,m.EMPTY_RETURN_STATE=2147483647,m.id=m.globalNodeCount=1,m.prototype.isEmpty=function(){return this===m.EMPTY},m.prototype.hasEmptyPath=function(){return this.getReturnState(this.length-1)===m.EMPTY_RETURN_STATE},m.prototype.hashCode=function(){return this.cachedHashCode},m.prototype.updateHashCode=function(T){T.update(this.cachedHashCode)},o.prototype.add=function(T){if(T===m.EMPTY)return m.EMPTY;var D=this.cache.get(T)||null;return null!==D?D:(this.cache.put(T,T),T)},o.prototype.get=function(T){return this.cache.get(T)||null},Object.defineProperty(o.prototype,"length",{get:function(){return this.cache.length}}),(d.prototype=Object.create(m.prototype)).contructor=d,d.create=function(T,D){return D===m.EMPTY_RETURN_STATE&&null===T?m.EMPTY:new d(T,D)},Object.defineProperty(d.prototype,"length",{get:function(){return 1}}),d.prototype.getParent=function(T){return this.parentCtx},d.prototype.getReturnState=function(T){return this.returnState},d.prototype.equals=function(T){return this===T||T instanceof d&&this.hashCode()===T.hashCode()&&this.returnState===T.returnState&&(null==this.parentCtx?null==T.parentCtx:this.parentCtx.equals(T.parentCtx))},d.prototype.toString=function(){var T=null===this.parentCtx?"":this.parentCtx.toString();return 0===T.length?this.returnState===m.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+T},(u.prototype=Object.create(d.prototype)).constructor=u,u.prototype.isEmpty=function(){return!0},u.prototype.getParent=function(T){return null},u.prototype.getReturnState=function(T){return this.returnState},u.prototype.equals=function(T){return this===T},u.prototype.toString=function(){return"$"},m.EMPTY=new u,(h.prototype=Object.create(m.prototype)).constructor=h,h.prototype.isEmpty=function(){return this.returnStates[0]===m.EMPTY_RETURN_STATE},Object.defineProperty(h.prototype,"length",{get:function(){return this.returnStates.length}}),h.prototype.getParent=function(T){return this.parents[T]},h.prototype.getReturnState=function(T){return this.returnStates[T]},h.prototype.equals=function(T){return this===T||T instanceof h&&this.hashCode()===T.hashCode()&&this.returnStates===T.returnStates&&this.parents===T.parents},h.prototype.toString=function(){if(this.isEmpty())return"[]";for(var T="[",D=0;D0&&(T+=", "),this.returnStates[D]!==m.EMPTY_RETURN_STATE?(T+=this.returnStates[D],null!==this.parents[D]?T=T+" "+this.parents[D]:T+="null"):T+="$";return T+"]"},j.merge=function s(T,D,O,w){if(T===D)return T;if(T instanceof d&&D instanceof d)return function(T,D,O,w){if(null!==w){var A=w.get(T,D);if(null!==A||null!==(A=w.get(D,T)))return A}var S=function(T,D,O){if(O){if(T===m.EMPTY||D===m.EMPTY)return m.EMPTY}else{if(T===m.EMPTY&&D===m.EMPTY)return m.EMPTY;if(T===m.EMPTY)return new h([D.parentCtx,null],[D.returnState,m.EMPTY_RETURN_STATE]);if(D===m.EMPTY)return new h([T.parentCtx,null],[T.returnState,m.EMPTY_RETURN_STATE])}return null}(T,D,O);if(null!==S)return null!==w&&w.set(T,D,S),S;if(T.returnState===D.returnState){var M=s(T.parentCtx,D.parentCtx,O,w);if(M===T.parentCtx)return T;if(M===D.parentCtx)return D;var I=d.create(M,T.returnState);return null!==w&&w.set(T,D,I),I}var b=null;if((T===D||null!==T.parentCtx&&T.parentCtx===D.parentCtx)&&(b=T.parentCtx),null!==b){var F=[T.returnState,D.returnState];T.returnState>D.returnState&&(F[0]=D.returnState,F[1]=T.returnState);var L=new h(ne=[b,b],F);return null!==w&&w.set(T,D,L),L}F=[T.returnState,D.returnState];var ne=[T.parentCtx,D.parentCtx];T.returnState>D.returnState&&(F[0]=D.returnState,F[1]=T.returnState,ne=[D.parentCtx,T.parentCtx]);var Y=new h(ne,F);return null!==w&&w.set(T,D,Y),Y}(T,D,O,w);if(O){if(T instanceof u)return T;if(D instanceof u)return D}return T instanceof d&&(T=new h([T.getParent()],[T.returnState])),D instanceof d&&(D=new h([D.getParent()],[D.returnState])),function(T,D,O,w){if(null!==w){var A=w.get(T,D);if(null!==A||null!==(A=w.get(D,T)))return A}for(var S=0,M=0,I=0,b=[],L=[];S{var n=p(8443).Token,f=p(1911).s,v=p(1911).N;function m(){return this._listeners=[f.INSTANCE],this._interp=null,this._stateNumber=-1,this}m.tokenTypeMapCache={},m.ruleIndexMapCache={},m.prototype.checkVersion=function(o){"4.8"!==o&&console.log("ANTLR runtime and generated code versions disagree: 4.8!="+o)},m.prototype.addErrorListener=function(o){this._listeners.push(o)},m.prototype.removeErrorListeners=function(){this._listeners=[]},m.prototype.getTokenTypeMap=function(){var o=this.getTokenNames();if(null===o)throw"The current recognizer does not provide a list of token names.";var d=this.tokenTypeMapCache[o];return void 0===d&&((d=o.reduce(function(u,h,r){u[h]=r})).EOF=n.EOF,this.tokenTypeMapCache[o]=d),d},m.prototype.getRuleIndexMap=function(){var o=this.ruleNames;if(null===o)throw"The current recognizer does not provide a list of rule names.";var d=this.ruleIndexMapCache[o];return void 0===d&&(d=o.reduce(function(u,h,r){u[h]=r}),this.ruleIndexMapCache[o]=d),d},m.prototype.getTokenType=function(o){var d=this.getTokenTypeMap()[o];return void 0!==d?d:n.INVALID_TYPE},m.prototype.getErrorHeader=function(o){return"line "+o.getOffendingToken().line+":"+o.getOffendingToken().column},m.prototype.getTokenErrorDisplay=function(o){if(null===o)return"";var d=o.text;return null===d&&(d=o.type===n.EOF?"":"<"+o.type+">"),"'"+(d=d.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"))+"'"},m.prototype.getErrorListenerDispatch=function(){return new v(this._listeners)},m.prototype.sempred=function(o,d,u){return!0},m.prototype.precpred=function(o,d){return!0},Object.defineProperty(m.prototype,"state",{get:function(){return this._stateNumber},set:function(o){this._stateNumber=o}}),j.c=m},61:(ye,j,p)=>{var n=p(1029).RuleNode,f=p(1029).INVALID_INTERVAL,v=p(1828).INVALID_ALT_NUMBER;function m(d,u){return n.call(this),this.parentCtx=d||null,this.invokingState=u||-1,this}(m.prototype=Object.create(n.prototype)).constructor=m,m.prototype.depth=function(){for(var d=0,u=this;null!==u;)u=u.parentCtx,d+=1;return d},m.prototype.isEmpty=function(){return-1===this.invokingState},m.prototype.getSourceInterval=function(){return f},m.prototype.getRuleContext=function(){return this},m.prototype.getPayload=function(){return this},m.prototype.getText=function(){return 0===this.getChildCount()?"":this.children.map(function(d){return d.getText()}).join("")},m.prototype.getAltNumber=function(){return v},m.prototype.setAltNumber=function(d){},m.prototype.getChild=function(d){return null},m.prototype.getChildCount=function(){return 0},m.prototype.accept=function(d){return d.visitChildren(this)},j.r=m;var o=p(2565).Trees;m.prototype.toStringTree=function(d,u){return o.toStringTree(this,d,u)},m.prototype.toString=function(d,u){d=d||null,u=u||null;for(var h=this,r="[";null!==h&&h!==u;){if(null===d)h.isEmpty()||(r+=h.invokingState);else{var s=h.ruleIndex;r+=s>=0&&s{function p(){return this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null,this}function n(f,v,m,o,d){return p.call(this),this.source=void 0!==f?f:n.EMPTY_SOURCE,this.type=void 0!==v?v:null,this.channel=void 0!==m?m:p.DEFAULT_CHANNEL,this.start=void 0!==o?o:-1,this.stop=void 0!==d?d:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=f[0].line,this.column=f[0].column):this.column=-1,this}p.INVALID_TYPE=0,p.EPSILON=-2,p.MIN_USER_TOKEN_TYPE=1,p.EOF=-1,p.DEFAULT_CHANNEL=0,p.HIDDEN_CHANNEL=1,Object.defineProperty(p.prototype,"text",{get:function(){return this._text},set:function(f){this._text=f}}),p.prototype.getTokenSource=function(){return this.source[0]},p.prototype.getInputStream=function(){return this.source[1]},(n.prototype=Object.create(p.prototype)).constructor=n,n.EMPTY_SOURCE=[null,null],n.prototype.clone=function(){var f=new n(this.source,this.type,this.channel,this.start,this.stop);return f.tokenIndex=this.tokenIndex,f.line=this.line,f.column=this.column,f.text=this.text,f},Object.defineProperty(n.prototype,"text",{get:function(){if(null!==this._text)return this._text;var f=this.getInputStream();if(null===f)return null;var v=f.size;return this.start"},set:function(f){this._text=f}}),n.prototype.toString=function(){var f=this.text;return f=null!==f?f.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+f+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"},j.Token=p,j.CommonToken=n},8065:(ye,j)=>{function p(l){return"["+l.join(", ")+"]"}function n(l,g){return l.equals(g)}function f(l){return l.hashCode()}function v(l,g){return this.data={},this.hashFunction=l||f,this.equalsFunction=g||n,this}function m(){return this.data=[],this}function o(l,g){return this.data={},this.hashFunction=l||f,this.equalsFunction=g||n,this}function d(){return this.data={},this}function u(l){return this.defaultMapCtor=l||o,this.cacheMap=new this.defaultMapCtor,this}function h(){return this.count=0,this.hash=0,this}String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){var l,g,y,E,T,O,A,S,M=this.toString();for(g=M.length-(l=3&M.length),y=String.prototype.seed,T=3432918353,O=461845907,S=0;S>>16)*T&65535)<<16)&4294967295)<<15|A>>>17))*O+(((A>>>16)*O&65535)<<16)&4294967295)<<13|y>>>19))+((5*(y>>>16)&65535)<<16)&4294967295))+((58964+(E>>>16)&65535)<<16);switch(A=0,l){case 3:A^=(255&M.charCodeAt(S+2))<<16;case 2:A^=(255&M.charCodeAt(S+1))<<8;case 1:y^=A=(65535&(A=(A=(65535&(A^=255&M.charCodeAt(S)))*T+(((A>>>16)*T&65535)<<16)&4294967295)<<15|A>>>17))*O+(((A>>>16)*O&65535)<<16)&4294967295}return y^=M.length,y=2246822507*(65535&(y^=y>>>16))+((2246822507*(y>>>16)&65535)<<16)&4294967295,y=3266489909*(65535&(y^=y>>>13))+((3266489909*(y>>>16)&65535)<<16)&4294967295,(y^=y>>>16)>>>0},Object.defineProperty(v.prototype,"length",{get:function(){var l=0;for(var g in this.data)0===g.indexOf("hash_")&&(l+=this.data[g].length);return l}}),v.prototype.add=function(l){var y="hash_"+this.hashFunction(l);if(y in this.data){for(var E=this.data[y],T=0;T>>17,y*=461845907,this.count=this.count+1;var E=this.hash^y;this.hash=E=5*(E=E<<13|E>>>19)+3864292196}}},h.prototype.finish=function(){var l=this.hash^4*this.count;return l^=l>>>16,l*=2246822507,l^=l>>>13,(l*=3266489909)^l>>>16},u.prototype.get=function(l,g){var y=this.cacheMap.get(l)||null;return null===y?null:y.get(g)||null},u.prototype.set=function(l,g,y){var E=this.cacheMap.get(l)||null;null===E&&(E=new this.defaultMapCtor,this.cacheMap.put(l,E)),E.put(g,y)},j.Hash=h,j.Set=v,j.Map=o,j.BitSet=m,j.AltDict=d,j.DoubleDict=u,j.hashStuff=function(){var l=new h;return l.update.apply(l,arguments),l.finish()},j.escapeWhitespace=function(l,g){return l=l.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),g&&(l=l.replace(/ /g,"\xb7")),l},j.arrayToString=p,j.titleCase=function(l){return l.replace(/\w\S*/g,function(g){return g.charAt(0).toUpperCase()+g.substr(1)})},j.equalArrays=function(l,g){if(!Array.isArray(l)||!Array.isArray(g))return!1;if(l==g)return!0;if(l.length!=g.length)return!1;for(var y=0;y{var n=p(8802).u,f=p(210).V;function v(o,d){return this.grammarType=o,this.maxTokenType=d,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[],this}v.prototype.nextTokensInContext=function(o,d){return new n(this).LOOK(o,null,d)},v.prototype.nextTokensNoContext=function(o){return null!==o.nextTokenWithinRule||(o.nextTokenWithinRule=this.nextTokensInContext(o,null),o.nextTokenWithinRule.readOnly=!0),o.nextTokenWithinRule},v.prototype.nextTokens=function(o,d){return void 0===d?this.nextTokensNoContext(o):this.nextTokensInContext(o,d)},v.prototype.addState=function(o){null!==o&&(o.atn=this,o.stateNumber=this.states.length),this.states.push(o)},v.prototype.removeState=function(o){this.states[o.stateNumber]=null},v.prototype.defineDecisionState=function(o){return this.decisionToState.push(o),o.decision=this.decisionToState.length-1,o.decision},v.prototype.getDecisionState=function(o){return 0===this.decisionToState.length?null:this.decisionToState[o]};var m=p(8443).Token;v.prototype.getExpectedTokens=function(o,d){if(o<0||o>=this.states.length)throw"Invalid state number.";var h=this.nextTokens(this.states[o]);if(!h.contains(m.EPSILON))return h;var r=new f;for(r.addSet(h),r.removeOne(m.EPSILON);null!==d&&d.invokingState>=0&&h.contains(m.EPSILON);)h=this.nextTokens(this.states[d.invokingState].transitions[0].followState),r.addSet(h),r.removeOne(m.EPSILON),d=d.parentCtx;return h.contains(m.EPSILON)&&r.addOne(m.EOF),r},v.INVALID_ALT_NUMBER=0,j.ATN=v},2348:(ye,j,p)=>{var n=p(9855).DecisionState,f=p(4636).dP,v=p(8065).Hash;function m(u,h){if(null===u){var r={state:null,alt:null,context:null,semanticContext:null};return h&&(r.reachesIntoOuterContext=0),r}var s={};return s.state=u.state||null,s.alt=void 0===u.alt?null:u.alt,s.context=u.context||null,s.semanticContext=u.semanticContext||null,h&&(s.reachesIntoOuterContext=u.reachesIntoOuterContext||0,s.precedenceFilterSuppressed=u.precedenceFilterSuppressed||!1),s}function o(u,h){return this.checkContext(u,h),u=m(u),h=m(h,!0),this.state=null!==u.state?u.state:h.state,this.alt=null!==u.alt?u.alt:h.alt,this.context=null!==u.context?u.context:h.context,this.semanticContext=null!==u.semanticContext?u.semanticContext:null!==h.semanticContext?h.semanticContext:f.NONE,this.reachesIntoOuterContext=h.reachesIntoOuterContext,this.precedenceFilterSuppressed=h.precedenceFilterSuppressed,this}function d(u,h){return o.call(this,u,h),this.lexerActionExecutor=u.lexerActionExecutor||(null!==h?h.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==h&&this.checkNonGreedyDecision(h,this.state),this}o.prototype.checkContext=function(u,h){null==u.context&&(null===h||null==h.context)&&(this.context=null)},o.prototype.hashCode=function(){var u=new v;return this.updateHashCode(u),u.finish()},o.prototype.updateHashCode=function(u){u.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)},o.prototype.equals=function(u){return this===u||u instanceof o&&this.state.stateNumber===u.state.stateNumber&&this.alt===u.alt&&(null===this.context?null===u.context:this.context.equals(u.context))&&this.semanticContext.equals(u.semanticContext)&&this.precedenceFilterSuppressed===u.precedenceFilterSuppressed},o.prototype.hashCodeForConfigSet=function(){var u=new v;return u.update(this.state.stateNumber,this.alt,this.semanticContext),u.finish()},o.prototype.equalsForConfigSet=function(u){return this===u||u instanceof o&&this.state.stateNumber===u.state.stateNumber&&this.alt===u.alt&&this.semanticContext.equals(u.semanticContext)},o.prototype.toString=function(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==f.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"},(d.prototype=Object.create(o.prototype)).constructor=d,d.prototype.updateHashCode=function(u){u.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)},d.prototype.equals=function(u){return this===u||u instanceof d&&this.passedThroughNonGreedyDecision==u.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(u.lexerActionExecutor):!u.lexerActionExecutor)&&o.prototype.equals.call(this,u)},d.prototype.hashCodeForConfigSet=d.prototype.hashCode,d.prototype.equalsForConfigSet=d.prototype.equals,d.prototype.checkNonGreedyDecision=function(u,h){return u.passedThroughNonGreedyDecision||h instanceof n&&h.nonGreedy},j.m=o,j.P=d},9186:(ye,j,p)=>{var n=p(1828).ATN,f=p(8065),v=f.Hash,m=f.Set,o=p(4636).dP,d=p(4825).merge;function u(i){return i.hashCodeForConfigSet()}function h(i,c){return i===c||null!==i&&null!==c&&i.equalsForConfigSet(c)}function r(i){return this.configLookup=new m(u,h),this.fullCtx=void 0===i||i,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1,this}function s(){return r.call(this),this.configLookup=new m,this}r.prototype.add=function(i,c){if(void 0===c&&(c=null),this.readOnly)throw"This set is readonly";i.semanticContext!==o.NONE&&(this.hasSemanticContext=!0),i.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var l=this.configLookup.add(i);if(l===i)return this.cachedHashCode=-1,this.configs.push(i),!0;var y=d(l.context,i.context,!this.fullCtx,c);return l.reachesIntoOuterContext=Math.max(l.reachesIntoOuterContext,i.reachesIntoOuterContext),i.precedenceFilterSuppressed&&(l.precedenceFilterSuppressed=!0),l.context=y,!0},r.prototype.getStates=function(){for(var i=new m,c=0;c{function p(n){return void 0===n&&(n=null),this.readOnly=!1,this.verifyATN=null===n||n.verifyATN,this.generateRuleBypassTransitions=null!==n&&n.generateRuleBypassTransitions,this}(p.defaultOptions=new p).readOnly=!0,j.W=p},3031:(ye,j,p)=>{var n=p(8443).Token,f=p(1828).ATN,v=p(6796).n,m=p(9855),o=m.ATNState,d=m.BasicState,u=m.DecisionState,h=m.BlockStartState,r=m.BlockEndState,s=m.LoopEndState,i=m.RuleStartState,c=m.RuleStopState,l=m.TokensStartState,g=m.PlusLoopbackState,y=m.StarLoopbackState,E=m.StarLoopEntryState,T=m.PlusBlockStartState,D=m.StarBlockStartState,O=m.BasicBlockStartState,w=p(7131),A=w.Transition,S=w.AtomTransition,M=w.SetTransition,I=w.NotSetTransition,b=w.RuleTransition,L=w.RangeTransition,F=w.ActionTransition,ne=w.EpsilonTransition,Y=w.WildcardTransition,Q=w.PredicateTransition,te=w.PrecedencePredicateTransition,$=p(210).V,ie=(p(210),p(7360).W),ae=p(3822),le=ae.LexerActionType,Oe=ae.LexerSkipAction,Le=ae.LexerChannelAction,Ye=ae.LexerCustomAction,Je=ae.LexerMoreAction,gt=ae.LexerTypeAction,Ue=ae.LexerPushModeAction,tt=ae.LexerPopModeAction,at=ae.LexerModeAction,vt="59627784-3BE5-417A-B9EB-8131A7286089",yt=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",vt];function At(Ee,fe){var H=[];return H[Ee-1]=fe,H.map(function(x){return fe})}function Tt(Ee){return null==Ee&&(Ee=ie.defaultOptions),this.deserializationOptions=Ee,this.stateFactories=null,this.actionFactories=null,this}Tt.prototype.isFeatureSupported=function(Ee,fe){var H=yt.indexOf(Ee);return!(H<0)&&yt.indexOf(fe)>=H},Tt.prototype.deserialize=function(Ee){this.reset(Ee),this.checkVersion(),this.checkUUID();var fe=this.readATN();this.readStates(fe),this.readRules(fe),this.readModes(fe);var H=[];return this.readSets(fe,H,this.readInt.bind(this)),this.isFeatureSupported(vt,this.uuid)&&this.readSets(fe,H,this.readInt32.bind(this)),this.readEdges(fe,H),this.readDecisions(fe),this.readLexerActions(fe),this.markPrecedenceDecisions(fe),this.verifyATN(fe),this.deserializationOptions.generateRuleBypassTransitions&&fe.grammarType===v.PARSER&&(this.generateRuleBypassTransitions(fe),this.verifyATN(fe)),fe},Tt.prototype.reset=function(Ee){var H=Ee.split("").map(function(x){var U=x.charCodeAt(0);return U>1?U-2:U+65534});H[0]=Ee.charCodeAt(0),this.data=H,this.pos=0},Tt.prototype.checkVersion=function(){var Ee=this.readInt();if(3!==Ee)throw"Could not deserialize ATN with version "+Ee+" (expected 3)."},Tt.prototype.checkUUID=function(){var Ee=this.readUUID();if(yt.indexOf(Ee)<0)throw"59627784-3BE5-417A-B9EB-8131A7286089";this.uuid=Ee},Tt.prototype.readATN=function(){var Ee=this.readInt(),fe=this.readInt();return new f(Ee,fe)},Tt.prototype.readStates=function(Ee){for(var fe,H,x,U=[],Z=[],_e=this.readInt(),Be=0;Be<_e;Be++){var $e=this.readInt();if($e!==o.INVALID_TYPE){var st=this.readInt();65535===st&&(st=-1);var ut=this.stateFactory($e,st);if($e===o.LOOP_END){var St=this.readInt();U.push([ut,St])}else if(ut instanceof h){var Xt=this.readInt();Z.push([ut,Xt])}Ee.addState(ut)}else Ee.addState(null)}for(fe=0;fe0;)U.addTransition(ut.transitions[St-1]),ut.transitions=ut.transitions.slice(-1);Ee.ruleToStartState[fe].addTransition(new ne(U)),Z.addTransition(new ne(Be));var Xt=new d;Ee.addState(Xt),Xt.addTransition(new S(Z,Ee.ruleToTokenType[fe])),U.addTransition(new ne(Xt))},Tt.prototype.stateIsEndStateFor=function(Ee,fe){if(Ee.ruleIndex!==fe||!(Ee instanceof E))return null;var H=Ee.transitions[Ee.transitions.length-1].target;return H instanceof s&&H.epsilonOnlyTransitions&&H.transitions[0].target instanceof c?Ee:null},Tt.prototype.markPrecedenceDecisions=function(Ee){for(var fe=0;fe=0:H.transitions.length<=1||H instanceof c)}},Tt.prototype.checkCondition=function(Ee,fe){if(!Ee)throw null==fe&&(fe="IllegalState"),fe},Tt.prototype.readInt=function(){return this.data[this.pos++]},Tt.prototype.readInt32=function(){return this.readInt()|this.readInt()<<16},Tt.prototype.readLong=function(){return 4294967295&this.readInt32()|this.readInt32()<<32};var Et=function(){for(var Ee=[],fe=0;fe<256;fe++)Ee[fe]=(fe+256).toString(16).substr(1).toUpperCase();return Ee}();Tt.prototype.readUUID=function(){for(var Ee=[],fe=7;fe>=0;fe--){var H=this.readInt();Ee[2*fe+1]=255&H,Ee[2*fe]=H>>8&255}return Et[Ee[0]]+Et[Ee[1]]+Et[Ee[2]]+Et[Ee[3]]+"-"+Et[Ee[4]]+Et[Ee[5]]+"-"+Et[Ee[6]]+Et[Ee[7]]+"-"+Et[Ee[8]]+Et[Ee[9]]+"-"+Et[Ee[10]]+Et[Ee[11]]+Et[Ee[12]]+Et[Ee[13]]+Et[Ee[14]]+Et[Ee[15]]},Tt.prototype.edgeFactory=function(Ee,fe,H,x,U,Z,_e,Be){var $e=Ee.states[x];switch(fe){case A.EPSILON:return new ne($e);case A.RANGE:return new L($e,0!==_e?n.EOF:U,Z);case A.RULE:return new b(Ee.states[U],Z,_e,$e);case A.PREDICATE:return new Q($e,U,Z,0!==_e);case A.PRECEDENCE:return new te($e,U);case A.ATOM:return new S($e,0!==_e?n.EOF:U);case A.ACTION:return new F($e,U,Z,0!==_e);case A.SET:return new M($e,Be[U]);case A.NOT_SET:return new I($e,Be[U]);case A.WILDCARD:return new Y($e);default:throw"The specified transition type: "+fe+" is not valid."}},Tt.prototype.stateFactory=function(Ee,fe){if(null===this.stateFactories){var H=[];H[o.INVALID_TYPE]=null,H[o.BASIC]=function(){return new d},H[o.RULE_START]=function(){return new i},H[o.BLOCK_START]=function(){return new O},H[o.PLUS_BLOCK_START]=function(){return new T},H[o.STAR_BLOCK_START]=function(){return new D},H[o.TOKEN_START]=function(){return new l},H[o.RULE_STOP]=function(){return new c},H[o.BLOCK_END]=function(){return new r},H[o.STAR_LOOP_BACK]=function(){return new y},H[o.STAR_LOOP_ENTRY]=function(){return new E},H[o.PLUS_LOOP_BACK]=function(){return new g},H[o.LOOP_END]=function(){return new s},this.stateFactories=H}if(Ee>this.stateFactories.length||null===this.stateFactories[Ee])throw"The specified state type "+Ee+" is not valid.";var x=this.stateFactories[Ee]();if(null!==x)return x.ruleIndex=fe,x},Tt.prototype.lexerActionFactory=function(Ee,fe,H){if(null===this.actionFactories){var x=[];x[le.CHANNEL]=function(U,Z){return new Le(U)},x[le.CUSTOM]=function(U,Z){return new Ye(U,Z)},x[le.MODE]=function(U,Z){return new at(U)},x[le.MORE]=function(U,Z){return Je.INSTANCE},x[le.POP_MODE]=function(U,Z){return tt.INSTANCE},x[le.PUSH_MODE]=function(U,Z){return new Ue(U)},x[le.SKIP]=function(U,Z){return Oe.INSTANCE},x[le.TYPE]=function(U,Z){return new gt(U)},this.actionFactories=x}if(Ee>this.actionFactories.length||null===this.actionFactories[Ee])throw"The specified lexer action type "+Ee+" is not valid.";return this.actionFactories[Ee](fe,H)},j.ATNDeserializer=Tt},7601:(ye,j,p)=>{var n=p(1399).B,f=p(9186).B,v=p(4825).getCachedPredictionContext,m=p(8065).Map;function o(d,u){return this.atn=d,this.sharedContextCache=u,this}o.ERROR=new n(2147483647,new f),o.prototype.getCachedContext=function(d){if(null===this.sharedContextCache)return d;var u=new m;return v(d,this.sharedContextCache,u)},j.f=o},9855:(ye,j)=>{function n(){return this.atn=null,this.stateNumber=n.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null,this}function f(){return n.call(this),this.stateType=n.BASIC,this}function v(){return n.call(this),this.decision=-1,this.nonGreedy=!1,this}function m(){return v.call(this),this.endState=null,this}function o(){return m.call(this),this.stateType=n.BLOCK_START,this}function d(){return n.call(this),this.stateType=n.BLOCK_END,this.startState=null,this}function u(){return n.call(this),this.stateType=n.RULE_STOP,this}function h(){return n.call(this),this.stateType=n.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}function r(){return v.call(this),this.stateType=n.PLUS_LOOP_BACK,this}function s(){return m.call(this),this.stateType=n.PLUS_BLOCK_START,this.loopBackState=null,this}function i(){return m.call(this),this.stateType=n.STAR_BLOCK_START,this}function c(){return n.call(this),this.stateType=n.STAR_LOOP_BACK,this}function l(){return v.call(this),this.stateType=n.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}function g(){return n.call(this),this.stateType=n.LOOP_END,this.loopBackState=null,this}function y(){return v.call(this),this.stateType=n.TOKEN_START,this}n.INVALID_TYPE=0,n.BASIC=1,n.RULE_START=2,n.BLOCK_START=3,n.PLUS_BLOCK_START=4,n.STAR_BLOCK_START=5,n.TOKEN_START=6,n.RULE_STOP=7,n.BLOCK_END=8,n.STAR_LOOP_BACK=9,n.STAR_LOOP_ENTRY=10,n.PLUS_LOOP_BACK=11,n.LOOP_END=12,n.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],n.INVALID_STATE_NUMBER=-1,n.prototype.toString=function(){return this.stateNumber},n.prototype.equals=function(E){return E instanceof n&&this.stateNumber===E.stateNumber},n.prototype.isNonGreedyExitState=function(){return!1},n.prototype.addTransition=function(E,T){void 0===T&&(T=-1),0===this.transitions.length?this.epsilonOnlyTransitions=E.isEpsilon:this.epsilonOnlyTransitions!==E.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===T?this.transitions.push(E):this.transitions.splice(T,1,E)},(f.prototype=Object.create(n.prototype)).constructor=f,(v.prototype=Object.create(n.prototype)).constructor=v,(m.prototype=Object.create(v.prototype)).constructor=m,(o.prototype=Object.create(m.prototype)).constructor=o,(d.prototype=Object.create(n.prototype)).constructor=d,(u.prototype=Object.create(n.prototype)).constructor=u,(h.prototype=Object.create(n.prototype)).constructor=h,(r.prototype=Object.create(v.prototype)).constructor=r,(s.prototype=Object.create(m.prototype)).constructor=s,(i.prototype=Object.create(m.prototype)).constructor=i,(c.prototype=Object.create(n.prototype)).constructor=c,(l.prototype=Object.create(v.prototype)).constructor=l,(g.prototype=Object.create(n.prototype)).constructor=g,(y.prototype=Object.create(v.prototype)).constructor=y,j.ATNState=n,j.BasicState=f,j.DecisionState=v,j.BlockStartState=m,j.BlockEndState=d,j.LoopEndState=g,j.RuleStartState=h,j.RuleStopState=u,j.TokensStartState=y,j.PlusLoopbackState=r,j.StarLoopbackState=c,j.StarLoopEntryState=l,j.PlusBlockStartState=s,j.StarBlockStartState=i,j.BasicBlockStartState=o},6796:(ye,j)=>{function p(){}p.LEXER=0,p.PARSER=1,j.n=p},6244:(ye,j,p)=>{var n=p(8443).Token,f=p(3805).Lexer,v=p(1828).ATN,m=p(7601).f,o=p(1399).B,u=(p(9186),p(9186).s),h=p(4825).PredictionContext,r=p(4825).SingletonPredictionContext,s=p(9855).RuleStopState,i=p(2348).P,c=p(7131).Transition,l=p(1305).W,g=p(6071).LexerNoViableAltException;function y(D){D.index=-1,D.line=0,D.column=-1,D.dfaState=null}function E(){return y(this),this}function T(D,O,w,A){return m.call(this,O,A),this.decisionToDFA=w,this.recog=D,this.startIndex=-1,this.line=1,this.column=0,this.mode=f.DEFAULT_MODE,this.prevAccept=new E,this}E.prototype.reset=function(){y(this)},(T.prototype=Object.create(m.prototype)).constructor=T,T.debug=!1,T.dfa_debug=!1,T.MIN_DFA_EDGE=0,T.MAX_DFA_EDGE=127,T.match_calls=0,T.prototype.copyState=function(D){this.column=D.column,this.line=D.line,this.mode=D.mode,this.startIndex=D.startIndex},T.prototype.match=function(D,O){this.match_calls+=1,this.mode=O;var w=D.mark();try{this.startIndex=D.index,this.prevAccept.reset();var A=this.decisionToDFA[O];return null===A.s0?this.matchATN(D):this.execATN(D,A.s0)}finally{D.release(w)}},T.prototype.reset=function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=f.DEFAULT_MODE},T.prototype.matchATN=function(D){var O=this.atn.modeToStartState[this.mode];T.debug&&console.log("matchATN mode "+this.mode+" start: "+O);var w=this.mode,A=this.computeStartState(D,O),S=A.hasSemanticContext;A.hasSemanticContext=!1;var M=this.addDFAState(A);S||(this.decisionToDFA[this.mode].s0=M);var I=this.execATN(D,M);return T.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[w].toLexerString()),I},T.prototype.execATN=function(D,O){T.debug&&console.log("start state closure="+O.configs),O.isAcceptState&&this.captureSimState(this.prevAccept,D,O);for(var w=D.LA(1),A=O;;){T.debug&&console.log("execATN loop starting closure: "+A.configs);var S=this.getExistingTargetState(A,w);if(null===S&&(S=this.computeTargetState(D,A,w)),S===m.ERROR||(w!==n.EOF&&this.consume(D),S.isAcceptState&&(this.captureSimState(this.prevAccept,D,S),w===n.EOF)))break;w=D.LA(1),A=S}return this.failOrAccept(this.prevAccept,D,A.configs,w)},T.prototype.getExistingTargetState=function(D,O){if(null===D.edges||OT.MAX_DFA_EDGE)return null;var w=D.edges[O-T.MIN_DFA_EDGE];return void 0===w&&(w=null),T.debug&&null!==w&&console.log("reuse state "+D.stateNumber+" edge to "+w.stateNumber),w},T.prototype.computeTargetState=function(D,O,w){var A=new u;return this.getReachableConfigSet(D,O.configs,A,w),0===A.items.length?(A.hasSemanticContext||this.addDFAEdge(O,w,m.ERROR),m.ERROR):this.addDFAEdge(O,w,null,A)},T.prototype.failOrAccept=function(D,O,w,A){if(null!==this.prevAccept.dfaState)return this.accept(O,D.dfaState.lexerActionExecutor,this.startIndex,D.index,D.line,D.column),D.dfaState.prediction;if(A===n.EOF&&O.index===this.startIndex)return n.EOF;throw new g(this.recog,O,this.startIndex,w)},T.prototype.getReachableConfigSet=function(D,O,w,A){for(var S=v.INVALID_ALT_NUMBER,M=0;MT.MAX_DFA_EDGE||(T.debug&&console.log("EDGE "+D+" -> "+w+" upon "+O),null===D.edges&&(D.edges=[]),D.edges[O-T.MIN_DFA_EDGE]=w),w},T.prototype.addDFAState=function(D){for(var O=new o(null,D),w=null,A=0;A{function p(){}function n(i){return this.actionType=i,this.isPositionDependent=!1,this}function f(){return n.call(this,p.SKIP),this}function v(i){return n.call(this,p.TYPE),this.type=i,this}function m(i){return n.call(this,p.PUSH_MODE),this.mode=i,this}function o(){return n.call(this,p.POP_MODE),this}function d(){return n.call(this,p.MORE),this}function u(i){return n.call(this,p.MODE),this.mode=i,this}function h(i,c){return n.call(this,p.CUSTOM),this.ruleIndex=i,this.actionIndex=c,this.isPositionDependent=!0,this}function r(i){return n.call(this,p.CHANNEL),this.channel=i,this}function s(i,c){return n.call(this,c.actionType),this.offset=i,this.action=c,this.isPositionDependent=!0,this}p.CHANNEL=0,p.CUSTOM=1,p.MODE=2,p.MORE=3,p.POP_MODE=4,p.PUSH_MODE=5,p.SKIP=6,p.TYPE=7,n.prototype.hashCode=function(){var i=new Hash;return this.updateHashCode(i),i.finish()},n.prototype.updateHashCode=function(i){i.update(this.actionType)},n.prototype.equals=function(i){return this===i},(f.prototype=Object.create(n.prototype)).constructor=f,f.INSTANCE=new f,f.prototype.execute=function(i){i.skip()},f.prototype.toString=function(){return"skip"},(v.prototype=Object.create(n.prototype)).constructor=v,v.prototype.execute=function(i){i.type=this.type},v.prototype.updateHashCode=function(i){i.update(this.actionType,this.type)},v.prototype.equals=function(i){return this===i||i instanceof v&&this.type===i.type},v.prototype.toString=function(){return"type("+this.type+")"},(m.prototype=Object.create(n.prototype)).constructor=m,m.prototype.execute=function(i){i.pushMode(this.mode)},m.prototype.updateHashCode=function(i){i.update(this.actionType,this.mode)},m.prototype.equals=function(i){return this===i||i instanceof m&&this.mode===i.mode},m.prototype.toString=function(){return"pushMode("+this.mode+")"},(o.prototype=Object.create(n.prototype)).constructor=o,o.INSTANCE=new o,o.prototype.execute=function(i){i.popMode()},o.prototype.toString=function(){return"popMode"},(d.prototype=Object.create(n.prototype)).constructor=d,d.INSTANCE=new d,d.prototype.execute=function(i){i.more()},d.prototype.toString=function(){return"more"},(u.prototype=Object.create(n.prototype)).constructor=u,u.prototype.execute=function(i){i.mode(this.mode)},u.prototype.updateHashCode=function(i){i.update(this.actionType,this.mode)},u.prototype.equals=function(i){return this===i||i instanceof u&&this.mode===i.mode},u.prototype.toString=function(){return"mode("+this.mode+")"},(h.prototype=Object.create(n.prototype)).constructor=h,h.prototype.execute=function(i){i.action(null,this.ruleIndex,this.actionIndex)},h.prototype.updateHashCode=function(i){i.update(this.actionType,this.ruleIndex,this.actionIndex)},h.prototype.equals=function(i){return this===i||i instanceof h&&this.ruleIndex===i.ruleIndex&&this.actionIndex===i.actionIndex},(r.prototype=Object.create(n.prototype)).constructor=r,r.prototype.execute=function(i){i._channel=this.channel},r.prototype.updateHashCode=function(i){i.update(this.actionType,this.channel)},r.prototype.equals=function(i){return this===i||i instanceof r&&this.channel===i.channel},r.prototype.toString=function(){return"channel("+this.channel+")"},(s.prototype=Object.create(n.prototype)).constructor=s,s.prototype.execute=function(i){this.action.execute(i)},s.prototype.updateHashCode=function(i){i.update(this.actionType,this.offset,this.action)},s.prototype.equals=function(i){return this===i||i instanceof s&&this.offset===i.offset&&this.action===i.action},j.LexerActionType=p,j.LexerSkipAction=f,j.LexerChannelAction=r,j.LexerCustomAction=h,j.LexerIndexedCustomAction=s,j.LexerMoreAction=d,j.LexerTypeAction=v,j.LexerPushModeAction=m,j.LexerPopModeAction=o,j.LexerModeAction=u},1305:(ye,j,p)=>{var n=p(8065).hashStuff,f=p(3822).LexerIndexedCustomAction;function v(m){return this.lexerActions=null===m?[]:m,this.cachedHashCode=n(m),this}v.append=function(m,o){return new v(null===m?[o]:m.lexerActions.concat([o]))},v.prototype.fixOffsetBeforeMatch=function(m){for(var o=null,d=0;d{var n=p(8065),f=n.Set,v=n.BitSet,m=n.DoubleDict,o=p(1828).ATN,d=p(9855).ATNState,u=p(2348).m,h=p(9186).B,r=p(8443).Token,s=p(1399).B,i=p(1399).PredPrediction,c=p(7601).f,l=p(2655).PredictionMode,g=p(61).r,E=(p(911),p(4636).dP),D=(p(9855),p(9855).RuleStopState),O=p(4825).PredictionContext,w=p(210).Interval,A=p(7131),S=A.Transition,M=A.SetTransition,I=A.NotSetTransition,b=A.RuleTransition,L=A.ActionTransition,F=p(6071).NoViableAltException,ne=p(4825).SingletonPredictionContext,Y=p(4825).predictionContextFromRuleContext;function Q(te,$,J,ie){return c.call(this,$,ie),this.parser=te,this.decisionToDFA=J,this.predictionMode=l.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this}(Q.prototype=Object.create(c.prototype)).constructor=Q,Q.prototype.debug=!1,Q.prototype.debug_closure=!1,Q.prototype.debug_add=!1,Q.prototype.debug_list_atn_decisions=!1,Q.prototype.dfa_debug=!1,Q.prototype.retry_debug=!1,Q.prototype.reset=function(){},Q.prototype.adaptivePredict=function(te,$,J){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+$+" exec LA(1)=="+this.getLookaheadName(te)+" line "+te.LT(1).line+":"+te.LT(1).column),this._input=te,this._startIndex=te.index,this._outerContext=J;var ie=this.decisionToDFA[$];this._dfa=ie;var ae=te.mark(),le=te.index;try{var Oe;if(null===(Oe=ie.precedenceDfa?ie.getPrecedenceStartState(this.parser.getPrecedence()):ie.s0)){null===J&&(J=g.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+ie.decision+" exec LA(1)=="+this.getLookaheadName(te)+", outerContext="+J.toString(this.parser.ruleNames));var Ye=this.computeStartState(ie.atnStartState,g.EMPTY,!1);ie.precedenceDfa?(ie.s0.configs=Ye,Ye=this.applyPrecedenceFilter(Ye),Oe=this.addDFAState(ie,new s(null,Ye)),ie.setPrecedenceStartState(this.parser.getPrecedence(),Oe)):(Oe=this.addDFAState(ie,new s(null,Ye)),ie.s0=Oe)}var Je=this.execATN(ie,Oe,te,le,J);return this.debug&&console.log("DFA after predictATN: "+ie.toString(this.parser.literalNames)),Je}finally{this._dfa=null,this.mergeCache=null,te.seek(le),te.release(ae)}},Q.prototype.execATN=function(te,$,J,ie,ae){(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+te.decision+" exec LA(1)=="+this.getLookaheadName(J)+" line "+J.LT(1).line+":"+J.LT(1).column);var le,Oe=$;this.debug&&console.log("s0 = "+$);for(var Le=J.LA(1);;){var Ye=this.getExistingTargetState(Oe,Le);if(null===Ye&&(Ye=this.computeTargetState(te,Oe,Le)),Ye===c.ERROR){var Je=this.noViableAlt(J,ae,Oe.configs,ie);if(J.seek(ie),(le=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(Oe.configs,ae))!==o.INVALID_ALT_NUMBER)return le;throw Je}if(Ye.requiresFullContext&&this.predictionMode!==l.SLL){var gt=null;if(null!==Ye.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var Ue=J.index;if(Ue!==ie&&J.seek(ie),1===(gt=this.evalSemanticContext(Ye.predicates,ae,!0)).length)return this.debug&&console.log("Full LL avoided"),gt.minValue();Ue!==ie&&J.seek(Ue)}this.dfa_debug&&console.log("ctx sensitive state "+ae+" in "+Ye);var at=this.computeStartState(te.atnStartState,ae,!0);return this.reportAttemptingFullContext(te,gt,Ye.configs,ie,J.index),this.execATNWithFullContext(te,Ye,at,J,ie,ae)}if(Ye.isAcceptState){if(null===Ye.predicates)return Ye.prediction;var ft=J.index;J.seek(ie);var vt=this.evalSemanticContext(Ye.predicates,ae,!0);if(0===vt.length)throw this.noViableAlt(J,ae,Ye.configs,ie);return 1===vt.length||this.reportAmbiguity(te,Ye,ie,ft,!1,vt,Ye.configs),vt.minValue()}Oe=Ye,Le!==r.EOF&&(J.consume(),Le=J.LA(1))}},Q.prototype.getExistingTargetState=function(te,$){var J=te.edges;return null===J?null:J[$+1]||null},Q.prototype.computeTargetState=function(te,$,J){var ie=this.computeReachSet($.configs,J,!1);if(null===ie)return this.addDFAEdge(te,$,J,c.ERROR),c.ERROR;var ae=new s(null,ie),le=this.getUniqueAlt(ie);if(this.debug){var Oe=l.getConflictingAltSubsets(ie);console.log("SLL altSubSets="+n.arrayToString(Oe)+", previous="+$.configs+", configs="+ie+", predict="+le+", allSubsetsConflict="+l.allSubsetsConflict(Oe)+", conflictingAlts="+this.getConflictingAlts(ie))}return le!==o.INVALID_ALT_NUMBER?(ae.isAcceptState=!0,ae.configs.uniqueAlt=le,ae.prediction=le):l.hasSLLConflictTerminatingPrediction(this.predictionMode,ie)&&(ae.configs.conflictingAlts=this.getConflictingAlts(ie),ae.requiresFullContext=!0,ae.isAcceptState=!0,ae.prediction=ae.configs.conflictingAlts.minValue()),ae.isAcceptState&&ae.configs.hasSemanticContext&&(this.predicateDFAState(ae,this.atn.getDecisionState(te.decision)),null!==ae.predicates&&(ae.prediction=o.INVALID_ALT_NUMBER)),this.addDFAEdge(te,$,J,ae)},Q.prototype.predicateDFAState=function(te,$){var J=$.transitions.length,ie=this.getConflictingAltsOrUniqueAlt(te.configs),ae=this.getPredsForAmbigAlts(ie,te.configs,J);null!==ae?(te.predicates=this.getPredicatePredictions(ie,ae),te.prediction=o.INVALID_ALT_NUMBER):te.prediction=ie.minValue()},Q.prototype.execATNWithFullContext=function(te,$,J,ie,ae,le){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+J);var Le=!1,Ye=null,Je=J;ie.seek(ae);for(var gt=ie.LA(1),Ue=-1;;){if(null===(Ye=this.computeReachSet(Je,gt,!0))){var tt=this.noViableAlt(ie,le,Je,ae);ie.seek(ae);var at=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(Je,le);if(at!==o.INVALID_ALT_NUMBER)return at;throw tt}var ft=l.getConflictingAltSubsets(Ye);if(this.debug&&console.log("LL altSubSets="+ft+", predict="+l.getUniqueAlt(ft)+", resolvesToJustOneViableAlt="+l.resolvesToJustOneViableAlt(ft)),Ye.uniqueAlt=this.getUniqueAlt(Ye),Ye.uniqueAlt!==o.INVALID_ALT_NUMBER){Ue=Ye.uniqueAlt;break}if(this.predictionMode!==l.LL_EXACT_AMBIG_DETECTION){if((Ue=l.resolvesToJustOneViableAlt(ft))!==o.INVALID_ALT_NUMBER)break}else if(l.allSubsetsConflict(ft)&&l.allSubsetsEqual(ft)){Le=!0,Ue=l.getSingleViableAlt(ft);break}Je=Ye,gt!==r.EOF&&(ie.consume(),gt=ie.LA(1))}return Ye.uniqueAlt!==o.INVALID_ALT_NUMBER?(this.reportContextSensitivity(te,Ue,Ye,ae,ie.index),Ue):(this.reportAmbiguity(te,$,ae,ie.index,Le,null,Ye),Ue)},Q.prototype.computeReachSet=function(te,$,J){this.debug&&console.log("in computeReachSet, starting closure: "+te),null===this.mergeCache&&(this.mergeCache=new m);for(var ie=new h(J),ae=null,le=0;le0&&(le=this.getAltThatFinishedDecisionEntryRule(ae))!==o.INVALID_ALT_NUMBER?le:o.INVALID_ALT_NUMBER},Q.prototype.getAltThatFinishedDecisionEntryRule=function(te){for(var $=[],J=0;J0||ie.state instanceof D&&ie.context.hasEmptyPath())&&$.indexOf(ie.alt)<0&&$.push(ie.alt)}return 0===$.length?o.INVALID_ALT_NUMBER:Math.min.apply(null,$)},Q.prototype.splitAccordingToSemanticValidity=function(te,$){for(var J=new h(te.fullCtx),ie=new h(te.fullCtx),ae=0;ae50))throw"problem";if(te.state instanceof D){if(!te.context.isEmpty()){for(var Le=0;Le=0&&(tt+=1)}this.closureCheckingStopState(Ue,$,J,gt,ae,tt,Oe)}}},Q.prototype.canDropLoopEntryEdgeInLeftRecursiveRule=function(te){var $=te.state;if($.stateType!=d.STAR_LOOP_ENTRY||$.stateType!=d.STAR_LOOP_ENTRY||!$.isPrecedenceDecision||te.context.isEmpty()||te.context.hasEmptyPath())return!1;for(var J=te.context.length,ie=0;ie=0?this.parser.ruleNames[te]:""},Q.prototype.getEpsilonTarget=function(te,$,J,ie,ae,le){switch($.serializationType){case S.RULE:return this.ruleTransition(te,$);case S.PRECEDENCE:return this.precedenceTransition(te,$,J,ie,ae);case S.PREDICATE:return this.predTransition(te,$,J,ie,ae);case S.ACTION:return this.actionTransition(te,$);case S.EPSILON:return new u({state:$.target},te);case S.ATOM:case S.RANGE:case S.SET:return le&&$.matches(r.EOF,0,1)?new u({state:$.target},te):null;default:return null}},Q.prototype.actionTransition=function(te,$){return this.debug&&console.log("ACTION edge "+$.ruleIndex+":"+(-1==$.actionIndex?65535:$.actionIndex)),new u({state:$.target},te)},Q.prototype.precedenceTransition=function(te,$,J,ie,ae){this.debug&&(console.log("PRED (collectPredicates="+J+") "+$.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+n.arrayToString(this.parser.getRuleInvocationStack())));var le=null;if(J&&ie)if(ae){var Oe=this._input.index;this._input.seek(this._startIndex);var Le=$.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(Oe),Le&&(le=new u({state:$.target},te))}else{var Ye=E.andContext(te.semanticContext,$.getPredicate());le=new u({state:$.target,semanticContext:Ye},te)}else le=new u({state:$.target},te);return this.debug&&console.log("config from pred transition="+le),le},Q.prototype.predTransition=function(te,$,J,ie,ae){this.debug&&(console.log("PRED (collectPredicates="+J+") "+$.ruleIndex+":"+$.predIndex+", ctx dependent="+$.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+n.arrayToString(this.parser.getRuleInvocationStack())));var le=null;if(J&&($.isCtxDependent&&ie||!$.isCtxDependent))if(ae){var Oe=this._input.index;this._input.seek(this._startIndex);var Le=$.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(Oe),Le&&(le=new u({state:$.target},te))}else{var Ye=E.andContext(te.semanticContext,$.getPredicate());le=new u({state:$.target,semanticContext:Ye},te)}else le=new u({state:$.target},te);return this.debug&&console.log("config from pred transition="+le),le},Q.prototype.ruleTransition=function(te,$){this.debug&&console.log("CALL rule "+this.getRuleName($.target.ruleIndex)+", ctx="+te.context);var ie=ne.create(te.context,$.followState.stateNumber);return new u({state:$.target,context:ie},te)},Q.prototype.getConflictingAlts=function(te){var $=l.getConflictingAltSubsets(te);return l.getAlts($)},Q.prototype.getConflictingAltsOrUniqueAlt=function(te){var $=null;return te.uniqueAlt!==o.INVALID_ALT_NUMBER?($=new v).add(te.uniqueAlt):$=te.conflictingAlts,$},Q.prototype.getTokenName=function(te){if(te===r.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(te>=this.parser.literalNames.length&&te>=this.parser.symbolicNames.length))return(this.parser.literalNames[te]||this.parser.symbolicNames[te])+"<"+te+">";console.log(te+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+te},Q.prototype.getLookaheadName=function(te){return this.getTokenName(te.LA(1))},Q.prototype.dumpDeadEndConfigs=function(te){console.log("dead end configs: ");for(var $=te.getDeadEndConfigs(),J=0;J<$.length;J++){var ie=$[J],ae="no edges";if(ie.state.transitions.length>0){var le=ie.state.transitions[0];le instanceof AtomTransition?ae="Atom "+this.getTokenName(le.label):le instanceof M&&(ae=(le instanceof I?"~":"")+"Set "+le.set)}console.error(ie.toString(this.parser,!0)+":"+ae)}},Q.prototype.noViableAlt=function(te,$,J,ie){return new F(this.parser,te,te.get(ie),te.LT(1),J,$)},Q.prototype.getUniqueAlt=function(te){for(var $=o.INVALID_ALT_NUMBER,J=0;J "+ie+" upon "+this.getTokenName(J)),null===ie?null:(ie=this.addDFAState(te,ie),null===$||J<-1||J>this.atn.maxTokenType||(null===$.edges&&($.edges=[]),$.edges[J+1]=ie,this.debug&&console.log("DFA=\n"+te.toString(null===this.parser?null:this.parser.literalNames,null===this.parser?null:this.parser.symbolicNames))),ie)},Q.prototype.addDFAState=function(te,$){if($==c.ERROR)return $;var J=te.states.get($);return null!==J?J:($.stateNumber=te.states.length,$.configs.readOnly||($.configs.optimizeConfigs(this),$.configs.setReadonly(!0)),te.states.add($),this.debug&&console.log("adding new DFA state: "+$),$)},Q.prototype.reportAttemptingFullContext=function(te,$,J,ie,ae){if(this.debug||this.retry_debug){var le=new w(ie,ae+1);console.log("reportAttemptingFullContext decision="+te.decision+":"+J+", input="+this.parser.getTokenStream().getText(le))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,te,ie,ae,$,J)},Q.prototype.reportContextSensitivity=function(te,$,J,ie,ae){if(this.debug||this.retry_debug){var le=new w(ie,ae+1);console.log("reportContextSensitivity decision="+te.decision+":"+J+", input="+this.parser.getTokenStream().getText(le))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,te,ie,ae,$,J)},Q.prototype.reportAmbiguity=function(te,$,J,ie,ae,le,Oe){if(this.debug||this.retry_debug){var Le=new w(J,ie+1);console.log("reportAmbiguity "+le+":"+Oe+", input="+this.parser.getTokenStream().getText(Le))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,te,J,ie,ae,le,Oe)},j.ParserATNSimulator=Q},2655:(ye,j,p)=>{p(8065);var f=p(8065).Map,v=p(8065).BitSet,m=p(8065).AltDict,o=p(1828).ATN,d=p(9855).RuleStopState,u=p(9186).B,h=p(2348).m,r=p(4636).dP,i=(p(8065),p(8065).hashStuff);function l(){return this}p(8065),l.SLL=0,l.LL=1,l.LL_EXACT_AMBIG_DETECTION=2,l.hasSLLConflictTerminatingPrediction=function(g,y){if(l.allConfigsInRuleStopStates(y))return!0;if(g===l.SLL&&y.hasSemanticContext){for(var E=new u,T=0;T1)return!0;return!1},l.allSubsetsEqual=function(g){for(var y=null,E=0;E{var n=p(8065).Set,f=p(8065).Hash;function v(){return this}function m(h,r,s){return v.call(this),this.ruleIndex=void 0===h?-1:h,this.predIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==s&&s,this}function o(h){v.call(this),this.precedence=void 0===h?0:h}function d(h,r){v.call(this);var s=new n;h instanceof d?h.opnds.map(function(l){s.add(l)}):s.add(h),r instanceof d?r.opnds.map(function(l){s.add(l)}):s.add(r);var i=o.filterPrecedencePredicates(s);if(i.length>0){var c=null;i.map(function(l){(null===c||l.precedence0){var c=i.sort(function(g,y){return g.compareTo(y)});s.add(c[c.length-1])}return this.opnds=s.values(),this}v.prototype.hashCode=function(){var h=new f;return this.updateHashCode(h),h.finish()},v.prototype.evaluate=function(h,r){},v.prototype.evalPrecedence=function(h,r){return this},v.andContext=function(h,r){if(null===h||h===v.NONE)return r;if(null===r||r===v.NONE)return h;var s=new d(h,r);return 1===s.opnds.length?s.opnds[0]:s},v.orContext=function(h,r){if(null===h)return r;if(null===r)return h;if(h===v.NONE||r===v.NONE)return v.NONE;var s=new u(h,r);return 1===s.opnds.length?s.opnds[0]:s},(m.prototype=Object.create(v.prototype)).constructor=m,v.NONE=new m,m.prototype.evaluate=function(h,r){return h.sempred(this.isCtxDependent?r:null,this.ruleIndex,this.predIndex)},m.prototype.updateHashCode=function(h){h.update(this.ruleIndex,this.predIndex,this.isCtxDependent)},m.prototype.equals=function(h){return this===h||h instanceof m&&this.ruleIndex===h.ruleIndex&&this.predIndex===h.predIndex&&this.isCtxDependent===h.isCtxDependent},m.prototype.toString=function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"},(o.prototype=Object.create(v.prototype)).constructor=o,o.prototype.evaluate=function(h,r){return h.precpred(r,this.precedence)},o.prototype.evalPrecedence=function(h,r){return h.precpred(r,this.precedence)?v.NONE:null},o.prototype.compareTo=function(h){return this.precedence-h.precedence},o.prototype.updateHashCode=function(h){h.update(31)},o.prototype.equals=function(h){return this===h||h instanceof o&&this.precedence===h.precedence},o.prototype.toString=function(){return"{"+this.precedence+">=prec}?"},o.filterPrecedencePredicates=function(h){var r=[];return h.values().map(function(s){s instanceof o&&r.push(s)}),r},(d.prototype=Object.create(v.prototype)).constructor=d,d.prototype.equals=function(h){return this===h||h instanceof d&&this.opnds===h.opnds},d.prototype.updateHashCode=function(h){h.update(this.opnds,"AND")},d.prototype.evaluate=function(h,r){for(var s=0;s3?h.slice(3):h},(u.prototype=Object.create(v.prototype)).constructor=u,u.prototype.constructor=function(h){return this===h||h instanceof u&&this.opnds===h.opnds},u.prototype.updateHashCode=function(h){h.update(this.opnds,"OR")},u.prototype.evaluate=function(h,r){for(var s=0;s3?h.slice(3):h},j.dP=v,j.u5=o,j.$G=m},7131:(ye,j,p)=>{var n=p(8443).Token,v=(p(210),p(210).V),m=p(4636).$G,o=p(4636).u5;function d(D){if(null==D)throw"target cannot be null.";return this.target=D,this.isEpsilon=!1,this.label=null,this}function u(D,O){return d.call(this,D),this.label_=O,this.label=this.makeLabel(),this.serializationType=d.ATOM,this}function h(D,O,w,A){return d.call(this,D),this.ruleIndex=O,this.precedence=w,this.followState=A,this.serializationType=d.RULE,this.isEpsilon=!0,this}function r(D,O){return d.call(this,D),this.serializationType=d.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=O,this}function s(D,O,w){return d.call(this,D),this.serializationType=d.RANGE,this.start=O,this.stop=w,this.label=this.makeLabel(),this}function i(D){return d.call(this,D),this}function c(D,O,w,A){return i.call(this,D),this.serializationType=d.PREDICATE,this.ruleIndex=O,this.predIndex=w,this.isCtxDependent=A,this.isEpsilon=!0,this}function l(D,O,w,A){return d.call(this,D),this.serializationType=d.ACTION,this.ruleIndex=O,this.actionIndex=void 0===w?-1:w,this.isCtxDependent=void 0!==A&&A,this.isEpsilon=!0,this}function g(D,O){return d.call(this,D),this.serializationType=d.SET,null!=O?this.label=O:(this.label=new v,this.label.addOne(n.INVALID_TYPE)),this}function y(D,O){return g.call(this,D,O),this.serializationType=d.NOT_SET,this}function E(D){return d.call(this,D),this.serializationType=d.WILDCARD,this}function T(D,O){return i.call(this,D),this.serializationType=d.PRECEDENCE,this.precedence=O,this.isEpsilon=!0,this}d.EPSILON=1,d.RANGE=2,d.RULE=3,d.PREDICATE=4,d.ATOM=5,d.ACTION=6,d.SET=7,d.NOT_SET=8,d.WILDCARD=9,d.PRECEDENCE=10,d.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],d.serializationTypes={EpsilonTransition:d.EPSILON,RangeTransition:d.RANGE,RuleTransition:d.RULE,PredicateTransition:d.PREDICATE,AtomTransition:d.ATOM,ActionTransition:d.ACTION,SetTransition:d.SET,NotSetTransition:d.NOT_SET,WildcardTransition:d.WILDCARD,PrecedencePredicateTransition:d.PRECEDENCE},(u.prototype=Object.create(d.prototype)).constructor=u,u.prototype.makeLabel=function(){var D=new v;return D.addOne(this.label_),D},u.prototype.matches=function(D,O,w){return this.label_===D},u.prototype.toString=function(){return this.label_},(h.prototype=Object.create(d.prototype)).constructor=h,h.prototype.matches=function(D,O,w){return!1},(r.prototype=Object.create(d.prototype)).constructor=r,r.prototype.matches=function(D,O,w){return!1},r.prototype.toString=function(){return"epsilon"},(s.prototype=Object.create(d.prototype)).constructor=s,s.prototype.makeLabel=function(){var D=new v;return D.addRange(this.start,this.stop),D},s.prototype.matches=function(D,O,w){return D>=this.start&&D<=this.stop},s.prototype.toString=function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"},(i.prototype=Object.create(d.prototype)).constructor=i,(c.prototype=Object.create(i.prototype)).constructor=c,c.prototype.matches=function(D,O,w){return!1},c.prototype.getPredicate=function(){return new m(this.ruleIndex,this.predIndex,this.isCtxDependent)},c.prototype.toString=function(){return"pred_"+this.ruleIndex+":"+this.predIndex},(l.prototype=Object.create(d.prototype)).constructor=l,l.prototype.matches=function(D,O,w){return!1},l.prototype.toString=function(){return"action_"+this.ruleIndex+":"+this.actionIndex},(g.prototype=Object.create(d.prototype)).constructor=g,g.prototype.matches=function(D,O,w){return this.label.contains(D)},g.prototype.toString=function(){return this.label.toString()},(y.prototype=Object.create(g.prototype)).constructor=y,y.prototype.matches=function(D,O,w){return D>=O&&D<=w&&!g.prototype.matches.call(this,D,O,w)},y.prototype.toString=function(){return"~"+g.prototype.toString.call(this)},(E.prototype=Object.create(d.prototype)).constructor=E,E.prototype.matches=function(D,O,w){return D>=O&&D<=w},E.prototype.toString=function(){return"."},(T.prototype=Object.create(i.prototype)).constructor=T,T.prototype.matches=function(D,O,w){return!1},T.prototype.getPredicate=function(){return new o(this.precedence)},T.prototype.toString=function(){return this.precedence+" >= _p"},j.Transition=d,j.AtomTransition=u,j.SetTransition=g,j.NotSetTransition=y,j.RuleTransition=h,j.ActionTransition=l,j.EpsilonTransition=r,j.RangeTransition=s,j.WildcardTransition=E,j.PredicateTransition=c,j.PrecedencePredicateTransition=T,j.AbstractPredicateTransition=i},8900:(ye,j,p)=>{j.ATN=p(1828).ATN,j.ATNDeserializer=p(3031).ATNDeserializer,j.LexerATNSimulator=p(6244).LexerATNSimulator,j.ParserATNSimulator=p(3464).ParserATNSimulator,j.PredictionMode=p(2655).PredictionMode},2490:(ye,j,p)=>{var n=p(8065).Set,f=p(1399).B,v=p(9855).StarLoopEntryState,m=p(9186).B,o=p(5846).DFASerializer,d=p(5846).LexerDFASerializer;function u(h,r){if(void 0===r&&(r=0),this.atnStartState=h,this.decision=r,this._states=new n,this.s0=null,this.precedenceDfa=!1,h instanceof v&&h.isPrecedenceDecision){this.precedenceDfa=!0;var s=new f(null,new m);s.edges=[],s.isAcceptState=!1,s.requiresFullContext=!1,this.s0=s}return this}u.prototype.getPrecedenceStartState=function(h){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return h<0||h>=this.s0.edges.length?null:this.s0.edges[h]||null},u.prototype.setPrecedenceStartState=function(h,r){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";h<0||(this.s0.edges[h]=r)},u.prototype.setPrecedenceDfa=function(h){if(this.precedenceDfa!==h){if(this._states=new DFAStatesSet,h){var r=new f(null,new m);r.edges=[],r.isAcceptState=!1,r.requiresFullContext=!1,this.s0=r}else this.s0=null;this.precedenceDfa=h}},Object.defineProperty(u.prototype,"states",{get:function(){return this._states}}),u.prototype.sortedStates=function(){return this._states.values().sort(function(r,s){return r.stateNumber-s.stateNumber})},u.prototype.toString=function(h,r){return null===this.s0?"":new o(this,h=h||null,r=r||null).toString()},u.prototype.toLexerString=function(){return null===this.s0?"":new d(this).toString()},j.DFA=u},5846:(ye,j)=>{function p(f,v,m){return this.dfa=f,this.literalNames=v||[],this.symbolicNames=m||[],this}function n(f){return p.call(this,f,null),this}p.prototype.toString=function(){if(null===this.dfa.s0)return null;for(var f="",v=this.dfa.sortedStates(),m=0;m")).concat(this.getStateString(h))).concat("\n"))}}return 0===f.length?null:f},p.prototype.getEdgeLabel=function(f){return 0===f?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[f-1]||this.symbolicNames[f-1]:String.fromCharCode(f-1)},p.prototype.getStateString=function(f){var v=(f.isAcceptState?":":"")+"s"+f.stateNumber+(f.requiresFullContext?"^":"");return f.isAcceptState?null!==f.predicates?v+"=>"+f.predicates.toString():v+"=>"+f.prediction.toString():v},(n.prototype=Object.create(p.prototype)).constructor=n,n.prototype.getEdgeLabel=function(f){return"'"+String.fromCharCode(f)+"'"},j.DFASerializer=p,j.LexerDFASerializer=n},1399:(ye,j,p)=>{var n=p(9186).B,f=p(8065),v=f.Hash,m=f.Set;function o(u,h){return this.alt=h,this.pred=u,this}function d(u,h){return null===u&&(u=-1),null===h&&(h=new n),this.stateNumber=u,this.configs=h,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}o.prototype.toString=function(){return"("+this.pred+", "+this.alt+")"},d.prototype.getAltSet=function(){var u=new m;if(null!==this.configs)for(var h=0;h{j.DFA=p(2490).DFA,j.DFASerializer=p(5846).DFASerializer,j.LexerDFASerializer=p(5846).LexerDFASerializer,j.PredPrediction=p(1399).PredPrediction},3456:(ye,j,p)=>{var n=p(8065).BitSet,f=p(1911).ErrorListener,v=p(210).Interval;function m(o){return f.call(this),this.exactOnly=o=o||!0,this}(m.prototype=Object.create(f.prototype)).constructor=m,m.prototype.reportAmbiguity=function(o,d,u,h,r,s,i){if(!this.exactOnly||r){var c="reportAmbiguity d="+this.getDecisionDescription(o,d)+": ambigAlts="+this.getConflictingAlts(s,i)+", input='"+o.getTokenStream().getText(new v(u,h))+"'";o.notifyErrorListeners(c)}},m.prototype.reportAttemptingFullContext=function(o,d,u,h,r,s){var i="reportAttemptingFullContext d="+this.getDecisionDescription(o,d)+", input='"+o.getTokenStream().getText(new v(u,h))+"'";o.notifyErrorListeners(i)},m.prototype.reportContextSensitivity=function(o,d,u,h,r,s){var i="reportContextSensitivity d="+this.getDecisionDescription(o,d)+", input='"+o.getTokenStream().getText(new v(u,h))+"'";o.notifyErrorListeners(i)},m.prototype.getDecisionDescription=function(o,d){var u=d.decision,h=d.atnStartState.ruleIndex,r=o.ruleNames;if(h<0||h>=r.length)return""+u;var s=r[h]||null;return null===s||0===s.length?""+u:u+" ("+s+")"},m.prototype.getConflictingAlts=function(o,d){if(null!==o)return o;for(var u=new n,h=0;h{function p(){return this}function n(){return p.call(this),this}function f(v){if(p.call(this),null===v)throw"delegates";return this.delegates=v,this}p.prototype.syntaxError=function(v,m,o,d,u,h){},p.prototype.reportAmbiguity=function(v,m,o,d,u,h,r){},p.prototype.reportAttemptingFullContext=function(v,m,o,d,u,h){},p.prototype.reportContextSensitivity=function(v,m,o,d,u,h){},(n.prototype=Object.create(p.prototype)).constructor=n,n.INSTANCE=new n,n.prototype.syntaxError=function(v,m,o,d,u,h){console.error("line "+o+":"+d+" "+u)},(f.prototype=Object.create(p.prototype)).constructor=f,f.prototype.syntaxError=function(v,m,o,d,u,h){this.delegates.map(function(r){r.syntaxError(v,m,o,d,u,h)})},f.prototype.reportAmbiguity=function(v,m,o,d,u,h,r){this.delegates.map(function(s){s.reportAmbiguity(v,m,o,d,u,h,r)})},f.prototype.reportAttemptingFullContext=function(v,m,o,d,u,h){this.delegates.map(function(r){r.reportAttemptingFullContext(v,m,o,d,u,h)})},f.prototype.reportContextSensitivity=function(v,m,o,d,u,h){this.delegates.map(function(r){r.reportContextSensitivity(v,m,o,d,u,h)})},j.ErrorListener=p,j.s=n,j.N=f},7675:(ye,j,p)=>{var n=p(8443).Token,f=p(6071),v=f.NoViableAltException,m=f.InputMismatchException,o=f.FailedPredicateException,d=f.ParseCancellationException,u=p(9855).ATNState,h=p(210).Interval,r=p(210).V;function s(){}function i(){return s.call(this),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this}function c(){return i.call(this),this}s.prototype.reset=function(l){},s.prototype.recoverInline=function(l){},s.prototype.recover=function(l,g){},s.prototype.sync=function(l){},s.prototype.inErrorRecoveryMode=function(l){},s.prototype.reportError=function(l){},(i.prototype=Object.create(s.prototype)).constructor=i,i.prototype.reset=function(l){this.endErrorCondition(l)},i.prototype.beginErrorCondition=function(l){this.errorRecoveryMode=!0},i.prototype.inErrorRecoveryMode=function(l){return this.errorRecoveryMode},i.prototype.endErrorCondition=function(l){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1},i.prototype.reportMatch=function(l){this.endErrorCondition(l)},i.prototype.reportError=function(l,g){this.inErrorRecoveryMode(l)||(this.beginErrorCondition(l),g instanceof v?this.reportNoViableAlternative(l,g):g instanceof m?this.reportInputMismatch(l,g):g instanceof o?this.reportFailedPredicate(l,g):(console.log("unknown recognition error type: "+g.constructor.name),console.log(g.stack),l.notifyErrorListeners(g.getOffendingToken(),g.getMessage(),g)))},i.prototype.recover=function(l,g){this.lastErrorIndex===l.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(l.state)>=0&&l.consume(),this.lastErrorIndex=l._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(l.state);var y=this.getErrorRecoverySet(l);this.consumeUntil(l,y)},i.prototype.sync=function(l){if(!this.inErrorRecoveryMode(l)){var g=l._interp.atn.states[l.state],y=l.getTokenStream().LA(1),E=l.atn.nextTokens(g);if(!E.contains(n.EPSILON)&&!E.contains(y))switch(g.stateType){case u.BLOCK_START:case u.STAR_BLOCK_START:case u.PLUS_BLOCK_START:case u.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(l))return;throw new m(l);case u.PLUS_LOOP_BACK:case u.STAR_LOOP_BACK:this.reportUnwantedToken(l);var T=new r;T.addSet(l.getExpectedTokens());var D=T.addSet(this.getErrorRecoverySet(l));this.consumeUntil(l,D)}}},i.prototype.reportNoViableAlternative=function(l,g){var E,y=l.getTokenStream();E=null!==y?g.startToken.type===n.EOF?"":y.getText(new h(g.startToken.tokenIndex,g.offendingToken.tokenIndex)):"";var T="no viable alternative at input "+this.escapeWSAndQuote(E);l.notifyErrorListeners(T,g.offendingToken,g)},i.prototype.reportInputMismatch=function(l,g){var y="mismatched input "+this.getTokenErrorDisplay(g.offendingToken)+" expecting "+g.getExpectedTokens().toString(l.literalNames,l.symbolicNames);l.notifyErrorListeners(y,g.offendingToken,g)},i.prototype.reportFailedPredicate=function(l,g){l.notifyErrorListeners("rule "+l.ruleNames[l._ctx.ruleIndex]+" "+g.message,g.offendingToken,g)},i.prototype.reportUnwantedToken=function(l){if(!this.inErrorRecoveryMode(l)){this.beginErrorCondition(l);var g=l.getCurrentToken(),T="extraneous input "+this.getTokenErrorDisplay(g)+" expecting "+this.getExpectedTokens(l).toString(l.literalNames,l.symbolicNames);l.notifyErrorListeners(T,g,null)}},i.prototype.reportMissingToken=function(l){if(!this.inErrorRecoveryMode(l)){this.beginErrorCondition(l);var g=l.getCurrentToken(),E="missing "+this.getExpectedTokens(l).toString(l.literalNames,l.symbolicNames)+" at "+this.getTokenErrorDisplay(g);l.notifyErrorListeners(E,g,null)}},i.prototype.recoverInline=function(l){var g=this.singleTokenDeletion(l);if(null!==g)return l.consume(),g;if(this.singleTokenInsertion(l))return this.getMissingSymbol(l);throw new m(l)},i.prototype.singleTokenInsertion=function(l){var g=l.getTokenStream().LA(1),y=l._interp.atn;return!!y.nextTokens(y.states[l.state].transitions[0].target,l._ctx).contains(g)&&(this.reportMissingToken(l),!0)},i.prototype.singleTokenDeletion=function(l){var g=l.getTokenStream().LA(2);if(this.getExpectedTokens(l).contains(g)){this.reportUnwantedToken(l),l.consume();var E=l.getCurrentToken();return this.reportMatch(l),E}return null},i.prototype.getMissingSymbol=function(l){var T,g=l.getCurrentToken(),E=this.getExpectedTokens(l).first();T=E===n.EOF?"":"";var D=g,O=l.getTokenStream().LT(-1);return D.type===n.EOF&&null!==O&&(D=O),l.getTokenFactory().create(D.source,E,T,n.DEFAULT_CHANNEL,-1,-1,D.line,D.column)},i.prototype.getExpectedTokens=function(l){return l.getExpectedTokens()},i.prototype.getTokenErrorDisplay=function(l){if(null===l)return"";var g=l.text;return null===g&&(g=l.type===n.EOF?"":"<"+l.type+">"),this.escapeWSAndQuote(g)},i.prototype.escapeWSAndQuote=function(l){return"'"+(l=(l=(l=l.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"},i.prototype.getErrorRecoverySet=function(l){for(var g=l._interp.atn,y=l._ctx,E=new r;null!==y&&y.invokingState>=0;){var O=g.nextTokens(g.states[y.invokingState].transitions[0].followState);E.addSet(O),y=y.parentCtx}return E.removeOne(n.EPSILON),E},i.prototype.consumeUntil=function(l,g){for(var y=l.getTokenStream().LA(1);y!==n.EOF&&!g.contains(y);)l.consume(),y=l.getTokenStream().LA(1)},(c.prototype=Object.create(i.prototype)).constructor=c,c.prototype.recover=function(l,g){for(var y=l._ctx;null!==y;)y.exception=g,y=y.parentCtx;throw new d(g)},c.prototype.recoverInline=function(l){this.recover(l,new m(l))},c.prototype.sync=function(l){},j.BailErrorStrategy=c,j.t=i},6071:(ye,j,p)=>{var n=p(7131).PredicateTransition;function f(h){return Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,f):new Error,this.message=h.message,this.recognizer=h.recognizer,this.input=h.input,this.ctx=h.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state),this}function v(h,r,s,i){return f.call(this,{message:"",recognizer:h,input:r,ctx:null}),this.startIndex=s,this.deadEndConfigs=i,this}function m(h,r,s,i,c,l){l=l||h._ctx,i=i||h.getCurrentToken(),s=s||h.getCurrentToken(),r=r||h.getInputStream(),f.call(this,{message:"",recognizer:h,input:r,ctx:l}),this.deadEndConfigs=c,this.startToken=s,this.offendingToken=i}function o(h){f.call(this,{message:"",recognizer:h,input:h.getInputStream(),ctx:h._ctx}),this.offendingToken=h.getCurrentToken()}function d(h,r,s){f.call(this,{message:this.formatMessage(r,s||null),recognizer:h,input:h.getInputStream(),ctx:h._ctx});var c=h._interp.atn.states[h.state].transitions[0];return c instanceof n?(this.ruleIndex=c.ruleIndex,this.predicateIndex=c.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=r,this.offendingToken=h.getCurrentToken(),this}function u(){return Error.call(this),Error.captureStackTrace(this,u),this}(f.prototype=Object.create(Error.prototype)).constructor=f,f.prototype.getExpectedTokens=function(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null},f.prototype.toString=function(){return this.message},(v.prototype=Object.create(f.prototype)).constructor=v,v.prototype.toString=function(){var h="";return this.startIndex>=0&&this.startIndex{j.RecognitionException=p(6071).RecognitionException,j.NoViableAltException=p(6071).NoViableAltException,j.LexerNoViableAltException=p(6071).LexerNoViableAltException,j.InputMismatchException=p(6071).InputMismatchException,j.FailedPredicateException=p(6071).FailedPredicateException,j.DiagnosticErrorListener=p(3456).DiagnosticErrorListener,j.BailErrorStrategy=p(7675).BailErrorStrategy,j.ErrorListener=p(1911).ErrorListener},4185:()=>{String.prototype.codePointAt||function(){"use strict";var ye=function(){try{var p={},n=Object.defineProperty,f=n(p,p,p)&&n}catch(v){}return f}(),j=function(p){if(null==this)throw TypeError();var n=String(this),f=n.length,v=p?Number(p):0;if(v!=v&&(v=0),!(v<0||v>=f)){var o,m=n.charCodeAt(v);return m>=55296&&m<=56319&&f>v+1&&(o=n.charCodeAt(v+1))>=56320&&o<=57343?1024*(m-55296)+o-56320+65536:m}};ye?ye(String.prototype,"codePointAt",{value:j,configurable:!0,writable:!0}):String.prototype.codePointAt=j}()},9767:()=>{var ye,j,p,n;String.fromCodePoint||(ye=function(){try{var f={},v=Object.defineProperty,m=v(f,f,f)&&v}catch(o){}return m}(),j=String.fromCharCode,p=Math.floor,n=function(f){var v=16384,m=[],u=-1,h=arguments.length;if(!h)return"";for(var r="";++u1114111||p(s)!=s)throw RangeError("Invalid code point: "+s);s<=65535?m.push(s):m.push(55296+((s-=65536)>>10),s%1024+56320),(u+1==h||m.length>v)&&(r+=j.apply(null,m),m.length=0)}return r},ye?ye(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n)},1029:(ye,j,p)=>{var n=p(8443).Token,f=p(210).Interval,v=new f(-1,-2);function o(){return this}function d(){return o.call(this),this}function u(){return d.call(this),this}function h(){return u.call(this),this}function r(){return u.call(this),this}function s(){return r.call(this),this}function i(){return this}function c(){return this}function l(E){return r.call(this),this.parentCtx=null,this.symbol=E,this}function g(E){return l.call(this,E),this}function y(){return this}p(8065),(d.prototype=Object.create(o.prototype)).constructor=d,(u.prototype=Object.create(d.prototype)).constructor=u,(h.prototype=Object.create(u.prototype)).constructor=h,(r.prototype=Object.create(u.prototype)).constructor=r,(s.prototype=Object.create(r.prototype)).constructor=s,i.prototype.visit=function(E){return Array.isArray(E)?E.map(function(T){return T.accept(this)},this):E.accept(this)},i.prototype.visitChildren=function(E){return E.children?this.visit(E.children):null},i.prototype.visitTerminal=function(E){},i.prototype.visitErrorNode=function(E){},c.prototype.visitTerminal=function(E){},c.prototype.visitErrorNode=function(E){},c.prototype.enterEveryRule=function(E){},c.prototype.exitEveryRule=function(E){},(l.prototype=Object.create(r.prototype)).constructor=l,l.prototype.getChild=function(E){return null},l.prototype.getSymbol=function(){return this.symbol},l.prototype.getParent=function(){return this.parentCtx},l.prototype.getPayload=function(){return this.symbol},l.prototype.getSourceInterval=function(){if(null===this.symbol)return v;var E=this.symbol.tokenIndex;return new f(E,E)},l.prototype.getChildCount=function(){return 0},l.prototype.accept=function(E){return E.visitTerminal(this)},l.prototype.getText=function(){return this.symbol.text},l.prototype.toString=function(){return this.symbol.type===n.EOF?"":this.symbol.text},(g.prototype=Object.create(l.prototype)).constructor=g,g.prototype.isErrorNode=function(){return!0},g.prototype.accept=function(E){return E.visitErrorNode(this)},y.prototype.walk=function(E,T){if(T instanceof s||void 0!==T.isErrorNode&&T.isErrorNode())E.visitErrorNode(T);else if(T instanceof r)E.visitTerminal(T);else{this.enterRule(E,T);for(var O=0;O{var n=p(8065),f=p(8443).Token,m=(p(1029),p(1029).ErrorNode),o=p(1029).TerminalNode,d=p(911).ParserRuleContext,u=p(61).r,h=p(1828).INVALID_ALT_NUMBER;function r(){}r.toStringTree=function(s,i,c){i=i||null,null!==(c=c||null)&&(i=c.ruleNames);var l=r.getNodeText(s,i);l=n.escapeWhitespace(l,!1);var g=s.getChildCount();if(0===g)return l;var y="("+l+" ";g>0&&(l=r.toStringTree(s.getChild(0),i),y=y.concat(l));for(var E=1;E{var n=p(1029);j.Trees=p(2565).Trees,j.RuleNode=n.RuleNode,j.ParseTreeListener=n.ParseTreeListener,j.ParseTreeVisitor=n.ParseTreeVisitor,j.ParseTreeWalker=n.ParseTreeWalker},3853:ye=>{ye.exports={aggregateMacro:function(p,n,f){return p.reduce((v,m,o)=>(this.$index=o,this.$total=n(m)),this.$total=f)}}},3142:(ye,j,p)=>{var n=p(9640),f={};function v(m,o){if(0==o.length)return!0;for(var d=0;d1)throw new Error("Expected singleton on right side of contains, got "+JSON.stringify(o));return v(m,o)},f.in=function(m,o){if(0==m.length)return[];if(0==o.length)return!1;if(m.length>1)throw new Error("Expected singleton on right side of in, got "+JSON.stringify(o));return v(o,m)},ye.exports=f},6856:(ye,j,p)=>{var n={},f=p(6127);n.union=function(v,m){return f.distinctFn(v.concat(m))},n.combineFn=function(v,m){return v.concat(m)},ye.exports=n},9397:ye=>{ye.exports={reset:function(){this.nowDate=new Date,this.today=null,this.now=null,this.localTimezoneOffset=null},today:null,now:null}},3425:(ye,j,p)=>{var n={};const f=p(2563),v=p(9397),m=f.FP_DateTime;n.now=function(){if(!v.now){var d=m.isoDateTime(v.nowDate);v.now=new m(d)}return v.now},n.today=function(){if(!v.today){var d=m.isoDate(v.nowDate);v.today=new m(d)}return v.today},ye.exports=n},9640:(ye,j,p)=>{var f=p(2563).FP_Type,v=p(4569),m=p(5192),o=Array.prototype.slice,d=Object.keys,u=function(g){return"[object Arguments]"==Object.prototype.toString.call(g)};function h(g){return"string"==typeof g||g instanceof String}function r(g){return!isNaN(parseFloat(g))&&isFinite(g)}function s(g){return g.toUpperCase().replace(/\s+/," ")}var i=function(g,y,E){if(E||(E={}),(g=v.valData(g))===(y=v.valData(y)))return!0;if(E.fuzzy){if(h(g)&&h(y))return s(g)==s(y);if(r(g)&&r(y))return m.isEquivalent(g,y)}else if("number"==typeof g&&"number"==typeof y)return m.isEqual(g,y);if(g instanceof Date&&y instanceof Date)return g.getTime()===y.getTime();if(!g||!y||"object"!=typeof g&&"object"!=typeof y)return E.strict?g===y:g==y;var T=g instanceof f,D=y instanceof f;if(T&&D)return E.fuzzy?g.equivalentTo(y):g.equals(y);if(T||D){let O,w;T?(O=g,w=y):(O=y,w=g);let A="string"==typeof w;if(A){let S=O.constructor.checkString(w);A=!!S&&(E.fuzzy?g.equivalentTo(S):O.equals(S))}return A}return function(g,y,E){var T,D;if(c(g)||c(y)||g.prototype!==y.prototype)return!1;if(u(g)||u(y))return g=u(g)?o.call(g):g,y=u(y)?o.call(y):y,i(g,y,E);try{var O=d(g),w=d(y)}catch(A){return!1}if(O.length!=w.length)return!1;for(O.sort(),w.sort(),T=O.length-1;T>=0;T--)if(O[T]!=w[T])return!1;if(1===O.length)return i(g[D=O[0]],y[D],E);for(T=O.length-1;T>=0;T--)if(!i(g[D=O[T]],y[D],E))return!1;return typeof g==typeof y}(g,y,E)};function c(g){return null==g}ye.exports=i},2066:(ye,j,p)=>{var n=p(4569),f=p(9640),v=p(2563);const m=v.FP_Type,o=v.FP_DateTime,d=v.FP_Time;var u={};function h(i,c){return n.isEmpty(i)||n.isEmpty(c)?[]:f(i,c)}function r(i,c){return n.isEmpty(i)&&n.isEmpty(c)?[!0]:n.isEmpty(i)||n.isEmpty(c)?[]:f(i,c,{fuzzy:!0})}function s(i,c){let l=null;n.assertAtMostOne(i,"Singleton was expected"),n.assertAtMostOne(c,"Singleton was expected"),i=n.valData(i[0]),c=n.valData(c[0]);let g=i.constructor,y=c.constructor;var E;return g!=y&&(g!==String||y!==o&&y!==d?y===String&&(g===o||g===d)&&(E=g.checkString(c))&&(l=[i,E]):(E=y.checkString(i))&&(l=[E,c]),l||n.raiseError('Type of "'+i+'" ('+g.name+') did not match type of "'+c+'" ('+y.name+")","InequalityExpression")),l||[i,c]}u.equal=function(i,c){return h(i,c)},u.unequal=function(i,c){var l=h(i,c);return void 0===l?void 0:!l},u.equival=function(i,c){return r(i,c)},u.unequival=function(i,c){return!r(i,c)},u.lt=function(i,c){if(!i.length||!c.length)return[];const[l,g]=s(i,c);if(l instanceof m){const y=l.compare(g);return null===y?[]:y<0}return l0}return l>g},u.lte=function(i,c){if(!i.length||!c.length)return[];const[l,g]=s(i,c);if(l instanceof m){const y=l.compare(g);return null===y?[]:y<=0}return l<=g},u.gte=function(i,c){if(!i.length||!c.length)return[];const[l,g]=s(i,c);if(l instanceof m){const y=l.compare(g);return null===y?[]:y>=0}return l>=g},ye.exports=u},6127:(ye,j,p)=>{const n=p(4569),f=p(8774),v=p(9502),m={};function o(h){return JSON.stringify(d(h))}function d(h){return"object"==typeof h?Array.isArray(h)?h.map(d):Object.keys(h).sort().reduce((r,s)=>(r[s]=d(h[s]),r),{}):h}function u(h,r){let s=h.length<=r.length;if(s){var i={};for(let c=0,l=h.length;c0){let s={};for(let i=0,c=h.length;i{const n=p(9410),f=p(4569);p(7070);const v=p(9397);let m={},o=p(6127),d=p(8774),u=p(3853),h=p(6856),r=p(9502),s=p(2066),i=p(3142),c=p(2492),l=p(9835),g=p(5948),y=p(3425),E=p(2306);const T=p(2563),{FP_DateTime:D,FP_Time:O,FP_Quantity:w,FP_Type:A,ResourceNode:S,TypeInfo:M}=T;let I=S.makeResNode;function b(J,ie,ae,le){if("Expr"===ae)return function(Le){return J.$this=Le,m.doEval(J,f.arraify(Le),le)};if("AnyAtRoot"===ae)return J.$this=J.dataRoot,m.doEval(J,J.dataRoot,le);if("Identifier"===ae){if("TermExpression"==le.type)return le.text;throw new Error("Expected identifier node, got "+JSON.stringify(le))}if("TypeSpecifier"===ae)return m.TypeSpecifier(J,ie,le);J.$this=ie;var Oe=m.doEval(J,ie,le);if("Any"===ae)return Oe;if(Array.isArray(ae)){if(0==Oe.length)return[];ae=ae[0]}return r.singleton(Oe,ae)}function F(J){return null==J||f.isEmpty(J)}function ne(J,ie,ae,le){var Oe=m.invocationTable[ie];if(Oe&&Oe.fn){var Le=le?le.length:0;if(2!=Le)throw new Error("Infix invoke should have arity 2");var Ye=Oe.arity[Le];if(Ye){for(var Je=[],gt=0;gt":{fn:s.gt,arity:{2:["Any","Any"]},nullable:!0},"<=":{fn:s.lte,arity:{2:["Any","Any"]},nullable:!0},">=":{fn:s.gte,arity:{2:["Any","Any"]},nullable:!0},containsOp:{fn:i.contains,arity:{2:["Any","Any"]}},inOp:{fn:i.in,arity:{2:["Any","Any"]}},isOp:{fn:T.isFn,arity:{2:["Any","TypeSpecifier"]}},"&":{fn:c.amp,arity:{2:["String","String"]}},"+":{fn:c.plus,arity:{2:["Any","Any"]},nullable:!0},"-":{fn:c.minus,arity:{2:["Any","Any"]},nullable:!0},"*":{fn:c.mul,arity:{2:["Number","Number"]},nullable:!0},"/":{fn:c.div,arity:{2:["Number","Number"]},nullable:!0},mod:{fn:c.mod,arity:{2:["Number","Number"]},nullable:!0},div:{fn:c.intdiv,arity:{2:["Number","Number"]},nullable:!0},or:{fn:E.orOp,arity:{2:[["Boolean"],["Boolean"]]}},and:{fn:E.andOp,arity:{2:[["Boolean"],["Boolean"]]}},xor:{fn:E.xorOp,arity:{2:[["Boolean"],["Boolean"]]}},implies:{fn:E.impliesOp,arity:{2:[["Boolean"],["Boolean"]]}}},m.InvocationExpression=function(J,ie,ae){return ae.children.reduce(function(le,Oe){return m.doEval(J,le,Oe)},ie)},m.TermExpression=function(J,ie,ae){return ie&&(ie=ie.map(le=>le instanceof Object&&le.resourceType?I(le,le.resourceType):le)),m.doEval(J,ie,ae.children[0])},m.PolarityExpression=function(J,ie,ae){var le=ae.terminalNodeText[0],Oe=m.doEval(J,ie,ae.children[0]);if(1!=Oe.length)throw new Error("Unary "+le+" can only be applied to an individual number.");if("number"!=typeof Oe[0]||isNaN(Oe[0]))throw new Error("Unary "+le+" can only be applied to a number.");return"-"===le&&(Oe[0]=-Oe[0]),Oe},m.TypeSpecifier=function(J,ie,ae){let le,Oe;const Le=ae.text.split(".").map(Ye=>Ye.replace(/(^`|`$)/g,""));switch(Le.length){case 2:[le,Oe]=Le;break;case 1:[Oe]=Le;break;default:throw new Error("Expected TypeSpecifier node, got "+JSON.stringify(ae))}return new M({namespace:le,name:Oe})},m.ExternalConstantTerm=function(J,ie,ae){var Le=m.Identifier(J,ie,ae.children[0].children[0])[0],Ye=J.vars[Le];if(!(Le in J.vars))throw new Error("Attempting to access an undefined environment variable: "+Le);return null==Ye?[]:Ye instanceof Array?Ye:[Ye]},m.LiteralTerm=function(J,ie,ae){var le=ae.children[0];return le?m.doEval(J,ie,le):[ae.text]},m.StringLiteral=function(J,ie,ae){var le=ae.text.replace(/(^'|'$)/g,"");return[le=le.replace(/\\(u\d{4}|.)/g,function(Oe,Le){switch(Oe){case"\\r":return"\r";case"\\n":return"\n";case"\\t":return"\t";case"\\f":return"\f";default:return Le.length>1?String.fromCharCode("0x"+Le.slice(1)):Le}})]},m.BooleanLiteral=function(J,ie,ae){return"true"===ae.text?[!0]:[!1]},m.QuantityLiteral=function(J,ie,ae){var le=ae.children[0],Oe=Number(le.terminalNodeText[0]),Le=le.children[0],Ye=Le.terminalNodeText[0];return!Ye&&Le.children&&(Ye=Le.children[0].terminalNodeText[0]),[new w(Oe,Ye)]},m.DateTimeLiteral=function(J,ie,ae){var le=ae.text.slice(1);return[new D(le)]},m.TimeLiteral=function(J,ie,ae){var le=ae.text.slice(1);return[new O(le)]},m.NumberLiteral=function(J,ie,ae){return[Number(ae.text)]},m.Identifier=function(J,ie,ae){return[ae.text.replace(/(^`|`$)/g,"")]},m.InvocationTerm=function(J,ie,ae){return m.doEval(J,ie,ae.children[0])},m.MemberInvocation=function(J,ie,ae){const le=m.doEval(J,ie,ae.children[0])[0],Oe=J.model;return ie?f.isCapitalized(le)?ie.filter(Le=>Le instanceof S&&Le.path===le):ie.reduce(function(Le,Ye){var Je=(Ye=I(Ye)).path+"."+le;if(Oe){let at=Oe.pathsDefinedElsewhere[Je];at&&(Je=at)}let gt,Ue,tt=Oe&&Oe.choiceTypePaths[Je];if(tt)for(let at of tt){if(gt=Ye.data[le+at],void 0!==gt){Je=at,Ue=Ye.data["_"+le];break}gt=Ye._data[le]}else gt=Ye.data[le],void 0!==gt?Ue=Ye.data["_"+le]:gt=Ye._data[le],"extension"===le&&(Je="Extension");return f.isSome(gt)&&(Array.isArray(gt)?Le=Le.concat(gt.map((at,ft)=>I(at,Je,Ue&&Ue[ft]))):Le.push(I(gt,Je,Ue))),Le},[]):[]},m.IndexerExpression=function(J,ie,ae){const Oe=ae.children[1];var Le=m.doEval(J,ie,ae.children[0]),Ye=m.doEval(J,ie,Oe);if(f.isEmpty(Ye))return[];var Je=parseInt(Ye[0]);return Le&&f.isSome(Je)&&Le.length>Je&&Je>=0?[Le[Je]]:[]},m.Functn=function(J,ie,ae){return ae.children.map(function(le){return m.doEval(J,ie,le)})},m.realizeParams=function(J,ie,ae){return ae&&ae[0]&&ae[0].children?ae[0].children.map(function(le){return m.doEval(J,ie,le)}):[]},m.FunctionInvocation=function(J,ie,ae){var le=m.doEval(J,ie,ae.children[0]);const Oe=le[0];return le.shift(),function(J,ie,ae,le){var Le,Oe=m.invocationTable[ie];if(Oe){if(Oe.arity){var Ye=le?le.length:0,Je=Oe.arity[Ye];if(Je){for(var gt=[],Ue=0;Ue{const n=p(4569),{TypeInfo:f,ResourceNode:v}=p(2563);ye.exports={whereMacro:function(o,d){return!1===o||o?n.flatten(o.filter((u,h)=>(this.$index=h,d(u)[0]))):[]},extension:function(o,d){return!1!==o&&!o||!d?[]:n.flatten(o.map((u,h)=>{this.$index=h;const r=u&&(u.data&&u.data.extension||u._data&&u._data.extension);return r?r.filter(s=>s.url===d).map(s=>v.makeResNode(s,"Extension")):[]}))},selectMacro:function(o,d){return!1===o||o?n.flatten(o.map((u,h)=>(this.$index=h,d(u)))):[]},repeatMacro:function(o,d){if(!1!==o&&!o)return[];for(var u=[],h=o,s=null;0!=h.length;)(s=d(h.shift()))&&(u=u.concat(s),h=h.concat(s));return u},singleFn:function(o){return 1==o.length?o:0==o.length?[]:{$status:"error",$error:"Expected single"}},firstFn:function(o){return o[0]},lastFn:function(o){return o[o.length-1]},tailFn:function(o){return o.slice(1,o.length)},takeFn:function(o,d){return o.slice(0,d)},skipFn:function(o,d){return o.slice(d,o.length)},ofTypeFn:function(o,d){return o.filter(u=>f.fromValue(u).is(d))}}},2306:ye=>{ye.exports={orOp:function(p,n){if(Array.isArray(n)){if(!0===p)return!0;if(!1===p)return[];if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n||[]:p||n},andOp:function(p,n){if(Array.isArray(n)){if(!0===p)return[];if(!1===p)return!1;if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n&&[]:p&&n},xorOp:function(p,n){return Array.isArray(p)||Array.isArray(n)?[]:p&&!n||!p&&n},impliesOp:function(p,n){if(Array.isArray(n)){if(!0===p)return[];if(!1===p)return!0;if(Array.isArray(p))return[]}return Array.isArray(p)?!0===n||[]:!1===p||p&&n}}},2492:(ye,j,p)=>{var n=p(2563);let{FP_TimeBase:f,FP_Quantity:v}=n;const m=p(4569);var o={};function d(h){let r=m.valData(h);if("number"!=typeof r){if(1==r.length&&"number"==typeof(r=m.valData(r[0])))return r;throw new Error("Expected number, but got "+JSON.stringify(r||h))}return r}function u(h){return"number"!=typeof h&&0==h.length}o.amp=function(h,r){return(h||"")+(r||"")},o.plus=function(h,r){if(1==h.length&&1==r.length){var s=m.valData(h[0]),i=m.valData(r[0]);if("string"==typeof s&&"string"==typeof i||"number"==typeof s&&"number"==typeof i)return s+i;if(s instanceof f&&i instanceof v)return s.plus(i)}throw new Error("Cannot "+JSON.stringify(h)+" + "+JSON.stringify(r))},o.minus=function(h,r){if(1==h.length&&1==r.length){var s=m.valData(h[0]),i=m.valData(r[0]);if("number"==typeof s&&"number"==typeof i)return s-i;if(s instanceof f&&i instanceof v)return s.plus(new v(-i.value,i.unit))}throw new Error("Cannot "+JSON.stringify(h)+" - "+JSON.stringify(r))},o.mul=function(h,r){return h*r},o.div=function(h,r){return h/r},o.intdiv=function(h,r){return Math.floor(h/r)},o.mod=function(h,r){return h%r},o.abs=function(h){if(u(h))return[];{let r=d(h);return Math.abs(r)}},o.ceiling=function(h){if(u(h))return[];{let r=d(h);return Math.ceil(r)}},o.exp=function(h){if(u(h))return[];{let r=d(h);return Math.exp(r)}},o.floor=function(h){if(u(h))return[];{let r=d(h);return Math.floor(r)}},o.ln=function(h){if(u(h))return[];{let r=d(h);return Math.log(r)}},o.log=function(h,r){if(u(h)||u(r))return[];{let s=d(h),i=d(r);return Math.log(s)/Math.log(i)}},o.power=function(h,r){if(u(h)||u(r))return[];{let s=d(h),i=d(r);return s<0&&Math.floor(i)!=i?[]:Math.pow(s,i)}},o.round=function(h,r){if(u(h))return[];{let s=d(h);if(u(r))return Math.round(s);{let i=d(r),c=Math.pow(10,i);return Math.round(s*c)/c}}},o.sqrt=function(h){if(u(h))return[];{let r=d(h);return r<0?[]:Math.sqrt(r)}},o.truncate=function(h){if(u(h))return[];{let r=d(h);return Math.trunc(r)}},ye.exports=o},9502:(ye,j,p)=>{var n=p(4569),f=p(2563);const{FP_Quantity:v}=f;var m={iifMacro:function(l,g,y,E){return n.isTrue(g(l))?y(l):E?E(l):[]},traceFn:function(l,g){return console.log("TRACE:["+(g||"")+"]",JSON.stringify(l,null," ")),l}},o=/^[+-]?\d+$/;m.toInteger=function(l){if(1!==l.length)return[];var g=n.valData(l[0]);return!1===g?0:!0===g?1:"number"==typeof g?Number.isInteger(g)?g:[]:"string"==typeof g&&o.test(g)?parseInt(g):[]};const d=/^((\+|-)?\d+(\.\d+)?)\s*(('[^']+')|([a-zA-Z]+))?$/;m.toQuantity=function(l,g){let y;if(g&&!v.mapTimeUnitsToUCUMCode[g]&&(g=`'${g}'`),l.length>1)throw new Error("Could not convert to quantity: input collection contains multiple items");if(1===l.length){const T=n.valData(l[0]);let D;if("number"==typeof T)y=new v(T,"'1'");else if(T instanceof v)y=T;else if("boolean"==typeof T)y=new v(T?1:0,"'1'");else if("string"==typeof T&&(D=d.exec(T))){const O=D[1],w=D[5],A=D[6];(!A||v.mapTimeUnitsToUCUMCode[A])&&(y=new v(Number(O),w||A||"'1'"))}y&&g&&y.unit!==g&&(y=v.convUnitTo(y.unit,y.value,g))}return y||[]};var h=/^[+-]?\d+(\.\d+)?$/;function r(l){let g=l.slice(3);m["to"+g]=function(y){var E=[];if(y.length>1)throw Error("to "+g+" called for a collection of length "+y.length);if(1===y.length){var T=f[l].checkString(n.valData(y[0]));T&&(E=T)}return E}}m.toDecimal=function(l){if(1!==l.length)return[];var g=n.valData(l[0]);return!1===g?0:!0===g?1:"number"==typeof g?g:"string"==typeof g&&h.test(g)?parseFloat(g):[]},m.toString=function(l){return 1!==l.length?[]:n.valData(l[0]).toString()},r("FP_DateTime"),r("FP_Time");const s=["true","t","yes","y","1","1.0"].reduce((l,g)=>(l[g]=!0,l),{}),i=["false","f","no","n","0","0.0"].reduce((l,g)=>(l[g]=!0,l),{});m.toBoolean=function(l){if(1!==l.length)return[];const g=n.valData(l[0]);switch(typeof g){case"boolean":return g;case"number":if(1===g)return!0;if(0===g)return!1;break;case"string":const y=g.toLowerCase();if(s[y])return!0;if(i[y])return!1}return[]},m.createConvertsToFn=function(l,g){return"string"==typeof g?function(y){return 1!==y.length?[]:typeof l(y)===g}:function(y){return 1!==y.length?[]:l(y)instanceof g}};const c={Integer:function(l){const g=n.valData(l[0]);if(Number.isInteger(g))return g},Boolean:function(l){const g=n.valData(l[0]);return!0===g||!1===g?g:1===l.length||void 0},Number:function(l){const g=n.valData(l[0]);if("number"==typeof g)return g},String:function(l){const g=n.valData(l[0]);if("string"==typeof g)return g}};m.singleton=function(l,g){if(l.length>1)throw new Error("Unexpected collection"+JSON.stringify(l)+"; expected singleton of type "+g);if(0===l.length)return[];const y=c[g];if(y){const E=y(l);if(void 0!==E)return E;throw new Error(`Expected ${g.toLowerCase()}, but got: ${JSON.stringify(l)}`)}throw new Error("Not supported type "+g)},ye.exports=m},5948:(ye,j,p)=>{const n=p(4569),{ResourceNode:f}=p(2563);let v=f.makeResNode;var m={children:function(o){let d=this.model;return o.reduce(function(u,h){let r=n.valData(h);if(h=v(h),"object"==typeof r){for(var s of Object.keys(r)){var i=r[s],c=h.path+"."+s;if(d){let l=d.pathsDefinedElsewhere[c];l&&(c=l)}Array.isArray(i)?u.push.apply(u,i.map(l=>v(l,c))):u.push(v(i,c))}return u}return u},[])},descendants:function(o){for(var d=m.children.call(this,o),u=[];d.length>0;)u.push.apply(u,d),d=m.children.call(this,d);return u}};ye.exports=m},5192:ye=>{let j={};function p(m){const d=/(\d+)(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/.exec(""+ +m);if(!d)return 0;const u=d[2];return Math.max(0,("0"===u?0:(u||"").length)-(d[3]||0))}function n(m,o){const d=Math.pow(10,o);return Math.round(m*d)/d}function v(m){return 1e-8*Math.round(m/1e-8)}j.isEquivalent=function(m,o){if(Number.isInteger(m)&&Number.isInteger(o))return m===o;const d=Math.min(p(m),p(o));return 0===d?Math.round(m)===Math.round(o):n(m,d)===n(o,d)},j.isEqual=function(m,o){return v(m)===v(o)},ye.exports=j},4981:(ye,j,p)=>{j.atn=p(8900),j.codepointat=p(4185),j.dfa=p(8985),j.fromcodepoint=p(9767),j.tree=p(6722),j.error=p(8553),j.Token=p(8443).Token,j.CommonToken=p(8443).CommonToken,j.InputStream=p(7500).InputStream,j.CommonTokenStream=p(2430).CommonTokenStream,j.Lexer=p(3805).Lexer,j.Parser=p(6554).Parser;var n=p(4825);j.PredictionContextCache=n.PredictionContextCache,j.ParserRuleContext=p(911).ParserRuleContext,j.Interval=p(210).Interval,j.Utils=p(8065)},4621:(ye,j,p)=>{var n=p(4981),f=["\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964","\x02A\u0203\b\x01\x04\x02\t\x02\x04\x03\t\x03\x04","\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t","\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04","\f\t\f\x04\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10","\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13","\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17","\t\x17\x04\x18\t\x18\x04\x19\t\x19\x04\x1a\t\x1a","\x04\x1b\t\x1b\x04\x1c\t\x1c\x04\x1d\t\x1d\x04\x1e",'\t\x1e\x04\x1f\t\x1f\x04 \t \x04!\t!\x04"\t"\x04#',"\t#\x04$\t$\x04%\t%\x04&\t&\x04'\t'\x04(\t(\x04)\t)\x04","*\t*\x04+\t+\x04,\t,\x04-\t-\x04.\t.\x04/\t/\x040\t0\x04","1\t1\x042\t2\x043\t3\x044\t4\x045\t5\x046\t6\x047\t7\x04","8\t8\x049\t9\x04:\t:\x04;\t;\x04<\t<\x04=\t=\x04>\t>\x04","?\t?\x04@\t@\x04A\tA\x04B\tB\x04C\tC\x04D\tD\x03\x02\x03","\x02\x03\x03\x03\x03\x03\x04\x03\x04\x03\x05\x03","\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\b\x03","\b\x03\t\x03\t\x03\t\x03\t\x03\n\x03\n\x03\n\x03\n\x03","\v\x03\v\x03\f\x03\f\x03\r\x03\r\x03\r\x03\x0e","\x03\x0e\x03\x0f\x03\x0f\x03\x10\x03\x10\x03\x10","\x03\x11\x03\x11\x03\x11\x03\x12\x03\x12\x03\x12","\x03\x13\x03\x13\x03\x14\x03\x14\x03\x15\x03\x15","\x03\x15\x03\x16\x03\x16\x03\x16\x03\x17\x03\x17","\x03\x17\x03\x18\x03\x18\x03\x18\x03\x18\x03\x18","\x03\x18\x03\x18\x03\x18\x03\x18\x03\x19\x03\x19","\x03\x19\x03\x19\x03\x1a\x03\x1a\x03\x1a\x03\x1b","\x03\x1b\x03\x1b\x03\x1b\x03\x1c\x03\x1c\x03\x1c","\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1c\x03\x1d","\x03\x1d\x03\x1e\x03\x1e\x03\x1f\x03\x1f\x03 ",'\x03 \x03!\x03!\x03!\x03!\x03!\x03"\x03"\x03"\x03','"\x03"\x03"\x03#\x03#\x03$\x03$\x03$\x03$\x03$',"\x03$\x03%\x03%\x03%\x03%\x03%\x03%\x03%\x03&\x03","&\x03&\x03&\x03&\x03&\x03&\x03'\x03'\x03(\x03(\x03","(\x03(\x03(\x03)\x03)\x03)\x03)\x03)\x03)\x03*\x03","*\x03*\x03*\x03*\x03+\x03+\x03+\x03+\x03,\x03,\x03",",\x03,\x03,\x03-\x03-\x03-\x03-\x03-\x03-\x03-\x03",".\x03.\x03.\x03.\x03.\x03.\x03.\x03/\x03/\x03/\x03","/\x03/\x03/\x03/\x03/\x03/\x03/\x03/\x03/\x030\x03","0\x030\x030\x030\x030\x031\x031\x031\x031\x031\x03","1\x031\x032\x032\x032\x032\x032\x032\x033\x033\x03","3\x033\x033\x034\x034\x034\x034\x034\x034\x035\x03","5\x035\x035\x035\x035\x035\x035\x036\x036\x036\x03","6\x036\x036\x036\x036\x037\x037\x037\x037\x037\x03","7\x037\x037\x037\x037\x037\x037\x037\x038\x038\x03","8\x038\x038\x038\x038\x038\x038\x038\x038\x038\x03","8\x058\u0183\n8\x058\u0185\n8\x058\u0187\n8\x038\x058\u018a","\n8\x039\x039\x039\x039\x03:\x03:\x03:\x03:\x03:\x03",":\x03:\x03:\x03:\x03:\x06:\u019a\n:\r:\x0e:\u019b\x05",":\u019e\n:\x05:\u01a0\n:\x05:\u01a2\n:\x03:\x03:\x03:\x03",":\x03:\x03:\x03:\x05:\u01ab\n:\x03;\x05;\u01ae\n;\x03",";\x07;\u01b1\n;\f;\x0e;\u01b4\v;\x03<\x03<\x03<\x07","<\u01b9\n<\f<\x0e<\u01bc\v<\x03<\x03<\x03=\x03=\x03","=\x07=\u01c3\n=\f=\x0e=\u01c6\v=\x03=\x03=\x03>\x06",">\u01cb\n>\r>\x0e>\u01cc\x03>\x03>\x06>\u01d1\n>\r>\x0e>\u01d2","\x05>\u01d5\n>\x03?\x06?\u01d8\n?\r?\x0e?\u01d9\x03?\x03","?\x03@\x03@\x03@\x03@\x07@\u01e2\n@\f@\x0e@\u01e5\v","@\x03@\x03@\x03@\x03@\x03@\x03A\x03A\x03A\x03A\x07","A\u01f0\nA\fA\x0eA\u01f3\vA\x03A\x03A\x03B\x03B\x03","B\x05B\u01fa\nB\x03C\x03C\x03C\x03C\x03C\x03C\x03D\x03","D\x03\u01e3\x02E\x03\x03\x05\x04\x07\x05\t\x06\v","\x07\r\b\x0f\t\x11\n\x13\v\x15\f\x17\r\x19\x0e\x1b","\x0f\x1d\x10\x1f\x11!\x12#\x13%\x14'\x15)\x16+","\x17-\x18/\x191\x1a3\x1b5\x1c7\x1d9\x1e;\x1f= ?!A","\"C#E$G%I&K'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s\x02u;w}","?\x7f@\x81A\x83\x02\x85\x02\x87\x02\x03\x02\f\x03","\x022;\x04\x02--//\x05\x02C\\aac|\x06\x022;C\\aac|\x04",'\x02^^bb\x03\x02))\x05\x02\v\f\x0f\x0f""\x04\x02',"\f\f\x0f\x0f\n\x02))11^^bbhhppttvv\x05\x022;CHch\x02\u0214","\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02","\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02","\x02\v\x03\x02\x02\x02\x02\r\x03\x02\x02\x02","\x02\x0f\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02","\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02","\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02","\x02\x1b\x03\x02\x02\x02\x02\x1d\x03\x02\x02\x02","\x02\x1f\x03\x02\x02\x02\x02!\x03\x02\x02\x02","\x02#\x03\x02\x02\x02\x02%\x03\x02\x02\x02\x02","'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03","\x02\x02\x02\x02-\x03\x02\x02\x02\x02/\x03\x02","\x02\x02\x021\x03\x02\x02\x02\x023\x03\x02\x02","\x02\x025\x03\x02\x02\x02\x027\x03\x02\x02\x02","\x029\x03\x02\x02\x02\x02;\x03\x02\x02\x02\x02","=\x03\x02\x02\x02\x02?\x03\x02\x02\x02\x02A\x03","\x02\x02\x02\x02C\x03\x02\x02\x02\x02E\x03\x02","\x02\x02\x02G\x03\x02\x02\x02\x02I\x03\x02\x02","\x02\x02K\x03\x02\x02\x02\x02M\x03\x02\x02\x02","\x02O\x03\x02\x02\x02\x02Q\x03\x02\x02\x02\x02","S\x03\x02\x02\x02\x02U\x03\x02\x02\x02\x02W\x03","\x02\x02\x02\x02Y\x03\x02\x02\x02\x02[\x03\x02","\x02\x02\x02]\x03\x02\x02\x02\x02_\x03\x02\x02","\x02\x02a\x03\x02\x02\x02\x02c\x03\x02\x02\x02","\x02e\x03\x02\x02\x02\x02g\x03\x02\x02\x02\x02","i\x03\x02\x02\x02\x02k\x03\x02\x02\x02\x02m\x03","\x02\x02\x02\x02o\x03\x02\x02\x02\x02q\x03\x02","\x02\x02\x02u\x03\x02\x02\x02\x02w\x03\x02\x02","\x02\x02y\x03\x02\x02\x02\x02{\x03\x02\x02\x02","\x02}\x03\x02\x02\x02\x02\x7f\x03\x02\x02\x02","\x02\x81\x03\x02\x02\x02\x03\x89\x03\x02\x02\x02","\x05\x8b\x03\x02\x02\x02\x07\x8d\x03\x02\x02\x02","\t\x8f\x03\x02\x02\x02\v\x91\x03\x02\x02\x02","\r\x93\x03\x02\x02\x02\x0f\x95\x03\x02\x02\x02","\x11\x97\x03\x02\x02\x02\x13\x9b\x03\x02\x02\x02","\x15\x9f\x03\x02\x02\x02\x17\xa1\x03\x02\x02\x02","\x19\xa3\x03\x02\x02\x02\x1b\xa6\x03\x02\x02\x02","\x1d\xa8\x03\x02\x02\x02\x1f\xaa\x03\x02\x02\x02","!\xad\x03\x02\x02\x02#\xb0\x03\x02\x02\x02%\xb3","\x03\x02\x02\x02'\xb5\x03\x02\x02\x02)\xb7\x03","\x02\x02\x02+\xba\x03\x02\x02\x02-\xbd\x03\x02","\x02\x02/\xc0\x03\x02\x02\x021\xc9\x03\x02\x02","\x023\xcd\x03\x02\x02\x025\xd0\x03\x02\x02\x02","7\xd4\x03\x02\x02\x029\xdc\x03\x02\x02\x02;\xde","\x03\x02\x02\x02=\xe0\x03\x02\x02\x02?\xe2\x03","\x02\x02\x02A\xe4\x03\x02\x02\x02C\xe9\x03\x02","\x02\x02E\xef\x03\x02\x02\x02G\xf1\x03\x02\x02","\x02I\xf7\x03\x02\x02\x02K\xfe\x03\x02\x02\x02","M\u0105\x03\x02\x02\x02O\u0107\x03\x02\x02\x02Q\u010c","\x03\x02\x02\x02S\u0112\x03\x02\x02\x02U\u0117\x03","\x02\x02\x02W\u011b\x03\x02\x02\x02Y\u0120\x03\x02","\x02\x02[\u0127\x03\x02\x02\x02]\u012e\x03\x02\x02","\x02_\u013a\x03\x02\x02\x02a\u0140\x03\x02\x02\x02","c\u0147\x03\x02\x02\x02e\u014d\x03\x02\x02\x02g\u0152","\x03\x02\x02\x02i\u0158\x03\x02\x02\x02k\u0160\x03","\x02\x02\x02m\u0168\x03\x02\x02\x02o\u0175\x03\x02","\x02\x02q\u018b\x03\x02\x02\x02s\u018f\x03\x02\x02","\x02u\u01ad\x03\x02\x02\x02w\u01b5\x03\x02\x02\x02","y\u01bf\x03\x02\x02\x02{\u01ca\x03\x02\x02\x02}\u01d7","\x03\x02\x02\x02\x7f\u01dd\x03\x02\x02\x02\x81\u01eb","\x03\x02\x02\x02\x83\u01f6\x03\x02\x02\x02\x85\u01fb","\x03\x02\x02\x02\x87\u0201\x03\x02\x02\x02\x89\x8a","\x070\x02\x02\x8a\x04\x03\x02\x02\x02\x8b\x8c","\x07]\x02\x02\x8c\x06\x03\x02\x02\x02\x8d\x8e","\x07_\x02\x02\x8e\b\x03\x02\x02\x02\x8f\x90\x07","-\x02\x02\x90\n\x03\x02\x02\x02\x91\x92\x07/\x02","\x02\x92\f\x03\x02\x02\x02\x93\x94\x07,\x02\x02","\x94\x0e\x03\x02\x02\x02\x95\x96\x071\x02\x02","\x96\x10\x03\x02\x02\x02\x97\x98\x07f\x02\x02","\x98\x99\x07k\x02\x02\x99\x9a\x07x\x02\x02\x9a","\x12\x03\x02\x02\x02\x9b\x9c\x07o\x02\x02\x9c","\x9d\x07q\x02\x02\x9d\x9e\x07f\x02\x02\x9e\x14","\x03\x02\x02\x02\x9f\xa0\x07(\x02\x02\xa0\x16","\x03\x02\x02\x02\xa1\xa2\x07~\x02\x02\xa2\x18","\x03\x02\x02\x02\xa3\xa4\x07>\x02\x02\xa4\xa5","\x07?\x02\x02\xa5\x1a\x03\x02\x02\x02\xa6\xa7","\x07>\x02\x02\xa7\x1c\x03\x02\x02\x02\xa8\xa9","\x07@\x02\x02\xa9\x1e\x03\x02\x02\x02\xaa\xab","\x07@\x02\x02\xab\xac\x07?\x02\x02\xac \x03\x02","\x02\x02\xad\xae\x07k\x02\x02\xae\xaf\x07u\x02",'\x02\xaf"\x03\x02\x02\x02\xb0\xb1\x07c\x02\x02',"\xb1\xb2\x07u\x02\x02\xb2$\x03\x02\x02\x02\xb3","\xb4\x07?\x02\x02\xb4&\x03\x02\x02\x02\xb5\xb6","\x07\x80\x02\x02\xb6(\x03\x02\x02\x02\xb7\xb8","\x07#\x02\x02\xb8\xb9\x07?\x02\x02\xb9*\x03\x02","\x02\x02\xba\xbb\x07#\x02\x02\xbb\xbc\x07\x80","\x02\x02\xbc,\x03\x02\x02\x02\xbd\xbe\x07k\x02","\x02\xbe\xbf\x07p\x02\x02\xbf.\x03\x02\x02\x02","\xc0\xc1\x07e\x02\x02\xc1\xc2\x07q\x02\x02\xc2","\xc3\x07p\x02\x02\xc3\xc4\x07v\x02\x02\xc4\xc5","\x07c\x02\x02\xc5\xc6\x07k\x02\x02\xc6\xc7\x07","p\x02\x02\xc7\xc8\x07u\x02\x02\xc80\x03\x02\x02","\x02\xc9\xca\x07c\x02\x02\xca\xcb\x07p\x02\x02","\xcb\xcc\x07f\x02\x02\xcc2\x03\x02\x02\x02\xcd","\xce\x07q\x02\x02\xce\xcf\x07t\x02\x02\xcf4\x03","\x02\x02\x02\xd0\xd1\x07z\x02\x02\xd1\xd2\x07","q\x02\x02\xd2\xd3\x07t\x02\x02\xd36\x03\x02\x02","\x02\xd4\xd5\x07k\x02\x02\xd5\xd6\x07o\x02\x02","\xd6\xd7\x07r\x02\x02\xd7\xd8\x07n\x02\x02\xd8","\xd9\x07k\x02\x02\xd9\xda\x07g\x02\x02\xda\xdb","\x07u\x02\x02\xdb8\x03\x02\x02\x02\xdc\xdd\x07","*\x02\x02\xdd:\x03\x02\x02\x02\xde\xdf\x07+\x02","\x02\xdf<\x03\x02\x02\x02\xe0\xe1\x07}\x02\x02","\xe1>\x03\x02\x02\x02\xe2\xe3\x07\x7f\x02\x02","\xe3@\x03\x02\x02\x02\xe4\xe5\x07v\x02\x02\xe5","\xe6\x07t\x02\x02\xe6\xe7\x07w\x02\x02\xe7\xe8","\x07g\x02\x02\xe8B\x03\x02\x02\x02\xe9\xea\x07","h\x02\x02\xea\xeb\x07c\x02\x02\xeb\xec\x07n\x02","\x02\xec\xed\x07u\x02\x02\xed\xee\x07g\x02\x02","\xeeD\x03\x02\x02\x02\xef\xf0\x07'\x02\x02\xf0","F\x03\x02\x02\x02\xf1\xf2\x07&\x02\x02\xf2\xf3","\x07v\x02\x02\xf3\xf4\x07j\x02\x02\xf4\xf5\x07","k\x02\x02\xf5\xf6\x07u\x02\x02\xf6H\x03\x02\x02","\x02\xf7\xf8\x07&\x02\x02\xf8\xf9\x07k\x02\x02","\xf9\xfa\x07p\x02\x02\xfa\xfb\x07f\x02\x02\xfb","\xfc\x07g\x02\x02\xfc\xfd\x07z\x02\x02\xfdJ\x03","\x02\x02\x02\xfe\xff\x07&\x02\x02\xff\u0100\x07","v\x02\x02\u0100\u0101\x07q\x02\x02\u0101\u0102\x07v\x02","\x02\u0102\u0103\x07c\x02\x02\u0103\u0104\x07n\x02\x02","\u0104L\x03\x02\x02\x02\u0105\u0106\x07.\x02\x02\u0106","N\x03\x02\x02\x02\u0107\u0108\x07{\x02\x02\u0108\u0109","\x07g\x02\x02\u0109\u010a\x07c\x02\x02\u010a\u010b\x07","t\x02\x02\u010bP\x03\x02\x02\x02\u010c\u010d\x07o\x02","\x02\u010d\u010e\x07q\x02\x02\u010e\u010f\x07p\x02\x02","\u010f\u0110\x07v\x02\x02\u0110\u0111\x07j\x02\x02\u0111","R\x03\x02\x02\x02\u0112\u0113\x07y\x02\x02\u0113\u0114","\x07g\x02\x02\u0114\u0115\x07g\x02\x02\u0115\u0116\x07","m\x02\x02\u0116T\x03\x02\x02\x02\u0117\u0118\x07f\x02","\x02\u0118\u0119\x07c\x02\x02\u0119\u011a\x07{\x02\x02","\u011aV\x03\x02\x02\x02\u011b\u011c\x07j\x02\x02\u011c","\u011d\x07q\x02\x02\u011d\u011e\x07w\x02\x02\u011e\u011f","\x07t\x02\x02\u011fX\x03\x02\x02\x02\u0120\u0121\x07","o\x02\x02\u0121\u0122\x07k\x02\x02\u0122\u0123\x07p\x02","\x02\u0123\u0124\x07w\x02\x02\u0124\u0125\x07v\x02\x02","\u0125\u0126\x07g\x02\x02\u0126Z\x03\x02\x02\x02\u0127","\u0128\x07u\x02\x02\u0128\u0129\x07g\x02\x02\u0129\u012a","\x07e\x02\x02\u012a\u012b\x07q\x02\x02\u012b\u012c\x07","p\x02\x02\u012c\u012d\x07f\x02\x02\u012d\\\x03\x02\x02","\x02\u012e\u012f\x07o\x02\x02\u012f\u0130\x07k\x02\x02","\u0130\u0131\x07n\x02\x02\u0131\u0132\x07n\x02\x02\u0132","\u0133\x07k\x02\x02\u0133\u0134\x07u\x02\x02\u0134\u0135","\x07g\x02\x02\u0135\u0136\x07e\x02\x02\u0136\u0137\x07","q\x02\x02\u0137\u0138\x07p\x02\x02\u0138\u0139\x07f\x02","\x02\u0139^\x03\x02\x02\x02\u013a\u013b\x07{\x02\x02","\u013b\u013c\x07g\x02\x02\u013c\u013d\x07c\x02\x02\u013d","\u013e\x07t\x02\x02\u013e\u013f\x07u\x02\x02\u013f`\x03","\x02\x02\x02\u0140\u0141\x07o\x02\x02\u0141\u0142\x07","q\x02\x02\u0142\u0143\x07p\x02\x02\u0143\u0144\x07v\x02","\x02\u0144\u0145\x07j\x02\x02\u0145\u0146\x07u\x02\x02","\u0146b\x03\x02\x02\x02\u0147\u0148\x07y\x02\x02\u0148","\u0149\x07g\x02\x02\u0149\u014a\x07g\x02\x02\u014a\u014b","\x07m\x02\x02\u014b\u014c\x07u\x02\x02\u014cd\x03\x02","\x02\x02\u014d\u014e\x07f\x02\x02\u014e\u014f\x07c\x02","\x02\u014f\u0150\x07{\x02\x02\u0150\u0151\x07u\x02\x02","\u0151f\x03\x02\x02\x02\u0152\u0153\x07j\x02\x02\u0153","\u0154\x07q\x02\x02\u0154\u0155\x07w\x02\x02\u0155\u0156","\x07t\x02\x02\u0156\u0157\x07u\x02\x02\u0157h\x03\x02","\x02\x02\u0158\u0159\x07o\x02\x02\u0159\u015a\x07k\x02","\x02\u015a\u015b\x07p\x02\x02\u015b\u015c\x07w\x02\x02","\u015c\u015d\x07v\x02\x02\u015d\u015e\x07g\x02\x02\u015e","\u015f\x07u\x02\x02\u015fj\x03\x02\x02\x02\u0160\u0161","\x07u\x02\x02\u0161\u0162\x07g\x02\x02\u0162\u0163\x07","e\x02\x02\u0163\u0164\x07q\x02\x02\u0164\u0165\x07p\x02","\x02\u0165\u0166\x07f\x02\x02\u0166\u0167\x07u\x02\x02","\u0167l\x03\x02\x02\x02\u0168\u0169\x07o\x02\x02\u0169","\u016a\x07k\x02\x02\u016a\u016b\x07n\x02\x02\u016b\u016c","\x07n\x02\x02\u016c\u016d\x07k\x02\x02\u016d\u016e\x07","u\x02\x02\u016e\u016f\x07g\x02\x02\u016f\u0170\x07e\x02","\x02\u0170\u0171\x07q\x02\x02\u0171\u0172\x07p\x02\x02","\u0172\u0173\x07f\x02\x02\u0173\u0174\x07u\x02\x02\u0174","n\x03\x02\x02\x02\u0175\u0176\x07B\x02\x02\u0176\u0177","\t\x02\x02\x02\u0177\u0178\t\x02\x02\x02\u0178\u0179\t\x02","\x02\x02\u0179\u0186\t\x02\x02\x02\u017a\u017b\x07/\x02","\x02\u017b\u017c\t\x02\x02\x02\u017c\u0184\t\x02\x02\x02","\u017d\u017e\x07/\x02\x02\u017e\u017f\t\x02\x02\x02\u017f","\u0182\t\x02\x02\x02\u0180\u0181\x07V\x02\x02\u0181\u0183","\x05s:\x02\u0182\u0180\x03\x02\x02\x02\u0182\u0183\x03","\x02\x02\x02\u0183\u0185\x03\x02\x02\x02\u0184\u017d\x03","\x02\x02\x02\u0184\u0185\x03\x02\x02\x02\u0185\u0187\x03","\x02\x02\x02\u0186\u017a\x03\x02\x02\x02\u0186\u0187\x03","\x02\x02\x02\u0187\u0189\x03\x02\x02\x02\u0188\u018a\x07","\\\x02\x02\u0189\u0188\x03\x02\x02\x02\u0189\u018a\x03","\x02\x02\x02\u018ap\x03\x02\x02\x02\u018b\u018c\x07","B\x02\x02\u018c\u018d\x07V\x02\x02\u018d\u018e\x05s:\x02","\u018er\x03\x02\x02\x02\u018f\u0190\t\x02\x02\x02\u0190","\u01a1\t\x02\x02\x02\u0191\u0192\x07<\x02\x02\u0192\u0193","\t\x02\x02\x02\u0193\u019f\t\x02\x02\x02\u0194\u0195\x07","<\x02\x02\u0195\u0196\t\x02\x02\x02\u0196\u019d\t\x02\x02","\x02\u0197\u0199\x070\x02\x02\u0198\u019a\t\x02\x02\x02","\u0199\u0198\x03\x02\x02\x02\u019a\u019b\x03\x02\x02\x02","\u019b\u0199\x03\x02\x02\x02\u019b\u019c\x03\x02\x02\x02","\u019c\u019e\x03\x02\x02\x02\u019d\u0197\x03\x02\x02\x02","\u019d\u019e\x03\x02\x02\x02\u019e\u01a0\x03\x02\x02\x02","\u019f\u0194\x03\x02\x02\x02\u019f\u01a0\x03\x02\x02\x02","\u01a0\u01a2\x03\x02\x02\x02\u01a1\u0191\x03\x02\x02\x02","\u01a1\u01a2\x03\x02\x02\x02\u01a2\u01aa\x03\x02\x02\x02","\u01a3\u01ab\x07\\\x02\x02\u01a4\u01a5\t\x03\x02\x02\u01a5","\u01a6\t\x02\x02\x02\u01a6\u01a7\t\x02\x02\x02\u01a7\u01a8","\x07<\x02\x02\u01a8\u01a9\t\x02\x02\x02\u01a9\u01ab\t\x02","\x02\x02\u01aa\u01a3\x03\x02\x02\x02\u01aa\u01a4\x03\x02","\x02\x02\u01aa\u01ab\x03\x02\x02\x02\u01abt\x03\x02","\x02\x02\u01ac\u01ae\t\x04\x02\x02\u01ad\u01ac\x03\x02","\x02\x02\u01ae\u01b2\x03\x02\x02\x02\u01af\u01b1\t\x05","\x02\x02\u01b0\u01af\x03\x02\x02\x02\u01b1\u01b4\x03\x02","\x02\x02\u01b2\u01b0\x03\x02\x02\x02\u01b2\u01b3\x03\x02","\x02\x02\u01b3v\x03\x02\x02\x02\u01b4\u01b2\x03\x02","\x02\x02\u01b5\u01ba\x07b\x02\x02\u01b6\u01b9\x05\x83","B\x02\u01b7\u01b9\n\x06\x02\x02\u01b8\u01b6\x03\x02\x02","\x02\u01b8\u01b7\x03\x02\x02\x02\u01b9\u01bc\x03\x02\x02","\x02\u01ba\u01b8\x03\x02\x02\x02\u01ba\u01bb\x03\x02\x02","\x02\u01bb\u01bd\x03\x02\x02\x02\u01bc\u01ba\x03\x02\x02","\x02\u01bd\u01be\x07b\x02\x02\u01bex\x03\x02\x02\x02","\u01bf\u01c4\x07)\x02\x02\u01c0\u01c3\x05\x83B\x02\u01c1","\u01c3\n\x07\x02\x02\u01c2\u01c0\x03\x02\x02\x02\u01c2","\u01c1\x03\x02\x02\x02\u01c3\u01c6\x03\x02\x02\x02\u01c4","\u01c2\x03\x02\x02\x02\u01c4\u01c5\x03\x02\x02\x02\u01c5","\u01c7\x03\x02\x02\x02\u01c6\u01c4\x03\x02\x02\x02\u01c7","\u01c8\x07)\x02\x02\u01c8z\x03\x02\x02\x02\u01c9\u01cb","\t\x02\x02\x02\u01ca\u01c9\x03\x02\x02\x02\u01cb\u01cc","\x03\x02\x02\x02\u01cc\u01ca\x03\x02\x02\x02\u01cc\u01cd","\x03\x02\x02\x02\u01cd\u01d4\x03\x02\x02\x02\u01ce\u01d0","\x070\x02\x02\u01cf\u01d1\t\x02\x02\x02\u01d0\u01cf\x03","\x02\x02\x02\u01d1\u01d2\x03\x02\x02\x02\u01d2\u01d0\x03","\x02\x02\x02\u01d2\u01d3\x03\x02\x02\x02\u01d3\u01d5\x03","\x02\x02\x02\u01d4\u01ce\x03\x02\x02\x02\u01d4\u01d5\x03","\x02\x02\x02\u01d5|\x03\x02\x02\x02\u01d6\u01d8\t\b\x02","\x02\u01d7\u01d6\x03\x02\x02\x02\u01d8\u01d9\x03\x02\x02","\x02\u01d9\u01d7\x03\x02\x02\x02\u01d9\u01da\x03\x02\x02","\x02\u01da\u01db\x03\x02\x02\x02\u01db\u01dc\b?\x02\x02","\u01dc~\x03\x02\x02\x02\u01dd\u01de\x071\x02\x02\u01de","\u01df\x07,\x02\x02\u01df\u01e3\x03\x02\x02\x02\u01e0","\u01e2\v\x02\x02\x02\u01e1\u01e0\x03\x02\x02\x02\u01e2","\u01e5\x03\x02\x02\x02\u01e3\u01e4\x03\x02\x02\x02\u01e3","\u01e1\x03\x02\x02\x02\u01e4\u01e6\x03\x02\x02\x02\u01e5","\u01e3\x03\x02\x02\x02\u01e6\u01e7\x07,\x02\x02\u01e7","\u01e8\x071\x02\x02\u01e8\u01e9\x03\x02\x02\x02\u01e9","\u01ea\b@\x02\x02\u01ea\x80\x03\x02\x02\x02\u01eb\u01ec","\x071\x02\x02\u01ec\u01ed\x071\x02\x02\u01ed\u01f1\x03","\x02\x02\x02\u01ee\u01f0\n\t\x02\x02\u01ef\u01ee\x03\x02","\x02\x02\u01f0\u01f3\x03\x02\x02\x02\u01f1\u01ef\x03\x02","\x02\x02\u01f1\u01f2\x03\x02\x02\x02\u01f2\u01f4\x03\x02","\x02\x02\u01f3\u01f1\x03\x02\x02\x02\u01f4\u01f5\bA\x02","\x02\u01f5\x82\x03\x02\x02\x02\u01f6\u01f9\x07^\x02","\x02\u01f7\u01fa\t\n\x02\x02\u01f8\u01fa\x05\x85C\x02\u01f9","\u01f7\x03\x02\x02\x02\u01f9\u01f8\x03\x02\x02\x02\u01fa","\x84\x03\x02\x02\x02\u01fb\u01fc\x07w\x02\x02\u01fc","\u01fd\x05\x87D\x02\u01fd\u01fe\x05\x87D\x02\u01fe\u01ff","\x05\x87D\x02\u01ff\u0200\x05\x87D\x02\u0200\x86\x03","\x02\x02\x02\u0201\u0202\t\v\x02\x02\u0202\x88\x03","\x02\x02\x02\x1a\x02\u0182\u0184\u0186\u0189\u019b\u019d\u019f","\u01a1\u01aa\u01ad\u01b0\u01b2\u01b8\u01ba\u01c2\u01c4\u01cc\u01d2\u01d4","\u01d9\u01e3\u01f1\u01f9\x03\x02\x03\x02"].join(""),v=(new n.atn.ATNDeserializer).deserialize(f),m=v.decisionToState.map(function(d,u){return new n.dfa.DFA(d,u)});function o(d){return n.Lexer.call(this,d),this._interp=new n.atn.LexerATNSimulator(this,v,m,new n.PredictionContextCache),this}(o.prototype=Object.create(n.Lexer.prototype)).constructor=o,Object.defineProperty(o.prototype,"atn",{get:function(){return v}}),o.EOF=n.Token.EOF,o.T__0=1,o.T__1=2,o.T__2=3,o.T__3=4,o.T__4=5,o.T__5=6,o.T__6=7,o.T__7=8,o.T__8=9,o.T__9=10,o.T__10=11,o.T__11=12,o.T__12=13,o.T__13=14,o.T__14=15,o.T__15=16,o.T__16=17,o.T__17=18,o.T__18=19,o.T__19=20,o.T__20=21,o.T__21=22,o.T__22=23,o.T__23=24,o.T__24=25,o.T__25=26,o.T__26=27,o.T__27=28,o.T__28=29,o.T__29=30,o.T__30=31,o.T__31=32,o.T__32=33,o.T__33=34,o.T__34=35,o.T__35=36,o.T__36=37,o.T__37=38,o.T__38=39,o.T__39=40,o.T__40=41,o.T__41=42,o.T__42=43,o.T__43=44,o.T__44=45,o.T__45=46,o.T__46=47,o.T__47=48,o.T__48=49,o.T__49=50,o.T__50=51,o.T__51=52,o.T__52=53,o.T__53=54,o.DATETIME=55,o.TIME=56,o.IDENTIFIER=57,o.DELIMITEDIDENTIFIER=58,o.STRING=59,o.NUMBER=60,o.WS=61,o.COMMENT=62,o.LINE_COMMENT=63,o.prototype.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],o.prototype.modeNames=["DEFAULT_MODE"],o.prototype.literalNames=[null,"'.'","'['","']'","'+'","'-'","'*'","'/'","'div'","'mod'","'&'","'|'","'<='","'<'","'>'","'>='","'is'","'as'","'='","'~'","'!='","'!~'","'in'","'contains'","'and'","'or'","'xor'","'implies'","'('","')'","'{'","'}'","'true'","'false'","'%'","'$this'","'$index'","'$total'","','","'year'","'month'","'week'","'day'","'hour'","'minute'","'second'","'millisecond'","'years'","'months'","'weeks'","'days'","'hours'","'minutes'","'seconds'","'milliseconds'"],o.prototype.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"DATETIME","TIME","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT"],o.prototype.ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","T__32","T__33","T__34","T__35","T__36","T__37","T__38","T__39","T__40","T__41","T__42","T__43","T__44","T__45","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","DATETIME","TIME","TIMEFORMAT","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT","ESC","UNICODE","HEX"],o.prototype.grammarFileName="FHIRPath.g4",j.a=o},4303:(ye,j,p)=>{var n=p(4981);function f(){return n.tree.ParseTreeListener.call(this),this}(f.prototype=Object.create(n.tree.ParseTreeListener.prototype)).constructor=f,f.prototype.enterEntireExpression=function(v){},f.prototype.exitEntireExpression=function(v){},f.prototype.enterIndexerExpression=function(v){},f.prototype.exitIndexerExpression=function(v){},f.prototype.enterPolarityExpression=function(v){},f.prototype.exitPolarityExpression=function(v){},f.prototype.enterAdditiveExpression=function(v){},f.prototype.exitAdditiveExpression=function(v){},f.prototype.enterMultiplicativeExpression=function(v){},f.prototype.exitMultiplicativeExpression=function(v){},f.prototype.enterUnionExpression=function(v){},f.prototype.exitUnionExpression=function(v){},f.prototype.enterOrExpression=function(v){},f.prototype.exitOrExpression=function(v){},f.prototype.enterAndExpression=function(v){},f.prototype.exitAndExpression=function(v){},f.prototype.enterMembershipExpression=function(v){},f.prototype.exitMembershipExpression=function(v){},f.prototype.enterInequalityExpression=function(v){},f.prototype.exitInequalityExpression=function(v){},f.prototype.enterInvocationExpression=function(v){},f.prototype.exitInvocationExpression=function(v){},f.prototype.enterEqualityExpression=function(v){},f.prototype.exitEqualityExpression=function(v){},f.prototype.enterImpliesExpression=function(v){},f.prototype.exitImpliesExpression=function(v){},f.prototype.enterTermExpression=function(v){},f.prototype.exitTermExpression=function(v){},f.prototype.enterTypeExpression=function(v){},f.prototype.exitTypeExpression=function(v){},f.prototype.enterInvocationTerm=function(v){},f.prototype.exitInvocationTerm=function(v){},f.prototype.enterLiteralTerm=function(v){},f.prototype.exitLiteralTerm=function(v){},f.prototype.enterExternalConstantTerm=function(v){},f.prototype.exitExternalConstantTerm=function(v){},f.prototype.enterParenthesizedTerm=function(v){},f.prototype.exitParenthesizedTerm=function(v){},f.prototype.enterNullLiteral=function(v){},f.prototype.exitNullLiteral=function(v){},f.prototype.enterBooleanLiteral=function(v){},f.prototype.exitBooleanLiteral=function(v){},f.prototype.enterStringLiteral=function(v){},f.prototype.exitStringLiteral=function(v){},f.prototype.enterNumberLiteral=function(v){},f.prototype.exitNumberLiteral=function(v){},f.prototype.enterDateTimeLiteral=function(v){},f.prototype.exitDateTimeLiteral=function(v){},f.prototype.enterTimeLiteral=function(v){},f.prototype.exitTimeLiteral=function(v){},f.prototype.enterQuantityLiteral=function(v){},f.prototype.exitQuantityLiteral=function(v){},f.prototype.enterExternalConstant=function(v){},f.prototype.exitExternalConstant=function(v){},f.prototype.enterMemberInvocation=function(v){},f.prototype.exitMemberInvocation=function(v){},f.prototype.enterFunctionInvocation=function(v){},f.prototype.exitFunctionInvocation=function(v){},f.prototype.enterThisInvocation=function(v){},f.prototype.exitThisInvocation=function(v){},f.prototype.enterIndexInvocation=function(v){},f.prototype.exitIndexInvocation=function(v){},f.prototype.enterTotalInvocation=function(v){},f.prototype.exitTotalInvocation=function(v){},f.prototype.enterFunctn=function(v){},f.prototype.exitFunctn=function(v){},f.prototype.enterParamList=function(v){},f.prototype.exitParamList=function(v){},f.prototype.enterQuantity=function(v){},f.prototype.exitQuantity=function(v){},f.prototype.enterUnit=function(v){},f.prototype.exitUnit=function(v){},f.prototype.enterDateTimePrecision=function(v){},f.prototype.exitDateTimePrecision=function(v){},f.prototype.enterPluralDateTimePrecision=function(v){},f.prototype.exitPluralDateTimePrecision=function(v){},f.prototype.enterTypeSpecifier=function(v){},f.prototype.exitTypeSpecifier=function(v){},f.prototype.enterQualifiedIdentifier=function(v){},f.prototype.exitQualifiedIdentifier=function(v){},f.prototype.enterIdentifier=function(v){},f.prototype.exitIdentifier=function(v){},j.q=f},8974:(ye,j,p)=>{var n=p(4981),f=p(4303).q,m=["\x03\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964","\x03A\x9c\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t","\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t\x07\x04","\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04","\r\t\r\x04\x0e\t\x0e\x04\x0f\t\x0f\x04\x10\t\x10\x03","\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03","\x03\x05\x03(\n\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03","\x03\x03\x03\x03\x03\x03\x03\x03\x03\x07\x03P","\n\x03\f\x03\x0e\x03S\v\x03\x03\x04\x03\x04\x03","\x04\x03\x04\x03\x04\x03\x04\x03\x04\x05\x04\\","\n\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05","\x03\x05\x03\x05\x03\x05\x05\x05f\n\x05\x03\x06","\x03\x06\x03\x06\x05\x06k\n\x06\x03\x07\x03\x07","\x03\x07\x03\x07\x03\x07\x05\x07r\n\x07\x03\b\x03","\b\x03\b\x05\bw\n\b\x03\b\x03\b\x03\t\x03\t\x03\t\x07","\t~\n\t\f\t\x0e\t\x81\v\t\x03\n\x03\n\x05\n\x85\n\n","\x03\v\x03\v\x03\v\x05\v\x8a\n\v\x03","\f\x03\f\x03\r\x03\r\x03\x0e\x03\x0e\x03\x0f\x03","\x0f\x03\x0f\x07\x0f\x95\n\x0f\f\x0f\x0e\x0f\x98","\v\x0f\x03\x10\x03\x10\x03\x10\x02\x03\x04\x11","\x02\x04\x06\b\n\f\x0e\x10\x12\x14\x16\x18\x1a\x1c","\x1e\x02\x0e\x03\x02\x06\x07\x03\x02\b\v\x04","\x02\x06\x07\f\f\x03\x02\x0e\x11\x03\x02\x14\x17","\x03\x02\x18\x19\x03\x02\x1b\x1c\x03\x02\x12\x13",'\x03\x02"#\x03\x02)0\x03\x0218\x05\x02\x12\x13',"\x18\x19;<\x02\xad\x02 \x03\x02\x02\x02\x04'\x03","\x02\x02\x02\x06[\x03\x02\x02\x02\be\x03\x02\x02","\x02\ng\x03\x02\x02\x02\fq\x03\x02\x02\x02\x0es","\x03\x02\x02\x02\x10z\x03\x02\x02\x02\x12\x82","\x03\x02\x02\x02\x14\x89\x03\x02\x02\x02\x16\x8b","\x03\x02\x02\x02\x18\x8d\x03\x02\x02\x02\x1a\x8f","\x03\x02\x02\x02\x1c\x91\x03\x02\x02\x02\x1e\x99",'\x03\x02\x02\x02 !\x05\x04\x03\x02!"\x07\x02\x02','\x03"\x03\x03\x02\x02\x02#$\b\x03\x01\x02$(\x05',"\x06\x04\x02%&\t\x02\x02\x02&(\x05\x04\x03\r'#\x03","\x02\x02\x02'%\x03\x02\x02\x02(Q\x03\x02\x02\x02",")*\f\f\x02\x02*+\t\x03\x02\x02+P\x05\x04\x03\r,-\f\v","\x02\x02-.\t\x04\x02\x02.P\x05\x04\x03\f/0\f\n\x02","\x0201\x07\r\x02\x021P\x05\x04\x03\v23\f\t\x02\x02","34\t\x05\x02\x024P\x05\x04\x03\n56\f\x07\x02\x026","7\t\x06\x02\x027P\x05\x04\x03\b89\f\x06\x02\x029:","\t\x07\x02\x02:P\x05\x04\x03\x07;<\f\x05\x02\x02","<=\x07\x1a\x02\x02=P\x05\x04\x03\x06>?\f\x04\x02","\x02?@\t\b\x02\x02@P\x05\x04\x03\x05AB\f\x03\x02\x02","BC\x07\x1d\x02\x02CP\x05\x04\x03\x04DE\f\x0f\x02","\x02EF\x07\x03\x02\x02FP\x05\f\x07\x02GH\f\x0e\x02","\x02HI\x07\x04\x02\x02IJ\x05\x04\x03\x02JK\x07\x05","\x02\x02KP\x03\x02\x02\x02LM\f\b\x02\x02MN\t\t\x02","\x02NP\x05\x1a\x0e\x02O)\x03\x02\x02\x02O,\x03\x02","\x02\x02O/\x03\x02\x02\x02O2\x03\x02\x02\x02O5\x03","\x02\x02\x02O8\x03\x02\x02\x02O;\x03\x02\x02\x02","O>\x03\x02\x02\x02OA\x03\x02\x02\x02OD\x03\x02\x02","\x02OG\x03\x02\x02\x02OL\x03\x02\x02\x02PS\x03\x02","\x02\x02QO\x03\x02\x02\x02QR\x03\x02\x02\x02R\x05","\x03\x02\x02\x02SQ\x03\x02\x02\x02T\\\x05\f\x07","\x02U\\\x05\b\x05\x02V\\\x05\n\x06\x02WX\x07\x1e\x02","\x02XY\x05\x04\x03\x02YZ\x07\x1f\x02\x02Z\\\x03","\x02\x02\x02[T\x03\x02\x02\x02[U\x03\x02\x02\x02","[V\x03\x02\x02\x02[W\x03\x02\x02\x02\\\x07\x03\x02","\x02\x02]^\x07 \x02\x02^f\x07!\x02\x02_f\t\n\x02\x02","`f\x07=\x02\x02af\x07>\x02\x02bf\x079\x02\x02cf\x07",":\x02\x02df\x05\x12\n\x02e]\x03\x02\x02\x02e_\x03","\x02\x02\x02e`\x03\x02\x02\x02ea\x03\x02\x02\x02","eb\x03\x02\x02\x02ec\x03\x02\x02\x02ed\x03\x02\x02","\x02f\t\x03\x02\x02\x02gj\x07$\x02\x02hk\x05\x1e","\x10\x02ik\x07=\x02\x02jh\x03\x02\x02\x02ji\x03","\x02\x02\x02k\v\x03\x02\x02\x02lr\x05\x1e\x10","\x02mr\x05\x0e\b\x02nr\x07%\x02\x02or\x07&\x02\x02","pr\x07'\x02\x02ql\x03\x02\x02\x02qm\x03\x02\x02","\x02qn\x03\x02\x02\x02qo\x03\x02\x02\x02qp\x03\x02","\x02\x02r\r\x03\x02\x02\x02st\x05\x1e\x10\x02tv","\x07\x1e\x02\x02uw\x05\x10\t\x02vu\x03\x02\x02\x02","vw\x03\x02\x02\x02wx\x03\x02\x02\x02xy\x07\x1f\x02","\x02y\x0f\x03\x02\x02\x02z\x7f\x05\x04\x03\x02","{|\x07(\x02\x02|~\x05\x04\x03\x02}{\x03\x02\x02","\x02~\x81\x03\x02\x02\x02\x7f}\x03\x02\x02\x02","\x7f\x80\x03\x02\x02\x02\x80\x11\x03\x02\x02\x02","\x81\x7f\x03\x02\x02\x02\x82\x84\x07>\x02\x02","\x83\x85\x05\x14\v\x02\x84\x83\x03\x02\x02\x02","\x84\x85\x03\x02\x02\x02\x85\x13\x03\x02\x02\x02","\x86\x8a\x05\x16\f\x02\x87\x8a\x05\x18\r\x02\x88","\x8a\x07=\x02\x02\x89\x86\x03\x02\x02\x02\x89","\x87\x03\x02\x02\x02\x89\x88\x03\x02\x02\x02\x8a","\x15\x03\x02\x02\x02\x8b\x8c\t\v\x02\x02\x8c","\x17\x03\x02\x02\x02\x8d\x8e\t\f\x02\x02\x8e\x19","\x03\x02\x02\x02\x8f\x90\x05\x1c\x0f\x02\x90\x1b","\x03\x02\x02\x02\x91\x96\x05\x1e\x10\x02\x92\x93","\x07\x03\x02\x02\x93\x95\x05\x1e\x10\x02\x94\x92","\x03\x02\x02\x02\x95\x98\x03\x02\x02\x02\x96\x94","\x03\x02\x02\x02\x96\x97\x03\x02\x02\x02\x97\x1d","\x03\x02\x02\x02\x98\x96\x03\x02\x02\x02\x99\x9a","\t\r\x02\x02\x9a\x1f\x03\x02\x02\x02\x0e'OQ[ejqv","\x7f\x84\x89\x96"].join(""),o=(new n.atn.ATNDeserializer).deserialize(m),d=o.decisionToState.map(function(x,U){return new n.dfa.DFA(x,U)}),u=new n.PredictionContextCache,h=[null,"'.'","'['","']'","'+'","'-'","'*'","'/'","'div'","'mod'","'&'","'|'","'<='","'<'","'>'","'>='","'is'","'as'","'='","'~'","'!='","'!~'","'in'","'contains'","'and'","'or'","'xor'","'implies'","'('","')'","'{'","'}'","'true'","'false'","'%'","'$this'","'$index'","'$total'","','","'year'","'month'","'week'","'day'","'hour'","'minute'","'second'","'millisecond'","'years'","'months'","'weeks'","'days'","'hours'","'minutes'","'seconds'","'milliseconds'"],r=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"DATETIME","TIME","IDENTIFIER","DELIMITEDIDENTIFIER","STRING","NUMBER","WS","COMMENT","LINE_COMMENT"],s=["entireExpression","expression","term","literal","externalConstant","invocation","functn","paramList","quantity","unit","dateTimePrecision","pluralDateTimePrecision","typeSpecifier","qualifiedIdentifier","identifier"];function i(x){return n.Parser.call(this,x),this._interp=new n.atn.ParserATNSimulator(this,o,d,u),this.ruleNames=s,this.literalNames=h,this.symbolicNames=r,this}function c(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_entireExpression,this}function l(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_expression,this}function g(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function y(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function E(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function T(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function D(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function O(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function w(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function A(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function S(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function M(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function I(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function b(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function L(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function F(x,U){return l.call(this,x),l.prototype.copyFrom.call(this,U),this}function ne(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_term,this}function Y(x,U){return ne.call(this,x),ne.prototype.copyFrom.call(this,U),this}function Q(x,U){return ne.call(this,x),ne.prototype.copyFrom.call(this,U),this}function te(x,U){return ne.call(this,x),ne.prototype.copyFrom.call(this,U),this}function $(x,U){return ne.call(this,x),ne.prototype.copyFrom.call(this,U),this}function J(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_literal,this}function ie(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function ae(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function le(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function Oe(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function Le(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function Ye(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function Je(x,U){return J.call(this,x),J.prototype.copyFrom.call(this,U),this}function gt(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_externalConstant,this}function Ue(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_invocation,this}function tt(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function at(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function ft(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function vt(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function yt(x,U){return Ue.call(this,x),Ue.prototype.copyFrom.call(this,U),this}function ot(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_functn,this}function _t(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_paramList,this}function At(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_quantity,this}function Tt(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_unit,this}function Bt(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_dateTimePrecision,this}function Et(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_pluralDateTimePrecision,this}function Ee(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_typeSpecifier,this}function fe(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_qualifiedIdentifier,this}function H(x,U,Z){return void 0===U&&(U=null),null==Z&&(Z=-1),n.ParserRuleContext.call(this,U,Z),this.parser=x,this.ruleIndex=i.RULE_identifier,this}(i.prototype=Object.create(n.Parser.prototype)).constructor=i,Object.defineProperty(i.prototype,"atn",{get:function(){return o}}),i.EOF=n.Token.EOF,i.T__0=1,i.T__1=2,i.T__2=3,i.T__3=4,i.T__4=5,i.T__5=6,i.T__6=7,i.T__7=8,i.T__8=9,i.T__9=10,i.T__10=11,i.T__11=12,i.T__12=13,i.T__13=14,i.T__14=15,i.T__15=16,i.T__16=17,i.T__17=18,i.T__18=19,i.T__19=20,i.T__20=21,i.T__21=22,i.T__22=23,i.T__23=24,i.T__24=25,i.T__25=26,i.T__26=27,i.T__27=28,i.T__28=29,i.T__29=30,i.T__30=31,i.T__31=32,i.T__32=33,i.T__33=34,i.T__34=35,i.T__35=36,i.T__36=37,i.T__37=38,i.T__38=39,i.T__39=40,i.T__40=41,i.T__41=42,i.T__42=43,i.T__43=44,i.T__44=45,i.T__45=46,i.T__46=47,i.T__47=48,i.T__48=49,i.T__49=50,i.T__50=51,i.T__51=52,i.T__52=53,i.T__53=54,i.DATETIME=55,i.TIME=56,i.IDENTIFIER=57,i.DELIMITEDIDENTIFIER=58,i.STRING=59,i.NUMBER=60,i.WS=61,i.COMMENT=62,i.LINE_COMMENT=63,i.RULE_entireExpression=0,i.RULE_expression=1,i.RULE_term=2,i.RULE_literal=3,i.RULE_externalConstant=4,i.RULE_invocation=5,i.RULE_functn=6,i.RULE_paramList=7,i.RULE_quantity=8,i.RULE_unit=9,i.RULE_dateTimePrecision=10,i.RULE_pluralDateTimePrecision=11,i.RULE_typeSpecifier=12,i.RULE_qualifiedIdentifier=13,i.RULE_identifier=14,(c.prototype=Object.create(n.ParserRuleContext.prototype)).constructor=c,c.prototype.expression=function(){return this.getTypedRuleContext(l,0)},c.prototype.EOF=function(){return this.getToken(i.EOF,0)},c.prototype.enterRule=function(x){x instanceof f&&x.enterEntireExpression(this)},c.prototype.exitRule=function(x){x instanceof f&&x.exitEntireExpression(this)},i.EntireExpressionContext=c,i.prototype.entireExpression=function(){var x=new c(this,this._ctx,this.state);this.enterRule(x,0,i.RULE_entireExpression);try{this.enterOuterAlt(x,1),this.state=30,this.expression(0),this.state=31,this.match(i.EOF)}catch(U){if(!(U instanceof n.error.RecognitionException))throw U;x.exception=U,this._errHandler.reportError(this,U),this._errHandler.recover(this,U)}finally{this.exitRule()}return x},(l.prototype=Object.create(n.ParserRuleContext.prototype)).constructor=l,l.prototype.copyFrom=function(x){n.ParserRuleContext.prototype.copyFrom.call(this,x)},(g.prototype=Object.create(l.prototype)).constructor=g,i.IndexerExpressionContext=g,g.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},g.prototype.enterRule=function(x){x instanceof f&&x.enterIndexerExpression(this)},g.prototype.exitRule=function(x){x instanceof f&&x.exitIndexerExpression(this)},(y.prototype=Object.create(l.prototype)).constructor=y,i.PolarityExpressionContext=y,y.prototype.expression=function(){return this.getTypedRuleContext(l,0)},y.prototype.enterRule=function(x){x instanceof f&&x.enterPolarityExpression(this)},y.prototype.exitRule=function(x){x instanceof f&&x.exitPolarityExpression(this)},(E.prototype=Object.create(l.prototype)).constructor=E,i.AdditiveExpressionContext=E,E.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},E.prototype.enterRule=function(x){x instanceof f&&x.enterAdditiveExpression(this)},E.prototype.exitRule=function(x){x instanceof f&&x.exitAdditiveExpression(this)},(T.prototype=Object.create(l.prototype)).constructor=T,i.MultiplicativeExpressionContext=T,T.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},T.prototype.enterRule=function(x){x instanceof f&&x.enterMultiplicativeExpression(this)},T.prototype.exitRule=function(x){x instanceof f&&x.exitMultiplicativeExpression(this)},(D.prototype=Object.create(l.prototype)).constructor=D,i.UnionExpressionContext=D,D.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},D.prototype.enterRule=function(x){x instanceof f&&x.enterUnionExpression(this)},D.prototype.exitRule=function(x){x instanceof f&&x.exitUnionExpression(this)},(O.prototype=Object.create(l.prototype)).constructor=O,i.OrExpressionContext=O,O.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},O.prototype.enterRule=function(x){x instanceof f&&x.enterOrExpression(this)},O.prototype.exitRule=function(x){x instanceof f&&x.exitOrExpression(this)},(w.prototype=Object.create(l.prototype)).constructor=w,i.AndExpressionContext=w,w.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},w.prototype.enterRule=function(x){x instanceof f&&x.enterAndExpression(this)},w.prototype.exitRule=function(x){x instanceof f&&x.exitAndExpression(this)},(A.prototype=Object.create(l.prototype)).constructor=A,i.MembershipExpressionContext=A,A.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},A.prototype.enterRule=function(x){x instanceof f&&x.enterMembershipExpression(this)},A.prototype.exitRule=function(x){x instanceof f&&x.exitMembershipExpression(this)},(S.prototype=Object.create(l.prototype)).constructor=S,i.InequalityExpressionContext=S,S.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},S.prototype.enterRule=function(x){x instanceof f&&x.enterInequalityExpression(this)},S.prototype.exitRule=function(x){x instanceof f&&x.exitInequalityExpression(this)},(M.prototype=Object.create(l.prototype)).constructor=M,i.InvocationExpressionContext=M,M.prototype.expression=function(){return this.getTypedRuleContext(l,0)},M.prototype.invocation=function(){return this.getTypedRuleContext(Ue,0)},M.prototype.enterRule=function(x){x instanceof f&&x.enterInvocationExpression(this)},M.prototype.exitRule=function(x){x instanceof f&&x.exitInvocationExpression(this)},(I.prototype=Object.create(l.prototype)).constructor=I,i.EqualityExpressionContext=I,I.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},I.prototype.enterRule=function(x){x instanceof f&&x.enterEqualityExpression(this)},I.prototype.exitRule=function(x){x instanceof f&&x.exitEqualityExpression(this)},(b.prototype=Object.create(l.prototype)).constructor=b,i.ImpliesExpressionContext=b,b.prototype.expression=function(x){return void 0===x&&(x=null),null===x?this.getTypedRuleContexts(l):this.getTypedRuleContext(l,x)},b.prototype.enterRule=function(x){x instanceof f&&x.enterImpliesExpression(this)},b.prototype.exitRule=function(x){x instanceof f&&x.exitImpliesExpression(this)},(L.prototype=Object.create(l.prototype)).constructor=L,i.TermExpressionContext=L,L.prototype.term=function(){return this.getTypedRuleContext(ne,0)},L.prototype.enterRule=function(x){x instanceof f&&x.enterTermExpression(this)},L.prototype.exitRule=function(x){x instanceof f&&x.exitTermExpression(this)},(F.prototype=Object.create(l.prototype)).constructor=F,i.TypeExpressionContext=F,F.prototype.expression=function(){return this.getTypedRuleContext(l,0)},F.prototype.typeSpecifier=function(){return this.getTypedRuleContext(Ee,0)},F.prototype.enterRule=function(x){x instanceof f&&x.enterTypeExpression(this)},F.prototype.exitRule=function(x){x instanceof f&&x.exitTypeExpression(this)},i.prototype.expression=function(x){void 0===x&&(x=0);var U=this._ctx,Z=this.state,_e=new l(this,this._ctx,Z);this.enterRecursionRule(_e,2,i.RULE_expression,x);var st=0;try{switch(this.enterOuterAlt(_e,1),this.state=37,this._errHandler.sync(this),this._input.LA(1)){case i.T__15:case i.T__16:case i.T__21:case i.T__22:case i.T__27:case i.T__29:case i.T__31:case i.T__32:case i.T__33:case i.T__34:case i.T__35:case i.T__36:case i.DATETIME:case i.TIME:case i.IDENTIFIER:case i.DELIMITEDIDENTIFIER:case i.STRING:case i.NUMBER:_e=new L(this,_e),this._ctx=_e,this.state=34,this.term();break;case i.T__3:case i.T__4:_e=new y(this,_e),this._ctx=_e,this.state=35,(st=this._input.LA(1))===i.T__3||st===i.T__4?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=36,this.expression(11);break;default:throw new n.error.NoViableAltException(this)}this._ctx.stop=this._input.LT(-1),this.state=79,this._errHandler.sync(this);for(var ut=this._interp.adaptivePredict(this._input,2,this._ctx);2!=ut&&ut!=n.atn.ATN.INVALID_ALT_NUMBER;){if(1===ut)switch(null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=77,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,1,this._ctx)){case 1:if(_e=new T(this,new l(this,U,Z)),this.pushNewRecursionContext(_e,2,i.RULE_expression),this.state=39,!this.precpred(this._ctx,10))throw new n.error.FailedPredicateException(this,"this.precpred(this._ctx, 10)");this.state=40,0==(-32&(st=this._input.LA(1)))&&0!=(1<{const n=p(4981),f=p(4621).a,v=p(8974)._,m=p(4303).q;var o=function(u){return n.error.ErrorListener.call(this),this.errors=u,this};(o.prototype=Object.create(n.error.ErrorListener.prototype)).constructor=o,o.prototype.syntaxError=function(u,h,r,s,i,c){this.errors.push([u,h,r,s,i,c])},ye.exports={parse:function(u){var h=new n.InputStream(u),r=new f(h),s=new n.CommonTokenStream(r),i=new v(s);i.buildParseTrees=!0;var c=[],l=new o(c);r.removeErrorListeners(),r.addErrorListener(l),i.removeErrorListeners(),i.addErrorListener(l);var g=i.entireExpression();function y(){return m.call(this),this}(y.prototype=Object.create(m.prototype)).constructor=y;var T,E={},D=[E];for(let A of Object.keys(m.prototype))A.startsWith("enter")?y.prototype[A]=function(S){let M=D[D.length-1];(T={type:A.slice(5)}).text=S.getText(),M.children||(M.children=[]),M.children.push(T),D.push(T),T.terminalNodeText=[];for(let b of S.children)b.symbol&&T.terminalNodeText.push(b.getText())}:A.startsWith("exit")&&(y.prototype[A]=function(){D.pop()});var O=new y;if(n.tree.ParseTreeWalker.DEFAULT.walk(O,g),c.length>0){let A=[];for(let S=0,M=c.length;S{const ye=Function.prototype.call.bind(Array.prototype.slice);Number.isInteger=Number.isInteger||function(j){return"number"==typeof j&&isFinite(j)&&Math.floor(j)===j},String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(j,p){return this.indexOf(j,p=p||0)===p}}),String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{value:function(j,p){var n=this.toString();(void 0===p||p>n.length)&&(p=n.length);var f=n.indexOf(j,p-=j.length);return-1!==f&&f===p}}),String.prototype.includes||Object.defineProperty(String.prototype,"includes",{value:function(){return-1!==this.indexOf.apply(this,arguments)}}),Object.assign||Object.defineProperty(Object,"assign",{value:function(j){if(null==j)throw new TypeError("Cannot convert undefined or null to object");return ye(arguments,1).reduce(function(p,n){return Object.keys(Object(n)).forEach(function(f){p[f]=n[f]}),p},Object(j))}})},9835:(ye,j,p)=>{const n=p(4569),f=p(9502),v={},m={};v.indexOf=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.indexOf(h)},v.substring=function(u,h,r){const s=f.singleton(u,"String");return n.isEmpty(s)||n.isEmpty(h)||h<0||h>=s.length?[]:void 0===r||n.isEmpty(r)?s.substring(h):s.substring(h,h+r)},v.startsWith=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.startsWith(h)},v.endsWith=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.endsWith(h)},v.containsFn=function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:r.includes(h)},v.upper=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.toUpperCase()},v.lower=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.toLowerCase()},v.matches=!1===new RegExp("").dotAll?function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:new RegExp(h,"s").test(r)}:function(u,h){const r=f.singleton(u,"String");return n.isEmpty(h)||n.isEmpty(r)?[]:new RegExp(function(u){return m[u]||(m[u]=u.replace(/\./g,(h,r,s)=>{const c=s.substr(0,r).replace(/\\\\/g,"").replace(/\\[\][]/g,""),l="\\"===c[c.length-1],g=c.lastIndexOf("["),y=c.lastIndexOf("]");return l||g>y?".":"[^]"})),m[u]}(h)).test(r)},v.replace=function(u,h,r){const s=f.singleton(u,"String");if(n.isEmpty(h)||n.isEmpty(r)||n.isEmpty(s))return[];const i=new RegExp(n.escapeStringForRegExp(h),"g");return s.replace(i,r)},v.replaceMatches=function(u,h,r){const s=f.singleton(u,"String");if(n.isEmpty(h)||n.isEmpty(r)||n.isEmpty(s))return[];const i=new RegExp(h,"g");return s.replace(i,r)},v.length=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.length},v.toChars=function(u){const h=f.singleton(u,"String");return n.isEmpty(h)?[]:h.split("")},ye.exports=v},2563:(ye,j,p)=>{const n=p(8091),f=p(1334).ng.getInstance(),v=p(5192);let o="[0-9][0-9](\\:[0-9][0-9](\\:[0-9][0-9](\\.[0-9]+)?)?)?(Z|(\\+|-)[0-9][0-9]\\:[0-9][0-9])?",d=new RegExp("^T?"+o+"$"),u=new RegExp("^[0-9][0-9][0-9][0-9](-[0-9][0-9](-[0-9][0-9](T"+o+")?)?)?Z?$");class h{equals(){return!1}equivalentTo(){return!1}toString(){return this.asStr?this.asStr:super.toString()}toJSON(){return this.toString()}compare(){throw"Not implemented"}}class r extends h{constructor(A,S){super(),this.asStr=A+" "+S,this.value=A,this.unit=S}equals(A){if(!(A instanceof this.constructor))return!1;if(this.unit===A.unit)return v.isEqual(this.value,A.value);const S=this._compareYearsAndMonths(A);if(S)return S.isEqual;const M=r.toUcumQuantity(this.value,this.unit),I=r.toUcumQuantity(A.value,A.unit),b=f.convertUnitTo(I.unit,I.value,M.unit);return"succeeded"===b.status&&v.isEqual(M.value,b.toVal)}equivalentTo(A){if(!(A instanceof this.constructor))return!1;if(this.unit===A.unit)return v.isEquivalent(this.value,A.value);const S=r.getEquivalentUcumUnitCode(this.unit),M=r.getEquivalentUcumUnitCode(A.unit),I=f.convertUnitTo(M,A.value,S);return"succeeded"===I.status&&v.isEquivalent(this.value,I.toVal)}_compareYearsAndMonths(A){const S=r._yearMonthConversionFactor[this.unit],M=r._yearMonthConversionFactor[A.unit];return S&&M?{isEqual:v.isEqual(this.value*S,A.value*M)}:null}}const s=/^'|'$/g;r.getEquivalentUcumUnitCode=function(w){return r.mapTimeUnitsToUCUMCode[w]||w.replace(s,"")},r.toUcumQuantity=function(w,A){const S=r._calendarDuration2Seconds[A];return S?{value:S*w,unit:"s"}:{value:w,unit:A.replace(s,"")}},r.convUnitTo=function(w,A,S){const M=r._yearMonthConversionFactor[w],I=r._yearMonthConversionFactor[S];if(M&&I)return new r(M*A/I,S);const b=r._calendarDuration2Seconds[w],L=r._calendarDuration2Seconds[S];if(L){if(b)return new r(b*A/L,S);{const F=f.convertUnitTo(w.replace(/^'|'$/g,""),A,"s");if("succeeded"===F.status)return new r(F.toVal/L,S)}}else{const F=b?f.convertUnitTo("s",b*A,S.replace(/^'|'$/g,"")):f.convertUnitTo(w.replace(/^'|'$/g,""),A,S.replace(/^'|'$/g,""));if("succeeded"===F.status)return new r(F.toVal,S)}return null},r._calendarDuration2Seconds={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001,year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,minute:60,second:1,millisecond:.001},r._yearMonthConversionFactor={years:12,months:1,year:12,month:1},r.arithmeticDurationUnits={years:"year",months:"month",weeks:"week",days:"day",hours:"hour",minutes:"minute",seconds:"second",milliseconds:"millisecond",year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",millisecond:"millisecond","'wk'":"week","'d'":"day","'h'":"hour","'min'":"minute","'s'":"second","'ms'":"millisecond"},r.mapUCUMCodeToTimeUnits={a:"year",mo:"month",wk:"week",d:"day",h:"hour",min:"minute",s:"second",ms:"millisecond"},r.mapTimeUnitsToUCUMCode=Object.keys(r.mapUCUMCodeToTimeUnits).reduce(function(w,A){return w[r.mapUCUMCodeToTimeUnits[A]]=A,w[r.mapUCUMCodeToTimeUnits[A]+"s"]=A,w},{});class i extends h{constructor(A){super(),this.asStr=A}plus(A){let M=r.arithmeticDurationUnits[A.unit];if(!M)throw new Error("For date/time arithmetic, the unit of the quantity must be one of the following time-based units: "+Object.keys(r.arithmeticDurationUnits));const I=this.constructor,b=I._timeUnitToDatePrecision[M];if(void 0===b)throw new Error("Unsupported unit for +. The unit should be one of "+Object.keys(I._timeUnitToDatePrecision).join(", ")+".");let L=A.value;const F=I===l;if((F?b<2:b<5)&&(L=Math.trunc(L)),this._getPrecision()2?new c(L)._getTimeParts():this._getTimeParts(),Y=I>2?new c(F)._getTimeParts():A._getTimeParts(),Q=0;Q<=b&&!1!==S;++Q)S=ne[Q]==Y[Q];S&&(S=void 0)}}else S=!1;return S}equivalentTo(A){var S=A instanceof this.constructor;return S&&(S=this._getPrecision()==A._getPrecision())&&(S=this._getDateObj().getTime()==A._getDateObj().getTime()),S}compare(A){var S=this._getPrecision(),M=A._getPrecision(),I=S<=M?this._getDateObj().getTime():this._dateAtPrecision(M).getTime(),b=M<=S?A._getDateObj().getTime():A._dateAtPrecision(S).getTime();return S!==M&&I===b?null:I-b}_getPrecision(){return void 0===this.precision&&this._getMatchData(),this.precision}_getMatchData(A,S){if(void 0===this.timeMatchData&&(this.timeMatchData=this.asStr.match(A),this.timeMatchData))for(let M=S;M>=0&&void 0===this.precision;--M)this.timeMatchData[M]&&(this.precision=M);return this.timeMatchData}_getTimeParts(A){var S=[];S=[A[0]];var M=A[4];if(M){let F=S[0];S[0]=F.slice(0,F.length-M.length)}var I=A[1];if(I){let F=S[0];S[0]=F.slice(0,F.length-I.length),S[1]=I;var b=A[2];if(b){S[1]=I.slice(0,I.length-b.length),S[2]=b;var L=A[3];L&&(S[2]=b.slice(0,b.length-L.length),S[3]=L)}}return S}_getDateObj(){if(!this.dateObj){var A=this._getPrecision();this.dateObj=this._dateAtPrecision(A)}return this.dateObj}_createDate(A,S,M,I,b,L,F,ne){var Y=new Date(A,S,M,I,b,L,F);if(ne){var Q=Y.getTimezoneOffset(),te=0;if("Z"!=ne){var $=ne.split(":"),J=parseInt($[0]);te=parseInt($[1]),J<0&&(te=-te),te+=60*J}Y=n(Y,-Q-te)}return Y}}i.timeUnitToAddFn={year:p(2486),month:p(4992),week:p(5213),day:p(6937),hour:p(2500),minute:p(8091),second:p(734),millisecond:p(7862)};let c=(()=>{class w extends i{constructor(S){super(S)}compare(S){if(!(S instanceof w))throw"Invalid comparison of a DateTime with something else";return super.compare(S)}_getMatchData(){return super._getMatchData(u,5)}_getTimeParts(){if(!this.timeParts){let M=this._getMatchData(),I=M[0];this.timeParts=[I];var S=M[1];if(S){this.timeParts[0]=I.slice(0,I.length-S.length),this.timeParts[1]=S;let b=M[2];if(b){this.timeParts[1]=S.slice(0,S.length-b.length),this.timeParts[2]=b;let L=M[3];L&&(this.timeParts[2]=b.slice(0,b.length-L.length),"T"===L[0]&&(M[3]=L.slice(1)),this.timeParts=this.timeParts.concat(super._getTimeParts(M.slice(3))))}}}return this.timeParts}_dateAtPrecision(S){var M=this._getTimeParts(),I=this._getMatchData()[7],b=this._getPrecision(),L=parseInt(M[0]),F=b>0?parseInt(M[1].slice(1))-1:0,ne=b>1?parseInt(M[2].slice(1)):1,Y=b>2?parseInt(M[3]):0,Q=b>3?parseInt(M[4].slice(1)):0,te=b>4?parseInt(M[5].slice(1)):0,$=M.length>6?parseInt(M[6].slice(1)):0,J=this._createDate(L,F,ne,Y,Q,te,$,I);return S0?J.getMonth():0,ne=S>1?J.getDate():1,Y=S>2?J.getHours():0,Q=S>3?J.getMinutes():0,J=new Date(L,F,ne,Y,Q)),J}}return w.checkString=function(A){let S=new w(A);return S._getMatchData()||(S=null),S},w._timeUnitToDatePrecision={year:0,month:1,week:2,day:2,hour:3,minute:4,second:5,millisecond:6},w._datePrecisionToTimeUnit=["year","month","day","hour","minute","second","millisecond"],w})(),l=(()=>{class w extends i{constructor(S){"T"==S[0]&&(S=S.slice(1)),super(S)}compare(S){if(!(S instanceof w))throw"Invalid comparison of a time with something else";return super.compare(S)}_dateAtPrecision(S){var M=this._getTimeParts(),I=this._getMatchData()[4],b=this._getPrecision(),L=2010,Y=parseInt(M[0]),Q=b>0?parseInt(M[1].slice(1)):0,te=b>1?parseInt(M[2].slice(1)):0,$=M.length>3?parseInt(M[3].slice(1)):0,J=this._createDate(L,0,1,Y,Q,te,$,I);return I&&(J.setYear(L),J.setMonth(0),J.setDate(1)),S0?J.getMinutes():0,J=new Date(L,0,1,Y,Q)),J}_getMatchData(){return super._getMatchData(d,2)}_getTimeParts(){return this.timeParts||(this.timeParts=super._getTimeParts(this._getMatchData())),this.timeParts}}return w.checkString=function(A){let S=new w(A);return S._getMatchData()||(S=null),S},w._timeUnitToDatePrecision={hour:0,minute:1,second:2,millisecond:3},w._datePrecisionToTimeUnit=["hour","minute","second","millisecond"],w})();function g(w,A){var S=w;return 3===A&&w<100&&(S="0"+w),w<10&&(S="0"+S),S}c.isoDateTime=function(w,A){void 0===A&&(A=6);var S=""+w.getFullYear();if(A>0&&(S+="-"+g(w.getMonth()+1),A>1&&(S+="-"+g(w.getDate()),A>2&&(S+="T"+g(w.getHours()),A>3&&(S+=":"+g(w.getMinutes()),A>4&&(S+=":"+g(w.getSeconds()),w.getMilliseconds()&&(S+="."+g(w.getMilliseconds(),3))))))),A>2){var M=w.getTimezoneOffset(),I=M<0?"+":"-",b=(M=Math.abs(M))%60;S+=I+g((M-b)/60)+":"+g(b)}return S},c.isoDate=function(w,A){return(void 0===A||A>2)&&(A=2),c.isoDateTime(w,A)};class y{constructor(A,S,M){A.resourceType&&(S=A.resourceType),this.path=S,this.data=function(w,A){return"Quantity"===A&&"http://unitsofmeasure.org"===w.system&&"number"==typeof w.value&&"string"==typeof w.code&&(w=new r(w.value,r.mapUCUMCodeToTimeUnits[w.code]||"'"+w.code+"'")),w}(A,S),this._data=M||{}}getTypeInfo(){const A=T.FHIR;return-1===this.path.indexOf(".")?new T({namespace:A,name:this.path}):T.createByValueInNamespace({namespace:A,value:this.data})}toJSON(){return JSON.stringify(this.data)}}y.makeResNode=function(w,A,S){return w instanceof y?w:new y(w,A,S)};let T=(()=>{class w{constructor({name:S,namespace:M}){this.name=S,this.namespace=M}is(S){return S instanceof w&&this.name===S.name&&(!this.namespace||!S.namespace||this.namespace===S.namespace)}}return w.System="System",w.FHIR="FHIR",w.createByValueInNamespace=function({namespace:A,value:S}){let M=typeof S;return Number.isInteger(S)?M="integer":"number"===M?M="decimal":S instanceof c?M="dateTime":S instanceof l?M="time":S instanceof r&&(M="Quantity"),A===w.System&&(M=M.replace(/^\w/,I=>I.toUpperCase())),new w({namespace:A,name:M})},w.fromValue=function(A){return A instanceof y?A.getTypeInfo():w.createByValueInNamespace({namespace:w.System,value:A})},w})();ye.exports={FP_Type:h,FP_TimeBase:i,FP_DateTime:c,FP_Time:l,FP_Quantity:r,timeRE:d,dateTimeRE:u,ResourceNode:y,TypeInfo:T,typeFn:function(w){return w.map(A=>T.fromValue(A))},isFn:function(w,A){if(0===w.length)return[];if(w.length>1)throw new Error("Expected singleton on left side of is, got "+JSON.stringify(w));return T.fromValue(w[0]).is(A)}}},4569:(ye,j,p)=>{var n={},f=p(2563);let{ResourceNode:v}=f;n.raiseError=function(m,o){throw(o=o?o+": ":"")+m},n.assertAtMostOne=function(m,o){m.length>1&&n.raiseError("Was expecting no more than one element but got "+JSON.stringify(m),o)},n.assertType=function(m,o,d){let u=this.valData(m);if(o.indexOf(typeof u)<0){let h=o.length>1?"one of "+o.join(", "):o[0];n.raiseError("Found type '"+typeof m+"' but was expecting "+h,d)}return u},n.isEmpty=function(m){return Array.isArray(m)&&0==m.length},n.isSome=function(m){return null!=m&&!n.isEmpty(m)},n.isTrue=function(m){return null!=m&&(!0===m||1==m.length&&!0===m[0])},n.isFalse=function(m){return null!=m&&(!1===m||1==m.length&&!1===m[0])},n.isCapitalized=function(m){return m&&m[0]===m[0].toUpperCase()},n.flatten=function(m){return m.reduce(function(o,d){return Array.isArray(d)?o=o.concat(d):o.push(d),o},[])},n.arraify=function(m){return Array.isArray(m)?m:n.isSome(m)?[m]:[]},n.valData=function(m){return m instanceof v?m.data:m},n.escapeStringForRegExp=function(m){return m.replace(/[-[\]{}()*+?.,\\/^$|#\s]/g,"\\$&")},ye.exports=n},4770:ye=>{"use strict";ye.exports=function(j,p){for(var n={},f=Object.keys(j),v=Array.isArray(p),m=0;m{function j(Qe){return Qe instanceof Map?Qe.clear=Qe.delete=Qe.set=function(){throw new Error("map is read-only")}:Qe instanceof Set&&(Qe.add=Qe.clear=Qe.delete=function(){throw new Error("set is read-only")}),Object.freeze(Qe),Object.getOwnPropertyNames(Qe).forEach(function(mt){var Vt=Qe[mt];"object"==typeof Vt&&!Object.isFrozen(Vt)&&j(Vt)}),Qe}var p=j;p.default=j;class f{constructor(mt){void 0===mt.data&&(mt.data={}),this.data=mt.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function v(Qe){return Qe.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function m(Qe,...mt){const Vt=Object.create(null);for(const qt in Qe)Vt[qt]=Qe[qt];return mt.forEach(function(qt){for(const Ne in qt)Vt[Ne]=qt[Ne]}),Vt}const d=Qe=>!!Qe.kind;class u{constructor(mt,Vt){this.buffer="",this.classPrefix=Vt.classPrefix,mt.walk(this)}addText(mt){this.buffer+=v(mt)}openNode(mt){if(!d(mt))return;let Vt=mt.kind;mt.sublanguage||(Vt=`${this.classPrefix}${Vt}`),this.span(Vt)}closeNode(mt){!d(mt)||(this.buffer+="")}value(){return this.buffer}span(mt){this.buffer+=``}}class h{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(mt){this.top.children.push(mt)}openNode(mt){const Vt={kind:mt,children:[]};this.add(Vt),this.stack.push(Vt)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(mt){return this.constructor._walk(mt,this.rootNode)}static _walk(mt,Vt){return"string"==typeof Vt?mt.addText(Vt):Vt.children&&(mt.openNode(Vt),Vt.children.forEach(qt=>this._walk(mt,qt)),mt.closeNode(Vt)),mt}static _collapse(mt){"string"!=typeof mt&&(!mt.children||(mt.children.every(Vt=>"string"==typeof Vt)?mt.children=[mt.children.join("")]:mt.children.forEach(Vt=>{h._collapse(Vt)})))}}class r extends h{constructor(mt){super(),this.options=mt}addKeyword(mt,Vt){""!==mt&&(this.openNode(Vt),this.addText(mt),this.closeNode())}addText(mt){""!==mt&&this.add(mt)}addSublanguage(mt,Vt){const qt=mt.root;qt.kind=Vt,qt.sublanguage=!0,this.add(qt)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function i(Qe){return Qe?"string"==typeof Qe?Qe:Qe.source:null}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,O="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",S="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",L={begin:"\\\\[\\s\\S]",relevance:0},F={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[L]},ne={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[L]},Y={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(Qe,mt,Vt={}){const qt=m({className:"comment",begin:Qe,end:mt,contains:[]},Vt);return qt.contains.push(Y),qt.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),qt},te=Q("//","$"),$=Q("/\\*","\\*/"),J=Q("#","$");var tt=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:O,UNDERSCORE_IDENT_RE:w,NUMBER_RE:A,C_NUMBER_RE:S,BINARY_NUMBER_RE:M,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(Qe={})=>{const mt=/^#![ ]*\//;return Qe.binary&&(Qe.begin=function(...Qe){return Qe.map(Vt=>i(Vt)).join("")}(mt,/.*\b/,Qe.binary,/\b.*/)),m({className:"meta",begin:mt,end:/$/,relevance:0,"on:begin":(Vt,qt)=>{0!==Vt.index&&qt.ignoreMatch()}},Qe)},BACKSLASH_ESCAPE:L,APOS_STRING_MODE:F,QUOTE_STRING_MODE:ne,PHRASAL_WORDS_MODE:Y,COMMENT:Q,C_LINE_COMMENT_MODE:te,C_BLOCK_COMMENT_MODE:$,HASH_COMMENT_MODE:J,NUMBER_MODE:{className:"number",begin:A,relevance:0},C_NUMBER_MODE:{className:"number",begin:S,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:M,relevance:0},CSS_NUMBER_MODE:{className:"number",begin:A+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[L,{begin:/\[/,end:/\]/,relevance:0,contains:[L]}]}]},TITLE_MODE:{className:"title",begin:O,relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:w,relevance:0},METHOD_GUARD:{begin:"\\.\\s*"+w,relevance:0},END_SAME_AS_BEGIN:function(Qe){return Object.assign(Qe,{"on:begin":(mt,Vt)=>{Vt.data._beginMatch=mt[1]},"on:end":(mt,Vt)=>{Vt.data._beginMatch!==mt[1]&&Vt.ignoreMatch()}})}});function at(Qe,mt){"."===Qe.input[Qe.index-1]&&mt.ignoreMatch()}function ft(Qe,mt){!mt||!Qe.beginKeywords||(Qe.begin="\\b("+Qe.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Qe.__beforeBegin=at,Qe.keywords=Qe.keywords||Qe.beginKeywords,delete Qe.beginKeywords,void 0===Qe.relevance&&(Qe.relevance=0))}function vt(Qe,mt){!Array.isArray(Qe.illegal)||(Qe.illegal=function(...Qe){return"("+Qe.map(Vt=>i(Vt)).join("|")+")"}(...Qe.illegal))}function yt(Qe,mt){if(Qe.match){if(Qe.begin||Qe.end)throw new Error("begin & end are not supported with match");Qe.begin=Qe.match,delete Qe.match}}function ot(Qe,mt){void 0===Qe.relevance&&(Qe.relevance=1)}const _t=["of","and","for","in","not","or","if","then","parent","list","value"];function Tt(Qe,mt,Vt="keyword"){const qt={};return"string"==typeof Qe?Ne(Vt,Qe.split(" ")):Array.isArray(Qe)?Ne(Vt,Qe):Object.keys(Qe).forEach(function(Se){Object.assign(qt,Tt(Qe[Se],mt,Se))}),qt;function Ne(Se,ee){mt&&(ee=ee.map(re=>re.toLowerCase())),ee.forEach(function(re){const Me=re.split("|");qt[Me[0]]=[Se,Bt(Me[0],Me[1])]})}}function Bt(Qe,mt){return mt?Number(mt):function(Qe){return _t.includes(Qe.toLowerCase())}(Qe)?0:1}function Ee(Qe,{}){function Vt(re,Me){return new RegExp(i(re),"m"+(Qe.case_insensitive?"i":"")+(Me?"g":""))}class qt{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Me,ze){ze.position=this.position++,this.matchIndexes[this.matchAt]=ze,this.regexes.push([ze,Me]),this.matchAt+=function(Qe){return new RegExp(Qe.toString()+"|").exec("").length-1}(Me)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const Me=this.regexes.map(ze=>ze[1]);this.matcherRe=Vt(function(Qe,mt="|"){let Vt=0;return Qe.map(qt=>{Vt+=1;const Ne=Vt;let Se=i(qt),ee="";for(;Se.length>0;){const re=E.exec(Se);if(!re){ee+=Se;break}ee+=Se.substring(0,re.index),Se=Se.substring(re.index+re[0].length),"\\"===re[0][0]&&re[1]?ee+="\\"+String(Number(re[1])+Ne):(ee+=re[0],"("===re[0]&&Vt++)}return ee}).map(qt=>`(${qt})`).join(mt)}(Me),!0),this.lastIndex=0}exec(Me){this.matcherRe.lastIndex=this.lastIndex;const ze=this.matcherRe.exec(Me);if(!ze)return null;const It=ze.findIndex((cn,An)=>An>0&&void 0!==cn),Qt=this.matchIndexes[It];return ze.splice(0,It),Object.assign(ze,Qt)}}class Ne{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Me){if(this.multiRegexes[Me])return this.multiRegexes[Me];const ze=new qt;return this.rules.slice(Me).forEach(([It,Qt])=>ze.addRule(It,Qt)),ze.compile(),this.multiRegexes[Me]=ze,ze}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(Me,ze){this.rules.push([Me,ze]),"begin"===ze.type&&this.count++}exec(Me){const ze=this.getMatcher(this.regexIndex);ze.lastIndex=this.lastIndex;let It=ze.exec(Me);if(this.resumingScanAtSamePosition()&&(!It||It.index!==this.lastIndex)){const Qt=this.getMatcher(0);Qt.lastIndex=this.lastIndex+1,It=Qt.exec(Me)}return It&&(this.regexIndex+=It.position+1,this.regexIndex===this.count&&this.considerAll()),It}}if(Qe.compilerExtensions||(Qe.compilerExtensions=[]),Qe.contains&&Qe.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Qe.classNameAliases=m(Qe.classNameAliases||{}),function ee(re,Me){const ze=re;if(re.isCompiled)return ze;[yt].forEach(Qt=>Qt(re,Me)),Qe.compilerExtensions.forEach(Qt=>Qt(re,Me)),re.__beforeBegin=null,[ft,vt,ot].forEach(Qt=>Qt(re,Me)),re.isCompiled=!0;let It=null;if("object"==typeof re.keywords&&(It=re.keywords.$pattern,delete re.keywords.$pattern),re.keywords&&(re.keywords=Tt(re.keywords,Qe.case_insensitive)),re.lexemes&&It)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return It=It||re.lexemes||/\w+/,ze.keywordPatternRe=Vt(It,!0),Me&&(re.begin||(re.begin=/\B|\b/),ze.beginRe=Vt(re.begin),re.endSameAsBegin&&(re.end=re.begin),!re.end&&!re.endsWithParent&&(re.end=/\B|\b/),re.end&&(ze.endRe=Vt(re.end)),ze.terminatorEnd=i(re.end)||"",re.endsWithParent&&Me.terminatorEnd&&(ze.terminatorEnd+=(re.end?"|":"")+Me.terminatorEnd)),re.illegal&&(ze.illegalRe=Vt(re.illegal)),re.contains||(re.contains=[]),re.contains=[].concat(...re.contains.map(function(Qt){return function(Qe){return Qe.variants&&!Qe.cachedVariants&&(Qe.cachedVariants=Qe.variants.map(function(mt){return m(Qe,{variants:null},mt)})),Qe.cachedVariants?Qe.cachedVariants:fe(Qe)?m(Qe,{starts:Qe.starts?m(Qe.starts):null}):Object.isFrozen(Qe)?m(Qe):Qe}("self"===Qt?re:Qt)})),re.contains.forEach(function(Qt){ee(Qt,ze)}),re.starts&&ee(re.starts,Me),ze.matcher=function(re){const Me=new Ne;return re.contains.forEach(ze=>Me.addRule(ze.begin,{rule:ze,type:"begin"})),re.terminatorEnd&&Me.addRule(re.terminatorEnd,{type:"end"}),re.illegal&&Me.addRule(re.illegal,{type:"illegal"}),Me}(ze),ze}(Qe)}function fe(Qe){return!!Qe&&(Qe.endsWithParent||fe(Qe.starts))}function Z(Qe){const mt={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!Qe.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,v(this.code);let qt={};return this.autoDetect?(qt=Qe.highlightAuto(this.code),this.detectedLanguage=qt.language):(qt=Qe.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),qt.value},autoDetect(){return!this.language||function(Qe){return Boolean(Qe||""===Qe)}(this.autodetect)},ignoreIllegals:()=>!0},render(qt){return qt("pre",{},[qt("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:mt,VuePlugin:{install(qt){qt.component("highlightjs",mt)}}}}const _e={"after:highlightElement":({el:Qe,result:mt,text:Vt})=>{const qt=$e(Qe);if(!qt.length)return;const Ne=document.createElement("div");Ne.innerHTML=mt.value,mt.value=function(Qe,mt,Vt){let qt=0,Ne="";const Se=[];function ee(){return Qe.length&&mt.length?Qe[0].offset!==mt[0].offset?Qe[0].offset"}function Me(It){Ne+=""}function ze(It){("start"===It.event?re:Me)(It.node)}for(;Qe.length||mt.length;){let It=ee();if(Ne+=v(Vt.substring(qt,It[0].offset)),qt=It[0].offset,It===Qe){Se.reverse().forEach(Me);do{ze(It.splice(0,1)[0]),It=ee()}while(It===Qe&&It.length&&It[0].offset===qt);Se.reverse().forEach(re)}else"start"===It[0].event?Se.push(It[0].node):Se.pop(),ze(It.splice(0,1)[0])}return Ne+v(Vt.substr(qt))}(qt,$e(Ne),Vt)}};function Be(Qe){return Qe.nodeName.toLowerCase()}function $e(Qe){const mt=[];return function Vt(qt,Ne){for(let Se=qt.firstChild;Se;Se=Se.nextSibling)3===Se.nodeType?Ne+=Se.nodeValue.length:1===Se.nodeType&&(mt.push({event:"start",offset:Ne,node:Se}),Ne=Vt(Se,Ne),Be(Se).match(/br|hr|img|input/)||mt.push({event:"stop",offset:Ne,node:Se}));return Ne}(Qe,0),mt}const ut={},St=Qe=>{console.error(Qe)},Xt=(Qe,...mt)=>{console.log(`WARN: ${Qe}`,...mt)},tn=(Qe,mt)=>{ut[`${Qe}/${mt}`]||(console.log(`Deprecated as of ${Qe}. ${mt}`),ut[`${Qe}/${mt}`]=!0)},Dt=v,Kt=m,et=Symbol("nomatch");var Lt=function(Qe){const mt=Object.create(null),Vt=Object.create(null),qt=[];let Ne=!0;const Se=/(^(<[^>]+>|\t|)+|\n)/gm,ee="Could not find the language '{}', did you forget to load/include a language module?",re={disableAutodetect:!0,name:"Plain text",contains:[]};let Me={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:r};function ze(Ft){return Me.noHighlightRe.test(Ft)}function Qt(Ft,Ht,Zt,an){let Tn="",zn="";"object"==typeof Ht?(Tn=Ft,Zt=Ht.ignoreIllegals,zn=Ht.language,an=void 0):(tn("10.7.0","highlight(lang, code, ...args) has been deprecated."),tn("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),zn=Ft,Tn=Ht);const $n={code:Tn,language:zn};Pe("before:highlight",$n);const ti=$n.result?$n.result:cn($n.language,$n.code,Zt,an);return ti.code=$n.code,Pe("after:highlight",ti),ti}function cn(Ft,Ht,Zt,an){function Tn(gn,yn){const Sn=Ui.case_insensitive?yn[0].toLowerCase():yn[0];return Object.prototype.hasOwnProperty.call(gn.keywords,Sn)&&gn.keywords[Sn]}function ti(){null!=Rn.subLanguage?function(){if(""===Fn)return;let gn=null;if("string"==typeof Rn.subLanguage){if(!mt[Rn.subLanguage])return void oi.addText(Fn);gn=cn(Rn.subLanguage,Fn,!0,qi[Rn.subLanguage]),qi[Rn.subLanguage]=gn.top}else gn=lt(Fn,Rn.subLanguage.length?Rn.subLanguage:null);Rn.relevance>0&&($i+=gn.relevance),oi.addSublanguage(gn.emitter,gn.language)}():function(){if(!Rn.keywords)return void oi.addText(Fn);let gn=0;Rn.keywordPatternRe.lastIndex=0;let yn=Rn.keywordPatternRe.exec(Fn),Sn="";for(;yn;){Sn+=Fn.substring(gn,yn.index);const Wn=Tn(Rn,yn);if(Wn){const[Ri,Li]=Wn;oi.addText(Sn),Sn="",$i+=Li,Ri.startsWith("_")?Sn+=yn[0]:oi.addKeyword(yn[0],Ui.classNameAliases[Ri]||Ri)}else Sn+=yn[0];gn=Rn.keywordPatternRe.lastIndex,yn=Rn.keywordPatternRe.exec(Fn)}Sn+=Fn.substr(gn),oi.addText(Sn)}(),Fn=""}function jn(gn){return gn.className&&oi.openNode(Ui.classNameAliases[gn.className]||gn.className),Rn=Object.create(gn,{parent:{value:Rn}}),Rn}function Qn(gn,yn,Sn){let Wn=function(Qe,mt){const Vt=Qe&&Qe.exec(mt);return Vt&&0===Vt.index}(gn.endRe,Sn);if(Wn){if(gn["on:end"]){const Ri=new f(gn);gn["on:end"](yn,Ri),Ri.isMatchIgnored&&(Wn=!1)}if(Wn){for(;gn.endsParent&&gn.parent;)gn=gn.parent;return gn}}if(gn.endsWithParent)return Qn(gn.parent,yn,Sn)}function kn(gn){return 0===Rn.matcher.regexIndex?(Fn+=gn[0],1):(ur=!0,0)}function Zi(gn){const yn=gn[0],Sn=Ht.substr(gn.index),Wn=Qn(Rn,gn,Sn);if(!Wn)return et;const Ri=Rn;Ri.skip?Fn+=yn:(Ri.returnEnd||Ri.excludeEnd||(Fn+=yn),ti(),Ri.excludeEnd&&(Fn=yn));do{Rn.className&&oi.closeNode(),!Rn.skip&&!Rn.subLanguage&&($i+=Rn.relevance),Rn=Rn.parent}while(Rn!==Wn.parent);return Wn.starts&&(Wn.endSameAsBegin&&(Wn.starts.endRe=Wn.endRe),jn(Wn.starts)),Ri.returnEnd?0:yn.length}let pi={};function Gi(gn,yn){const Sn=yn&&yn[0];if(Fn+=gn,null==Sn)return ti(),0;if("begin"===pi.type&&"end"===yn.type&&pi.index===yn.index&&""===Sn){if(Fn+=Ht.slice(yn.index,yn.index+1),!Ne){const Wn=new Error("0 width match regex");throw Wn.languageName=Ft,Wn.badRule=pi.rule,Wn}return 1}if(pi=yn,"begin"===yn.type)return function(gn){const yn=gn[0],Sn=gn.rule,Wn=new f(Sn),Ri=[Sn.__beforeBegin,Sn["on:begin"]];for(const Li of Ri)if(Li&&(Li(gn,Wn),Wn.isMatchIgnored))return kn(yn);return Sn&&Sn.endSameAsBegin&&(Sn.endRe=function(Qe){return new RegExp(Qe.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}(yn)),Sn.skip?Fn+=yn:(Sn.excludeBegin&&(Fn+=yn),ti(),!Sn.returnBegin&&!Sn.excludeBegin&&(Fn=yn)),jn(Sn),Sn.returnBegin?0:yn.length}(yn);if("illegal"===yn.type&&!Zt){const Wn=new Error('Illegal lexeme "'+Sn+'" for mode "'+(Rn.className||"")+'"');throw Wn.mode=Rn,Wn}if("end"===yn.type){const Wn=Zi(yn);if(Wn!==et)return Wn}if("illegal"===yn.type&&""===Sn)return 1;if(Gn>1e5&&Gn>3*yn.index)throw new Error("potential infinite loop, way more iterations than matches");return Fn+=Sn,Sn.length}const Ui=Ze(Ft);if(!Ui)throw St(ee.replace("{}",Ft)),new Error('Unknown language: "'+Ft+'"');const tr=Ee(Ui,{plugins:qt});let bi="",Rn=an||tr;const qi={},oi=new Me.__emitter(Me);!function(){const gn=[];for(let yn=Rn;yn!==Ui;yn=yn.parent)yn.className&&gn.unshift(yn.className);gn.forEach(yn=>oi.openNode(yn))}();let Fn="",$i=0,mi=0,Gn=0,ur=!1;try{for(Rn.matcher.considerAll();;){Gn++,ur?ur=!1:Rn.matcher.considerAll(),Rn.matcher.lastIndex=mi;const gn=Rn.matcher.exec(Ht);if(!gn)break;const Sn=Gi(Ht.substring(mi,gn.index),gn);mi=gn.index+Sn}return Gi(Ht.substr(mi)),oi.closeAllNodes(),oi.finalize(),bi=oi.toHTML(),{relevance:Math.floor($i),value:bi,language:Ft,illegal:!1,emitter:oi,top:Rn}}catch(gn){if(gn.message&&gn.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:gn.message,context:Ht.slice(mi-100,mi+100),mode:gn.mode},sofar:bi,relevance:0,value:Dt(Ht),emitter:oi};if(Ne)return{illegal:!1,relevance:0,value:Dt(Ht),emitter:oi,language:Ft,top:Rn,errorRaised:gn};throw gn}}function lt(Ft,Ht){Ht=Ht||Me.languages||Object.keys(mt);const Zt=function(Ft){const Ht={relevance:0,emitter:new Me.__emitter(Me),value:Dt(Ft),illegal:!1,top:re};return Ht.emitter.addText(Ft),Ht}(Ft),an=Ht.filter(Ze).filter(Re).map(jn=>cn(jn,Ft,!1));an.unshift(Zt);const Tn=an.sort((jn,Qn)=>{if(jn.relevance!==Qn.relevance)return Qn.relevance-jn.relevance;if(jn.language&&Qn.language){if(Ze(jn.language).supersetOf===Qn.language)return 1;if(Ze(Qn.language).supersetOf===jn.language)return-1}return 0}),[zn,$n]=Tn,ti=zn;return ti.second_best=$n,ti}const pt={"before:highlightElement":({el:Ft})=>{Me.useBR&&(Ft.innerHTML=Ft.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightElement":({result:Ft})=>{Me.useBR&&(Ft.value=Ft.value.replace(/\n/g,"
"))}},Ot=/^(<[^>]+>|\t)+/gm,un={"after:highlightElement":({result:Ft})=>{Me.tabReplace&&(Ft.value=Ft.value.replace(Ot,Ht=>Ht.replace(/\t/g,Me.tabReplace)))}};function on(Ft){let Ht=null;const Zt=function(Ft){let Ht=Ft.className+" ";Ht+=Ft.parentNode?Ft.parentNode.className:"";const Zt=Me.languageDetectRe.exec(Ht);if(Zt){const an=Ze(Zt[1]);return an||(Xt(ee.replace("{}",Zt[1])),Xt("Falling back to no-highlight mode for this block.",Ft)),an?Zt[1]:"no-highlight"}return Ht.split(/\s+/).find(an=>ze(an)||Ze(an))}(Ft);if(ze(Zt))return;Pe("before:highlightElement",{el:Ft,language:Zt}),Ht=Ft;const an=Ht.textContent,Tn=Zt?Qt(an,{language:Zt,ignoreIllegals:!0}):lt(an);Pe("after:highlightElement",{el:Ft,result:Tn,text:an}),Ft.innerHTML=Tn.value,function(Ft,Ht,Zt){const an=Ht?Vt[Ht]:Zt;Ft.classList.add("hljs"),an&&Ft.classList.add(an)}(Ft,Zt,Tn.language),Ft.result={language:Tn.language,re:Tn.relevance,relavance:Tn.relevance},Tn.second_best&&(Ft.second_best={language:Tn.second_best.language,re:Tn.second_best.relevance,relavance:Tn.second_best.relevance})}const Yn=()=>{Yn.called||(Yn.called=!0,tn("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(on))};let Oi=!1;function Ni(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(on):Oi=!0}function Ze(Ft){return Ft=(Ft||"").toLowerCase(),mt[Ft]||mt[Vt[Ft]]}function ue(Ft,{languageName:Ht}){"string"==typeof Ft&&(Ft=[Ft]),Ft.forEach(Zt=>{Vt[Zt.toLowerCase()]=Ht})}function Re(Ft){const Ht=Ze(Ft);return Ht&&!Ht.disableAutodetect}function Pe(Ft,Ht){const Zt=Ft;qt.forEach(function(an){an[Zt]&&an[Zt](Ht)})}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",function(){Oi&&Ni()},!1),Object.assign(Qe,{highlight:Qt,highlightAuto:lt,highlightAll:Ni,fixMarkup:function(Ft){return tn("10.2.0","fixMarkup will be removed entirely in v11.0"),tn("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),function(Ft){return Me.tabReplace||Me.useBR?Ft.replace(Se,Ht=>"\n"===Ht?Me.useBR?"
":Ht:Me.tabReplace?Ht.replace(/\t/g,Me.tabReplace):Ht):Ft}(Ft)},highlightElement:on,highlightBlock:function(Ft){return tn("10.7.0","highlightBlock will be removed entirely in v12.0"),tn("10.7.0","Please use highlightElement now."),on(Ft)},configure:function(Ft){Ft.useBR&&(tn("10.3.0","'useBR' will be removed entirely in v11.0"),tn("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Me=Kt(Me,Ft)},initHighlighting:Yn,initHighlightingOnLoad:function(){tn("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Oi=!0},registerLanguage:function(Ft,Ht){let Zt=null;try{Zt=Ht(Qe)}catch(an){if(St("Language definition for '{}' could not be registered.".replace("{}",Ft)),!Ne)throw an;St(an),Zt=re}Zt.name||(Zt.name=Ft),mt[Ft]=Zt,Zt.rawDefinition=Ht.bind(null,Qe),Zt.aliases&&ue(Zt.aliases,{languageName:Ft})},unregisterLanguage:function(Ft){delete mt[Ft];for(const Ht of Object.keys(Vt))Vt[Ht]===Ft&&delete Vt[Ht]},listLanguages:function(){return Object.keys(mt)},getLanguage:Ze,registerAliases:ue,requireLanguage:function(Ft){tn("10.4.0","requireLanguage will be removed entirely in v11."),tn("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const Ht=Ze(Ft);if(Ht)return Ht;throw new Error("The '{}' language is required, but not loaded.".replace("{}",Ft))},autoDetection:Re,inherit:Kt,addPlugin:function(Ft){(function(Ft){Ft["before:highlightBlock"]&&!Ft["before:highlightElement"]&&(Ft["before:highlightElement"]=Ht=>{Ft["before:highlightBlock"](Object.assign({block:Ht.el},Ht))}),Ft["after:highlightBlock"]&&!Ft["after:highlightElement"]&&(Ft["after:highlightElement"]=Ht=>{Ft["after:highlightBlock"](Object.assign({block:Ht.el},Ht))})})(Ft),qt.push(Ft)},vuePlugin:Z(Qe).VuePlugin}),Qe.debugMode=function(){Ne=!1},Qe.safeMode=function(){Ne=!0},Qe.versionString="10.7.2";for(const Ft in tt)"object"==typeof tt[Ft]&&p(tt[Ft]);return Object.assign(Qe,tt),Qe.addPlugin(pt),Qe.addPlugin(_e),Qe.addPlugin(un),Qe}({});ye.exports=Lt},7652:ye=>{ye.exports=function(p){const n={literal:"true false null"},f=[p.C_LINE_COMMENT_MODE,p.C_BLOCK_COMMENT_MODE],v=[p.QUOTE_STRING_MODE,p.C_NUMBER_MODE],m={end:",",endsWithParent:!0,excludeEnd:!0,contains:v,keywords:n},o={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[p.BACKSLASH_ESCAPE],illegal:"\\n"},p.inherit(m,{begin:/:/})].concat(f),illegal:"\\S"},d={begin:"\\[",end:"\\]",contains:[p.inherit(m)],illegal:"\\S"};return v.push(o,d),f.forEach(function(u){v.push(u)}),{name:"JSON",contains:v,keywords:n,illegal:"\\S"}}},1891:ye=>{function j(o){return o?"string"==typeof o?o:o.source:null}function p(o){return f("(?=",o,")")}function f(...o){return o.map(u=>j(u)).join("")}function v(...o){return"("+o.map(u=>j(u)).join("|")+")"}ye.exports=function(o){const d=f(/[A-Z_]/,f("(",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),h={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=o.inherit(r,{begin:/\(/,end:/\)/}),i=o.inherit(o.APOS_STRING_MODE,{className:"meta-string"}),c=o.inherit(o.QUOTE_STRING_MODE,{className:"meta-string"}),l={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[r,c,i,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[r,s,c,i]}]}]},o.COMMENT(//,{relevance:10}),{begin://,relevance:10},h,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:f(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:d,relevance:0,starts:l}]},{className:"tag",begin:f(/<\//,p(f(d,/>/))),contains:[{className:"name",begin:d,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}},859:()=>{!function(ye,j){"use strict";var Y,p="hljs-ln",f="hljs-ln-code",m="hljs-ln-n",o="data-line-number",d=/\r\n|\r|\n/g;function c(Y){try{var Q=j.querySelectorAll("code.hljs,code.nohighlight");for(var te in Q)Q.hasOwnProperty(te)&&(l(Q[te])||g(Q[te],Y))}catch($){ye.console.error("LineNumbers error: ",$)}}function l(Y){return Y.classList.contains("nohljsln")}function g(Y,Q){"object"==typeof Y&&function(Y){ye.setTimeout(Y,0)}(function(){Y.innerHTML=E(Y,Q)})}function E(Y,Q){var te=function(Y,Q){return{singleLine:O(Q=Q||{}),startFrom:w(Y,Q)}}(Y,Q);return A(Y),function(Y,Q){var te=M(Y);if(""===te[te.length-1].trim()&&te.pop(),te.length>1||Q.singleLine){for(var $="",J=0,ie=te.length;J
{6}',["hljs-ln-line","hljs-ln-numbers",m,o,f,J+Q.startFrom,te[J].length>0?te[J]:" "]);return L('{1}
',[p,$])}return Y}(Y.innerHTML,te)}function O(Y){return!!Y.singleLine&&Y.singleLine}function w(Y,Q){var $=1;isFinite(Q.startFrom)&&($=Q.startFrom);var J=function(Y,Q){return Y.hasAttribute(Q)?Y.getAttribute(Q):null}(Y,"data-ln-start-from");return null!==J&&($=function(Y,Q){if(!Y)return 1;var te=Number(Y);return isFinite(te)?te:1}(J)),$}function A(Y){var Q=Y.childNodes;for(var te in Q)if(Q.hasOwnProperty(te)){var $=Q[te];I($.textContent)>0&&($.childNodes.length>0?A($):S($.parentNode))}}function S(Y){var Q=Y.className;if(/hljs-/.test(Q)){for(var te=M(Y.innerHTML),$=0,J="";${1}
\n',[Q,te[$].length>0?te[$]:" "]);Y.innerHTML=J.trim()}}function M(Y){return 0===Y.length?[]:Y.split(d)}function I(Y){return(Y.trim().match(d)||[]).length}function L(Y,Q){return Y.replace(/\{(\d+)\}/g,function(te,$){return void 0!==Q[$]?Q[$]:te})}ye.hljs?(ye.hljs.initLineNumbersOnLoad=function(Y){"interactive"===j.readyState||"complete"===j.readyState?c(Y):ye.addEventListener("DOMContentLoaded",function(){c(Y)})},ye.hljs.lineNumbersBlock=g,ye.hljs.lineNumbersValue=function(Y,Q){if("string"==typeof Y){var te=document.createElement("code");return te.innerHTML=Y,E(te,Q)}},(Y=j.createElement("style")).type="text/css",Y.innerHTML=L(".{0}{border-collapse:collapse}.{0} td{padding:0}.{1}:before{content:attr({2})}",[p,m,o]),j.getElementsByTagName("head")[0].appendChild(Y)):ye.console.error("highlight.js not detected!"),document.addEventListener("copy",function(Y){var te,Q=window.getSelection();(function(Y){for(var Q=Y;Q;){if(Q.className&&-1!==Q.className.indexOf("hljs-ln-code"))return!0;Q=Q.parentNode}return!1})(Q.anchorNode)&&(te=-1!==window.navigator.userAgent.indexOf("Edge")?function(Y){for(var Q=Y.toString(),te=Y.anchorNode;"TD"!==te.nodeName;)te=te.parentNode;for(var $=Y.focusNode;"TD"!==$.nodeName;)$=$.parentNode;var J=parseInt(te.dataset.lineNumber),ie=parseInt($.dataset.lineNumber);if(J!=ie){var ae=te.textContent,le=$.textContent;if(J>ie){var Oe=J;J=ie,ie=Oe,Oe=ae,ae=le,le=Oe}for(;0!==Q.indexOf(ae);)ae=ae.slice(1);for(;-1===Q.lastIndexOf(le);)le=le.slice(0,-1);for(var Le=ae,Ye=function(Y){for(var Q=Y;"TABLE"!==Q.nodeName;)Q=Q.parentNode;return Q}(te),Je=J+1;Je{"use strict";ye.exports=Number.isFinite||function(j){return!("number"!=typeof j||j!=j||j===1/0||j===-1/0)}},5984:(ye,j,p)=>{var n=p(2327);ye.exports=Number.isInteger||function(f){return"number"==typeof f&&n(f)&&Math.floor(f)===f}},1654:function(ye,j){var f;void 0!==(f=function(){"use strict";function v(s){function i(E){for(var T=0,D=c.length;T127){if(a>191&&a<224){if(t>=e.length)throw"UTF-8 decode: incomplete 2-byte sequence";a=(31&a)<<6|63&e[t]}else if(a>223&&a<240){if(t+1>=e.length)throw"UTF-8 decode: incomplete 3-byte sequence";a=(15&a)<<12|(63&e[t])<<6|63&e[++t]}else{if(!(a>239&&a<248))throw"UTF-8 decode: unknown multibyte start 0x"+a.toString(16)+" at index "+(t-1);if(t+2>=e.length)throw"UTF-8 decode: incomplete 4-byte sequence";a=(7&a)<<18|(63&e[t])<<12|(63&e[++t])<<6|63&e[++t]}++t}if(a<=65535)r+=String.fromCharCode(a);else{if(!(a<=1114111))throw"UTF-8 decode: code point 0x"+a.toString(16)+" exceeds UTF-16 reach";a-=65536,r+=String.fromCharCode(a>>10|55296),r+=String.fromCharCode(1023&a|56320)}}return r}function PaxHeader(e){this._fields=e}function TarFile(){}function UntarStream(e){this._bufferView=new DataView(e),this._position=0}function UntarFileStream(e){this._stream=new UntarStream(e),this._globalPaxHeader=null}if(UntarWorker.prototype={onmessage:function(e){try{if("extract"!==e.data.type)throw new Error("Unknown message type: "+e.data.type);this.untarBuffer(e.data.buffer)}catch(r){this.postError(r)}},postError:function(e){this.postMessage({type:"error",data:{message:e.message}})},postLog:function(e,r){this.postMessage({type:"log",data:{level:e,msg:r}})},untarBuffer:function(e){try{for(var r=new UntarFileStream(e);r.hasNext();){var t=r.next();this.postMessage({type:"extract",data:t},[t.buffer])}this.postMessage({type:"complete"})}catch(a){this.postError(a)}},postMessage:function(e,r){self.postMessage(e,r)}},"undefined"!=typeof self){var worker=new UntarWorker;self.onmessage=function(e){worker.onmessage(e)}}PaxHeader.parse=function(e){for(var r=new Uint8Array(e),t=[];r.length>0;){var a=parseInt(decodeUTF8(r.subarray(0,r.indexOf(32)))),n=decodeUTF8(r.subarray(0,a)),i=n.match(/^\\d+ ([^=]+)=(.*)\\n$/);if(null===i)throw new Error("Invalid PAX header data format.");var s=i[1],o=i[2];0===o.length?o=null:null!==o.match(/^\\d+$/)&&(o=parseInt(o));var f={name:s,value:o};t.push(f),r=r.subarray(a)}return new PaxHeader(t)},PaxHeader.prototype={applyHeader:function(e){this._fields.forEach(function(r){var t=r.name,a=r.value;"path"===t?(t="name",void 0!==e.prefix&&delete e.prefix):"linkpath"===t&&(t="linkname"),null===a?delete e[t]:e[t]=a})}},UntarStream.prototype={readString:function(e){for(var r=1,t=e*r,a=[],n=0;n-1&&(r.version=e.readString(2),r.uname=e.readString(32),r.gname=e.readString(32),r.devmajor=parseInt(e.readString(8)),r.devminor=parseInt(e.readString(8)),r.namePrefix=e.readString(155),r.namePrefix.length>0&&(r.name=r.namePrefix+"/"+r.name)),e.position(i),r.type){case"0":case"":r.buffer=e.readBuffer(r.size);break;case"1":break;case"2":break;case"3":break;case"4":break;case"5":break;case"6":break;case"7":break;case"g":t=!0,this._globalPaxHeader=PaxHeader.parse(e.readBuffer(r.size));break;case"x":t=!0,a=PaxHeader.parse(e.readBuffer(r.size))}void 0===r.buffer&&(r.buffer=new ArrayBuffer(0));var s=i+r.size;return r.size%512!==0&&(s+=512-r.size%512),e.position(s),t&&(r=this._readNextFile()),null!==this._globalPaxHeader&&this._globalPaxHeader.applyHeader(r),null!==a&&a.applyHeader(r),r}};'])),function(s){if(!(s instanceof ArrayBuffer))throw new TypeError("arrayBuffer is not an instance of ArrayBuffer.");if(!u.Worker)throw new Error("Worker implementation is not available in this environment.");return new v(function(i,c,l){var g=new Worker(d),y=[];g.onerror=function(E){c(E)},g.onmessage=function(E){switch((E=E.data).type){case"log":console[E.data.level]("Worker: "+E.data.msg);break;case"extract":var T=function(s){return Object.defineProperties(s,r),s}(E.data);y.push(T),l(T);break;case"complete":g.terminate(),i(y);break;case"error":g.terminate(),c(new Error(E.data.message));break;default:g.terminate(),c(new Error("Unknown message from worker: "+E.type))}},g.postMessage({type:"extract",buffer:s},[s])})}}.apply(j,[]))&&(ye.exports=f)},642:(ye,j)=>{function n(f,v){var m=[],o=[];return null==v&&(v=function(d,u){return m[0]===u?"[Circular ~]":"[Circular ~."+o.slice(0,m.indexOf(u)).join(".")+"]"}),function(d,u){if(m.length>0){var h=m.indexOf(this);~h?m.splice(h+1):m.push(this),~h?o.splice(h,1/0,d):o.push(d),~m.indexOf(u)&&(u=v.call(this,d,u))}else m.push(u);return null==f?u:f.call(this,d,u)}}(ye.exports=function(f,v,m,o){return JSON.stringify(f,n(v,o),m)}).getSerialize=n},4366:ye=>{var j=1e3,p=60*j,n=60*p,f=24*n;function u(h,r,s){if(!(h0)return function(h){if(!((h=String(h)).length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(h);if(r){var s=parseFloat(r[1]);switch((r[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*f;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*p;case"seconds":case"second":case"secs":case"sec":case"s":return s*j;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(h);if("number"===s&&!1===isNaN(h))return r.long?function(h){return u(h,f,"day")||u(h,n,"hour")||u(h,p,"minute")||u(h,j,"second")||h+" ms"}(h):function(h){return h>=f?Math.round(h/f)+"d":h>=n?Math.round(h/n)+"h":h>=p?Math.round(h/p)+"m":h>=j?Math.round(h/j)+"s":h+"ms"}(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))}},2756:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{HIGHLIGHT_OPTIONS:()=>E,Highlight:()=>A,HighlightJS:()=>w,HighlightLoader:()=>T,HighlightModule:()=>S,\u02750:()=>O});var n=p(5e3),f=p(591),v=p(8896),m=p(1737),o=p(1746),d=p(5254),u=p(352),h=p(2198),r=p(4850),s=p(2986),i=p(7545),c=p(2868),l=p(7221),g=p(9808),y=p(2313);const E=new n.InjectionToken("HIGHLIGHT_OPTIONS");let T=(()=>{class M{constructor(b,L,F){this._options=F,this._ready=new f.X(null),this.ready=this._ready.asObservable().pipe((0,h.h)(ne=>!!ne),(0,r.U)(ne=>ne),(0,s.q)(1)),(0,g.isPlatformBrowser)(L)&&b.defaultView.hljs?this._ready.next(b.defaultView.hljs):this._loadLibrary().pipe((0,i.w)(ne=>this._options&&this._options.lineNumbersLoader?(b.defaultView.hljs=ne,this.loadLineNumbers().pipe((0,c.b)(()=>this._ready.next(ne)))):(this._ready.next(ne),v.E)),(0,l.K)(ne=>(console.error("[HLJS] ",ne),v.E))).subscribe()}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return(0,m._)("The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return(0,m._)("The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return(0,m._)("The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return(0,m._)("The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe((0,i.w)(b=>this._loadLanguages(b)))}return(0,m._)("Highlight.js library was not imported!")}_loadLanguages(b){const L=Object.entries(this._options.languages).map(([F,ne])=>D(ne()).pipe((0,c.b)(Y=>b.registerLanguage(F,Y))));return(0,o.$R)(...L).pipe((0,r.U)(()=>b))}loadCoreLibrary(){return D(this._options.coreLibraryLoader())}loadFullLibrary(){return D(this._options.fullLibraryLoader())}loadLineNumbers(){return D(this._options.lineNumbersLoader())}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275inject(g.DOCUMENT),n.\u0275\u0275inject(n.PLATFORM_ID),n.\u0275\u0275inject(E,8))},M.\u0275prov=(0,n.\u0275\u0275defineInjectable)({factory:function(){return new M((0,n.\u0275\u0275inject)(g.DOCUMENT),(0,n.\u0275\u0275inject)(n.PLATFORM_ID),(0,n.\u0275\u0275inject)(E,8))},token:M,providedIn:"root"}),M})();const D=M=>(0,d.D)(M).pipe((0,h.h)(I=>!!I&&!!I.default),(0,r.U)(I=>I.default)),O=D;let w=(()=>{class M{constructor(b,L){this._loader=b,this._hljs=null,b.ready.pipe().subscribe(F=>{this._hljs=F,L&&L.config&&(F.configure(L.config),F.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(b,L,F,ne){return this._loader.ready.pipe((0,r.U)(Y=>Y.highlight(b,L,F,ne)))}highlightAuto(b,L){return this._loader.ready.pipe((0,r.U)(F=>F.highlightAuto(b,L)))}fixMarkup(b){return this._loader.ready.pipe((0,r.U)(L=>L.fixMarkup(b)))}highlightBlock(b){return this._loader.ready.pipe((0,r.U)(L=>L.highlightBlock(b)))}configure(b){return this._loader.ready.pipe((0,r.U)(L=>L.configure(b)))}initHighlighting(){return this._loader.ready.pipe((0,r.U)(b=>b.initHighlighting()))}registerLanguage(b,L){return this._loader.ready.pipe((0,c.b)(F=>F.registerLanguage(b,L)))}listLanguages(){return this._loader.ready.pipe((0,r.U)(b=>b.listLanguages()))}getLanguage(b){return this._loader.ready.pipe((0,r.U)(L=>L.getLanguage(b)))}lineNumbersBlock(b){return this._loader.ready.pipe((0,h.h)(L=>!!L.lineNumbersBlock),(0,c.b)(L=>L.lineNumbersBlock(b)))}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275inject(T),n.\u0275\u0275inject(E,8))},M.\u0275prov=(0,n.\u0275\u0275defineInjectable)({factory:function(){return new M((0,n.\u0275\u0275inject)(T),(0,n.\u0275\u0275inject)(E,8))},token:M,providedIn:"root"}),M})(),A=(()=>{class M{constructor(b,L,F,ne){this._hljs=L,this._sanitizer=F,this._options=ne,this.highlighted=new n.EventEmitter,this._nativeElement=b.nativeElement}ngOnChanges(b){this.code&&b.code&&void 0!==b.code.currentValue&&b.code.currentValue!==b.code.previousValue&&this.highlightElement(this.code,this.languages)}highlightElement(b,L){this.setTextContent(b),this._hljs.highlightAuto(b,L).subscribe(F=>{this.setInnerHTML(F.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(F)})}addLineNumbers(){this.destroyLineNumbersObserver(),u.Z.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(b){u.Z.schedule(()=>this._nativeElement.textContent=b)}setInnerHTML(b){u.Z.schedule(()=>this._nativeElement.innerHTML=this._sanitizer.sanitize(n.SecurityContext.HTML,b)||"")}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(w),n.\u0275\u0275directiveInject(y.DomSanitizer),n.\u0275\u0275directiveInject(E,8))},M.\u0275dir=n.\u0275\u0275defineDirective({type:M,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(b,L){2&b&&n.\u0275\u0275classProp("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[n.\u0275\u0275NgOnChangesFeature]}),M})(),S=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=n.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=n.\u0275\u0275defineInjector({}),M})()},2398:ye=>{"use strict";const j="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;if(!j)throw new Error("Unable to find global scope. Are you sure this is running in the browser?");if(!j.AbortController)throw new Error('Could not find "AbortController" in the global scope. You need to polyfill it first');ye.exports.AbortController=j.AbortController},3230:(ye,j,p)=>{"use strict";const n=p(8372),f=p(2761),v=p(8951),m=p(4770),d=Symbol("encodeFragmentIdentifier");function r(D){if("string"!=typeof D||1!==D.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(D,O){return O.encode?O.strict?n(D):encodeURIComponent(D):D}function i(D,O){return O.decode?f(D):D}function c(D){return Array.isArray(D)?D.sort():"object"==typeof D?c(Object.keys(D)).sort((O,w)=>Number(O)-Number(w)).map(O=>D[O]):D}function l(D){const O=D.indexOf("#");return-1!==O&&(D=D.slice(0,O)),D}function y(D){const O=(D=l(D)).indexOf("?");return-1===O?"":D.slice(O+1)}function E(D,O){return O.parseNumbers&&!Number.isNaN(Number(D))&&"string"==typeof D&&""!==D.trim()?D=Number(D):O.parseBooleans&&null!==D&&("true"===D.toLowerCase()||"false"===D.toLowerCase())&&(D="true"===D.toLowerCase()),D}function T(D,O){r((O=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},O)).arrayFormatSeparator);const w=function(D){let O;switch(D.arrayFormat){case"index":return(w,A,S)=>{O=/\[(\d*)\]$/.exec(w),w=w.replace(/\[\d*\]$/,""),O?(void 0===S[w]&&(S[w]={}),S[w][O[1]]=A):S[w]=A};case"bracket":return(w,A,S)=>{O=/(\[\])$/.exec(w),S[w=w.replace(/\[\]$/,"")]=O?void 0!==S[w]?[].concat(S[w],A):[A]:A};case"colon-list-separator":return(w,A,S)=>{O=/(:list)$/.exec(w),S[w=w.replace(/:list$/,"")]=O?void 0!==S[w]?[].concat(S[w],A):[A]:A};case"comma":case"separator":return(w,A,S)=>{const M="string"==typeof A&&A.includes(D.arrayFormatSeparator),I="string"==typeof A&&!M&&i(A,D).includes(D.arrayFormatSeparator);A=I?i(A,D):A;const b=M||I?A.split(D.arrayFormatSeparator).map(L=>i(L,D)):null===A?A:i(A,D);S[w]=b};case"bracket-separator":return(w,A,S)=>{const M=/(\[\])$/.test(w);if(w=w.replace(/\[\]$/,""),!M)return void(S[w]=A&&i(A,D));const I=null===A?[]:A.split(D.arrayFormatSeparator).map(b=>i(b,D));S[w]=void 0!==S[w]?[].concat(S[w],I):I};default:return(w,A,S)=>{S[w]=void 0!==S[w]?[].concat(S[w],A):A}}}(O),A=Object.create(null);if("string"!=typeof D||!(D=D.trim().replace(/^[?#&]/,"")))return A;for(const S of D.split("&")){if(""===S)continue;let[M,I]=v(O.decode?S.replace(/\+/g," "):S,"=");I=void 0===I?null:["comma","separator","bracket-separator"].includes(O.arrayFormat)?I:i(I,O),w(i(M,O),I,A)}for(const S of Object.keys(A)){const M=A[S];if("object"==typeof M&&null!==M)for(const I of Object.keys(M))M[I]=E(M[I],O);else A[S]=E(M,O)}return!1===O.sort?A:(!0===O.sort?Object.keys(A).sort():Object.keys(A).sort(O.sort)).reduce((S,M)=>{const I=A[M];return S[M]=Boolean(I)&&"object"==typeof I&&!Array.isArray(I)?c(I):I,S},Object.create(null))}j.extract=y,j.parse=T,j.stringify=(D,O)=>{if(!D)return"";r((O=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},O)).arrayFormatSeparator);const w=I=>O.skipNull&&(D=>null==D)(D[I])||O.skipEmptyString&&""===D[I],A=function(D){switch(D.arrayFormat){case"index":return O=>(w,A)=>{const S=w.length;return void 0===A||D.skipNull&&null===A||D.skipEmptyString&&""===A?w:null===A?[...w,[s(O,D),"[",S,"]"].join("")]:[...w,[s(O,D),"[",s(S,D),"]=",s(A,D)].join("")]};case"bracket":return O=>(w,A)=>void 0===A||D.skipNull&&null===A||D.skipEmptyString&&""===A?w:null===A?[...w,[s(O,D),"[]"].join("")]:[...w,[s(O,D),"[]=",s(A,D)].join("")];case"colon-list-separator":return O=>(w,A)=>void 0===A||D.skipNull&&null===A||D.skipEmptyString&&""===A?w:null===A?[...w,[s(O,D),":list="].join("")]:[...w,[s(O,D),":list=",s(A,D)].join("")];case"comma":case"separator":case"bracket-separator":{const O="bracket-separator"===D.arrayFormat?"[]=":"=";return w=>(A,S)=>void 0===S||D.skipNull&&null===S||D.skipEmptyString&&""===S?A:(S=null===S?"":S,0===A.length?[[s(w,D),O,s(S,D)].join("")]:[[A,s(S,D)].join(D.arrayFormatSeparator)])}default:return O=>(w,A)=>void 0===A||D.skipNull&&null===A||D.skipEmptyString&&""===A?w:null===A?[...w,s(O,D)]:[...w,[s(O,D),"=",s(A,D)].join("")]}}(O),S={};for(const I of Object.keys(D))w(I)||(S[I]=D[I]);const M=Object.keys(S);return!1!==O.sort&&M.sort(O.sort),M.map(I=>{const b=D[I];return void 0===b?"":null===b?s(I,O):Array.isArray(b)?0===b.length&&"bracket-separator"===O.arrayFormat?s(I,O)+"[]":b.reduce(A(I),[]).join("&"):s(I,O)+"="+s(b,O)}).filter(I=>I.length>0).join("&")},j.parseUrl=(D,O)=>{O=Object.assign({decode:!0},O);const[w,A]=v(D,"#");return Object.assign({url:w.split("?")[0]||"",query:T(y(D),O)},O&&O.parseFragmentIdentifier&&A?{fragmentIdentifier:i(A,O)}:{})},j.stringifyUrl=(D,O)=>{O=Object.assign({encode:!0,strict:!0,[d]:!0},O);const w=l(D.url).split("?")[0]||"",A=j.extract(D.url),S=j.parse(A,{sort:!1}),M=Object.assign(S,D.query);let I=j.stringify(M,O);I&&(I=`?${I}`);let b=function(D){let O="";const w=D.indexOf("#");return-1!==w&&(O=D.slice(w)),O}(D.url);return D.fragmentIdentifier&&(b=`#${O[d]?s(D.fragmentIdentifier,O):D.fragmentIdentifier}`),`${w}${I}${b}`},j.pick=(D,O,w)=>{w=Object.assign({parseFragmentIdentifier:!0,[d]:!1},w);const{url:A,query:S,fragmentIdentifier:M}=j.parseUrl(D,w);return j.stringifyUrl({url:A,query:m(S,O),fragmentIdentifier:M},w)},j.exclude=(D,O,w)=>{const A=Array.isArray(O)?S=>!O.includes(S):(S,M)=>!O(S,M);return j.pick(D,A,w)}},591:(ye,j,p)=>{"use strict";p.d(j,{X:()=>v});var n=p(8929),f=p(5279);class v extends n.xQ{constructor(o){super(),this._value=o}get value(){return this.getValue()}_subscribe(o){const d=super._subscribe(o);return d&&!d.closed&&o.next(this._value),d}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new f.N;return this._value}next(o){super.next(this._value=o)}}},9312:(ye,j,p)=>{"use strict";p.d(j,{P:()=>o});var n=p(8896),f=p(1086),v=p(1737);class o{constructor(u,h,r){this.kind=u,this.value=h,this.error=r,this.hasValue="N"===u}observe(u){switch(this.kind){case"N":return u.next&&u.next(this.value);case"E":return u.error&&u.error(this.error);case"C":return u.complete&&u.complete()}}do(u,h,r){switch(this.kind){case"N":return u&&u(this.value);case"E":return h&&h(this.error);case"C":return r&&r()}}accept(u,h,r){return u&&"function"==typeof u.next?this.observe(u):this.do(u,h,r)}toObservable(){switch(this.kind){case"N":return(0,f.of)(this.value);case"E":return(0,v._)(this.error);case"C":return(0,n.c)()}throw new Error("unexpected notification kind value")}static createNext(u){return void 0!==u?new o("N",u):o.undefinedValueNotification}static createError(u){return new o("E",void 0,u)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},6498:(ye,j,p)=>{"use strict";p.d(j,{y:()=>r});var n=p(3489),v=p(7668),m=p(3292),d=p(3821),u=p(4843),h=p(2830);let r=(()=>{class i{constructor(l){this._isScalar=!1,l&&(this._subscribe=l)}lift(l){const g=new i;return g.source=this,g.operator=l,g}subscribe(l,g,y){const{operator:E}=this,T=function(i,c,l){if(i){if(i instanceof n.L)return i;if(i[v.b])return i[v.b]()}return i||c||l?new n.L(i,c,l):new n.L(m.c)}(l,g,y);if(T.add(E?E.call(T,this.source):this.source||h.v.useDeprecatedSynchronousErrorHandling&&!T.syncErrorThrowable?this._subscribe(T):this._trySubscribe(T)),h.v.useDeprecatedSynchronousErrorHandling&&T.syncErrorThrowable&&(T.syncErrorThrowable=!1,T.syncErrorThrown))throw T.syncErrorValue;return T}_trySubscribe(l){try{return this._subscribe(l)}catch(g){h.v.useDeprecatedSynchronousErrorHandling&&(l.syncErrorThrown=!0,l.syncErrorValue=g),function(i){for(;i;){const{closed:c,destination:l,isStopped:g}=i;if(c||g)return!1;i=l&&l instanceof n.L?l:null}return!0}(l)?l.error(g):console.warn(g)}}forEach(l,g){return new(g=s(g))((y,E)=>{let T;T=this.subscribe(D=>{try{l(D)}catch(O){E(O),T&&T.unsubscribe()}},E,y)})}_subscribe(l){const{source:g}=this;return g&&g.subscribe(l)}[d.L](){return this}pipe(...l){return 0===l.length?this:(0,u.U)(l)(this)}toPromise(l){return new(l=s(l))((g,y)=>{let E;this.subscribe(T=>E=T,T=>y(T),()=>g(E))})}}return i.create=c=>new i(c),i})();function s(i){if(i||(i=h.v.Promise||Promise),!i)throw new Error("no Promise impl found");return i}},3292:(ye,j,p)=>{"use strict";p.d(j,{c:()=>v});var n=p(2830),f=p(2782);const v={closed:!0,next(m){},error(m){if(n.v.useDeprecatedSynchronousErrorHandling)throw m;(0,f.z)(m)},complete(){}}},826:(ye,j,p)=>{"use strict";p.d(j,{L:()=>f});var n=p(3489);class f extends n.L{notifyNext(m,o,d,u,h){this.destination.next(o)}notifyError(m,o){this.destination.error(m)}notifyComplete(m){this.destination.complete()}}},8929:(ye,j,p)=>{"use strict";p.d(j,{Yc:()=>u,xQ:()=>h});var n=p(6498),f=p(3489),v=p(2654),m=p(5279),o=p(5283),d=p(7668);class u extends f.L{constructor(i){super(i),this.destination=i}}let h=(()=>{class s extends n.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[d.b](){return new u(this)}lift(c){const l=new r(this,this);return l.operator=c,l}next(c){if(this.closed)throw new m.N;if(!this.isStopped){const{observers:l}=this,g=l.length,y=l.slice();for(let E=0;Enew r(i,c),s})();class r extends h{constructor(i,c){super(),this.destination=i,this.source=c}next(i){const{destination:c}=this;c&&c.next&&c.next(i)}error(i){const{destination:c}=this;c&&c.error&&this.destination.error(i)}complete(){const{destination:i}=this;i&&i.complete&&this.destination.complete()}_subscribe(i){const{source:c}=this;return c?this.source.subscribe(i):v.w.EMPTY}}},5283:(ye,j,p)=>{"use strict";p.d(j,{W:()=>f});var n=p(2654);class f extends n.w{constructor(m,o){super(),this.subject=m,this.subscriber=o,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const m=this.subject,o=m.observers;if(this.subject=null,!o||0===o.length||m.isStopped||m.closed)return;const d=o.indexOf(this.subscriber);-1!==d&&o.splice(d,1)}}},3489:(ye,j,p)=>{"use strict";p.d(j,{L:()=>u});var n=p(7043),f=p(3292),v=p(2654),m=p(7668),o=p(2830),d=p(2782);class u extends v.w{constructor(s,i,c){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=f.c;break;case 1:if(!s){this.destination=f.c;break}if("object"==typeof s){s instanceof u?(this.syncErrorThrowable=s.syncErrorThrowable,this.destination=s,s.add(this)):(this.syncErrorThrowable=!0,this.destination=new h(this,s));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,s,i,c)}}[m.b](){return this}static create(s,i,c){const l=new u(s,i,c);return l.syncErrorThrowable=!1,l}next(s){this.isStopped||this._next(s)}error(s){this.isStopped||(this.isStopped=!0,this._error(s))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(s){this.destination.next(s)}_error(s){this.destination.error(s),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:s}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=s,this}}class h extends u{constructor(s,i,c,l){super(),this._parentSubscriber=s;let g,y=this;(0,n.m)(i)?g=i:i&&(g=i.next,c=i.error,l=i.complete,i!==f.c&&(y=Object.create(i),(0,n.m)(y.unsubscribe)&&this.add(y.unsubscribe.bind(y)),y.unsubscribe=this.unsubscribe.bind(this))),this._context=y,this._next=g,this._error=c,this._complete=l}next(s){if(!this.isStopped&&this._next){const{_parentSubscriber:i}=this;o.v.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable?this.__tryOrSetError(i,this._next,s)&&this.unsubscribe():this.__tryOrUnsub(this._next,s)}}error(s){if(!this.isStopped){const{_parentSubscriber:i}=this,{useDeprecatedSynchronousErrorHandling:c}=o.v;if(this._error)c&&i.syncErrorThrowable?(this.__tryOrSetError(i,this._error,s),this.unsubscribe()):(this.__tryOrUnsub(this._error,s),this.unsubscribe());else if(i.syncErrorThrowable)c?(i.syncErrorValue=s,i.syncErrorThrown=!0):(0,d.z)(s),this.unsubscribe();else{if(this.unsubscribe(),c)throw s;(0,d.z)(s)}}}complete(){if(!this.isStopped){const{_parentSubscriber:s}=this;if(this._complete){const i=()=>this._complete.call(this._context);o.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable?(this.__tryOrSetError(s,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(s,i){try{s.call(this._context,i)}catch(c){if(this.unsubscribe(),o.v.useDeprecatedSynchronousErrorHandling)throw c;(0,d.z)(c)}}__tryOrSetError(s,i,c){if(!o.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{i.call(this._context,c)}catch(l){return o.v.useDeprecatedSynchronousErrorHandling?(s.syncErrorValue=l,s.syncErrorThrown=!0,!0):((0,d.z)(l),!0)}return!1}_unsubscribe(){const{_parentSubscriber:s}=this;this._context=null,this._parentSubscriber=null,s.unsubscribe()}}},2654:(ye,j,p)=>{"use strict";p.d(j,{w:()=>d});var n=p(6688),f=p(7830),v=p(7043);const o=(()=>{function h(r){return Error.call(this),this.message=r?`${r.length} errors occurred during unsubscription:\n${r.map((s,i)=>`${i+1}) ${s.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=r,this}return h.prototype=Object.create(Error.prototype),h})();class d{constructor(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._ctorUnsubscribe=!0,this._unsubscribe=r)}unsubscribe(){let r;if(this.closed)return;let{_parentOrParents:s,_ctorUnsubscribe:i,_unsubscribe:c,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof d)s.remove(this);else if(null!==s)for(let g=0;gr.concat(s instanceof o?s.errors:s),[])}d.EMPTY=((h=new d).closed=!0,h)},2830:(ye,j,p)=>{"use strict";p.d(j,{v:()=>f});let n=!1;const f={Promise:void 0,set useDeprecatedSynchronousErrorHandling(v){if(v){const m=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+m.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=v},get useDeprecatedSynchronousErrorHandling(){return n}}},1177:(ye,j,p)=>{"use strict";p.d(j,{IY:()=>m,Ds:()=>d,ft:()=>h});var n=p(3489),f=p(6498),v=p(9249);class m extends n.L{constructor(s){super(),this.parent=s}_next(s){this.parent.notifyNext(s)}_error(s){this.parent.notifyError(s),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class d extends n.L{notifyNext(s){this.destination.next(s)}notifyError(s){this.destination.error(s)}notifyComplete(){this.destination.complete()}}function h(r,s){if(s.closed)return;if(r instanceof f.y)return r.subscribe(s);let i;try{i=(0,v.s)(r)(s)}catch(c){s.error(c)}return i}},1762:(ye,j,p)=>{"use strict";p.d(j,{c:()=>o,N:()=>d});var n=p(8929),f=p(6498),v=p(2654),m=p(4327);class o extends f.y{constructor(i,c){super(),this.source=i,this.subjectFactory=c,this._refCount=0,this._isComplete=!1}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let i=this._connection;return i||(this._isComplete=!1,i=this._connection=new v.w,i.add(this.source.subscribe(new u(this.getSubject(),this))),i.closed&&(this._connection=null,i=v.w.EMPTY)),i}refCount(){return(0,m.x)()(this)}}const d=(()=>{const s=o.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:s._subscribe},_isComplete:{value:s._isComplete,writable:!0},getSubject:{value:s.getSubject},connect:{value:s.connect},refCount:{value:s.refCount}}})();class u extends n.Yc{constructor(i,c){super(i),this.connectable=c}_error(i){this._unsubscribe(),super._error(i)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const i=this.connectable;if(i){this.connectable=null;const c=i._connection;i._refCount=0,i._subject=null,i._connection=null,c&&c.unsubscribe()}}}},6053:(ye,j,p)=>{"use strict";p.d(j,{aj:()=>u,Ms:()=>h});var n=p(2866),f=p(6688),v=p(826),m=p(448),o=p(3009);const d={};function u(...s){let i,c;return(0,n.K)(s[s.length-1])&&(c=s.pop()),"function"==typeof s[s.length-1]&&(i=s.pop()),1===s.length&&(0,f.k)(s[0])&&(s=s[0]),(0,o.n)(s,c).lift(new h(i))}class h{constructor(i){this.resultSelector=i}call(i,c){return c.subscribe(new r(i,this.resultSelector))}}class r extends v.L{constructor(i,c){super(i),this.resultSelector=c,this.active=0,this.values=[],this.observables=[]}_next(i){this.values.push(d),this.observables.push(i)}_complete(){const i=this.observables,c=i.length;if(0===c)this.destination.complete();else{this.active=c,this.toRespond=c;for(let l=0;l{"use strict";p.d(j,{z:()=>v});var n=p(1086),f=p(534);function v(...m){return(0,f.u)()((0,n.of)(...m))}},8514:(ye,j,p)=>{"use strict";p.d(j,{P:()=>m});var n=p(6498),f=p(5254),v=p(8896);function m(o){return new n.y(d=>{let u;try{u=o()}catch(r){return void d.error(r)}return(u?(0,f.D)(u):(0,v.c)()).subscribe(d)})}},8896:(ye,j,p)=>{"use strict";p.d(j,{E:()=>f,c:()=>v});var n=p(6498);const f=new n.y(o=>o.complete());function v(o){return o?function(o){return new n.y(d=>o.schedule(()=>d.complete()))}(o):f}},567:(ye,j,p)=>{"use strict";p.d(j,{D:()=>d});var n=p(6498),f=p(6688),v=p(4850),m=p(7830),o=p(5254);function d(...h){if(1===h.length){const r=h[0];if((0,f.k)(r))return u(r,null);if((0,m.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){const s=Object.keys(r);return u(s.map(i=>r[i]),s)}}if("function"==typeof h[h.length-1]){const r=h.pop();return u(h=1===h.length&&(0,f.k)(h[0])?h[0]:h,null).pipe((0,v.U)(s=>r(...s)))}return u(h,null)}function u(h,r){return new n.y(s=>{const i=h.length;if(0===i)return void s.complete();const c=new Array(i);let l=0,g=0;for(let y=0;y{T||(T=!0,g++),c[y]=D},error:D=>s.error(D),complete:()=>{l++,(l===i||!T)&&(g===i&&s.next(r?r.reduce((D,O,w)=>(D[O]=c[w],D),{}):c),s.complete())}}))}})}},5254:(ye,j,p)=>{"use strict";p.d(j,{D:()=>y});var n=p(6498),f=p(9249),v=p(2654),m=p(3821),u=p(6454),h=p(5430),i=p(8955),c=p(8515);function y(E,T){return T?function(E,T){if(null!=E){if(function(E){return E&&"function"==typeof E[m.L]}(E))return function(E,T){return new n.y(D=>{const O=new v.w;return O.add(T.schedule(()=>{const w=E[m.L]();O.add(w.subscribe({next(A){O.add(T.schedule(()=>D.next(A)))},error(A){O.add(T.schedule(()=>D.error(A)))},complete(){O.add(T.schedule(()=>D.complete()))}}))})),O})}(E,T);if((0,i.t)(E))return function(E,T){return new n.y(D=>{const O=new v.w;return O.add(T.schedule(()=>E.then(w=>{O.add(T.schedule(()=>{D.next(w),O.add(T.schedule(()=>D.complete()))}))},w=>{O.add(T.schedule(()=>D.error(w)))}))),O})}(E,T);if((0,c.z)(E))return(0,u.r)(E,T);if(function(E){return E&&"function"==typeof E[h.hZ]}(E)||"string"==typeof E)return function(E,T){if(!E)throw new Error("Iterable cannot be null");return new n.y(D=>{const O=new v.w;let w;return O.add(()=>{w&&"function"==typeof w.return&&w.return()}),O.add(T.schedule(()=>{w=E[h.hZ](),O.add(T.schedule(function(){if(D.closed)return;let A,S;try{const M=w.next();A=M.value,S=M.done}catch(M){return void D.error(M)}S?D.complete():(D.next(A),this.schedule())}))})),O})}(E,T)}throw new TypeError((null!==E&&typeof E||E)+" is not observable")}(E,T):E instanceof n.y?E:new n.y((0,f.s)(E))}},3009:(ye,j,p)=>{"use strict";p.d(j,{n:()=>m});var n=p(6498),f=p(3650),v=p(6454);function m(o,d){return d?(0,v.r)(o,d):new n.y((0,f.V)(o))}},3753:(ye,j,p)=>{"use strict";p.d(j,{R:()=>d});var n=p(6498),f=p(6688),v=p(7043),m=p(4850);function d(i,c,l,g){return(0,v.m)(l)&&(g=l,l=void 0),g?d(i,c,l).pipe((0,m.U)(y=>(0,f.k)(y)?g(...y):g(y))):new n.y(y=>{u(i,c,function(T){y.next(arguments.length>1?Array.prototype.slice.call(arguments):T)},y,l)})}function u(i,c,l,g,y){let E;if(function(i){return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener}(i)){const T=i;i.addEventListener(c,l,y),E=()=>T.removeEventListener(c,l,y)}else if(function(i){return i&&"function"==typeof i.on&&"function"==typeof i.off}(i)){const T=i;i.on(c,l),E=()=>T.off(c,l)}else if(function(i){return i&&"function"==typeof i.addListener&&"function"==typeof i.removeListener}(i)){const T=i;i.addListener(c,l),E=()=>T.removeListener(c,l)}else{if(!i||!i.length)throw new TypeError("Invalid event target");for(let T=0,D=i.length;T{"use strict";p.d(j,{T:()=>o});var n=p(6498),f=p(2866),v=p(9146),m=p(3009);function o(...d){let u=Number.POSITIVE_INFINITY,h=null,r=d[d.length-1];return(0,f.K)(r)?(h=d.pop(),d.length>1&&"number"==typeof d[d.length-1]&&(u=d.pop())):"number"==typeof r&&(u=d.pop()),null===h&&1===d.length&&d[0]instanceof n.y?d[0]:(0,v.J)(u)((0,m.n)(d,h))}},1086:(ye,j,p)=>{"use strict";p.d(j,{of:()=>m});var n=p(2866),f=p(3009),v=p(6454);function m(...o){let d=o[o.length-1];return(0,n.K)(d)?(o.pop(),(0,v.r)(o,d)):(0,f.n)(o)}},1946:(ye,j,p)=>{"use strict";p.d(j,{S3:()=>o});var n=p(6688),f=p(3009),v=p(826),m=p(448);function o(...h){if(1===h.length){if(!(0,n.k)(h[0]))return h[0];h=h[0]}return(0,f.n)(h,void 0).lift(new d)}class d{call(r,s){return s.subscribe(new u(r))}}class u extends v.L{constructor(r){super(r),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(r){this.observables.push(r)}_complete(){const r=this.observables,s=r.length;if(0===s)this.destination.complete();else{for(let i=0;i{"use strict";p.d(j,{_:()=>f});var n=p(6498);function f(m,o){return new n.y(o?d=>o.schedule(v,0,{error:m,subscriber:d}):d=>d.error(m))}function v({error:m,subscriber:o}){o.error(m)}},8723:(ye,j,p)=>{"use strict";p.d(j,{H:()=>o});var n=p(6498),f=p(353),v=p(4241),m=p(2866);function o(u=0,h,r){let s=-1;return(0,v.k)(h)?s=Number(h)<1?1:Number(h):(0,m.K)(h)&&(r=h),(0,m.K)(r)||(r=f.P),new n.y(i=>{const c=(0,v.k)(u)?u:+u-r.now();return r.schedule(d,c,{index:0,period:s,subscriber:i})})}function d(u){const{index:h,period:r,subscriber:s}=u;if(s.next(h),!s.closed){if(-1===r)return s.complete();u.index=h+1,this.schedule(u,r)}}},1746:(ye,j,p)=>{"use strict";p.d(j,{$R:()=>d,mx:()=>u});var n=p(3009),f=p(6688),v=p(3489),m=p(5430),o=p(1177);function d(...c){const l=c[c.length-1];return"function"==typeof l&&c.pop(),(0,n.n)(c,void 0).lift(new u(l))}class u{constructor(l){this.resultSelector=l}call(l,g){return g.subscribe(new h(l,this.resultSelector))}}class h extends v.L{constructor(l,g,y=Object.create(null)){super(l),this.resultSelector=g,this.iterators=[],this.active=0,this.resultSelector="function"==typeof g?g:void 0}_next(l){const g=this.iterators;(0,f.k)(l)?g.push(new s(l)):g.push("function"==typeof l[m.hZ]?new r(l[m.hZ]()):new i(this.destination,this,l))}_complete(){const l=this.iterators,g=l.length;if(this.unsubscribe(),0!==g){this.active=g;for(let y=0;ythis.index}hasCompleted(){return this.array.length===this.index}}class i extends o.Ds{constructor(l,g,y){super(l),this.parent=g,this.observable=y,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[m.hZ](){return this}next(){const l=this.buffer;return 0===l.length&&this.isComplete?{value:null,done:!0}:{value:l.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(l){this.buffer.push(l),this.parent.checkIterators()}subscribe(){return(0,o.ft)(this.observable,new o.IY(this))}}},384:(ye,j,p)=>{"use strict";p.d(j,{U:()=>f});var n=p(1177);function f(o){return function(u){return u.lift(new v(o))}}class v{constructor(d){this.durationSelector=d}call(d,u){return u.subscribe(new m(d,this.durationSelector))}}class m extends n.Ds{constructor(d,u){super(d),this.durationSelector=u,this.hasValue=!1}_next(d){if(this.value=d,this.hasValue=!0,!this.throttled){let u;try{const{durationSelector:r}=this;u=r(d)}catch(r){return this.destination.error(r)}const h=(0,n.ft)(u,new n.IY(this));!h||h.closed?this.clearThrottle():this.add(this.throttled=h)}}clearThrottle(){const{value:d,hasValue:u,throttled:h}=this;h&&(this.remove(h),this.throttled=void 0,h.unsubscribe()),u&&(this.value=void 0,this.hasValue=!1,this.destination.next(d))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}},7568:(ye,j,p)=>{"use strict";p.d(j,{e:()=>m});var n=p(353),f=p(384),v=p(8723);function m(o,d=n.P){return(0,f.U)(()=>(0,v.H)(o,d))}},7221:(ye,j,p)=>{"use strict";p.d(j,{K:()=>f});var n=p(1177);function f(o){return function(u){const h=new v(o),r=u.lift(h);return h.caught=r}}class v{constructor(d){this.selector=d}call(d,u){return u.subscribe(new m(d,this.selector,this.caught))}}class m extends n.Ds{constructor(d,u,h){super(d),this.selector=u,this.caught=h}error(d){if(!this.isStopped){let u;try{u=this.selector(d,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const h=new n.IY(this);this.add(h);const r=(0,n.ft)(u,h);r!==h&&this.add(r)}}}},534:(ye,j,p)=>{"use strict";p.d(j,{u:()=>f});var n=p(9146);function f(){return(0,n.J)(1)}},1406:(ye,j,p)=>{"use strict";p.d(j,{b:()=>f});var n=p(1709);function f(v,m){return(0,n.zg)(v,m,1)}},13:(ye,j,p)=>{"use strict";p.d(j,{b:()=>v});var n=p(3489),f=p(353);function v(u,h=f.P){return r=>r.lift(new m(u,h))}class m{constructor(h,r){this.dueTime=h,this.scheduler=r}call(h,r){return r.subscribe(new o(h,this.dueTime,this.scheduler))}}class o extends n.L{constructor(h,r,s){super(h),this.dueTime=r,this.scheduler=s,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(h){this.clearDebounce(),this.lastValue=h,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(d,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:h}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(h)}}clearDebounce(){const h=this.debouncedSubscription;null!==h&&(this.remove(h),h.unsubscribe(),this.debouncedSubscription=null)}}function d(u){u.debouncedNext()}},7314:(ye,j,p)=>{"use strict";p.d(j,{d:()=>f});var n=p(3489);function f(o=null){return d=>d.lift(new v(o))}class v{constructor(d){this.defaultValue=d}call(d,u){return u.subscribe(new m(d,this.defaultValue))}}class m extends n.L{constructor(d,u){super(d),this.defaultValue=u,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(ye,j,p)=>{"use strict";p.d(j,{g:()=>o});var n=p(353),f=p(2697),v=p(3489),m=p(9312);function o(r,s=n.P){const c=(0,f.J)(r)?+r-s.now():Math.abs(r);return l=>l.lift(new d(c,s))}class d{constructor(s,i){this.delay=s,this.scheduler=i}call(s,i){return i.subscribe(new u(s,this.delay,this.scheduler))}}class u extends v.L{constructor(s,i,c){super(s),this.delay=i,this.scheduler=c,this.queue=[],this.active=!1,this.errored=!1}static dispatch(s){const i=s.source,c=i.queue,l=s.scheduler,g=s.destination;for(;c.length>0&&c[0].time-l.now()<=0;)c.shift().notification.observe(g);if(c.length>0){const y=Math.max(0,c[0].time-l.now());this.schedule(s,y)}else this.unsubscribe(),i.active=!1}_schedule(s){this.active=!0,this.destination.add(s.schedule(u.dispatch,this.delay,{source:this,destination:this.destination,scheduler:s}))}scheduleNotification(s){if(!0===this.errored)return;const i=this.scheduler,c=new h(i.now()+this.delay,s);this.queue.push(c),!1===this.active&&this._schedule(i)}_next(s){this.scheduleNotification(m.P.createNext(s))}_error(s){this.errored=!0,this.queue=[],this.destination.error(s),this.unsubscribe()}_complete(){this.scheduleNotification(m.P.createComplete()),this.unsubscribe()}}class h{constructor(s,i){this.time=s,this.notification=i}}},5778:(ye,j,p)=>{"use strict";p.d(j,{x:()=>f});var n=p(3489);function f(o,d){return u=>u.lift(new v(o,d))}class v{constructor(d,u){this.compare=d,this.keySelector=u}call(d,u){return u.subscribe(new m(d,this.compare,this.keySelector))}}class m extends n.L{constructor(d,u,h){super(d),this.keySelector=h,this.hasKey=!1,"function"==typeof u&&(this.compare=u)}compare(d,u){return d===u}_next(d){let u;try{const{keySelector:r}=this;u=r?r(d):d}catch(r){return this.destination.error(r)}let h=!1;if(this.hasKey)try{const{compare:r}=this;h=r(this.key,u)}catch(r){return this.destination.error(r)}else this.hasKey=!0;h||(this.key=u,this.destination.next(d))}}},2198:(ye,j,p)=>{"use strict";p.d(j,{h:()=>f});var n=p(3489);function f(o,d){return function(h){return h.lift(new v(o,d))}}class v{constructor(d,u){this.predicate=d,this.thisArg=u}call(d,u){return u.subscribe(new m(d,this.predicate,this.thisArg))}}class m extends n.L{constructor(d,u,h){super(d),this.predicate=u,this.thisArg=h,this.count=0}_next(d){let u;try{u=this.predicate.call(this.thisArg,d,this.count++)}catch(h){return void this.destination.error(h)}u&&this.destination.next(d)}}},537:(ye,j,p)=>{"use strict";p.d(j,{x:()=>v});var n=p(3489),f=p(2654);function v(d){return u=>u.lift(new m(d))}class m{constructor(u){this.callback=u}call(u,h){return h.subscribe(new o(u,this.callback))}}class o extends n.L{constructor(u,h){super(u),this.add(new f.w(h))}}},7224:(ye,j,p)=>{"use strict";p.d(j,{P:()=>u});var n=p(4450),f=p(2198),v=p(2986),m=p(7314),o=p(4907),d=p(5379);function u(h,r){const s=arguments.length>=2;return i=>i.pipe(h?(0,f.h)((c,l)=>h(c,l,i)):d.y,(0,v.q)(1),s?(0,m.d)(r):(0,o.T)(()=>new n.K))}},8127:(ye,j,p)=>{"use strict";p.d(j,{Z:()=>u});var n=p(4450),f=p(2198),v=p(2821),m=p(4907),o=p(7314),d=p(5379);function u(h,r){const s=arguments.length>=2;return i=>i.pipe(h?(0,f.h)((c,l)=>h(c,l,i)):d.y,(0,v.h)(1),s?(0,o.d)(r):(0,m.T)(()=>new n.K))}},4850:(ye,j,p)=>{"use strict";p.d(j,{U:()=>f});var n=p(3489);function f(o,d){return function(h){if("function"!=typeof o)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return h.lift(new v(o,d))}}class v{constructor(d,u){this.project=d,this.thisArg=u}call(d,u){return u.subscribe(new m(d,this.project,this.thisArg))}}class m extends n.L{constructor(d,u,h){super(d),this.project=u,this.count=0,this.thisArg=h||this}_next(d){let u;try{u=this.project.call(this.thisArg,d,this.count++)}catch(h){return void this.destination.error(h)}this.destination.next(u)}}},9146:(ye,j,p)=>{"use strict";p.d(j,{J:()=>v});var n=p(1709),f=p(5379);function v(m=Number.POSITIVE_INFINITY){return(0,n.zg)(f.y,m)}},1709:(ye,j,p)=>{"use strict";p.d(j,{zg:()=>m,VS:()=>u});var n=p(4850),f=p(5254),v=p(1177);function m(h,r,s=Number.POSITIVE_INFINITY){return"function"==typeof r?i=>i.pipe(m((c,l)=>(0,f.D)(h(c,l)).pipe((0,n.U)((g,y)=>r(c,g,l,y))),s)):("number"==typeof r&&(s=r),i=>i.lift(new o(h,s)))}class o{constructor(r,s=Number.POSITIVE_INFINITY){this.project=r,this.concurrent=s}call(r,s){return s.subscribe(new d(r,this.project,this.concurrent))}}class d extends v.Ds{constructor(r,s,i=Number.POSITIVE_INFINITY){super(r),this.project=s,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(r){this.active0?this._next(r.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const u=m},2536:(ye,j,p)=>{"use strict";p.d(j,{O:()=>f});var n=p(1762);function f(m,o){return function(u){let h;if(h="function"==typeof m?m:function(){return m},"function"==typeof o)return u.lift(new v(h,o));const r=Object.create(u,n.N);return r.source=u,r.subjectFactory=h,r}}class v{constructor(o,d){this.subjectFactory=o,this.selector=d}call(o,d){const{selector:u}=this,h=this.subjectFactory(),r=u(h).subscribe(o);return r.add(d.subscribe(h)),r}}},8077:(ye,j,p)=>{"use strict";p.d(j,{u:()=>o});var n=p(2014),f=p(2821),v=p(7314),m=p(4843);function o(d,u){return arguments.length>=2?function(r){return(0,m.z)((0,n.R)(d,u),(0,f.h)(1),(0,v.d)(u))(r)}:function(r){return(0,m.z)((0,n.R)((s,i,c)=>d(s,i,c+1)),(0,f.h)(1))(r)}}},4327:(ye,j,p)=>{"use strict";p.d(j,{x:()=>f});var n=p(3489);function f(){return function(d){return d.lift(new v(d))}}class v{constructor(d){this.connectable=d}call(d,u){const{connectable:h}=this;h._refCount++;const r=new m(d,h),s=u.subscribe(r);return r.closed||(r.connection=h.connect()),s}}class m extends n.L{constructor(d,u){super(d),this.connectable=u}_unsubscribe(){const{connectable:d}=this;if(!d)return void(this.connection=null);this.connectable=null;const u=d._refCount;if(u<=0)return void(this.connection=null);if(d._refCount=u-1,u>1)return void(this.connection=null);const{connection:h}=this,r=d._connection;this.connection=null,r&&(!h||r===h)&&r.unsubscribe()}}},2014:(ye,j,p)=>{"use strict";p.d(j,{R:()=>f});var n=p(3489);function f(o,d){let u=!1;return arguments.length>=2&&(u=!0),function(r){return r.lift(new v(o,d,u))}}class v{constructor(d,u,h=!1){this.accumulator=d,this.seed=u,this.hasSeed=h}call(d,u){return u.subscribe(new m(d,this.accumulator,this.seed,this.hasSeed))}}class m extends n.L{constructor(d,u,h,r){super(d),this.accumulator=u,this._seed=h,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(d){this.hasSeed=!0,this._seed=d}_next(d){if(this.hasSeed)return this._tryNext(d);this.seed=d,this.destination.next(d)}_tryNext(d){const u=this.index++;let h;try{h=this.accumulator(this.seed,d,u)}catch(r){this.destination.error(r)}this.seed=h,this.destination.next(h)}}},8117:(ye,j,p)=>{"use strict";p.d(j,{B:()=>o});var n=p(2536),f=p(4327),v=p(8929);function m(){return new v.xQ}function o(){return d=>(0,f.x)()((0,n.O)(m)(d))}},1307:(ye,j,p)=>{"use strict";p.d(j,{T:()=>f});var n=p(3489);function f(o){return d=>d.lift(new v(o))}class v{constructor(d){this.total=d}call(d,u){return u.subscribe(new m(d,this.total))}}class m extends n.L{constructor(d,u){super(d),this.total=u,this.count=0}_next(d){++this.count>this.total&&this.destination.next(d)}}},1059:(ye,j,p)=>{"use strict";p.d(j,{O:()=>v});var n=p(1961),f=p(2866);function v(...m){const o=m[m.length-1];return(0,f.K)(o)?(m.pop(),d=>(0,n.z)(m,d,o)):d=>(0,n.z)(m,d)}},7545:(ye,j,p)=>{"use strict";p.d(j,{w:()=>m});var n=p(4850),f=p(5254),v=p(1177);function m(u,h){return"function"==typeof h?r=>r.pipe(m((s,i)=>(0,f.D)(u(s,i)).pipe((0,n.U)((c,l)=>h(s,c,i,l))))):r=>r.lift(new o(u))}class o{constructor(h){this.project=h}call(h,r){return r.subscribe(new d(h,this.project))}}class d extends v.Ds{constructor(h,r){super(h),this.project=r,this.index=0}_next(h){let r;const s=this.index++;try{r=this.project(h,s)}catch(i){return void this.destination.error(i)}this._innerSub(r)}_innerSub(h){const r=this.innerSubscription;r&&r.unsubscribe();const s=new v.IY(this),i=this.destination;i.add(s),this.innerSubscription=(0,v.ft)(h,s),this.innerSubscription!==s&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:h}=this;(!h||h.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(h){this.destination.next(h)}}},2986:(ye,j,p)=>{"use strict";p.d(j,{q:()=>m});var n=p(3489),f=p(4231),v=p(8896);function m(u){return h=>0===u?(0,v.c)():h.lift(new o(u))}class o{constructor(h){if(this.total=h,this.total<0)throw new f.W}call(h,r){return r.subscribe(new d(h,this.total))}}class d extends n.L{constructor(h,r){super(h),this.total=r,this.count=0}_next(h){const r=this.total,s=++this.count;s<=r&&(this.destination.next(h),s===r&&(this.destination.complete(),this.unsubscribe()))}}},2821:(ye,j,p)=>{"use strict";p.d(j,{h:()=>m});var n=p(3489),f=p(4231),v=p(8896);function m(u){return function(r){return 0===u?(0,v.c)():r.lift(new o(u))}}class o{constructor(h){if(this.total=h,this.total<0)throw new f.W}call(h,r){return r.subscribe(new d(h,this.total))}}class d extends n.L{constructor(h,r){super(h),this.total=r,this.ring=new Array,this.count=0}_next(h){const r=this.ring,s=this.total,i=this.count++;r.length0){const s=this.count>=this.total?this.total:this.count,i=this.ring;for(let c=0;c{"use strict";p.d(j,{R:()=>f});var n=p(1177);function f(o){return d=>d.lift(new v(o))}class v{constructor(d){this.notifier=d}call(d,u){const h=new m(d),r=(0,n.ft)(this.notifier,new n.IY(h));return r&&!h.seenValue?(h.add(r),u.subscribe(h)):h}}class m extends n.Ds{constructor(d){super(d),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},4290:(ye,j,p)=>{"use strict";p.d(j,{o:()=>f});var n=p(3489);function f(o,d=!1){return u=>u.lift(new v(o,d))}class v{constructor(d,u){this.predicate=d,this.inclusive=u}call(d,u){return u.subscribe(new m(d,this.predicate,this.inclusive))}}class m extends n.L{constructor(d,u,h){super(d),this.predicate=u,this.inclusive=h,this.index=0}_next(d){const u=this.destination;let h;try{h=this.predicate(d,this.index++)}catch(r){return void u.error(r)}this.nextOrComplete(d,h)}nextOrComplete(d,u){const h=this.destination;Boolean(u)?h.next(d):(this.inclusive&&h.next(d),h.complete())}}},2868:(ye,j,p)=>{"use strict";p.d(j,{b:()=>m});var n=p(3489);function f(){}var v=p(7043);function m(u,h,r){return function(i){return i.lift(new o(u,h,r))}}class o{constructor(h,r,s){this.nextOrObserver=h,this.error=r,this.complete=s}call(h,r){return r.subscribe(new d(h,this.nextOrObserver,this.error,this.complete))}}class d extends n.L{constructor(h,r,s,i){super(h),this._tapNext=f,this._tapError=f,this._tapComplete=f,this._tapError=s||f,this._tapComplete=i||f,(0,v.m)(r)?(this._context=this,this._tapNext=r):r&&(this._context=r,this._tapNext=r.next||f,this._tapError=r.error||f,this._tapComplete=r.complete||f)}_next(h){try{this._tapNext.call(this._context,h)}catch(r){return void this.destination.error(r)}this.destination.next(h)}_error(h){try{this._tapError.call(this._context,h)}catch(r){return void this.destination.error(r)}this.destination.error(h)}_complete(){try{this._tapComplete.call(this._context)}catch(h){return void this.destination.error(h)}return this.destination.complete()}}},4907:(ye,j,p)=>{"use strict";p.d(j,{T:()=>v});var n=p(4450),f=p(3489);function v(u=d){return h=>h.lift(new m(u))}class m{constructor(h){this.errorFactory=h}call(h,r){return r.subscribe(new o(h,this.errorFactory))}}class o extends f.L{constructor(h,r){super(h),this.errorFactory=r,this.hasValue=!1}_next(h){this.hasValue=!0,this.destination.next(h)}_complete(){if(this.hasValue)return this.destination.complete();{let h;try{h=this.errorFactory()}catch(r){h=r}this.destination.error(h)}}}function d(){return new n.K}},7e3:(ye,j,p)=>{"use strict";p.d(j,{V:()=>d});var n=p(353);const v=(()=>{function u(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return u.prototype=Object.create(Error.prototype),u})();var m=p(2431),o=p(1737);function d(u,h=n.P){return(0,m.L)(u,(0,o._)(new v),h)}},2431:(ye,j,p)=>{"use strict";p.d(j,{L:()=>m});var n=p(353),f=p(2697),v=p(1177);function m(u,h,r=n.P){return s=>{let i=(0,f.J)(u),c=i?+u-r.now():Math.abs(u);return s.lift(new o(c,i,h,r))}}class o{constructor(h,r,s,i){this.waitFor=h,this.absoluteTimeout=r,this.withObservable=s,this.scheduler=i}call(h,r){return r.subscribe(new d(h,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class d extends v.Ds{constructor(h,r,s,i,c){super(h),this.absoluteTimeout=r,this.waitFor=s,this.withObservable=i,this.scheduler=c,this.scheduleTimeout()}static dispatchTimeout(h){const{withObservable:r}=h;h._unsubscribeAndRecycle(),h.add((0,v.ft)(r,new v.IY(h)))}scheduleTimeout(){const{action:h}=this;h?this.action=h.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(d.dispatchTimeout,this.waitFor,this))}_next(h){this.absoluteTimeout||this.scheduleTimeout(),super._next(h)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}},864:(ye,j,p)=>{"use strict";p.d(j,{q:()=>v});var n=p(8077);function f(m,o,d){return 0===d?[o]:(m.push(o),m)}function v(){return(0,n.u)(f,[])}},6454:(ye,j,p)=>{"use strict";p.d(j,{r:()=>v});var n=p(6498),f=p(2654);function v(m,o){return new n.y(d=>{const u=new f.w;let h=0;return u.add(o.schedule(function(){h!==m.length?(d.next(m[h++]),d.closed||u.add(this.schedule())):d.complete()})),u})}},6686:(ye,j,p)=>{"use strict";p.d(j,{o:()=>v});var n=p(2654);class f extends n.w{constructor(o,d){super()}schedule(o,d=0){return this}}class v extends f{constructor(o,d){super(o,d),this.scheduler=o,this.work=d,this.pending=!1}schedule(o,d=0){if(this.closed)return this;this.state=o;const u=this.id,h=this.scheduler;return null!=u&&(this.id=this.recycleAsyncId(h,u,d)),this.pending=!0,this.delay=d,this.id=this.id||this.requestAsyncId(h,this.id,d),this}requestAsyncId(o,d,u=0){return setInterval(o.flush.bind(o,this),u)}recycleAsyncId(o,d,u=0){if(null!==u&&this.delay===u&&!1===this.pending)return d;clearInterval(d)}execute(o,d){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const u=this._execute(o,d);if(u)return u;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(o,d){let h,u=!1;try{this.work(o)}catch(r){u=!0,h=!!r&&r||new Error(r)}if(u)return this.unsubscribe(),h}_unsubscribe(){const o=this.id,d=this.scheduler,u=d.actions,h=u.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==h&&u.splice(h,1),null!=o&&(this.id=this.recycleAsyncId(d,o,null)),this.delay=null}}},2268:(ye,j,p)=>{"use strict";p.d(j,{v:()=>f});let n=(()=>{class v{constructor(o,d=v.now){this.SchedulerAction=o,this.now=d}schedule(o,d=0,u){return new this.SchedulerAction(this,o).schedule(u,d)}}return v.now=()=>Date.now(),v})();class f extends n{constructor(m,o=n.now){super(m,()=>f.delegate&&f.delegate!==this?f.delegate.now():o()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(m,o=0,d){return f.delegate&&f.delegate!==this?f.delegate.schedule(m,o,d):super.schedule(m,o,d)}flush(m){const{actions:o}=this;if(this.active)return void o.push(m);let d;this.active=!0;do{if(d=m.execute(m.state,m.delay))break}while(m=o.shift());if(this.active=!1,d){for(;m=o.shift();)m.unsubscribe();throw d}}}},352:(ye,j,p)=>{"use strict";p.d(j,{Z:()=>o});var n=p(6686),v=p(2268);const o=new class extends v.v{flush(h){this.active=!0,this.scheduled=void 0;const{actions:r}=this;let s,i=-1,c=r.length;h=h||r.shift();do{if(s=h.execute(h.state,h.delay))break}while(++i0?super.requestAsyncId(h,r,s):(h.actions.push(this),h.scheduled||(h.scheduled=requestAnimationFrame(()=>h.flush(null))))}recycleAsyncId(h,r,s=0){if(null!==s&&s>0||null===s&&this.delay>0)return super.recycleAsyncId(h,r,s);0===h.actions.length&&(cancelAnimationFrame(r),h.scheduled=void 0)}})},8139:(ye,j,p)=>{"use strict";p.d(j,{e:()=>c,E:()=>i});let n=1;const f=Promise.resolve(),v={};function m(l){return l in v&&(delete v[l],!0)}const o={setImmediate(l){const g=n++;return v[g]=!0,f.then(()=>m(g)&&l()),g},clearImmediate(l){m(l)}};var u=p(6686),r=p(2268);const i=new class extends r.v{flush(g){this.active=!0,this.scheduled=void 0;const{actions:y}=this;let E,T=-1,D=y.length;g=g||y.shift();do{if(E=g.execute(g.state,g.delay))break}while(++T0?super.requestAsyncId(g,y,E):(g.actions.push(this),g.scheduled||(g.scheduled=o.setImmediate(g.flush.bind(g,null))))}recycleAsyncId(g,y,E=0){if(null!==E&&E>0||null===E&&this.delay>0)return super.recycleAsyncId(g,y,E);0===g.actions.length&&(o.clearImmediate(y),g.scheduled=void 0)}}),c=i},353:(ye,j,p)=>{"use strict";p.d(j,{P:()=>m});var n=p(6686);const m=new(p(2268).v)(n.o)},5430:(ye,j,p)=>{"use strict";p.d(j,{hZ:()=>f});const f="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},3821:(ye,j,p)=>{"use strict";p.d(j,{L:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(ye,j,p)=>{"use strict";p.d(j,{b:()=>n});const n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(ye,j,p)=>{"use strict";p.d(j,{W:()=>f});const f=(()=>{function v(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return v.prototype=Object.create(Error.prototype),v})()},4450:(ye,j,p)=>{"use strict";p.d(j,{K:()=>f});const f=(()=>{function v(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return v.prototype=Object.create(Error.prototype),v})()},5279:(ye,j,p)=>{"use strict";p.d(j,{N:()=>f});const f=(()=>{function v(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return v.prototype=Object.create(Error.prototype),v})()},2782:(ye,j,p)=>{"use strict";function n(f){setTimeout(()=>{throw f},0)}p.d(j,{z:()=>n})},5379:(ye,j,p)=>{"use strict";function n(f){return f}p.d(j,{y:()=>n})},6688:(ye,j,p)=>{"use strict";p.d(j,{k:()=>n});const n=Array.isArray||(f=>f&&"number"==typeof f.length)},8515:(ye,j,p)=>{"use strict";p.d(j,{z:()=>n});const n=f=>f&&"number"==typeof f.length&&"function"!=typeof f},2697:(ye,j,p)=>{"use strict";function n(f){return f instanceof Date&&!isNaN(+f)}p.d(j,{J:()=>n})},7043:(ye,j,p)=>{"use strict";function n(f){return"function"==typeof f}p.d(j,{m:()=>n})},4241:(ye,j,p)=>{"use strict";p.d(j,{k:()=>f});var n=p(6688);function f(v){return!(0,n.k)(v)&&v-parseFloat(v)+1>=0}},7830:(ye,j,p)=>{"use strict";function n(f){return null!==f&&"object"==typeof f}p.d(j,{K:()=>n})},8955:(ye,j,p)=>{"use strict";function n(f){return!!f&&"function"!=typeof f.subscribe&&"function"==typeof f.then}p.d(j,{t:()=>n})},2866:(ye,j,p)=>{"use strict";function n(f){return f&&"function"==typeof f.schedule}p.d(j,{K:()=>n})},4843:(ye,j,p)=>{"use strict";p.d(j,{z:()=>f,U:()=>v});var n=p(5379);function f(...m){return v(m)}function v(m){return 0===m.length?n.y:1===m.length?m[0]:function(d){return m.reduce((u,h)=>h(u),d)}}},9249:(ye,j,p)=>{"use strict";p.d(j,{s:()=>i});var n=p(3650),f=p(2782),m=p(5430),d=p(3821),h=p(8515),r=p(8955),s=p(7830);const i=c=>{if(c&&"function"==typeof c[d.L])return(c=>l=>{const g=c[d.L]();if("function"!=typeof g.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return g.subscribe(l)})(c);if((0,h.z)(c))return(0,n.V)(c);if((0,r.t)(c))return(c=>l=>(c.then(g=>{l.closed||(l.next(g),l.complete())},g=>l.error(g)).then(null,f.z),l))(c);if(c&&"function"==typeof c[m.hZ])return(c=>l=>{const g=c[m.hZ]();for(;;){let y;try{y=g.next()}catch(E){return l.error(E),l}if(y.done){l.complete();break}if(l.next(y.value),l.closed)break}return"function"==typeof g.return&&l.add(()=>{g.return&&g.return()}),l})(c);{const g=`You provided ${(0,s.K)(c)?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(g)}}},3650:(ye,j,p)=>{"use strict";p.d(j,{V:()=>n});const n=f=>v=>{for(let m=0,o=f.length;m{"use strict";p.d(j,{D:()=>o});var n=p(3489);class f extends n.L{constructor(u,h,r){super(),this.parent=u,this.outerValue=h,this.outerIndex=r,this.index=0}_next(u){this.parent.notifyNext(this.outerValue,u,this.outerIndex,this.index++,this)}_error(u){this.parent.notifyError(u,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var v=p(9249),m=p(6498);function o(d,u,h,r,s=new f(d,h,r)){if(!s.closed)return u instanceof m.y?u.subscribe(s):(0,v.s)(u)(s)}},3460:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{audit:()=>n.U,auditTime:()=>f.e,buffer:()=>m,bufferCount:()=>h,bufferTime:()=>g,bufferToggle:()=>I,bufferWhen:()=>F,catchError:()=>Q.K,combineAll:()=>$,combineLatest:()=>le,concat:()=>Le,concatAll:()=>Ye.u,concatMap:()=>Je.b,concatMapTo:()=>gt,count:()=>Ue,debounce:()=>ft,debounceTime:()=>ot.b,defaultIfEmpty:()=>_t.d,delay:()=>At.g,delayWhen:()=>Bt,dematerialize:()=>x,distinct:()=>_e,distinctUntilChanged:()=>st.x,distinctUntilKeyChanged:()=>ut,elementAt:()=>Kt,endWith:()=>xt,every:()=>Lt,exhaust:()=>Vt,exhaustMap:()=>ee,expand:()=>ze,filter:()=>Xt.h,finalize:()=>cn.x,find:()=>An,findIndex:()=>He,first:()=>pt.P,flatMap:()=>zn.VS,groupBy:()=>un,ignoreElements:()=>Ni,isEmpty:()=>Vi,last:()=>Ze.Z,map:()=>Se.U,mapTo:()=>ue,materialize:()=>Pe,max:()=>Ht,merge:()=>an,mergeAll:()=>Tn.J,mergeMap:()=>zn.zg,mergeMapTo:()=>$n,mergeScan:()=>ti,min:()=>kn,multicast:()=>Mi.O,observeOn:()=>Zi,onErrorResumeNext:()=>Ui,pairwise:()=>qi,partition:()=>mi,pluck:()=>Gn,publish:()=>gn,publishBehavior:()=>Sn,publishLast:()=>Ri,publishReplay:()=>ir,race:()=>Sr,reduce:()=>Ft.u,refCount:()=>Tr.x,repeat:()=>Hr,repeatWhen:()=>Wr,retry:()=>Lr,retryWhen:()=>ls,sample:()=>us,sampleTime:()=>Er,scan:()=>V.R,sequenceEqual:()=>ve,share:()=>In.B,shareReplay:()=>ni,single:()=>hi,skip:()=>xn.T,skipLast:()=>Kr,skipUntil:()=>cs,skipWhile:()=>Bs,startWith:()=>G.O,subscribeOn:()=>rt,switchAll:()=>rn,switchMap:()=>Rt.w,switchMapTo:()=>pn,take:()=>Dt.q,takeLast:()=>Pn.h,takeUntil:()=>Ln.R,takeWhile:()=>_n.o,tap:()=>Bn.b,throttle:()=>_i,throttleTime:()=>Qi,throwIfEmpty:()=>tn.T,timeInterval:()=>zi,timeout:()=>ys.V,timeoutWith:()=>Yi.L,timestamp:()=>Ur,toArray:()=>Cs.q,window:()=>mn,windowCount:()=>li,windowTime:()=>Zn,windowToggle:()=>Ir,windowWhen:()=>Br,withLatestFrom:()=>ns,zip:()=>Ms,zipAll:()=>Ss});var n=p(384),f=p(7568),v=p(1177);function m(Ke){return function(ce){return ce.lift(new o(Ke))}}class o{constructor(z){this.closingNotifier=z}call(z,ce){return ce.subscribe(new d(z,this.closingNotifier))}}class d extends v.Ds{constructor(z,ce){super(z),this.buffer=[],this.add((0,v.ft)(ce,new v.IY(this)))}_next(z){this.buffer.push(z)}notifyNext(){const z=this.buffer;this.buffer=[],this.destination.next(z)}}var u=p(3489);function h(Ke,z=null){return function(je){return je.lift(new r(Ke,z))}}class r{constructor(z,ce){this.bufferSize=z,this.startBufferEvery=ce,this.subscriberClass=ce&&z!==ce?i:s}call(z,ce){return ce.subscribe(new this.subscriberClass(z,this.bufferSize,this.startBufferEvery))}}class s extends u.L{constructor(z,ce){super(z),this.bufferSize=ce,this.buffer=[]}_next(z){const ce=this.buffer;ce.push(z),ce.length==this.bufferSize&&(this.destination.next(ce),this.buffer=[])}_complete(){const z=this.buffer;z.length>0&&this.destination.next(z),super._complete()}}class i extends u.L{constructor(z,ce,je){super(z),this.bufferSize=ce,this.startBufferEvery=je,this.buffers=[],this.count=0}_next(z){const{bufferSize:ce,startBufferEvery:je,buffers:Mt,count:jt}=this;this.count++,jt%je==0&&Mt.push([]);for(let ln=Mt.length;ln--;){const Hn=Mt[ln];Hn.push(z),Hn.length===ce&&(Mt.splice(ln,1),this.destination.next(Hn))}}_complete(){const{buffers:z,destination:ce}=this;for(;z.length>0;){let je=z.shift();je.length>0&&ce.next(je)}super._complete()}}var c=p(353),l=p(2866);function g(Ke){let z=arguments.length,ce=c.P;(0,l.K)(arguments[arguments.length-1])&&(ce=arguments[arguments.length-1],z--);let je=null;z>=2&&(je=arguments[1]);let Mt=Number.POSITIVE_INFINITY;return z>=3&&(Mt=arguments[2]),function(ln){return ln.lift(new y(Ke,je,Mt,ce))}}class y{constructor(z,ce,je,Mt){this.bufferTimeSpan=z,this.bufferCreationInterval=ce,this.maxBufferSize=je,this.scheduler=Mt}call(z,ce){return ce.subscribe(new T(z,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class E{constructor(){this.buffer=[]}}class T extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.bufferTimeSpan=ce,this.bufferCreationInterval=je,this.maxBufferSize=Mt,this.scheduler=jt,this.contexts=[];const ln=this.openContext();if(this.timespanOnly=null==je||je<0,this.timespanOnly)this.add(ln.closeAction=jt.schedule(D,ce,{subscriber:this,context:ln,bufferTimeSpan:ce}));else{const Ki={bufferTimeSpan:ce,bufferCreationInterval:je,subscriber:this,scheduler:jt};this.add(ln.closeAction=jt.schedule(w,ce,{subscriber:this,context:ln})),this.add(jt.schedule(O,je,Ki))}}_next(z){const ce=this.contexts,je=ce.length;let Mt;for(let jt=0;jt0;){const je=z.shift();ce.next(je.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(z){this.closeContext(z);const ce=z.closeAction;if(ce.unsubscribe(),this.remove(ce),!this.closed&&this.timespanOnly){z=this.openContext();const je=this.bufferTimeSpan;this.add(z.closeAction=this.scheduler.schedule(D,je,{subscriber:this,context:z,bufferTimeSpan:je}))}}openContext(){const z=new E;return this.contexts.push(z),z}closeContext(z){this.destination.next(z.buffer);const ce=this.contexts;(ce?ce.indexOf(z):-1)>=0&&ce.splice(ce.indexOf(z),1)}}function D(Ke){const z=Ke.subscriber,ce=Ke.context;ce&&z.closeContext(ce),z.closed||(Ke.context=z.openContext(),Ke.context.closeAction=this.schedule(Ke,Ke.bufferTimeSpan))}function O(Ke){const{bufferCreationInterval:z,bufferTimeSpan:ce,subscriber:je,scheduler:Mt}=Ke,jt=je.openContext();je.closed||(je.add(jt.closeAction=Mt.schedule(w,ce,{subscriber:je,context:jt})),this.schedule(Ke,z))}function w(Ke){const{subscriber:z,context:ce}=Ke;z.closeContext(ce)}var A=p(2654),S=p(448),M=p(826);function I(Ke,z){return function(je){return je.lift(new b(Ke,z))}}class b{constructor(z,ce){this.openings=z,this.closingSelector=ce}call(z,ce){return ce.subscribe(new L(z,this.openings,this.closingSelector))}}class L extends M.L{constructor(z,ce,je){super(z),this.closingSelector=je,this.contexts=[],this.add((0,S.D)(this,ce))}_next(z){const ce=this.contexts,je=ce.length;for(let Mt=0;Mt0;){const je=ce.shift();je.subscription.unsubscribe(),je.buffer=null,je.subscription=null}this.contexts=null,super._error(z)}_complete(){const z=this.contexts;for(;z.length>0;){const ce=z.shift();this.destination.next(ce.buffer),ce.subscription.unsubscribe(),ce.buffer=null,ce.subscription=null}this.contexts=null,super._complete()}notifyNext(z,ce){z?this.closeBuffer(z):this.openBuffer(ce)}notifyComplete(z){this.closeBuffer(z.context)}openBuffer(z){try{const je=this.closingSelector.call(this,z);je&&this.trySubscribe(je)}catch(ce){this._error(ce)}}closeBuffer(z){const ce=this.contexts;if(ce&&z){const{buffer:je,subscription:Mt}=z;this.destination.next(je),ce.splice(ce.indexOf(z),1),this.remove(Mt),Mt.unsubscribe()}}trySubscribe(z){const ce=this.contexts,Mt=new A.w,jt={buffer:[],subscription:Mt};ce.push(jt);const ln=(0,S.D)(this,z,jt);!ln||ln.closed?this.closeBuffer(jt):(ln.context=jt,this.add(ln),Mt.add(ln))}}function F(Ke){return function(z){return z.lift(new ne(Ke))}}class ne{constructor(z){this.closingSelector=z}call(z,ce){return ce.subscribe(new Y(z,this.closingSelector))}}class Y extends v.Ds{constructor(z,ce){super(z),this.closingSelector=ce,this.subscribing=!1,this.openBuffer()}_next(z){this.buffer.push(z)}_complete(){const z=this.buffer;z&&this.destination.next(z),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let je,{closingSubscription:z}=this;z&&(this.remove(z),z.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:Mt}=this;je=Mt()}catch(Mt){return this.error(Mt)}z=new A.w,this.closingSubscription=z,this.add(z),this.subscribing=!0,z.add((0,v.ft)(je,new v.IY(this))),this.subscribing=!1}}var Q=p(7221),te=p(6053);function $(Ke){return z=>z.lift(new te.Ms(Ke))}var J=p(6688),ie=p(5254);function le(...Ke){let z=null;return"function"==typeof Ke[Ke.length-1]&&(z=Ke.pop()),1===Ke.length&&(0,J.k)(Ke[0])&&(Ke=Ke[0].slice()),ce=>ce.lift.call((0,ie.D)([ce,...Ke]),new te.Ms(z))}var Oe=p(1961);function Le(...Ke){return z=>z.lift.call((0,Oe.z)(z,...Ke))}var Ye=p(534),Je=p(1406);function gt(Ke,z){return(0,Je.b)(()=>Ke,z)}function Ue(Ke){return z=>z.lift(new tt(Ke,z))}class tt{constructor(z,ce){this.predicate=z,this.source=ce}call(z,ce){return ce.subscribe(new at(z,this.predicate,this.source))}}class at extends u.L{constructor(z,ce,je){super(z),this.predicate=ce,this.source=je,this.count=0,this.index=0}_next(z){this.predicate?this._tryPredicate(z):this.count++}_tryPredicate(z){let ce;try{ce=this.predicate(z,this.index++,this.source)}catch(je){return void this.destination.error(je)}ce&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function ft(Ke){return z=>z.lift(new vt(Ke))}class vt{constructor(z){this.durationSelector=z}call(z,ce){return ce.subscribe(new yt(z,this.durationSelector))}}class yt extends v.Ds{constructor(z,ce){super(z),this.durationSelector=ce,this.hasValue=!1}_next(z){try{const ce=this.durationSelector.call(this,z);ce&&this._tryNext(z,ce)}catch(ce){this.destination.error(ce)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(z,ce){let je=this.durationSubscription;this.value=z,this.hasValue=!0,je&&(je.unsubscribe(),this.remove(je)),je=(0,v.ft)(ce,new v.IY(this)),je&&!je.closed&&this.add(this.durationSubscription=je)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const z=this.value,ce=this.durationSubscription;ce&&(this.durationSubscription=void 0,ce.unsubscribe(),this.remove(ce)),this.value=void 0,this.hasValue=!1,super._next(z)}}}var ot=p(13),_t=p(7314),At=p(943),Tt=p(6498);function Bt(Ke,z){return z?ce=>new fe(ce,z).lift(new Et(Ke)):ce=>ce.lift(new Et(Ke))}class Et{constructor(z){this.delayDurationSelector=z}call(z,ce){return ce.subscribe(new Ee(z,this.delayDurationSelector))}}class Ee extends M.L{constructor(z,ce){super(z),this.delayDurationSelector=ce,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(z,ce,je,Mt,jt){this.destination.next(z),this.removeSubscription(jt),this.tryComplete()}notifyError(z,ce){this._error(z)}notifyComplete(z){const ce=this.removeSubscription(z);ce&&this.destination.next(ce),this.tryComplete()}_next(z){const ce=this.index++;try{const je=this.delayDurationSelector(z,ce);je&&this.tryDelay(je,z)}catch(je){this.destination.error(je)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(z){z.unsubscribe();const ce=this.delayNotifierSubscriptions.indexOf(z);return-1!==ce&&this.delayNotifierSubscriptions.splice(ce,1),z.outerValue}tryDelay(z,ce){const je=(0,S.D)(this,z,ce);je&&!je.closed&&(this.destination.add(je),this.delayNotifierSubscriptions.push(je))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class fe extends Tt.y{constructor(z,ce){super(),this.source=z,this.subscriptionDelay=ce}_subscribe(z){this.subscriptionDelay.subscribe(new H(z,this.source))}}class H extends u.L{constructor(z,ce){super(),this.parent=z,this.source=ce,this.sourceSubscribed=!1}_next(z){this.subscribeToSource()}_error(z){this.unsubscribe(),this.parent.error(z)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function x(){return function(z){return z.lift(new U)}}class U{call(z,ce){return ce.subscribe(new Z(z))}}class Z extends u.L{constructor(z){super(z)}_next(z){z.observe(this.destination)}}function _e(Ke,z){return ce=>ce.lift(new Be(Ke,z))}class Be{constructor(z,ce){this.keySelector=z,this.flushes=ce}call(z,ce){return ce.subscribe(new $e(z,this.keySelector,this.flushes))}}class $e extends v.Ds{constructor(z,ce,je){super(z),this.keySelector=ce,this.values=new Set,je&&this.add((0,v.ft)(je,new v.IY(this)))}notifyNext(){this.values.clear()}notifyError(z){this._error(z)}_next(z){this.keySelector?this._useKeySelector(z):this._finalizeNext(z,z)}_useKeySelector(z){let ce;const{destination:je}=this;try{ce=this.keySelector(z)}catch(Mt){return void je.error(Mt)}this._finalizeNext(ce,z)}_finalizeNext(z,ce){const{values:je}=this;je.has(z)||(je.add(z),this.destination.next(ce))}}var st=p(5778);function ut(Ke,z){return(0,st.x)((ce,je)=>z?z(ce[Ke],je[Ke]):ce[Ke]===je[Ke])}var St=p(4231),Xt=p(2198),tn=p(4907),Dt=p(2986);function Kt(Ke,z){if(Ke<0)throw new St.W;const ce=arguments.length>=2;return je=>je.pipe((0,Xt.h)((Mt,jt)=>jt===Ke),(0,Dt.q)(1),ce?(0,_t.d)(z):(0,tn.T)(()=>new St.W))}var et=p(1086);function xt(...Ke){return z=>(0,Oe.z)(z,(0,et.of)(...Ke))}function Lt(Ke,z){return ce=>ce.lift(new Qe(Ke,z,ce))}class Qe{constructor(z,ce,je){this.predicate=z,this.thisArg=ce,this.source=je}call(z,ce){return ce.subscribe(new mt(z,this.predicate,this.thisArg,this.source))}}class mt extends u.L{constructor(z,ce,je,Mt){super(z),this.predicate=ce,this.thisArg=je,this.source=Mt,this.index=0,this.thisArg=je||this}notifyComplete(z){this.destination.next(z),this.destination.complete()}_next(z){let ce=!1;try{ce=this.predicate.call(this.thisArg,z,this.index++,this.source)}catch(je){return void this.destination.error(je)}ce||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Vt(){return Ke=>Ke.lift(new qt)}class qt{call(z,ce){return ce.subscribe(new Ne(z))}}class Ne extends v.Ds{constructor(z){super(z),this.hasCompleted=!1,this.hasSubscription=!1}_next(z){this.hasSubscription||(this.hasSubscription=!0,this.add((0,v.ft)(z,new v.IY(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var Se=p(4850);function ee(Ke,z){return z?ce=>ce.pipe(ee((je,Mt)=>(0,ie.D)(Ke(je,Mt)).pipe((0,Se.U)((jt,ln)=>z(je,jt,Mt,ln))))):ce=>ce.lift(new re(Ke))}class re{constructor(z){this.project=z}call(z,ce){return ce.subscribe(new Me(z,this.project))}}class Me extends v.Ds{constructor(z,ce){super(z),this.project=ce,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(z){this.hasSubscription||this.tryNext(z)}tryNext(z){let ce;const je=this.index++;try{ce=this.project(z,je)}catch(Mt){return void this.destination.error(Mt)}this.hasSubscription=!0,this._innerSub(ce)}_innerSub(z){const ce=new v.IY(this),je=this.destination;je.add(ce);const Mt=(0,v.ft)(z,ce);Mt!==ce&&je.add(Mt)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(z){this.destination.next(z)}notifyError(z){this.destination.error(z)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function ze(Ke,z=Number.POSITIVE_INFINITY,ce){return z=(z||0)<1?Number.POSITIVE_INFINITY:z,je=>je.lift(new It(Ke,z,ce))}class It{constructor(z,ce,je){this.project=z,this.concurrent=ce,this.scheduler=je}call(z,ce){return ce.subscribe(new Qt(z,this.project,this.concurrent,this.scheduler))}}class Qt extends v.Ds{constructor(z,ce,je,Mt){super(z),this.project=ce,this.concurrent=je,this.scheduler=Mt,this.index=0,this.active=0,this.hasCompleted=!1,je0&&this._next(z.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var cn=p(537);function An(Ke,z){if("function"!=typeof Ke)throw new TypeError("predicate is not a function");return ce=>ce.lift(new lt(Ke,ce,!1,z))}class lt{constructor(z,ce,je,Mt){this.predicate=z,this.source=ce,this.yieldIndex=je,this.thisArg=Mt}call(z,ce){return ce.subscribe(new ct(z,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class ct extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.predicate=ce,this.source=je,this.yieldIndex=Mt,this.thisArg=jt,this.index=0}notifyComplete(z){const ce=this.destination;ce.next(z),ce.complete(),this.unsubscribe()}_next(z){const{predicate:ce,thisArg:je}=this,Mt=this.index++;try{ce.call(je||this,z,Mt,this.source)&&this.notifyComplete(this.yieldIndex?Mt:z)}catch(jt){this.destination.error(jt)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function He(Ke,z){return ce=>ce.lift(new lt(Ke,ce,!0,z))}var pt=p(7224),Ot=p(8929);function un(Ke,z,ce,je){return Mt=>Mt.lift(new on(Ke,z,ce,je))}class on{constructor(z,ce,je,Mt){this.keySelector=z,this.elementSelector=ce,this.durationSelector=je,this.subjectSelector=Mt}call(z,ce){return ce.subscribe(new On(z,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class On extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.keySelector=ce,this.elementSelector=je,this.durationSelector=Mt,this.subjectSelector=jt,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(z){let ce;try{ce=this.keySelector(z)}catch(je){return void this.error(je)}this._group(z,ce)}_group(z,ce){let je=this.groups;je||(je=this.groups=new Map);let jt,Mt=je.get(ce);if(this.elementSelector)try{jt=this.elementSelector(z)}catch(ln){this.error(ln)}else jt=z;if(!Mt){Mt=this.subjectSelector?this.subjectSelector():new Ot.xQ,je.set(ce,Mt);const ln=new ji(ce,Mt,this);if(this.destination.next(ln),this.durationSelector){let Hn;try{Hn=this.durationSelector(new ji(ce,Mt))}catch(Ki){return void this.error(Ki)}this.add(Hn.subscribe(new Yn(ce,Mt,this)))}}Mt.closed||Mt.next(jt)}_error(z){const ce=this.groups;ce&&(ce.forEach((je,Mt)=>{je.error(z)}),ce.clear()),this.destination.error(z)}_complete(){const z=this.groups;z&&(z.forEach((ce,je)=>{ce.complete()}),z.clear()),this.destination.complete()}removeGroup(z){this.groups.delete(z)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class Yn extends u.L{constructor(z,ce,je){super(ce),this.key=z,this.group=ce,this.parent=je}_next(z){this.complete()}_unsubscribe(){const{parent:z,key:ce}=this;this.key=this.parent=null,z&&z.removeGroup(ce)}}class ji extends Tt.y{constructor(z,ce,je){super(),this.key=z,this.groupSubject=ce,this.refCountSubscription=je}_subscribe(z){const ce=new A.w,{refCountSubscription:je,groupSubject:Mt}=this;return je&&!je.closed&&ce.add(new Oi(je)),ce.add(Mt.subscribe(z)),ce}}class Oi extends A.w{constructor(z){super(),this.parent=z,z.count++}unsubscribe(){const z=this.parent;!z.closed&&!this.closed&&(super.unsubscribe(),z.count-=1,0===z.count&&z.attemptedToUnsubscribe&&z.unsubscribe())}}function Ni(){return function(z){return z.lift(new Ti)}}class Ti{call(z,ce){return ce.subscribe(new qn(z))}}class qn extends u.L{_next(z){}}function Vi(){return Ke=>Ke.lift(new ci)}class ci{call(z,ce){return ce.subscribe(new xe(z))}}class xe extends u.L{constructor(z){super(z)}notifyComplete(z){const ce=this.destination;ce.next(z),ce.complete()}_next(z){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var Ze=p(8127);function ue(Ke){return z=>z.lift(new Re(Ke))}class Re{constructor(z){this.value=z}call(z,ce){return ce.subscribe(new B(z,this.value))}}class B extends u.L{constructor(z,ce){super(z),this.value=ce}_next(z){this.destination.next(this.value)}}var de=p(9312);function Pe(){return function(z){return z.lift(new Xe)}}class Xe{call(z,ce){return ce.subscribe(new Wt(z))}}class Wt extends u.L{constructor(z){super(z)}_next(z){this.destination.next(de.P.createNext(z))}_error(z){const ce=this.destination;ce.next(de.P.createError(z)),ce.complete()}_complete(){const z=this.destination;z.next(de.P.createComplete()),z.complete()}}var Ft=p(8077);function Ht(Ke){return(0,Ft.u)("function"==typeof Ke?(ce,je)=>Ke(ce,je)>0?ce:je:(ce,je)=>ce>je?ce:je)}var Zt=p(6787);function an(...Ke){return z=>z.lift.call((0,Zt.T)(z,...Ke))}var Tn=p(9146),zn=p(1709);function $n(Ke,z,ce=Number.POSITIVE_INFINITY){return"function"==typeof z?(0,zn.zg)(()=>Ke,z,ce):("number"==typeof z&&(ce=z),(0,zn.zg)(()=>Ke,ce))}function ti(Ke,z,ce=Number.POSITIVE_INFINITY){return je=>je.lift(new jn(Ke,z,ce))}class jn{constructor(z,ce,je){this.accumulator=z,this.seed=ce,this.concurrent=je}call(z,ce){return ce.subscribe(new Qn(z,this.accumulator,this.seed,this.concurrent))}}class Qn extends v.Ds{constructor(z,ce,je,Mt){super(z),this.accumulator=ce,this.acc=je,this.concurrent=Mt,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(z){if(this.active0?this._next(z.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function kn(Ke){return(0,Ft.u)("function"==typeof Ke?(ce,je)=>Ke(ce,je)<0?ce:je:(ce,je)=>cez.lift(new bi(Ke))}class bi{constructor(z){this.nextSources=z}call(z,ce){return ce.subscribe(new Rn(z,this.nextSources))}}class Rn extends v.Ds{constructor(z,ce){super(z),this.destination=z,this.nextSources=ce}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(z){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const z=this.nextSources.shift();if(z){const ce=new v.IY(this),je=this.destination;je.add(ce);const Mt=(0,v.ft)(z,ce);Mt!==ce&&je.add(Mt)}else this.destination.complete()}}function qi(){return Ke=>Ke.lift(new oi)}class oi{call(z,ce){return ce.subscribe(new Fn(z))}}class Fn extends u.L{constructor(z){super(z),this.hasPrev=!1}_next(z){let ce;this.hasPrev?ce=[this.prev,z]:this.hasPrev=!0,this.prev=z,ce&&this.destination.next(ce)}}function $i(Ke,z){function ce(){return!ce.pred.apply(ce.thisArg,arguments)}return ce.pred=Ke,ce.thisArg=z,ce}function mi(Ke,z){return ce=>[(0,Xt.h)(Ke,z)(ce),(0,Xt.h)($i(Ke,z))(ce)]}function Gn(...Ke){const z=Ke.length;if(0===z)throw new Error("list of properties cannot be empty.");return ce=>(0,Se.U)(function(Ke,z){return je=>{let Mt=je;for(let jt=0;jtnew Ot.xQ,Ke):(0,Mi.O)(new Ot.xQ)}var yn=p(591);function Sn(Ke){return z=>(0,Mi.O)(new yn.X(Ke))(z)}class Wn extends Ot.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(z){return this.hasError?(z.error(this.thrownError),A.w.EMPTY):this.hasCompleted&&this.hasNext?(z.next(this.value),z.complete(),A.w.EMPTY):super._subscribe(z)}next(z){this.hasCompleted||(this.value=z,this.hasNext=!0)}error(z){this.hasCompleted||super.error(z)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}function Ri(){return Ke=>(0,Mi.O)(new Wn)(Ke)}var Li=p(6686),Vr=p(2268);const Mr=new class extends Vr.v{}(class extends Li.o{constructor(z,ce){super(z,ce),this.scheduler=z,this.work=ce}schedule(z,ce=0){return ce>0?super.schedule(z,ce):(this.delay=ce,this.state=z,this.scheduler.flush(this),this)}execute(z,ce){return ce>0||this.closed?super.execute(z,ce):this._execute(z,ce)}requestAsyncId(z,ce,je=0){return null!==je&&je>0||null===je&&this.delay>0?super.requestAsyncId(z,ce,je):z.flush(this)}});var cr=p(5279),$r=p(5283);class hr extends Ot.xQ{constructor(z=Number.POSITIVE_INFINITY,ce=Number.POSITIVE_INFINITY,je){super(),this.scheduler=je,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=z<1?1:z,this._windowTime=ce<1?1:ce,ce===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(z){if(!this.isStopped){const ce=this._events;ce.push(z),ce.length>this._bufferSize&&ce.shift()}super.next(z)}nextTimeWindow(z){this.isStopped||(this._events.push(new qr(this._getNow(),z)),this._trimBufferThenGetEvents()),super.next(z)}_subscribe(z){const ce=this._infiniteTimeWindow,je=ce?this._events:this._trimBufferThenGetEvents(),Mt=this.scheduler,jt=je.length;let ln;if(this.closed)throw new cr.N;if(this.isStopped||this.hasError?ln=A.w.EMPTY:(this.observers.push(z),ln=new $r.W(this,z)),Mt&&z.add(z=new pi(z,Mt)),ce)for(let Hn=0;Hnce&&(ln=Math.max(ln,jt-ce)),ln>0&&Mt.splice(0,ln),Mt}}class qr{constructor(z,ce){this.time=z,this.value=ce}}function ir(Ke,z,ce,je){ce&&"function"!=typeof ce&&(je=ce);const Mt="function"==typeof ce?ce:void 0,jt=new hr(Ke,z,je);return ln=>(0,Mi.O)(()=>jt,Mt)(ln)}var Cr=p(1946);function Sr(...Ke){return function(ce){return 1===Ke.length&&(0,J.k)(Ke[0])&&(Ke=Ke[0]),ce.lift.call((0,Cr.S3)(ce,...Ke))}}var mr=p(8896);function Hr(Ke=-1){return z=>0===Ke?(0,mr.c)():z.lift(new jr(Ke<0?-1:Ke-1,z))}class jr{constructor(z,ce){this.count=z,this.source=ce}call(z,ce){return ce.subscribe(new Wi(z,this.count,this.source))}}class Wi extends u.L{constructor(z,ce,je){super(z),this.count=ce,this.source=je}complete(){if(!this.isStopped){const{source:z,count:ce}=this;if(0===ce)return super.complete();ce>-1&&(this.count=ce-1),z.subscribe(this._unsubscribeAndRecycle())}}}function Wr(Ke){return z=>z.lift(new Rr(Ke))}class Rr{constructor(z){this.notifier=z}call(z,ce){return ce.subscribe(new Dr(z,this.notifier,ce))}}class Dr extends v.Ds{constructor(z,ce,je){super(z),this.notifier=ce,this.source=je,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:z,retriesSubscription:ce}=this;z&&(z.unsubscribe(),this.notifications=void 0),ce&&(ce.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:z}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=z,this}subscribeToRetries(){let z;this.notifications=new Ot.xQ;try{const{notifier:ce}=this;z=ce(this.notifications)}catch(ce){return super.complete()}this.retries=z,this.retriesSubscription=(0,v.ft)(z,new v.IY(this))}}function Lr(Ke=-1){return z=>z.lift(new Ji(Ke,z))}class Ji{constructor(z,ce){this.count=z,this.source=ce}call(z,ce){return ce.subscribe(new Fr(z,this.count,this.source))}}class Fr extends u.L{constructor(z,ce,je){super(z),this.count=ce,this.source=je}error(z){if(!this.isStopped){const{source:ce,count:je}=this;if(0===je)return super.error(z);je>-1&&(this.count=je-1),ce.subscribe(this._unsubscribeAndRecycle())}}}function ls(Ke){return z=>z.lift(new kr(Ke,z))}class kr{constructor(z,ce){this.notifier=z,this.source=ce}call(z,ce){return ce.subscribe(new Jr(z,this.notifier,this.source))}}class Jr extends v.Ds{constructor(z,ce,je){super(z),this.notifier=ce,this.source=je}error(z){if(!this.isStopped){let ce=this.errors,je=this.retries,Mt=this.retriesSubscription;if(je)this.errors=void 0,this.retriesSubscription=void 0;else{ce=new Ot.xQ;try{const{notifier:jt}=this;je=jt(ce)}catch(jt){return super.error(jt)}Mt=(0,v.ft)(je,new v.IY(this))}this._unsubscribeAndRecycle(),this.errors=ce,this.retries=je,this.retriesSubscription=Mt,ce.next(z)}}_unsubscribe(){const{errors:z,retriesSubscription:ce}=this;z&&(z.unsubscribe(),this.errors=void 0),ce&&(ce.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:z}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=z,this.source.subscribe(this)}}var Tr=p(4327);function us(Ke){return z=>z.lift(new si(Ke))}class si{constructor(z){this.notifier=z}call(z,ce){const je=new zr(z),Mt=ce.subscribe(je);return Mt.add((0,v.ft)(this.notifier,new v.IY(je))),Mt}}class zr extends v.Ds{constructor(){super(...arguments),this.hasValue=!1}_next(z){this.value=z,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function Er(Ke,z=c.P){return ce=>ce.lift(new be(Ke,z))}class be{constructor(z,ce){this.period=z,this.scheduler=ce}call(z,ce){return ce.subscribe(new X(z,this.period,this.scheduler))}}class X extends u.L{constructor(z,ce,je){super(z),this.period=ce,this.scheduler=je,this.hasValue=!1,this.add(je.schedule(k,ce,{subscriber:this,period:ce}))}_next(z){this.lastValue=z,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function k(Ke){let{subscriber:z,period:ce}=Ke;z.notifyNext(),this.schedule(Ke,ce)}var V=p(2014);function ve(Ke,z){return ce=>ce.lift(new nt(Ke,z))}class nt{constructor(z,ce){this.compareTo=z,this.comparator=ce}call(z,ce){return ce.subscribe(new Nt(z,this.compareTo,this.comparator))}}class Nt extends u.L{constructor(z,ce,je){super(z),this.compareTo=ce,this.comparator=je,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(ce.subscribe(new nn(z,this)))}_next(z){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(z),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:z,_b:ce,comparator:je}=this;for(;z.length>0&&ce.length>0;){let Mt=z.shift(),jt=ce.shift(),ln=!1;try{ln=je?je(Mt,jt):Mt===jt}catch(Hn){this.destination.error(Hn)}ln||this.emit(!1)}}emit(z){const{destination:ce}=this;ce.next(z),ce.complete()}nextB(z){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(z),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class nn extends u.L{constructor(z,ce){super(z),this.parent=ce}_next(z){this.parent.nextB(z)}_error(z){this.parent.error(z),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var In=p(8117);function ni(Ke,z,ce){let je;return je=Ke&&"object"==typeof Ke?Ke:{bufferSize:Ke,windowTime:z,refCount:!1,scheduler:ce},Mt=>Mt.lift(function({bufferSize:Ke=Number.POSITIVE_INFINITY,windowTime:z=Number.POSITIVE_INFINITY,refCount:ce,scheduler:je}){let Mt,ln,jt=0,Hn=!1,Ki=!1;return function(oe){let q;jt++,!Mt||Hn?(Hn=!1,Mt=new hr(Ke,z,je),q=Mt.subscribe(this),ln=oe.subscribe({next(Ce){Mt.next(Ce)},error(Ce){Hn=!0,Mt.error(Ce)},complete(){Ki=!0,ln=void 0,Mt.complete()}}),Ki&&(ln=void 0)):q=Mt.subscribe(this),this.add(()=>{jt--,q.unsubscribe(),q=void 0,ln&&!Ki&&ce&&0===jt&&(ln.unsubscribe(),ln=void 0,Mt=void 0)})}}(je))}var ai=p(4450);function hi(Ke){return z=>z.lift(new Ei(Ke,z))}class Ei{constructor(z,ce){this.predicate=z,this.source=ce}call(z,ce){return ce.subscribe(new ki(z,this.predicate,this.source))}}class ki extends u.L{constructor(z,ce,je){super(z),this.predicate=ce,this.source=je,this.seenValue=!1,this.index=0}applySingleValue(z){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=z)}_next(z){const ce=this.index++;this.predicate?this.tryNext(z,ce):this.applySingleValue(z)}tryNext(z,ce){try{this.predicate(z,ce,this.source)&&this.applySingleValue(z)}catch(je){this.destination.error(je)}}_complete(){const z=this.destination;this.index>0?(z.next(this.seenValue?this.singleValue:void 0),z.complete()):z.error(new ai.K)}}var xn=p(1307);function Kr(Ke){return z=>z.lift(new rr(Ke))}class rr{constructor(z){if(this._skipCount=z,this._skipCount<0)throw new St.W}call(z,ce){return ce.subscribe(0===this._skipCount?new u.L(z):new xr(z,this._skipCount))}}class xr extends u.L{constructor(z,ce){super(z),this._skipCount=ce,this._count=0,this._ring=new Array(ce)}_next(z){const ce=this._skipCount,je=this._count++;if(jez.lift(new es(Ke))}class es{constructor(z){this.notifier=z}call(z,ce){return ce.subscribe(new ds(z,this.notifier))}}class ds extends v.Ds{constructor(z,ce){super(z),this.hasValue=!1;const je=new v.IY(this);this.add(je),this.innerSubscription=je;const Mt=(0,v.ft)(ce,je);Mt!==je&&(this.add(Mt),this.innerSubscription=Mt)}_next(z){this.hasValue&&super._next(z)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function Bs(Ke){return z=>z.lift(new we(Ke))}class we{constructor(z){this.predicate=z}call(z,ce){return ce.subscribe(new N(z,this.predicate))}}class N extends u.L{constructor(z,ce){super(z),this.predicate=ce,this.skipping=!0,this.index=0}_next(z){const ce=this.destination;this.skipping&&this.tryCallPredicate(z),this.skipping||ce.next(z)}tryCallPredicate(z){try{const ce=this.predicate(z,this.index++);this.skipping=Boolean(ce)}catch(ce){this.destination.error(ce)}}}var G=p(1059),pe=p(8139),Ae=p(4241);class We extends Tt.y{constructor(z,ce=0,je=pe.e){super(),this.source=z,this.delayTime=ce,this.scheduler=je,(!(0,Ae.k)(ce)||ce<0)&&(this.delayTime=0),(!je||"function"!=typeof je.schedule)&&(this.scheduler=pe.e)}static create(z,ce=0,je=pe.e){return new We(z,ce,je)}static dispatch(z){const{source:ce,subscriber:je}=z;return this.add(ce.subscribe(je))}_subscribe(z){return this.scheduler.schedule(We.dispatch,this.delayTime,{source:this.source,subscriber:z})}}function rt(Ke,z=0){return function(je){return je.lift(new dt(Ke,z))}}class dt{constructor(z,ce){this.scheduler=z,this.delay=ce}call(z,ce){return new We(ce,this.delay,this.scheduler).subscribe(z)}}var Rt=p(7545),Gt=p(5379);function rn(){return(0,Rt.w)(Gt.y)}function pn(Ke,z){return z?(0,Rt.w)(()=>Ke,z):(0,Rt.w)(()=>Ke)}var Pn=p(2821),Ln=p(7625),_n=p(4290),Bn=p(2868);const Kn={leading:!0,trailing:!1};function _i(Ke,z=Kn){return ce=>ce.lift(new xi(Ke,!!z.leading,!!z.trailing))}class xi{constructor(z,ce,je){this.durationSelector=z,this.leading=ce,this.trailing=je}call(z,ce){return ce.subscribe(new sr(z,this.durationSelector,this.leading,this.trailing))}}class sr extends v.Ds{constructor(z,ce,je,Mt){super(z),this.destination=z,this.durationSelector=ce,this._leading=je,this._trailing=Mt,this._hasValue=!1}_next(z){this._hasValue=!0,this._sendValue=z,this._throttled||(this._leading?this.send():this.throttle(z))}send(){const{_hasValue:z,_sendValue:ce}=this;z&&(this.destination.next(ce),this.throttle(ce)),this._hasValue=!1,this._sendValue=void 0}throttle(z){const ce=this.tryDurationSelector(z);ce&&this.add(this._throttled=(0,v.ft)(ce,new v.IY(this)))}tryDurationSelector(z){try{return this.durationSelector(z)}catch(ce){return this.destination.error(ce),null}}throttlingDone(){const{_throttled:z,_trailing:ce}=this;z&&z.unsubscribe(),this._throttled=void 0,ce&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function Qi(Ke,z=c.P,ce=Kn){return je=>je.lift(new Nr(Ke,z,ce.leading,ce.trailing))}class Nr{constructor(z,ce,je,Mt){this.duration=z,this.scheduler=ce,this.leading=je,this.trailing=Mt}call(z,ce){return ce.subscribe(new fr(z,this.duration,this.scheduler,this.leading,this.trailing))}}class fr extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.duration=ce,this.scheduler=je,this.leading=Mt,this.trailing=jt,this._hasTrailingValue=!1,this._trailingValue=null}_next(z){this.throttled?this.trailing&&(this._trailingValue=z,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Xi,this.duration,{subscriber:this})),this.leading?this.destination.next(z):this.trailing&&(this._trailingValue=z,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const z=this.throttled;z&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),z.unsubscribe(),this.remove(z),this.throttled=null)}}function Xi(Ke){const{subscriber:z}=Ke;z.clearThrottle()}var gr=p(8514);function zi(Ke=c.P){return z=>(0,gr.P)(()=>z.pipe((0,V.R)(({current:ce},je)=>({value:je,current:Ke.now(),last:ce}),{current:Ke.now(),value:void 0,last:void 0}),(0,Se.U)(({current:ce,last:je,value:Mt})=>new Pr(Mt,ce-je))))}class Pr{constructor(z,ce){this.value=z,this.interval=ce}}var ys=p(7e3),Yi=p(2431);function Ur(Ke=c.P){return(0,Se.U)(z=>new bs(z,Ke.now()))}class bs{constructor(z,ce){this.value=z,this.timestamp=ce}}var Cs=p(864);function mn(Ke){return function(ce){return ce.lift(new Mn(Ke))}}class Mn{constructor(z){this.windowBoundaries=z}call(z,ce){const je=new En(z),Mt=ce.subscribe(je);return Mt.closed||je.add((0,v.ft)(this.windowBoundaries,new v.IY(je))),Mt}}class En extends v.Ds{constructor(z){super(z),this.window=new Ot.xQ,z.next(this.window)}notifyNext(){this.openWindow()}notifyError(z){this._error(z)}notifyComplete(){this._complete()}_next(z){this.window.next(z)}_error(z){this.window.error(z),this.destination.error(z)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const z=this.window;z&&z.complete();const ce=this.destination,je=this.window=new Ot.xQ;ce.next(je)}}function li(Ke,z=0){return function(je){return je.lift(new ii(Ke,z))}}class ii{constructor(z,ce){this.windowSize=z,this.startWindowEvery=ce}call(z,ce){return ce.subscribe(new Hi(z,this.windowSize,this.startWindowEvery))}}class Hi extends u.L{constructor(z,ce,je){super(z),this.destination=z,this.windowSize=ce,this.startWindowEvery=je,this.windows=[new Ot.xQ],this.count=0,z.next(this.windows[0])}_next(z){const ce=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,je=this.destination,Mt=this.windowSize,jt=this.windows,ln=jt.length;for(let Ki=0;Ki=0&&Hn%ce==0&&!this.closed&&jt.shift().complete(),++this.count%ce==0&&!this.closed){const Ki=new Ot.xQ;jt.push(Ki),je.next(Ki)}}_error(z){const ce=this.windows;if(ce)for(;ce.length>0&&!this.closed;)ce.shift().error(z);this.destination.error(z)}_complete(){const z=this.windows;if(z)for(;z.length>0&&!this.closed;)z.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function Zn(Ke){let z=c.P,ce=null,je=Number.POSITIVE_INFINITY;return(0,l.K)(arguments[3])&&(z=arguments[3]),(0,l.K)(arguments[2])?z=arguments[2]:(0,Ae.k)(arguments[2])&&(je=Number(arguments[2])),(0,l.K)(arguments[1])?z=arguments[1]:(0,Ae.k)(arguments[1])&&(ce=Number(arguments[1])),function(jt){return jt.lift(new dr(Ke,ce,je,z))}}class dr{constructor(z,ce,je,Mt){this.windowTimeSpan=z,this.windowCreationInterval=ce,this.maxWindowSize=je,this.scheduler=Mt}call(z,ce){return ce.subscribe(new Es(z,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class Si extends Ot.xQ{constructor(){super(...arguments),this._numberOfNextedValues=0}next(z){this._numberOfNextedValues++,super.next(z)}get numberOfNextedValues(){return this._numberOfNextedValues}}class Es extends u.L{constructor(z,ce,je,Mt,jt){super(z),this.destination=z,this.windowTimeSpan=ce,this.windowCreationInterval=je,this.maxWindowSize=Mt,this.scheduler=jt,this.windows=[];const ln=this.openWindow();if(null!==je&&je>=0){const Ki={windowTimeSpan:ce,windowCreationInterval:je,subscriber:this,scheduler:jt};this.add(jt.schedule(ar,ce,{subscriber:this,window:ln,context:null})),this.add(jt.schedule(or,je,Ki))}else this.add(jt.schedule(ws,ce,{subscriber:this,window:ln,windowTimeSpan:ce}))}_next(z){const ce=this.windows,je=ce.length;for(let Mt=0;Mt=this.maxWindowSize&&this.closeWindow(jt))}}_error(z){const ce=this.windows;for(;ce.length>0;)ce.shift().error(z);this.destination.error(z)}_complete(){const z=this.windows;for(;z.length>0;){const ce=z.shift();ce.closed||ce.complete()}this.destination.complete()}openWindow(){const z=new Si;return this.windows.push(z),this.destination.next(z),z}closeWindow(z){z.complete();const ce=this.windows;ce.splice(ce.indexOf(z),1)}}function ws(Ke){const{subscriber:z,windowTimeSpan:ce,window:je}=Ke;je&&z.closeWindow(je),Ke.window=z.openWindow(),this.schedule(Ke,ce)}function or(Ke){const{windowTimeSpan:z,subscriber:ce,scheduler:je,windowCreationInterval:Mt}=Ke,jt=ce.openWindow();let Hn={action:this,subscription:null};Hn.subscription=je.schedule(ar,z,{subscriber:ce,window:jt,context:Hn}),this.add(Hn.subscription),this.schedule(Ke,Mt)}function ar(Ke){const{subscriber:z,window:ce,context:je}=Ke;je&&je.action&&je.subscription&&je.action.remove(je.subscription),z.closeWindow(ce)}function Ir(Ke,z){return ce=>ce.lift(new _r(Ke,z))}class _r{constructor(z,ce){this.openings=z,this.closingSelector=ce}call(z,ce){return ce.subscribe(new ts(z,this.openings,this.closingSelector))}}class ts extends M.L{constructor(z,ce,je){super(z),this.openings=ce,this.closingSelector=je,this.contexts=[],this.add(this.openSubscription=(0,S.D)(this,ce,ce))}_next(z){const{contexts:ce}=this;if(ce){const je=ce.length;for(let Mt=0;Mt{let ce;return"function"==typeof Ke[Ke.length-1]&&(ce=Ke.pop()),z.lift(new rs(Ke,ce))}}class rs{constructor(z,ce){this.observables=z,this.project=ce}call(z,ce){return ce.subscribe(new $s(z,this.observables,this.project))}}class $s extends M.L{constructor(z,ce,je){super(z),this.observables=ce,this.project=je,this.toRespond=[];const Mt=ce.length;this.values=new Array(Mt);for(let jt=0;jt0){const jt=Mt.indexOf(je);-1!==jt&&Mt.splice(jt,1)}}notifyComplete(){}_next(z){if(0===this.toRespond.length){const ce=[z,...this.values];this.project?this._tryProject(ce):this.destination.next(ce)}}_tryProject(z){let ce;try{ce=this.project.apply(this,z)}catch(je){return void this.destination.error(je)}this.destination.next(ce)}}var Js=p(1746);function Ms(...Ke){return function(ce){return ce.lift.call((0,Js.$R)(ce,...Ke))}}function Ss(Ke){return z=>z.lift(new Js.mx(Ke))}},8951:ye=>{"use strict";ye.exports=(j,p)=>{if("string"!=typeof j||"string"!=typeof p)throw new TypeError("Expected the arguments to be of type `string`");if(""===p)return[j];const n=j.indexOf(p);return-1===n?[j]:[j.slice(0,n),j.slice(n+p.length)]}},8372:ye=>{"use strict";ye.exports=j=>encodeURIComponent(j).replace(/[!'()*]/g,p=>`%${p.charCodeAt(0).toString(16).toUpperCase()}`)},8926:ye=>{function j(n,f,v,m,o,d,u){try{var h=n[d](u),r=h.value}catch(s){return void v(s)}h.done?f(r):Promise.resolve(r).then(m,o)}ye.exports=function(n){return function(){var f=this,v=arguments;return new Promise(function(m,o){var d=n.apply(f,v);function u(r){j(d,m,o,u,h,"next",r)}function h(r){j(d,m,o,u,h,"throw",r)}u(void 0)})}},ye.exports.default=ye.exports,ye.exports.__esModule=!0},655:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{__extends:()=>f,__assign:()=>v,__rest:()=>m,__decorate:()=>o,__param:()=>d,__metadata:()=>u,__awaiter:()=>h,__generator:()=>r,__createBinding:()=>s,__exportStar:()=>i,__values:()=>c,__read:()=>l,__spread:()=>g,__spreadArrays:()=>y,__spreadArray:()=>E,__await:()=>T,__asyncGenerator:()=>D,__asyncDelegator:()=>O,__asyncValues:()=>w,__makeTemplateObject:()=>A,__importStar:()=>M,__importDefault:()=>I,__classPrivateFieldGet:()=>b,__classPrivateFieldSet:()=>L});var n=function(F,ne){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var te in Q)Object.prototype.hasOwnProperty.call(Q,te)&&(Y[te]=Q[te])})(F,ne)};function f(F,ne){if("function"!=typeof ne&&null!==ne)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function Y(){this.constructor=F}n(F,ne),F.prototype=null===ne?Object.create(ne):(Y.prototype=ne.prototype,new Y)}var v=function(){return v=Object.assign||function(ne){for(var Y,Q=1,te=arguments.length;Q=0;ie--)(J=F[ie])&&($=(te<3?J($):te>3?J(ne,Y,$):J(ne,Y))||$);return te>3&&$&&Object.defineProperty(ne,Y,$),$}function d(F,ne){return function(Y,Q){ne(Y,Q,F)}}function u(F,ne){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(F,ne)}function h(F,ne,Y,Q){return new(Y||(Y=Promise))(function($,J){function ie(Oe){try{le(Q.next(Oe))}catch(Le){J(Le)}}function ae(Oe){try{le(Q.throw(Oe))}catch(Le){J(Le)}}function le(Oe){Oe.done?$(Oe.value):function($){return $ instanceof Y?$:new Y(function(J){J($)})}(Oe.value).then(ie,ae)}le((Q=Q.apply(F,ne||[])).next())})}function r(F,ne){var Q,te,$,J,Y={label:0,sent:function(){if(1&$[0])throw $[1];return $[1]},trys:[],ops:[]};return J={next:ie(0),throw:ie(1),return:ie(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function ie(le){return function(Oe){return function(le){if(Q)throw new TypeError("Generator is already executing.");for(;Y;)try{if(Q=1,te&&($=2&le[0]?te.return:le[0]?te.throw||(($=te.return)&&$.call(te),0):te.next)&&!($=$.call(te,le[1])).done)return $;switch(te=0,$&&(le=[2&le[0],$.value]),le[0]){case 0:case 1:$=le;break;case 4:return Y.label++,{value:le[1],done:!1};case 5:Y.label++,te=le[1],le=[0];continue;case 7:le=Y.ops.pop(),Y.trys.pop();continue;default:if(!($=($=Y.trys).length>0&&$[$.length-1])&&(6===le[0]||2===le[0])){Y=0;continue}if(3===le[0]&&(!$||le[1]>$[0]&&le[1]<$[3])){Y.label=le[1];break}if(6===le[0]&&Y.label<$[1]){Y.label=$[1],$=le;break}if($&&Y.label<$[2]){Y.label=$[2],Y.ops.push(le);break}$[2]&&Y.ops.pop(),Y.trys.pop();continue}le=ne.call(F,Y)}catch(Oe){le=[6,Oe],te=0}finally{Q=$=0}if(5&le[0])throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}([le,Oe])}}}var s=Object.create?function(F,ne,Y,Q){void 0===Q&&(Q=Y),Object.defineProperty(F,Q,{enumerable:!0,get:function(){return ne[Y]}})}:function(F,ne,Y,Q){void 0===Q&&(Q=Y),F[Q]=ne[Y]};function i(F,ne){for(var Y in F)"default"!==Y&&!Object.prototype.hasOwnProperty.call(ne,Y)&&s(ne,F,Y)}function c(F){var ne="function"==typeof Symbol&&Symbol.iterator,Y=ne&&F[ne],Q=0;if(Y)return Y.call(F);if(F&&"number"==typeof F.length)return{next:function(){return F&&Q>=F.length&&(F=void 0),{value:F&&F[Q++],done:!F}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(F,ne){var Y="function"==typeof Symbol&&F[Symbol.iterator];if(!Y)return F;var te,J,Q=Y.call(F),$=[];try{for(;(void 0===ne||ne-- >0)&&!(te=Q.next()).done;)$.push(te.value)}catch(ie){J={error:ie}}finally{try{te&&!te.done&&(Y=Q.return)&&Y.call(Q)}finally{if(J)throw J.error}}return $}function g(){for(var F=[],ne=0;ne1||ie(Ye,Je)})})}function ie(Ye,Je){try{!function(Ye){Ye.value instanceof T?Promise.resolve(Ye.value.v).then(le,Oe):Le($[0][2],Ye)}(Q[Ye](Je))}catch(gt){Le($[0][3],gt)}}function le(Ye){ie("next",Ye)}function Oe(Ye){ie("throw",Ye)}function Le(Ye,Je){Ye(Je),$.shift(),$.length&&ie($[0][0],$[0][1])}}function O(F){var ne,Y;return ne={},Q("next"),Q("throw",function(te){throw te}),Q("return"),ne[Symbol.iterator]=function(){return this},ne;function Q(te,$){ne[te]=F[te]?function(J){return(Y=!Y)?{value:T(F[te](J)),done:"return"===te}:$?$(J):J}:$}}function w(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y,ne=F[Symbol.asyncIterator];return ne?ne.call(F):(F=c(F),Y={},Q("next"),Q("throw"),Q("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function Q($){Y[$]=F[$]&&function(J){return new Promise(function(ie,ae){!function($,J,ie,ae){Promise.resolve(ae).then(function(le){$({value:le,done:ie})},J)}(ie,ae,(J=F[$](J)).done,J.value)})}}}function A(F,ne){return Object.defineProperty?Object.defineProperty(F,"raw",{value:ne}):F.raw=ne,F}var S=Object.create?function(F,ne){Object.defineProperty(F,"default",{enumerable:!0,value:ne})}:function(F,ne){F.default=ne};function M(F){if(F&&F.__esModule)return F;var ne={};if(null!=F)for(var Y in F)"default"!==Y&&Object.prototype.hasOwnProperty.call(F,Y)&&s(ne,F,Y);return S(ne,F),ne}function I(F){return F&&F.__esModule?F:{default:F}}function b(F,ne){if(!ne.has(F))throw new TypeError("attempted to get private field on non-instance");return ne.get(F)}function L(F,ne,Y){if(!ne.has(F))throw new TypeError("attempted to set private field on non-instance");return ne.set(F,Y),Y}},1777:(ye,j,p)=>{"use strict";p.d(j,{l3:()=>v,_j:()=>n,LC:()=>f,ZN:()=>D,jt:()=>o,pV:()=>l,F4:()=>s,IO:()=>y,vP:()=>u,SB:()=>r,oB:()=>h,eR:()=>i,X$:()=>m,ZE:()=>O,k1:()=>w});class n{}class f{}const v="*";function m(A,S){return{type:7,name:A,definitions:S,options:{}}}function o(A,S=null){return{type:4,styles:S,timings:A}}function u(A,S=null){return{type:2,steps:A,options:S}}function h(A){return{type:6,styles:A,offset:null}}function r(A,S,M){return{type:0,name:A,styles:S,options:M}}function s(A){return{type:5,steps:A}}function i(A,S,M=null){return{type:1,expr:A,animation:S,options:M}}function l(A=null){return{type:9,options:A}}function y(A,S,M=null){return{type:11,selector:A,animation:S,options:M}}function T(A){Promise.resolve(null).then(A)}class D{constructor(S=0,M=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=S+M}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(S=>S()),this._onDoneFns=[])}onStart(S){this._onStartFns.push(S)}onDone(S){this._onDoneFns.push(S)}onDestroy(S){this._onDestroyFns.push(S)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){T(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(S=>S()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(S=>S()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(S){this._position=this.totalTime?S*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(S){const M="start"==S?this._onStartFns:this._onDoneFns;M.forEach(I=>I()),M.length=0}}class O{constructor(S){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=S;let M=0,I=0,b=0;const L=this.players.length;0==L?T(()=>this._onFinish()):this.players.forEach(F=>{F.onDone(()=>{++M==L&&this._onFinish()}),F.onDestroy(()=>{++I==L&&this._onDestroy()}),F.onStart(()=>{++b==L&&this._onStart()})}),this.totalTime=this.players.reduce((F,ne)=>Math.max(F,ne.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(S=>S()),this._onDoneFns=[])}init(){this.players.forEach(S=>S.init())}onStart(S){this._onStartFns.push(S)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(S=>S()),this._onStartFns=[])}onDone(S){this._onDoneFns.push(S)}onDestroy(S){this._onDestroyFns.push(S)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(S=>S.play())}pause(){this.players.forEach(S=>S.pause())}restart(){this.players.forEach(S=>S.restart())}finish(){this._onFinish(),this.players.forEach(S=>S.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(S=>S.destroy()),this._onDestroyFns.forEach(S=>S()),this._onDestroyFns=[])}reset(){this.players.forEach(S=>S.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(S){const M=S*this.totalTime;this.players.forEach(I=>{const b=I.totalTime?Math.min(1,M/I.totalTime):1;I.setPosition(b)})}getPosition(){const S=this.players.reduce((M,I)=>null===M||I.totalTime>M.totalTime?I:M,null);return null!=S?S.getPosition():0}beforeDestroy(){this.players.forEach(S=>{S.beforeDestroy&&S.beforeDestroy()})}triggerCallback(S){const M="start"==S?this._onStartFns:this._onDoneFns;M.forEach(I=>I()),M.length=0}}const w="!"},5664:(ye,j,p)=>{"use strict";p.d(j,{rt:()=>Ne,s1:()=>J,$s:()=>Y,Qr:()=>Dt,kH:()=>Lt,mK:()=>Tt,Em:()=>ie,tE:()=>xt,qm:()=>qt,Kd:()=>tn,X6:()=>x,yG:()=>U});var n=p(9808),f=p(5e3),v=p(8929),m=p(2654),o=p(591),d=p(1086),u=p(1159),h=p(2868),r=p(13),s=p(2198),i=p(4850),c=p(2986),l=p(1307),g=p(5778),y=p(7625),E=p(3191),T=p(925),D=p(7144);function S(Se,ee){return(Se.getAttribute(ee)||"").match(/\S+/g)||[]}const M="cdk-describedby-message-container",I="cdk-describedby-message",b="cdk-describedby-host";let L=0;const F=new Map;let ne=null,Y=(()=>{class Se{constructor(re){this._document=re}describe(re,Me,ze){if(!this._canBeDescribed(re,Me))return;const It=Q(Me,ze);"string"!=typeof Me?(te(Me),F.set(It,{messageElement:Me,referenceCount:0})):F.has(It)||this._createMessageElement(Me,ze),this._isElementDescribedByMessage(re,It)||this._addMessageReference(re,It)}removeDescription(re,Me,ze){if(!Me||!this._isElementNode(re))return;const It=Q(Me,ze);if(this._isElementDescribedByMessage(re,It)&&this._removeMessageReference(re,It),"string"==typeof Me){const Qt=F.get(It);Qt&&0===Qt.referenceCount&&this._deleteMessageElement(It)}ne&&0===ne.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const re=this._document.querySelectorAll(`[${b}]`);for(let Me=0;Me0!=ze.indexOf(I));re.setAttribute("aria-describedby",Me.join(" "))}_addMessageReference(re,Me){const ze=F.get(Me);(function(Se,ee,re){const Me=S(Se,ee);Me.some(ze=>ze.trim()==re.trim())||(Me.push(re.trim()),Se.setAttribute(ee,Me.join(" ")))})(re,"aria-describedby",ze.messageElement.id),re.setAttribute(b,""),ze.referenceCount++}_removeMessageReference(re,Me){const ze=F.get(Me);ze.referenceCount--,function(Se,ee,re){const ze=S(Se,ee).filter(It=>It!=re.trim());ze.length?Se.setAttribute(ee,ze.join(" ")):Se.removeAttribute(ee)}(re,"aria-describedby",ze.messageElement.id),re.removeAttribute(b)}_isElementDescribedByMessage(re,Me){const ze=S(re,"aria-describedby"),It=F.get(Me),Qt=It&&It.messageElement.id;return!!Qt&&-1!=ze.indexOf(Qt)}_canBeDescribed(re,Me){if(!this._isElementNode(re))return!1;if(Me&&"object"==typeof Me)return!0;const ze=null==Me?"":`${Me}`.trim(),It=re.getAttribute("aria-label");return!(!ze||It&&It.trim()===ze)}_isElementNode(re){return re.nodeType===this._document.ELEMENT_NODE}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function Q(Se,ee){return"string"==typeof Se?`${ee||""}/${Se}`:Se}function te(Se){Se.id||(Se.id=`${I}-${L++}`)}class ${constructor(ee){this._items=ee,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.xQ,this._typeaheadSubscription=m.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=re=>re.disabled,this._pressedLetters=[],this.tabOut=new v.xQ,this.change=new v.xQ,ee instanceof f.QueryList&&ee.changes.subscribe(re=>{if(this._activeItem){const ze=re.toArray().indexOf(this._activeItem);ze>-1&&ze!==this._activeItemIndex&&(this._activeItemIndex=ze)}})}skipPredicate(ee){return this._skipPredicateFn=ee,this}withWrap(ee=!0){return this._wrap=ee,this}withVerticalOrientation(ee=!0){return this._vertical=ee,this}withHorizontalOrientation(ee){return this._horizontal=ee,this}withAllowedModifierKeys(ee){return this._allowedModifierKeys=ee,this}withTypeAhead(ee=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(re=>this._pressedLetters.push(re)),(0,r.b)(ee),(0,s.h)(()=>this._pressedLetters.length>0),(0,i.U)(()=>this._pressedLetters.join(""))).subscribe(re=>{const Me=this._getItemsArray();for(let ze=1;ze!ee[It]||this._allowedModifierKeys.indexOf(It)>-1);switch(re){case u.Mf:return void this.tabOut.next();case u.JH:if(this._vertical&&ze){this.setNextItemActive();break}return;case u.LH:if(this._vertical&&ze){this.setPreviousItemActive();break}return;case u.SV:if(this._horizontal&&ze){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case u.oh:if(this._horizontal&&ze){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case u.Sd:if(this._homeAndEnd&&ze){this.setFirstItemActive();break}return;case u.uR:if(this._homeAndEnd&&ze){this.setLastItemActive();break}return;default:return void((ze||(0,u.Vb)(ee,"shiftKey"))&&(ee.key&&1===ee.key.length?this._letterKeyStream.next(ee.key.toLocaleUpperCase()):(re>=u.A&&re<=u.Z||re>=u.xE&&re<=u.aO)&&this._letterKeyStream.next(String.fromCharCode(re))))}this._pressedLetters=[],ee.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(ee){const re=this._getItemsArray(),Me="number"==typeof ee?ee:re.indexOf(ee),ze=re[Me];this._activeItem=null==ze?null:ze,this._activeItemIndex=Me}_setActiveItemByDelta(ee){this._wrap?this._setActiveInWrapMode(ee):this._setActiveInDefaultMode(ee)}_setActiveInWrapMode(ee){const re=this._getItemsArray();for(let Me=1;Me<=re.length;Me++){const ze=(this._activeItemIndex+ee*Me+re.length)%re.length;if(!this._skipPredicateFn(re[ze]))return void this.setActiveItem(ze)}}_setActiveInDefaultMode(ee){this._setActiveItemByIndex(this._activeItemIndex+ee,ee)}_setActiveItemByIndex(ee,re){const Me=this._getItemsArray();if(Me[ee]){for(;this._skipPredicateFn(Me[ee]);)if(!Me[ee+=re])return;this.setActiveItem(ee)}}_getItemsArray(){return this._items instanceof f.QueryList?this._items.toArray():this._items}}class J extends ${setActiveItem(ee){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ee),this.activeItem&&this.activeItem.setActiveStyles()}}class ie extends ${constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ee){return this._origin=ee,this}setActiveItem(ee){super.setActiveItem(ee),this.activeItem&&this.activeItem.focus(this._origin)}}let le=(()=>{class Se{constructor(re){this._platform=re}isDisabled(re){return re.hasAttribute("disabled")}isVisible(re){return function(Se){return!!(Se.offsetWidth||Se.offsetHeight||"function"==typeof Se.getClientRects&&Se.getClientRects().length)}(re)&&"visible"===getComputedStyle(re).visibility}isTabbable(re){if(!this._platform.isBrowser)return!1;const Me=function(Se){try{return Se.frameElement}catch(ee){return null}}(function(Se){return Se.ownerDocument&&Se.ownerDocument.defaultView||window}(re));if(Me&&(-1===ft(Me)||!this.isVisible(Me)))return!1;let ze=re.nodeName.toLowerCase(),It=ft(re);return re.hasAttribute("contenteditable")?-1!==It:!("iframe"===ze||"object"===ze||this._platform.WEBKIT&&this._platform.IOS&&!function(Se){let ee=Se.nodeName.toLowerCase(),re="input"===ee&&Se.type;return"text"===re||"password"===re||"select"===ee||"textarea"===ee}(re))&&("audio"===ze?!!re.hasAttribute("controls")&&-1!==It:"video"===ze?-1!==It&&(null!==It||this._platform.FIREFOX||re.hasAttribute("controls")):re.tabIndex>=0)}isFocusable(re,Me){return function(Se){return!function(Se){return function(Se){return"input"==Se.nodeName.toLowerCase()}(Se)&&"hidden"==Se.type}(Se)&&(function(Se){let ee=Se.nodeName.toLowerCase();return"input"===ee||"select"===ee||"button"===ee||"textarea"===ee}(Se)||function(Se){return function(Se){return"a"==Se.nodeName.toLowerCase()}(Se)&&Se.hasAttribute("href")}(Se)||Se.hasAttribute("contenteditable")||at(Se))}(re)&&!this.isDisabled(re)&&((null==Me?void 0:Me.ignoreVisibility)||this.isVisible(re))}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(T.t4))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function at(Se){if(!Se.hasAttribute("tabindex")||void 0===Se.tabIndex)return!1;let ee=Se.getAttribute("tabindex");return!(!ee||isNaN(parseInt(ee,10)))}function ft(Se){if(!at(Se))return null;const ee=parseInt(Se.getAttribute("tabindex")||"",10);return isNaN(ee)?-1:ee}class _t{constructor(ee,re,Me,ze,It=!1){this._element=ee,this._checker=re,this._ngZone=Me,this._document=ze,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,It||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ee){this._enabled=ee,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ee,this._startAnchor),this._toggleAnchorTabIndex(ee,this._endAnchor))}destroy(){const ee=this._startAnchor,re=this._endAnchor;ee&&(ee.removeEventListener("focus",this.startAnchorListener),ee.remove()),re&&(re.removeEventListener("focus",this.endAnchorListener),re.remove()),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(ee){return new Promise(re=>{this._executeOnStable(()=>re(this.focusInitialElement(ee)))})}focusFirstTabbableElementWhenReady(ee){return new Promise(re=>{this._executeOnStable(()=>re(this.focusFirstTabbableElement(ee)))})}focusLastTabbableElementWhenReady(ee){return new Promise(re=>{this._executeOnStable(()=>re(this.focusLastTabbableElement(ee)))})}_getRegionBoundary(ee){const re=this._element.querySelectorAll(`[cdk-focus-region-${ee}], [cdkFocusRegion${ee}], [cdk-focus-${ee}]`);return"start"==ee?re.length?re[0]:this._getFirstTabbableElement(this._element):re.length?re[re.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ee){const re=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(re){if(!this._checker.isFocusable(re)){const Me=this._getFirstTabbableElement(re);return null==Me||Me.focus(ee),!!Me}return re.focus(ee),!0}return this.focusFirstTabbableElement(ee)}focusFirstTabbableElement(ee){const re=this._getRegionBoundary("start");return re&&re.focus(ee),!!re}focusLastTabbableElement(ee){const re=this._getRegionBoundary("end");return re&&re.focus(ee),!!re}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ee){if(this._checker.isFocusable(ee)&&this._checker.isTabbable(ee))return ee;const re=ee.children;for(let Me=0;Me=0;Me--){const ze=re[Me].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(re[Me]):null;if(ze)return ze}return null}_createAnchor(){const ee=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ee),ee.classList.add("cdk-visually-hidden"),ee.classList.add("cdk-focus-trap-anchor"),ee.setAttribute("aria-hidden","true"),ee}_toggleAnchorTabIndex(ee,re){ee?re.setAttribute("tabindex","0"):re.removeAttribute("tabindex")}toggleAnchors(ee){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ee,this._startAnchor),this._toggleAnchorTabIndex(ee,this._endAnchor))}_executeOnStable(ee){this._ngZone.isStable?ee():this._ngZone.onStable.pipe((0,c.q)(1)).subscribe(ee)}}let At=(()=>{class Se{constructor(re,Me,ze){this._checker=re,this._ngZone=Me,this._document=ze}create(re,Me=!1){return new _t(re,this._checker,this._ngZone,this._document,Me)}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(le),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Tt=(()=>{class Se{constructor(re,Me,ze){this._elementRef=re,this._focusTrapFactory=Me,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(re){this.focusTrap.enabled=(0,E.Ig)(re)}get autoCapture(){return this._autoCapture}set autoCapture(re){this._autoCapture=(0,E.Ig)(re)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(re){const Me=re.autoCapture;Me&&!Me.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,T.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(At),f.\u0275\u0275directiveInject(n.DOCUMENT))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[f.\u0275\u0275NgOnChangesFeature]}),Se})();function x(Se){return 0===Se.offsetX&&0===Se.offsetY}function U(Se){const ee=Se.touches&&Se.touches[0]||Se.changedTouches&&Se.changedTouches[0];return!(!ee||-1!==ee.identifier||null!=ee.radiusX&&1!==ee.radiusX||null!=ee.radiusY&&1!==ee.radiusY)}const Z=new f.InjectionToken("cdk-input-modality-detector-options"),_e={ignoreKeys:[u.zL,u.jx,u.b2,u.MW,u.JU]},$e=(0,T.i$)({passive:!0,capture:!0});let st=(()=>{class Se{constructor(re,Me,ze,It){this._platform=re,this._mostRecentTarget=null,this._modality=new o.X(null),this._lastTouchMs=0,this._onKeydown=Qt=>{var cn,An;(null===(An=null===(cn=this._options)||void 0===cn?void 0:cn.ignoreKeys)||void 0===An?void 0:An.some(lt=>lt===Qt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,T.sA)(Qt))},this._onMousedown=Qt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(x(Qt)?"keyboard":"mouse"),this._mostRecentTarget=(0,T.sA)(Qt))},this._onTouchstart=Qt=>{U(Qt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,T.sA)(Qt))},this._options=Object.assign(Object.assign({},_e),It),this.modalityDetected=this._modality.pipe((0,l.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),re.isBrowser&&Me.runOutsideAngular(()=>{ze.addEventListener("keydown",this._onKeydown,$e),ze.addEventListener("mousedown",this._onMousedown,$e),ze.addEventListener("touchstart",this._onTouchstart,$e)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,$e),document.removeEventListener("mousedown",this._onMousedown,$e),document.removeEventListener("touchstart",this._onTouchstart,$e))}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(T.t4),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(Z,8))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ut=new f.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Xt=new f.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let tn=(()=>{class Se{constructor(re,Me,ze,It){this._ngZone=Me,this._defaultOptions=It,this._document=ze,this._liveElement=re||this._createLiveElement()}announce(re,...Me){const ze=this._defaultOptions;let It,Qt;return 1===Me.length&&"number"==typeof Me[0]?Qt=Me[0]:[It,Qt]=Me,this.clear(),clearTimeout(this._previousTimeout),It||(It=ze&&ze.politeness?ze.politeness:"polite"),null==Qt&&ze&&(Qt=ze.duration),this._liveElement.setAttribute("aria-live",It),this._ngZone.runOutsideAngular(()=>new Promise(cn=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=re,cn(),"number"==typeof Qt&&(this._previousTimeout=setTimeout(()=>this.clear(),Qt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var re;clearTimeout(this._previousTimeout),null===(re=this._liveElement)||void 0===re||re.remove(),this._liveElement=null}_createLiveElement(){const re="cdk-live-announcer-element",Me=this._document.getElementsByClassName(re),ze=this._document.createElement("div");for(let It=0;It{class Se{constructor(re,Me,ze,It){this._elementRef=re,this._liveAnnouncer=Me,this._contentObserver=ze,this._ngZone=It,this._politeness="polite"}get politeness(){return this._politeness}set politeness(re){this._politeness="off"===re||"assertive"===re?re:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const Me=this._elementRef.nativeElement.textContent;Me!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(Me,this._politeness),this._previousAnnouncedText=Me)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(tn),f.\u0275\u0275directiveInject(D.yq),f.\u0275\u0275directiveInject(f.NgZone))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Se})();const Kt=new f.InjectionToken("cdk-focus-monitor-default-options"),et=(0,T.i$)({passive:!0,capture:!0});let xt=(()=>{class Se{constructor(re,Me,ze,It,Qt){this._ngZone=re,this._platform=Me,this._inputModalityDetector=ze,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new v.xQ,this._rootNodeFocusAndBlurListener=cn=>{const An=(0,T.sA)(cn),lt="focus"===cn.type?this._onFocus:this._onBlur;for(let ct=An;ct;ct=ct.parentElement)lt.call(this,cn,ct)},this._document=It,this._detectionMode=(null==Qt?void 0:Qt.detectionMode)||0}monitor(re,Me=!1){const ze=(0,E.fI)(re);if(!this._platform.isBrowser||1!==ze.nodeType)return(0,d.of)(null);const It=(0,T.kV)(ze)||this._getDocument(),Qt=this._elementInfo.get(ze);if(Qt)return Me&&(Qt.checkChildren=!0),Qt.subject;const cn={checkChildren:Me,subject:new v.xQ,rootNode:It};return this._elementInfo.set(ze,cn),this._registerGlobalListeners(cn),cn.subject}stopMonitoring(re){const Me=(0,E.fI)(re),ze=this._elementInfo.get(Me);ze&&(ze.subject.complete(),this._setClasses(Me),this._elementInfo.delete(Me),this._removeGlobalListeners(ze))}focusVia(re,Me,ze){const It=(0,E.fI)(re);It===this._getDocument().activeElement?this._getClosestElementsInfo(It).forEach(([cn,An])=>this._originChanged(cn,Me,An)):(this._setOrigin(Me),"function"==typeof It.focus&&It.focus(ze))}ngOnDestroy(){this._elementInfo.forEach((re,Me)=>this.stopMonitoring(Me))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(re){return 1===this._detectionMode||!!(null==re?void 0:re.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(re,Me){re.classList.toggle("cdk-focused",!!Me),re.classList.toggle("cdk-touch-focused","touch"===Me),re.classList.toggle("cdk-keyboard-focused","keyboard"===Me),re.classList.toggle("cdk-mouse-focused","mouse"===Me),re.classList.toggle("cdk-program-focused","program"===Me)}_setOrigin(re,Me=!1){this._ngZone.runOutsideAngular(()=>{this._origin=re,this._originFromTouchInteraction="touch"===re&&Me,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(re,Me){const ze=this._elementInfo.get(Me),It=(0,T.sA)(re);!ze||!ze.checkChildren&&Me!==It||this._originChanged(Me,this._getFocusOrigin(It),ze)}_onBlur(re,Me){const ze=this._elementInfo.get(Me);!ze||ze.checkChildren&&re.relatedTarget instanceof Node&&Me.contains(re.relatedTarget)||(this._setClasses(Me),this._emitOrigin(ze.subject,null))}_emitOrigin(re,Me){this._ngZone.run(()=>re.next(Me))}_registerGlobalListeners(re){if(!this._platform.isBrowser)return;const Me=re.rootNode,ze=this._rootNodeFocusListenerCount.get(Me)||0;ze||this._ngZone.runOutsideAngular(()=>{Me.addEventListener("focus",this._rootNodeFocusAndBlurListener,et),Me.addEventListener("blur",this._rootNodeFocusAndBlurListener,et)}),this._rootNodeFocusListenerCount.set(Me,ze+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,y.R)(this._stopInputModalityDetector)).subscribe(It=>{this._setOrigin(It,!0)}))}_removeGlobalListeners(re){const Me=re.rootNode;if(this._rootNodeFocusListenerCount.has(Me)){const ze=this._rootNodeFocusListenerCount.get(Me);ze>1?this._rootNodeFocusListenerCount.set(Me,ze-1):(Me.removeEventListener("focus",this._rootNodeFocusAndBlurListener,et),Me.removeEventListener("blur",this._rootNodeFocusAndBlurListener,et),this._rootNodeFocusListenerCount.delete(Me))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(re,Me,ze){this._setClasses(re,Me),this._emitOrigin(ze.subject,Me),this._lastFocusOrigin=Me}_getClosestElementsInfo(re){const Me=[];return this._elementInfo.forEach((ze,It)=>{(It===re||ze.checkChildren&&It.contains(re))&&Me.push([It,ze])}),Me}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(T.t4),f.\u0275\u0275inject(st),f.\u0275\u0275inject(n.DOCUMENT,8),f.\u0275\u0275inject(Kt,8))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Lt=(()=>{class Se{constructor(re,Me){this._elementRef=re,this._focusMonitor=Me,this.cdkFocusChange=new f.EventEmitter}ngAfterViewInit(){const re=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(re,1===re.nodeType&&re.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Me=>this.cdkFocusChange.emit(Me))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(xt))},Se.\u0275dir=f.\u0275\u0275defineDirective({type:Se,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Se})();const Qe="cdk-high-contrast-black-on-white",mt="cdk-high-contrast-white-on-black",Vt="cdk-high-contrast-active";let qt=(()=>{class Se{constructor(re,Me){this._platform=re,this._document=Me}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const re=this._document.createElement("div");re.style.backgroundColor="rgb(1,2,3)",re.style.position="absolute",this._document.body.appendChild(re);const Me=this._document.defaultView||window,ze=Me&&Me.getComputedStyle?Me.getComputedStyle(re):null,It=(ze&&ze.backgroundColor||"").replace(/ /g,"");switch(re.remove(),It){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const re=this._document.body.classList;re.remove(Vt),re.remove(Qe),re.remove(mt),this._hasCheckedHighContrastMode=!0;const Me=this.getHighContrastMode();1===Me?(re.add(Vt),re.add(Qe)):2===Me&&(re.add(Vt),re.add(mt))}}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(T.t4),f.\u0275\u0275inject(n.DOCUMENT))},Se.\u0275prov=f.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Ne=(()=>{class Se{constructor(re){re._applyBodyHighContrastModeCssClasses()}}return Se.\u0275fac=function(re){return new(re||Se)(f.\u0275\u0275inject(qt))},Se.\u0275mod=f.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=f.\u0275\u0275defineInjector({imports:[[T.ud,D.Q8]]}),Se})()},226:(ye,j,p)=>{"use strict";p.d(j,{vT:()=>r,Is:()=>u});var n=p(5e3),f=p(9808);const v=new n.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,n.inject)(f.DOCUMENT)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let u=(()=>{class s{constructor(c){if(this.value="ltr",this.change=new n.EventEmitter,c){const g=c.documentElement?c.documentElement.dir:null;this.value=function(s){const i=(null==s?void 0:s.toLowerCase())||"";return"auto"===i&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?o.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((c.body?c.body.dir:null)||g||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(c){return new(c||s)(n.\u0275\u0275inject(v,8))},s.\u0275prov=n.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),r=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=n.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=n.\u0275\u0275defineInjector({}),s})()},3191:(ye,j,p)=>{"use strict";p.d(j,{t6:()=>m,Eq:()=>o,Ig:()=>f,HM:()=>d,fI:()=>u,su:()=>v,du:()=>h});var n=p(5e3);function f(r){return null!=r&&"false"!=`${r}`}function v(r,s=0){return m(r)?Number(r):s}function m(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function o(r){return Array.isArray(r)?r:[r]}function d(r){return null==r?"":"string"==typeof r?r:`${r}px`}function u(r){return r instanceof n.ElementRef?r.nativeElement:r}function h(r,s=/\s+/){const i=[];if(null!=r){const c=Array.isArray(r)?r:`${r}`.split(s);for(const l of c){const g=`${l}`.trim();g&&i.push(g)}}return i}},449:(ye,j,p)=>{"use strict";p.d(j,{o2:()=>v,Ov:()=>h,A8:()=>s,yy:()=>d,eX:()=>u,k:()=>i,Z9:()=>m});var n=p(8929),f=p(5e3);class v{}function m(c){return c&&"function"==typeof c.connect}class d{applyChanges(l,g,y,E,T){l.forEachOperation((D,O,w)=>{let A,S;if(null==D.previousIndex){const M=y(D,O,w);A=g.createEmbeddedView(M.templateRef,M.context,M.index),S=1}else null==w?(g.remove(O),S=3):(A=g.get(O),g.move(A,w),S=2);T&&T({context:null==A?void 0:A.context,operation:S,record:D})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(l,g,y,E,T){l.forEachOperation((D,O,w)=>{let A,S;null==D.previousIndex?(A=this._insertView(()=>y(D,O,w),w,g,E(D)),S=A?1:0):null==w?(this._detachAndCacheView(O,g),S=3):(A=this._moveView(O,w,g,E(D)),S=2),T&&T({context:null==A?void 0:A.context,operation:S,record:D})})}detach(){for(const l of this._viewCache)l.destroy();this._viewCache=[]}_insertView(l,g,y,E){const T=this._insertViewFromCache(g,y);if(T)return void(T.context.$implicit=E);const D=l();return y.createEmbeddedView(D.templateRef,D.context,D.index)}_detachAndCacheView(l,g){const y=g.detach(l);this._maybeCacheView(y,g)}_moveView(l,g,y,E){const T=y.get(l);return y.move(T,g),T.context.$implicit=E,T}_maybeCacheView(l,g){if(this._viewCache.lengththis._markSelected(E)):this._markSelected(g[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...l){this._verifyValueAssignment(l),l.forEach(g=>this._markSelected(g)),this._emitChangeEvent()}deselect(...l){this._verifyValueAssignment(l),l.forEach(g=>this._unmarkSelected(g)),this._emitChangeEvent()}toggle(l){this.isSelected(l)?this.deselect(l):this.select(l)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(l){return this._selection.has(l)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(l){this._multiple&&this.selected&&this._selected.sort(l)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(l){this.isSelected(l)||(this._multiple||this._unmarkAll(),this._selection.add(l),this._emitChanges&&this._selectedToEmit.push(l))}_unmarkSelected(l){this.isSelected(l)&&(this._selection.delete(l),this._emitChanges&&this._deselectedToEmit.push(l))}_unmarkAll(){this.isEmpty()||this._selection.forEach(l=>this._unmarkSelected(l))}_verifyValueAssignment(l){}}let s=(()=>{class c{constructor(){this._listeners=[]}notify(g,y){for(let E of this._listeners)E(g,y)}listen(g){return this._listeners.push(g),()=>{this._listeners=this._listeners.filter(y=>g!==y)}}ngOnDestroy(){this._listeners=[]}}return c.\u0275fac=function(g){return new(g||c)},c.\u0275prov=f.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const i=new f.InjectionToken("_ViewRepeater")},1159:(ye,j,p)=>{"use strict";p.d(j,{A:()=>Ye,zL:()=>h,ZH:()=>f,jx:()=>u,JH:()=>w,uR:()=>y,K5:()=>o,hY:()=>i,Sd:()=>E,oh:()=>T,b2:()=>ti,MW:()=>St,aO:()=>ie,VM:()=>g,Ku:()=>l,SV:()=>O,JU:()=>d,L_:()=>c,Mf:()=>v,LH:()=>D,Z:()=>ut,xE:()=>b,Vb:()=>jn});const f=8,v=9,o=13,d=16,u=17,h=18,i=27,c=32,l=33,g=34,y=35,E=36,T=37,D=38,O=39,w=40,b=48,ie=57,Ye=65,ut=90,St=91,ti=224;function jn(Qn,...kn){return kn.length?kn.some(Mi=>Qn[Mi]):Qn.altKey||Qn.shiftKey||Qn.ctrlKey||Qn.metaKey}},7144:(ye,j,p)=>{"use strict";p.d(j,{wD:()=>h,yq:()=>u,Q8:()=>r});var n=p(3191),f=p(5e3),v=p(6498),m=p(8929),o=p(13);let d=(()=>{class s{create(c){return"undefined"==typeof MutationObserver?null:new MutationObserver(c)}}return s.\u0275fac=function(c){return new(c||s)},s.\u0275prov=f.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),u=(()=>{class s{constructor(c){this._mutationObserverFactory=c,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((c,l)=>this._cleanupObserver(l))}observe(c){const l=(0,n.fI)(c);return new v.y(g=>{const E=this._observeElement(l).subscribe(g);return()=>{E.unsubscribe(),this._unobserveElement(l)}})}_observeElement(c){if(this._observedElements.has(c))this._observedElements.get(c).count++;else{const l=new m.xQ,g=this._mutationObserverFactory.create(y=>l.next(y));g&&g.observe(c,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(c,{observer:g,stream:l,count:1})}return this._observedElements.get(c).stream}_unobserveElement(c){this._observedElements.has(c)&&(this._observedElements.get(c).count--,this._observedElements.get(c).count||this._cleanupObserver(c))}_cleanupObserver(c){if(this._observedElements.has(c)){const{observer:l,stream:g}=this._observedElements.get(c);l&&l.disconnect(),g.complete(),this._observedElements.delete(c)}}}return s.\u0275fac=function(c){return new(c||s)(f.\u0275\u0275inject(d))},s.\u0275prov=f.\u0275\u0275defineInjectable({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),h=(()=>{class s{constructor(c,l,g){this._contentObserver=c,this._elementRef=l,this._ngZone=g,this.event=new f.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(c){this._disabled=(0,n.Ig)(c),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(c){this._debounce=(0,n.su)(c),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const c=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?c.pipe((0,o.b)(this.debounce)):c).subscribe(this.event)})}_unsubscribe(){var c;null===(c=this._currentSubscription)||void 0===c||c.unsubscribe()}}return s.\u0275fac=function(c){return new(c||s)(f.\u0275\u0275directiveInject(u),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(f.NgZone))},s.\u0275dir=f.\u0275\u0275defineDirective({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),r=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=f.\u0275\u0275defineNgModule({type:s}),s.\u0275inj=f.\u0275\u0275defineInjector({providers:[d]}),s})()},1314:(ye,j,p)=>{"use strict";p.d(j,{pI:()=>_t,xu:()=>ot,_G:()=>ie,aV:()=>ft,X_:()=>I,U8:()=>Bt});var n=p(9071),f=p(9808),v=p(5e3),m=p(3191),o=p(925),d=p(226),u=p(7429),h=p(8929),r=p(2654),s=p(6787),i=p(2986),c=p(7625),l=p(4290),g=p(1159);const y=(0,o.Mq)();class E{constructor(fe,H){this._viewportRuler=fe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=H}attach(){}enable(){if(this._canBeEnabled()){const fe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=fe.style.left||"",this._previousHTMLStyles.top=fe.style.top||"",fe.style.left=(0,m.HM)(-this._previousScrollPosition.left),fe.style.top=(0,m.HM)(-this._previousScrollPosition.top),fe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const fe=this._document.documentElement,x=fe.style,U=this._document.body.style,Z=x.scrollBehavior||"",_e=U.scrollBehavior||"";this._isEnabled=!1,x.left=this._previousHTMLStyles.left,x.top=this._previousHTMLStyles.top,fe.classList.remove("cdk-global-scrollblock"),y&&(x.scrollBehavior=U.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),y&&(x.scrollBehavior=Z,U.scrollBehavior=_e)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const H=this._document.body,x=this._viewportRuler.getViewportSize();return H.scrollHeight>x.height||H.scrollWidth>x.width}}class D{constructor(fe,H,x,U){this._scrollDispatcher=fe,this._ngZone=H,this._viewportRuler=x,this._config=U,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(fe){this._overlayRef=fe}enable(){if(this._scrollSubscription)return;const fe=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=fe.subscribe(()=>{const H=this._viewportRuler.getViewportScrollPosition().top;Math.abs(H-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=fe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class O{enable(){}disable(){}attach(){}}function w(Ee,fe){return fe.some(H=>Ee.bottomH.bottom||Ee.rightH.right)}function A(Ee,fe){return fe.some(H=>Ee.topH.bottom||Ee.leftH.right)}class S{constructor(fe,H,x,U){this._scrollDispatcher=fe,this._viewportRuler=H,this._ngZone=x,this._config=U,this._scrollSubscription=null}attach(fe){this._overlayRef=fe}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 H=this._overlayRef.overlayElement.getBoundingClientRect(),{width:x,height:U}=this._viewportRuler.getViewportSize();w(H,[{width:x,height:U,bottom:U,right:x,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 M=(()=>{class Ee{constructor(H,x,U,Z){this._scrollDispatcher=H,this._viewportRuler=x,this._ngZone=U,this.noop=()=>new O,this.close=_e=>new D(this._scrollDispatcher,this._ngZone,this._viewportRuler,_e),this.block=()=>new E(this._viewportRuler,this._document),this.reposition=_e=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,_e),this._document=Z}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(n.mF),v.\u0275\u0275inject(n.rL),v.\u0275\u0275inject(v.NgZone),v.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();class I{constructor(fe){if(this.scrollStrategy=new O,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,fe){const H=Object.keys(fe);for(const x of H)void 0!==fe[x]&&(this[x]=fe[x])}}}class F{constructor(fe,H){this.connectionPair=fe,this.scrollableViewProperties=H}}class Q{constructor(fe,H,x,U,Z,_e,Be,$e,st){this._portalOutlet=fe,this._host=H,this._pane=x,this._config=U,this._ngZone=Z,this._keyboardDispatcher=_e,this._document=Be,this._location=$e,this._outsideClickDispatcher=st,this._backdropElement=null,this._backdropClick=new h.xQ,this._attachments=new h.xQ,this._detachments=new h.xQ,this._locationChanges=r.w.EMPTY,this._backdropClickHandler=ut=>this._backdropClick.next(ut),this._keydownEvents=new h.xQ,this._outsidePointerEvents=new h.xQ,U.scrollStrategy&&(this._scrollStrategy=U.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=U.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(fe){let H=this._portalOutlet.attach(fe);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((0,i.q)(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),H}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const fe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),fe}dispose(){var fe;const H=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),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),null===(fe=this._host)||void 0===fe||fe.remove(),this._previousHostParent=this._pane=this._host=null,H&&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(fe){fe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=fe,this.hasAttached()&&(fe.attach(this),this.updatePosition()))}updateSize(fe){this._config=Object.assign(Object.assign({},this._config),fe),this._updateElementSize()}setDirection(fe){this._config=Object.assign(Object.assign({},this._config),{direction:fe}),this._updateElementDirection()}addPanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!0)}removePanelClass(fe){this._pane&&this._toggleClasses(this._pane,fe,!1)}getDirection(){const fe=this._config.direction;return fe?"string"==typeof fe?fe:fe.value:"ltr"}updateScrollStrategy(fe){fe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=fe,this.hasAttached()&&(fe.attach(this),fe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const fe=this._pane.style;fe.width=(0,m.HM)(this._config.width),fe.height=(0,m.HM)(this._config.height),fe.minWidth=(0,m.HM)(this._config.minWidth),fe.minHeight=(0,m.HM)(this._config.minHeight),fe.maxWidth=(0,m.HM)(this._config.maxWidth),fe.maxHeight=(0,m.HM)(this._config.maxHeight)}_togglePointerEvents(fe){this._pane.style.pointerEvents=fe?"":"none"}_attachBackdrop(){const fe="cdk-overlay-backdrop-showing";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(fe)})}):this._backdropElement.classList.add(fe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const fe=this._backdropElement;if(!fe)return;let H;const x=()=>{fe&&(fe.removeEventListener("click",this._backdropClickHandler),fe.removeEventListener("transitionend",x),this._disposeBackdrop(fe)),this._config.backdropClass&&this._toggleClasses(fe,this._config.backdropClass,!1),clearTimeout(H)};fe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{fe.addEventListener("transitionend",x)}),fe.style.pointerEvents="none",H=this._ngZone.runOutsideAngular(()=>setTimeout(x,500))}_toggleClasses(fe,H,x){const U=(0,m.Eq)(H||[]).filter(Z=>!!Z);U.length&&(x?fe.classList.add(...U):fe.classList.remove(...U))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const fe=this._ngZone.onStable.pipe((0,c.R)((0,s.T)(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._host.remove()),fe.unsubscribe())})})}_disposeScrollStrategy(){const fe=this._scrollStrategy;fe&&(fe.disable(),fe.detach&&fe.detach())}_disposeBackdrop(fe){fe&&(fe.remove(),this._backdropElement===fe&&(this._backdropElement=null))}}let te=(()=>{class Ee{constructor(H,x){this._platform=x,this._document=H}ngOnDestroy(){var H;null===(H=this._containerElement)||void 0===H||H.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const H="cdk-overlay-container";if(this._platform.isBrowser||(0,o.Oy)()){const U=this._document.querySelectorAll(`.${H}[platform="server"], .${H}[platform="test"]`);for(let Z=0;Z{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 fe=this._originRect,H=this._overlayRect,x=this._viewportRect,U=[];let Z;for(let _e of this._preferredPositions){let Be=this._getOriginPoint(fe,_e),$e=this._getOverlayPoint(Be,H,_e),st=this._getOverlayFit($e,H,x,_e);if(st.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(_e,Be);this._canFitWithFlexibleDimensions(st,$e,x)?U.push({position:_e,origin:Be,overlayRect:H,boundingBoxRect:this._calculateBoundingBoxRect(Be,_e)}):(!Z||Z.overlayFit.visibleAreaBe&&(Be=st,_e=$e)}return this._isPushed=!1,void this._applyPosition(_e.position,_e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Z.position,Z.originPoint);this._applyPosition(Z.position,Z.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ae(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove($),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 fe=this._lastPosition||this._preferredPositions[0],H=this._getOriginPoint(this._originRect,fe);this._applyPosition(fe,H)}}withScrollableContainers(fe){return this._scrollables=fe,this}withPositions(fe){return this._preferredPositions=fe,-1===fe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(fe){return this._viewportMargin=fe,this}withFlexibleDimensions(fe=!0){return this._hasFlexibleDimensions=fe,this}withGrowAfterOpen(fe=!0){return this._growAfterOpen=fe,this}withPush(fe=!0){return this._canPush=fe,this}withLockedPosition(fe=!0){return this._positionLocked=fe,this}setOrigin(fe){return this._origin=fe,this}withDefaultOffsetX(fe){return this._offsetX=fe,this}withDefaultOffsetY(fe){return this._offsetY=fe,this}withTransformOriginOn(fe){return this._transformOriginSelector=fe,this}_getOriginPoint(fe,H){let x,U;if("center"==H.originX)x=fe.left+fe.width/2;else{const Z=this._isRtl()?fe.right:fe.left,_e=this._isRtl()?fe.left:fe.right;x="start"==H.originX?Z:_e}return U="center"==H.originY?fe.top+fe.height/2:"top"==H.originY?fe.top:fe.bottom,{x,y:U}}_getOverlayPoint(fe,H,x){let U,Z;return U="center"==x.overlayX?-H.width/2:"start"===x.overlayX?this._isRtl()?-H.width:0:this._isRtl()?0:-H.width,Z="center"==x.overlayY?-H.height/2:"top"==x.overlayY?0:-H.height,{x:fe.x+U,y:fe.y+Z}}_getOverlayFit(fe,H,x,U){const Z=Oe(H);let{x:_e,y:Be}=fe,$e=this._getOffset(U,"x"),st=this._getOffset(U,"y");$e&&(_e+=$e),st&&(Be+=st);let Xt=0-Be,tn=Be+Z.height-x.height,Dt=this._subtractOverflows(Z.width,0-_e,_e+Z.width-x.width),Kt=this._subtractOverflows(Z.height,Xt,tn),et=Dt*Kt;return{visibleArea:et,isCompletelyWithinViewport:Z.width*Z.height===et,fitsInViewportVertically:Kt===Z.height,fitsInViewportHorizontally:Dt==Z.width}}_canFitWithFlexibleDimensions(fe,H,x){if(this._hasFlexibleDimensions){const U=x.bottom-H.y,Z=x.right-H.x,_e=le(this._overlayRef.getConfig().minHeight),Be=le(this._overlayRef.getConfig().minWidth),st=fe.fitsInViewportHorizontally||null!=Be&&Be<=Z;return(fe.fitsInViewportVertically||null!=_e&&_e<=U)&&st}return!1}_pushOverlayOnScreen(fe,H,x){if(this._previousPushAmount&&this._positionLocked)return{x:fe.x+this._previousPushAmount.x,y:fe.y+this._previousPushAmount.y};const U=Oe(H),Z=this._viewportRect,_e=Math.max(fe.x+U.width-Z.width,0),Be=Math.max(fe.y+U.height-Z.height,0),$e=Math.max(Z.top-x.top-fe.y,0),st=Math.max(Z.left-x.left-fe.x,0);let ut=0,St=0;return ut=U.width<=Z.width?st||-_e:fe.xDt&&!this._isInitialRender&&!this._growAfterOpen&&(_e=fe.y-Dt/2)}if("end"===H.overlayX&&!U||"start"===H.overlayX&&U)Xt=x.width-fe.x+this._viewportMargin,ut=fe.x-this._viewportMargin;else if("start"===H.overlayX&&!U||"end"===H.overlayX&&U)St=fe.x,ut=x.right-fe.x;else{const tn=Math.min(x.right-fe.x+x.left,fe.x),Dt=this._lastBoundingBoxSize.width;ut=2*tn,St=fe.x-tn,ut>Dt&&!this._isInitialRender&&!this._growAfterOpen&&(St=fe.x-Dt/2)}return{top:_e,left:St,bottom:Be,right:Xt,width:ut,height:Z}}_setBoundingBoxStyles(fe,H){const x=this._calculateBoundingBoxRect(fe,H);!this._isInitialRender&&!this._growAfterOpen&&(x.height=Math.min(x.height,this._lastBoundingBoxSize.height),x.width=Math.min(x.width,this._lastBoundingBoxSize.width));const U={};if(this._hasExactPosition())U.top=U.left="0",U.bottom=U.right=U.maxHeight=U.maxWidth="",U.width=U.height="100%";else{const Z=this._overlayRef.getConfig().maxHeight,_e=this._overlayRef.getConfig().maxWidth;U.height=(0,m.HM)(x.height),U.top=(0,m.HM)(x.top),U.bottom=(0,m.HM)(x.bottom),U.width=(0,m.HM)(x.width),U.left=(0,m.HM)(x.left),U.right=(0,m.HM)(x.right),U.alignItems="center"===H.overlayX?"center":"end"===H.overlayX?"flex-end":"flex-start",U.justifyContent="center"===H.overlayY?"center":"bottom"===H.overlayY?"flex-end":"flex-start",Z&&(U.maxHeight=(0,m.HM)(Z)),_e&&(U.maxWidth=(0,m.HM)(_e))}this._lastBoundingBoxSize=x,ae(this._boundingBox.style,U)}_resetBoundingBoxStyles(){ae(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ae(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(fe,H){const x={},U=this._hasExactPosition(),Z=this._hasFlexibleDimensions,_e=this._overlayRef.getConfig();if(U){const ut=this._viewportRuler.getViewportScrollPosition();ae(x,this._getExactOverlayY(H,fe,ut)),ae(x,this._getExactOverlayX(H,fe,ut))}else x.position="static";let Be="",$e=this._getOffset(H,"x"),st=this._getOffset(H,"y");$e&&(Be+=`translateX(${$e}px) `),st&&(Be+=`translateY(${st}px)`),x.transform=Be.trim(),_e.maxHeight&&(U?x.maxHeight=(0,m.HM)(_e.maxHeight):Z&&(x.maxHeight="")),_e.maxWidth&&(U?x.maxWidth=(0,m.HM)(_e.maxWidth):Z&&(x.maxWidth="")),ae(this._pane.style,x)}_getExactOverlayY(fe,H,x){let U={top:"",bottom:""},Z=this._getOverlayPoint(H,this._overlayRect,fe);this._isPushed&&(Z=this._pushOverlayOnScreen(Z,this._overlayRect,x));let _e=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Z.y-=_e,"bottom"===fe.overlayY?U.bottom=this._document.documentElement.clientHeight-(Z.y+this._overlayRect.height)+"px":U.top=(0,m.HM)(Z.y),U}_getExactOverlayX(fe,H,x){let _e,U={left:"",right:""},Z=this._getOverlayPoint(H,this._overlayRect,fe);return this._isPushed&&(Z=this._pushOverlayOnScreen(Z,this._overlayRect,x)),_e=this._isRtl()?"end"===fe.overlayX?"left":"right":"end"===fe.overlayX?"right":"left","right"===_e?U.right=this._document.documentElement.clientWidth-(Z.x+this._overlayRect.width)+"px":U.left=(0,m.HM)(Z.x),U}_getScrollVisibility(){const fe=this._getOriginRect(),H=this._pane.getBoundingClientRect(),x=this._scrollables.map(U=>U.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:A(fe,x),isOriginOutsideView:w(fe,x),isOverlayClipped:A(H,x),isOverlayOutsideView:w(H,x)}}_subtractOverflows(fe,...H){return H.reduce((x,U)=>x-Math.max(U,0),fe)}_getNarrowedViewportRect(){const fe=this._document.documentElement.clientWidth,H=this._document.documentElement.clientHeight,x=this._viewportRuler.getViewportScrollPosition();return{top:x.top+this._viewportMargin,left:x.left+this._viewportMargin,right:x.left+fe-this._viewportMargin,bottom:x.top+H-this._viewportMargin,width:fe-2*this._viewportMargin,height:H-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(fe,H){return"x"===H?null==fe.offsetX?this._offsetX:fe.offsetX:null==fe.offsetY?this._offsetY:fe.offsetY}_validatePositions(){}_addPanelClasses(fe){this._pane&&(0,m.Eq)(fe).forEach(H=>{""!==H&&-1===this._appliedPanelClasses.indexOf(H)&&(this._appliedPanelClasses.push(H),this._pane.classList.add(H))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(fe=>{this._pane.classList.remove(fe)}),this._appliedPanelClasses=[])}_getOriginRect(){const fe=this._origin;if(fe instanceof v.ElementRef)return fe.nativeElement.getBoundingClientRect();if(fe instanceof Element)return fe.getBoundingClientRect();const H=fe.width||0,x=fe.height||0;return{top:fe.y,bottom:fe.y+x,left:fe.x,right:fe.x+H,height:x,width:H}}}function ae(Ee,fe){for(let H in fe)fe.hasOwnProperty(H)&&(Ee[H]=fe[H]);return Ee}function le(Ee){if("number"!=typeof Ee&&null!=Ee){const[fe,H]=Ee.split(J);return H&&"px"!==H?null:parseFloat(fe)}return Ee||null}function Oe(Ee){return{top:Math.floor(Ee.top),right:Math.floor(Ee.right),bottom:Math.floor(Ee.bottom),left:Math.floor(Ee.left),width:Math.floor(Ee.width),height:Math.floor(Ee.height)}}const Le="cdk-global-overlay-wrapper";class Ye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(fe){const H=fe.getConfig();this._overlayRef=fe,this._width&&!H.width&&fe.updateSize({width:this._width}),this._height&&!H.height&&fe.updateSize({height:this._height}),fe.hostElement.classList.add(Le),this._isDisposed=!1}top(fe=""){return this._bottomOffset="",this._topOffset=fe,this._alignItems="flex-start",this}left(fe=""){return this._rightOffset="",this._leftOffset=fe,this._justifyContent="flex-start",this}bottom(fe=""){return this._topOffset="",this._bottomOffset=fe,this._alignItems="flex-end",this}right(fe=""){return this._leftOffset="",this._rightOffset=fe,this._justifyContent="flex-end",this}width(fe=""){return this._overlayRef?this._overlayRef.updateSize({width:fe}):this._width=fe,this}height(fe=""){return this._overlayRef?this._overlayRef.updateSize({height:fe}):this._height=fe,this}centerHorizontally(fe=""){return this.left(fe),this._justifyContent="center",this}centerVertically(fe=""){return this.top(fe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const fe=this._overlayRef.overlayElement.style,H=this._overlayRef.hostElement.style,x=this._overlayRef.getConfig(),{width:U,height:Z,maxWidth:_e,maxHeight:Be}=x,$e=!("100%"!==U&&"100vw"!==U||_e&&"100%"!==_e&&"100vw"!==_e),st=!("100%"!==Z&&"100vh"!==Z||Be&&"100%"!==Be&&"100vh"!==Be);fe.position=this._cssPosition,fe.marginLeft=$e?"0":this._leftOffset,fe.marginTop=st?"0":this._topOffset,fe.marginBottom=this._bottomOffset,fe.marginRight=this._rightOffset,$e?H.justifyContent="flex-start":"center"===this._justifyContent?H.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?H.justifyContent="flex-end":"flex-end"===this._justifyContent&&(H.justifyContent="flex-start"):H.justifyContent=this._justifyContent,H.alignItems=st?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const fe=this._overlayRef.overlayElement.style,H=this._overlayRef.hostElement,x=H.style;H.classList.remove(Le),x.justifyContent=x.alignItems=fe.marginTop=fe.marginBottom=fe.marginLeft=fe.marginRight=fe.position="",this._overlayRef=null,this._isDisposed=!0}}let Je=(()=>{class Ee{constructor(H,x,U,Z){this._viewportRuler=H,this._document=x,this._platform=U,this._overlayContainer=Z}global(){return new Ye}flexibleConnectedTo(H){return new ie(H,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(n.rL),v.\u0275\u0275inject(f.DOCUMENT),v.\u0275\u0275inject(o.t4),v.\u0275\u0275inject(te))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),gt=(()=>{class Ee{constructor(H){this._attachedOverlays=[],this._document=H}ngOnDestroy(){this.detach()}add(H){this.remove(H),this._attachedOverlays.push(H)}remove(H){const x=this._attachedOverlays.indexOf(H);x>-1&&this._attachedOverlays.splice(x,1),0===this._attachedOverlays.length&&this.detach()}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ue=(()=>{class Ee extends gt{constructor(H){super(H),this._keydownListener=x=>{const U=this._attachedOverlays;for(let Z=U.length-1;Z>-1;Z--)if(U[Z]._keydownEvents.observers.length>0){U[Z]._keydownEvents.next(x);break}}}add(H){super.add(H),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 Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(f.DOCUMENT))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),tt=(()=>{class Ee extends gt{constructor(H,x){super(H),this._platform=x,this._cursorStyleIsSet=!1,this._pointerDownListener=U=>{this._pointerDownEventTarget=(0,o.sA)(U)},this._clickListener=U=>{const Z=(0,o.sA)(U),_e="click"===U.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Z;this._pointerDownEventTarget=null;const Be=this._attachedOverlays.slice();for(let $e=Be.length-1;$e>-1;$e--){const st=Be[$e];if(!(st._outsidePointerEvents.observers.length<1)&&st.hasAttached()){if(st.overlayElement.contains(Z)||st.overlayElement.contains(_e))break;st._outsidePointerEvents.next(U)}}}}add(H){if(super.add(H),!this._isAttached){const x=this._document.body;x.addEventListener("pointerdown",this._pointerDownListener,!0),x.addEventListener("click",this._clickListener,!0),x.addEventListener("auxclick",this._clickListener,!0),x.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=x.style.cursor,x.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const H=this._document.body;H.removeEventListener("pointerdown",this._pointerDownListener,!0),H.removeEventListener("click",this._clickListener,!0),H.removeEventListener("auxclick",this._clickListener,!0),H.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(H.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(f.DOCUMENT),v.\u0275\u0275inject(o.t4))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),at=0,ft=(()=>{class Ee{constructor(H,x,U,Z,_e,Be,$e,st,ut,St,Xt){this.scrollStrategies=H,this._overlayContainer=x,this._componentFactoryResolver=U,this._positionBuilder=Z,this._keyboardDispatcher=_e,this._injector=Be,this._ngZone=$e,this._document=st,this._directionality=ut,this._location=St,this._outsideClickDispatcher=Xt}create(H){const x=this._createHostElement(),U=this._createPaneElement(x),Z=this._createPortalOutlet(U),_e=new I(H);return _e.direction=_e.direction||this._directionality.value,new Q(Z,x,U,_e,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(H){const x=this._document.createElement("div");return x.id="cdk-overlay-"+at++,x.classList.add("cdk-overlay-pane"),H.appendChild(x),x}_createHostElement(){const H=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(H),H}_createPortalOutlet(H){return this._appRef||(this._appRef=this._injector.get(v.ApplicationRef)),new u.u0(H,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275inject(M),v.\u0275\u0275inject(te),v.\u0275\u0275inject(v.ComponentFactoryResolver),v.\u0275\u0275inject(Je),v.\u0275\u0275inject(Ue),v.\u0275\u0275inject(v.Injector),v.\u0275\u0275inject(v.NgZone),v.\u0275\u0275inject(f.DOCUMENT),v.\u0275\u0275inject(d.Is),v.\u0275\u0275inject(f.Location),v.\u0275\u0275inject(tt))},Ee.\u0275prov=v.\u0275\u0275defineInjectable({token:Ee,factory:Ee.\u0275fac}),Ee})();const vt=[{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"}],yt=new v.InjectionToken("cdk-connected-overlay-scroll-strategy");let ot=(()=>{class Ee{constructor(H){this.elementRef=H}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275directiveInject(v.ElementRef))},Ee.\u0275dir=v.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Ee})(),_t=(()=>{class Ee{constructor(H,x,U,Z,_e){this._overlay=H,this._dir=_e,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=r.w.EMPTY,this._attachSubscription=r.w.EMPTY,this._detachSubscription=r.w.EMPTY,this._positionSubscription=r.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.EventEmitter,this.positionChange=new v.EventEmitter,this.attach=new v.EventEmitter,this.detach=new v.EventEmitter,this.overlayKeydown=new v.EventEmitter,this.overlayOutsideClick=new v.EventEmitter,this._templatePortal=new u.UE(x,U),this._scrollStrategyFactory=Z,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(H){this._offsetX=H,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(H){this._offsetY=H,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,m.Ig)(H)}get lockPosition(){return this._lockPosition}set lockPosition(H){this._lockPosition=(0,m.Ig)(H)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(H){this._flexibleDimensions=(0,m.Ig)(H)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(H){this._growAfterOpen=(0,m.Ig)(H)}get push(){return this._push}set push(H){this._push=(0,m.Ig)(H)}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(H){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),H.origin&&this.open&&this._position.apply()),H.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=vt);const H=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=H.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=H.detachments().subscribe(()=>this.detach.emit()),H.keydownEvents().subscribe(x=>{this.overlayKeydown.next(x),x.keyCode===g.hY&&!this.disableClose&&!(0,g.Vb)(x)&&(x.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(x=>{this.overlayOutsideClick.next(x)})}_buildConfig(){const H=this._position=this.positionStrategy||this._createPositionStrategy(),x=new I({direction:this._dir,positionStrategy:H,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(x.width=this.width),(this.height||0===this.height)&&(x.height=this.height),(this.minWidth||0===this.minWidth)&&(x.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(x.minHeight=this.minHeight),this.backdropClass&&(x.backdropClass=this.backdropClass),this.panelClass&&(x.panelClass=this.panelClass),x}_updatePositionStrategy(H){const x=this.positions.map(U=>({originX:U.originX,originY:U.originY,overlayX:U.overlayX,overlayY:U.overlayY,offsetX:U.offsetX||this.offsetX,offsetY:U.offsetY||this.offsetY,panelClass:U.panelClass||void 0}));return H.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(x).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const H=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(H),H}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ot?this.origin.elementRef:this.origin}_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(H=>{this.backdropClick.emit(H)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,l.o)(()=>this.positionChange.observers.length>0)).subscribe(H=>{this.positionChange.emit(H),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Ee.\u0275fac=function(H){return new(H||Ee)(v.\u0275\u0275directiveInject(ft),v.\u0275\u0275directiveInject(v.TemplateRef),v.\u0275\u0275directiveInject(v.ViewContainerRef),v.\u0275\u0275directiveInject(yt),v.\u0275\u0275directiveInject(d.Is,8))},Ee.\u0275dir=v.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[v.\u0275\u0275NgOnChangesFeature]}),Ee})();const Tt={provide:yt,deps:[ft],useFactory:function(Ee){return()=>Ee.scrollStrategies.reposition()}};let Bt=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=v.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=v.\u0275\u0275defineInjector({providers:[ft,Tt],imports:[[d.vT,u.eL,n.Cl],n.Cl]}),Ee})()},925:(ye,j,p)=>{"use strict";p.d(j,{t4:()=>m,ud:()=>o,sA:()=>w,ht:()=>O,kV:()=>D,Oy:()=>A,qK:()=>h,i$:()=>i,Mq:()=>g});var n=p(5e3),f=p(9808);let v;try{v="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(S){v=!1}let d,m=(()=>{class S{constructor(I){this._platformId=I,this.isBrowser=this._platformId?(0,f.isPlatformBrowser)(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&&!v)&&"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 S.\u0275fac=function(I){return new(I||S)(n.\u0275\u0275inject(n.PLATFORM_ID))},S.\u0275prov=n.\u0275\u0275defineInjectable({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),o=(()=>{class S{}return S.\u0275fac=function(I){return new(I||S)},S.\u0275mod=n.\u0275\u0275defineNgModule({type:S}),S.\u0275inj=n.\u0275\u0275defineInjector({}),S})();const u=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(d)return d;if("object"!=typeof document||!document)return d=new Set(u),d;let S=document.createElement("input");return d=new Set(u.filter(M=>(S.setAttribute("type",M),S.type===M))),d}let r,l,E;function i(S){return function(){if(null==r&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>r=!0}))}finally{r=r||!1}return r}()?S:!!S.capture}function g(){if(null==l){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return l=!1,l;if("scrollBehavior"in document.documentElement.style)l=!0;else{const S=Element.prototype.scrollTo;l=!!S&&!/\{\s*\[native code\]\s*\}/.test(S.toString())}}return l}function D(S){if(function(){if(null==E){const S="undefined"!=typeof document?document.head:null;E=!(!S||!S.createShadowRoot&&!S.attachShadow)}return E}()){const M=S.getRootNode?S.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&M instanceof ShadowRoot)return M}return null}function O(){let S="undefined"!=typeof document&&document?document.activeElement:null;for(;S&&S.shadowRoot;){const M=S.shadowRoot.activeElement;if(M===S)break;S=M}return S}function w(S){return S.composedPath?S.composedPath()[0]:S.target}function A(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(ye,j,p)=>{"use strict";p.d(j,{ig:()=>T,Pl:()=>O,C5:()=>s,u0:()=>y,eL:()=>A,UE:()=>i});var n=p(5e3),f=p(9808);class r{attach(I){return this._attachedHost=I,I.attach(this)}detach(){let I=this._attachedHost;null!=I&&(this._attachedHost=null,I.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(I){this._attachedHost=I}}class s extends r{constructor(I,b,L,F){super(),this.component=I,this.viewContainerRef=b,this.injector=L,this.componentFactoryResolver=F}}class i extends r{constructor(I,b,L){super(),this.templateRef=I,this.viewContainerRef=b,this.context=L}get origin(){return this.templateRef.elementRef}attach(I,b=this.context){return this.context=b,super.attach(I)}detach(){return this.context=void 0,super.detach()}}class c extends r{constructor(I){super(),this.element=I instanceof n.ElementRef?I.nativeElement:I}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(I){return I instanceof s?(this._attachedPortal=I,this.attachComponentPortal(I)):I instanceof i?(this._attachedPortal=I,this.attachTemplatePortal(I)):this.attachDomPortal&&I instanceof c?(this._attachedPortal=I,this.attachDomPortal(I)):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(I){this._disposeFn=I}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class y extends l{constructor(I,b,L,F,ne){super(),this.outletElement=I,this._componentFactoryResolver=b,this._appRef=L,this._defaultInjector=F,this.attachDomPortal=Y=>{const Q=Y.element,te=this._document.createComment("dom-portal");Q.parentNode.insertBefore(te,Q),this.outletElement.appendChild(Q),this._attachedPortal=Y,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(Q,te)})},this._document=ne}attachComponentPortal(I){const L=(I.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(I.component);let F;return I.viewContainerRef?(F=I.viewContainerRef.createComponent(L,I.viewContainerRef.length,I.injector||I.viewContainerRef.injector),this.setDisposeFn(()=>F.destroy())):(F=L.create(I.injector||this._defaultInjector),this._appRef.attachView(F.hostView),this.setDisposeFn(()=>{this._appRef.detachView(F.hostView),F.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(F)),this._attachedPortal=I,F}attachTemplatePortal(I){let b=I.viewContainerRef,L=b.createEmbeddedView(I.templateRef,I.context);return L.rootNodes.forEach(F=>this.outletElement.appendChild(F)),L.detectChanges(),this.setDisposeFn(()=>{let F=b.indexOf(L);-1!==F&&b.remove(F)}),this._attachedPortal=I,L}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(I){return I.hostView.rootNodes[0]}}let T=(()=>{class M extends i{constructor(b,L){super(b,L)}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef))},M.\u0275dir=n.\u0275\u0275defineDirective({type:M,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.\u0275\u0275InheritDefinitionFeature]}),M})(),O=(()=>{class M extends l{constructor(b,L,F){super(),this._componentFactoryResolver=b,this._viewContainerRef=L,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=ne=>{const Y=ne.element,Q=this._document.createComment("dom-portal");ne.setAttachedHost(this),Y.parentNode.insertBefore(Q,Y),this._getRootNode().appendChild(Y),this._attachedPortal=ne,super.setDisposeFn(()=>{Q.parentNode&&Q.parentNode.replaceChild(Y,Q)})},this._document=F}get portal(){return this._attachedPortal}set portal(b){this.hasAttached()&&!b&&!this._isInitialized||(this.hasAttached()&&super.detach(),b&&super.attach(b),this._attachedPortal=b||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(b){b.setAttachedHost(this);const L=null!=b.viewContainerRef?b.viewContainerRef:this._viewContainerRef,ne=(b.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(b.component),Y=L.createComponent(ne,L.length,b.injector||L.injector);return L!==this._viewContainerRef&&this._getRootNode().appendChild(Y.hostView.rootNodes[0]),super.setDisposeFn(()=>Y.destroy()),this._attachedPortal=b,this._attachedRef=Y,this.attached.emit(Y),Y}attachTemplatePortal(b){b.setAttachedHost(this);const L=this._viewContainerRef.createEmbeddedView(b.templateRef,b.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=b,this._attachedRef=L,this.attached.emit(L),L}_getRootNode(){const b=this._viewContainerRef.element.nativeElement;return b.nodeType===b.ELEMENT_NODE?b:b.parentNode}}return M.\u0275fac=function(b){return new(b||M)(n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(f.DOCUMENT))},M.\u0275dir=n.\u0275\u0275defineDirective({type:M,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.\u0275\u0275InheritDefinitionFeature]}),M})(),A=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=n.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=n.\u0275\u0275defineInjector({}),M})()},9071:(ye,j,p)=>{"use strict";p.d(j,{ZD:()=>Q,mF:()=>A,Cl:()=>te,rL:()=>I});var n=p(3191),f=p(5e3),v=p(8929),m=p(1086),o=p(6498),d=p(3753),r=(p(352),p(8139),p(7568)),s=p(2198),i=p(9808),c=p(925),l=p(226);let A=(()=>{class ${constructor(ie,ae,le){this._ngZone=ie,this._platform=ae,this._scrolled=new v.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=le}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const ae=this.scrollContainers.get(ie);ae&&(ae.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new o.y(ae=>{this._globalSubscription||this._addGlobalListener();const le=ie>0?this._scrolled.pipe((0,r.e)(ie)).subscribe(ae):this._scrolled.subscribe(ae);return this._scrolledCount++,()=>{le.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,m.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,ae)=>this.deregister(ae)),this._scrolled.complete()}ancestorScrolled(ie,ae){const le=this.getAncestorScrollContainers(ie);return this.scrolled(ae).pipe((0,s.h)(Oe=>!Oe||le.indexOf(Oe)>-1))}getAncestorScrollContainers(ie){const ae=[];return this.scrollContainers.forEach((le,Oe)=>{this._scrollableContainsElement(Oe,ie)&&ae.push(Oe)}),ae}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,ae){let le=(0,n.fI)(ae),Oe=ie.getElementRef().nativeElement;do{if(le==Oe)return!0}while(le=le.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,d.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return $.\u0275fac=function(ie){return new(ie||$)(f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(c.t4),f.\u0275\u0275inject(i.DOCUMENT,8))},$.\u0275prov=f.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),I=(()=>{class ${constructor(ie,ae,le){this._platform=ie,this._change=new v.xQ,this._changeListener=Oe=>{this._change.next(Oe)},this._document=le,ae.runOutsideAngular(()=>{if(ie.isBrowser){const Oe=this._getWindow();Oe.addEventListener("resize",this._changeListener),Oe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:ae,height:le}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+le,right:ie.left+ae,height:le,width:ae}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,ae=this._getWindow(),le=ie.documentElement,Oe=le.getBoundingClientRect();return{top:-Oe.top||ie.body.scrollTop||ae.scrollY||le.scrollTop||0,left:-Oe.left||ie.body.scrollLeft||ae.scrollX||le.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,r.e)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}}return $.\u0275fac=function(ie){return new(ie||$)(f.\u0275\u0275inject(c.t4),f.\u0275\u0275inject(f.NgZone),f.\u0275\u0275inject(i.DOCUMENT,8))},$.\u0275prov=f.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),Q=(()=>{class ${}return $.\u0275fac=function(ie){return new(ie||$)},$.\u0275mod=f.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=f.\u0275\u0275defineInjector({}),$})(),te=(()=>{class ${}return $.\u0275fac=function(ie){return new(ie||$)},$.\u0275mod=f.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=f.\u0275\u0275defineInjector({imports:[[l.vT,c.ud,Q],l.vT,Q]}),$})()},9808:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{APP_BASE_HREF:()=>O,AsyncPipe:()=>ur,CommonModule:()=>jr,CurrencyPipe:()=>ir,DATE_PIPE_DEFAULT_TIMEZONE:()=>Ri,DOCUMENT:()=>u,DatePipe:()=>Li,DecimalPipe:()=>hr,FormStyle:()=>Y,FormatWidth:()=>te,HashLocationStrategy:()=>A,I18nPluralPipe:()=>Vr,I18nSelectPipe:()=>nr,JsonPipe:()=>Or,KeyValuePipe:()=>cr,LOCATION_INITIALIZED:()=>s,Location:()=>S,LocationStrategy:()=>T,LowerCasePipe:()=>gn,NgClass:()=>Zt,NgComponentOutlet:()=>an,NgForOf:()=>zn,NgForOfContext:()=>Tn,NgIf:()=>jn,NgIfContext:()=>Qn,NgLocaleLocalization:()=>Wt,NgLocalization:()=>Pe,NgPlural:()=>Ui,NgPluralCase:()=>tr,NgStyle:()=>bi,NgSwitch:()=>Zi,NgSwitchCase:()=>Xn,NgSwitchDefault:()=>pi,NgTemplateOutlet:()=>Rn,NumberFormatStyle:()=>F,NumberSymbol:()=>$,PathLocationStrategy:()=>w,PercentPipe:()=>qr,PlatformLocation:()=>h,Plural:()=>ne,SlicePipe:()=>mr,TitleCasePipe:()=>Sn,TranslationWidth:()=>Q,UpperCasePipe:()=>Wn,VERSION:()=>kr,ViewportScroller:()=>Jr,WeekDay:()=>J,XhrFactory:()=>Er,formatCurrency:()=>Vi,formatDate:()=>Xt,formatNumber:()=>xe,formatPercent:()=>ci,getCurrencySymbol:()=>x,getLocaleCurrencyCode:()=>ot,getLocaleCurrencyName:()=>yt,getLocaleCurrencySymbol:()=>vt,getLocaleDateFormat:()=>gt,getLocaleDateTimeFormat:()=>tt,getLocaleDayNames:()=>le,getLocaleDayPeriods:()=>ae,getLocaleDirection:()=>Ee,getLocaleEraNames:()=>Le,getLocaleExtraDayPeriodRules:()=>Bt,getLocaleExtraDayPeriods:()=>Et,getLocaleFirstDayOfWeek:()=>Ye,getLocaleId:()=>ie,getLocaleMonthNames:()=>Oe,getLocaleNumberFormat:()=>ft,getLocaleNumberSymbol:()=>at,getLocalePluralCase:()=>At,getLocaleTimeFormat:()=>Ue,getLocaleWeekEndRange:()=>Je,getNumberOfCurrencyDigits:()=>Z,isPlatformBrowser:()=>Lr,isPlatformServer:()=>Ji,isPlatformWorkerApp:()=>Fr,isPlatformWorkerUi:()=>ls,registerLocaleData:()=>Ft,\u0275BrowserPlatformLocation:()=>i,\u0275DomAdapter:()=>d,\u0275NullViewportScroller:()=>zr,\u0275PLATFORM_BROWSER_ID:()=>Wi,\u0275PLATFORM_SERVER_ID:()=>Wr,\u0275PLATFORM_WORKER_APP_ID:()=>Rr,\u0275PLATFORM_WORKER_UI_ID:()=>Dr,\u0275getDOM:()=>v,\u0275parseCookieValue:()=>Ht,\u0275setRootDomAdapter:()=>o});var n=p(5e3);let f=null;function v(){return f}function o(be){f||(f=be)}class d{}const u=new n.InjectionToken("DocumentToken");let h=(()=>{class be{historyGo(k){throw new Error("Not implemented")}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return(0,n.\u0275\u0275inject)(i)},providedIn:"platform"}),be})();const s=new n.InjectionToken("Location Initialized");let i=(()=>{class be extends h{constructor(k){super(),this._doc=k,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(k){const V=v().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",k,!1),()=>V.removeEventListener("popstate",k)}onHashChange(k){const V=v().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",k,!1),()=>V.removeEventListener("hashchange",k)}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(k){this.location.pathname=k}pushState(k,V,ve){c()?this._history.pushState(k,V,ve):this.location.hash=ve}replaceState(k,V,ve){c()?this._history.replaceState(k,V,ve):this.location.hash=ve}forward(){this._history.forward()}back(){this._history.back()}historyGo(k=0){this._history.go(k)}getState(){return this._history.state}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(u))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return new i((0,n.\u0275\u0275inject)(u))},providedIn:"platform"}),be})();function c(){return!!window.history.pushState}function g(be,X){if(0==be.length)return X;if(0==X.length)return be;let k=0;return be.endsWith("/")&&k++,X.startsWith("/")&&k++,2==k?be+X.substring(1):1==k?be+X:be+"/"+X}function y(be){const X=be.match(/#|\?|$/),k=X&&X.index||be.length;return be.slice(0,k-("/"===be[k-1]?1:0))+be.slice(k)}function E(be){return be&&"?"!==be[0]?"?"+be:be}let T=(()=>{class be{historyGo(k){throw new Error("Not implemented")}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return function(be){const X=(0,n.\u0275\u0275inject)(u).location;return new w((0,n.\u0275\u0275inject)(h),X&&X.origin||"")}()},providedIn:"root"}),be})();const O=new n.InjectionToken("appBaseHref");let w=(()=>{class be extends T{constructor(k,V){if(super(),this._platformLocation=k,this._removeListenerFns=[],null==V&&(V=this._platformLocation.getBaseHrefFromDOM()),null==V)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=V}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}prepareExternalUrl(k){return g(this._baseHref,k)}path(k=!1){const V=this._platformLocation.pathname+E(this._platformLocation.search),ve=this._platformLocation.hash;return ve&&k?`${V}${ve}`:V}pushState(k,V,ve,nt){const Nt=this.prepareExternalUrl(ve+E(nt));this._platformLocation.pushState(k,V,Nt)}replaceState(k,V,ve,nt){const Nt=this.prepareExternalUrl(ve+E(nt));this._platformLocation.replaceState(k,V,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformLocation).historyGo)||void 0===ve||ve.call(V,k)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(O,8))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),A=(()=>{class be extends T{constructor(k,V){super(),this._platformLocation=k,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}path(k=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(k){const V=g(this._baseHref,k);return V.length>0?"#"+V:V}pushState(k,V,ve,nt){let Nt=this.prepareExternalUrl(ve+E(nt));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.pushState(k,V,Nt)}replaceState(k,V,ve,nt){let Nt=this.prepareExternalUrl(ve+E(nt));0==Nt.length&&(Nt=this._platformLocation.pathname),this._platformLocation.replaceState(k,V,Nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformLocation).historyGo)||void 0===ve||ve.call(V,k)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(O,8))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),S=(()=>{class be{constructor(k,V){this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=k;const ve=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=y(b(ve)),this._platformStrategy.onPopState(nt=>{this._subject.emit({url:this.path(!0),pop:!0,state:nt.state,type:nt.type})})}path(k=!1){return this.normalize(this._platformStrategy.path(k))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(k,V=""){return this.path()==this.normalize(k+E(V))}normalize(k){return be.stripTrailingSlash(function(be,X){return be&&X.startsWith(be)?X.substring(be.length):X}(this._baseHref,b(k)))}prepareExternalUrl(k){return k&&"/"!==k[0]&&(k="/"+k),this._platformStrategy.prepareExternalUrl(k)}go(k,V="",ve=null){this._platformStrategy.pushState(ve,"",k,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+E(V)),ve)}replaceState(k,V="",ve=null){this._platformStrategy.replaceState(ve,"",k,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+E(V)),ve)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(k=0){var V,ve;null===(ve=(V=this._platformStrategy).historyGo)||void 0===ve||ve.call(V,k)}onUrlChange(k){this._urlChangeListeners.push(k),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}))}_notifyUrlChangeListeners(k="",V){this._urlChangeListeners.forEach(ve=>ve(k,V))}subscribe(k,V,ve){return this._subject.subscribe({next:k,error:V,complete:ve})}}return be.normalizeQueryParams=E,be.joinWithSlash=g,be.stripTrailingSlash=y,be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(T),n.\u0275\u0275inject(h))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:function(){return new S((0,n.\u0275\u0275inject)(T),(0,n.\u0275\u0275inject)(h))},providedIn:"root"}),be})();function b(be){return be.replace(/\/index.html$/,"")}const L={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Percent=1]="Percent",F[F.Currency=2]="Currency",F[F.Scientific=3]="Scientific",F))(),ne=(()=>((ne=ne||{})[ne.Zero=0]="Zero",ne[ne.One=1]="One",ne[ne.Two=2]="Two",ne[ne.Few=3]="Few",ne[ne.Many=4]="Many",ne[ne.Other=5]="Other",ne))(),Y=(()=>((Y=Y||{})[Y.Format=0]="Format",Y[Y.Standalone=1]="Standalone",Y))(),Q=(()=>((Q=Q||{})[Q.Narrow=0]="Narrow",Q[Q.Abbreviated=1]="Abbreviated",Q[Q.Wide=2]="Wide",Q[Q.Short=3]="Short",Q))(),te=(()=>((te=te||{})[te.Short=0]="Short",te[te.Medium=1]="Medium",te[te.Long=2]="Long",te[te.Full=3]="Full",te))(),$=(()=>(($=$||{})[$.Decimal=0]="Decimal",$[$.Group=1]="Group",$[$.List=2]="List",$[$.PercentSign=3]="PercentSign",$[$.PlusSign=4]="PlusSign",$[$.MinusSign=5]="MinusSign",$[$.Exponential=6]="Exponential",$[$.SuperscriptingExponent=7]="SuperscriptingExponent",$[$.PerMille=8]="PerMille",$[$.Infinity=9]="Infinity",$[$.NaN=10]="NaN",$[$.TimeSeparator=11]="TimeSeparator",$[$.CurrencyDecimal=12]="CurrencyDecimal",$[$.CurrencyGroup=13]="CurrencyGroup",$))(),J=(()=>((J=J||{})[J.Sunday=0]="Sunday",J[J.Monday=1]="Monday",J[J.Tuesday=2]="Tuesday",J[J.Wednesday=3]="Wednesday",J[J.Thursday=4]="Thursday",J[J.Friday=5]="Friday",J[J.Saturday=6]="Saturday",J))();function ie(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.LocaleId]}function ae(be,X,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.DayPeriodsFormat],V[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],X);return fe(nt,k)}function le(be,X,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.DaysFormat],V[n.\u0275LocaleDataIndex.DaysStandalone]],X);return fe(nt,k)}function Oe(be,X,k){const V=(0,n.\u0275findLocaleData)(be),nt=fe([V[n.\u0275LocaleDataIndex.MonthsFormat],V[n.\u0275LocaleDataIndex.MonthsStandalone]],X);return fe(nt,k)}function Le(be,X){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Eras],X)}function Ye(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.FirstDayOfWeek]}function Je(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.WeekendRange]}function gt(be,X){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.DateFormat],X)}function Ue(be,X){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.TimeFormat],X)}function tt(be,X){return fe((0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.DateTimeFormat],X)}function at(be,X){const k=(0,n.\u0275findLocaleData)(be),V=k[n.\u0275LocaleDataIndex.NumberSymbols][X];if(void 0===V){if(X===$.CurrencyDecimal)return k[n.\u0275LocaleDataIndex.NumberSymbols][$.Decimal];if(X===$.CurrencyGroup)return k[n.\u0275LocaleDataIndex.NumberSymbols][$.Group]}return V}function ft(be,X){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.NumberFormats][X]}function vt(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.CurrencySymbol]||null}function yt(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.CurrencyName]||null}function ot(be){return(0,n.\u0275getLocaleCurrencyCode)(be)}const At=n.\u0275getLocalePluralCase;function Tt(be){if(!be[n.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${be[n.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bt(be){const X=(0,n.\u0275findLocaleData)(be);return Tt(X),(X[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(V=>"string"==typeof V?H(V):[H(V[0]),H(V[1])])}function Et(be,X,k){const V=(0,n.\u0275findLocaleData)(be);Tt(V);const nt=fe([V[n.\u0275LocaleDataIndex.ExtraData][0],V[n.\u0275LocaleDataIndex.ExtraData][1]],X)||[];return fe(nt,k)||[]}function Ee(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Directionality]}function fe(be,X){for(let k=X;k>-1;k--)if(void 0!==be[k])return be[k];throw new Error("Locale data API: locale data undefined")}function H(be){const[X,k]=be.split(":");return{hours:+X,minutes:+k}}function x(be,X,k="en"){const V=function(be){return(0,n.\u0275findLocaleData)(be)[n.\u0275LocaleDataIndex.Currencies]}(k)[be]||L[be]||[],ve=V[1];return"narrow"===X&&"string"==typeof ve?ve:V[0]||be}function Z(be){let X;const k=L[be];return k&&(X=k[2]),"number"==typeof X?X:2}const _e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Be={},$e=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?: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}|c{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 st=(()=>((st=st||{})[st.Short=0]="Short",st[st.ShortGMT=1]="ShortGMT",st[st.Long=2]="Long",st[st.Extended=3]="Extended",st))(),ut=(()=>((ut=ut||{})[ut.FullYear=0]="FullYear",ut[ut.Month=1]="Month",ut[ut.Date=2]="Date",ut[ut.Hours=3]="Hours",ut[ut.Minutes=4]="Minutes",ut[ut.Seconds=5]="Seconds",ut[ut.FractionalSeconds=6]="FractionalSeconds",ut[ut.Day=7]="Day",ut))(),St=(()=>((St=St||{})[St.DayPeriods=0]="DayPeriods",St[St.Days=1]="Days",St[St.Months=2]="Months",St[St.Eras=3]="Eras",St))();function Xt(be,X,k,V){let ve=function(be){if(pt(be))return be;if("number"==typeof be&&!isNaN(be))return new Date(be);if("string"==typeof be){if(be=be.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(be)){const[ve,nt=1,Nt=1]=be.split("-").map(nn=>+nn);return tn(ve,nt-1,Nt)}const k=parseFloat(be);if(!isNaN(be-k))return new Date(k);let V;if(V=be.match(_e))return function(be){const X=new Date(0);let k=0,V=0;const ve=be[8]?X.setUTCFullYear:X.setFullYear,nt=be[8]?X.setUTCHours:X.setHours;be[9]&&(k=Number(be[9]+be[10]),V=Number(be[9]+be[11])),ve.call(X,Number(be[1]),Number(be[2])-1,Number(be[3]));const Nt=Number(be[4]||0)-k,nn=Number(be[5]||0)-V,In=Number(be[6]||0),ni=Math.floor(1e3*parseFloat("0."+(be[7]||0)));return nt.call(X,Nt,nn,In,ni),X}(V)}const X=new Date(be);if(!pt(X))throw new Error(`Unable to convert "${be}" into a date`);return X}(be);X=Dt(k,X)||X;let nn,Nt=[];for(;X;){if(nn=$e.exec(X),!nn){Nt.push(X);break}{Nt=Nt.concat(nn.slice(1));const di=Nt.pop();if(!di)break;X=di}}let In=ve.getTimezoneOffset();V&&(In=cn(V,In),ve=function(be,X,k){const ve=be.getTimezoneOffset();return function(be,X){return(be=new Date(be.getTime())).setMinutes(be.getMinutes()+X),be}(be,-1*(cn(X,ve)-ve))}(ve,V));let ni="";return Nt.forEach(di=>{const ai=function(be){if(It[be])return It[be];let X;switch(be){case"G":case"GG":case"GGG":X=mt(St.Eras,Q.Abbreviated);break;case"GGGG":X=mt(St.Eras,Q.Wide);break;case"GGGGG":X=mt(St.Eras,Q.Narrow);break;case"y":X=Lt(ut.FullYear,1,0,!1,!0);break;case"yy":X=Lt(ut.FullYear,2,0,!0,!0);break;case"yyy":X=Lt(ut.FullYear,3,0,!1,!0);break;case"yyyy":X=Lt(ut.FullYear,4,0,!1,!0);break;case"Y":X=ze(1);break;case"YY":X=ze(2,!0);break;case"YYY":X=ze(3);break;case"YYYY":X=ze(4);break;case"M":case"L":X=Lt(ut.Month,1,1);break;case"MM":case"LL":X=Lt(ut.Month,2,1);break;case"MMM":X=mt(St.Months,Q.Abbreviated);break;case"MMMM":X=mt(St.Months,Q.Wide);break;case"MMMMM":X=mt(St.Months,Q.Narrow);break;case"LLL":X=mt(St.Months,Q.Abbreviated,Y.Standalone);break;case"LLLL":X=mt(St.Months,Q.Wide,Y.Standalone);break;case"LLLLL":X=mt(St.Months,Q.Narrow,Y.Standalone);break;case"w":X=Me(1);break;case"ww":X=Me(2);break;case"W":X=Me(1,!0);break;case"d":X=Lt(ut.Date,1);break;case"dd":X=Lt(ut.Date,2);break;case"c":case"cc":X=Lt(ut.Day,1);break;case"ccc":X=mt(St.Days,Q.Abbreviated,Y.Standalone);break;case"cccc":X=mt(St.Days,Q.Wide,Y.Standalone);break;case"ccccc":X=mt(St.Days,Q.Narrow,Y.Standalone);break;case"cccccc":X=mt(St.Days,Q.Short,Y.Standalone);break;case"E":case"EE":case"EEE":X=mt(St.Days,Q.Abbreviated);break;case"EEEE":X=mt(St.Days,Q.Wide);break;case"EEEEE":X=mt(St.Days,Q.Narrow);break;case"EEEEEE":X=mt(St.Days,Q.Short);break;case"a":case"aa":case"aaa":X=mt(St.DayPeriods,Q.Abbreviated);break;case"aaaa":X=mt(St.DayPeriods,Q.Wide);break;case"aaaaa":X=mt(St.DayPeriods,Q.Narrow);break;case"b":case"bb":case"bbb":X=mt(St.DayPeriods,Q.Abbreviated,Y.Standalone,!0);break;case"bbbb":X=mt(St.DayPeriods,Q.Wide,Y.Standalone,!0);break;case"bbbbb":X=mt(St.DayPeriods,Q.Narrow,Y.Standalone,!0);break;case"B":case"BB":case"BBB":X=mt(St.DayPeriods,Q.Abbreviated,Y.Format,!0);break;case"BBBB":X=mt(St.DayPeriods,Q.Wide,Y.Format,!0);break;case"BBBBB":X=mt(St.DayPeriods,Q.Narrow,Y.Format,!0);break;case"h":X=Lt(ut.Hours,1,-12);break;case"hh":X=Lt(ut.Hours,2,-12);break;case"H":X=Lt(ut.Hours,1);break;case"HH":X=Lt(ut.Hours,2);break;case"m":X=Lt(ut.Minutes,1);break;case"mm":X=Lt(ut.Minutes,2);break;case"s":X=Lt(ut.Seconds,1);break;case"ss":X=Lt(ut.Seconds,2);break;case"S":X=Lt(ut.FractionalSeconds,1);break;case"SS":X=Lt(ut.FractionalSeconds,2);break;case"SSS":X=Lt(ut.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":X=qt(st.Short);break;case"ZZZZZ":X=qt(st.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":X=qt(st.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":X=qt(st.Long);break;default:return null}return It[be]=X,X}(di);ni+=ai?ai(ve,k,In):"''"===di?"'":di.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ni}function tn(be,X,k){const V=new Date(0);return V.setFullYear(be,X,k),V.setHours(0,0,0),V}function Dt(be,X){const k=ie(be);if(Be[k]=Be[k]||{},Be[k][X])return Be[k][X];let V="";switch(X){case"shortDate":V=gt(be,te.Short);break;case"mediumDate":V=gt(be,te.Medium);break;case"longDate":V=gt(be,te.Long);break;case"fullDate":V=gt(be,te.Full);break;case"shortTime":V=Ue(be,te.Short);break;case"mediumTime":V=Ue(be,te.Medium);break;case"longTime":V=Ue(be,te.Long);break;case"fullTime":V=Ue(be,te.Full);break;case"short":const ve=Dt(be,"shortTime"),nt=Dt(be,"shortDate");V=Kt(tt(be,te.Short),[ve,nt]);break;case"medium":const Nt=Dt(be,"mediumTime"),nn=Dt(be,"mediumDate");V=Kt(tt(be,te.Medium),[Nt,nn]);break;case"long":const In=Dt(be,"longTime"),ni=Dt(be,"longDate");V=Kt(tt(be,te.Long),[In,ni]);break;case"full":const di=Dt(be,"fullTime"),ai=Dt(be,"fullDate");V=Kt(tt(be,te.Full),[di,ai])}return V&&(Be[k][X]=V),V}function Kt(be,X){return X&&(be=be.replace(/\{([^}]+)}/g,function(k,V){return null!=X&&V in X?X[V]:k})),be}function et(be,X,k="-",V,ve){let nt="";(be<0||ve&&be<=0)&&(ve?be=1-be:(be=-be,nt=k));let Nt=String(be);for(;Nt.length0||nn>-k)&&(nn+=k),be===ut.Hours)0===nn&&-12===k&&(nn=12);else if(be===ut.FractionalSeconds)return function(be,X){return et(be,3).substr(0,X)}(nn,X);const In=at(Nt,$.MinusSign);return et(nn,X,In,V,ve)}}function mt(be,X,k=Y.Format,V=!1){return function(ve,nt){return function(be,X,k,V,ve,nt){switch(k){case St.Months:return Oe(X,ve,V)[be.getMonth()];case St.Days:return le(X,ve,V)[be.getDay()];case St.DayPeriods:const Nt=be.getHours(),nn=be.getMinutes();if(nt){const ni=Bt(X),di=Et(X,ve,V),ai=ni.findIndex(hi=>{if(Array.isArray(hi)){const[Ei,ki]=hi,xn=Nt>=Ei.hours&&nn>=Ei.minutes,Kr=Nt0?Math.floor(ve/60):Math.ceil(ve/60);switch(be){case st.Short:return(ve>=0?"+":"")+et(Nt,2,nt)+et(Math.abs(ve%60),2,nt);case st.ShortGMT:return"GMT"+(ve>=0?"+":"")+et(Nt,1,nt);case st.Long:return"GMT"+(ve>=0?"+":"")+et(Nt,2,nt)+":"+et(Math.abs(ve%60),2,nt);case st.Extended:return 0===V?"Z":(ve>=0?"+":"")+et(Nt,2,nt)+":"+et(Math.abs(ve%60),2,nt);default:throw new Error(`Unknown zone width "${be}"`)}}}function re(be){return tn(be.getFullYear(),be.getMonth(),be.getDate()+(4-be.getDay()))}function Me(be,X=!1){return function(k,V){let ve;if(X){const nt=new Date(k.getFullYear(),k.getMonth(),1).getDay()-1,Nt=k.getDate();ve=1+Math.floor((Nt+nt)/7)}else{const nt=re(k),Nt=function(be){const X=tn(be,0,1).getDay();return tn(be,0,1+(X<=4?4:11)-X)}(nt.getFullYear()),nn=nt.getTime()-Nt.getTime();ve=1+Math.round(nn/6048e5)}return et(ve,be,at(V,$.MinusSign))}}function ze(be,X=!1){return function(k,V){return et(re(k).getFullYear(),be,at(V,$.MinusSign),X)}}const It={};function cn(be,X){be=be.replace(/:/g,"");const k=Date.parse("Jan 01, 1970 00:00:00 "+be)/6e4;return isNaN(k)?X:k}function pt(be){return be instanceof Date&&!isNaN(be.valueOf())}const Ot=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qn(be,X,k,V,ve,nt,Nt=!1){let nn="",In=!1;if(isFinite(be)){let ni=function(be){let V,ve,nt,Nt,nn,X=Math.abs(be)+"",k=0;for((ve=X.indexOf("."))>-1&&(X=X.replace(".","")),(nt=X.search(/e/i))>0?(ve<0&&(ve=nt),ve+=+X.slice(nt+1),X=X.substring(0,nt)):ve<0&&(ve=X.length),nt=0;"0"===X.charAt(nt);nt++);if(nt===(nn=X.length))V=[0],ve=1;else{for(nn--;"0"===X.charAt(nn);)nn--;for(ve-=nt,V=[],Nt=0;nt<=nn;nt++,Nt++)V[Nt]=Number(X.charAt(nt))}return ve>22&&(V=V.splice(0,21),k=ve-1,ve=1),{digits:V,exponent:k,integerLen:ve}}(be);Nt&&(ni=function(be){if(0===be.digits[0])return be;const X=be.digits.length-be.integerLen;return be.exponent?be.exponent+=2:(0===X?be.digits.push(0,0):1===X&&be.digits.push(0),be.integerLen+=2),be}(ni));let di=X.minInt,ai=X.minFrac,hi=X.maxFrac;if(nt){const xr=nt.match(Ot);if(null===xr)throw new Error(`${nt} is not a valid digit info`);const cs=xr[1],es=xr[3],ds=xr[5];null!=cs&&(di=de(cs)),null!=es&&(ai=de(es)),null!=ds?hi=de(ds):null!=es&&ai>hi&&(hi=ai)}!function(be,X,k){if(X>k)throw new Error(`The minimum number of digits after fraction (${X}) is higher than the maximum (${k}).`);let V=be.digits,ve=V.length-be.integerLen;const nt=Math.min(Math.max(X,ve),k);let Nt=nt+be.integerLen,nn=V[Nt];if(Nt>0){V.splice(Math.max(be.integerLen,Nt));for(let ai=Nt;ai=5)if(Nt-1<0){for(let ai=0;ai>Nt;ai--)V.unshift(0),be.integerLen++;V.unshift(1),be.integerLen++}else V[Nt-1]++;for(;ve=ni?ki.pop():In=!1),hi>=10?1:0},0);di&&(V.unshift(di),be.integerLen++)}(ni,ai,hi);let Ei=ni.digits,ki=ni.integerLen;const xn=ni.exponent;let Kr=[];for(In=Ei.every(xr=>!xr);ki0?Kr=Ei.splice(ki,Ei.length):(Kr=Ei,Ei=[0]);const rr=[];for(Ei.length>=X.lgSize&&rr.unshift(Ei.splice(-X.lgSize,Ei.length).join(""));Ei.length>X.gSize;)rr.unshift(Ei.splice(-X.gSize,Ei.length).join(""));Ei.length&&rr.unshift(Ei.join("")),nn=rr.join(at(k,V)),Kr.length&&(nn+=at(k,ve)+Kr.join("")),xn&&(nn+=at(k,$.Exponential)+"+"+xn)}else nn=at(k,$.Infinity);return nn=be<0&&!In?X.negPre+nn+X.negSuf:X.posPre+nn+X.posSuf,nn}function Vi(be,X,k,V,ve){const Nt=Ze(ft(X,F.Currency),at(X,$.MinusSign));return Nt.minFrac=Z(V),Nt.maxFrac=Nt.minFrac,qn(be,Nt,X,$.CurrencyGroup,$.CurrencyDecimal,ve).replace("\xa4",k).replace("\xa4","").trim()}function ci(be,X,k){return qn(be,Ze(ft(X,F.Percent),at(X,$.MinusSign)),X,$.Group,$.Decimal,k,!0).replace(new RegExp("%","g"),at(X,$.PercentSign))}function xe(be,X,k){return qn(be,Ze(ft(X,F.Decimal),at(X,$.MinusSign)),X,$.Group,$.Decimal,k)}function Ze(be,X="-"){const k={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},V=be.split(";"),ve=V[0],nt=V[1],Nt=-1!==ve.indexOf(".")?ve.split("."):[ve.substring(0,ve.lastIndexOf("0")+1),ve.substring(ve.lastIndexOf("0")+1)],nn=Nt[0],In=Nt[1]||"";k.posPre=nn.substr(0,nn.indexOf("#"));for(let di=0;di-1||(ve=k.getPluralCategory(be,V),X.indexOf(ve)>-1))return ve;if(X.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${be}"`)}let Wt=(()=>{class be extends Pe{constructor(k){super(),this.locale=k}getPluralCategory(k,V){switch(At(V||this.locale)(k)){case ne.Zero:return"zero";case ne.One:return"one";case ne.Two:return"two";case ne.Few:return"few";case ne.Many:return"many";default:return"other"}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275inject(n.LOCALE_ID))},be.\u0275prov=n.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();function Ft(be,X,k){return(0,n.\u0275registerLocaleData)(be,X,k)}function Ht(be,X){X=encodeURIComponent(X);for(const k of be.split(";")){const V=k.indexOf("="),[ve,nt]=-1==V?[k,""]:[k.slice(0,V),k.slice(V+1)];if(ve.trim()===X)return decodeURIComponent(nt)}return null}let Zt=(()=>{class be{constructor(k,V,ve,nt){this._iterableDiffers=k,this._keyValueDiffers=V,this._ngEl=ve,this._renderer=nt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(k){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof k?k.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(k){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof k?k.split(/\s+/):k,this._rawClass&&((0,n.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const k=this._iterableDiffer.diff(this._rawClass);k&&this._applyIterableChanges(k)}else if(this._keyValueDiffer){const k=this._keyValueDiffer.diff(this._rawClass);k&&this._applyKeyValueChanges(k)}}_applyKeyValueChanges(k){k.forEachAddedItem(V=>this._toggleClass(V.key,V.currentValue)),k.forEachChangedItem(V=>this._toggleClass(V.key,V.currentValue)),k.forEachRemovedItem(V=>{V.previousValue&&this._toggleClass(V.key,!1)})}_applyIterableChanges(k){k.forEachAddedItem(V=>{if("string"!=typeof V.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.\u0275stringify)(V.item)}`);this._toggleClass(V.item,!0)}),k.forEachRemovedItem(V=>this._toggleClass(V.item,!1))}_applyClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(V=>this._toggleClass(V,!0)):Object.keys(k).forEach(V=>this._toggleClass(V,!!k[V])))}_removeClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(V=>this._toggleClass(V,!1)):Object.keys(k).forEach(V=>this._toggleClass(V,!1)))}_toggleClass(k,V){(k=k.trim())&&k.split(/\s+/g).forEach(ve=>{V?this._renderer.addClass(this._ngEl.nativeElement,ve):this._renderer.removeClass(this._ngEl.nativeElement,ve)})}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),be})(),an=(()=>{class be{constructor(k){this._viewContainerRef=k,this._componentRef=null,this._moduleRef=null}ngOnChanges(k){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const V=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(k.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const Nt=V.get(n.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Nt.injector)}else this._moduleRef=null;const nt=(this._moduleRef?this._moduleRef.componentFactoryResolver:V.get(n.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(nt,this._viewContainerRef.length,V,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[n.\u0275\u0275NgOnChangesFeature]}),be})();class Tn{constructor(X,k,V,ve){this.$implicit=X,this.ngForOf=k,this.index=V,this.count=ve}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 zn=(()=>{class be{constructor(k,V,ve){this._viewContainer=k,this._template=V,this._differs=ve,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(k){this._ngForOf=k,this._ngForOfDirty=!0}set ngForTrackBy(k){this._trackByFn=k}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(k){k&&(this._template=k)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const k=this._ngForOf;!this._differ&&k&&(this._differ=this._differs.find(k).create(this.ngForTrackBy))}if(this._differ){const k=this._differ.diff(this._ngForOf);k&&this._applyChanges(k)}}_applyChanges(k){const V=this._viewContainer;k.forEachOperation((ve,nt,Nt)=>{if(null==ve.previousIndex)V.createEmbeddedView(this._template,new Tn(ve.item,this._ngForOf,-1,-1),null===Nt?void 0:Nt);else if(null==Nt)V.remove(null===nt?void 0:nt);else if(null!==nt){const nn=V.get(nt);V.move(nn,Nt),$n(nn,ve)}});for(let ve=0,nt=V.length;ve{$n(V.get(ve.currentIndex),ve)})}static ngTemplateContextGuard(k,V){return!0}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),be})();function $n(be,X){be.context.$implicit=X.item}let jn=(()=>{class be{constructor(k,V){this._viewContainer=k,this._context=new Qn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(k){this._context.$implicit=this._context.ngIf=k,this._updateView()}set ngIfThen(k){kn("ngIfThen",k),this._thenTemplateRef=k,this._thenViewRef=null,this._updateView()}set ngIfElse(k){kn("ngIfElse",k),this._elseTemplateRef=k,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(k,V){return!0}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),be})();class Qn{constructor(){this.$implicit=null,this.ngIf=null}}function kn(be,X){if(X&&!X.createEmbeddedView)throw new Error(`${be} must be a TemplateRef, but received '${(0,n.\u0275stringify)(X)}'.`)}class Mi{constructor(X,k){this._viewContainerRef=X,this._templateRef=k,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(X){X&&!this._created?this.create():!X&&this._created&&this.destroy()}}let Zi=(()=>{class be{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(k){this._ngSwitch=k,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(k){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(k)}_matchCase(k){const V=k==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(k){if(this._defaultViews&&k!==this._defaultUsed){this._defaultUsed=k;for(let V=0;V{class be{constructor(k,V,ve){this.ngSwitch=ve,ve._addCase(),this._view=new Mi(k,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Zi,9))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),be})(),pi=(()=>{class be{constructor(k,V,ve){ve._addDefault(new Mi(k,V))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Zi,9))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngSwitchDefault",""]]}),be})(),Ui=(()=>{class be{constructor(k){this._localization=k,this._caseViews={}}set ngPlural(k){this._switchValue=k,this._updateView()}addCase(k,V){this._caseViews[k]=V}_updateView(){this._clearViews();const k=Object.keys(this._caseViews),V=Xe(this._switchValue,k,this._localization);this._activateView(this._caseViews[V])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(k){k&&(this._activeView=k,this._activeView.create())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(Pe))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),be})(),tr=(()=>{class be{constructor(k,V,ve,nt){this.value=k;const Nt=!isNaN(Number(k));nt.addCase(Nt?`=${k}`:k,new Mi(ve,V))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275injectAttribute("ngPluralCase"),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(Ui,1))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngPluralCase",""]]}),be})(),bi=(()=>{class be{constructor(k,V,ve){this._ngEl=k,this._differs=V,this._renderer=ve,this._ngStyle=null,this._differ=null}set ngStyle(k){this._ngStyle=k,!this._differ&&k&&(this._differ=this._differs.find(k).create())}ngDoCheck(){if(this._differ){const k=this._differ.diff(this._ngStyle);k&&this._applyChanges(k)}}_setStyle(k,V){const[ve,nt]=k.split(".");null!=(V=null!=V&&nt?`${V}${nt}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,ve,V):this._renderer.removeStyle(this._ngEl.nativeElement,ve)}_applyChanges(k){k.forEachRemovedItem(V=>this._setStyle(V.key,null)),k.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),k.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.Renderer2))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),be})(),Rn=(()=>{class be{constructor(k){this._viewContainerRef=k,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(k){if(k.ngTemplateOutlet){const V=this._viewContainerRef;this._viewRef&&V.remove(V.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?V.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&k.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},be.\u0275dir=n.\u0275\u0275defineDirective({type:be,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.\u0275\u0275NgOnChangesFeature]}),be})();function oi(be,X){return Error(`InvalidPipeArgument: '${X}' for pipe '${(0,n.\u0275stringify)(be)}'`)}class Fn{createSubscription(X,k){return X.subscribe({next:k,error:V=>{throw V}})}dispose(X){X.unsubscribe()}onDestroy(X){X.unsubscribe()}}class $i{createSubscription(X,k){return X.then(k,V=>{throw V})}dispose(X){}onDestroy(X){}}const mi=new $i,Gn=new Fn;let ur=(()=>{class be{constructor(k){this._ref=k,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(k){return this._obj?k!==this._obj?(this._dispose(),this.transform(k)):this._latestValue:(k&&this._subscribe(k),this._latestValue)}_subscribe(k){this._obj=k,this._strategy=this._selectStrategy(k),this._subscription=this._strategy.createSubscription(k,V=>this._updateLatestValue(k,V))}_selectStrategy(k){if((0,n.\u0275isPromise)(k))return mi;if((0,n.\u0275isSubscribable)(k))return Gn;throw oi(be,k)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(k,V){k===this._obj&&(this._latestValue=V,this._ref.markForCheck())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"async",type:be,pure:!1}),be})(),gn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.toLowerCase()}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"lowercase",type:be,pure:!0}),be})();const yn=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\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\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\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\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Sn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.replace(yn,V=>V[0].toUpperCase()+V.substr(1).toLowerCase())}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"titlecase",type:be,pure:!0}),be})(),Wn=(()=>{class be{transform(k){if(null==k)return null;if("string"!=typeof k)throw oi(be,k);return k.toUpperCase()}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"uppercase",type:be,pure:!0}),be})();const Ri=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Li=(()=>{class be{constructor(k,V){this.locale=k,this.defaultTimezone=V}transform(k,V="mediumDate",ve,nt){var Nt;if(null==k||""===k||k!=k)return null;try{return Xt(k,V,nt||this.locale,null!==(Nt=null!=ve?ve:this.defaultTimezone)&&void 0!==Nt?Nt:void 0)}catch(nn){throw oi(be,nn.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(Ri,24))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:be,pure:!0}),be})();const as=/#/g;let Vr=(()=>{class be{constructor(k){this._localization=k}transform(k,V,ve){if(null==k)return"";if("object"!=typeof V||null===V)throw oi(be,V);return V[Xe(k,Object.keys(V),this._localization,ve)].replace(as,k.toString())}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(Pe,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:be,pure:!0}),be})(),nr=(()=>{class be{transform(k,V){if(null==k)return"";if("object"!=typeof V||"string"!=typeof k)throw oi(be,V);return V.hasOwnProperty(k)?V[k]:V.hasOwnProperty("other")?V.other:""}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nSelect",type:be,pure:!0}),be})(),Or=(()=>{class be{transform(k){return JSON.stringify(k,null,2)}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"json",type:be,pure:!1}),be})(),cr=(()=>{class be{constructor(k){this.differs=k,this.keyValues=[],this.compareFn=$r}transform(k,V=$r){if(!k||!(k instanceof Map)&&"object"!=typeof k)return null;this.differ||(this.differ=this.differs.find(k).create());const ve=this.differ.diff(k),nt=V!==this.compareFn;return ve&&(this.keyValues=[],ve.forEachItem(Nt=>{this.keyValues.push(function(be,X){return{key:be,value:X}}(Nt.key,Nt.currentValue))})),(ve||nt)&&(this.keyValues.sort(V),this.compareFn=V),this.keyValues}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.KeyValueDiffers,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"keyvalue",type:be,pure:!1}),be})();function $r(be,X){const k=be.key,V=X.key;if(k===V)return 0;if(void 0===k)return 1;if(void 0===V)return-1;if(null===k)return 1;if(null===V)return-1;if("string"==typeof k&&"string"==typeof V)return k{class be{constructor(k){this._locale=k}transform(k,V,ve){if(!Cr(k))return null;ve=ve||this._locale;try{return xe(Sr(k),ve,V)}catch(nt){throw oi(be,nt.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"number",type:be,pure:!0}),be})(),qr=(()=>{class be{constructor(k){this._locale=k}transform(k,V,ve){if(!Cr(k))return null;ve=ve||this._locale;try{return ci(Sr(k),ve,V)}catch(nt){throw oi(be,nt.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"percent",type:be,pure:!0}),be})(),ir=(()=>{class be{constructor(k,V="USD"){this._locale=k,this._defaultCurrencyCode=V}transform(k,V=this._defaultCurrencyCode,ve="symbol",nt,Nt){if(!Cr(k))return null;Nt=Nt||this._locale,"boolean"==typeof ve&&(ve=ve?"symbol":"code");let nn=V||this._defaultCurrencyCode;"code"!==ve&&(nn="symbol"===ve||"symbol-narrow"===ve?x(nn,"symbol"===ve?"wide":"narrow",Nt):ve);try{return Vi(Sr(k),Nt,nn,V,nt)}catch(In){throw oi(be,In.message)}}}return be.\u0275fac=function(k){return new(k||be)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(n.DEFAULT_CURRENCY_CODE,16))},be.\u0275pipe=n.\u0275\u0275definePipe({name:"currency",type:be,pure:!0}),be})();function Cr(be){return!(null==be||""===be||be!=be)}function Sr(be){if("string"==typeof be&&!isNaN(Number(be)-parseFloat(be)))return Number(be);if("number"!=typeof be)throw new Error(`${be} is not a number`);return be}let mr=(()=>{class be{transform(k,V,ve){if(null==k)return null;if(!this.supports(k))throw oi(be,k);return k.slice(V,ve)}supports(k){return"string"==typeof k||Array.isArray(k)}}return be.\u0275fac=function(k){return new(k||be)},be.\u0275pipe=n.\u0275\u0275definePipe({name:"slice",type:be,pure:!1}),be})(),jr=(()=>{class be{}return be.\u0275fac=function(k){return new(k||be)},be.\u0275mod=n.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:Pe,useClass:Wt}]}),be})();const Wi="browser",Wr="server",Rr="browserWorkerApp",Dr="browserWorkerUi";function Lr(be){return be===Wi}function Ji(be){return be===Wr}function Fr(be){return be===Rr}function ls(be){return be===Dr}const kr=new n.Version("13.1.1");let Jr=(()=>{class be{}return be.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:be,providedIn:"root",factory:()=>new Tr((0,n.\u0275\u0275inject)(u),window)}),be})();class Tr{constructor(X,k){this.document=X,this.window=k,this.offset=()=>[0,0]}setOffset(X){this.offset=Array.isArray(X)?()=>X:X}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(X){this.supportsScrolling()&&this.window.scrollTo(X[0],X[1])}scrollToAnchor(X){if(!this.supportsScrolling())return;const k=function(be,X){const k=be.getElementById(X)||be.getElementsByName(X)[0];if(k)return k;if("function"==typeof be.createTreeWalker&&be.body&&(be.body.createShadowRoot||be.body.attachShadow)){const V=be.createTreeWalker(be.body,NodeFilter.SHOW_ELEMENT);let ve=V.currentNode;for(;ve;){const nt=ve.shadowRoot;if(nt){const Nt=nt.getElementById(X)||nt.querySelector(`[name="${X}"]`);if(Nt)return Nt}ve=V.nextNode()}}return null}(this.document,X);k&&(this.scrollToElement(k),this.attemptFocus(k))}setHistoryScrollRestoration(X){if(this.supportScrollRestoration()){const k=this.window.history;k&&k.scrollRestoration&&(k.scrollRestoration=X)}}scrollToElement(X){const k=X.getBoundingClientRect(),V=k.left+this.window.pageXOffset,ve=k.top+this.window.pageYOffset,nt=this.offset();this.window.scrollTo(V-nt[0],ve-nt[1])}attemptFocus(X){return X.focus(),this.document.activeElement===X}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const X=us(this.window.history)||us(Object.getPrototypeOf(this.window.history));return!(!X||!X.writable&&!X.set)}catch(X){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(X){return!1}}}function us(be){return Object.getOwnPropertyDescriptor(be,"scrollRestoration")}class zr{setOffset(X){}getScrollPosition(){return[0,0]}scrollToPosition(X){}scrollToAnchor(X){}setHistoryScrollRestoration(X){}}class Er{}},520:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{HTTP_INTERCEPTORS:()=>ie,HttpBackend:()=>r,HttpClient:()=>$,HttpClientJsonpModule:()=>H,HttpClientModule:()=>fe,HttpClientXsrfModule:()=>Ee,HttpContext:()=>O,HttpContextToken:()=>D,HttpErrorResponse:()=>Q,HttpEventType:()=>L,HttpHandler:()=>h,HttpHeaderResponse:()=>ne,HttpHeaders:()=>s,HttpParams:()=>T,HttpRequest:()=>b,HttpResponse:()=>Y,HttpResponseBase:()=>F,HttpUrlEncodingCodec:()=>i,HttpXhrBackend:()=>ft,HttpXsrfTokenExtractor:()=>ot,JsonpClientBackend:()=>gt,JsonpInterceptor:()=>Ue,XhrFactory:()=>x,\u0275HttpInterceptingHandler:()=>Tt});var n=p(9808),f=p(5e3),v=p(1086),m=p(6498),o=p(1406),d=p(2198),u=p(4850);class h{}class r{}class s{constructor(Z){this.normalizedNames=new Map,this.lazyUpdate=null,Z?this.lazyInit="string"==typeof Z?()=>{this.headers=new Map,Z.split("\n").forEach(_e=>{const Be=_e.indexOf(":");if(Be>0){const $e=_e.slice(0,Be),st=$e.toLowerCase(),ut=_e.slice(Be+1).trim();this.maybeSetNormalizedName($e,st),this.headers.has(st)?this.headers.get(st).push(ut):this.headers.set(st,[ut])}})}:()=>{this.headers=new Map,Object.keys(Z).forEach(_e=>{let Be=Z[_e];const $e=_e.toLowerCase();"string"==typeof Be&&(Be=[Be]),Be.length>0&&(this.headers.set($e,Be),this.maybeSetNormalizedName(_e,$e))})}:this.headers=new Map}has(Z){return this.init(),this.headers.has(Z.toLowerCase())}get(Z){this.init();const _e=this.headers.get(Z.toLowerCase());return _e&&_e.length>0?_e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Z){return this.init(),this.headers.get(Z.toLowerCase())||null}append(Z,_e){return this.clone({name:Z,value:_e,op:"a"})}set(Z,_e){return this.clone({name:Z,value:_e,op:"s"})}delete(Z,_e){return this.clone({name:Z,value:_e,op:"d"})}maybeSetNormalizedName(Z,_e){this.normalizedNames.has(_e)||this.normalizedNames.set(_e,Z)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Z=>this.applyUpdate(Z)),this.lazyUpdate=null))}copyFrom(Z){Z.init(),Array.from(Z.headers.keys()).forEach(_e=>{this.headers.set(_e,Z.headers.get(_e)),this.normalizedNames.set(_e,Z.normalizedNames.get(_e))})}clone(Z){const _e=new s;return _e.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,_e.lazyUpdate=(this.lazyUpdate||[]).concat([Z]),_e}applyUpdate(Z){const _e=Z.name.toLowerCase();switch(Z.op){case"a":case"s":let Be=Z.value;if("string"==typeof Be&&(Be=[Be]),0===Be.length)return;this.maybeSetNormalizedName(Z.name,_e);const $e=("a"===Z.op?this.headers.get(_e):void 0)||[];$e.push(...Be),this.headers.set(_e,$e);break;case"d":const st=Z.value;if(st){let ut=this.headers.get(_e);if(!ut)return;ut=ut.filter(St=>-1===st.indexOf(St)),0===ut.length?(this.headers.delete(_e),this.normalizedNames.delete(_e)):this.headers.set(_e,ut)}else this.headers.delete(_e),this.normalizedNames.delete(_e)}}forEach(Z){this.init(),Array.from(this.normalizedNames.keys()).forEach(_e=>Z(this.normalizedNames.get(_e),this.headers.get(_e)))}}class i{encodeKey(Z){return y(Z)}encodeValue(Z){return y(Z)}decodeKey(Z){return decodeURIComponent(Z)}decodeValue(Z){return decodeURIComponent(Z)}}const l=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function y(U){return encodeURIComponent(U).replace(l,(Z,_e)=>{var Be;return null!==(Be=g[_e])&&void 0!==Be?Be:Z})}function E(U){return`${U}`}class T{constructor(Z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Z.encoder||new i,Z.fromString){if(Z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(U,Z){const _e=new Map;return U.length>0&&U.replace(/^\?/,"").split("&").forEach($e=>{const st=$e.indexOf("="),[ut,St]=-1==st?[Z.decodeKey($e),""]:[Z.decodeKey($e.slice(0,st)),Z.decodeValue($e.slice(st+1))],Xt=_e.get(ut)||[];Xt.push(St),_e.set(ut,Xt)}),_e}(Z.fromString,this.encoder)}else Z.fromObject?(this.map=new Map,Object.keys(Z.fromObject).forEach(_e=>{const Be=Z.fromObject[_e];this.map.set(_e,Array.isArray(Be)?Be:[Be])})):this.map=null}has(Z){return this.init(),this.map.has(Z)}get(Z){this.init();const _e=this.map.get(Z);return _e?_e[0]:null}getAll(Z){return this.init(),this.map.get(Z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Z,_e){return this.clone({param:Z,value:_e,op:"a"})}appendAll(Z){const _e=[];return Object.keys(Z).forEach(Be=>{const $e=Z[Be];Array.isArray($e)?$e.forEach(st=>{_e.push({param:Be,value:st,op:"a"})}):_e.push({param:Be,value:$e,op:"a"})}),this.clone(_e)}set(Z,_e){return this.clone({param:Z,value:_e,op:"s"})}delete(Z,_e){return this.clone({param:Z,value:_e,op:"d"})}toString(){return this.init(),this.keys().map(Z=>{const _e=this.encoder.encodeKey(Z);return this.map.get(Z).map(Be=>_e+"="+this.encoder.encodeValue(Be)).join("&")}).filter(Z=>""!==Z).join("&")}clone(Z){const _e=new T({encoder:this.encoder});return _e.cloneFrom=this.cloneFrom||this,_e.updates=(this.updates||[]).concat(Z),_e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Z=>this.map.set(Z,this.cloneFrom.map.get(Z))),this.updates.forEach(Z=>{switch(Z.op){case"a":case"s":const _e=("a"===Z.op?this.map.get(Z.param):void 0)||[];_e.push(E(Z.value)),this.map.set(Z.param,_e);break;case"d":if(void 0===Z.value){this.map.delete(Z.param);break}{let Be=this.map.get(Z.param)||[];const $e=Be.indexOf(E(Z.value));-1!==$e&&Be.splice($e,1),Be.length>0?this.map.set(Z.param,Be):this.map.delete(Z.param)}}}),this.cloneFrom=this.updates=null)}}class D{constructor(Z){this.defaultValue=Z}}class O{constructor(){this.map=new Map}set(Z,_e){return this.map.set(Z,_e),this}get(Z){return this.map.has(Z)||this.map.set(Z,Z.defaultValue()),this.map.get(Z)}delete(Z){return this.map.delete(Z),this}has(Z){return this.map.has(Z)}keys(){return this.map.keys()}}function A(U){return"undefined"!=typeof ArrayBuffer&&U instanceof ArrayBuffer}function S(U){return"undefined"!=typeof Blob&&U instanceof Blob}function M(U){return"undefined"!=typeof FormData&&U instanceof FormData}class b{constructor(Z,_e,Be,$e){let st;if(this.url=_e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Z.toUpperCase(),function(U){switch(U){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||$e?(this.body=void 0!==Be?Be:null,st=$e):st=Be,st&&(this.reportProgress=!!st.reportProgress,this.withCredentials=!!st.withCredentials,st.responseType&&(this.responseType=st.responseType),st.headers&&(this.headers=st.headers),st.context&&(this.context=st.context),st.params&&(this.params=st.params)),this.headers||(this.headers=new s),this.context||(this.context=new O),this.params){const ut=this.params.toString();if(0===ut.length)this.urlWithParams=_e;else{const St=_e.indexOf("?");this.urlWithParams=_e+(-1===St?"?":St<_e.length-1?"&":"")+ut}}else this.params=new T,this.urlWithParams=_e}serializeBody(){return null===this.body?null:A(this.body)||S(this.body)||M(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof T?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||M(this.body)?null:S(this.body)?this.body.type||null:A(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof T?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Z={}){var _e;const Be=Z.method||this.method,$e=Z.url||this.url,st=Z.responseType||this.responseType,ut=void 0!==Z.body?Z.body:this.body,St=void 0!==Z.withCredentials?Z.withCredentials:this.withCredentials,Xt=void 0!==Z.reportProgress?Z.reportProgress:this.reportProgress;let tn=Z.headers||this.headers,Dt=Z.params||this.params;const Kt=null!==(_e=Z.context)&&void 0!==_e?_e:this.context;return void 0!==Z.setHeaders&&(tn=Object.keys(Z.setHeaders).reduce((et,xt)=>et.set(xt,Z.setHeaders[xt]),tn)),Z.setParams&&(Dt=Object.keys(Z.setParams).reduce((et,xt)=>et.set(xt,Z.setParams[xt]),Dt)),new b(Be,$e,ut,{params:Dt,headers:tn,context:Kt,reportProgress:Xt,responseType:st,withCredentials:St})}}var L=(()=>((L=L||{})[L.Sent=0]="Sent",L[L.UploadProgress=1]="UploadProgress",L[L.ResponseHeader=2]="ResponseHeader",L[L.DownloadProgress=3]="DownloadProgress",L[L.Response=4]="Response",L[L.User=5]="User",L))();class F{constructor(Z,_e=200,Be="OK"){this.headers=Z.headers||new s,this.status=void 0!==Z.status?Z.status:_e,this.statusText=Z.statusText||Be,this.url=Z.url||null,this.ok=this.status>=200&&this.status<300}}class ne extends F{constructor(Z={}){super(Z),this.type=L.ResponseHeader}clone(Z={}){return new ne({headers:Z.headers||this.headers,status:void 0!==Z.status?Z.status:this.status,statusText:Z.statusText||this.statusText,url:Z.url||this.url||void 0})}}class Y extends F{constructor(Z={}){super(Z),this.type=L.Response,this.body=void 0!==Z.body?Z.body:null}clone(Z={}){return new Y({body:void 0!==Z.body?Z.body:this.body,headers:Z.headers||this.headers,status:void 0!==Z.status?Z.status:this.status,statusText:Z.statusText||this.statusText,url:Z.url||this.url||void 0})}}class Q extends F{constructor(Z){super(Z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Z.url||"(unknown url)"}`:`Http failure response for ${Z.url||"(unknown url)"}: ${Z.status} ${Z.statusText}`,this.error=Z.error||null}}function te(U,Z){return{body:Z,headers:U.headers,context:U.context,observe:U.observe,params:U.params,reportProgress:U.reportProgress,responseType:U.responseType,withCredentials:U.withCredentials}}let $=(()=>{class U{constructor(_e){this.handler=_e}request(_e,Be,$e={}){let st;if(_e instanceof b)st=_e;else{let Xt,tn;Xt=$e.headers instanceof s?$e.headers:new s($e.headers),$e.params&&(tn=$e.params instanceof T?$e.params:new T({fromObject:$e.params})),st=new b(_e,Be,void 0!==$e.body?$e.body:null,{headers:Xt,context:$e.context,params:tn,reportProgress:$e.reportProgress,responseType:$e.responseType||"json",withCredentials:$e.withCredentials})}const ut=(0,v.of)(st).pipe((0,o.b)(Xt=>this.handler.handle(Xt)));if(_e instanceof b||"events"===$e.observe)return ut;const St=ut.pipe((0,d.h)(Xt=>Xt instanceof Y));switch($e.observe||"body"){case"body":switch(st.responseType){case"arraybuffer":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&!(Xt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xt.body}));case"blob":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&!(Xt.body instanceof Blob))throw new Error("Response is not a Blob.");return Xt.body}));case"text":return St.pipe((0,u.U)(Xt=>{if(null!==Xt.body&&"string"!=typeof Xt.body)throw new Error("Response is not a string.");return Xt.body}));default:return St.pipe((0,u.U)(Xt=>Xt.body))}case"response":return St;default:throw new Error(`Unreachable: unhandled observe type ${$e.observe}}`)}}delete(_e,Be={}){return this.request("DELETE",_e,Be)}get(_e,Be={}){return this.request("GET",_e,Be)}head(_e,Be={}){return this.request("HEAD",_e,Be)}jsonp(_e,Be){return this.request("JSONP",_e,{params:(new T).append(Be,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(_e,Be={}){return this.request("OPTIONS",_e,Be)}patch(_e,Be,$e={}){return this.request("PATCH",_e,te($e,Be))}post(_e,Be,$e={}){return this.request("POST",_e,te($e,Be))}put(_e,Be,$e={}){return this.request("PUT",_e,te($e,Be))}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(h))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();class J{constructor(Z,_e){this.next=Z,this.interceptor=_e}handle(Z){return this.interceptor.intercept(Z,this.next)}}const ie=new f.InjectionToken("HTTP_INTERCEPTORS");let ae=(()=>{class U{intercept(_e,Be){return Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),le=0;class Je{}let gt=(()=>{class U{constructor(_e,Be){this.callbackMap=_e,this.document=Be,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+le++}handle(_e){if("JSONP"!==_e.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==_e.responseType)throw new Error("JSONP requests must use Json response type.");return new m.y(Be=>{const $e=this.nextCallback(),st=_e.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${$e}$1`),ut=this.document.createElement("script");ut.src=st;let St=null,Xt=!1,tn=!1;this.callbackMap[$e]=xt=>{delete this.callbackMap[$e],!tn&&(St=xt,Xt=!0)};const Dt=()=>{ut.parentNode&&ut.parentNode.removeChild(ut),delete this.callbackMap[$e]},Kt=xt=>{tn||this.resolvedPromise.then(()=>{Dt(),Xt?(Be.next(new Y({body:St,status:200,statusText:"OK",url:st})),Be.complete()):Be.error(new Q({url:st,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},et=xt=>{tn||(Dt(),Be.error(new Q({error:xt,status:0,statusText:"JSONP Error",url:st})))};return ut.addEventListener("load",Kt),ut.addEventListener("error",et),this.document.body.appendChild(ut),Be.next({type:L.Sent}),()=>{tn=!0,ut.removeEventListener("load",Kt),ut.removeEventListener("error",et),Dt()}})}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(Je),f.\u0275\u0275inject(n.DOCUMENT))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),Ue=(()=>{class U{constructor(_e){this.jsonp=_e}intercept(_e,Be){return"JSONP"===_e.method?this.jsonp.handle(_e):Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(gt))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();const tt=/^\)\]\}',?\n/;let ft=(()=>{class U{constructor(_e){this.xhrFactory=_e}handle(_e){if("JSONP"===_e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new m.y(Be=>{const $e=this.xhrFactory.build();if($e.open(_e.method,_e.urlWithParams),_e.withCredentials&&($e.withCredentials=!0),_e.headers.forEach((xt,Lt)=>$e.setRequestHeader(xt,Lt.join(","))),_e.headers.has("Accept")||$e.setRequestHeader("Accept","application/json, text/plain, */*"),!_e.headers.has("Content-Type")){const xt=_e.detectContentTypeHeader();null!==xt&&$e.setRequestHeader("Content-Type",xt)}if(_e.responseType){const xt=_e.responseType.toLowerCase();$e.responseType="json"!==xt?xt:"text"}const st=_e.serializeBody();let ut=null;const St=()=>{if(null!==ut)return ut;const xt=1223===$e.status?204:$e.status,Lt=$e.statusText||"OK",Qe=new s($e.getAllResponseHeaders()),mt=function(U){return"responseURL"in U&&U.responseURL?U.responseURL:/^X-Request-URL:/m.test(U.getAllResponseHeaders())?U.getResponseHeader("X-Request-URL"):null}($e)||_e.url;return ut=new ne({headers:Qe,status:xt,statusText:Lt,url:mt}),ut},Xt=()=>{let{headers:xt,status:Lt,statusText:Qe,url:mt}=St(),Vt=null;204!==Lt&&(Vt=void 0===$e.response?$e.responseText:$e.response),0===Lt&&(Lt=Vt?200:0);let qt=Lt>=200&&Lt<300;if("json"===_e.responseType&&"string"==typeof Vt){const Ne=Vt;Vt=Vt.replace(tt,"");try{Vt=""!==Vt?JSON.parse(Vt):null}catch(Se){Vt=Ne,qt&&(qt=!1,Vt={error:Se,text:Vt})}}qt?(Be.next(new Y({body:Vt,headers:xt,status:Lt,statusText:Qe,url:mt||void 0})),Be.complete()):Be.error(new Q({error:Vt,headers:xt,status:Lt,statusText:Qe,url:mt||void 0}))},tn=xt=>{const{url:Lt}=St(),Qe=new Q({error:xt,status:$e.status||0,statusText:$e.statusText||"Unknown Error",url:Lt||void 0});Be.error(Qe)};let Dt=!1;const Kt=xt=>{Dt||(Be.next(St()),Dt=!0);let Lt={type:L.DownloadProgress,loaded:xt.loaded};xt.lengthComputable&&(Lt.total=xt.total),"text"===_e.responseType&&!!$e.responseText&&(Lt.partialText=$e.responseText),Be.next(Lt)},et=xt=>{let Lt={type:L.UploadProgress,loaded:xt.loaded};xt.lengthComputable&&(Lt.total=xt.total),Be.next(Lt)};return $e.addEventListener("load",Xt),$e.addEventListener("error",tn),$e.addEventListener("timeout",tn),$e.addEventListener("abort",tn),_e.reportProgress&&($e.addEventListener("progress",Kt),null!==st&&$e.upload&&$e.upload.addEventListener("progress",et)),$e.send(st),Be.next({type:L.Sent}),()=>{$e.removeEventListener("error",tn),$e.removeEventListener("abort",tn),$e.removeEventListener("load",Xt),$e.removeEventListener("timeout",tn),_e.reportProgress&&($e.removeEventListener("progress",Kt),null!==st&&$e.upload&&$e.upload.removeEventListener("progress",et)),$e.readyState!==$e.DONE&&$e.abort()}})}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(n.XhrFactory))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();const vt=new f.InjectionToken("XSRF_COOKIE_NAME"),yt=new f.InjectionToken("XSRF_HEADER_NAME");class ot{}let _t=(()=>{class U{constructor(_e,Be,$e){this.doc=_e,this.platform=Be,this.cookieName=$e,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=(0,n.\u0275parseCookieValue)(_e,this.cookieName),this.lastCookieString=_e),this.lastToken}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(f.PLATFORM_ID),f.\u0275\u0275inject(vt))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),At=(()=>{class U{constructor(_e,Be){this.tokenService=_e,this.headerName=Be}intercept(_e,Be){const $e=_e.url.toLowerCase();if("GET"===_e.method||"HEAD"===_e.method||$e.startsWith("http://")||$e.startsWith("https://"))return Be.handle(_e);const st=this.tokenService.getToken();return null!==st&&!_e.headers.has(this.headerName)&&(_e=_e.clone({headers:_e.headers.set(this.headerName,st)})),Be.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(ot),f.\u0275\u0275inject(yt))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),Tt=(()=>{class U{constructor(_e,Be){this.backend=_e,this.injector=Be,this.chain=null}handle(_e){if(null===this.chain){const Be=this.injector.get(ie,[]);this.chain=Be.reduceRight(($e,st)=>new J($e,st),this.backend)}return this.chain.handle(_e)}}return U.\u0275fac=function(_e){return new(_e||U)(f.\u0275\u0275inject(r),f.\u0275\u0275inject(f.Injector))},U.\u0275prov=f.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();function Et(){return"object"==typeof window?window:{}}let Ee=(()=>{class U{static disable(){return{ngModule:U,providers:[{provide:At,useClass:ae}]}}static withOptions(_e={}){return{ngModule:U,providers:[_e.cookieName?{provide:vt,useValue:_e.cookieName}:[],_e.headerName?{provide:yt,useValue:_e.headerName}:[]]}}}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[At,{provide:ie,useExisting:At,multi:!0},{provide:ot,useClass:_t},{provide:vt,useValue:"XSRF-TOKEN"},{provide:yt,useValue:"X-XSRF-TOKEN"}]}),U})(),fe=(()=>{class U{}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[$,{provide:h,useClass:Tt},ft,{provide:r,useExisting:ft}],imports:[[Ee.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),U})(),H=(()=>{class U{}return U.\u0275fac=function(_e){return new(_e||U)},U.\u0275mod=f.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=f.\u0275\u0275defineInjector({providers:[gt,{provide:Je,useFactory:Et},{provide:ie,useClass:Ue,multi:!0}]}),U})();const x=n.XhrFactory},5e3:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>vo,APP_BOOTSTRAP_LISTENER:()=>sg,APP_ID:()=>tg,APP_INITIALIZER:()=>bd,ApplicationInitStatus:()=>la,ApplicationModule:()=>XC,ApplicationRef:()=>Wa,Attribute:()=>ha,COMPILER_OPTIONS:()=>ug,CUSTOM_ELEMENTS_SCHEMA:()=>Mh,ChangeDetectionStrategy:()=>Be,ChangeDetectorRef:()=>Mg,Compiler:()=>Ed,CompilerFactory:()=>oC,Component:()=>Q1,ComponentFactory:()=>El,ComponentFactoryResolver:()=>Na,ComponentRef:()=>V0,ContentChild:()=>Vl,ContentChildren:()=>Bl,DEFAULT_CURRENCY_CODE:()=>ag,DebugElement:()=>kC,DebugEventListener:()=>DC,DebugNode:()=>LC,DefaultIterableDiffer:()=>Ag,Directive:()=>eg,ElementRef:()=>Ua,EmbeddedViewRef:()=>SC,ErrorHandler:()=>Ca,EventEmitter:()=>Xs,Host:()=>Qd,HostBinding:()=>J1,HostListener:()=>eC,INJECTOR:()=>dl,Inject:()=>fo,InjectFlags:()=>Ee,Injectable:()=>by,InjectionToken:()=>lr,Injector:()=>gs,Input:()=>Z1,IterableDiffers:()=>kl,KeyValueDiffers:()=>Pl,LOCALE_ID:()=>Rl,MissingTranslationStrategy:()=>Zs,ModuleWithComponentFactories:()=>lg,NO_ERRORS_SCHEMA:()=>Sh,NgModule:()=>tC,NgModuleFactory:()=>X0,NgModuleRef:()=>sa,NgProbeToken:()=>mC,NgZone:()=>_s,Optional:()=>Is,Output:()=>q1,PACKAGE_ROOT_URL:()=>iC,PLATFORM_ID:()=>rg,PLATFORM_INITIALIZER:()=>ig,Pipe:()=>X1,PlatformRef:()=>Ad,Query:()=>yo,QueryList:()=>Tl,ReflectiveInjector:()=>Jo,ReflectiveKey:()=>ao,Renderer2:()=>c1,RendererFactory2:()=>H0,RendererStyleFlags2:()=>Ks,ResolvedReflectiveFactory:()=>mp,Sanitizer:()=>j0,SecurityContext:()=>br,Self:()=>io,SimpleChange:()=>Cr,SkipSelf:()=>Eo,TRANSLATIONS:()=>rC,TRANSLATIONS_FORMAT:()=>sC,TemplateRef:()=>$a,Testability:()=>fg,TestabilityRegistry:()=>Dd,Type:()=>Oo,VERSION:()=>z0,Version:()=>W0,ViewChild:()=>Hl,ViewChildren:()=>$l,ViewContainerRef:()=>Il,ViewEncapsulation:()=>ut,ViewRef:()=>Dg,asNativeElements:()=>TC,assertPlatform:()=>vg,createNgModuleRef:()=>v1,createPlatform:()=>gg,createPlatformFactory:()=>_g,defineInjectable:()=>tt,destroyPlatform:()=>gC,enableProdMode:()=>CC,forwardRef:()=>i,getDebugNode:()=>Ll,getModuleFactory:()=>EC,getNgModuleById:()=>wC,getPlatform:()=>Id,inject:()=>Fi,isDevMode:()=>bC,platformCore:()=>jC,resolveForwardRef:()=>c,setTestabilityGetter:()=>fC,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>xd,\u0275APP_ID_RANDOM_PROVIDER:()=>ng,\u0275ChangeDetectorStatus:()=>$e,\u0275ComponentFactory:()=>El,\u0275Console:()=>og,\u0275DEFAULT_LOCALE_ID:()=>Ra,\u0275INJECTOR_SCOPE:()=>Uu,\u0275LifecycleHooksFeature:()=>tp,\u0275LocaleDataIndex:()=>Vn,\u0275NG_COMP_DEF:()=>mt,\u0275NG_DIR_DEF:()=>Vt,\u0275NG_ELEMENT_ID:()=>ee,\u0275NG_INJ_DEF:()=>Tt,\u0275NG_MOD_DEF:()=>Ne,\u0275NG_PIPE_DEF:()=>qt,\u0275NG_PROV_DEF:()=>At,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>wl,\u0275NO_CHANGE:()=>ei,\u0275NgModuleFactory:()=>Dl,\u0275NoopNgZone:()=>hg,\u0275ReflectionCapabilities:()=>bn,\u0275Render3ComponentFactory:()=>Sl,\u0275Render3ComponentRef:()=>Y0,\u0275Render3NgModuleRef:()=>sd,\u0275RuntimeError:()=>y,\u0275ViewRef:()=>ra,\u0275_sanitizeHtml:()=>hh,\u0275_sanitizeUrl:()=>_a,\u0275allowSanitizationBypassAndThrow:()=>Po,\u0275bypassSanitizationTrustHtml:()=>Xg,\u0275bypassSanitizationTrustResourceUrl:()=>e_,\u0275bypassSanitizationTrustScript:()=>qg,\u0275bypassSanitizationTrustStyle:()=>Zg,\u0275bypassSanitizationTrustUrl:()=>Jg,\u0275clearResolutionOfComponentResourcesQueue:()=>eh,\u0275compileComponent:()=>Hm,\u0275compileDirective:()=>yd,\u0275compileNgModule:()=>Fm,\u0275compileNgModuleDefs:()=>Nm,\u0275compileNgModuleFactory:()=>pg,\u0275compilePipe:()=>qm,\u0275createInjector:()=>Vu,\u0275defaultIterableDiffers:()=>Fg,\u0275defaultKeyValueDiffers:()=>Ng,\u0275detectChanges:()=>Nf,\u0275devModeEqual:()=>rp,\u0275findLocaleData:()=>Qc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>km,\u0275getDebugNode:()=>Ll,\u0275getDebugNodeR2:()=>RC,\u0275getDirectives:()=>Yf,\u0275getHostElement:()=>ju,\u0275getInjectableDef:()=>ft,\u0275getLContext:()=>Qr,\u0275getLocaleCurrencyCode:()=>ub,\u0275getLocalePluralCase:()=>c0,\u0275getSanitizationBypassType:()=>rh,\u0275global:()=>Kt,\u0275injectChangeDetectorRef:()=>Sg,\u0275isBoundToModule:()=>mg,\u0275isDefaultChangeDetectionStrategy:()=>st,\u0275isListLikeIterable:()=>Ta,\u0275isObservable:()=>Mp,\u0275isPromise:()=>fc,\u0275isSubscribable:()=>wp,\u0275ivyEnabled:()=>ZC,\u0275makeDecorator:()=>Ts,\u0275markDirty:()=>Uf,\u0275noSideEffects:()=>_e,\u0275patchComponentDefWithScope:()=>gd,\u0275publishDefaultGlobalUtils:()=>iy,\u0275publishGlobalUtil:()=>As,\u0275registerLocaleData:()=>lb,\u0275registerNgModuleType:()=>q0,\u0275renderComponent:()=>ry,\u0275resetCompiledComponents:()=>B1,\u0275resetJitOptions:()=>N1,\u0275resolveComponentResources:()=>qd,\u0275setClassMetadata:()=>Q0,\u0275setCurrentInjector:()=>wi,\u0275setDocument:()=>Jr,\u0275setLocaleId:()=>f0,\u0275store:()=>op,\u0275stringify:()=>h,\u0275transitiveScopesFor:()=>ja,\u0275unregisterLocaleData:()=>cb,\u0275unwrapSafeValue:()=>ro,\u0275whenRendered:()=>sy,\u0275\u0275CopyDefinitionFeature:()=>ip,\u0275\u0275FactoryTarget:()=>vr,\u0275\u0275InheritDefinitionFeature:()=>zu,\u0275\u0275NgOnChangesFeature:()=>Sr,\u0275\u0275ProvidersFeature:()=>B0,\u0275\u0275advance:()=>nf,\u0275\u0275attribute:()=>Yu,\u0275\u0275attributeInterpolate1:()=>Qu,\u0275\u0275attributeInterpolate2:()=>Xu,\u0275\u0275attributeInterpolate3:()=>Zu,\u0275\u0275attributeInterpolate4:()=>qu,\u0275\u0275attributeInterpolate5:()=>Ju,\u0275\u0275attributeInterpolate6:()=>ec,\u0275\u0275attributeInterpolate7:()=>tc,\u0275\u0275attributeInterpolate8:()=>nc,\u0275\u0275attributeInterpolateV:()=>ic,\u0275\u0275classMap:()=>Np,\u0275\u0275classMapInterpolate1:()=>zp,\u0275\u0275classMapInterpolate2:()=>Kp,\u0275\u0275classMapInterpolate3:()=>Gp,\u0275\u0275classMapInterpolate4:()=>Yp,\u0275\u0275classMapInterpolate5:()=>Qp,\u0275\u0275classMapInterpolate6:()=>Xp,\u0275\u0275classMapInterpolate7:()=>Zp,\u0275\u0275classMapInterpolate8:()=>qp,\u0275\u0275classMapInterpolateV:()=>Jp,\u0275\u0275classProp:()=>Tc,\u0275\u0275contentQuery:()=>xm,\u0275\u0275defineComponent:()=>Me,\u0275\u0275defineDirective:()=>He,\u0275\u0275defineInjectable:()=>Ue,\u0275\u0275defineInjector:()=>at,\u0275\u0275defineNgModule:()=>An,\u0275\u0275definePipe:()=>pt,\u0275\u0275directiveInject:()=>Aa,\u0275\u0275disableBindings:()=>Bs,\u0275\u0275element:()=>bp,\u0275\u0275elementContainer:()=>Cp,\u0275\u0275elementContainerEnd:()=>hc,\u0275\u0275elementContainerStart:()=>dc,\u0275\u0275elementEnd:()=>cc,\u0275\u0275elementStart:()=>uc,\u0275\u0275enableBindings:()=>ds,\u0275\u0275getCurrentView:()=>Ep,\u0275\u0275getInheritedFactory:()=>Ds,\u0275\u0275hostProperty:()=>Gc,\u0275\u0275i18n:()=>k0,\u0275\u0275i18nApply:()=>F0,\u0275\u0275i18nAttributes:()=>P0,\u0275\u0275i18nEnd:()=>Jc,\u0275\u0275i18nExp:()=>ed,\u0275\u0275i18nPostprocess:()=>N0,\u0275\u0275i18nStart:()=>qc,\u0275\u0275inject:()=>Cn,\u0275\u0275injectAttribute:()=>da,\u0275\u0275invalidFactory:()=>yp,\u0275\u0275invalidFactoryDep:()=>Pi,\u0275\u0275listener:()=>pc,\u0275\u0275loadQuery:()=>Im,\u0275\u0275namespaceHTML:()=>Es,\u0275\u0275namespaceMathML:()=>Si,\u0275\u0275namespaceSVG:()=>dr,\u0275\u0275nextContext:()=>Tp,\u0275\u0275ngDeclareClassMetadata:()=>JC,\u0275\u0275ngDeclareComponent:()=>eE,\u0275\u0275ngDeclareDirective:()=>qC,\u0275\u0275ngDeclareFactory:()=>tE,\u0275\u0275ngDeclareInjectable:()=>iE,\u0275\u0275ngDeclareInjector:()=>rE,\u0275\u0275ngDeclareNgModule:()=>sE,\u0275\u0275ngDeclarePipe:()=>oE,\u0275\u0275pipe:()=>mm,\u0275\u0275pipeBind1:()=>gm,\u0275\u0275pipeBind2:()=>_m,\u0275\u0275pipeBind3:()=>vm,\u0275\u0275pipeBind4:()=>ym,\u0275\u0275pipeBindV:()=>bm,\u0275\u0275projection:()=>Ip,\u0275\u0275projectionDef:()=>xp,\u0275\u0275property:()=>ac,\u0275\u0275propertyInterpolate:()=>_c,\u0275\u0275propertyInterpolate1:()=>ml,\u0275\u0275propertyInterpolate2:()=>vc,\u0275\u0275propertyInterpolate3:()=>yc,\u0275\u0275propertyInterpolate4:()=>bc,\u0275\u0275propertyInterpolate5:()=>Cc,\u0275\u0275propertyInterpolate6:()=>Ec,\u0275\u0275propertyInterpolate7:()=>wc,\u0275\u0275propertyInterpolate8:()=>Mc,\u0275\u0275propertyInterpolateV:()=>Sc,\u0275\u0275pureFunction0:()=>em,\u0275\u0275pureFunction1:()=>tm,\u0275\u0275pureFunction2:()=>nm,\u0275\u0275pureFunction3:()=>im,\u0275\u0275pureFunction4:()=>rm,\u0275\u0275pureFunction5:()=>sm,\u0275\u0275pureFunction6:()=>om,\u0275\u0275pureFunction7:()=>am,\u0275\u0275pureFunction8:()=>lm,\u0275\u0275pureFunctionV:()=>um,\u0275\u0275queryRefresh:()=>Dm,\u0275\u0275reference:()=>ap,\u0275\u0275resolveBody:()=>Ah,\u0275\u0275resolveDocument:()=>Ih,\u0275\u0275resolveWindow:()=>xh,\u0275\u0275restoreView:()=>G,\u0275\u0275sanitizeHtml:()=>fh,\u0275\u0275sanitizeResourceUrl:()=>eu,\u0275\u0275sanitizeScript:()=>mh,\u0275\u0275sanitizeStyle:()=>ph,\u0275\u0275sanitizeUrl:()=>Jl,\u0275\u0275sanitizeUrlOrResourceUrl:()=>vh,\u0275\u0275setComponentScope:()=>ze,\u0275\u0275setNgModuleScope:()=>lt,\u0275\u0275styleMap:()=>Ps,\u0275\u0275styleMapInterpolate1:()=>e0,\u0275\u0275styleMapInterpolate2:()=>t0,\u0275\u0275styleMapInterpolate3:()=>n0,\u0275\u0275styleMapInterpolate4:()=>r0,\u0275\u0275styleMapInterpolate5:()=>s0,\u0275\u0275styleMapInterpolate6:()=>o0,\u0275\u0275styleMapInterpolate7:()=>a0,\u0275\u0275styleMapInterpolate8:()=>l0,\u0275\u0275styleMapInterpolateV:()=>u0,\u0275\u0275styleProp:()=>Dc,\u0275\u0275stylePropInterpolate1:()=>Uc,\u0275\u0275stylePropInterpolate2:()=>Bc,\u0275\u0275stylePropInterpolate3:()=>Vc,\u0275\u0275stylePropInterpolate4:()=>$c,\u0275\u0275stylePropInterpolate5:()=>Hc,\u0275\u0275stylePropInterpolate6:()=>jc,\u0275\u0275stylePropInterpolate7:()=>Wc,\u0275\u0275stylePropInterpolate8:()=>zc,\u0275\u0275stylePropInterpolateV:()=>Kc,\u0275\u0275syntheticHostListener:()=>mc,\u0275\u0275syntheticHostProperty:()=>Yc,\u0275\u0275template:()=>sp,\u0275\u0275templateRefExtractor:()=>Lm,\u0275\u0275text:()=>Wp,\u0275\u0275textInterpolate:()=>Ic,\u0275\u0275textInterpolate1:()=>_l,\u0275\u0275textInterpolate2:()=>Ac,\u0275\u0275textInterpolate3:()=>Oc,\u0275\u0275textInterpolate4:()=>Rc,\u0275\u0275textInterpolate5:()=>Lc,\u0275\u0275textInterpolate6:()=>kc,\u0275\u0275textInterpolate7:()=>Pc,\u0275\u0275textInterpolate8:()=>Fc,\u0275\u0275textInterpolateV:()=>Nc,\u0275\u0275trustConstantHtml:()=>gh,\u0275\u0275trustConstantResourceUrl:()=>_h,\u0275\u0275viewQuery:()=>Tm});var n=p(8929),f=p(2654),v=p(6498),m=p(6787),o=p(8117);function d(e){for(let t in e)if(e[t]===d)return t;throw Error("Could not find renamed property on target object.")}function u(e,t){for(const a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=t[a])}function h(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(h).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const a=t.indexOf("\n");return-1===a?t:t.substring(0,a)}function r(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const s=d({__forward_ref__:d});function i(e){return e.__forward_ref__=i,e.toString=function(){return h(this())},e}function c(e){return l(e)?e():e}function l(e){return"function"==typeof e&&e.hasOwnProperty(s)&&e.__forward_ref__===i}class y extends Error{constructor(t,a){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,a)),this.code=t}}function D(e){return"string"==typeof e?e:null==e?"":String(e)}function O(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():D(e)}function M(e,t){const a=t?` in ${t}`:"";throw new y("201",`No provider for ${O(e)} found${a}`)}function Le(e,t,a,_){throw new Error(`ASSERTION ERROR: ${e}`+(null==_?"":` [Expected=> ${a} ${_} ${t} <=Actual]`))}function Ue(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const tt=Ue;function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return vt(e,At)||vt(e,Bt)}function vt(e,t){return e.hasOwnProperty(t)?e[t]:null}function _t(e){return e&&(e.hasOwnProperty(Tt)||e.hasOwnProperty(Et))?e[Tt]:null}const At=d({\u0275prov:d}),Tt=d({\u0275inj:d}),Bt=d({ngInjectableDef:d}),Et=d({ngInjectorDef:d});var Ee=(()=>((Ee=Ee||{})[Ee.Default=0]="Default",Ee[Ee.Host=1]="Host",Ee[Ee.Self=2]="Self",Ee[Ee.SkipSelf=4]="SkipSelf",Ee[Ee.Optional=8]="Optional",Ee))();let fe;function x(e){const t=fe;return fe=e,t}function U(e,t,a){const _=ft(e);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:a&Ee.Optional?null:void 0!==t?t:void M(h(e),"Injector")}function _e(e){return{toString:e}.toString()}var Be=(()=>((Be=Be||{})[Be.OnPush=0]="OnPush",Be[Be.Default=1]="Default",Be))(),$e=(()=>(($e=$e||{})[$e.CheckOnce=0]="CheckOnce",$e[$e.Checked=1]="Checked",$e[$e.CheckAlways=2]="CheckAlways",$e[$e.Detached=3]="Detached",$e[$e.Errored=4]="Errored",$e[$e.Destroyed=5]="Destroyed",$e))();function st(e){return null==e||e===Be.Default}var ut=(()=>{return(e=ut||(ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ut;var e})();const St="undefined"!=typeof globalThis&&globalThis,Xt="undefined"!=typeof window&&window,tn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kt=St||"undefined"!=typeof global&&global||Xt||tn,Lt={},Qe=[],mt=d({\u0275cmp:d}),Vt=d({\u0275dir:d}),qt=d({\u0275pipe:d}),Ne=d({\u0275mod:d}),Se=d({\u0275fac:d}),ee=d({__NG_ELEMENT_ID__:d});let re=0;function Me(e){return _e(()=>{const a={},_={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:a,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Be.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Qe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ut.Emulated,id:"c",styles:e.styles||Qe,_:null,setInput:null,schemas:e.schemas||null,tView:null},C=e.directives,R=e.features,W=e.pipes;return _.id+=re++,_.inputs=ct(e.inputs,a),_.outputs=ct(e.outputs),R&&R.forEach(se=>se(_)),_.directiveDefs=C?()=>("function"==typeof C?C():C).map(It):null,_.pipeDefs=W?()=>("function"==typeof W?W():W).map(Qt):null,_})}function ze(e,t,a){const _=e.\u0275cmp;_.directiveDefs=()=>t.map(It),_.pipeDefs=()=>a.map(Qt)}function It(e){return Ot(e)||un(e)}function Qt(e){return on(e)}const cn={};function An(e){return _e(()=>{const t={type:e.type,bootstrap:e.bootstrap||Qe,declarations:e.declarations||Qe,imports:e.imports||Qe,exports:e.exports||Qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(cn[e.id]=e.type),t})}function lt(e,t){return _e(()=>{const a=On(e,!0);a.declarations=t.declarations||Qe,a.imports=t.imports||Qe,a.exports=t.exports||Qe})}function ct(e,t){if(null==e)return Lt;const a={};for(const _ in e)if(e.hasOwnProperty(_)){let C=e[_],R=C;Array.isArray(C)&&(R=C[1],C=C[0]),a[C]=_,t&&(t[C]=R)}return a}const He=Me;function pt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ot(e){return e[mt]||null}function un(e){return e[Vt]||null}function on(e){return e[qt]||null}function On(e,t){const a=e[Ne]||null;if(!a&&!0===t)throw new Error(`Type ${h(e)} does not have '\u0275mod' property.`);return a}function Xn(e){return Array.isArray(e)&&"object"==typeof e[1]}function pi(e){return Array.isArray(e)&&!0===e[1]}function Gi(e){return 0!=(8&e.flags)}function Ui(e){return 2==(2&e.flags)}function tr(e){return 1==(1&e.flags)}function bi(e){return null!==e.template}function Rn(e){return 0!=(512&e[2])}function ir(e,t){return e.hasOwnProperty(Se)?e[Se]:null}class Cr{constructor(t,a,_){this.previousValue=t,this.currentValue=a,this.firstChange=_}isFirstChange(){return this.firstChange}}function Sr(){return mr}function mr(e){return e.type.prototype.ngOnChanges&&(e.setInput=jr),Hr}function Hr(){const e=Wr(this),t=null==e?void 0:e.current;if(t){const a=e.previous;if(a===Lt)e.previous=t;else for(let _ in t)a[_]=t[_];e.current=null,this.ngOnChanges(t)}}function jr(e,t,a,_){const C=Wr(e)||function(e,t){return e[Wi]=t}(e,{previous:Lt,current:null}),R=C.current||(C.current={}),W=C.previous,se=this.declaredInputs[a],ge=W[se];R[se]=new Cr(ge&&ge.currentValue,t,W===Lt),e[_]=t}Sr.ngInherit=!0;const Wi="__ngSimpleChanges__";function Wr(e){return e[Wi]||null}let Dr=null;const Lr=e=>{Dr=e},Ji=function(e,t,a){null!=Dr&&Dr(e,t,a)},Fr="http://www.w3.org/2000/svg",ls="http://www.w3.org/1998/MathML/";let kr;function Jr(e){kr=e}function Tr(){return void 0!==kr?kr:"undefined"!=typeof document?document:void 0}function si(e){return!!e.listen}const zr={createRenderer:(e,t)=>Tr()};function be(e){for(;Array.isArray(e);)e=e[0];return e}function V(e,t){return be(t[e])}function ve(e,t){return be(t[e.index])}function Nt(e,t){return e.data[t]}function nn(e,t){return e[t]}function In(e,t){const a=t[e];return Xn(a)?a:a[0]}function ni(e){return 4==(4&e[2])}function di(e){return 128==(128&e[2])}function hi(e,t){return null==t?null:e[t]}function Ei(e){e[18]=0}function ki(e,t){e[5]+=t;let a=e,_=e[3];for(;null!==_&&(1===t&&1===a[5]||-1===t&&0===a[5]);)_[5]+=t,a=_,_=_[3]}const xn={lFrame:bs(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function es(){return xn.bindingsEnabled}function ds(){xn.bindingsEnabled=!0}function Bs(){xn.bindingsEnabled=!1}function we(){return xn.lFrame.lView}function N(){return xn.lFrame.tView}function G(e){return xn.lFrame.contextLView=e,e[8]}function pe(){let e=Ae();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ae(){return xn.lFrame.currentTNode}function We(){const e=xn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function rt(e,t){const a=xn.lFrame;a.currentTNode=e,a.isParent=t}function dt(){return xn.lFrame.isParent}function Rt(){xn.lFrame.isParent=!1}function pn(){return xn.isInCheckNoChangesMode}function Pn(e){xn.isInCheckNoChangesMode=e}function Ln(){const e=xn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _n(){return xn.lFrame.bindingIndex}function Bn(e){return xn.lFrame.bindingIndex=e}function Kn(){return xn.lFrame.bindingIndex++}function _i(e){const t=xn.lFrame,a=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,a}function sr(e){xn.lFrame.inI18n=e}function Qi(e,t){const a=xn.lFrame;a.bindingIndex=a.bindingRootIndex=e,fr(t)}function fr(e){xn.lFrame.currentDirectiveIndex=e}function Xi(e){const t=xn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function gr(){return xn.lFrame.currentQueryIndex}function zi(e){xn.lFrame.currentQueryIndex=e}function Pr(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ys(e,t,a){if(a&Ee.SkipSelf){let C=t,R=e;for(;!(C=C.parent,null!==C||a&Ee.Host||(C=Pr(R),null===C||(R=R[15],10&C.type))););if(null===C)return!1;t=C,e=R}const _=xn.lFrame=Ur();return _.currentTNode=t,_.lView=e,!0}function Yi(e){const t=Ur(),a=e[1];xn.lFrame=t,t.currentTNode=a.firstChild,t.lView=e,t.tView=a,t.contextLView=e,t.bindingIndex=a.bindingStartIndex,t.inI18n=!1}function Ur(){const e=xn.lFrame,t=null===e?null:e.child;return null===t?bs(e):t}function bs(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 Cs(){const e=xn.lFrame;return xn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const mn=Cs;function Mn(){const e=Cs();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 ii(){return xn.lFrame.selectedIndex}function Hi(e){xn.lFrame.selectedIndex=e}function Zn(){const e=xn.lFrame;return Nt(e.tView,e.selectedIndex)}function dr(){xn.lFrame.currentNamespace=Fr}function Si(){xn.lFrame.currentNamespace=ls}function Es(){xn.lFrame.currentNamespace=null}function Ir(e,t){for(let a=t.directiveStart,_=t.directiveEnd;a<_;a++){const R=e.data[a].type.prototype,{ngAfterContentInit:W,ngAfterContentChecked:se,ngAfterViewInit:ge,ngAfterViewChecked:De,ngOnDestroy:ke}=R;W&&(e.contentHooks||(e.contentHooks=[])).push(-a,W),se&&((e.contentHooks||(e.contentHooks=[])).push(a,se),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(a,se)),ge&&(e.viewHooks||(e.viewHooks=[])).push(-a,ge),De&&((e.viewHooks||(e.viewHooks=[])).push(a,De),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(a,De)),null!=ke&&(e.destroyHooks||(e.destroyHooks=[])).push(a,ke)}}function _r(e,t,a){Vs(e,t,3,a)}function ts(e,t,a,_){(3&e[2])===a&&Vs(e,t,a,_)}function Br(e,t){let a=e[2];(3&a)===t&&(a&=2047,a+=1,e[2]=a)}function Vs(e,t,a,_){const R=null!=_?_:-1,W=t.length-1;let se=0;for(let ge=void 0!==_?65535&e[18]:0;ge=_)break}else t[ge]<0&&(e[18]+=65536),(se>11>16&&(3&e[2])===t){e[2]+=2048,Ji(4,se,R);try{R.call(se)}finally{Ji(5,se,R)}}}else{Ji(4,se,R);try{R.call(se)}finally{Ji(5,se,R)}}}class rs{constructor(t,a,_){this.factory=t,this.resolving=!1,this.canSeeViewProviders=a,this.injectImpl=_}}function Mt(e,t,a){const _=si(e);let C=0;for(;Ct){W=R-1;break}}}for(;R>16}(e),_=t;for(;a>0;)_=_[15],a--;return _}let Te=!0;function Ve(e){const t=Te;return Te=e,t}let vn=0;function Dn(e,t){const a=Di(e,t);if(-1!==a)return a;const _=t[1];_.firstCreatePass&&(e.injectorIndex=t.length,vi(_.data,e),vi(t,null),vi(_.blueprint,null));const C=hs(e,t),R=e.injectorIndex;if(me(C)){const W=oe(C),se=Ce(C,t),ge=se[1].data;for(let De=0;De<8;De++)t[R+De]=se[W+De]|ge[W+De]}return t[R+8]=C,R}function vi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Di(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function hs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let a=0,_=null,C=t;for(;null!==C;){const R=C[1],W=R.type;if(_=2===W?R.declTNode:1===W?C[6]:null,null===_)return-1;if(a++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|a<<16}return-1}function Gr(e,t,a){!function(e,t,a){let _;"string"==typeof a?_=a.charCodeAt(0)||0:a.hasOwnProperty(ee)&&(_=a[ee]),null==_&&(_=a[ee]=vn++);const C=255&_;t.data[e+(C>>5)]|=1<=0?255&t:ua:t}(a);if("function"==typeof R){if(!ys(t,e,_))return _&Ee.Host?ps(C,a,_):eo(t,a,_,C);try{const W=R(_);if(null!=W||_&Ee.Optional)return W;M(a)}finally{mn()}}else if("number"==typeof R){let W=null,se=Di(e,t),ge=-1,De=_&Ee.Host?t[16][6]:null;for((-1===se||_&Ee.SkipSelf)&&(ge=-1===se?hs(e,t):t[se+8],-1!==ge&&Ga(_,!1)?(W=t[1],se=oe(ge),t=Ce(ge,t)):se=-1);-1!==se;){const ke=t[1];if(Ka(R,se,ke.data)){const qe=Nl(se,t,a,W,_,De);if(qe!==Rs)return qe}ge=t[se+8],-1!==ge&&Ga(_,t[1].data[se+8]===De)&&Ka(R,se,t)?(W=ke,se=oe(ge),t=Ce(ge,t)):se=-1}}}return eo(t,a,_,C)}const Rs={};function ua(){return new lo(pe(),we())}function Nl(e,t,a,_,C,R){const W=t[1],se=W.data[e+8],ke=Io(se,W,a,null==_?Ui(se)&&Te:_!=W&&0!=(3&se.type),C&Ee.Host&&R===se);return null!==ke?go(t,W,ke,se):Rs}function Io(e,t,a,_,C){const R=e.providerIndexes,W=t.data,se=1048575&R,ge=e.directiveStart,ke=R>>20,Ct=C?se+ke:e.directiveEnd;for(let Pt=_?se:se+ke;Pt=ge&&Yt.type===a)return Pt}if(C){const Pt=W[ge];if(Pt&&bi(Pt)&&Pt.type===a)return ge}return null}function go(e,t,a,_){let C=e[a];const R=t.data;if(function(e){return e instanceof rs}(C)){const W=C;W.resolving&&function(e,t){throw new y("200",`Circular dependency in DI detected for ${e}`)}(O(R[a]));const se=Ve(W.canSeeViewProviders);W.resolving=!0;const ge=W.injectImpl?x(W.injectImpl):null;ys(e,_,Ee.Default);try{C=e[a]=W.factory(void 0,R,e,_),t.firstCreatePass&&a>=_.directiveStart&&function(e,t,a){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:R}=t.type.prototype;if(_){const W=mr(t);(a.preOrderHooks||(a.preOrderHooks=[])).push(e,W),(a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(e,W)}C&&(a.preOrderHooks||(a.preOrderHooks=[])).push(0-e,C),R&&((a.preOrderHooks||(a.preOrderHooks=[])).push(e,R),(a.preOrderCheckHooks||(a.preOrderCheckHooks=[])).push(e,R))}(a,R[a],t)}finally{null!==ge&&x(ge),Ve(se),W.resolving=!1,mn()}}return C}function Ka(e,t,a){return!!(a[t+(e>>5)]&1<{const t=e.prototype.constructor,a=t[Se]||ca(t),_=Object.prototype;let C=Object.getPrototypeOf(e.prototype).constructor;for(;C&&C!==_;){const R=C[Se]||ca(C);if(R&&R!==a)return R;C=Object.getPrototypeOf(C)}return R=>new R})}function ca(e){return l(e)?()=>{const t=ca(c(e));return t&&t()}:ir(e)}function da(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const a=e.attrs;if(a){const _=a.length;let C=0;for(;C<_;){const R=a[C];if(jt(R))break;if(0===R)C+=2;else if("number"==typeof R)for(C++;C<_&&"string"==typeof a[C];)C++;else{if(R===t)return a[C+1];C+=2}}}return null}(pe(),e)}const to="__annotations__",uo="__parameters__",co="__prop__metadata__";function Ts(e,t,a,_,C){return _e(()=>{const R=_o(t);function W(...se){if(this instanceof W)return R.call(this,...se),this;const ge=new W(...se);return function(ke){return C&&C(ke,...se),(ke.hasOwnProperty(to)?ke[to]:Object.defineProperty(ke,to,{value:[]})[to]).push(ge),_&&_(ke),ke}}return a&&(W.prototype=Object.create(a.prototype)),W.prototype.ngMetadataName=e,W.annotationCls=W,W})}function _o(e){return function(...a){if(e){const _=e(...a);for(const C in _)this[C]=_[C]}}}function Hs(e,t,a){return _e(()=>{const _=_o(t);function C(...R){if(this instanceof C)return _.apply(this,R),this;const W=new C(...R);return se.annotation=W,se;function se(ge,De,ke){const qe=ge.hasOwnProperty(uo)?ge[uo]:Object.defineProperty(ge,uo,{value:[]})[uo];for(;qe.length<=ke;)qe.push(null);return(qe[ke]=qe[ke]||[]).push(W),ge}}return a&&(C.prototype=Object.create(a.prototype)),C.prototype.ngMetadataName=e,C.annotationCls=C,C})}function js(e,t,a,_){return _e(()=>{const C=_o(t);function R(...W){if(this instanceof R)return C.apply(this,W),this;const se=new R(...W);return function(De,ke){const qe=De.constructor,Ct=qe.hasOwnProperty(co)?qe[co]:Object.defineProperty(qe,co,{value:{}})[co];Ct[ke]=Ct.hasOwnProperty(ke)&&Ct[ke]||[],Ct[ke].unshift(se),_&&_(De,ke,...W)}}return a&&(R.prototype=Object.create(a.prototype)),R.prototype.ngMetadataName=e,R.annotationCls=R,R})}const ha=Hs("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>da(e)}));class lr{constructor(t,a){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof a?this.__NG_ELEMENT_ID__=a:void 0!==a&&(this.\u0275prov=Ue({token:this,providedIn:a.providedIn||"root",factory:a.factory}))}toString(){return`InjectionToken ${this._desc}`}}const vo=new lr("AnalyzeForEntryComponents");class yo{}const Bl=js("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),yo),Vl=js("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),yo),$l=js("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),yo),Hl=js("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),yo);var vr=(()=>((vr=vr||{})[vr.Directive=0]="Directive",vr[vr.Component=1]="Component",vr[vr.Injectable=2]="Injectable",vr[vr.Pipe=3]="Pipe",vr[vr.NgModule=4]="NgModule",vr))();function yr(e){const t=Kt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Oo=Function;function bo(e){return"function"==typeof e}function os(e,t){void 0===t&&(t=e);for(let a=0;aArray.isArray(a)?xs(a,t):t(a))}function Ya(e,t,a){t>=e.length?e.push(a):e.splice(t,0,a)}function Co(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ho(e,t){const a=[];for(let _=0;_=0?e[1|_]=a:(_=~_,function(e,t,a,_){let C=e.length;if(C==t)e.push(a,_);else if(1===C)e.push(_,e[0]),e[0]=a;else{for(C--,e.push(e[C-1],e[C]);C>t;)e[C]=e[C-2],C--;e[t]=a,e[t+1]=_}}(e,_,t,a)),_}function ma(e,t){const a=P(e,t);if(a>=0)return e[1|a]}function P(e,t){return function(e,t,a){let _=0,C=e.length>>a;for(;C!==_;){const R=_+(C-_>>1),W=e[R<t?C=R:_=R+1}return~(C<new t(...a)}_zipTypesAndAnnotations(t,a){let _;_=ho(void 0===t?a.length:t.length);for(let C=0;C<_.length;C++)_[C]=void 0===t?[]:t[C]&&t[C]!=Object?[t[C]]:[],a&&null!=a[C]&&(_[C]=_[C].concat(a[C]));return _}_ownParameters(t,a){const _=t.toString();if(Ge.test(e=_)||Ut.test(e)||Fe.test(e)&&!ht.test(e))return null;var e;if(t.parameters&&t.parameters!==a.parameters)return t.parameters;const C=t.ctorParameters;if(C&&C!==a.ctorParameters){const se="function"==typeof C?C():C,ge=se.map(ke=>ke&&ke.type),De=se.map(ke=>ke&&wt(ke.decorators));return this._zipTypesAndAnnotations(ge,De)}const R=t.hasOwnProperty(uo)&&t[uo],W=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return W||R?this._zipTypesAndAnnotations(W,R):ho(t.length)}parameters(t){if(!bo(t))return[];const a=$t(t);let _=this._ownParameters(t,a);return!_&&a!==Object&&(_=this.parameters(a)),_||[]}_ownAnnotations(t,a){if(t.annotations&&t.annotations!==a.annotations){let _=t.annotations;return"function"==typeof _&&_.annotations&&(_=_.annotations),_}return t.decorators&&t.decorators!==a.decorators?wt(t.decorators):t.hasOwnProperty(to)?t[to]:null}annotations(t){if(!bo(t))return[];const a=$t(t),_=this._ownAnnotations(t,a)||[];return(a!==Object?this.annotations(a):[]).concat(_)}_ownPropMetadata(t,a){if(t.propMetadata&&t.propMetadata!==a.propMetadata){let _=t.propMetadata;return"function"==typeof _&&_.propMetadata&&(_=_.propMetadata),_}if(t.propDecorators&&t.propDecorators!==a.propDecorators){const _=t.propDecorators,C={};return Object.keys(_).forEach(R=>{C[R]=wt(_[R])}),C}return t.hasOwnProperty(co)?t[co]:null}propMetadata(t){if(!bo(t))return{};const a=$t(t),_={};if(a!==Object){const R=this.propMetadata(a);Object.keys(R).forEach(W=>{_[W]=R[W]})}const C=this._ownPropMetadata(t,a);return C&&Object.keys(C).forEach(R=>{const W=[];_.hasOwnProperty(R)&&W.push(..._[R]),W.push(...C[R]),_[R]=W}),_}ownPropMetadata(t){return bo(t)&&this._ownPropMetadata(t,$t(t))||{}}hasLifecycleHook(t,a){return t instanceof Oo&&a in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${h(t)}`}resourceUri(t){return`./${h(t)}`}resolveIdentifier(t,a,_,C){return C}resolveEnum(t,a){return t[a]}}function wt(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function $t(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const hn={},en="__NG_DI_FLAG__",Nn="ngTempTokenPath",Ci=/\n/gm,Ai="__source",gi=d({provide:String,useValue:d});let fn;function wi(e){const t=fn;return fn=e,t}function wr(e,t=Ee.Default){if(void 0===fn)throw new Error("inject() must be called from an injection context");return null===fn?U(e,void 0,t):fn.get(e,t&Ee.Optional?null:void 0,t)}function Cn(e,t=Ee.Default){return(fe||wr)(c(e),t)}function Pi(e){throw new Error("invalid")}const Fi=Cn;function ri(e){const t=[];for(let a=0;a({token:e})),-1),Is=Jn(Hs("Optional"),8),io=Jn(Hs("Self"),2),Eo=Jn(Hs("SkipSelf"),4),Qd=Jn(Hs("Host"),1);let Xd=null;function Kl(){return Xd=Xd||new bn}function qa(e){return Zd(Kl().parameters(e))}function Zd(e){return e.map(t=>function(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let a=0;a{const W=[];C.templateUrl&&W.push(_(C.templateUrl).then(qe=>{C.template=qe}));const se=C.styleUrls,ge=C.styles||(C.styles=[]),De=C.styles.length;se&&se.forEach((qe,Ct)=>{ge.push(""),W.push(_(qe).then(Pt=>{ge[De+Ct]=Pt,se.splice(se.indexOf(qe),1),0==se.length&&(C.styleUrls=void 0)}))});const ke=Promise.all(W).then(()=>function(e){ga.delete(e)}(R));t.push(ke)}),eh(),Promise.all(t).then(()=>{})}let Lo=new Map;const ga=new Set;function Jd(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function eh(){const e=Lo;return Lo=new Map,e}function $g(e){return"string"==typeof e?e:e.text()}let Ja,el;function Gl(){if(void 0===Ja&&(Ja=null,Kt.trustedTypes))try{Ja=Kt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ja}function ko(e){var t;return(null===(t=Gl())||void 0===t?void 0:t.createHTML(e))||e}function Yl(){if(void 0===el&&(el=null,Kt.trustedTypes))try{el=Kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return el}function th(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createHTML(e))||e}function nh(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createScript(e))||e}function ih(e){var t;return(null===(t=Yl())||void 0===t?void 0:t.createScriptURL(e))||e}class wo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zg extends wo{getTypeName(){return"HTML"}}class Kg extends wo{getTypeName(){return"Style"}}class Gg extends wo{getTypeName(){return"Script"}}class Yg extends wo{getTypeName(){return"URL"}}class Qg extends wo{getTypeName(){return"ResourceURL"}}function ro(e){return e instanceof wo?e.changingThisBreaksApplicationSecurity:e}function Po(e,t){const a=rh(e);if(null!=a&&a!==t){if("ResourceURL"===a&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${a} (see https://g.co/ng/security#xss)`)}return a===t}function rh(e){return e instanceof wo&&e.getTypeName()||null}function Xg(e){return new zg(e)}function Zg(e){return new Kg(e)}function qg(e){return new Gg(e)}function Jg(e){return new Yg(e)}function e_(e){return new Qg(e)}function sh(e){const t=new n_(e);return function(){try{return!!(new window.DOMParser).parseFromString(ko(""),"text/html")}catch(e){return!1}}()?new t_(t):t}class t_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const a=(new window.DOMParser).parseFromString(ko(t),"text/html").body;return null===a?this.inertDocumentHelper.getInertBodyElement(t):(a.removeChild(a.firstChild),a)}catch(a){return null}}}class n_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const a=this.inertDocument.createElement("html");this.inertDocument.appendChild(a);const _=this.inertDocument.createElement("body");a.appendChild(_)}}getInertBodyElement(t){const a=this.inertDocument.createElement("template");if("content"in a)return a.innerHTML=ko(t),a;const _=this.inertDocument.createElement("body");return _.innerHTML=ko(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(t){const a=t.attributes;for(let C=a.length-1;0_a(t.trim())).join(", ")}function Ws(e){const t={};for(const a of e.split(","))t[a]=!0;return t}function va(...e){const t={};for(const a of e)for(const _ in a)a.hasOwnProperty(_)&&(t[_]=!0);return t}const ah=Ws("area,br,col,hr,img,wbr"),lh=Ws("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uh=Ws("rp,rt"),Ql=va(ah,va(lh,Ws("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),va(uh,Ws("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),va(uh,lh)),Xl=Ws("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zl=Ws("srcset"),ch=va(Xl,Zl,Ws("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ws("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),o_=Ws("script,style,template");class a_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let a=t.firstChild,_=!0;for(;a;)if(a.nodeType===Node.ELEMENT_NODE?_=this.startElement(a):a.nodeType===Node.TEXT_NODE?this.chars(a.nodeValue):this.sanitizedSomething=!0,_&&a.firstChild)a=a.firstChild;else for(;a;){a.nodeType===Node.ELEMENT_NODE&&this.endElement(a);let C=this.checkClobberedElement(a,a.nextSibling);if(C){a=C;break}a=this.checkClobberedElement(a,a.parentNode)}return this.buf.join("")}startElement(t){const a=t.nodeName.toLowerCase();if(!Ql.hasOwnProperty(a))return this.sanitizedSomething=!0,!o_.hasOwnProperty(a);this.buf.push("<"),this.buf.push(a);const _=t.attributes;for(let C=0;C<_.length;C++){const R=_.item(C),W=R.name,se=W.toLowerCase();if(!ch.hasOwnProperty(se)){this.sanitizedSomething=!0;continue}let ge=R.value;Xl[se]&&(ge=_a(ge)),Zl[se]&&(ge=oh(ge)),this.buf.push(" ",W,'="',dh(ge),'"')}return this.buf.push(">"),!0}endElement(t){const a=t.nodeName.toLowerCase();Ql.hasOwnProperty(a)&&!ah.hasOwnProperty(a)&&(this.buf.push(""))}chars(t){this.buf.push(dh(t))}checkClobberedElement(t,a){if(a&&(t.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return a}}const l_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u_=/([^\#-~ |!])/g;function dh(e){return e.replace(/&/g,"&").replace(l_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(u_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let tl;function hh(e,t){let a=null;try{tl=tl||sh(e);let _=t?String(t):"";a=tl.getInertBodyElement(_);let C=5,R=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=R,R=a.innerHTML,a=tl.getInertBodyElement(_)}while(_!==R);return ko((new a_).sanitizeChildren(ql(a)||a))}finally{if(a){const _=ql(a)||a;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function ql(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var br=(()=>((br=br||{})[br.NONE=0]="NONE",br[br.HTML=1]="HTML",br[br.STYLE=2]="STYLE",br[br.SCRIPT=3]="SCRIPT",br[br.URL=4]="URL",br[br.RESOURCE_URL=5]="RESOURCE_URL",br))();function fh(e){const t=ya();return t?th(t.sanitize(br.HTML,e)||""):Po(e,"HTML")?th(ro(e)):hh(Tr(),D(e))}function ph(e){const t=ya();return t?t.sanitize(br.STYLE,e)||"":Po(e,"Style")?ro(e):D(e)}function Jl(e){const t=ya();return t?t.sanitize(br.URL,e)||"":Po(e,"URL")?ro(e):_a(D(e))}function eu(e){const t=ya();if(t)return ih(t.sanitize(br.RESOURCE_URL,e)||"");if(Po(e,"ResourceURL"))return ih(ro(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function mh(e){const t=ya();if(t)return nh(t.sanitize(br.SCRIPT,e)||"");if(Po(e,"Script"))return nh(ro(e));throw new Error("unsafe value used in a script context")}function gh(e){return ko(e[0])}function _h(e){return function(e){var t;return(null===(t=Gl())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function vh(e,t,a){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?eu:Jl}(t,a)(e)}function ya(){const e=we();return e&&e[12]}function Qr(e){let t=ba(e);if(t){if(Array.isArray(t)){const a=t;let _,C,R;if(function(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(_=Eh(a,e),-1==_)throw new Error("The provided component was not found in the application");C=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(_=function(e,t){let a=e[1].firstChild;for(;a;){const C=a.directiveEnd;for(let R=a.directiveStart;R=0){const se=be(R[W]),ge=tu(R,W,se);Xr(se,ge),t=ge;break}}}}return t||null}function tu(e,t,a){return{lView:e,nodeIndex:t,native:a,component:void 0,directives:void 0,localRefs:void 0}}function yh(e){let a,t=ba(e);if(Array.isArray(t)){const _=Eh(t,e);a=In(_,t);const C=tu(t,_,a[0]);C.component=e,Xr(e,C),Xr(C.native,C)}else a=In(t.nodeIndex,t.lView);return a}const bh="__ngContext__";function Xr(e,t){e[bh]=t}function ba(e){return e[bh]||null}function nu(e){const t=ba(e);return t?Array.isArray(t)?t:t.lView:null}function Ch(e,t){const a=e[1];for(let _=20;_|^->||--!>|)/;const Th=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Kt))();function xh(e){return e.ownerDocument.defaultView}function Ih(e){return e.ownerDocument}function Ah(e){return e.ownerDocument.body}function zs(e){return e instanceof Function?e():e}var Ks=(()=>((Ks=Ks||{})[Ks.Important=1]="Important",Ks[Ks.DashCase=2]="DashCase",Ks))();let su;function ou(e,t){return su(e,t)}function Ea(e){const t=e[3];return pi(t)?t[3]:t}function kh(e){return function(e){let t=Xn(e)?e:nu(e);for(;t&&!(512&t[2]);)t=Ea(t);return t}(e)[8]}function au(e){return Ph(e[13])}function lu(e){return Ph(e[4])}function Ph(e){for(;null!==e&&!pi(e);)e=e[4];return e}function No(e,t,a,_,C){if(null!=_){let R,W=!1;pi(_)?R=_:Xn(_)&&(W=!0,_=_[0]);const se=be(_);0===e&&null!==a?null==C?$h(t,a,se):Mo(t,a,se,C||null,!0):1===e&&null!==a?Mo(t,a,se,C||null,!0):2===e?Yh(t,se,W):3===e&&t.destroyNode(se),null!=R&&function(e,t,a,_,C){const R=a[7];R!==be(a)&&No(t,e,_,R,C);for(let se=10;set.replace(M_,"\u200b$1\u200b"))}(t))}function cu(e,t,a){return si(e)?e.createElement(t,a):null===a?e.createElement(t):e.createElementNS(a,t)}function Nh(e,t){const a=e[9],_=a.indexOf(t),C=t[3];1024&t[2]&&(t[2]&=-1025,ki(C,-1)),a.splice(_,1)}function du(e,t){if(e.length<=10)return;const a=10+t,_=e[a];if(_){const C=_[17];null!==C&&C!==e&&Nh(C,_),t>0&&(e[a-1][4]=_[4]);const R=Co(e,10+t);!function(e,t){wa(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(_[1],_);const W=R[19];null!==W&&W.detachView(R[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function Uh(e,t){if(!(256&t[2])){const a=t[11];si(a)&&a.destroyNode&&wa(e,t,a,3,null,null),function(e){let t=e[13];if(!t)return hu(e[1],e);for(;t;){let a=null;if(Xn(t))a=t[13];else{const _=t[10];_&&(a=_)}if(!a){for(;t&&!t[4]&&t!==e;)Xn(t)&&hu(t[1],t),t=t[3];null===t&&(t=e),Xn(t)&&hu(t[1],t),a=t&&t[4]}t=a}}(t)}}function hu(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let a;if(null!=e&&null!=(a=e.destroyHooks))for(let _=0;_=0?_[C=De]():_[C=-De].unsubscribe(),R+=2}else{const W=_[C=a[R+1]];a[R].call(W)}if(null!==_){for(let R=C+1;R<_.length;R++)_[R]();t[7]=null}}(e,t),1===t[1].type&&si(t[11])&&t[11].destroy();const a=t[17];if(null!==a&&pi(t[3])){a!==t[3]&&Nh(a,t);const _=t[19];null!==_&&_.detachView(e)}}}function Bh(e,t,a){return Vh(e,t.parent,a)}function Vh(e,t,a){let _=t;for(;null!==_&&40&_.type;)_=(t=_).parent;if(null===_)return a[0];if(2&_.flags){const C=e.data[_.directiveStart].encapsulation;if(C===ut.None||C===ut.Emulated)return null}return ve(_,a)}function Mo(e,t,a,_,C){si(e)?e.insertBefore(t,a,_,C):t.insertBefore(a,_,C)}function $h(e,t,a){si(e)?e.appendChild(t,a):t.appendChild(a)}function Hh(e,t,a,_,C){null!==_?Mo(e,t,a,_,C):$h(e,t,a)}function nl(e,t){return si(e)?e.parentNode(t):t.parentNode}function jh(e,t,a){return zh(e,t,a)}function Wh(e,t,a){return 40&e.type?ve(e,a):null}let fu,zh=Wh;function Kh(e,t){zh=e,fu=t}function il(e,t,a,_){const C=Bh(e,_,t),R=t[11],se=jh(_.parent||t[6],_,t);if(null!=C)if(Array.isArray(a))for(let ge=0;geR?"":C[qe+1].toLowerCase();const Pt=8&_?Ct:null;if(Pt&&-1!==Zh(Pt,De,0)||2&_&&De!==Ct){if(Ls(_))return!1;W=!0}}}}else{if(!W&&!Ls(_)&&!Ls(ge))return!1;if(W&&Ls(ge))continue;W=!1,_=ge|1&_}}return Ls(_)||W}function Ls(e){return 0==(1&e)}function Y_(e,t,a,_){if(null===t)return-1;let C=0;if(_||!a){let R=!1;for(;C-1)for(a++;a0?'="'+se+'"':"")+"]"}else 8&_?C+="."+W:4&_&&(C+=" "+W);else""!==C&&!Ls(W)&&(t+=tf(R,C),C=""),_=W,R=R||!Ls(_);a++}return""!==C&&(t+=tf(R,C)),t}const ei={};function nf(e){rf(N(),we(),ii()+e,pn())}function rf(e,t,a,_){if(!_)if(3==(3&t[2])){const R=e.preOrderCheckHooks;null!==R&&_r(t,R,a)}else{const R=e.preOrderHooks;null!==R&&ts(t,R,0,a)}Hi(a)}function sl(e,t){return e<<17|t<<2}function ks(e){return e>>17&32767}function _u(e){return 2|e}function so(e){return(131068&e)>>2}function vu(e,t){return-131069&e|t<<2}function yu(e){return 1|e}const Tu=(()=>Promise.resolve(null))();function gf(e,t){const a=e.contentQueries;if(null!==a)for(let _=0;_20&&rf(e,t,20,pn()),Ji(W?2:0,C),a(_,C)}finally{Hi(R),Ji(W?3:1,C)}}function vf(e,t,a){if(Gi(t)){const C=t.directiveEnd;for(let R=t.directiveStart;R0;){const a=e[--t];if("number"==typeof a&&a<0)return a}return 0})(se)!=ge&&se.push(ge),se.push(_,C,W)}}function Df(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Tf(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function xv(e,t,a){if(a){if(t.exportAs)for(let _=0;_0&&Lu(a)}}function Lu(e){for(let _=au(e);null!==_;_=lu(_))for(let C=10;C<_.length;C++){const R=_[C];if(1024&R[2]){const W=R[1];Vo(W,R,W.template,R[8])}else R[5]>0&&Lu(R)}const a=e[1].components;if(null!==a)for(let _=0;_0&&Lu(C)}}function Pv(e,t){const a=In(t,e),_=a[1];(function(e,t){for(let a=t.length;a_=C),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Pu(e)),2&e.flags){e.flags&=-3;const C=e.playerHandler;C&&C.flushPlayers()}e.clean=Tu,_(null)})}}(ku(yh(e))[8])}const dl=new lr("INJECTOR",-1);class Bf{get(t,a=hn){if(a===hn){const _=new Error(`NullInjectorError: No provider for ${h(t)}!`);throw _.name="NullInjectorError",_}return a}}const Uu=new lr("Set Injector scope."),Da={},$v={};let Bu;function Vf(){return void 0===Bu&&(Bu=new Bf),Bu}function Vu(e,t=null,a=null,_){const C=$f(e,t,a,_);return C._resolveInjectorDefTypes(),C}function $f(e,t=null,a=null,_){return new Hv(e,a,t||Vf(),_)}class Hv{constructor(t,a,_,C=null){this.parent=_,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const R=[];a&&xs(a,se=>this.processProvider(se,t,a)),xs([t],se=>this.processInjectorType(se,[],R)),this.records.set(dl,$o(void 0,this));const W=this.records.get(Uu);this.scope=null!=W?W.value:null,this.source=C||("object"==typeof t?null:h(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,a=hn,_=Ee.Default){this.assertNotDestroyed();const C=wi(this),R=x(void 0);try{if(!(_&Ee.SkipSelf)){let se=this.records.get(t);if(void 0===se){const ge=("function"==typeof(e=t)||"object"==typeof e&&e instanceof lr)&&ft(t);se=ge&&this.injectableDefInScope(ge)?$o($u(t),Da):null,this.records.set(t,se)}if(null!=se)return this.hydrate(t,se)}return(_&Ee.Self?Vf():this.parent).get(t,a=_&Ee.Optional&&a===hn?null:a)}catch(W){if("NullInjectorError"===W.name){if((W[Nn]=W[Nn]||[]).unshift(h(t)),C)throw W;return function(e,t,a,_){const C=e[Nn];throw t[Ai]&&C.unshift(t[Ai]),e.message=function(e,t,a,_=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let C=h(t);if(Array.isArray(t))C=t.map(h).join(" -> ");else if("object"==typeof t){let R=[];for(let W in t)if(t.hasOwnProperty(W)){let se=t[W];R.push(W+":"+("string"==typeof se?JSON.stringify(se):h(se)))}C=`{${R.join(", ")}}`}return`${a}${_?"("+_+")":""}[${C}]: ${e.replace(Ci,"\n ")}`}("\n"+e.message,C,a,_),e.ngTokenPath=C,e[Nn]=null,e}(W,t,"R3InjectorError",this.source)}throw W}finally{x(R),wi(C)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((_,C)=>t.push(h(C))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,a,_){if(!(t=c(t)))return!1;let C=_t(t);const R=null==C&&t.ngModule||void 0,W=void 0===R?t:R,se=-1!==_.indexOf(W);if(void 0!==R&&(C=_t(R)),null==C)return!1;if(null!=C.imports&&!se){let ke;_.push(W);try{xs(C.imports,qe=>{this.processInjectorType(qe,a,_)&&(void 0===ke&&(ke=[]),ke.push(qe))})}finally{}if(void 0!==ke)for(let qe=0;qethis.processProvider(Yt,Ct,Pt||Qe))}}this.injectorDefTypes.add(W);const ge=ir(W)||(()=>new W);this.records.set(W,$o(ge,Da));const De=C.providers;if(null!=De&&!se){const ke=t;xs(De,qe=>this.processProvider(qe,ke,De))}return void 0!==R&&void 0!==t.providers}processProvider(t,a,_){let C=Ho(t=c(t))?t:c(t&&t.provide);const R=(e=t,jf(e)?$o(void 0,e.useValue):$o(Hf(e),Da));var e;if(Ho(t)||!0!==t.multi)this.records.get(C);else{let W=this.records.get(C);W||(W=$o(void 0,Da,!0),W.factory=()=>ri(W.multi),this.records.set(C,W)),C=t,W.multi.push(t)}this.records.set(C,R)}hydrate(t,a){return a.value===Da&&(a.value=$v,a.value=a.factory()),"object"==typeof a.value&&a.value&&null!==(e=a.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(a.value),a.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const a=c(t.providedIn);return"string"==typeof a?"any"===a||a===this.scope:this.injectorDefTypes.has(a)}}function $u(e){const t=ft(e),a=null!==t?t.factory:ir(e);if(null!==a)return a;if(e instanceof lr)throw new Error(`Token ${h(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const _=ho(t,"?");throw new Error(`Can't resolve all parameters for ${h(e)}: (${_.join(", ")}).`)}const a=function(e){const t=e&&(e[At]||e[Bt]);if(t){const a=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 "${a}" 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 "${a}" class.`),t}return null}(e);return null!==a?()=>a.factory(e):()=>new e}(e);throw new Error("unreachable")}function Hf(e,t,a){let _;if(Ho(e)){const C=c(e);return ir(C)||$u(C)}if(jf(e))_=()=>c(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))_=()=>e.useFactory(...ri(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))_=()=>Cn(c(e.useExisting));else{const C=c(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ir(C)||$u(C);_=()=>new C(...ri(e.deps))}return _}function $o(e,t,a=!1){return{factory:e,value:t,multi:a?[]:void 0}}function jf(e){return null!==e&&"object"==typeof e&&gi in e}function Ho(e){return"function"==typeof e}let gs=(()=>{class e{static create(a,_){var C;if(Array.isArray(a))return Vu({name:""},_,a,"");{const R=null!==(C=a.name)&&void 0!==C?C:"";return Vu({name:R},a.parent,a.providers,R)}}}return e.THROW_IF_NOT_FOUND=hn,e.NULL=new Bf,e.\u0275prov=Ue({token:e,providedIn:"any",factory:()=>Cn(dl)}),e.__NG_ELEMENT_ID__=-1,e})();function Hu(e){Wu(e);const t=Qr(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const a=t[1].data[e];return 2&a.flags?t[a.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function Wf(e){Wu(e);const t=Qr(e);return null===t?null:t.lView[8]}function zf(e){const t=Qr(e);if(null===t)return null;let _,a=t.lView;for(;2===a[1].type&&(_=Ea(a));)a=_;return 512&a[2]?null:a[8]}function Kf(e){return[...kh(e).components]}function Gf(e){const t=Qr(e);return null===t?gs.NULL:new lo(t.lView[1].data[t.nodeIndex],t.lView)}function Yf(e){if(e instanceof Text)return[];const t=Qr(e);if(null===t)return[];const a=t.lView,_=a[1],C=t.nodeIndex;return(null==_?void 0:_.data[C])?(void 0===t.directives&&(t.directives=wh(C,a,!1)),null===t.directives?[]:[...t.directives]):[]}function qv(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const a=Ot(t);if(a)return{inputs:a.inputs,outputs:a.outputs,encapsulation:a.encapsulation,changeDetection:a.onPush?Be.OnPush:Be.Default};const _=un(t);return _?{inputs:_.inputs,outputs:_.outputs}:null}function ju(e){return Qr(e).native}function Qf(e){Wu(e);const t=Qr(e);if(null===t)return[];const a=t.lView,C=a[7],R=a[1].cleanup,W=[];if(R&&C)for(let se=0;se=0?"dom":"output",sn="boolean"==typeof Pt&&Pt;e==qe&&W.push({element:e,name:ke,callback:Ct,useCapture:sn,type:Yt})}}return W.sort(ey),W}function ey(e,t){return e.name==t.name?0:e.nameNf(t))}let Zf=!1;function iy(){Zf||(Zf=!0,As("\u0275setProfiler",Lr),As("getDirectiveMetadata",qv),As("getComponent",Hu),As("getContext",Wf),As("getListeners",Qf),As("getOwningComponent",zf),As("getHostElement",ju),As("getInjector",Gf),As("getRootComponents",Kf),As("getDirectives",Yf),As("applyChanges",ny))}function As(e,t){if("undefined"==typeof COMPILED||!COMPILED){const a=Kt;if(a){let _=a.ng;_||(_=a.ng={}),_[e]=t}}}function ry(e,t={}){const a=t.rendererFactory||zr,_=t.sanitizer||null,C=Ot(e);C.type!=e&&(C.type=e);const R=C.selectors[0][0],se=Cf(a.createRenderer(null,null),t.host||R,C.encapsulation),ge=C.onPush?576:528,De=ep(t.scheduler,t.playerHandler),ke=a.createRenderer(se,C),qe=ll(0,null,null,1,0,null,null,null,null,null),Ct=Ma(null,qe,De,ge,null,null,a,ke,null,t.injector||null);let Pt;Yi(Ct);try{a.begin&&a.begin(),Pt=Jf(qf(se,C,Ct,a,ke,_),C,Ct,De,t.hostFeatures||null),Sa(qe,Ct,null),Vo(qe,Ct,null,null)}finally{Mn(),a.end&&a.end()}return Pt}function qf(e,t,a,_,C,R){const W=a[1];a[20]=e;const ge=Uo(W,20,2,"#host",null),De=ge.mergedAttrs=t.hostAttrs;null!==De&&(cl(ge,De,!0),null!==e&&(Mt(C,e,De),null!==ge.classes&&gu(C,e,ge.classes),null!==ge.styles&&Xh(C,e,ge.styles)));const ke=_.createRenderer(e,t),qe=Ma(a,yf(t),null,t.onPush?64:16,a[20],ge,_,ke,R||null,null);return W.firstCreatePass&&(Gr(Dn(ge,a),W,t.type),Tf(W,ge),xf(ge,a.length,1)),ul(a,qe),a[20]=qe}function Jf(e,t,a,_,C){const R=a[1],W=function(e,t,a){const _=pe();e.firstCreatePass&&(a.providersResolver&&a.providersResolver(a),If(e,_,t,Bo(e,t,1,null),a));const C=go(t,e,_.directiveStart,_);Xr(C,t);const R=ve(_,t);return R&&Xr(R,t),C}(R,a,t);if(_.components.push(W),e[8]=W,C&&C.forEach(ge=>ge(W,t)),t.contentQueries){const ge=pe();t.contentQueries(1,W,ge.directiveStart)}const se=pe();return!R.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Hi(se.index),Sf(a[1],se,0,se.directiveStart,se.directiveEnd,t),Df(t,W)),W}function ep(e,t){return{components:[],scheduler:e||Th,clean:Vv,playerHandler:t||null,flags:0}}function tp(e,t){Ir(nu(e)[1],pe())}function sy(e){return kh(e).clean}function np(e){return Object.getPrototypeOf(e.prototype).constructor}function zu(e){let t=np(e.type),a=!0;const _=[e];for(;t;){let C;if(bi(e))C=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");C=t.\u0275dir}if(C){if(a){_.push(C);const W=e;W.inputs=Ku(e.inputs),W.declaredInputs=Ku(e.declaredInputs),W.outputs=Ku(e.outputs);const se=C.hostBindings;se&&uy(e,se);const ge=C.viewQuery,De=C.contentQueries;if(ge&&ay(e,ge),De&&ly(e,De),u(e.inputs,C.inputs),u(e.declaredInputs,C.declaredInputs),u(e.outputs,C.outputs),bi(C)&&C.data.animation){const ke=e.data;ke.animation=(ke.animation||[]).concat(C.data.animation)}}const R=C.features;if(R)for(let W=0;W=0;_--){const C=e[_];C.hostVars=t+=C.hostVars,C.hostAttrs=Hn(C.hostAttrs,a=Hn(a,C.hostAttrs))}}(_)}function Ku(e){return e===Lt?{}:e===Qe?[]:e}function ay(e,t){const a=e.viewQuery;e.viewQuery=a?(_,C)=>{t(_,C),a(_,C)}:t}function ly(e,t){const a=e.contentQueries;e.contentQueries=a?(_,C,R)=>{t(_,C,R),a(_,C,R)}:t}function uy(e,t){const a=e.hostBindings;e.hostBindings=a?(_,C)=>{t(_,C),a(_,C)}:t}const cy=["providersResolver"],dy=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function ip(e){let a,t=np(e.type);a=bi(e)?t.\u0275cmp:t.\u0275dir;const _=e;for(const C of cy)_[C]=a[C];if(bi(a))for(const C of dy)_[C]=a[C]}let hl=null;function jo(){if(!hl){const e=Kt.Symbol;if(e&&e.iterator)hl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let a=0;a=e.data.length&&(e.data[a]=null,e.blueprint[a]=null),t[a]=_}function ap(e){return nn(xn.lFrame.contextLView,20+e)}const lp={\u0275\u0275defineInjectable:Ue,\u0275\u0275defineInjector:at,\u0275\u0275inject:Cn,\u0275\u0275invalidFactoryDep:Pi,resolveForwardRef:c};const gy=d({provide:String,useValue:d});function up(e){return void 0!==e.useClass}function cp(e){return void 0!==e.useFactory}const by=Ts("Injectable",void 0,void 0,void 0,(e,t)=>function(e,t){let a=null,_=null;e.hasOwnProperty(At)||Object.defineProperty(e,At,{get:()=>(null===a&&(a=yr().compileInjectable(lp,`ng:///${e.name}/\u0275prov.js`,function(e,t){const a=t||{providedIn:null},_={name:e.name,type:e,typeArgumentCount:0,providedIn:a.providedIn};return(up(a)||cp(a))&&void 0!==a.deps&&(_.deps=Zd(a.deps)),up(a)?_.useClass=a.useClass:function(e){return gy in e}(a)?_.useValue=a.useValue:cp(a)?_.useFactory=a.useFactory:function(e){return void 0!==e.useExisting}(a)&&(_.useExisting=a.useExisting),_}(e,t))),a)}),e.hasOwnProperty(Se)||Object.defineProperty(e,Se,{get:()=>{if(null===_){const C=yr();_=C.compileFactory(lp,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:qa(e),target:C.FactoryTarget.Injectable})}return _},configurable:!0})}(e,t));function rc(e){return e.length>1?" ("+function(e){const t=[];for(let a=0;a-1)return t.push(e[a]),t;t.push(e[a])}return t}(e.slice().reverse()).map(_=>h(_.token)).join(" -> ")+")":""}function sc(e,t,a,_){const C=[t],R=a(C),W=_?function(e,t){const a=`${e} caused by: ${t instanceof Error?t.message:t}`,_=Error(a);return _[iu]=t,_}(R,_):Error(R);return W.addKey=Ey,W.keys=C,W.injectors=[e],W.constructResolvingMessage=a,W[iu]=_,W}function Ey(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function dp(e,t){const a=[];for(let _=0,C=t.length;__,a=[pl.fromKey(ao.get(e.useExisting))]):e.useFactory?(t=e.useFactory,a=function(e,t){if(t){const a=t.map(_=>[_]);return t.map(_=>vp(e,_,a))}return _p(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,a=Oy);return new mp(t,a)}function Ly(e){return new pp(ao.get(e.provide),[Ry(e)],e.multi||!1)}function ky(e){const _=function(e,t){for(let a=0;a{if(a instanceof Oo)t.push({provide:a,useClass:a});else if(a&&"object"==typeof a&&void 0!==a.provide)t.push(a);else{if(!Array.isArray(a))throw function(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(a);gp(a,t)}}),t}function _p(e){const t=fp.parameters(e);if(!t)return[];if(t.some(a=>null==a))throw dp(e,t);return t.map(a=>vp(e,a,t))}function vp(e,t,a){let _=null,C=!1;if(!Array.isArray(t))return oc(t instanceof fo?t.token:t,C,null);let R=null;for(let W=0;W{class e{constructor(a,_){this._constructionCounter=0,this._providers=a,this.parent=_||null;const C=a.length;this.keyIds=[],this.objs=[];for(let R=0;R=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(a);return this._providers[a]}_new(a){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(e,t){return sc(e,t,function(a){return`Cannot instantiate cyclic dependency!${rc(a)}`})}(this,a.key);return this._instantiateProvider(a)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(a){if(a.multiProvider){const _=[];for(let C=0;Cthis._getByReflectiveDependency(se))}catch(se){throw se.addKey&&se.addKey(this,a.key),se}try{W=C(...R)}catch(se){throw function(e,t,a,_){return sc(e,_,function(C){const R=h(C[0].token);return`${t.message}: Error during instantiation of ${R}!${rc(C)}.`},t)}(this,se,0,a.key)}return W}_getByReflectiveDependency(a){return this._getByKey(a.key,a.visibility,a.optional?null:hn)}_getByKey(a,_,C){return a===e.INJECTOR_KEY?this:_ instanceof io?this._getByKeySelf(a,C):this._getByKeyDefault(a,C,_)}_getObjByKeyId(a){for(let _=0;_' "'+_.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=ao.get(gs),e})();function Aa(e,t=Ee.Default){const a=we();return null===a?Cn(e,t):ss(pe(),a,c(e),t)}function yp(){throw new Error("invalid")}function ac(e,t,a){const _=we();return Zr(_,Kn(),t)&&ms(N(),Zn(),_,e,t,_[11],a,!1),ac}function lc(e,t,a,_,C){const W=C?"class":"style";Ff(e,a,t.inputs[W],W,_)}function uc(e,t,a,_){const C=we(),R=N(),W=20+e,se=C[11],ge=C[W]=cu(se,t,xn.lFrame.currentNamespace),De=R.firstCreatePass?function(e,t,a,_,C,R,W){const se=t.consts,De=Uo(t,e,2,C,hi(se,R));return Ou(t,a,De,hi(se,W)),null!==De.attrs&&cl(De,De.attrs,!1),null!==De.mergedAttrs&&cl(De,De.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,De),De}(W,R,C,0,t,a,_):R.data[W];rt(De,!0);const ke=De.mergedAttrs;null!==ke&&Mt(se,ge,ke);const qe=De.classes;null!==qe&&gu(se,ge,qe);const Ct=De.styles;null!==Ct&&Xh(se,ge,Ct),64!=(64&De.flags)&&il(R,C,ge,De),0===xn.lFrame.elementDepthCount&&Xr(ge,C),xn.lFrame.elementDepthCount++,tr(De)&&(Iu(R,C,De),vf(R,De,C)),null!==_&&Au(C,De)}function cc(){let e=pe();dt()?Rt():(e=e.parent,rt(e,!1));const t=e;xn.lFrame.elementDepthCount--;const a=N();a.firstCreatePass&&(Ir(a,e),Gi(e)&&a.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&lc(a,t,we(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&lc(a,t,we(),t.stylesWithoutHost,!1)}function bp(e,t,a,_){uc(e,t,a,_),cc()}function dc(e,t,a){const _=we(),C=N(),R=e+20,W=C.firstCreatePass?function(e,t,a,_,C){const R=t.consts,W=hi(R,_),se=Uo(t,e,8,"ng-container",W);return null!==W&&cl(se,W,!0),Ou(t,a,se,hi(R,C)),null!==t.queries&&t.queries.elementStart(t,se),se}(R,C,_,t,a):C.data[R];rt(W,!0);const se=_[R]=_[11].createComment("");il(C,_,se,W),Xr(se,_),tr(W)&&(Iu(C,_,W),vf(C,W,_)),null!=a&&Au(_,W)}function hc(){let e=pe();const t=N();dt()?Rt():(e=e.parent,rt(e,!1)),t.firstCreatePass&&(Ir(t,e),Gi(e)&&t.queries.elementEnd(e))}function Cp(e,t,a){dc(e,t,a),hc()}function Ep(){return we()}function fc(e){return!!e&&"function"==typeof e.then}function wp(e){return!!e&&"function"==typeof e.subscribe}const Mp=wp;function pc(e,t,a,_){const C=we(),R=N(),W=pe();return Sp(R,C,C[11],W,e,t,!!a,_),pc}function mc(e,t){const a=pe(),_=we(),C=N();return Sp(C,_,kf(Xi(C.data),a,_),a,e,t,!1),mc}function Sp(e,t,a,_,C,R,W,se){const ge=tr(_),ke=e.firstCreatePass&&Lf(e),qe=t[8],Ct=Rf(t);let Pt=!0;if(3&_.type||se){const dn=ve(_,t),wn=se?se(dn):dn,Jt=Ct.length,Un=se?yi=>se(be(yi[_.index])):_.index;if(si(a)){let yi=null;if(!se&&ge&&(yi=function(e,t,a,_){const C=e.cleanup;if(null!=C)for(let R=0;Rge?se[ge]:null}"string"==typeof W&&(R+=2)}return null}(e,t,C,_.index)),null!==yi)(yi.__ngLastListenerFn__||yi).__ngNextListenerFn__=R,yi.__ngLastListenerFn__=R,Pt=!1;else{R=gc(_,t,qe,R,!1);const Bi=a.listen(wn,C,R);Ct.push(R,Bi),ke&&ke.push(C,Un,Jt,Jt+1)}}else R=gc(_,t,qe,R,!0),wn.addEventListener(C,R,W),Ct.push(R),ke&&ke.push(C,Un,Jt,W)}else R=gc(_,t,qe,R,!1);const Yt=_.outputs;let sn;if(Pt&&null!==Yt&&(sn=Yt[C])){const dn=sn.length;if(dn)for(let wn=0;wn0;)t=t[15],e--;return t}(e,xn.lFrame.contextLView))[8]}(e)}function Hy(e,t){let a=null;const _=function(e){const t=e.attrs;if(null!=t){const a=t.indexOf(5);if(0==(1&a))return t[a+1]}return null}(e);for(let C=0;C=0}const Ar={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Op(e){return e.substring(Ar.key,Ar.keyEnd)}function Ky(e){return e.substring(Ar.value,Ar.valueEnd)}function Rp(e,t){const a=Ar.textEnd;return a===t?-1:(t=Ar.keyEnd=function(e,t,a){for(;t32;)t++;return t}(e,Ar.key=t,a),ea(e,t,a))}function Lp(e,t){const a=Ar.textEnd;let _=Ar.key=ea(e,t,a);return a===_?-1:(_=Ar.keyEnd=function(e,t,a){let _;for(;t=65&&(-33&_)<=90||_>=48&&_<=57);)t++;return t}(e,_,a),_=Pp(e,_,a),_=Ar.value=ea(e,_,a),_=Ar.valueEnd=function(e,t,a){let _=-1,C=-1,R=-1,W=t,se=W;for(;W32&&(se=W),R=C,C=_,_=-33&ge}return se}(e,_,a),Pp(e,_,a))}function kp(e){Ar.key=0,Ar.keyEnd=0,Ar.value=0,Ar.valueEnd=0,Ar.textEnd=e.length}function ea(e,t,a){for(;t=0;a=Lp(t,a))Vp(e,Op(t),Ky(t))}function Np(e){Ns(Yr,Qs,e,!0)}function Qs(e,t){for(let a=function(e){return kp(e),Rp(e,ea(e,0,Ar.textEnd))}(t);a>=0;a=Rp(t,a))Yr(e,Op(t),!0)}function Fs(e,t,a,_){const C=we(),R=N(),W=_i(2);R.firstUpdatePass&&Bp(R,e,W,_),t!==ei&&Zr(C,W,t)&&$p(R,R.data[ii()],C,C[11],e,C[W+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=h(ro(e)))),e}(t,a),_,W)}function Ns(e,t,a,_){const C=N(),R=_i(2);C.firstUpdatePass&&Bp(C,null,R,_);const W=we();if(a!==ei&&Zr(W,R,a)){const se=C.data[ii()];if(jp(se,_)&&!Up(C,R)){let ge=_?se.classesWithoutHost:se.stylesWithoutHost;null!==ge&&(a=r(ge,a||"")),lc(C,se,W,a,_)}else!function(e,t,a,_,C,R,W,se){C===ei&&(C=Qe);let ge=0,De=0,ke=0=e.expandoStartIndex}function Bp(e,t,a,_){const C=e.data;if(null===C[a+1]){const R=C[ii()],W=Up(e,a);jp(R,_)&&null===t&&!W&&(t=!1),t=function(e,t,a,_){const C=Xi(e);let R=_?t.residualClasses:t.residualStyles;if(null===C)0===(_?t.classBindings:t.styleBindings)&&(a=Oa(a=xc(null,e,t,a,_),t.attrs,_),R=null);else{const W=t.directiveStylingLast;if(-1===W||e[W]!==C)if(a=xc(C,e,t,a,_),null===R){let ge=function(e,t,a){const _=a?t.classBindings:t.styleBindings;if(0!==so(_))return e[ks(_)]}(e,t,_);void 0!==ge&&Array.isArray(ge)&&(ge=xc(null,e,t,ge[1],_),ge=Oa(ge,t.attrs,_),function(e,t,a,_){e[ks(a?t.classBindings:t.styleBindings)]=_}(e,t,_,ge))}else R=function(e,t,a){let _;const C=t.directiveEnd;for(let R=1+t.directiveStylingLast;R0)&&(De=!0)}else ke=a;if(C)if(0!==ge){const Ct=ks(e[se+1]);e[_+1]=sl(Ct,se),0!==Ct&&(e[Ct+1]=vu(e[Ct+1],_)),e[se+1]=function(e,t){return 131071&e|t<<17}(e[se+1],_)}else e[_+1]=sl(se,0),0!==se&&(e[se+1]=vu(e[se+1],_)),se=_;else e[_+1]=sl(ge,0),0===se?se=_:e[ge+1]=vu(e[ge+1],_),ge=_;De&&(e[_+1]=_u(e[_+1])),Ap(e,ke,_,!0),Ap(e,ke,_,!1),function(e,t,a,_,C){const R=C?e.residualClasses:e.residualStyles;null!=R&&"string"==typeof t&&P(R,t)>=0&&(a[_+1]=yu(a[_+1]))}(t,ke,e,_,R),W=sl(se,ge),R?t.classBindings=W:t.styleBindings=W}(C,R,t,a,W,_)}}function xc(e,t,a,_,C){let R=null;const W=a.directiveEnd;let se=a.directiveStylingLast;for(-1===se?se=a.directiveStart:se++;se0;){const ge=e[C],De=Array.isArray(ge),ke=De?ge[1]:ge,qe=null===ke;let Ct=a[C+1];Ct===ei&&(Ct=qe?Qe:void 0);let Pt=qe?ma(Ct,_):ke===_?Ct:void 0;if(De&&!gl(Pt)&&(Pt=ma(ge,_)),gl(Pt)&&(se=Pt,W))return se;const Yt=e[C+1];C=W?ks(Yt):so(Yt)}if(null!==t){let ge=R?t.residualClasses:t.residualStyles;null!=ge&&(se=ma(ge,_))}return se}function gl(e){return void 0!==e}function jp(e,t){return 0!=(e.flags&(t?16:32))}function Wp(e,t=""){const a=we(),_=N(),C=e+20,R=_.firstCreatePass?Uo(_,C,1,t,null):_.data[C],W=a[C]=uu(a[11],t);il(_,a,W,R),rt(R,!1)}function Ic(e){return _l("",e,""),Ic}function _l(e,t,a){const _=we(),C=zo(_,e,t,a);return C!==ei&&oo(_,ii(),C),_l}function Ac(e,t,a,_,C){const R=we(),W=Ko(R,e,t,a,_,C);return W!==ei&&oo(R,ii(),W),Ac}function Oc(e,t,a,_,C,R,W){const se=we(),ge=Go(se,e,t,a,_,C,R,W);return ge!==ei&&oo(se,ii(),ge),Oc}function Rc(e,t,a,_,C,R,W,se,ge){const De=we(),ke=Yo(De,e,t,a,_,C,R,W,se,ge);return ke!==ei&&oo(De,ii(),ke),Rc}function Lc(e,t,a,_,C,R,W,se,ge,De,ke){const qe=we(),Ct=Qo(qe,e,t,a,_,C,R,W,se,ge,De,ke);return Ct!==ei&&oo(qe,ii(),Ct),Lc}function kc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct){const Pt=we(),Yt=Xo(Pt,e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct);return Yt!==ei&&oo(Pt,ii(),Yt),kc}function Pc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt){const sn=we(),dn=Zo(sn,e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt);return dn!==ei&&oo(sn,ii(),dn),Pc}function Fc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn){const wn=we(),Jt=qo(wn,e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn);return Jt!==ei&&oo(wn,ii(),Jt),Fc}function Nc(e){const t=we(),a=Wo(t,e);return a!==ei&&oo(t,ii(),a),Nc}function zp(e,t,a){Ns(Yr,Qs,zo(we(),e,t,a),!0)}function Kp(e,t,a,_,C){Ns(Yr,Qs,Ko(we(),e,t,a,_,C),!0)}function Gp(e,t,a,_,C,R,W){Ns(Yr,Qs,Go(we(),e,t,a,_,C,R,W),!0)}function Yp(e,t,a,_,C,R,W,se,ge){Ns(Yr,Qs,Yo(we(),e,t,a,_,C,R,W,se,ge),!0)}function Qp(e,t,a,_,C,R,W,se,ge,De,ke){Ns(Yr,Qs,Qo(we(),e,t,a,_,C,R,W,se,ge,De,ke),!0)}function Xp(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct){Ns(Yr,Qs,Xo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct),!0)}function Zp(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt){Ns(Yr,Qs,Zo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt),!0)}function qp(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn){Ns(Yr,Qs,qo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn),!0)}function Jp(e){Ns(Yr,Qs,Wo(we(),e),!0)}function e0(e,t,a){Ps(zo(we(),e,t,a))}function t0(e,t,a,_,C){Ps(Ko(we(),e,t,a,_,C))}function n0(e,t,a,_,C,R,W){Ps(Go(we(),e,t,a,_,C,R,W))}function r0(e,t,a,_,C,R,W,se,ge){Ps(Yo(we(),e,t,a,_,C,R,W,se,ge))}function s0(e,t,a,_,C,R,W,se,ge,De,ke){Ps(Qo(we(),e,t,a,_,C,R,W,se,ge,De,ke))}function o0(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct){Ps(Xo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct))}function a0(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt){Ps(Zo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt))}function l0(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn){Ps(qo(we(),e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn))}function u0(e){Ps(Wo(we(),e))}function Uc(e,t,a,_,C){return Fs(e,zo(we(),t,a,_),C,!1),Uc}function Bc(e,t,a,_,C,R,W){return Fs(e,Ko(we(),t,a,_,C,R),W,!1),Bc}function Vc(e,t,a,_,C,R,W,se,ge){return Fs(e,Go(we(),t,a,_,C,R,W,se),ge,!1),Vc}function $c(e,t,a,_,C,R,W,se,ge,De,ke){return Fs(e,Yo(we(),t,a,_,C,R,W,se,ge,De),ke,!1),$c}function Hc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct){return Fs(e,Qo(we(),t,a,_,C,R,W,se,ge,De,ke,qe),Ct,!1),Hc}function jc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt){return Fs(e,Xo(we(),t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt),Yt,!1),jc}function Wc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn){return Fs(e,Zo(we(),t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn),dn,!1),Wc}function zc(e,t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn,wn,Jt){return Fs(e,qo(we(),t,a,_,C,R,W,se,ge,De,ke,qe,Ct,Pt,Yt,sn,dn,wn),Jt,!1),zc}function Kc(e,t,a){return Fs(e,Wo(we(),t),a,!1),Kc}function Gc(e,t,a){const _=we();return Zr(_,Kn(),t)&&ms(N(),Zn(),_,e,t,_[11],a,!0),Gc}function Yc(e,t,a){const _=we();if(Zr(_,Kn(),t)){const R=N(),W=Zn();ms(R,W,_,e,t,kf(Xi(R.data),W,_),a,!0)}return Yc}const Do=void 0;var ab=["en",[["a","p"],["AM","PM"],Do],[["AM","PM"],Do,Do],[["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"]],Do,[["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"]],Do,[["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}",Do,"{1} 'at' {0}",Do],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const a=Math.floor(Math.abs(e)),_=e.toString().replace(/^[^.]*\.?/,"").length;return 1===a&&0===_?1:5}];let ta={};function lb(e,t,a){"string"!=typeof t&&(a=t,t=e[Vn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ta[t]=e,a&&(ta[t][Vn.ExtraData]=a)}function Qc(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let a=d0(t);if(a)return a;const _=t.split("-")[0];if(a=d0(_),a)return a;if("en"===_)return ab;throw new Error(`Missing locale data for the locale "${e}".`)}function ub(e){return Qc(e)[Vn.CurrencyCode]||null}function c0(e){return Qc(e)[Vn.PluralCase]}function d0(e){return e in ta||(ta[e]=Kt.ng&&Kt.ng.common&&Kt.ng.common.locales&&Kt.ng.common.locales[e]),ta[e]}function cb(){ta={}}var Vn=(()=>((Vn=Vn||{})[Vn.LocaleId=0]="LocaleId",Vn[Vn.DayPeriodsFormat=1]="DayPeriodsFormat",Vn[Vn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Vn[Vn.DaysFormat=3]="DaysFormat",Vn[Vn.DaysStandalone=4]="DaysStandalone",Vn[Vn.MonthsFormat=5]="MonthsFormat",Vn[Vn.MonthsStandalone=6]="MonthsStandalone",Vn[Vn.Eras=7]="Eras",Vn[Vn.FirstDayOfWeek=8]="FirstDayOfWeek",Vn[Vn.WeekendRange=9]="WeekendRange",Vn[Vn.DateFormat=10]="DateFormat",Vn[Vn.TimeFormat=11]="TimeFormat",Vn[Vn.DateTimeFormat=12]="DateTimeFormat",Vn[Vn.NumberSymbols=13]="NumberSymbols",Vn[Vn.NumberFormats=14]="NumberFormats",Vn[Vn.CurrencyCode=15]="CurrencyCode",Vn[Vn.CurrencySymbol=16]="CurrencySymbol",Vn[Vn.CurrencyName=17]="CurrencyName",Vn[Vn.Currencies=18]="Currencies",Vn[Vn.Directionality=19]="Directionality",Vn[Vn.PluralCase=20]="PluralCase",Vn[Vn.ExtraData=21]="ExtraData",Vn))();const hb=["zero","one","two","few","many"],Ra="en-US",vl={marker:"element"},yl={marker:"ICU"};var pr=(()=>((pr=pr||{})[pr.SHIFT=2]="SHIFT",pr[pr.APPEND_EAGERLY=1]="APPEND_EAGERLY",pr[pr.COMMENT=2]="COMMENT",pr))();let h0=Ra;function f0(e){(function(e,t){null==e&&Le(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(h0=e.toLowerCase().replace(/_/g,"-"))}function p0(e,t,a){const _=t.insertBeforeIndex,C=Array.isArray(_)?_[0]:_;return null===C?Wh(e,0,a):be(a[C])}function m0(e,t,a,_,C){const R=t.insertBeforeIndex;if(Array.isArray(R)){let W=_,se=null;if(3&t.type||(se=W,W=C),null!==W&&0==(2&t.flags))for(let ge=1;ge1)for(let a=e.length-2;a>=0;a--){const _=e[a];_0(_)||gb(_,t)&&null===_b(_)&&vb(_,t.index)}}function _0(e){return!(64&e.type)}function gb(e,t){return _0(t)||e.index>t.index}function _b(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function vb(e,t){const a=e.insertBeforeIndex;Array.isArray(a)?a[0]=t:(Kh(p0,m0),e.insertBeforeIndex=t)}function La(e,t){const a=e.data[t];return null===a||"string"==typeof a?null:a.hasOwnProperty("currentCaseLViewIndex")?a:a.value}function Cb(e,t,a){const _=xu(e,a,64,null,null);return g0(t,_),_}function bl(e,t){const a=t[e.currentCaseLViewIndex];return null===a?a:a<0?~a:a}function v0(e){return e>>>17}function y0(e){return(131070&e)>>>1}let ka=0,Pa=0;function C0(e,t,a,_){const C=a[11];let W,R=null;for(let se=0;se>>1,a),null,null,Pt,Yt,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${ge}"`)}else switch(ge){case yl:const De=t[++se],ke=t[++se];null===a[ke]&&Xr(a[ke]=O_(C,De),a);break;case vl:const qe=t[++se],Ct=t[++se];null===a[Ct]&&Xr(a[Ct]=cu(C,qe,null),a)}}}function E0(e,t,a,_,C){for(let R=0;R>>2;switch(3&ke){case 1:const Ct=a[++De],Pt=a[++De],Yt=e.data[qe];"string"==typeof Yt?Ru(t[11],t[qe],null,Yt,Ct,ge,Pt):ms(e,Yt,t,Ct,ge,t[11],Pt,!1);break;case 0:const sn=t[qe];null!==sn&&Fh(t[11],sn,ge);break;case 2:Db(e,La(e,qe),t,ge);break;case 3:w0(e,La(e,qe),_,t)}}}}else{const ge=a[R+1];if(ge>0&&3==(3&ge)){const ke=La(e,ge>>>2);t[ke.currentCaseLViewIndex]<0&&w0(e,ke,_,t)}}R+=se}}function w0(e,t,a,_){let C=_[t.currentCaseLViewIndex];if(null!==C){let R=ka;C<0&&(C=_[t.currentCaseLViewIndex]=~C,R=-1),E0(e,_,t.update[C],a,R)}}function Db(e,t,a,_){const C=function(e,t){let a=e.cases.indexOf(t);if(-1===a)switch(e.type){case 1:{const _=function(e,t){const a=c0(t)(parseInt(e,10)),_=hb[a];return void 0!==_?_:"other"}(t,h0);a=e.cases.indexOf(_),-1===a&&"other"!==_&&(a=e.cases.indexOf("other"));break}case 0:a=e.cases.indexOf("other")}return-1===a?null:a}(t,_);if(bl(t,a)!==C&&(M0(e,t,a),a[t.currentCaseLViewIndex]=null===C?null:~C,null!==C)){const W=a[t.anchorIdx];W&&C0(e,t.create[C],a,W)}}function M0(e,t,a){let _=bl(t,a);if(null!==_){const C=t.remove[_];for(let R=0;R0){const se=V(W,a);null!==se&&Yh(a[11],se)}else M0(e,La(e,~W),a)}}}function xb(){const e=[];let a,_,t=-1;function R(se,ge){t=0;const De=bl(se,ge);_=null!==De?se.remove[De]:Qe}function W(){if(t<_.length){const se=_[t++];return se>0?a[se]:(e.push(t,_),R(a[1].data[~se],a),W())}return 0===e.length?null:(_=e.pop(),t=e.pop(),W())}return function(se,ge){for(a=ge;e.length;)e.pop();return R(se.value,ge),W}}const Cl=/\ufffd(\d+):?\d*\ufffd/gi,Ib=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ab=/\ufffd(\d+)\ufffd/,D0=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ob=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Rb=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Lb=/\uE500/g;function T0(e,t,a,_,C,R,W){const se=Bo(e,_,1,null);let ge=se<a.length&&a.push(ge)}return{type:_,mainBinding:C,cases:t,values:a}}function Xc(e){if(!e)return[];let t=0;const a=[],_=[],C=/[{}]/g;let R;for(C.lastIndex=0;R=C.exec(e);){const se=R.index;if("}"==R[0]){if(a.pop(),0==a.length){const ge=e.substring(t,se);D0.test(ge)?_.push($b(ge)):_.push(ge),t=se+1}}else{if(0==a.length){const ge=e.substring(t,se);_.push(ge),t=se+1}a.push("{")}}const W=e.substring(t);return _.push(W),_}function Hb(e,t,a,_,C,R,W,se){const ge=[],De=[],ke=[];t.cases.push(R),t.create.push(ge),t.remove.push(De),t.update.push(ke);const Ct=sh(Tr()).getInertBodyElement(W),Pt=ql(Ct)||Ct;return Pt?O0(e,t,a,_,ge,De,ke,Pt,C,se,0):0}function O0(e,t,a,_,C,R,W,se,ge,De,ke){let qe=0,Ct=se.firstChild;for(;Ct;){const Pt=Bo(e,a,1,null);switch(Ct.nodeType){case Node.ELEMENT_NODE:const Yt=Ct,sn=Yt.tagName.toLowerCase();if(Ql.hasOwnProperty(sn)){Zc(C,vl,sn,ge,Pt),e.data[Pt]=sn;const Un=Yt.attributes;for(let yi=0;yi>>pr.SHIFT;let qe=e[ke];null===qe&&(qe=e[ke]=ge?C.createComment(se):uu(C,se)),De&&null!==a&&Mo(C,a,qe,_,!1)}})(C,ge.create,ke,se&&8&se.type?C[se.index]:null),sr(!0)}function Jc(){sr(!1)}function k0(e,t,a){qc(e,t,a),Jc()}function P0(e,t){const a=N();!function(e,t,a){const C=pe().index,R=[];if(e.firstCreatePass&&null===e.data[t]){for(let W=0;W0){const _=e.data[a];E0(e,t,Array.isArray(_)?_:_.update,_n()-Pa-1,ka)}ka=0,Pa=0}(N(),we(),e+20)}function N0(e,t={}){return function(e,t={}){let a=e;if(Gb.test(e)){const _={},C=[0];a=a.replace(Yb,(R,W,se)=>{const ge=W||se,De=_[ge]||[];if(De.length||(ge.split("|").forEach(sn=>{const dn=sn.match(Jb),wn=dn?parseInt(dn[1],10):0,Jt=qb.test(sn);De.push([wn,Jt,sn])}),_[ge]=De),!De.length)throw new Error(`i18n postprocess: unmatched placeholder - ${ge}`);const ke=C[C.length-1];let qe=0;for(let sn=0;snt.hasOwnProperty(R)?`${C}${t[R]}${ge}`:_),a=a.replace(Xb,(_,C)=>t.hasOwnProperty(C)?t[C]:_),a=a.replace(Zb,(_,C)=>{if(t.hasOwnProperty(C)){const R=t[C];if(!R.length)throw new Error(`i18n postprocess: unmatched ICU - ${_} with key: ${C}`);return R.shift()}return _})),a}(e,t)}function td(e,t,a,_,C){if(e=c(e),Array.isArray(e))for(let R=0;R>20;if(Ho(e)||!e.multi){const Pt=new rs(ge,C,Aa),Yt=id(se,t,C?ke:ke+Ct,qe);-1===Yt?(Gr(Dn(De,W),R,se),nd(R,e,t.length),t.push(se),De.directiveStart++,De.directiveEnd++,C&&(De.providerIndexes+=1048576),a.push(Pt),W.push(Pt)):(a[Yt]=Pt,W[Yt]=Pt)}else{const Pt=id(se,t,ke+Ct,qe),Yt=id(se,t,ke,ke+Ct),sn=Pt>=0&&a[Pt],dn=Yt>=0&&a[Yt];if(C&&!dn||!C&&!sn){Gr(Dn(De,W),R,se);const wn=function(e,t,a,_,C){const R=new rs(e,a,Aa);return R.multi=[],R.index=t,R.componentProviders=0,U0(R,C,_&&!a),R}(C?r1:n1,a.length,C,_,ge);!C&&dn&&(a[Yt].providerFactory=wn),nd(R,e,t.length,0),t.push(se),De.directiveStart++,De.directiveEnd++,C&&(De.providerIndexes+=1048576),a.push(wn),W.push(wn)}else nd(R,e,Pt>-1?Pt:Yt,U0(a[C?Yt:Pt],ge,!C&&_));!C&&_&&dn&&a[Yt].componentProviders++}}}function nd(e,t,a,_){const C=Ho(t),R=function(e){return!!e.useClass}(t);if(C||R){const ge=(R?c(t.useClass):t).prototype.ngOnDestroy;if(ge){const De=e.destroyHooks||(e.destroyHooks=[]);if(!C&&t.multi){const ke=De.indexOf(a);-1===ke?De.push(a,[_,ge]):De[ke+1].push(_,ge)}else De.push(a,ge)}}}function U0(e,t,a){return a&&e.componentProviders++,e.multi.push(t)-1}function id(e,t,a,_){for(let C=a;C<_;C++)if(t[C]===e)return C;return-1}function n1(e,t,a,_){return rd(this.multi,[])}function r1(e,t,a,_){const C=this.multi;let R;if(this.providerFactory){const W=this.providerFactory.componentProviders,se=go(a,a[1],this.providerFactory.index,_);R=se.slice(0,W),rd(C,R);for(let ge=W;ge{a.providersResolver=(_,C)=>function(e,t,a){const _=N();if(_.firstCreatePass){const C=bi(e);td(a,_.data,_.blueprint,C,!0),td(t,_.data,_.blueprint,C,!1)}}(_,C?C(e):e,t)}}class V0{}class El{}class a1{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${h(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Na=(()=>{class e{}return e.NULL=new a1,e})();function l1(){return ia(pe(),we())}function ia(e,t){return new Ua(ve(e,t))}let Ua=(()=>{class e{constructor(a){this.nativeElement=a}}return e.__NG_ELEMENT_ID__=l1,e})();function u1(e){return e instanceof Ua?e.nativeElement:e}class H0{}let c1=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function(){const e=we(),a=In(pe().index,e);return function(e){return e[11]}(Xn(a)?a:e)}(),e})(),j0=(()=>{class e{}return e.\u0275prov=Ue({token:e,providedIn:"root",factory:()=>null}),e})();class W0{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const z0=new W0("13.1.1"),wl={};function Ml(e,t,a,_,C=!1){for(;null!==a;){const R=t[a.index];if(null!==R&&_.push(be(R)),pi(R))for(let se=10;se-1&&(du(t,_),Co(a,_))}this._attachedToViewContainer=!1}Uh(this._lView[1],this._lView)}onDestroy(t){Ef(this._lView[1],this._lView,null,t)}markForCheck(){ku(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Fu(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,a){Pn(!0);try{Fu(e,t,a)}finally{Pn(!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 t;this._appRef=null,wa(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class f1 extends ra{constructor(t){super(t),this._view=t}detectChanges(){Of(this._view)}checkNoChanges(){!function(e){Pn(!0);try{Of(e)}finally{Pn(!1)}}(this._view)}get context(){return null}}class K0 extends Na{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const a=Ot(t);return new Sl(a,this.ngModule)}}function G0(e){const t=[];for(let a in e)e.hasOwnProperty(a)&&t.push({propName:e[a],templateName:a});return t}const m1=new lr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Th});class Sl extends El{constructor(t,a){super(),this.componentDef=t,this.ngModule=a,this.componentType=t.type,this.selector=t.selectors.map(J_).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!a}get inputs(){return G0(this.componentDef.inputs)}get outputs(){return G0(this.componentDef.outputs)}create(t,a,_,C){const R=(C=C||this.ngModule)?function(e,t){return{get:(a,_,C)=>{const R=e.get(a,wl,C);return R!==wl||_===wl?R:t.get(a,_,C)}}}(t,C.injector):t,W=R.get(H0,zr),se=R.get(j0,null),ge=W.createRenderer(null,this.componentDef),De=this.componentDef.selectors[0][0]||"div",ke=_?Cf(ge,_,this.componentDef.encapsulation):cu(W.createRenderer(null,this.componentDef),De,function(e){const t=e.toLowerCase();return"svg"===t?Fr:"math"===t?ls:null}(De)),qe=this.componentDef.onPush?576:528,Ct=ep(),Pt=ll(0,null,null,1,0,null,null,null,null,null),Yt=Ma(null,Pt,Ct,qe,null,null,W,ge,se,R);let sn,dn;Yi(Yt);try{const wn=qf(ke,this.componentDef,Yt,W,ge);if(ke)if(_)Mt(ge,ke,["ng-version",z0.full]);else{const{attrs:Jt,classes:Un}=function(e){const t=[],a=[];let _=1,C=2;for(;_0&&gu(ge,ke,Un.join(" "))}if(dn=Nt(Pt,20),void 0!==a){const Jt=dn.projection=[];for(let Un=0;Un{const C=e;null!==t&&(C.hasOwnProperty("decorators")&&void 0!==C.decorators?C.decorators.push(...t):C.decorators=t),null!==a&&(C.ctorParameters=a),null!==_&&(C.propDecorators=C.hasOwnProperty("propDecorators")&&void 0!==C.propDecorators?Object.assign(Object.assign({},C.propDecorators),_):_)})}class sa{}class X0{}const oa=new Map;function q0(e){const t=new Set;!function a(_){const C=On(_,!0),R=C.id;if(null!==R){(function(e,t,a){if(t&&t!==a)throw new Error(`Duplicate module registered for ${e} - ${h(t)} vs ${h(t.name)}`)})(R,oa.get(R),_),oa.set(R,_)}const W=zs(C.imports);for(const se of W)t.has(se)||(t.add(se),a(se))}(e)}function J0(e){return oa.get(e)||cn[e]}function v1(e,t){return new sd(e,null!=t?t:null)}class sd extends sa{constructor(t,a){super(),this._parent=a,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new K0(this);const _=On(t);this._bootstrapComponents=zs(_.bootstrap),this._r3Injector=$f(t,a,[{provide:sa,useValue:this},{provide:Na,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,a=gs.THROW_IF_NOT_FOUND,_=Ee.Default){return t===gs||t===sa||t===dl?this:this._r3Injector.get(t,a,_)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(a=>a()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Dl extends X0{constructor(t){super(),this.moduleType=t,null!==On(t)&&q0(t)}create(t){return new sd(this.moduleType,t)}}function em(e,t,a){const _=Ln()+e,C=we();return C[_]===ei?Ys(C,_,a?t.call(a):t()):xa(C,_)}function tm(e,t,a,_){return cm(we(),Ln(),e,t,a,_)}function nm(e,t,a,_,C){return dm(we(),Ln(),e,t,a,_,C)}function im(e,t,a,_,C,R){return hm(we(),Ln(),e,t,a,_,C,R)}function rm(e,t,a,_,C,R,W){return fm(we(),Ln(),e,t,a,_,C,R,W)}function sm(e,t,a,_,C,R,W,se){const ge=Ln()+e,De=we(),ke=Os(De,ge,a,_,C,R);return Zr(De,ge+4,W)||ke?Ys(De,ge+5,se?t.call(se,a,_,C,R,W):t(a,_,C,R,W)):xa(De,ge+5)}function om(e,t,a,_,C,R,W,se,ge){const De=Ln()+e,ke=we(),qe=Os(ke,De,a,_,C,R);return So(ke,De+4,W,se)||qe?Ys(ke,De+6,ge?t.call(ge,a,_,C,R,W,se):t(a,_,C,R,W,se)):xa(ke,De+6)}function am(e,t,a,_,C,R,W,se,ge,De){const ke=Ln()+e,qe=we();let Ct=Os(qe,ke,a,_,C,R);return fl(qe,ke+4,W,se,ge)||Ct?Ys(qe,ke+7,De?t.call(De,a,_,C,R,W,se,ge):t(a,_,C,R,W,se,ge)):xa(qe,ke+7)}function lm(e,t,a,_,C,R,W,se,ge,De,ke){const qe=Ln()+e,Ct=we(),Pt=Os(Ct,qe,a,_,C,R);return Os(Ct,qe+4,W,se,ge,De)||Pt?Ys(Ct,qe+8,ke?t.call(ke,a,_,C,R,W,se,ge,De):t(a,_,C,R,W,se,ge,De)):xa(Ct,qe+8)}function um(e,t,a,_){return pm(we(),Ln(),e,t,a,_)}function Ba(e,t){const a=e[t];return a===ei?void 0:a}function cm(e,t,a,_,C,R){const W=t+a;return Zr(e,W,C)?Ys(e,W+1,R?_.call(R,C):_(C)):Ba(e,W+1)}function dm(e,t,a,_,C,R,W){const se=t+a;return So(e,se,C,R)?Ys(e,se+2,W?_.call(W,C,R):_(C,R)):Ba(e,se+2)}function hm(e,t,a,_,C,R,W,se){const ge=t+a;return fl(e,ge,C,R,W)?Ys(e,ge+3,se?_.call(se,C,R,W):_(C,R,W)):Ba(e,ge+3)}function fm(e,t,a,_,C,R,W,se,ge){const De=t+a;return Os(e,De,C,R,W,se)?Ys(e,De+4,ge?_.call(ge,C,R,W,se):_(C,R,W,se)):Ba(e,De+4)}function pm(e,t,a,_,C,R){let W=t+a,se=!1;for(let ge=0;ge=0;a--){const _=t[a];if(e===_.name)return _}}(t,a.pipeRegistry),a.data[C]=_,_.onDestroy&&(a.destroyHooks||(a.destroyHooks=[])).push(C,_.onDestroy)):_=a.data[C];const R=_.factory||(_.factory=ir(_.type)),W=x(Aa);try{const se=Ve(!1),ge=R();return Ve(se),op(a,we(),C,ge),ge}finally{x(W)}}function gm(e,t,a){const _=e+20,C=we(),R=nn(C,_);return Va(C,_)?cm(C,Ln(),t,R.transform,a,R):R.transform(a)}function _m(e,t,a,_){const C=e+20,R=we(),W=nn(R,C);return Va(R,C)?dm(R,Ln(),t,W.transform,a,_,W):W.transform(a,_)}function vm(e,t,a,_,C){const R=e+20,W=we(),se=nn(W,R);return Va(W,R)?hm(W,Ln(),t,se.transform,a,_,C,se):se.transform(a,_,C)}function ym(e,t,a,_,C,R){const W=e+20,se=we(),ge=nn(se,W);return Va(se,W)?fm(se,Ln(),t,ge.transform,a,_,C,R,ge):ge.transform(a,_,C,R)}function bm(e,t,a){const _=e+20,C=we(),R=nn(C,_);return Va(C,_)?pm(C,Ln(),t,R.transform,a,R):R.transform.apply(R,a)}function Va(e,t){return e[1].data[t].pure}function od(e){return t=>{setTimeout(e,void 0,t)}}const Xs=class extends n.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,a,_){var C,R,W;let se=t,ge=a||(()=>null),De=_;if(t&&"object"==typeof t){const qe=t;se=null===(C=qe.next)||void 0===C?void 0:C.bind(qe),ge=null===(R=qe.error)||void 0===R?void 0:R.bind(qe),De=null===(W=qe.complete)||void 0===W?void 0:W.bind(qe)}this.__isAsync&&(ge=od(ge),se&&(se=od(se)),De&&(De=od(De)));const ke=super.subscribe({next:se,error:ge,complete:De});return t instanceof f.w&&t.add(ke),ke}};function C1(){return this._results[jo()]()}class Tl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const a=jo(),_=Tl.prototype;_[a]||(_[a]=C1)}get changes(){return this._changes||(this._changes=new Xs)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,a){return this._results.reduce(t,a)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,a){const _=this;_.dirty=!1;const C=os(t);(this._changesDetected=!function(e,t,a){if(e.length!==t.length)return!1;for(let _=0;_{class e{}return e.__NG_ELEMENT_ID__=M1,e})();const E1=$a,w1=class extends E1{constructor(t,a,_){super(),this._declarationLView=t,this._declarationTContainer=a,this.elementRef=_}createEmbeddedView(t){const a=this._declarationTContainer.tViews,_=Ma(this._declarationLView,a,t,16,null,a.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const R=this._declarationLView[19];return null!==R&&(_[19]=R.createEmbeddedView(a)),Sa(a,_,t),new ra(_)}};function M1(){return xl(pe(),we())}function xl(e,t){return 4&e.type?new w1(t,e,ia(e,t)):null}let Il=(()=>{class e{}return e.__NG_ELEMENT_ID__=S1,e})();function S1(){return wm(pe(),we())}const D1=Il,Cm=class extends D1{constructor(t,a,_){super(),this._lContainer=t,this._hostTNode=a,this._hostLView=_}get element(){return ia(this._hostTNode,this._hostLView)}get injector(){return new lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=hs(this._hostTNode,this._hostLView);if(me(t)){const a=Ce(t,this._hostLView),_=oe(t);return new lo(a[1].data[_+8],a)}return new lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const a=Em(this._lContainer);return null!==a&&a[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,a,_){const C=t.createEmbeddedView(a||{});return this.insert(C,_),C}createComponent(t,a,_,C,R){const W=t&&!bo(t);let se;if(W)se=a;else{const qe=a||{};se=qe.index,_=qe.injector,C=qe.projectableNodes,R=qe.ngModuleRef}const ge=W?t:new Sl(Ot(t)),De=_||this.parentInjector;if(!R&&null==ge.ngModule&&De){const qe=De.get(sa,null);qe&&(R=qe)}const ke=ge.create(De,C,void 0,R);return this.insert(ke.hostView,se),ke}insert(t,a){const _=t._lView,C=_[1];if(pi(_[3])){const ke=this.indexOf(t);if(-1!==ke)this.detach(ke);else{const qe=_[3],Ct=new Cm(qe,qe[6],qe[3]);Ct.detach(Ct.indexOf(t))}}const R=this._adjustIndex(a),W=this._lContainer;!function(e,t,a,_){const C=10+_,R=a.length;_>0&&(a[C-1][4]=t),_0)_.push(W[se/2]);else{const De=R[se+1],ke=t[-ge];for(let qe=10;qe({\u0275\u0275attribute:Yu,\u0275\u0275attributeInterpolate1:Qu,\u0275\u0275attributeInterpolate2:Xu,\u0275\u0275attributeInterpolate3:Zu,\u0275\u0275attributeInterpolate4:qu,\u0275\u0275attributeInterpolate5:Ju,\u0275\u0275attributeInterpolate6:ec,\u0275\u0275attributeInterpolate7:tc,\u0275\u0275attributeInterpolate8:nc,\u0275\u0275attributeInterpolateV:ic,\u0275\u0275defineComponent:Me,\u0275\u0275defineDirective:He,\u0275\u0275defineInjectable:Ue,\u0275\u0275defineInjector:at,\u0275\u0275defineNgModule:An,\u0275\u0275definePipe:pt,\u0275\u0275directiveInject:Aa,\u0275\u0275getInheritedFactory:Ds,\u0275\u0275inject:Cn,\u0275\u0275injectAttribute:da,\u0275\u0275invalidFactory:yp,\u0275\u0275invalidFactoryDep:Pi,\u0275\u0275templateRefExtractor:Lm,\u0275\u0275NgOnChangesFeature:Sr,\u0275\u0275ProvidersFeature:B0,\u0275\u0275CopyDefinitionFeature:ip,\u0275\u0275InheritDefinitionFeature:zu,\u0275\u0275nextContext:Tp,\u0275\u0275namespaceHTML:Es,\u0275\u0275namespaceMathML:Si,\u0275\u0275namespaceSVG:dr,\u0275\u0275enableBindings:ds,\u0275\u0275disableBindings:Bs,\u0275\u0275elementStart:uc,\u0275\u0275elementEnd:cc,\u0275\u0275element:bp,\u0275\u0275elementContainerStart:dc,\u0275\u0275elementContainerEnd:hc,\u0275\u0275elementContainer:Cp,\u0275\u0275pureFunction0:em,\u0275\u0275pureFunction1:tm,\u0275\u0275pureFunction2:nm,\u0275\u0275pureFunction3:im,\u0275\u0275pureFunction4:rm,\u0275\u0275pureFunction5:sm,\u0275\u0275pureFunction6:om,\u0275\u0275pureFunction7:am,\u0275\u0275pureFunction8:lm,\u0275\u0275pureFunctionV:um,\u0275\u0275getCurrentView:Ep,\u0275\u0275restoreView:G,\u0275\u0275listener:pc,\u0275\u0275projection:Ip,\u0275\u0275syntheticHostProperty:Yc,\u0275\u0275syntheticHostListener:mc,\u0275\u0275pipeBind1:gm,\u0275\u0275pipeBind2:_m,\u0275\u0275pipeBind3:vm,\u0275\u0275pipeBind4:ym,\u0275\u0275pipeBindV:bm,\u0275\u0275projectionDef:xp,\u0275\u0275hostProperty:Gc,\u0275\u0275property:ac,\u0275\u0275propertyInterpolate:_c,\u0275\u0275propertyInterpolate1:ml,\u0275\u0275propertyInterpolate2:vc,\u0275\u0275propertyInterpolate3:yc,\u0275\u0275propertyInterpolate4:bc,\u0275\u0275propertyInterpolate5:Cc,\u0275\u0275propertyInterpolate6:Ec,\u0275\u0275propertyInterpolate7:wc,\u0275\u0275propertyInterpolate8:Mc,\u0275\u0275propertyInterpolateV:Sc,\u0275\u0275pipe:mm,\u0275\u0275queryRefresh:Dm,\u0275\u0275viewQuery:Tm,\u0275\u0275loadQuery:Im,\u0275\u0275contentQuery:xm,\u0275\u0275reference:ap,\u0275\u0275classMap:Np,\u0275\u0275classMapInterpolate1:zp,\u0275\u0275classMapInterpolate2:Kp,\u0275\u0275classMapInterpolate3:Gp,\u0275\u0275classMapInterpolate4:Yp,\u0275\u0275classMapInterpolate5:Qp,\u0275\u0275classMapInterpolate6:Xp,\u0275\u0275classMapInterpolate7:Zp,\u0275\u0275classMapInterpolate8:qp,\u0275\u0275classMapInterpolateV:Jp,\u0275\u0275styleMap:Ps,\u0275\u0275styleMapInterpolate1:e0,\u0275\u0275styleMapInterpolate2:t0,\u0275\u0275styleMapInterpolate3:n0,\u0275\u0275styleMapInterpolate4:r0,\u0275\u0275styleMapInterpolate5:s0,\u0275\u0275styleMapInterpolate6:o0,\u0275\u0275styleMapInterpolate7:a0,\u0275\u0275styleMapInterpolate8:l0,\u0275\u0275styleMapInterpolateV:u0,\u0275\u0275styleProp:Dc,\u0275\u0275stylePropInterpolate1:Uc,\u0275\u0275stylePropInterpolate2:Bc,\u0275\u0275stylePropInterpolate3:Vc,\u0275\u0275stylePropInterpolate4:$c,\u0275\u0275stylePropInterpolate5:Hc,\u0275\u0275stylePropInterpolate6:jc,\u0275\u0275stylePropInterpolate7:Wc,\u0275\u0275stylePropInterpolate8:zc,\u0275\u0275stylePropInterpolateV:Kc,\u0275\u0275classProp:Tc,\u0275\u0275advance:nf,\u0275\u0275template:sp,\u0275\u0275text:Wp,\u0275\u0275textInterpolate:Ic,\u0275\u0275textInterpolate1:_l,\u0275\u0275textInterpolate2:Ac,\u0275\u0275textInterpolate3:Oc,\u0275\u0275textInterpolate4:Rc,\u0275\u0275textInterpolate5:Lc,\u0275\u0275textInterpolate6:kc,\u0275\u0275textInterpolate7:Pc,\u0275\u0275textInterpolate8:Fc,\u0275\u0275textInterpolateV:Nc,\u0275\u0275i18n:k0,\u0275\u0275i18nAttributes:P0,\u0275\u0275i18nExp:ed,\u0275\u0275i18nStart:qc,\u0275\u0275i18nEnd:Jc,\u0275\u0275i18nApply:F0,\u0275\u0275i18nPostprocess:N0,\u0275\u0275resolveWindow:xh,\u0275\u0275resolveDocument:Ih,\u0275\u0275resolveBody:Ah,\u0275\u0275setComponentScope:ze,\u0275\u0275setNgModuleScope:lt,\u0275\u0275sanitizeHtml:fh,\u0275\u0275sanitizeStyle:ph,\u0275\u0275sanitizeResourceUrl:eu,\u0275\u0275sanitizeScript:mh,\u0275\u0275sanitizeUrl:Jl,\u0275\u0275sanitizeUrlOrResourceUrl:vh,\u0275\u0275trustConstantHtml:gh,\u0275\u0275trustConstantResourceUrl:_h,forwardRef:i,resolveForwardRef:c}))();let aa=null;function N1(){aa=null}const Ha=[];let fd=!1;function km(){if(!fd){fd=!0;try{for(let e=Ha.length-1;e>=0;e--){const{moduleType:t,ngModule:a}=Ha[e];a.declarations&&a.declarations.every(Pm)&&(Ha.splice(e,1),V1(t,a))}}finally{fd=!1}}}function Pm(e){return Array.isArray(e)?e.every(Pm):!!c(e)}function Fm(e,t={}){Nm(e,t),function(e,t){Ha.push({moduleType:e,ngModule:t})}(e,t)}function Nm(e,t,a=!1){const _=os(t.declarations||Qe);let C=null;Object.defineProperty(e,Ne,{configurable:!0,get:()=>(null===C&&(C=yr().compileNgModule(is,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:os(t.bootstrap||Qe).map(c),declarations:_.map(c),imports:os(t.imports||Qe).map(c).map($m),exports:os(t.exports||Qe).map(c).map($m),schemas:t.schemas?os(t.schemas):null,id:t.id||null}),C.schemas||(C.schemas=[])),C)});let R=null;Object.defineProperty(e,Se,{get:()=>{if(null===R){const se=yr();R=se.compileFactory(is,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:qa(e),target:se.FactoryTarget.NgModule,typeArgumentCount:0})}return R},configurable:!1});let W=null;Object.defineProperty(e,Tt,{get:()=>{if(null===W){const se={name:e.name,type:e,providers:t.providers||Qe,imports:[(t.imports||Qe).map(c),(t.exports||Qe).map(c)]};W=yr().compileInjector(is,`ng:///${e.name}/\u0275inj.js`,se)}return W},configurable:!1})}let Al=new WeakMap,md=new WeakMap;function B1(){Al=new WeakMap,md=new WeakMap,Ha.length=0}function V1(e,t){const a=os(t.declarations||Qe),_=ja(e);a.forEach(C=>{C.hasOwnProperty(mt)?gd(Ot(C),_):!C.hasOwnProperty(Vt)&&!C.hasOwnProperty(qt)&&(C.ngSelectorScope=e)})}function gd(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(a=>a.hasOwnProperty(mt)?Ot(a):un(a)).filter(a=>!!a),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(a=>on(a)),e.schemas=t.schemas,e.tView=null}function ja(e){if(!_d(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=On(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const a={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return zs(t.imports).forEach(_=>{const C=_;if(!_d(C))throw new Error(`Importing ${C.name} which does not have a \u0275mod property`);const R=ja(C);R.exported.directives.forEach(W=>a.compilation.directives.add(W)),R.exported.pipes.forEach(W=>a.compilation.pipes.add(W))}),zs(t.declarations).forEach(_=>{on(_)?a.compilation.pipes.add(_):a.compilation.directives.add(_)}),zs(t.exports).forEach(_=>{const C=_;if(_d(C)){const R=ja(C);R.exported.directives.forEach(W=>{a.compilation.directives.add(W),a.exported.directives.add(W)}),R.exported.pipes.forEach(W=>{a.compilation.pipes.add(W),a.exported.pipes.add(W)})}else on(C)?a.exported.pipes.add(C):a.exported.directives.add(C)}),t.transitiveCompileScopes=a,a}function $m(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function _d(e){return!!On(e)}let vd=0;function Hm(e,t){let a=null;(function(e,t){Jd(t)&&(Lo.set(e,t),ga.add(e))})(e,t),Wm(e,t),Object.defineProperty(e,mt,{get:()=>{if(null===a){const _=yr();if(Jd(t)){const De=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&De.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&De.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),De.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(De.join("\n"))}const C=aa;let R=t.preserveWhitespaces;void 0===R&&(R=null!==C&&void 0!==C.preserveWhitespaces&&C.preserveWhitespaces);let W=t.encapsulation;void 0===W&&(W=null!==C&&void 0!==C.defaultEncapsulation?C.defaultEncapsulation:ut.Emulated);const se=t.templateUrl||`ng:///${e.name}/template.html`,ge=Object.assign(Object.assign({},zm(e,t)),{typeSourceSpan:_.createParseSourceSpan("Component",e.name,se),template:t.template||"",preserveWhitespaces:R,styles:t.styles||Qe,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:W,interpolation:t.interpolation,viewProviders:t.viewProviders||null});vd++;try{ge.usesInheritance&&Km(e),a=_.compileComponent(is,se,ge)}finally{vd--}if(0===vd&&km(),function(e){return void 0!==e.ngSelectorScope}(e)){const De=ja(e.ngSelectorScope);gd(a,De)}}return a},configurable:!1})}function yd(e,t){let a=null;Wm(e,t||{}),Object.defineProperty(e,Vt,{get:()=>{if(null===a){const _=jm(e,t||{});a=yr().compileDirective(is,_.sourceMapUrl,_.metadata)}return a},configurable:!1})}function jm(e,t){const a=e&&e.name,_=`ng:///${a}/\u0275dir.js`,C=yr(),R=zm(e,t);return R.typeSourceSpan=C.createParseSourceSpan("Directive",a,_),R.usesInheritance&&Km(e),{metadata:R,sourceMapUrl:_}}function Wm(e,t){let a=null;Object.defineProperty(e,Se,{get:()=>{if(null===a){const _=jm(e,t),C=yr();a=C.compileFactory(is,`ng:///${e.name}/\u0275fac.js`,{name:_.metadata.name,type:_.metadata.type,typeArgumentCount:0,deps:qa(e),target:C.FactoryTarget.Directive})}return a},configurable:!1})}function j1(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function zm(e,t){const a=Kl(),_=a.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Lt,propMetadata:_,inputs:t.inputs||Qe,outputs:t.outputs||Qe,queries:Gm(e,_,Ym),lifecycle:{usesOnChanges:a.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!j1(e),exportAs:K1(t.exportAs),providers:t.providers||null,viewQueries:Gm(e,_,Qm)}}function Km(e){const t=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==t;)!un(a)&&!Ot(a)&&Y1(a)&&yd(a,null),a=Object.getPrototypeOf(a)}function W1(e){return"string"==typeof e?Zm(e):c(e)}function z1(e,t){return{propertyName:e,predicate:W1(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Gm(e,t,a){const _=[];for(const C in t)if(t.hasOwnProperty(C)){const R=t[C];R.forEach(W=>{if(a(W)){if(!W.selector)throw new Error(`Can't construct a query for the property "${C}" of "${O(e)}" since the query selector wasn't defined.`);if(R.some(Xm))throw new Error("Cannot combine @Input decorators with query decorators");_.push(z1(C,W))}})}return _}function K1(e){return void 0===e?null:Zm(e)}function Ym(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Qm(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Xm(e){return"Input"===e.ngMetadataName}function Zm(e){return e.split(",").map(t=>t.trim())}const G1=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Y1(e){const t=Kl();if(G1.some(_=>t.hasLifecycleHook(e,_)))return!0;const a=t.propMetadata(e);for(const _ in a){const C=a[_];for(let R=0;R{if(null===_){const C=Jm(e,t),R=yr();_=R.compileFactory(is,`ng:///${C.name}/\u0275fac.js`,{name:C.name,type:C.type,typeArgumentCount:0,deps:qa(e),target:R.FactoryTarget.Pipe})}return _},configurable:!1}),Object.defineProperty(e,qt,{get:()=>{if(null===a){const C=Jm(e,t);a=yr().compilePipe(is,`ng:///${C.name}/\u0275pipe.js`,C)}return a},configurable:!1})}function Jm(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const eg=Ts("Directive",(e={})=>e,void 0,void 0,(e,t)=>yd(e,t)),Q1=Ts("Component",(e={})=>Object.assign({changeDetection:Be.Default},e),eg,void 0,(e,t)=>Hm(e,t)),X1=Ts("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>qm(e,t)),Z1=js("Input",e=>({bindingPropertyName:e})),q1=js("Output",e=>({bindingPropertyName:e})),J1=js("HostBinding",e=>({hostPropertyName:e})),eC=js("HostListener",(e,t)=>({eventName:e,args:t})),tC=Ts("NgModule",e=>e,void 0,void 0,(e,t)=>Fm(e,t));function Ol(...e){}const bd=new lr("Application Initializer");let la=(()=>{class e{constructor(a){this.appInits=a,this.resolve=Ol,this.reject=Ol,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const a=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{R.subscribe({complete:se,error:ge})});a.push(W)}}Promise.all(a).then(()=>{_()}).catch(C=>{this.reject(C)}),0===a.length&&_(),this.initialized=!0}}return e.\u0275fac=function(a){return new(a||e)(Cn(bd,8))},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();const tg=new lr("AppId"),ng={provide:tg,useFactory:function(){return`${Cd()}${Cd()}${Cd()}`},deps:[]};function Cd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ig=new lr("Platform Initializer"),rg=new lr("Platform ID"),sg=new lr("appBootstrapListener"),iC=new lr("Application Packages Root URL");let og=(()=>{class e{log(a){console.log(a)}warn(a){console.warn(a)}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();const Rl=new lr("LocaleId"),ag=new lr("DefaultCurrencyCode"),rC=new lr("Translations"),sC=new lr("TranslationsFormat");var Zs=(()=>((Zs=Zs||{})[Zs.Error=0]="Error",Zs[Zs.Warning=1]="Warning",Zs[Zs.Ignore=2]="Ignore",Zs))();class lg{constructor(t,a){this.ngModuleFactory=t,this.componentFactories=a}}let Ed=(()=>{class e{compileModuleSync(a){return new Dl(a)}compileModuleAsync(a){return Promise.resolve(this.compileModuleSync(a))}compileModuleAndAllComponentsSync(a){const _=this.compileModuleSync(a),R=zs(On(a).declarations).reduce((W,se)=>{const ge=Ot(se);return ge&&W.push(new Sl(ge)),W},[]);return new lg(_,R)}compileModuleAndAllComponentsAsync(a){return Promise.resolve(this.compileModuleAndAllComponentsSync(a))}clearCache(){}clearCacheFor(a){}getModuleId(a){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();const ug=new lr("compilerOptions");class oC{}const aC=(()=>Promise.resolve(0))();function wd(e){"undefined"==typeof Zone?aC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class _s{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:a=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xs(!1),this.onMicrotaskEmpty=new Xs(!1),this.onStable=new Xs(!1),this.onError=new Xs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const C=this;C._nesting=0,C._outer=C._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&a,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function(){let e=Kt.requestAnimationFrame,t=Kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const a=e[Zone.__symbol__("OriginalDelegate")];a&&(e=a);const _=t[Zone.__symbol__("OriginalDelegate")];_&&(t=_)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Kt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Sd(e),e.isCheckStableRunning=!0,Md(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Sd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(a,_,C,R,W,se)=>{try{return cg(e),a.invokeTask(C,R,W,se)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===R.type||e.shouldCoalesceRunChangeDetection)&&t(),dg(e)}},onInvoke:(a,_,C,R,W,se,ge)=>{try{return cg(e),a.invoke(C,R,W,se,ge)}finally{e.shouldCoalesceRunChangeDetection&&t(),dg(e)}},onHasTask:(a,_,C,R)=>{a.hasTask(C,R),_===C&&("microTask"==R.change?(e._hasPendingMicrotasks=R.microTask,Sd(e),Md(e)):"macroTask"==R.change&&(e.hasPendingMacrotasks=R.macroTask))},onHandleError:(a,_,C,R)=>(a.handleError(C,R),e.runOutsideAngular(()=>e.onError.emit(R)),!1)})}(C)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_s.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_s.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,a,_){return this._inner.run(t,a,_)}runTask(t,a,_,C){const R=this._inner,W=R.scheduleEventTask("NgZoneEvent: "+C,t,uC,Ol,Ol);try{return R.runTask(W,a,_)}finally{R.cancelTask(W)}}runGuarded(t,a,_){return this._inner.runGuarded(t,a,_)}runOutsideAngular(t){return this._outer.run(t)}}const uC={};function Md(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 Sd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dg(e){e._nesting--,Md(e)}class hg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xs,this.onMicrotaskEmpty=new Xs,this.onStable=new Xs,this.onError=new Xs}run(t,a,_){return t.apply(a,_)}runGuarded(t,a,_){return t.apply(a,_)}runOutsideAngular(t){return t()}runTask(t,a,_,C){return t.apply(a,_)}}let fg=(()=>{class e{constructor(a){this._ngZone=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),a.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:()=>{_s.assertNotInAngularZone(),wd(()=>{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())wd(()=>{for(;0!==this._callbacks.length;){let a=this._callbacks.pop();clearTimeout(a.timeoutId),a.doneCb(this._didWork)}this._didWork=!1});else{let a=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(a)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(a=>({source:a.source,creationLocation:a.creationLocation,data:a.data})):[]}addCallback(a,_,C){let R=-1;_&&_>0&&(R=setTimeout(()=>{this._callbacks=this._callbacks.filter(W=>W.timeoutId!==R),a(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:a,timeoutId:R,updateCb:C})}whenStable(a,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(a,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(a,_,C){return[]}}return e.\u0275fac=function(a){return new(a||e)(Cn(_s))},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})(),Dd=(()=>{class e{constructor(){this._applications=new Map,Td.addToWindow(this)}registerApplication(a,_){this._applications.set(a,_)}unregisterApplication(a){this._applications.delete(a)}unregisterAllApplications(){this._applications.clear()}getTestability(a){return this._applications.get(a)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(a,_=!0){return Td.findTestabilityInTree(this,a,_)}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,a,_){return null}}function fC(e){Td=e}let Us,Td=new hC;function pg(e,t,a){const _=new Dl(a);return Promise.resolve(_)}function mg(e){return e.isBoundToModule}const xd=new lr("AllowMultipleToken");class mC{constructor(t,a){this.name=t,this.token=a}}function gg(e){if(Us&&!Us.destroyed&&!Us.injector.get(xd,!1))throw new y("400","");Us=e.get(Ad);const t=e.get(ig,null);return t&&t.forEach(a=>a()),Us}function _g(e,t,a=[]){const _=`Platform: ${t}`,C=new lr(_);return(R=[])=>{let W=Id();if(!W||W.injector.get(xd,!1))if(e)e(a.concat(R).concat({provide:C,useValue:!0}));else{const se=a.concat(R).concat({provide:C,useValue:!0},{provide:Uu,useValue:"platform"});gg(gs.create({providers:se,name:_}))}return vg()}}function vg(e){const t=Id();if(!t)throw new y("401","");return t}function gC(){Us&&!Us.destroyed&&Us.destroy()}function Id(){return Us&&!Us.destroyed?Us:null}let Ad=(()=>{class e{constructor(a){this._injector=a,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(a,_){const se=function(e,t){let a;return a="noop"===e?new hg:("zone.js"===e?void 0:e)||new _s({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),a}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),ge=[{provide:_s,useValue:se}];return se.run(()=>{const De=gs.create({providers:ge,parent:this.injector,name:a.moduleType.name}),ke=a.create(De),qe=ke.injector.get(Ca,null);if(!qe)throw new y("402","");return se.runOutsideAngular(()=>{const Ct=se.onError.subscribe({next:Pt=>{qe.handleError(Pt)}});ke.onDestroy(()=>{Od(this._modules,ke),Ct.unsubscribe()})}),function(e,t,a){try{const _=a();return fc(_)?_.catch(C=>{throw t.runOutsideAngular(()=>e.handleError(C)),C}):_}catch(_){throw t.runOutsideAngular(()=>e.handleError(_)),_}}(qe,se,()=>{const Ct=ke.injector.get(la);return Ct.runInitializers(),Ct.donePromise.then(()=>(f0(ke.injector.get(Rl,Ra)||Ra),this._moduleDoBootstrap(ke),ke))})})}bootstrapModule(a,_=[]){const C=yg({},_);return pg(0,0,a).then(R=>this.bootstrapModuleFactory(R,C))}_moduleDoBootstrap(a){const _=a.injector.get(Wa);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!a.instance.ngDoBootstrap)throw new y("403","");a.instance.ngDoBootstrap(_)}this._modules.push(a)}onDestroy(a){this._destroyListeners.push(a)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new y("404","");this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(a){return new(a||e)(Cn(gs))},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();function yg(e,t){return Array.isArray(t)?t.reduce(yg,e):Object.assign(Object.assign({},e),t)}let Wa=(()=>{class e{constructor(a,_,C,R,W){this._zone=a,this._injector=_,this._exceptionHandler=C,this._componentFactoryResolver=R,this._initStatus=W,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 se=new v.y(De=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{De.next(this._stable),De.complete()})}),ge=new v.y(De=>{let ke;this._zone.runOutsideAngular(()=>{ke=this._zone.onStable.subscribe(()=>{_s.assertNotInAngularZone(),wd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,De.next(!0))})})});const qe=this._zone.onUnstable.subscribe(()=>{_s.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{De.next(!1)}))});return()=>{ke.unsubscribe(),qe.unsubscribe()}});this.isStable=(0,m.T)(se,ge.pipe((0,o.B)()))}bootstrap(a,_){if(!this._initStatus.done)throw new y("405","");let C;C=a instanceof El?a:this._componentFactoryResolver.resolveComponentFactory(a),this.componentTypes.push(C.componentType);const R=mg(C)?void 0:this._injector.get(sa),se=C.create(gs.NULL,[],_||C.selector,R),ge=se.location.nativeElement,De=se.injector.get(fg,null),ke=De&&se.injector.get(Dd);return De&&ke&&ke.registerApplication(ge,De),se.onDestroy(()=>{this.detachView(se.hostView),Od(this.components,se),ke&&ke.unregisterApplication(ge)}),this._loadComponent(se),se}tick(){if(this._runningTick)throw new y("101","");try{this._runningTick=!0;for(let a of this._views)a.detectChanges()}catch(a){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(a))}finally{this._runningTick=!1}}attachView(a){const _=a;this._views.push(_),_.attachToAppRef(this)}detachView(a){const _=a;Od(this._views,_),_.detachFromAppRef()}_loadComponent(a){this.attachView(a.hostView),this.tick(),this.components.push(a),this._injector.get(sg,[]).concat(this._bootstrapListeners).forEach(C=>C(a))}ngOnDestroy(){this._views.slice().forEach(a=>a.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(a){return new(a||e)(Cn(_s),Cn(gs),Cn(Ca),Cn(Na),Cn(la))},e.\u0275prov=Ue({token:e,factory:e.\u0275fac}),e})();function Od(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}let Cg=!0,Eg=!1;function bC(){return Eg=!0,Cg}function CC(){if(Eg)throw new Error("Cannot enable prod mode after platform setup.");Cg=!1}function EC(e){const t=J0(e);if(!t)throw wg(e);return new Dl(t)}function wC(e){const t=J0(e);if(!t)throw wg(e);return t}function wg(e){return new Error(`No module with ID ${e} loaded`)}let Mg=(()=>{class e{}return e.__NG_ELEMENT_ID__=Sg,e})();function Sg(e){return function(e,t,a){if(Ui(e)&&!a){const _=In(e.index,t);return new ra(_,_)}return 47&e.type?new ra(t[16],t):null}(pe(),we(),16==(16&e))}class Dg extends Mg{}class SC extends Dg{}class DC{constructor(t,a){this.name=t,this.callback=a}}function TC(e){return e.map(t=>t.nativeElement)}class Rd{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new za(t):null}get injector(){return Gf(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Hu(t)||zf(t))}get context(){return Hu(this.nativeNode)||Wf(this.nativeNode)}get listeners(){return Qf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(e){const t=Qr(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const a=e[1].data[t];if(a&&a.localNames){const _={};let C=a.index+1;for(let R=0;R1){let ke=ge[1];for(let qe=1;qet[R]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,a=[];for(let _=0;_{if(R.name===t){const W=R.callback;W.call(_,a),C.push(W)}}),"function"==typeof _.eventListeners&&_.eventListeners(t).forEach(R=>{if(-1!==R.toString().indexOf("__ngUnwrap__")){const W=R("__ngUnwrap__");return-1===C.indexOf(W)&&W.call(_,a)}})}}function IC(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Tg(e,t,a,_){const C=Qr(e.nativeNode);null!==C?To(C.lView[1].data[C.nodeIndex],C.lView,t,a,_,e.nativeNode):kd(e.nativeNode,t,a,_)}function To(e,t,a,_,C,R){const W=function(e,t){const a=null===e?-1:e.index;return-1!==a?be(t[a]):null}(e,t);if(11&e.type){if(Ld(W,a,_,C,R),Ui(e)){const ge=In(e.index,t);ge&&ge[1].firstChild&&To(ge[1].firstChild,ge,a,_,C,R)}else e.child&&To(e.child,t,a,_,C,R),W&&kd(W,a,_,C);const se=t[e.index];pi(se)&&xg(se,a,_,C,R)}else if(4&e.type){const se=t[e.index];Ld(se[7],a,_,C,R),xg(se,a,_,C,R)}else if(16&e.type){const se=t[16],De=se[6].projection[e.projection];if(Array.isArray(De))for(let ke of De)Ld(ke,a,_,C,R);else if(De){const ke=se[3];To(ke[1].data[De.index],ke,a,_,C,R)}}else e.child&&To(e.child,t,a,_,C,R);if(R!==W){const se=4&e.flags?e.projectionNext:e.next;se&&To(se,t,a,_,C,R)}}function xg(e,t,a,_,C){for(let R=10;Rt;class Ag{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||PC}forEachItem(t){let a;for(a=this._itHead;null!==a;a=a._next)t(a)}forEachOperation(t){let a=this._itHead,_=this._removalsHead,C=0,R=null;for(;a||_;){const W=!_||a&&a.currentIndex{W=this._trackByFn(C,se),null!==a&&Object.is(a.trackById,W)?(_&&(a=this._verifyReinsertion(a,se,W,C)),Object.is(a.item,se)||this._addIdentityChange(a,se)):(a=this._mismatch(a,se,W,C),_=!0),a=a._next,C++}),this.length=C;return this._truncate(a),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,a,_,C){let R;return null===t?R=this._itTail:(R=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(t.item,a)||this._addIdentityChange(t,a),this._reinsertAfter(t,R,C)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(t.item,a)||this._addIdentityChange(t,a),this._moveAfter(t,R,C)):t=this._addAfter(new FC(a,_),R,C),t}_verifyReinsertion(t,a,_,C){let R=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==R?t=this._reinsertAfter(R,t._prev,C):t.currentIndex!=C&&(t.currentIndex=C,this._addToMoves(t,C)),t}_truncate(t){for(;null!==t;){const a=t._next;this._addToRemovals(this._unlink(t)),t=a}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,a,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const C=t._prevRemoved,R=t._nextRemoved;return null===C?this._removalsHead=R:C._nextRemoved=R,null===R?this._removalsTail=C:R._prevRemoved=C,this._insertAfter(t,a,_),this._addToMoves(t,_),t}_moveAfter(t,a,_){return this._unlink(t),this._insertAfter(t,a,_),this._addToMoves(t,_),t}_addAfter(t,a,_){return this._insertAfter(t,a,_),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,a,_){const C=null===a?this._itHead:a._next;return t._next=C,t._prev=a,null===C?this._itTail=t:C._prev=t,null===a?this._itHead=t:a._next=t,null===this._linkedRecords&&(this._linkedRecords=new Og),this._linkedRecords.put(t),t.currentIndex=_,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const a=t._prev,_=t._next;return null===a?this._itHead=_:a._next=_,null===_?this._itTail=a:_._prev=a,t}_addToMoves(t,a){return t.previousIndex===a||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Og),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,a){return t.item=a,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class FC{constructor(t,a){this.item=t,this.trackById=a,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 NC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,a){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===a||a<=_.currentIndex)&&Object.is(_.trackById,t))return _;return null}remove(t){const a=t._prevDup,_=t._nextDup;return null===a?this._head=_:a._nextDup=_,null===_?this._tail=a:_._prevDup=a,null===this._head}}class Og{constructor(){this.map=new Map}put(t){const a=t.trackById;let _=this.map.get(a);_||(_=new NC,this.map.set(a,_)),_.add(t)}get(t,a){const C=this.map.get(t);return C?C.get(t,a):null}remove(t){const a=t.trackById;return this.map.get(a).remove(t)&&this.map.delete(a),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Rg(e,t,a){const _=e.previousIndex;if(null===_)return _;let C=0;return a&&_{if(a&&a.key===C)this._maybeAddToChanges(a,_),this._appendAfter=a,a=a._next;else{const R=this._getOrCreateRecordForKey(C,_);a=this._insertBeforeOrAppend(a,R)}}),a){a._prev&&(a._prev._next=null),this._removalsHead=a;for(let _=a;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,a){if(t){const _=t._prev;return a._next=t,a._prev=_,t._prev=a,_&&(_._next=a),t===this._mapHead&&(this._mapHead=a),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=a,a._prev=this._appendAfter):this._mapHead=a,this._appendAfter=a,null}_getOrCreateRecordForKey(t,a){if(this._records.has(t)){const C=this._records.get(t);this._maybeAddToChanges(C,a);const R=C._prev,W=C._next;return R&&(R._next=W),W&&(W._prev=R),C._next=null,C._prev=null,C}const _=new BC(t);return this._records.set(t,_),_.currentValue=a,this._addToAdditions(_),_}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,a){Object.is(a,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=a,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,a){t instanceof Map?t.forEach(a):Object.keys(t).forEach(_=>a(t[_],_))}}class BC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kg(){return new kl([new Ig])}let kl=(()=>{class e{constructor(a){this.factories=a}static create(a,_){if(null!=_){const C=_.factories.slice();a=a.concat(C)}return new e(a)}static extend(a){return{provide:e,useFactory:_=>e.create(a,_||kg()),deps:[[e,new Eo,new Is]]}}find(a){const _=this.factories.find(C=>C.supports(a));if(null!=_)return _;throw new Error(`Cannot find a differ supporting object '${a}' of type '${function(e){return e.name||typeof e}(a)}'`)}}return e.\u0275prov=Ue({token:e,providedIn:"root",factory:kg}),e})();function Pg(){return new Pl([new Lg])}let Pl=(()=>{class e{constructor(a){this.factories=a}static create(a,_){if(_){const C=_.factories.slice();a=a.concat(C)}return new e(a)}static extend(a){return{provide:e,useFactory:_=>e.create(a,_||Pg()),deps:[[e,new Eo,new Is]]}}find(a){const _=this.factories.find(C=>C.supports(a));if(_)return _;throw new Error(`Cannot find a differ supporting object '${a}'`)}}return e.\u0275prov=Ue({token:e,providedIn:"root",factory:Pg}),e})();const $C=[new Lg],Fg=new kl([new Ig]),Ng=new Pl($C),jC=_g(null,"core",[{provide:rg,useValue:"unknown"},{provide:Ad,deps:[gs]},{provide:Dd,deps:[]},{provide:og,deps:[]}]),YC=[{provide:Wa,useClass:Wa,deps:[_s,gs,Ca,Na,la]},{provide:m1,deps:[_s],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(a){t.push(a)}}},{provide:la,useClass:la,deps:[[new Is,bd]]},{provide:Ed,useClass:Ed,deps:[]},ng,{provide:kl,useFactory:function(){return Fg},deps:[]},{provide:Pl,useFactory:function(){return Ng},deps:[]},{provide:Rl,useFactory:function(e){return e||"undefined"!=typeof $localize&&$localize.locale||Ra},deps:[[new fo(Rl),new Is,new Eo]]},{provide:ag,useValue:"USD"}];let XC=(()=>{class e{constructor(a){}}return e.\u0275fac=function(a){return new(a||e)(Cn(Wa))},e.\u0275mod=An({type:e}),e.\u0275inj=at({providers:YC}),e})();const ZC=!0;function qC(e){return yr().compileDirectiveDeclaration(is,`ng:///${e.type.name}/\u0275fac.js`,e)}function JC(e){var t,a;Q0(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(a=e.propDecorators)&&void 0!==a?a:null)}function eE(e){return yr().compileComponentDeclaration(is,`ng:///${e.type.name}/\u0275cmp.js`,e)}function tE(e){return yr(function(e){switch(e){case vr.Directive:return"directive";case vr.Component:return"component";case vr.Injectable:return"injectable";case vr.Pipe:return"pipe";case vr.NgModule:;}}(e.target)).compileFactoryDeclaration(is,`ng:///${e.type.name}/\u0275fac.js`,e)}function iE(e){return yr().compileInjectableDeclaration(is,`ng:///${e.type.name}/\u0275prov.js`,e)}function rE(e){return yr().compileInjectorDeclaration(is,`ng:///${e.type.name}/\u0275inj.js`,e)}function sE(e){return yr().compileNgModuleDeclaration(is,`ng:///${e.type.name}/\u0275mod.js`,e)}function oE(e){return yr().compilePipeDeclaration(is,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{AbstractControl:()=>Ni,AbstractControlDirective:()=>yt,AbstractFormGroupDirective:()=>ue,COMPOSITION_BUFFER_MODE:()=>l,CheckboxControlValueAccessor:()=>s,CheckboxRequiredValidator:()=>Hr,ControlContainer:()=>_t,DefaultValueAccessor:()=>g,EmailValidator:()=>Wi,FormArray:()=>Vi,FormArrayName:()=>oi,FormBuilder:()=>Er,FormControl:()=>Ti,FormControlDirective:()=>Gi,FormControlName:()=>mi,FormGroup:()=>qn,FormGroupDirective:()=>tr,FormGroupName:()=>Rn,FormsModule:()=>us,MaxLengthValidator:()=>Lr,MaxValidator:()=>hr,MinLengthValidator:()=>Rr,MinValidator:()=>ir,NG_ASYNC_VALIDATORS:()=>D,NG_VALIDATORS:()=>T,NG_VALUE_ACCESSOR:()=>h,NgControl:()=>ot,NgControlStatus:()=>Et,NgControlStatusGroup:()=>Ee,NgForm:()=>Ze,NgModel:()=>Zt,NgModelGroup:()=>Wt,NgSelectOption:()=>Sn,NumberValueAccessor:()=>zn,PatternValidator:()=>Fr,RadioControlValueAccessor:()=>kn,RangeValueAccessor:()=>Zi,ReactiveFormsModule:()=>si,RequiredValidator:()=>mr,SelectControlValueAccessor:()=>yn,SelectMultipleControlValueAccessor:()=>Vr,VERSION:()=>be,Validators:()=>w,\u0275InternalFormsSharedModule:()=>Tr,\u0275NgNoValidate:()=>an,\u0275NgSelectMultipleOption:()=>nr});var n=p(5e3),f=p(9808),v=p(5254),m=p(567),o=p(4850);let d=(()=>{class X{constructor(V,ve){this._renderer=V,this._elementRef=ve,this.onChange=nt=>{},this.onTouched=()=>{}}setProperty(V,ve){this._renderer.setProperty(this._elementRef.nativeElement,V,ve)}registerOnTouched(V){this.onTouched=V}registerOnChange(V){this.onChange=V}setDisabledState(V){this.setProperty("disabled",V)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X}),X})(),u=(()=>{class X extends d{}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,features:[n.\u0275\u0275InheritDefinitionFeature]}),X})();const h=new n.InjectionToken("NgValueAccessor"),r={provide:h,useExisting:(0,n.forwardRef)(()=>s),multi:!0};let s=(()=>{class X extends u{writeValue(V){this.setProperty("checked",V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.checked)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([r]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const i={provide:h,useExisting:(0,n.forwardRef)(()=>g),multi:!0},l=new n.InjectionToken("CompositionEventMode");let g=(()=>{class X extends d{constructor(V,ve,nt){super(V,ve),this._compositionMode=nt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const X=(0,f.\u0275getDOM)()?(0,f.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(X.toLowerCase())}())}writeValue(V){this.setProperty("value",null==V?"":V)}_handleInput(V){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(V)}_compositionStart(){this._composing=!0}_compositionEnd(V){this._composing=!1,this._compositionMode&&this.onChange(V)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(l,8))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,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(V,ve){1&V&&n.\u0275\u0275listener("input",function(Nt){return ve._handleInput(Nt.target.value)})("blur",function(){return ve.onTouched()})("compositionstart",function(){return ve._compositionStart()})("compositionend",function(Nt){return ve._compositionEnd(Nt.target.value)})},features:[n.\u0275\u0275ProvidersFeature([i]),n.\u0275\u0275InheritDefinitionFeature]}),X})();function y(X){return null==X||0===X.length}function E(X){return null!=X&&"number"==typeof X.length}const T=new n.InjectionToken("NgValidators"),D=new n.InjectionToken("NgAsyncValidators"),O=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class w{static min(k){return A(k)}static max(k){return S(k)}static required(k){return M(k)}static requiredTrue(k){return I(k)}static email(k){return b(k)}static minLength(k){return L(k)}static maxLength(k){return F(k)}static pattern(k){return ne(k)}static nullValidator(k){return null}static compose(k){return le(k)}static composeAsync(k){return Le(k)}}function A(X){return k=>{if(y(k.value)||y(X))return null;const V=parseFloat(k.value);return!isNaN(V)&&V{if(y(k.value)||y(X))return null;const V=parseFloat(k.value);return!isNaN(V)&&V>X?{max:{max:X,actual:k.value}}:null}}function M(X){return y(X.value)?{required:!0}:null}function I(X){return!0===X.value?null:{required:!0}}function b(X){return y(X.value)||O.test(X.value)?null:{email:!0}}function L(X){return k=>y(k.value)||!E(k.value)?null:k.value.lengthE(k.value)&&k.value.length>X?{maxlength:{requiredLength:X,actualLength:k.value.length}}:null}function ne(X){if(!X)return Y;let k,V;return"string"==typeof X?(V="","^"!==X.charAt(0)&&(V+="^"),V+=X,"$"!==X.charAt(X.length-1)&&(V+="$"),k=new RegExp(V)):(V=X.toString(),k=X),ve=>{if(y(ve.value))return null;const nt=ve.value;return k.test(nt)?null:{pattern:{requiredPattern:V,actualValue:nt}}}}function Y(X){return null}function Q(X){return null!=X}function te(X){const k=(0,n.\u0275isPromise)(X)?(0,v.D)(X):X;return(0,n.\u0275isObservable)(k),k}function $(X){let k={};return X.forEach(V=>{k=null!=V?Object.assign(Object.assign({},k),V):k}),0===Object.keys(k).length?null:k}function J(X,k){return k.map(V=>V(X))}function ae(X){return X.map(k=>function(X){return!X.validate}(k)?k:V=>k.validate(V))}function le(X){if(!X)return null;const k=X.filter(Q);return 0==k.length?null:function(V){return $(J(V,k))}}function Oe(X){return null!=X?le(ae(X)):null}function Le(X){if(!X)return null;const k=X.filter(Q);return 0==k.length?null:function(V){const ve=J(V,k).map(te);return(0,m.D)(ve).pipe((0,o.U)($))}}function Ye(X){return null!=X?Le(ae(X)):null}function Je(X,k){return null===X?[k]:Array.isArray(X)?[...X,k]:[X,k]}function gt(X){return X._rawValidators}function Ue(X){return X._rawAsyncValidators}function tt(X){return X?Array.isArray(X)?X:[X]:[]}function at(X,k){return Array.isArray(X)?X.includes(k):X===k}function ft(X,k){const V=tt(k);return tt(X).forEach(nt=>{at(V,nt)||V.push(nt)}),V}function vt(X,k){return tt(k).filter(V=>!at(X,V))}class yt{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(k){this._rawValidators=k||[],this._composedValidatorFn=Oe(this._rawValidators)}_setAsyncValidators(k){this._rawAsyncValidators=k||[],this._composedAsyncValidatorFn=Ye(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(k){this._onDestroyCallbacks.push(k)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(k=>k()),this._onDestroyCallbacks=[]}reset(k){this.control&&this.control.reset(k)}hasError(k,V){return!!this.control&&this.control.hasError(k,V)}getError(k,V){return this.control?this.control.getError(k,V):null}}class ot extends yt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _t extends yt{get formDirective(){return null}get path(){return null}}class At{constructor(k){this._cd=k}is(k){var V,ve,nt;return"submitted"===k?!!(null===(V=this._cd)||void 0===V?void 0:V.submitted):!!(null===(nt=null===(ve=this._cd)||void 0===ve?void 0:ve.control)||void 0===nt?void 0:nt[k])}}let Et=(()=>{class X extends At{constructor(V){super(V)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(ot,2))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(V,ve){2&V&&n.\u0275\u0275classProp("ng-untouched",ve.is("untouched"))("ng-touched",ve.is("touched"))("ng-pristine",ve.is("pristine"))("ng-dirty",ve.is("dirty"))("ng-valid",ve.is("valid"))("ng-invalid",ve.is("invalid"))("ng-pending",ve.is("pending"))},features:[n.\u0275\u0275InheritDefinitionFeature]}),X})(),Ee=(()=>{class X extends At{constructor(V){super(V)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(V,ve){2&V&&n.\u0275\u0275classProp("ng-untouched",ve.is("untouched"))("ng-touched",ve.is("touched"))("ng-pristine",ve.is("pristine"))("ng-dirty",ve.is("dirty"))("ng-valid",ve.is("valid"))("ng-invalid",ve.is("invalid"))("ng-pending",ve.is("pending"))("ng-submitted",ve.is("submitted"))},features:[n.\u0275\u0275InheritDefinitionFeature]}),X})();function tn(X,k){return[...k.path,X]}function Dt(X,k){Lt(X,k),k.valueAccessor.writeValue(X.value),function(X,k){k.valueAccessor.registerOnChange(V=>{X._pendingValue=V,X._pendingChange=!0,X._pendingDirty=!0,"change"===X.updateOn&&qt(X,k)})}(X,k),function(X,k){const V=(ve,nt)=>{k.valueAccessor.writeValue(ve),nt&&k.viewToModelUpdate(ve)};X.registerOnChange(V),k._registerOnDestroy(()=>{X._unregisterOnChange(V)})}(X,k),function(X,k){k.valueAccessor.registerOnTouched(()=>{X._pendingTouched=!0,"blur"===X.updateOn&&X._pendingChange&&qt(X,k),"submit"!==X.updateOn&&X.markAsTouched()})}(X,k),function(X,k){if(k.valueAccessor.setDisabledState){const V=ve=>{k.valueAccessor.setDisabledState(ve)};X.registerOnDisabledChange(V),k._registerOnDestroy(()=>{X._unregisterOnDisabledChange(V)})}}(X,k)}function Kt(X,k,V=!0){const ve=()=>{};k.valueAccessor&&(k.valueAccessor.registerOnChange(ve),k.valueAccessor.registerOnTouched(ve)),Qe(X,k),X&&(k._invokeOnDestroyCallbacks(),X._registerOnCollectionChange(()=>{}))}function et(X,k){X.forEach(V=>{V.registerOnValidatorChange&&V.registerOnValidatorChange(k)})}function Lt(X,k){const V=gt(X);null!==k.validator?X.setValidators(Je(V,k.validator)):"function"==typeof V&&X.setValidators([V]);const ve=Ue(X);null!==k.asyncValidator?X.setAsyncValidators(Je(ve,k.asyncValidator)):"function"==typeof ve&&X.setAsyncValidators([ve]);const nt=()=>X.updateValueAndValidity();et(k._rawValidators,nt),et(k._rawAsyncValidators,nt)}function Qe(X,k){let V=!1;if(null!==X){if(null!==k.validator){const nt=gt(X);if(Array.isArray(nt)&&nt.length>0){const Nt=nt.filter(nn=>nn!==k.validator);Nt.length!==nt.length&&(V=!0,X.setValidators(Nt))}}if(null!==k.asyncValidator){const nt=Ue(X);if(Array.isArray(nt)&&nt.length>0){const Nt=nt.filter(nn=>nn!==k.asyncValidator);Nt.length!==nt.length&&(V=!0,X.setAsyncValidators(Nt))}}}const ve=()=>{};return et(k._rawValidators,ve),et(k._rawAsyncValidators,ve),V}function qt(X,k){X._pendingDirty&&X.markAsDirty(),X.setValue(X._pendingValue,{emitModelToViewChange:!1}),k.viewToModelUpdate(X._pendingValue),X._pendingChange=!1}function Se(X,k){Lt(X,k)}function ze(X,k){if(!X.hasOwnProperty("model"))return!1;const V=X.model;return!!V.isFirstChange()||!Object.is(k,V.currentValue)}function Qt(X,k){X._syncPendingControls(),k.forEach(V=>{const ve=V.control;"submit"===ve.updateOn&&ve._pendingChange&&(V.viewToModelUpdate(ve._pendingValue),ve._pendingChange=!1)})}function cn(X,k){if(!k)return null;let V,ve,nt;return Array.isArray(k),k.forEach(Nt=>{Nt.constructor===g?V=Nt:function(X){return Object.getPrototypeOf(X.constructor)===u}(Nt)?ve=Nt:nt=Nt}),nt||ve||V||null}function An(X,k){const V=X.indexOf(k);V>-1&&X.splice(V,1)}const ct="VALID",He="INVALID",pt="PENDING",Ot="DISABLED";function on(X){return(Oi(X)?X.validators:X)||null}function On(X){return Array.isArray(X)?Oe(X):X||null}function Yn(X,k){return(Oi(k)?k.asyncValidators:X)||null}function ji(X){return Array.isArray(X)?Ye(X):X||null}function Oi(X){return null!=X&&!Array.isArray(X)&&"object"==typeof X}class Ni{constructor(k,V){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=k,this._rawAsyncValidators=V,this._composedValidatorFn=On(this._rawValidators),this._composedAsyncValidatorFn=ji(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(k){this._rawValidators=this._composedValidatorFn=k}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(k){this._rawAsyncValidators=this._composedAsyncValidatorFn=k}get parent(){return this._parent}get valid(){return this.status===ct}get invalid(){return this.status===He}get pending(){return this.status==pt}get disabled(){return this.status===Ot}get enabled(){return this.status!==Ot}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(k){this._rawValidators=k,this._composedValidatorFn=On(k)}setAsyncValidators(k){this._rawAsyncValidators=k,this._composedAsyncValidatorFn=ji(k)}addValidators(k){this.setValidators(ft(k,this._rawValidators))}addAsyncValidators(k){this.setAsyncValidators(ft(k,this._rawAsyncValidators))}removeValidators(k){this.setValidators(vt(k,this._rawValidators))}removeAsyncValidators(k){this.setAsyncValidators(vt(k,this._rawAsyncValidators))}hasValidator(k){return at(this._rawValidators,k)}hasAsyncValidator(k){return at(this._rawAsyncValidators,k)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(k={}){this.touched=!0,this._parent&&!k.onlySelf&&this._parent.markAsTouched(k)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(k=>k.markAllAsTouched())}markAsUntouched(k={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(V=>{V.markAsUntouched({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}markAsDirty(k={}){this.pristine=!1,this._parent&&!k.onlySelf&&this._parent.markAsDirty(k)}markAsPristine(k={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(V=>{V.markAsPristine({onlySelf:!0})}),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}markAsPending(k={}){this.status=pt,!1!==k.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!k.onlySelf&&this._parent.markAsPending(k)}disable(k={}){const V=this._parentMarkedDirty(k.onlySelf);this.status=Ot,this.errors=null,this._forEachChild(ve=>{ve.disable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this._updateValue(),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:V})),this._onDisabledChange.forEach(ve=>ve(!0))}enable(k={}){const V=this._parentMarkedDirty(k.onlySelf);this.status=ct,this._forEachChild(ve=>{ve.enable(Object.assign(Object.assign({},k),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},k),{skipPristineCheck:V})),this._onDisabledChange.forEach(ve=>ve(!1))}_updateAncestors(k){this._parent&&!k.onlySelf&&(this._parent.updateValueAndValidity(k),k.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(k){this._parent=k}updateValueAndValidity(k={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ct||this.status===pt)&&this._runAsyncValidator(k.emitEvent)),!1!==k.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!k.onlySelf&&this._parent.updateValueAndValidity(k)}_updateTreeValidity(k={emitEvent:!0}){this._forEachChild(V=>V._updateTreeValidity(k)),this.updateValueAndValidity({onlySelf:!0,emitEvent:k.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ot:ct}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(k){if(this.asyncValidator){this.status=pt,this._hasOwnPendingAsyncValidator=!0;const V=te(this.asyncValidator(this));this._asyncValidationSubscription=V.subscribe(ve=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ve,{emitEvent:k})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(k,V={}){this.errors=k,this._updateControlsErrors(!1!==V.emitEvent)}get(k){return function(X,k,V){if(null==k||(Array.isArray(k)||(k=k.split(".")),Array.isArray(k)&&0===k.length))return null;let ve=X;return k.forEach(nt=>{ve=ve instanceof qn?ve.controls.hasOwnProperty(nt)?ve.controls[nt]:null:ve instanceof Vi&&ve.at(nt)||null}),ve}(this,k)}getError(k,V){const ve=V?this.get(V):this;return ve&&ve.errors?ve.errors[k]:null}hasError(k,V){return!!this.getError(k,V)}get root(){let k=this;for(;k._parent;)k=k._parent;return k}_updateControlsErrors(k){this.status=this._calculateStatus(),k&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(k)}_initObservables(){this.valueChanges=new n.EventEmitter,this.statusChanges=new n.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Ot:this.errors?He:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(pt)?pt:this._anyControlsHaveStatus(He)?He:ct}_anyControlsHaveStatus(k){return this._anyControls(V=>V.status===k)}_anyControlsDirty(){return this._anyControls(k=>k.dirty)}_anyControlsTouched(){return this._anyControls(k=>k.touched)}_updatePristine(k={}){this.pristine=!this._anyControlsDirty(),this._parent&&!k.onlySelf&&this._parent._updatePristine(k)}_updateTouched(k={}){this.touched=this._anyControlsTouched(),this._parent&&!k.onlySelf&&this._parent._updateTouched(k)}_isBoxedValue(k){return"object"==typeof k&&null!==k&&2===Object.keys(k).length&&"value"in k&&"disabled"in k}_registerOnCollectionChange(k){this._onCollectionChange=k}_setUpdateStrategy(k){Oi(k)&&null!=k.updateOn&&(this._updateOn=k.updateOn)}_parentMarkedDirty(k){return!k&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ti extends Ni{constructor(k=null,V,ve){super(on(V),Yn(ve,V)),this._onChange=[],this._pendingChange=!1,this._applyFormState(k),this._setUpdateStrategy(V),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(k,V={}){this.value=this._pendingValue=k,this._onChange.length&&!1!==V.emitModelToViewChange&&this._onChange.forEach(ve=>ve(this.value,!1!==V.emitViewToModelChange)),this.updateValueAndValidity(V)}patchValue(k,V={}){this.setValue(k,V)}reset(k=null,V={}){this._applyFormState(k),this.markAsPristine(V),this.markAsUntouched(V),this.setValue(this.value,V),this._pendingChange=!1}_updateValue(){}_anyControls(k){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(k){this._onChange.push(k)}_unregisterOnChange(k){An(this._onChange,k)}registerOnDisabledChange(k){this._onDisabledChange.push(k)}_unregisterOnDisabledChange(k){An(this._onDisabledChange,k)}_forEachChild(k){}_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(k){this._isBoxedValue(k)?(this.value=this._pendingValue=k.value,k.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=k}}class qn extends Ni{constructor(k,V,ve){super(on(V),Yn(ve,V)),this.controls=k,this._initObservables(),this._setUpdateStrategy(V),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(k,V){return this.controls[k]?this.controls[k]:(this.controls[k]=V,V.setParent(this),V._registerOnCollectionChange(this._onCollectionChange),V)}addControl(k,V,ve={}){this.registerControl(k,V),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}removeControl(k,V={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}setControl(k,V,ve={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),delete this.controls[k],V&&this.registerControl(k,V),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}contains(k){return this.controls.hasOwnProperty(k)&&this.controls[k].enabled}setValue(k,V={}){this._checkAllValuesPresent(k),Object.keys(k).forEach(ve=>{this._throwIfControlMissing(ve),this.controls[ve].setValue(k[ve],{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V)}patchValue(k,V={}){null!=k&&(Object.keys(k).forEach(ve=>{this.controls[ve]&&this.controls[ve].patchValue(k[ve],{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V))}reset(k={},V={}){this._forEachChild((ve,nt)=>{ve.reset(k[nt],{onlySelf:!0,emitEvent:V.emitEvent})}),this._updatePristine(V),this._updateTouched(V),this.updateValueAndValidity(V)}getRawValue(){return this._reduceChildren({},(k,V,ve)=>(k[ve]=V instanceof Ti?V.value:V.getRawValue(),k))}_syncPendingControls(){let k=this._reduceChildren(!1,(V,ve)=>!!ve._syncPendingControls()||V);return k&&this.updateValueAndValidity({onlySelf:!0}),k}_throwIfControlMissing(k){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[k])throw new Error(`Cannot find form control with name: ${k}.`)}_forEachChild(k){Object.keys(this.controls).forEach(V=>{const ve=this.controls[V];ve&&k(ve,V)})}_setUpControls(){this._forEachChild(k=>{k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(k){for(const V of Object.keys(this.controls)){const ve=this.controls[V];if(this.contains(V)&&k(ve))return!0}return!1}_reduceValue(){return this._reduceChildren({},(k,V,ve)=>((V.enabled||this.disabled)&&(k[ve]=V.value),k))}_reduceChildren(k,V){let ve=k;return this._forEachChild((nt,Nt)=>{ve=V(ve,nt,Nt)}),ve}_allControlsDisabled(){for(const k of Object.keys(this.controls))if(this.controls[k].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(k){this._forEachChild((V,ve)=>{if(void 0===k[ve])throw new Error(`Must supply a value for form control with name: '${ve}'.`)})}}class Vi extends Ni{constructor(k,V,ve){super(on(V),Yn(ve,V)),this.controls=k,this._initObservables(),this._setUpdateStrategy(V),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(k){return this.controls[k]}push(k,V={}){this.controls.push(k),this._registerControl(k),this.updateValueAndValidity({emitEvent:V.emitEvent}),this._onCollectionChange()}insert(k,V,ve={}){this.controls.splice(k,0,V),this._registerControl(V),this.updateValueAndValidity({emitEvent:ve.emitEvent})}removeAt(k,V={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),this.controls.splice(k,1),this.updateValueAndValidity({emitEvent:V.emitEvent})}setControl(k,V,ve={}){this.controls[k]&&this.controls[k]._registerOnCollectionChange(()=>{}),this.controls.splice(k,1),V&&(this.controls.splice(k,0,V),this._registerControl(V)),this.updateValueAndValidity({emitEvent:ve.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(k,V={}){this._checkAllValuesPresent(k),k.forEach((ve,nt)=>{this._throwIfControlMissing(nt),this.at(nt).setValue(ve,{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V)}patchValue(k,V={}){null!=k&&(k.forEach((ve,nt)=>{this.at(nt)&&this.at(nt).patchValue(ve,{onlySelf:!0,emitEvent:V.emitEvent})}),this.updateValueAndValidity(V))}reset(k=[],V={}){this._forEachChild((ve,nt)=>{ve.reset(k[nt],{onlySelf:!0,emitEvent:V.emitEvent})}),this._updatePristine(V),this._updateTouched(V),this.updateValueAndValidity(V)}getRawValue(){return this.controls.map(k=>k instanceof Ti?k.value:k.getRawValue())}clear(k={}){this.controls.length<1||(this._forEachChild(V=>V._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:k.emitEvent}))}_syncPendingControls(){let k=this.controls.reduce((V,ve)=>!!ve._syncPendingControls()||V,!1);return k&&this.updateValueAndValidity({onlySelf:!0}),k}_throwIfControlMissing(k){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(k))throw new Error(`Cannot find form control at index ${k}`)}_forEachChild(k){this.controls.forEach((V,ve)=>{k(V,ve)})}_updateValue(){this.value=this.controls.filter(k=>k.enabled||this.disabled).map(k=>k.value)}_anyControls(k){return this.controls.some(V=>V.enabled&&k(V))}_setUpControls(){this._forEachChild(k=>this._registerControl(k))}_checkAllValuesPresent(k){this._forEachChild((V,ve)=>{if(void 0===k[ve])throw new Error(`Must supply a value for form control at index: ${ve}.`)})}_allControlsDisabled(){for(const k of this.controls)if(k.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(k){k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange)}}const ci={provide:_t,useExisting:(0,n.forwardRef)(()=>Ze)},xe=(()=>Promise.resolve(null))();let Ze=(()=>{class X extends _t{constructor(V,ve){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.EventEmitter,this.form=new qn({},Oe(V),Ye(ve))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(V){xe.then(()=>{const ve=this._findContainer(V.path);V.control=ve.registerControl(V.name,V.control),Dt(V.control,V),V.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(V)})}getControl(V){return this.form.get(V.path)}removeControl(V){xe.then(()=>{const ve=this._findContainer(V.path);ve&&ve.removeControl(V.name),An(this._directives,V)})}addFormGroup(V){xe.then(()=>{const ve=this._findContainer(V.path),nt=new qn({});Se(nt,V),ve.registerControl(V.name,nt),nt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(V){xe.then(()=>{const ve=this._findContainer(V.path);ve&&ve.removeControl(V.name)})}getFormGroup(V){return this.form.get(V.path)}updateModel(V,ve){xe.then(()=>{this.form.get(V.path).setValue(ve)})}setValue(V){this.control.setValue(V)}onSubmit(V){return this.submitted=!0,Qt(this.form,this._directives),this.ngSubmit.emit(V),!1}onReset(){this.resetForm()}resetForm(V){this.form.reset(V),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(V){return V.pop(),V.length?this.form.get(V):this.form}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("submit",function(Nt){return ve.onSubmit(Nt)})("reset",function(){return ve.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([ci]),n.\u0275\u0275InheritDefinitionFeature]}),X})(),ue=(()=>{class X extends _t{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return tn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,features:[n.\u0275\u0275InheritDefinitionFeature]}),X})();const Xe={provide:_t,useExisting:(0,n.forwardRef)(()=>Wt)};let Wt=(()=>{class X extends ue{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}_checkParentType(){}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,5),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.\u0275\u0275ProvidersFeature([Xe]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Ft={provide:ot,useExisting:(0,n.forwardRef)(()=>Zt)},Ht=(()=>Promise.resolve(null))();let Zt=(()=>{class X extends ot{constructor(V,ve,nt,Nt){super(),this.control=new Ti,this._registered=!1,this.update=new n.EventEmitter,this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt),this.valueAccessor=cn(0,Nt)}ngOnChanges(V){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in V&&this._updateDisabled(V),ze(V,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?tn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_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(){Dt(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(V){Ht.then(()=>{this.control.setValue(V,{emitViewToModelChange:!1})})}_updateDisabled(V){const ve=V.isDisabled.currentValue,nt=""===ve||ve&&"false"!==ve;Ht.then(()=>{nt&&!this.control.disabled?this.control.disable():!nt&&this.control.disabled&&this.control.enable()})}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,9),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10),n.\u0275\u0275directiveInject(h,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.\u0275\u0275ProvidersFeature([Ft]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),X})(),an=(()=>{class X{}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),X})();const Tn={provide:h,useExisting:(0,n.forwardRef)(()=>zn),multi:!0};let zn=(()=>{class X extends u{writeValue(V){this.setProperty("value",null==V?"":V)}registerOnChange(V){this.onChange=ve=>{V(""==ve?null:parseFloat(ve))}}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("input",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Tn]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const $n={provide:h,useExisting:(0,n.forwardRef)(()=>kn),multi:!0};let jn=(()=>{class X{}return X.\u0275fac=function(V){return new(V||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({}),X})(),Qn=(()=>{class X{constructor(){this._accessors=[]}add(V,ve){this._accessors.push([V,ve])}remove(V){for(let ve=this._accessors.length-1;ve>=0;--ve)if(this._accessors[ve][1]===V)return void this._accessors.splice(ve,1)}select(V){this._accessors.forEach(ve=>{this._isSameGroup(ve,V)&&ve[1]!==V&&ve[1].fireUncheck(V.value)})}_isSameGroup(V,ve){return!!V[0].control&&V[0]._parent===ve._control._parent&&V[1].name===ve.name}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:jn}),X})(),kn=(()=>{class X extends u{constructor(V,ve,nt,Nt){super(V,ve),this._registry=nt,this._injector=Nt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(ot),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(V){this._state=V===this.value,this.setProperty("checked",this._state)}registerOnChange(V){this._fn=V,this.onChange=()=>{V(this.value),this._registry.select(this)}}fireUncheck(V){this.writeValue(V)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(Qn),n.\u0275\u0275directiveInject(n.Injector))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(){return ve.onChange()})("blur",function(){return ve.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.\u0275\u0275ProvidersFeature([$n]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Mi={provide:h,useExisting:(0,n.forwardRef)(()=>Zi),multi:!0};let Zi=(()=>{class X extends u{writeValue(V){this.setProperty("value",parseFloat(V))}registerOnChange(V){this.onChange=ve=>{V(""==ve?null:parseFloat(ve))}}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.value)})("input",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Mi]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Xn=new n.InjectionToken("NgModelWithFormControlWarning"),pi={provide:ot,useExisting:(0,n.forwardRef)(()=>Gi)};let Gi=(()=>{class X extends ot{constructor(V,ve,nt,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(V),this._setAsyncValidators(ve),this.valueAccessor=cn(0,nt)}set isDisabled(V){}ngOnChanges(V){if(this._isControlChanged(V)){const ve=V.form.previousValue;ve&&Kt(ve,this,!1),Dt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ze(V,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}_isControlChanged(V){return V.hasOwnProperty("form")}}return X._ngModelWarningSentOnce=!1,X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(Xn,8))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([pi]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),X})();const Ui={provide:_t,useExisting:(0,n.forwardRef)(()=>tr)};let tr=(()=>{class X extends _t{constructor(V,ve){super(),this.validators=V,this.asyncValidators=ve,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.EventEmitter,this._setValidators(V),this._setAsyncValidators(ve)}ngOnChanges(V){this._checkFormPresent(),V.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(V){const ve=this.form.get(V.path);return Dt(ve,V),ve.updateValueAndValidity({emitEvent:!1}),this.directives.push(V),ve}getControl(V){return this.form.get(V.path)}removeControl(V){Kt(V.control||null,V,!1),An(this.directives,V)}addFormGroup(V){this._setUpFormContainer(V)}removeFormGroup(V){this._cleanUpFormContainer(V)}getFormGroup(V){return this.form.get(V.path)}addFormArray(V){this._setUpFormContainer(V)}removeFormArray(V){this._cleanUpFormContainer(V)}getFormArray(V){return this.form.get(V.path)}updateModel(V,ve){this.form.get(V.path).setValue(ve)}onSubmit(V){return this.submitted=!0,Qt(this.form,this.directives),this.ngSubmit.emit(V),!1}onReset(){this.resetForm()}resetForm(V){this.form.reset(V),this.submitted=!1}_updateDomValue(){this.directives.forEach(V=>{const ve=V.control,nt=this.form.get(V.path);ve!==nt&&(Kt(ve||null,V),nt instanceof Ti&&(Dt(nt,V),V.control=nt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(V){const ve=this.form.get(V.path);Se(ve,V),ve.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(V){if(this.form){const ve=this.form.get(V.path);ve&&function(X,k){return Qe(X,k)}(ve,V)&&ve.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Lt(this.form,this),this._oldForm&&Qe(this._oldForm,this)}_checkFormPresent(){}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formGroup",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("submit",function(Nt){return ve.onSubmit(Nt)})("reset",function(){return ve.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Ui]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),X})();const bi={provide:_t,useExisting:(0,n.forwardRef)(()=>Rn)};let Rn=(()=>{class X extends ue{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}_checkParentType(){Fn(this._parent)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.\u0275\u0275ProvidersFeature([bi]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const qi={provide:_t,useExisting:(0,n.forwardRef)(()=>oi)};let oi=(()=>{class X extends _t{constructor(V,ve,nt){super(),this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt)}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 tn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Fn(this._parent)}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.\u0275\u0275ProvidersFeature([qi]),n.\u0275\u0275InheritDefinitionFeature]}),X})();function Fn(X){return!(X instanceof Rn||X instanceof tr||X instanceof oi)}const $i={provide:ot,useExisting:(0,n.forwardRef)(()=>mi)};let mi=(()=>{class X extends ot{constructor(V,ve,nt,Nt,nn){super(),this._ngModelWarningConfig=nn,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=V,this._setValidators(ve),this._setAsyncValidators(nt),this.valueAccessor=cn(0,Nt)}set isDisabled(V){}ngOnChanges(V){this._added||this._setUpControl(),ze(V,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(V){this.viewModel=V,this.update.emit(V)}get path(){return tn(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 X._ngModelWarningSentOnce=!1,X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(_t,13),n.\u0275\u0275directiveInject(T,10),n.\u0275\u0275directiveInject(D,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(Xn,8))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.\u0275\u0275ProvidersFeature([$i]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),X})();const Gn={provide:h,useExisting:(0,n.forwardRef)(()=>yn),multi:!0};function ur(X,k){return null==X?`${k}`:(k&&"object"==typeof k&&(k="Object"),`${X}: ${k}`.slice(0,50))}let yn=(()=>{class X extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(V){this._compareWith=V}writeValue(V){this.value=V;const ve=this._getOptionId(V);null==ve&&this.setProperty("selectedIndex",-1);const nt=ur(ve,V);this.setProperty("value",nt)}registerOnChange(V){this.onChange=ve=>{this.value=this._getOptionValue(ve),V(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(V){for(const ve of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ve),V))return ve;return null}_getOptionValue(V){const ve=function(X){return X.split(":")[0]}(V);return this._optionMap.has(ve)?this._optionMap.get(ve):V}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(V,ve){1&V&&n.\u0275\u0275listener("change",function(Nt){return ve.onChange(Nt.target.value)})("blur",function(){return ve.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([Gn]),n.\u0275\u0275InheritDefinitionFeature]}),X})(),Sn=(()=>{class X{constructor(V,ve,nt){this._element=V,this._renderer=ve,this._select=nt,this._select&&(this.id=this._select._registerOption())}set ngValue(V){null!=this._select&&(this._select._optionMap.set(this.id,V),this._setElementValue(ur(this.id,V)),this._select.writeValue(this._select.value))}set value(V){this._setElementValue(V),this._select&&this._select.writeValue(this._select.value)}_setElementValue(V){this._renderer.setProperty(this._element.nativeElement,"value",V)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(yn,9))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),X})();const Wn={provide:h,useExisting:(0,n.forwardRef)(()=>Vr),multi:!0};function Ri(X,k){return null==X?`${k}`:("string"==typeof k&&(k=`'${k}'`),k&&"object"==typeof k&&(k="Object"),`${X}: ${k}`.slice(0,50))}let Vr=(()=>{class X extends u{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(V){this._compareWith=V}writeValue(V){let ve;if(this.value=V,Array.isArray(V)){const nt=V.map(Nt=>this._getOptionId(Nt));ve=(Nt,nn)=>{Nt._setSelected(nt.indexOf(nn.toString())>-1)}}else ve=(nt,Nt)=>{nt._setSelected(!1)};this._optionMap.forEach(ve)}registerOnChange(V){this.onChange=ve=>{const nt=[],Nt=ve.selectedOptions;if(void 0!==Nt){const nn=Nt;for(let In=0;In{class X{constructor(V,ve,nt){this._element=V,this._renderer=ve,this._select=nt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(V){null!=this._select&&(this._value=V,this._setElementValue(Ri(this.id,V)),this._select.writeValue(this._select.value))}set value(V){this._select?(this._value=V,this._setElementValue(Ri(this.id,V)),this._select.writeValue(this._select.value)):this._setElementValue(V)}_setElementValue(V){this._renderer.setProperty(this._element.nativeElement,"value",V)}_setSelected(V){this._renderer.setProperty(this._element.nativeElement,"selected",V)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return X.\u0275fac=function(V){return new(V||X)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(Vr,9))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),X})();function Or(X){return"number"==typeof X?X:parseInt(X,10)}function Mr(X){return"number"==typeof X?X:parseFloat(X)}let cr=(()=>{class X{constructor(){this._validator=Y}ngOnChanges(V){if(this.inputName in V){const ve=this.normalizeInput(V[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(ve):Y,this._onChange&&this._onChange()}}validate(V){return this._validator(V)}registerOnValidatorChange(V){this._onChange=V}enabled(){return null!=this[this.inputName]}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,features:[n.\u0275\u0275NgOnChangesFeature]}),X})();const $r={provide:T,useExisting:(0,n.forwardRef)(()=>hr),multi:!0};let hr=(()=>{class X extends cr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=V=>Mr(V),this.createValidator=V=>S(V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("max",ve.enabled()?ve.max:null)},inputs:{max:"max"},features:[n.\u0275\u0275ProvidersFeature([$r]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const qr={provide:T,useExisting:(0,n.forwardRef)(()=>ir),multi:!0};let ir=(()=>{class X extends cr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=V=>Mr(V),this.createValidator=V=>A(V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("min",ve.enabled()?ve.min:null)},inputs:{min:"min"},features:[n.\u0275\u0275ProvidersFeature([qr]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Cr={provide:T,useExisting:(0,n.forwardRef)(()=>mr),multi:!0},Sr={provide:T,useExisting:(0,n.forwardRef)(()=>Hr),multi:!0};let mr=(()=>{class X{constructor(){this._required=!1}get required(){return this._required}set required(V){this._required=null!=V&&!1!==V&&"false"!=`${V}`,this._onChange&&this._onChange()}validate(V){return this.required?M(V):null}registerOnValidatorChange(V){this._onChange=V}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("required",ve.required?"":null)},inputs:{required:"required"},features:[n.\u0275\u0275ProvidersFeature([Cr])]}),X})(),Hr=(()=>{class X extends mr{validate(V){return this.required?I(V):null}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("required",ve.required?"":null)},features:[n.\u0275\u0275ProvidersFeature([Sr]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const jr={provide:T,useExisting:(0,n.forwardRef)(()=>Wi),multi:!0};let Wi=(()=>{class X{constructor(){this._enabled=!1}set email(V){this._enabled=""===V||!0===V||"true"===V,this._onChange&&this._onChange()}validate(V){return this._enabled?b(V):null}registerOnValidatorChange(V){this._onChange=V}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.\u0275\u0275ProvidersFeature([jr])]}),X})();const Wr={provide:T,useExisting:(0,n.forwardRef)(()=>Rr),multi:!0};let Rr=(()=>{class X extends cr{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=V=>Or(V),this.createValidator=V=>L(V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("minlength",ve.enabled()?ve.minlength:null)},inputs:{minlength:"minlength"},features:[n.\u0275\u0275ProvidersFeature([Wr]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Dr={provide:T,useExisting:(0,n.forwardRef)(()=>Lr),multi:!0};let Lr=(()=>{class X extends cr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=V=>Or(V),this.createValidator=V=>F(V)}}return X.\u0275fac=function(){let k;return function(ve){return(k||(k=n.\u0275\u0275getInheritedFactory(X)))(ve||X)}}(),X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("maxlength",ve.enabled()?ve.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.\u0275\u0275ProvidersFeature([Dr]),n.\u0275\u0275InheritDefinitionFeature]}),X})();const Ji={provide:T,useExisting:(0,n.forwardRef)(()=>Fr),multi:!0};let Fr=(()=>{class X{constructor(){this._validator=Y}ngOnChanges(V){"pattern"in V&&(this._createValidator(),this._onChange&&this._onChange())}validate(V){return this._validator(V)}registerOnValidatorChange(V){this._onChange=V}_createValidator(){this._validator=ne(this.pattern)}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(V,ve){2&V&&n.\u0275\u0275attribute("pattern",ve.pattern?ve.pattern:null)},inputs:{pattern:"pattern"},features:[n.\u0275\u0275ProvidersFeature([Ji]),n.\u0275\u0275NgOnChangesFeature]}),X})(),Tr=(()=>{class X{}return X.\u0275fac=function(V){return new(V||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({imports:[[jn]]}),X})(),us=(()=>{class X{}return X.\u0275fac=function(V){return new(V||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({imports:[Tr]}),X})(),si=(()=>{class X{static withConfig(V){return{ngModule:X,providers:[{provide:Xn,useValue:V.warnOnNgModelWithFormControl}]}}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({imports:[Tr]}),X})(),Er=(()=>{class X{group(V,ve=null){const nt=this._reduceControls(V);let In,Nt=null,nn=null;return null!=ve&&(function(X){return void 0!==X.asyncValidators||void 0!==X.validators||void 0!==X.updateOn}(ve)?(Nt=null!=ve.validators?ve.validators:null,nn=null!=ve.asyncValidators?ve.asyncValidators:null,In=null!=ve.updateOn?ve.updateOn:void 0):(Nt=null!=ve.validator?ve.validator:null,nn=null!=ve.asyncValidator?ve.asyncValidator:null)),new qn(nt,{asyncValidators:nn,updateOn:In,validators:Nt})}control(V,ve,nt){return new Ti(V,ve,nt)}array(V,ve,nt){const Nt=V.map(nn=>this._createControl(nn));return new Vi(Nt,ve,nt)}_reduceControls(V){const ve={};return Object.keys(V).forEach(nt=>{ve[nt]=this._createControl(V[nt])}),ve}_createControl(V){return V instanceof Ti||V instanceof qn||V instanceof Vi?V:Array.isArray(V)?this.control(V[0],V.length>1?V[1]:null,V.length>2?V[2]:null):this.control(V)}}return X.\u0275fac=function(V){return new(V||X)},X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:si}),X})();const be=new n.Version("13.1.1")},1079:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_AUTOCOMPLETE_DEFAULT_OPTIONS:()=>$,MAT_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY:()=>J,MAT_AUTOCOMPLETE_SCROLL_STRATEGY:()=>le,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY:()=>Oe,MAT_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>Le,MAT_AUTOCOMPLETE_VALUE_ACCESSOR:()=>Ye,MatAutocomplete:()=>ae,MatAutocompleteModule:()=>ft,MatAutocompleteOrigin:()=>at,MatAutocompleteSelectedEvent:()=>Q,MatAutocompleteTrigger:()=>Ue,_MatAutocompleteBase:()=>ie,_MatAutocompleteOriginBase:()=>tt,_MatAutocompleteTriggerBase:()=>gt,getMatAutocompleteMissingPanelError:()=>Je});var n=p(5664),f=p(3191),v=p(5e3),m=p(508),o=p(2654),d=p(8929),u=p(8514),h=p(6787),r=p(1086),s=p(3753),i=p(925),c=p(9808),l=p(1314),g=p(9071),y=p(1159),E=p(7429),T=p(3075),D=p(7322),O=p(2986),w=p(7545),A=p(2198),S=p(4850),M=p(2868),I=p(943),b=p(226);const L=["panel"];function F(vt,yt){if(1&vt&&(v.\u0275\u0275elementStart(0,"div",0,1),v.\u0275\u0275projection(2),v.\u0275\u0275elementEnd()),2&vt){const ot=yt.id,_t=v.\u0275\u0275nextContext();v.\u0275\u0275property("id",_t.id)("ngClass",_t._classList),v.\u0275\u0275attribute("aria-label",_t.ariaLabel||null)("aria-labelledby",_t._getPanelAriaLabelledby(ot))}}const ne=["*"];let Y=0;class Q{constructor(yt,ot){this.source=yt,this.option=ot}}const te=(0,m.mixinDisableRipple)(class{}),$=new v.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:J});function J(){return{autoActiveFirstOption:!1}}let ie=(()=>{class vt extends te{constructor(ot,_t,At,Tt){super(),this._changeDetectorRef=ot,this._elementRef=_t,this._activeOptionChanges=o.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new v.EventEmitter,this.opened=new v.EventEmitter,this.closed=new v.EventEmitter,this.optionActivated=new v.EventEmitter,this._classList={},this.id="mat-autocomplete-"+Y++,this.inertGroups=(null==Tt?void 0:Tt.SAFARI)||!1,this._autoActiveFirstOption=!!At.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ot){this._autoActiveFirstOption=(0,f.Ig)(ot)}set classList(ot){this._classList=ot&&ot.length?(0,f.du)(ot).reduce((_t,At)=>(_t[At]=!0,_t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new n.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ot=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ot]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ot){this.panel&&(this.panel.nativeElement.scrollTop=ot)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ot){const _t=new Q(this,ot);this.optionSelected.emit(_t)}_getPanelAriaLabelledby(ot){return this.ariaLabel?null:this.ariaLabelledby?(ot?ot+" ":"")+this.ariaLabelledby:ot}_setVisibilityClasses(ot){ot[this._visibleClass]=this.showPanel,ot[this._hiddenClass]=!this.showPanel}}return vt.\u0275fac=function(ot){return new(ot||vt)(v.\u0275\u0275directiveInject(v.ChangeDetectorRef),v.\u0275\u0275directiveInject(v.ElementRef),v.\u0275\u0275directiveInject($),v.\u0275\u0275directiveInject(i.t4))},vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt,viewQuery:function(ot,_t){if(1&ot&&(v.\u0275\u0275viewQuery(v.TemplateRef,7),v.\u0275\u0275viewQuery(L,5)),2&ot){let At;v.\u0275\u0275queryRefresh(At=v.\u0275\u0275loadQuery())&&(_t.template=At.first),v.\u0275\u0275queryRefresh(At=v.\u0275\u0275loadQuery())&&(_t.panel=At.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[v.\u0275\u0275InheritDefinitionFeature]}),vt})(),ae=(()=>{class vt extends ie{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=v.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275cmp=v.\u0275\u0275defineComponent({type:vt,selectors:[["mat-autocomplete"]],contentQueries:function(ot,_t,At){if(1&ot&&(v.\u0275\u0275contentQuery(At,m.MAT_OPTGROUP,5),v.\u0275\u0275contentQuery(At,m.MatOption,5)),2&ot){let Tt;v.\u0275\u0275queryRefresh(Tt=v.\u0275\u0275loadQuery())&&(_t.optionGroups=Tt),v.\u0275\u0275queryRefresh(Tt=v.\u0275\u0275loadQuery())&&(_t.options=Tt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[v.\u0275\u0275ProvidersFeature([{provide:m.MAT_OPTION_PARENT_COMPONENT,useExisting:vt}]),v.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ne,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ot,_t){1&ot&&(v.\u0275\u0275projectionDef(),v.\u0275\u0275template(0,F,3,4,"ng-template"))},directives:[c.NgClass],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),vt})();const le=new v.InjectionToken("mat-autocomplete-scroll-strategy");function Oe(vt){return()=>vt.scrollStrategies.reposition()}const Le={provide:le,deps:[l.aV],useFactory:Oe},Ye={provide:T.NG_VALUE_ACCESSOR,useExisting:(0,v.forwardRef)(()=>Ue),multi:!0};function Je(){return Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}let gt=(()=>{class vt{constructor(ot,_t,At,Tt,Bt,Et,Ee,fe,H,x,U){this._element=ot,this._overlay=_t,this._viewContainerRef=At,this._zone=Tt,this._changeDetectorRef=Bt,this._dir=Ee,this._formField=fe,this._document=H,this._viewportRuler=x,this._defaults=U,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=o.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new d.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,u.P)(()=>this.autocomplete&&this.autocomplete.options?(0,h.T)(...this.autocomplete.options.map(Z=>Z.onSelectionChange)):this._zone.onStable.pipe((0,O.q)(1),(0,w.w)(()=>this.optionSelections))),this._scrollStrategy=Et}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ot){this._autocompleteDisabled=(0,f.Ig)(ot)}ngAfterViewInit(){const ot=this._getWindow();void 0!==ot&&this._zone.runOutsideAngular(()=>ot.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ot){ot.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ot=this._getWindow();void 0!==ot&&ot.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,h.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,A.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,A.h)(()=>this._overlayAttached)):(0,r.of)()).pipe((0,S.U)(ot=>ot instanceof m.MatOptionSelectionChange?ot:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,h.T)((0,s.R)(this._document,"click"),(0,s.R)(this._document,"auxclick"),(0,s.R)(this._document,"touchend")).pipe((0,A.h)(ot=>{const _t=(0,i.sA)(ot),At=this._formField?this._formField._elementRef.nativeElement:null,Tt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&_t!==this._element.nativeElement&&(!At||!At.contains(_t))&&(!Tt||!Tt.contains(_t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(_t)}))}writeValue(ot){Promise.resolve(null).then(()=>this._setTriggerValue(ot))}registerOnChange(ot){this._onChange=ot}registerOnTouched(ot){this._onTouched=ot}setDisabledState(ot){this._element.nativeElement.disabled=ot}_handleKeydown(ot){const _t=ot.keyCode;if(_t===y.hY&&!(0,y.Vb)(ot)&&ot.preventDefault(),this.activeOption&&_t===y.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ot.preventDefault();else if(this.autocomplete){const At=this.autocomplete._keyManager.activeItem,Tt=_t===y.LH||_t===y.JH;this.panelOpen||_t===y.Mf?this.autocomplete._keyManager.onKeydown(ot):Tt&&this._canOpen()&&this.openPanel(),(Tt||this.autocomplete._keyManager.activeItem!==At)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(ot){let _t=ot.target,At=_t.value;"number"===_t.type&&(At=""==At?null:parseFloat(At)),this._previousValue!==At&&(this._previousValue=At,this._onChange(At),this._canOpen()&&this._document.activeElement===ot.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(ot=!1){this._formField&&"auto"===this._formField.floatLabel&&(ot?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ot=this._zone.onStable.pipe((0,O.q)(1)),_t=this.autocomplete.options.changes.pipe((0,M.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,I.g)(0));return(0,h.T)(ot,_t).pipe((0,w.w)(()=>{const At=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),At!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,O.q)(1)).subscribe(At=>this._setValueAndClose(At))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(ot){const _t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ot):ot,At=null!=_t?_t:"";this._formField?this._formField._control.value=At:this._element.nativeElement.value=At,this._previousValue=At}_setValueAndClose(ot){ot&&ot.source&&(this._clearPreviousSelectedOption(ot.source),this._setTriggerValue(ot.source.value),this._onChange(ot.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(ot.source)),this.closePanel()}_clearPreviousSelectedOption(ot){this.autocomplete.options.forEach(_t=>{_t!==ot&&_t.selected&&_t.deselect()})}_attachOverlay(){var ot;let _t=this._overlayRef;_t?(this._positionStrategy.setOrigin(this._getConnectedElement()),_t.updateSize({width:this._getPanelWidth()})):(this._portal=new E.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ot=this._formField)||void 0===ot?void 0:ot.getLabelId()}),_t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=_t,_t.keydownEvents().subscribe(Tt=>{(Tt.keyCode===y.hY&&!(0,y.Vb)(Tt)||Tt.keyCode===y.LH&&(0,y.Vb)(Tt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Tt.stopPropagation(),Tt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&_t&&_t.updateSize({width:this._getPanelWidth()})})),_t&&!_t.hasAttached()&&(_t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const At=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&At!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var ot;return new l.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(ot=this._defaults)||void 0===ot?void 0:ot.overlayPanelClass})}_getOverlayPosition(){const ot=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ot),this._positionStrategy=ot,ot}_setStrategyPositions(ot){const _t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],At=this._aboveClass,Tt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:At},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:At}];let Bt;Bt="above"===this.position?Tt:"below"===this.position?_t:[..._t,...Tt],ot.withPositions(Bt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const ot=this.autocomplete;ot.autoActiveFirstOption?ot._keyManager.setFirstItemActive():ot._keyManager.setActiveItem(-1)}_canOpen(){const ot=this._element.nativeElement;return!ot.readOnly&&!ot.disabled&&!this._autocompleteDisabled}_getWindow(){var ot;return(null===(ot=this._document)||void 0===ot?void 0:ot.defaultView)||window}_scrollToOption(ot){const _t=this.autocomplete,At=(0,m._countGroupLabelsBeforeOption)(ot,_t.options,_t.optionGroups);if(0===ot&&1===At)_t._setScrollTop(0);else if(_t.panel){const Tt=_t.options.toArray()[ot];if(Tt){const Bt=Tt._getHostElement(),Et=(0,m._getOptionScrollPosition)(Bt.offsetTop,Bt.offsetHeight,_t._getScrollTop(),_t.panel.nativeElement.offsetHeight);_t._setScrollTop(Et)}}}}return vt.\u0275fac=function(ot){return new(ot||vt)(v.\u0275\u0275directiveInject(v.ElementRef),v.\u0275\u0275directiveInject(l.aV),v.\u0275\u0275directiveInject(v.ViewContainerRef),v.\u0275\u0275directiveInject(v.NgZone),v.\u0275\u0275directiveInject(v.ChangeDetectorRef),v.\u0275\u0275directiveInject(le),v.\u0275\u0275directiveInject(b.Is,8),v.\u0275\u0275directiveInject(D.MAT_FORM_FIELD,9),v.\u0275\u0275directiveInject(c.DOCUMENT,8),v.\u0275\u0275directiveInject(g.rL),v.\u0275\u0275directiveInject($,8))},vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[v.\u0275\u0275NgOnChangesFeature]}),vt})(),Ue=(()=>{class vt extends gt{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=v.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ot,_t){1&ot&&v.\u0275\u0275listener("focusin",function(){return _t._handleFocus()})("blur",function(){return _t._onTouched()})("input",function(Tt){return _t._handleInput(Tt)})("keydown",function(Tt){return _t._handleKeydown(Tt)}),2&ot&&v.\u0275\u0275attribute("autocomplete",_t.autocompleteAttribute)("role",_t.autocompleteDisabled?null:"combobox")("aria-autocomplete",_t.autocompleteDisabled?null:"list")("aria-activedescendant",_t.panelOpen&&_t.activeOption?_t.activeOption.id:null)("aria-expanded",_t.autocompleteDisabled?null:_t.panelOpen.toString())("aria-owns",_t.autocompleteDisabled||!_t.panelOpen||null==_t.autocomplete?null:_t.autocomplete.id)("aria-haspopup",!_t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[v.\u0275\u0275ProvidersFeature([Ye]),v.\u0275\u0275InheritDefinitionFeature]}),vt})(),tt=(()=>{class vt{constructor(ot){this.elementRef=ot}}return vt.\u0275fac=function(ot){return new(ot||vt)(v.\u0275\u0275directiveInject(v.ElementRef))},vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt}),vt})(),at=(()=>{class vt extends tt{}return vt.\u0275fac=function(){let yt;return function(_t){return(yt||(yt=v.\u0275\u0275getInheritedFactory(vt)))(_t||vt)}}(),vt.\u0275dir=v.\u0275\u0275defineDirective({type:vt,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[v.\u0275\u0275InheritDefinitionFeature]}),vt})(),ft=(()=>{class vt{}return vt.\u0275fac=function(ot){return new(ot||vt)},vt.\u0275mod=v.\u0275\u0275defineNgModule({type:vt}),vt.\u0275inj=v.\u0275\u0275defineInjector({providers:[Le],imports:[[l.U8,m.MatOptionModule,m.MatCommonModule,c.CommonModule],g.ZD,m.MatOptionModule,m.MatCommonModule]}),vt})()},7423:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatAnchor:()=>c,MatButton:()=>i,MatButtonModule:()=>l});var n=p(5e3),f=p(508),v=p(6360),m=p(5664);const o=["mat-button",""],d=["*"],r=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],s=(0,f.mixinColor)((0,f.mixinDisabled)((0,f.mixinDisableRipple)(class{constructor(g){this._elementRef=g}})));let i=(()=>{class g extends s{constructor(E,T,D){super(E),this._focusMonitor=T,this._animationMode=D,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const O of r)this._hasHostAttributes(O)&&this._getHostElement().classList.add(O);E.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(E,T){E?this._focusMonitor.focusVia(this._getHostElement(),E,T):this._getHostElement().focus(T)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...E){return E.some(T=>this._getHostElement().hasAttribute(T))}}return g.\u0275fac=function(E){return new(E||g)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(m.tE),n.\u0275\u0275directiveInject(v.ANIMATION_MODULE_TYPE,8))},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(E,T){if(1&E&&n.\u0275\u0275viewQuery(f.MatRipple,5),2&E){let D;n.\u0275\u0275queryRefresh(D=n.\u0275\u0275loadQuery())&&(T.ripple=D.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(E,T){2&E&&(n.\u0275\u0275attribute("disabled",T.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===T._animationMode)("mat-button-disabled",T.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:o,ngContentSelectors:d,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(E,T){1&E&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1),n.\u0275\u0275element(3,"span",2)),2&E&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",T.isRoundButton||T.isIconButton),n.\u0275\u0275property("matRippleDisabled",T._isRippleDisabled())("matRippleCentered",T.isIconButton)("matRippleTrigger",T._getHostElement()))},directives:[f.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),g})(),c=(()=>{class g extends i{constructor(E,T,D){super(T,E,D)}_haltDisabledEvents(E){this.disabled&&(E.preventDefault(),E.stopImmediatePropagation())}}return g.\u0275fac=function(E){return new(E||g)(n.\u0275\u0275directiveInject(m.tE),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(v.ANIMATION_MODULE_TYPE,8))},g.\u0275cmp=n.\u0275\u0275defineComponent({type:g,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(E,T){1&E&&n.\u0275\u0275listener("click",function(O){return T._haltDisabledEvents(O)}),2&E&&(n.\u0275\u0275attribute("tabindex",T.disabled?-1:T.tabIndex||0)("disabled",T.disabled||null)("aria-disabled",T.disabled.toString()),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===T._animationMode)("mat-button-disabled",T.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:o,ngContentSelectors:d,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(E,T){1&E&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1),n.\u0275\u0275element(3,"span",2)),2&E&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",T.isRoundButton||T.isIconButton),n.\u0275\u0275property("matRippleDisabled",T._isRippleDisabled())("matRippleCentered",T.isIconButton)("matRippleTrigger",T._getHostElement()))},directives:[f.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),g})(),l=(()=>{class g{}return g.\u0275fac=function(E){return new(E||g)},g.\u0275mod=n.\u0275\u0275defineNgModule({type:g}),g.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatRippleModule,f.MatCommonModule],f.MatCommonModule]}),g})()},9224:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatCard:()=>A,MatCardActions:()=>l,MatCardAvatar:()=>w,MatCardContent:()=>s,MatCardFooter:()=>g,MatCardHeader:()=>S,MatCardImage:()=>y,MatCardLgImage:()=>D,MatCardMdImage:()=>T,MatCardModule:()=>I,MatCardSmImage:()=>E,MatCardSubtitle:()=>c,MatCardTitle:()=>i,MatCardTitleGroup:()=>M,MatCardXlImage:()=>O});var n=p(5e3),f=p(6360),v=p(508);const m=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],d=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],u=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],h=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],r=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let s=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),b})(),i=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),b})(),c=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),b})(),l=(()=>{class b{constructor(){this.align="start"}}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(F,ne){2&F&&n.\u0275\u0275classProp("mat-card-actions-align-end","end"===ne.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),b})(),g=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),b})(),y=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),b})(),E=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),b})(),T=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),b})(),D=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),b})(),O=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),b})(),w=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275dir=n.\u0275\u0275defineDirective({type:b,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),b})(),A=(()=>{class b{constructor(F){this._animationMode=F}}return b.\u0275fac=function(F){return new(F||b)(n.\u0275\u0275directiveInject(f.ANIMATION_MODULE_TYPE,8))},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(F,ne){2&F&&n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ne._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(F,ne){1&F&&(n.\u0275\u0275projectionDef(m),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),b})(),S=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:u,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(F,ne){1&F&&(n.\u0275\u0275projectionDef(d),n.\u0275\u0275projection(0),n.\u0275\u0275elementStart(1,"div",0),n.\u0275\u0275projection(2,1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}),b})(),M=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275cmp=n.\u0275\u0275defineComponent({type:b,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:r,decls:4,vars:0,template:function(F,ne){1&F&&(n.\u0275\u0275projectionDef(h),n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(2,1),n.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}),b})(),I=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275mod=n.\u0275\u0275defineNgModule({type:b}),b.\u0275inj=n.\u0275\u0275defineInjector({imports:[[v.MatCommonModule],v.MatCommonModule]}),b})()},7446:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR:()=>y,MAT_CHECKBOX_DEFAULT_OPTIONS:()=>i,MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY:()=>c,MAT_CHECKBOX_REQUIRED_VALIDATOR:()=>O,MatCheckbox:()=>D,MatCheckboxChange:()=>E,MatCheckboxModule:()=>S,MatCheckboxRequiredValidator:()=>w,_MatCheckboxRequiredValidatorModule:()=>A});var n=p(3191),f=p(5e3),v=p(3075),m=p(508),o=p(6360),d=p(5664),u=p(7144);const h=["input"],r=function(M){return{enterDuration:M}},s=["*"],i=new f.InjectionToken("mat-checkbox-default-options",{providedIn:"root",factory:c});function c(){return{color:"accent",clickAction:"check-indeterminate"}}let l=0;const g=c(),y={provide:v.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>D),multi:!0};class E{}const T=(0,m.mixinTabIndex)((0,m.mixinColor)((0,m.mixinDisableRipple)((0,m.mixinDisabled)(class{constructor(M){this._elementRef=M}}))));let D=(()=>{class M extends T{constructor(b,L,F,ne,Y,Q,te){super(b),this._changeDetectorRef=L,this._focusMonitor=F,this._ngZone=ne,this._animationMode=Q,this._options=te,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++l,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new f.EventEmitter,this.indeterminateChange=new f.EventEmitter,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||g,this.color=this.defaultColor=this._options.color||g.color,this.tabIndex=parseInt(Y)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(b){this._required=(0,n.Ig)(b)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(b=>{b||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(b){b!=this.checked&&(this._checked=b,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(b){const L=(0,n.Ig)(b);L!==this.disabled&&(this._disabled=L,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(b){const L=b!=this._indeterminate;this._indeterminate=(0,n.Ig)(b),L&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(b){this.checked=!!b}registerOnChange(b){this._controlValueAccessorChangeFn=b}registerOnTouched(b){this._onTouched=b}setDisabledState(b){this.disabled=b}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(b){let L=this._currentCheckState,F=this._elementRef.nativeElement;if(L!==b&&(this._currentAnimationClass.length>0&&F.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(L,b),this._currentCheckState=b,this._currentAnimationClass.length>0)){F.classList.add(this._currentAnimationClass);const ne=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{F.classList.remove(ne)},1e3)})}}_emitChangeEvent(){const b=new E;b.source=this,b.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(b),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(b){var L;const F=null===(L=this._options)||void 0===L?void 0:L.clickAction;b.stopPropagation(),this.disabled||"noop"===F?!this.disabled&&"noop"===F&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==F&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(b,L){b?this._focusMonitor.focusVia(this._inputElement,b,L):this._inputElement.nativeElement.focus(L)}_onInteractionEvent(b){b.stopPropagation()}_getAnimationClassForCheckStateTransition(b,L){if("NoopAnimations"===this._animationMode)return"";let F="";switch(b){case 0:if(1===L)F="unchecked-checked";else{if(3!=L)return"";F="unchecked-indeterminate"}break;case 2:F=1===L?"unchecked-checked":"unchecked-indeterminate";break;case 1:F=2===L?"checked-unchecked":"checked-indeterminate";break;case 3:F=1===L?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${F}`}_syncIndeterminate(b){const L=this._inputElement;L&&(L.nativeElement.indeterminate=b)}}return M.\u0275fac=function(b){return new(b||M)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(d.tE),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(o.ANIMATION_MODULE_TYPE,8),f.\u0275\u0275directiveInject(i,8))},M.\u0275cmp=f.\u0275\u0275defineComponent({type:M,selectors:[["mat-checkbox"]],viewQuery:function(b,L){if(1&b&&(f.\u0275\u0275viewQuery(h,5),f.\u0275\u0275viewQuery(m.MatRipple,5)),2&b){let F;f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._inputElement=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L.ripple=F.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(b,L){2&b&&(f.\u0275\u0275hostProperty("id",L.id),f.\u0275\u0275attribute("tabindex",null),f.\u0275\u0275classProp("mat-checkbox-indeterminate",L.indeterminate)("mat-checkbox-checked",L.checked)("mat-checkbox-disabled",L.disabled)("mat-checkbox-label-before","before"==L.labelPosition)("_mat-animation-noopable","NoopAnimations"===L._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[f.\u0275\u0275ProvidersFeature([y]),f.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:s,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(b,L){if(1&b&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"label",0,1),f.\u0275\u0275elementStart(2,"span",2),f.\u0275\u0275elementStart(3,"input",3,4),f.\u0275\u0275listener("change",function(ne){return L._onInteractionEvent(ne)})("click",function(ne){return L._onInputClick(ne)}),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(5,"span",5),f.\u0275\u0275element(6,"span",6),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(7,"span",7),f.\u0275\u0275elementStart(8,"span",8),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(9,"svg",9),f.\u0275\u0275element(10,"path",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275element(11,"span",11),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(12,"span",12,13),f.\u0275\u0275listener("cdkObserveContent",function(){return L._onLabelTextChange()}),f.\u0275\u0275elementStart(14,"span",14),f.\u0275\u0275text(15,"\xa0"),f.\u0275\u0275elementEnd(),f.\u0275\u0275projection(16),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&b){const F=f.\u0275\u0275reference(1),ne=f.\u0275\u0275reference(13);f.\u0275\u0275attribute("for",L.inputId),f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-checkbox-inner-container-no-side-margin",!ne.textContent||!ne.textContent.trim()),f.\u0275\u0275advance(1),f.\u0275\u0275property("id",L.inputId)("required",L.required)("checked",L.checked)("disabled",L.disabled)("tabIndex",L.tabIndex),f.\u0275\u0275attribute("value",L.value)("name",L.name)("aria-label",L.ariaLabel||null)("aria-labelledby",L.ariaLabelledby)("aria-checked",L._getAriaChecked())("aria-describedby",L.ariaDescribedby),f.\u0275\u0275advance(2),f.\u0275\u0275property("matRippleTrigger",F)("matRippleDisabled",L._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",f.\u0275\u0275pureFunction1(19,r,"NoopAnimations"===L._animationMode?0:150))}},directives:[m.MatRipple,u.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),M})();const O={provide:v.NG_VALIDATORS,useExisting:(0,f.forwardRef)(()=>w),multi:!0};let w=(()=>{class M extends v.CheckboxRequiredValidator{}return M.\u0275fac=function(){let I;return function(L){return(I||(I=f.\u0275\u0275getInheritedFactory(M)))(L||M)}}(),M.\u0275dir=f.\u0275\u0275defineDirective({type:M,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[f.\u0275\u0275ProvidersFeature([O]),f.\u0275\u0275InheritDefinitionFeature]}),M})(),A=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=f.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=f.\u0275\u0275defineInjector({}),M})(),S=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=f.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=f.\u0275\u0275defineInjector({imports:[[m.MatRippleModule,m.MatCommonModule,u.Q8,A],m.MatCommonModule,A]}),M})()},508:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{AnimationCurves:()=>O,AnimationDurations:()=>w,DateAdapter:()=>le,ErrorStateMatcher:()=>ft,MATERIAL_SANITY_CHECKS:()=>M,MAT_DATE_FORMATS:()=>Oe,MAT_DATE_LOCALE:()=>ie,MAT_DATE_LOCALE_FACTORY:()=>ae,MAT_NATIVE_DATE_FORMATS:()=>gt,MAT_OPTGROUP:()=>Dt,MAT_OPTION_PARENT_COMPONENT:()=>ut,MAT_RIPPLE_GLOBAL_OPTIONS:()=>Z,MatCommonModule:()=>I,MatLine:()=>vt,MatLineModule:()=>_t,MatNativeDateModule:()=>tt,MatOptgroup:()=>Kt,MatOption:()=>Qe,MatOptionModule:()=>qt,MatOptionSelectionChange:()=>xt,MatPseudoCheckbox:()=>$e,MatPseudoCheckboxModule:()=>st,MatRipple:()=>_e,MatRippleModule:()=>Be,NativeDateAdapter:()=>Je,NativeDateModule:()=>Ue,RippleRef:()=>At,RippleRenderer:()=>H,ShowOnDirtyErrorStateMatcher:()=>at,VERSION:()=>D,_MatOptgroupBase:()=>tn,_MatOptionBase:()=>Lt,_countGroupLabelsBeforeOption:()=>mt,_getOptionScrollPosition:()=>Vt,defaultRippleAnimationConfig:()=>Tt,mixinColor:()=>Y,mixinDisableRipple:()=>Q,mixinDisabled:()=>ne,mixinErrorState:()=>$,mixinInitialized:()=>J,mixinTabIndex:()=>te,setLines:()=>yt});var n=p(5e3),f=p(226),m=p(9808),o=p(925),d=p(5664),u=p(3191),h=p(8929),r=p(6498),s=p(1059),i=p(6360),c=p(1159);const l=["*",[["mat-option"],["ng-container"]]],g=["*","mat-option, ng-container"];function y(Ne,Se){if(1&Ne&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&Ne){const ee=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",ee.selected?"checked":"unchecked")("disabled",ee.disabled)}}function E(Ne,Se){if(1&Ne&&(n.\u0275\u0275elementStart(0,"span",5),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ne){const ee=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",ee.group.label,")")}}const T=["*"],D=new n.Version("13.1.1");let O=(()=>{class Ne{}return Ne.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ne.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ne.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ne.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ne})(),w=(()=>{class Ne{}return Ne.COMPLEX="375ms",Ne.ENTERING="225ms",Ne.EXITING="195ms",Ne})();const M=new n.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let I=(()=>{class Ne{constructor(ee,re,Me){this._sanityChecks=re,this._document=Me,this._hasDoneGlobalChecks=!1,ee._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ee){return!(0,o.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ee])}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275inject(d.qm),n.\u0275\u0275inject(M,8),n.\u0275\u0275inject(m.DOCUMENT))},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.vT],f.vT]}),Ne})();function ne(Ne){return class extends Ne{constructor(...Se){super(...Se),this._disabled=!1}get disabled(){return this._disabled}set disabled(Se){this._disabled=(0,u.Ig)(Se)}}}function Y(Ne,Se){return class extends Ne{constructor(...ee){super(...ee),this.defaultColor=Se,this.color=Se}get color(){return this._color}set color(ee){const re=ee||this.defaultColor;re!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),re&&this._elementRef.nativeElement.classList.add(`mat-${re}`),this._color=re)}}}function Q(Ne){return class extends Ne{constructor(...Se){super(...Se),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Se){this._disableRipple=(0,u.Ig)(Se)}}}function te(Ne,Se=0){return class extends Ne{constructor(...ee){super(...ee),this._tabIndex=Se,this.defaultTabIndex=Se}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ee){this._tabIndex=null!=ee?(0,u.su)(ee):this.defaultTabIndex}}}function $(Ne){return class extends Ne{constructor(...Se){super(...Se),this.stateChanges=new h.xQ,this.errorState=!1}updateErrorState(){const Se=this.errorState,ze=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ze!==Se&&(this.errorState=ze,this.stateChanges.next())}}}function J(Ne){return class extends Ne{constructor(...Se){super(...Se),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new r.y(ee=>{this._isInitialized?this._notifySubscriber(ee):this._pendingSubscribers.push(ee)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Se){Se.next(),Se.complete()}}}const ie=new n.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:ae});function ae(){return(0,n.inject)(n.LOCALE_ID)}class le{constructor(){this._localeChanges=new h.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Se){return this.isDateInstance(Se)&&this.isValid(Se)?Se:null}deserialize(Se){return null==Se||this.isDateInstance(Se)&&this.isValid(Se)?Se:this.invalid()}setLocale(Se){this.locale=Se,this._localeChanges.next()}compareDate(Se,ee){return this.getYear(Se)-this.getYear(ee)||this.getMonth(Se)-this.getMonth(ee)||this.getDate(Se)-this.getDate(ee)}sameDate(Se,ee){if(Se&&ee){let re=this.isValid(Se),Me=this.isValid(ee);return re&&Me?!this.compareDate(Se,ee):re==Me}return Se==ee}clampDate(Se,ee,re){return ee&&this.compareDate(Se,ee)<0?ee:re&&this.compareDate(Se,re)>0?re:Se}}const Oe=new n.InjectionToken("mat-date-formats"),Le=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ye(Ne,Se){const ee=Array(Ne);for(let re=0;re{class Ne extends le{constructor(ee,re){super(),this.useUtcForDisplay=!1,super.setLocale(ee)}getYear(ee){return ee.getFullYear()}getMonth(ee){return ee.getMonth()}getDate(ee){return ee.getDate()}getDayOfWeek(ee){return ee.getDay()}getMonthNames(ee){const re=new Intl.DateTimeFormat(this.locale,{month:ee,timeZone:"utc"});return Ye(12,Me=>this._format(re,new Date(2017,Me,1)))}getDateNames(){const ee=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ye(31,re=>this._format(ee,new Date(2017,0,re+1)))}getDayOfWeekNames(ee){const re=new Intl.DateTimeFormat(this.locale,{weekday:ee,timeZone:"utc"});return Ye(7,Me=>this._format(re,new Date(2017,0,Me+1)))}getYearName(ee){const re=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(re,ee)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ee){return this.getDate(this._createDateWithOverflow(this.getYear(ee),this.getMonth(ee)+1,0))}clone(ee){return new Date(ee.getTime())}createDate(ee,re,Me){let ze=this._createDateWithOverflow(ee,re,Me);return ze.getMonth(),ze}today(){return new Date}parse(ee){return"number"==typeof ee?new Date(ee):ee?new Date(Date.parse(ee)):null}format(ee,re){if(!this.isValid(ee))throw Error("NativeDateAdapter: Cannot format invalid date.");const Me=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},re),{timeZone:"utc"}));return this._format(Me,ee)}addCalendarYears(ee,re){return this.addCalendarMonths(ee,12*re)}addCalendarMonths(ee,re){let Me=this._createDateWithOverflow(this.getYear(ee),this.getMonth(ee)+re,this.getDate(ee));return this.getMonth(Me)!=((this.getMonth(ee)+re)%12+12)%12&&(Me=this._createDateWithOverflow(this.getYear(Me),this.getMonth(Me),0)),Me}addCalendarDays(ee,re){return this._createDateWithOverflow(this.getYear(ee),this.getMonth(ee),this.getDate(ee)+re)}toIso8601(ee){return[ee.getUTCFullYear(),this._2digit(ee.getUTCMonth()+1),this._2digit(ee.getUTCDate())].join("-")}deserialize(ee){if("string"==typeof ee){if(!ee)return null;if(Le.test(ee)){let re=new Date(ee);if(this.isValid(re))return re}}return super.deserialize(ee)}isDateInstance(ee){return ee instanceof Date}isValid(ee){return!isNaN(ee.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ee,re,Me){const ze=new Date;return ze.setFullYear(ee,re,Me),ze.setHours(0,0,0,0),ze}_2digit(ee){return("00"+ee).slice(-2)}_format(ee,re){const Me=new Date;return Me.setUTCFullYear(re.getFullYear(),re.getMonth(),re.getDate()),Me.setUTCHours(re.getHours(),re.getMinutes(),re.getSeconds(),re.getMilliseconds()),ee.format(Me)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275inject(ie,8),n.\u0275\u0275inject(o.t4))},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac}),Ne})();const gt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ue=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:le,useClass:Je}],imports:[[o.ud]]}),Ne})(),tt=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:Oe,useValue:gt}],imports:[[Ue]]}),Ne})(),at=(()=>{class Ne{isErrorState(ee,re){return!!(ee&&ee.invalid&&(ee.dirty||re&&re.submitted))}}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac}),Ne})(),ft=(()=>{class Ne{isErrorState(ee,re){return!!(ee&&ee.invalid&&(ee.touched||re&&re.submitted))}}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),vt=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ne})();function yt(Ne,Se,ee="mat"){Ne.changes.pipe((0,s.O)(Ne)).subscribe(({length:re})=>{ot(Se,`${ee}-2-line`,!1),ot(Se,`${ee}-3-line`,!1),ot(Se,`${ee}-multi-line`,!1),2===re||3===re?ot(Se,`${ee}-${re}-line`,!0):re>3&&ot(Se,`${ee}-multi-line`,!0)})}function ot(Ne,Se,ee){Ne.nativeElement.classList.toggle(Se,ee)}let _t=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[I],I]}),Ne})();class At{constructor(Se,ee,re){this._renderer=Se,this.element=ee,this.config=re,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tt={enterDuration:225,exitDuration:150},Et=(0,o.i$)({passive:!0}),Ee=["mousedown","touchstart"],fe=["mouseup","mouseleave","touchend","touchcancel"];class H{constructor(Se,ee,re,Me){this._target=Se,this._ngZone=ee,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Me.isBrowser&&(this._containerElement=(0,u.fI)(re))}fadeInRipple(Se,ee,re={}){const Me=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ze=Object.assign(Object.assign({},Tt),re.animation);re.centered&&(Se=Me.left+Me.width/2,ee=Me.top+Me.height/2);const It=re.radius||function(Ne,Se,ee){const re=Math.max(Math.abs(Ne-ee.left),Math.abs(Ne-ee.right)),Me=Math.max(Math.abs(Se-ee.top),Math.abs(Se-ee.bottom));return Math.sqrt(re*re+Me*Me)}(Se,ee,Me),Qt=Se-Me.left,cn=ee-Me.top,An=ze.enterDuration,lt=document.createElement("div");lt.classList.add("mat-ripple-element"),lt.style.left=Qt-It+"px",lt.style.top=cn-It+"px",lt.style.height=2*It+"px",lt.style.width=2*It+"px",null!=re.color&&(lt.style.backgroundColor=re.color),lt.style.transitionDuration=`${An}ms`,this._containerElement.appendChild(lt),window.getComputedStyle(lt).getPropertyValue("opacity"),lt.style.transform="scale(1)";const ct=new At(this,lt,re);return ct.state=0,this._activeRipples.add(ct),re.persistent||(this._mostRecentTransientRipple=ct),this._runTimeoutOutsideZone(()=>{const He=ct===this._mostRecentTransientRipple;ct.state=1,!re.persistent&&(!He||!this._isPointerDown)&&ct.fadeOut()},An),ct}fadeOutRipple(Se){const ee=this._activeRipples.delete(Se);if(Se===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!ee)return;const re=Se.element,Me=Object.assign(Object.assign({},Tt),Se.config.animation);re.style.transitionDuration=`${Me.exitDuration}ms`,re.style.opacity="0",Se.state=2,this._runTimeoutOutsideZone(()=>{Se.state=3,re.remove()},Me.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Se=>Se.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Se=>{Se.config.persistent||Se.fadeOut()})}setupTriggerEvents(Se){const ee=(0,u.fI)(Se);!ee||ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ee,this._registerEvents(Ee))}handleEvent(Se){"mousedown"===Se.type?this._onMousedown(Se):"touchstart"===Se.type?this._onTouchStart(Se):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(fe),this._pointerUpEventsRegistered=!0)}_onMousedown(Se){const ee=(0,d.X6)(Se),re=this._lastTouchStartEvent&&Date.now(){!Se.config.persistent&&(1===Se.state||Se.config.terminateOnPointerUp&&0===Se.state)&&Se.fadeOut()}))}_runTimeoutOutsideZone(Se,ee=0){this._ngZone.runOutsideAngular(()=>setTimeout(Se,ee))}_registerEvents(Se){this._ngZone.runOutsideAngular(()=>{Se.forEach(ee=>{this._triggerElement.addEventListener(ee,this,Et)})})}_removeTriggerEvents(){this._triggerElement&&(Ee.forEach(Se=>{this._triggerElement.removeEventListener(Se,this,Et)}),this._pointerUpEventsRegistered&&fe.forEach(Se=>{this._triggerElement.removeEventListener(Se,this,Et)}))}}const Z=new n.InjectionToken("mat-ripple-global-options");let _e=(()=>{class Ne{constructor(ee,re,Me,ze,It){this._elementRef=ee,this._animationMode=It,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ze||{},this._rippleRenderer=new H(this,re,ee,Me)}get disabled(){return this._disabled}set disabled(ee){ee&&this.fadeOutAllNonPersistent(),this._disabled=ee,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ee){this._trigger=ee,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ee,re=0,Me){return"number"==typeof ee?this._rippleRenderer.fadeInRipple(ee,re,Object.assign(Object.assign({},this.rippleConfig),Me)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),ee))}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(o.t4),n.\u0275\u0275directiveInject(Z,8),n.\u0275\u0275directiveInject(i.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ee,re){2&ee&&n.\u0275\u0275classProp("mat-ripple-unbounded",re.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ne})(),Be=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[I,o.ud],I]}),Ne})(),$e=(()=>{class Ne{constructor(ee){this._animationMode=ee,this.state="unchecked",this.disabled=!1}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275directiveInject(i.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ee,re){2&ee&&n.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===re.state)("mat-pseudo-checkbox-checked","checked"===re.state)("mat-pseudo-checkbox-disabled",re.disabled)("_mat-animation-noopable","NoopAnimations"===re._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ee,re){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ne})(),st=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[I]]}),Ne})();const ut=new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),St=ne(class{});let Xt=0,tn=(()=>{class Ne extends St{constructor(ee){var re;super(),this._labelId="mat-optgroup-label-"+Xt++,this._inert=null!==(re=null==ee?void 0:ee.inertGroups)&&void 0!==re&&re}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275directiveInject(ut,8))},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,inputs:{label:"label"},features:[n.\u0275\u0275InheritDefinitionFeature]}),Ne})();const Dt=new n.InjectionToken("MatOptgroup");let Kt=(()=>{class Ne extends tn{}return Ne.\u0275fac=function(){let Se;return function(re){return(Se||(Se=n.\u0275\u0275getInheritedFactory(Ne)))(re||Ne)}}(),Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(ee,re){2&ee&&(n.\u0275\u0275attribute("role",re._inert?null:"group")("aria-disabled",re._inert?null:re.disabled.toString())("aria-labelledby",re._inert?null:re._labelId),n.\u0275\u0275classProp("mat-optgroup-disabled",re.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[n.\u0275\u0275ProvidersFeature([{provide:Dt,useExisting:Ne}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:g,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(ee,re){1&ee&&(n.\u0275\u0275projectionDef(l),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275text(1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,1)),2&ee&&(n.\u0275\u0275property("id",re._labelId),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("",re.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ne})(),et=0;class xt{constructor(Se,ee=!1){this.source=Se,this.isUserInput=ee}}let Lt=(()=>{class Ne{constructor(ee,re,Me,ze){this._element=ee,this._changeDetectorRef=re,this._parent=Me,this.group=ze,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+et++,this.onSelectionChange=new n.EventEmitter,this._stateChanges=new h.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ee){this._disabled=(0,u.Ig)(ee)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ee,re){const Me=this._getHostElement();"function"==typeof Me.focus&&Me.focus(re)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ee){(ee.keyCode===c.K5||ee.keyCode===c.L_)&&!(0,c.Vb)(ee)&&(this._selectViaInteraction(),ee.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ee=this.viewValue;ee!==this._mostRecentViewValue&&(this._mostRecentViewValue=ee,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ee=!1){this.onSelectionChange.emit(new xt(this,ee))}}return Ne.\u0275fac=function(ee){n.\u0275\u0275invalidFactory()},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ne})(),Qe=(()=>{class Ne extends Lt{constructor(ee,re,Me,ze){super(ee,re,Me,ze)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(ut,8),n.\u0275\u0275directiveInject(Dt,8))},Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ee,re){1&ee&&n.\u0275\u0275listener("click",function(){return re._selectViaInteraction()})("keydown",function(ze){return re._handleKeydown(ze)}),2&ee&&(n.\u0275\u0275hostProperty("id",re.id),n.\u0275\u0275attribute("tabindex",re._getTabIndex())("aria-selected",re._getAriaSelected())("aria-disabled",re.disabled.toString()),n.\u0275\u0275classProp("mat-selected",re.selected)("mat-option-multiple",re.multiple)("mat-active",re.active)("mat-option-disabled",re.disabled))},exportAs:["matOption"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:T,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ee,re){1&ee&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,y,1,2,"mat-pseudo-checkbox",0),n.\u0275\u0275elementStart(1,"span",1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(3,E,2,1,"span",2),n.\u0275\u0275element(4,"div",3)),2&ee&&(n.\u0275\u0275property("ngIf",re.multiple),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",re.group&&re.group._inert),n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",re._getHostElement())("matRippleDisabled",re.disabled||re.disableRipple))},directives:[m.NgIf,_e,$e],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ne})();function mt(Ne,Se,ee){if(ee.length){let re=Se.toArray(),Me=ee.toArray(),ze=0;for(let It=0;Itee+re?Math.max(0,Ne-re+Se):ee}let qt=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[[Be,m.CommonModule,I,st]]}),Ne})()},4703:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{DateRange:()=>At,DefaultMatCalendarRangeStrategy:()=>Z,MAT_DATEPICKER_SCROLL_STRATEGY:()=>Se,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY:()=>ee,MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>re,MAT_DATEPICKER_VALIDATORS:()=>He,MAT_DATEPICKER_VALUE_ACCESSOR:()=>ct,MAT_DATE_RANGE_SELECTION_STRATEGY:()=>U,MAT_RANGE_DATE_SELECTION_MODEL_FACTORY:()=>H,MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER:()=>x,MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY:()=>Ee,MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER:()=>fe,MatCalendar:()=>Vt,MatCalendarBody:()=>ft,MatCalendarCell:()=>at,MatCalendarHeader:()=>mt,MatDateRangeInput:()=>Ti,MatDateRangePicker:()=>qn,MatDateSelectionModel:()=>Tt,MatDatepicker:()=>Qt,MatDatepickerActions:()=>xe,MatDatepickerApply:()=>Vi,MatDatepickerCancel:()=>ci,MatDatepickerContent:()=>ze,MatDatepickerInput:()=>pt,MatDatepickerInputEvent:()=>cn,MatDatepickerIntl:()=>Lt,MatDatepickerModule:()=>Ze,MatDatepickerToggle:()=>un,MatDatepickerToggleIcon:()=>Ot,MatEndDate:()=>Oi,MatMonthView:()=>st,MatMultiYearView:()=>Xt,MatRangeDateSelectionModel:()=>Et,MatSingleDateSelectionModel:()=>Bt,MatStartDate:()=>ji,MatYearView:()=>xt,matDatepickerAnimations:()=>qt,yearsPerPage:()=>ut,yearsPerRow:()=>St});var n=p(5664),f=p(1314),v=p(7429),m=p(9808),o=p(5e3),d=p(7423),u=p(9071),h=p(508),r=p(8929),s=p(2654),i=p(6787),c=p(1086),l=p(1159),g=p(2986),y=p(1059),E=p(2198),T=p(226),D=p(3191),O=p(925),w=p(1777),A=p(3075),S=p(7322),M=p(7531);const I=["mat-calendar-body",""];function b(ue,Re){if(1&ue&&(o.\u0275\u0275elementStart(0,"tr",2),o.\u0275\u0275elementStart(1,"td",3),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&ue){const B=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("padding-top",B._cellPadding)("padding-bottom",B._cellPadding),o.\u0275\u0275attribute("colspan",B.numCols),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",B.label," ")}}function L(ue,Re){if(1&ue&&(o.\u0275\u0275elementStart(0,"td",3),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&ue){const B=o.\u0275\u0275nextContext(2);o.\u0275\u0275styleProp("padding-top",B._cellPadding)("padding-bottom",B._cellPadding),o.\u0275\u0275attribute("colspan",B._firstRowOffset),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",B._firstRowOffset>=B.labelMinRequiredCells?B.label:""," ")}}function F(ue,Re){if(1&ue){const B=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"td",7),o.\u0275\u0275listener("click",function(Pe){const Wt=o.\u0275\u0275restoreView(B).$implicit;return o.\u0275\u0275nextContext(2)._cellClicked(Wt,Pe)}),o.\u0275\u0275elementStart(1,"div",8),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(3,"div",9),o.\u0275\u0275elementEnd()}if(2&ue){const B=Re.$implicit,de=Re.index,Pe=o.\u0275\u0275nextContext().index,Xe=o.\u0275\u0275nextContext();o.\u0275\u0275styleProp("width",Xe._cellWidth)("padding-top",Xe._cellPadding)("padding-bottom",Xe._cellPadding),o.\u0275\u0275classProp("mat-calendar-body-disabled",!B.enabled)("mat-calendar-body-active",Xe._isActiveCell(Pe,de))("mat-calendar-body-range-start",Xe._isRangeStart(B.compareValue))("mat-calendar-body-range-end",Xe._isRangeEnd(B.compareValue))("mat-calendar-body-in-range",Xe._isInRange(B.compareValue))("mat-calendar-body-comparison-bridge-start",Xe._isComparisonBridgeStart(B.compareValue,Pe,de))("mat-calendar-body-comparison-bridge-end",Xe._isComparisonBridgeEnd(B.compareValue,Pe,de))("mat-calendar-body-comparison-start",Xe._isComparisonStart(B.compareValue))("mat-calendar-body-comparison-end",Xe._isComparisonEnd(B.compareValue))("mat-calendar-body-in-comparison-range",Xe._isInComparisonRange(B.compareValue))("mat-calendar-body-preview-start",Xe._isPreviewStart(B.compareValue))("mat-calendar-body-preview-end",Xe._isPreviewEnd(B.compareValue))("mat-calendar-body-in-preview",Xe._isInPreview(B.compareValue)),o.\u0275\u0275property("ngClass",B.cssClasses)("tabindex",Xe._isActiveCell(Pe,de)?0:-1),o.\u0275\u0275attribute("data-mat-row",Pe)("data-mat-col",de)("aria-label",B.ariaLabel)("aria-disabled",!B.enabled||null)("aria-selected",Xe._isSelected(B.compareValue))("aria-current",Xe.todayValue===B.compareValue?"date":null),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("mat-calendar-body-selected",Xe._isSelected(B.compareValue))("mat-calendar-body-comparison-identical",Xe._isComparisonIdentical(B.compareValue))("mat-calendar-body-today",Xe.todayValue===B.compareValue),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",B.displayValue," ")}}function ne(ue,Re){if(1&ue&&(o.\u0275\u0275elementStart(0,"tr",4),o.\u0275\u0275template(1,L,2,6,"td",5),o.\u0275\u0275template(2,F,4,47,"td",6),o.\u0275\u0275elementEnd()),2&ue){const B=Re.$implicit,de=Re.index,Pe=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",0===de&&Pe._firstRowOffset),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",B)}}function Y(ue,Re){if(1&ue&&(o.\u0275\u0275elementStart(0,"th",5),o.\u0275\u0275elementStart(1,"abbr",6),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&ue){const B=Re.$implicit;o.\u0275\u0275attribute("aria-label",B.long),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("title",B.long),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(B.narrow)}}const Q=["*"];function te(ue,Re){}function $(ue,Re){if(1&ue){const B=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-month-view",5),o.\u0275\u0275listener("activeDateChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext().activeDate=Pe})("_userSelection",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._dateSelected(Pe)}),o.\u0275\u0275elementEnd()}if(2&ue){const B=o.\u0275\u0275nextContext();o.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)("comparisonStart",B.comparisonStart)("comparisonEnd",B.comparisonEnd)}}function J(ue,Re){if(1&ue){const B=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-year-view",6),o.\u0275\u0275listener("activeDateChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext().activeDate=Pe})("monthSelected",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._monthSelectedInYearView(Pe)})("selectedChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._goToDateInView(Pe,"month")}),o.\u0275\u0275elementEnd()}if(2&ue){const B=o.\u0275\u0275nextContext();o.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)}}function ie(ue,Re){if(1&ue){const B=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-multi-year-view",7),o.\u0275\u0275listener("activeDateChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext().activeDate=Pe})("yearSelected",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._yearSelectedInMultiYearView(Pe)})("selectedChange",function(Pe){return o.\u0275\u0275restoreView(B),o.\u0275\u0275nextContext()._goToDateInView(Pe,"year")}),o.\u0275\u0275elementEnd()}if(2&ue){const B=o.\u0275\u0275nextContext();o.\u0275\u0275property("activeDate",B.activeDate)("selected",B.selected)("dateFilter",B.dateFilter)("maxDate",B.maxDate)("minDate",B.minDate)("dateClass",B.dateClass)}}function ae(ue,Re){}const le=["button"];function Oe(ue,Re){1&ue&&(o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(0,"svg",3),o.\u0275\u0275element(1,"path",4),o.\u0275\u0275elementEnd())}const Le=[[["","matDatepickerToggleIcon",""]]],Ye=["[matDatepickerToggleIcon]"],Je=[[["input","matStartDate",""]],[["input","matEndDate",""]]],gt=["input[matStartDate]","input[matEndDate]"];function Ue(ue,Re){1&ue&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275projection(1),o.\u0275\u0275elementEnd())}class at{constructor(Re,B,de,Pe,Xe={},Wt=Re,Ft){this.value=Re,this.displayValue=B,this.ariaLabel=de,this.enabled=Pe,this.cssClasses=Xe,this.compareValue=Wt,this.rawValue=Ft}}let ft=(()=>{class ue{constructor(B,de){this._elementRef=B,this._ngZone=de,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new o.EventEmitter,this.previewChange=new o.EventEmitter,this._enterHandler=Pe=>{if(this._skipNextFocus&&"focus"===Pe.type)this._skipNextFocus=!1;else if(Pe.target&&this.isRange){const Xe=this._getCellFromElement(Pe.target);Xe&&this._ngZone.run(()=>this.previewChange.emit({value:Xe.enabled?Xe:null,event:Pe}))}},this._leaveHandler=Pe=>{null!==this.previewEnd&&this.isRange&&Pe.target&&vt(Pe.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Pe}))},de.runOutsideAngular(()=>{const Pe=B.nativeElement;Pe.addEventListener("mouseenter",this._enterHandler,!0),Pe.addEventListener("focus",this._enterHandler,!0),Pe.addEventListener("mouseleave",this._leaveHandler,!0),Pe.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(B,de){B.enabled&&this.selectedValueChange.emit({value:B.value,event:de})}_isSelected(B){return this.startValue===B||this.endValue===B}ngOnChanges(B){const de=B.numCols,{rows:Pe,numCols:Xe}=this;(B.rows||de)&&(this._firstRowOffset=Pe&&Pe.length&&Pe[0].length?Xe-Pe[0].length:0),(B.cellAspectRatio||de||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Xe+"%"),(de||!this._cellWidth)&&(this._cellWidth=100/Xe+"%")}ngOnDestroy(){const B=this._elementRef.nativeElement;B.removeEventListener("mouseenter",this._enterHandler,!0),B.removeEventListener("focus",this._enterHandler,!0),B.removeEventListener("mouseleave",this._leaveHandler,!0),B.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(B,de){let Pe=B*this.numCols+de;return B&&(Pe-=this._firstRowOffset),Pe==this.activeCell}_focusActiveCell(B=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{const de=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");de&&(B||(this._skipNextFocus=!0),de.focus())})})}_isRangeStart(B){return yt(B,this.startValue,this.endValue)}_isRangeEnd(B){return ot(B,this.startValue,this.endValue)}_isInRange(B){return _t(B,this.startValue,this.endValue,this.isRange)}_isComparisonStart(B){return yt(B,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(B,de,Pe){if(!this._isComparisonStart(B)||this._isRangeStart(B)||!this._isInRange(B))return!1;let Xe=this.rows[de][Pe-1];if(!Xe){const Wt=this.rows[de-1];Xe=Wt&&Wt[Wt.length-1]}return Xe&&!this._isRangeEnd(Xe.compareValue)}_isComparisonBridgeEnd(B,de,Pe){if(!this._isComparisonEnd(B)||this._isRangeEnd(B)||!this._isInRange(B))return!1;let Xe=this.rows[de][Pe+1];if(!Xe){const Wt=this.rows[de+1];Xe=Wt&&Wt[0]}return Xe&&!this._isRangeStart(Xe.compareValue)}_isComparisonEnd(B){return ot(B,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(B){return _t(B,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(B){return this.comparisonStart===this.comparisonEnd&&B===this.comparisonStart}_isPreviewStart(B){return yt(B,this.previewStart,this.previewEnd)}_isPreviewEnd(B){return ot(B,this.previewStart,this.previewEnd)}_isInPreview(B){return _t(B,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(B){let de;if(vt(B)?de=B:vt(B.parentNode)&&(de=B.parentNode),de){const Pe=de.getAttribute("data-mat-row"),Xe=de.getAttribute("data-mat-col");if(Pe&&Xe)return this.rows[parseInt(Pe)][parseInt(Xe)]}return null}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[o.\u0275\u0275NgOnChangesFeature],attrs:I,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(B,de){1&B&&(o.\u0275\u0275template(0,b,3,6,"tr",0),o.\u0275\u0275template(1,ne,3,2,"tr",1)),2&B&&(o.\u0275\u0275property("ngIf",de._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),ue})();function vt(ue){return"TD"===ue.nodeName}function yt(ue,Re,B){return null!==B&&Re!==B&&ue=Re&&ue===B}function _t(ue,Re,B,de){return de&&null!==Re&&null!==B&&Re!==B&&ue>=Re&&ue<=B}class At{constructor(Re,B){this.start=Re,this.end=B}}let Tt=(()=>{class ue{constructor(B,de){this.selection=B,this._adapter=de,this._selectionChanged=new r.xQ,this.selectionChanged=this._selectionChanged,this.selection=B}updateSelection(B,de){const Pe=this.selection;this.selection=B,this._selectionChanged.next({selection:B,source:de,oldValue:Pe})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(B){return this._adapter.isDateInstance(B)&&this._adapter.isValid(B)}}return ue.\u0275fac=function(B){o.\u0275\u0275invalidFactory()},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Bt=(()=>{class ue extends Tt{constructor(B){super(null,B)}add(B){super.updateSelection(B,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const B=new ue(this._adapter);return B.updateSelection(this.selection,this),B}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),Et=(()=>{class ue extends Tt{constructor(B){super(new At(null,null),B)}add(B){let{start:de,end:Pe}=this.selection;null==de?de=B:null==Pe?Pe=B:(de=B,Pe=null),super.updateSelection(new At(de,Pe),this)}isValid(){const{start:B,end:de}=this.selection;return null==B&&null==de||(null!=B&&null!=de?this._isValidDateInstance(B)&&this._isValidDateInstance(de)&&this._adapter.compareDate(B,de)<=0:(null==B||this._isValidDateInstance(B))&&(null==de||this._isValidDateInstance(de)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const B=new ue(this._adapter);return B.updateSelection(this.selection,this),B}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();function Ee(ue,Re){return ue||new Bt(Re)}const fe={provide:Tt,deps:[[new o.Optional,new o.SkipSelf,Tt],h.DateAdapter],useFactory:Ee};function H(ue,Re){return ue||new Et(Re)}const x={provide:Tt,deps:[[new o.Optional,new o.SkipSelf,Tt],h.DateAdapter],useFactory:H},U=new o.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY");let Z=(()=>{class ue{constructor(B){this._dateAdapter=B}selectionFinished(B,de){let{start:Pe,end:Xe}=de;return null==Pe?Pe=B:null==Xe&&B&&this._dateAdapter.compareDate(B,Pe)>=0?Xe=B:(Pe=B,Xe=null),new At(Pe,Xe)}createPreview(B,de){let Pe=null,Xe=null;return de.start&&!de.end&&B&&(Pe=de.start,Xe=B),new At(Pe,Xe)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275inject(h.DateAdapter))},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})();const Be={provide:U,deps:[[new o.Optional,new o.SkipSelf,U],h.DateAdapter],useFactory:function(ue,Re){return ue||new Z(Re)}};let st=(()=>{class ue{constructor(B,de,Pe,Xe,Wt){this._changeDetectorRef=B,this._dateFormats=de,this._dateAdapter=Pe,this._dir=Xe,this._rangeStrategy=Wt,this._rerenderSubscription=s.w.EMPTY,this.selectedChange=new o.EventEmitter,this._userSelection=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){const de=this._activeDate,Pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Pe,this.minDate,this.maxDate),this._hasSameMonthAndYear(de,this._activeDate)||this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnChanges(B){const de=B.comparisonStart||B.comparisonEnd;de&&!de.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(B){const de=B.value,Pe=this._dateAdapter.getYear(this.activeDate),Xe=this._dateAdapter.getMonth(this.activeDate),Wt=this._dateAdapter.createDate(Pe,Xe,de);let Ft,Ht;this._selected instanceof At?(Ft=this._getDateInCurrentMonth(this._selected.start),Ht=this._getDateInCurrentMonth(this._selected.end)):Ft=Ht=this._getDateInCurrentMonth(this._selected),(Ft!==de||Ht!==de)&&this.selectedChange.emit(Wt),this._userSelection.emit({value:Wt,event:B.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(B){const de=this._activeDate,Pe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Pe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Pe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case l.Ku:this.activeDate=B.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case l.VM:this.activeDate=B.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case l.K5:case l.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&B.preventDefault());case l.hY:return void(null!=this._previewEnd&&!(0,l.Vb)(B)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:B}),B.preventDefault(),B.stopPropagation()));default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let B=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(B)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(B){this._matCalendarBody._focusActiveCell(B)}_previewChanged({event:B,value:de}){if(this._rangeStrategy){const Xe=this._rangeStrategy.createPreview(de?de.rawValue:null,this.selected,B);this._previewStart=this._getCellCompareValue(Xe.start),this._previewEnd=this._getCellCompareValue(Xe.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const B=this._dateAdapter.getFirstDayOfWeek(),de=this._dateAdapter.getDayOfWeekNames("narrow");let Xe=this._dateAdapter.getDayOfWeekNames("long").map((Wt,Ft)=>({long:Wt,narrow:de[Ft]}));this._weekdays=Xe.slice(B).concat(Xe.slice(0,B))}_createWeekCells(){const B=this._dateAdapter.getNumDaysInMonth(this.activeDate),de=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Pe=0,Xe=this._firstWeekOffset;Pe=0)&&(!this.maxDate||this._dateAdapter.compareDate(B,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(B))}_getDateInCurrentMonth(B){return B&&this._hasSameMonthAndYear(B,this.activeDate)?this._dateAdapter.getDate(B):null}_hasSameMonthAndYear(B,de){return!(!B||!de||this._dateAdapter.getMonth(B)!=this._dateAdapter.getMonth(de)||this._dateAdapter.getYear(B)!=this._dateAdapter.getYear(de))}_getCellCompareValue(B){if(B){const de=this._dateAdapter.getYear(B),Pe=this._dateAdapter.getMonth(B),Xe=this._dateAdapter.getDate(B);return new Date(de,Pe,Xe).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(B){B instanceof At?(this._rangeStart=this._getCellCompareValue(B.start),this._rangeEnd=this._getCellCompareValue(B.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(B),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(B){return!this.dateFilter||this.dateFilter(B)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(T.Is,8),o.\u0275\u0275directiveInject(U,8))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-month-view"]],viewQuery:function(B,de){if(1&B&&o.\u0275\u0275viewQuery(ft,5),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de._matCalendarBody=Pe.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[o.\u0275\u0275NgOnChangesFeature],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(B,de){1&B&&(o.\u0275\u0275elementStart(0,"table",0),o.\u0275\u0275elementStart(1,"thead",1),o.\u0275\u0275elementStart(2,"tr"),o.\u0275\u0275template(3,Y,3,3,"th",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"tr"),o.\u0275\u0275element(5,"th",3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"tbody",4),o.\u0275\u0275listener("selectedValueChange",function(Xe){return de._dateSelected(Xe)})("previewChange",function(Xe){return de._previewChanged(Xe)})("keyup",function(Xe){return de._handleCalendarBodyKeyup(Xe)})("keydown",function(Xe){return de._handleCalendarBodyKeydown(Xe)}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275advance(3),o.\u0275\u0275property("ngForOf",de._weekdays),o.\u0275\u0275advance(3),o.\u0275\u0275property("label",de._monthLabel)("rows",de._weeks)("todayValue",de._todayDate)("startValue",de._rangeStart)("endValue",de._rangeEnd)("comparisonStart",de._comparisonRangeStart)("comparisonEnd",de._comparisonRangeEnd)("previewStart",de._previewStart)("previewEnd",de._previewEnd)("isRange",de._isRange)("labelMinRequiredCells",3)("activeCell",de._dateAdapter.getDate(de.activeDate)-1))},directives:[m.NgForOf,ft],encapsulation:2,changeDetection:0}),ue})();const ut=24,St=4;let Xt=(()=>{class ue{constructor(B,de,Pe){this._changeDetectorRef=B,this._dateAdapter=de,this._dir=Pe,this._rerenderSubscription=s.w.EMPTY,this.selectedChange=new o.EventEmitter,this.yearSelected=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){let de=this._activeDate;const Pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Pe,this.minDate,this.maxDate),tn(this._dateAdapter,de,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setSelectedYear(B)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const de=this._dateAdapter.getYear(this._activeDate)-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Pe=0,Xe=[];Pethis._createCellForYear(Wt))),Xe=[]);this._changeDetectorRef.markForCheck()}_yearSelected(B){const de=B.value;this.yearSelected.emit(this._dateAdapter.createDate(de,0,1));let Pe=this._dateAdapter.getMonth(this.activeDate),Xe=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(de,Pe,1));this.selectedChange.emit(this._dateAdapter.createDate(de,Pe,Math.min(this._dateAdapter.getDate(this.activeDate),Xe)))}_handleCalendarBodyKeydown(B){const de=this._activeDate,Pe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Pe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Pe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-St);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ut-Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case l.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10*-ut:-ut);break;case l.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10*ut:ut);break;case l.K5:case l.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_getActiveCell(){return Dt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(B){const de=this._dateAdapter.createDate(B,0,1),Pe=this._dateAdapter.getYearName(de),Xe=this.dateClass?this.dateClass(de,"multi-year"):void 0;return new at(B,Pe,Pe,this._shouldEnableYear(B),Xe)}_shouldEnableYear(B){if(null==B||this.maxDate&&B>this._dateAdapter.getYear(this.maxDate)||this.minDate&&B{class ue{constructor(B,de,Pe,Xe){this._changeDetectorRef=B,this._dateFormats=de,this._dateAdapter=Pe,this._dir=Xe,this._rerenderSubscription=s.w.EMPTY,this.selectedChange=new o.EventEmitter,this.monthSelected=new o.EventEmitter,this.activeDateChange=new o.EventEmitter,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(B){let de=this._activeDate;const Pe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Pe,this.minDate,this.maxDate),this._dateAdapter.getYear(de)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B)),this._setSelectedMonth(B)}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,y.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(B){const de=B.value,Pe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),de,1);this.monthSelected.emit(Pe);const Xe=this._dateAdapter.getNumDaysInMonth(Pe);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),de,Math.min(this._dateAdapter.getDate(this.activeDate),Xe)))}_handleCalendarBodyKeydown(B){const de=this._activeDate,Pe=this._isRtl();switch(B.keyCode){case l.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Pe?1:-1);break;case l.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Pe?-1:1);break;case l.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case l.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case l.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case l.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case l.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?-10:-1);break;case l.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,B.altKey?10:1);break;case l.K5:case l.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(de,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),B.preventDefault()}_handleCalendarBodyKeyup(B){(B.keyCode===l.L_||B.keyCode===l.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:B}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let B=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(de=>de.map(Pe=>this._createCellForMonth(Pe,B[Pe]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(B){return B&&this._dateAdapter.getYear(B)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(B):null}_createCellForMonth(B,de){const Pe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),B,1),Xe=this._dateAdapter.format(Pe,this._dateFormats.display.monthYearA11yLabel),Wt=this.dateClass?this.dateClass(Pe,"year"):void 0;return new at(B,de.toLocaleUpperCase(),Xe,this._shouldEnableMonth(B),Wt)}_shouldEnableMonth(B){const de=this._dateAdapter.getYear(this.activeDate);if(null==B||this._isYearAndMonthAfterMaxDate(de,B)||this._isYearAndMonthBeforeMinDate(de,B))return!1;if(!this.dateFilter)return!0;for(let Xe=this._dateAdapter.createDate(de,B,1);this._dateAdapter.getMonth(Xe)==B;Xe=this._dateAdapter.addCalendarDays(Xe,1))if(this.dateFilter(Xe))return!0;return!1}_isYearAndMonthAfterMaxDate(B,de){if(this.maxDate){const Pe=this._dateAdapter.getYear(this.maxDate),Xe=this._dateAdapter.getMonth(this.maxDate);return B>Pe||B===Pe&&de>Xe}return!1}_isYearAndMonthBeforeMinDate(B,de){if(this.minDate){const Pe=this._dateAdapter.getYear(this.minDate),Xe=this._dateAdapter.getMonth(this.minDate);return B{class ue{constructor(){this.changes=new r.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(B,de){return`${B} \u2013 ${de}`}}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275prov=o.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),Qe=0,mt=(()=>{class ue{constructor(B,de,Pe,Xe,Wt){this._intl=B,this.calendar=de,this._dateAdapter=Pe,this._dateFormats=Xe,this._buttonDescriptionId="mat-calendar-button-"+Qe++,this.calendar.stateChanges.subscribe(()=>Wt.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const de=this._dateAdapter.getYear(this.calendar.activeDate)-Dt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Pe=de+ut-1,Xe=this._dateAdapter.getYearName(this._dateAdapter.createDate(de,0,1)),Wt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Pe,0,1));return this._intl.formatYearRange(Xe,Wt)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-ut)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:ut)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(B,de){return"month"==this.calendar.currentView?this._dateAdapter.getYear(B)==this._dateAdapter.getYear(de)&&this._dateAdapter.getMonth(B)==this._dateAdapter.getMonth(de):"year"==this.calendar.currentView?this._dateAdapter.getYear(B)==this._dateAdapter.getYear(de):tn(this._dateAdapter,B,de,this.calendar.minDate,this.calendar.maxDate)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(Lt),o.\u0275\u0275directiveInject((0,o.forwardRef)(()=>Vt)),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Q,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(B,de){1&B&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275elementStart(1,"div",1),o.\u0275\u0275elementStart(2,"button",2),o.\u0275\u0275listener("click",function(){return de.currentPeriodClicked()}),o.\u0275\u0275elementStart(3,"span"),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275namespaceSVG(),o.\u0275\u0275elementStart(5,"svg",3),o.\u0275\u0275element(6,"polygon",4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275namespaceHTML(),o.\u0275\u0275element(7,"div",5),o.\u0275\u0275projection(8),o.\u0275\u0275elementStart(9,"button",6),o.\u0275\u0275listener("click",function(){return de.previousClicked()}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(10,"button",7),o.\u0275\u0275listener("click",function(){return de.nextClicked()}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275advance(2),o.\u0275\u0275attribute("aria-label",de.periodButtonLabel)("aria-describedby",de._buttonDescriptionId),o.\u0275\u0275advance(1),o.\u0275\u0275attribute("id",de._buttonDescriptionId),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(de.periodButtonText),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("mat-calendar-invert","month"!==de.calendar.currentView),o.\u0275\u0275advance(4),o.\u0275\u0275property("disabled",!de.previousEnabled()),o.\u0275\u0275attribute("aria-label",de.prevButtonLabel),o.\u0275\u0275advance(1),o.\u0275\u0275property("disabled",!de.nextEnabled()),o.\u0275\u0275attribute("aria-label",de.nextButtonLabel))},directives:[d.MatButton,n.Qr],encapsulation:2,changeDetection:0}),ue})(),Vt=(()=>{class ue{constructor(B,de,Pe,Xe){this._dateAdapter=de,this._dateFormats=Pe,this._changeDetectorRef=Xe,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.EventEmitter,this.yearSelected=new o.EventEmitter,this.monthSelected=new o.EventEmitter,this.viewChanged=new o.EventEmitter(!0),this._userSelection=new o.EventEmitter,this.stateChanges=new r.xQ,this._intlChanges=B.changes.subscribe(()=>{Xe.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(B){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get selected(){return this._selected}set selected(B){this._selected=B instanceof At?B:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get minDate(){return this._minDate}set minDate(B){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get maxDate(){return this._maxDate}set maxDate(B){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get activeDate(){return this._clampedActiveDate}set activeDate(B){this._clampedActiveDate=this._dateAdapter.clampDate(B,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(B){const de=this._currentView!==B?B:null;this._currentView=B,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),de&&this.viewChanged.emit(de)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||mt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(B){const de=B.minDate||B.maxDate||B.dateFilter;if(de&&!de.firstChange){const Pe=this._getCurrentViewComponent();Pe&&(this._changeDetectorRef.detectChanges(),Pe._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(B){const de=B.value;(this.selected instanceof At||de&&!this._dateAdapter.sameDate(de,this.selected))&&this.selectedChange.emit(de),this._userSelection.emit(B)}_yearSelectedInMultiYearView(B){this.yearSelected.emit(B)}_monthSelectedInYearView(B){this.monthSelected.emit(B)}_goToDateInView(B,de){this.activeDate=B,this.currentView=de}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(Lt),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-calendar"]],viewQuery:function(B,de){if(1&B&&(o.\u0275\u0275viewQuery(st,5),o.\u0275\u0275viewQuery(xt,5),o.\u0275\u0275viewQuery(Xt,5)),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de.monthView=Pe.first),o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de.yearView=Pe.first),o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de.multiYearView=Pe.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[o.\u0275\u0275ProvidersFeature([fe]),o.\u0275\u0275NgOnChangesFeature],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(B,de){1&B&&(o.\u0275\u0275template(0,te,0,0,"ng-template",0),o.\u0275\u0275elementStart(1,"div",1),o.\u0275\u0275template(2,$,1,8,"mat-month-view",2),o.\u0275\u0275template(3,J,1,6,"mat-year-view",3),o.\u0275\u0275template(4,ie,1,6,"mat-multi-year-view",4),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275property("cdkPortalOutlet",de._calendarHeaderPortal),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitch",de.currentView),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase","month"),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase","year"),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngSwitchCase","multi-year"))},directives:[v.Pl,n.kH,m.NgSwitch,m.NgSwitchCase,st,xt,Xt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),ue})();const qt={transformPanel:(0,w.X$)("transformPanel",[(0,w.eR)("void => enter-dropdown",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,w.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,w.eR)("void => enter-dialog",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0.7)"}),(0,w.oB)({transform:"none",opacity:1})]))),(0,w.eR)("* => void",(0,w.jt)("100ms linear",(0,w.oB)({opacity:0})))]),fadeInCalendar:(0,w.X$)("fadeInCalendar",[(0,w.SB)("void",(0,w.oB)({opacity:0})),(0,w.SB)("enter",(0,w.oB)({opacity:1})),(0,w.eR)("void => *",(0,w.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ne=0;const Se=new o.InjectionToken("mat-datepicker-scroll-strategy");function ee(ue){return()=>ue.scrollStrategies.reposition()}const re={provide:Se,deps:[f.aV],useFactory:ee},Me=(0,h.mixinColor)(class{constructor(ue){this._elementRef=ue}});let ze=(()=>{class ue extends Me{constructor(B,de,Pe,Xe,Wt,Ft){super(B),this._changeDetectorRef=de,this._globalModel=Pe,this._dateAdapter=Xe,this._rangeSelectionStrategy=Wt,this._subscriptions=new s.w,this._animationDone=new r.xQ,this._actionsPortal=null,this._closeButtonText=Ft.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(B){const de=this._model.selection,Pe=B.value,Xe=de instanceof At;if(Xe&&this._rangeSelectionStrategy){const Wt=this._rangeSelectionStrategy.selectionFinished(Pe,de,B.event);this._model.updateSelection(Wt,this)}else Pe&&(Xe||!this._dateAdapter.sameDate(Pe,de))&&this._model.add(Pe);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(Tt),o.\u0275\u0275directiveInject(h.DateAdapter),o.\u0275\u0275directiveInject(U,8),o.\u0275\u0275directiveInject(Lt))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-content"]],viewQuery:function(B,de){if(1&B&&o.\u0275\u0275viewQuery(Vt,5),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de._calendar=Pe.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(B,de){1&B&&o.\u0275\u0275syntheticHostListener("@transformPanel.done",function(){return de._animationDone.next()}),2&B&&(o.\u0275\u0275syntheticHostProperty("@transformPanel",de._animationState),o.\u0275\u0275classProp("mat-datepicker-content-touch",de.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.\u0275\u0275InheritDefinitionFeature],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(B,de){1&B&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275elementStart(1,"mat-calendar",1),o.\u0275\u0275listener("yearSelected",function(Xe){return de.datepicker._selectYear(Xe)})("monthSelected",function(Xe){return de.datepicker._selectMonth(Xe)})("viewChanged",function(Xe){return de.datepicker._viewChanged(Xe)})("_userSelection",function(Xe){return de._handleUserSelection(Xe)}),o.\u0275\u0275elementEnd(),o.\u0275\u0275template(2,ae,0,0,"ng-template",2),o.\u0275\u0275elementStart(3,"button",3),o.\u0275\u0275listener("focus",function(){return de._closeButtonFocused=!0})("blur",function(){return de._closeButtonFocused=!1})("click",function(){return de.datepicker.close()}),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275classProp("mat-datepicker-content-container-with-actions",de._actionsPortal),o.\u0275\u0275advance(1),o.\u0275\u0275property("id",de.datepicker.id)("ngClass",de.datepicker.panelClass)("startAt",de.datepicker.startAt)("startView",de.datepicker.startView)("minDate",de.datepicker._getMinDate())("maxDate",de.datepicker._getMaxDate())("dateFilter",de.datepicker._getDateFilter())("headerComponent",de.datepicker.calendarHeaderComponent)("selected",de._getSelected())("dateClass",de.datepicker.dateClass)("comparisonStart",de.comparisonStart)("comparisonEnd",de.comparisonEnd)("@fadeInCalendar","enter"),o.\u0275\u0275advance(1),o.\u0275\u0275property("cdkPortalOutlet",de._actionsPortal),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("cdk-visually-hidden",!de._closeButtonFocused),o.\u0275\u0275property("color",de.color||"primary"),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(de._closeButtonText))},directives:[n.mK,Vt,m.NgClass,v.Pl,d.MatButton],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[qt.transformPanel,qt.fadeInCalendar]},changeDetection:0}),ue})(),It=(()=>{class ue{constructor(B,de,Pe,Xe,Wt,Ft,Ht){this._overlay=B,this._ngZone=de,this._viewContainerRef=Pe,this._dateAdapter=Wt,this._dir=Ft,this._model=Ht,this._inputStateChanges=s.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new o.EventEmitter,this.monthSelected=new o.EventEmitter,this.viewChanged=new o.EventEmitter(!0),this.openedStream=new o.EventEmitter,this.closedStream=new o.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+Ne++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new r.xQ,this._scrollStrategy=Xe}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(B){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(B){this._color=B}get touchUi(){return this._touchUi}set touchUi(B){this._touchUi=(0,D.Ig)(B)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(B){const de=(0,D.Ig)(B);de!==this._disabled&&(this._disabled=de,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(B){this._restoreFocus=(0,D.Ig)(B)}get panelClass(){return this._panelClass}set panelClass(B){this._panelClass=(0,D.du)(B)}get opened(){return this._opened}set opened(B){(0,D.Ig)(B)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(B){const de=B.xPosition||B.yPosition;if(de&&!de.firstChange&&this._overlayRef){const Pe=this._overlayRef.getConfig().positionStrategy;Pe instanceof f._G&&(this._setConnectedPositions(Pe),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(B){this._model.add(B)}_selectYear(B){this.yearSelected.emit(B)}_selectMonth(B){this.monthSelected.emit(B)}_viewChanged(B){this.viewChanged.emit(B)}registerInput(B){return this._inputStateChanges.unsubscribe(),this.datepickerInput=B,this._inputStateChanges=B.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(B){this._actionsPortal=B}removeActions(B){B===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,O.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const de=this._componentRef.instance;de._startExitAnimation(),de._animationDone.pipe((0,g.q)(1)).subscribe(()=>this._destroyOverlay())}const B=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(B)):B()}_applyPendingSelection(){var B,de;null===(de=null===(B=this._componentRef)||void 0===B?void 0:B.instance)||void 0===de||de._applyPendingSelection()}_forwardContentValues(B){B.datepicker=this,B.color=this.color,B._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const B=this.touchUi,de=this.datepickerInput.getOverlayLabelId(),Pe=new v.C5(ze,this._viewContainerRef),Xe=this._overlayRef=this._overlay.create(new f.X_({positionStrategy:B?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[B?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:B?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(B?"dialog":"popup")})),Wt=Xe.overlayElement;Wt.setAttribute("role","dialog"),de&&Wt.setAttribute("aria-labelledby",de),B&&Wt.setAttribute("aria-modal","true"),this._getCloseStream(Xe).subscribe(Ft=>{Ft&&Ft.preventDefault(),this.close()}),this._componentRef=Xe.attach(Pe),this._forwardContentValues(this._componentRef.instance),B||this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>Xe.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const B=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(B)}_setConnectedPositions(B){const de="end"===this.xPosition?"end":"start",Pe="start"===de?"end":"start",Xe="above"===this.yPosition?"bottom":"top",Wt="top"===Xe?"bottom":"top";return B.withPositions([{originX:de,originY:Wt,overlayX:de,overlayY:Xe},{originX:de,originY:Xe,overlayX:de,overlayY:Wt},{originX:Pe,originY:Wt,overlayX:Pe,overlayY:Xe},{originX:Pe,originY:Xe,overlayX:Pe,overlayY:Wt}])}_getCloseStream(B){return(0,i.T)(B.backdropClick(),B.detachments(),B.keydownEvents().pipe((0,E.h)(de=>de.keyCode===l.hY&&!(0,l.Vb)(de)||this.datepickerInput&&(0,l.Vb)(de,"altKey")&&de.keyCode===l.LH)))}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(f.aV),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(Se),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(T.Is,8),o.\u0275\u0275directiveInject(Tt))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.\u0275\u0275NgOnChangesFeature]}),ue})(),Qt=(()=>{class ue extends It{}return ue.\u0275fac=function(){let Re;return function(de){return(Re||(Re=o.\u0275\u0275getInheritedFactory(ue)))(de||ue)}}(),ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o.\u0275\u0275ProvidersFeature([fe,{provide:It,useExisting:ue}]),o.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(B,de){},encapsulation:2,changeDetection:0}),ue})();class cn{constructor(Re,B){this.target=Re,this.targetElement=B,this.value=this.target.value}}let An=(()=>{class ue{constructor(B,de,Pe){this._elementRef=B,this._dateAdapter=de,this._dateFormats=Pe,this.dateChange=new o.EventEmitter,this.dateInput=new o.EventEmitter,this.stateChanges=new r.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=s.w.EMPTY,this._localeSubscription=s.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Xe=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xe.value));return!Wt||this._matchesFilter(Wt)?null:{matDatepickerFilter:!0}},this._minValidator=Xe=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xe.value)),Ft=this._getMinDate();return!Ft||!Wt||this._dateAdapter.compareDate(Ft,Wt)<=0?null:{matDatepickerMin:{min:Ft,actual:Wt}}},this._maxValidator=Xe=>{const Wt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Xe.value)),Ft=this._getMaxDate();return!Ft||!Wt||this._dateAdapter.compareDate(Ft,Wt)>=0?null:{matDatepickerMax:{max:Ft,actual:Wt}}},this._lastValueValid=!1,this._localeSubscription=de.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(B){this._assignValueProgrammatically(B)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(B){const de=(0,D.Ig)(B),Pe=this._elementRef.nativeElement;this._disabled!==de&&(this._disabled=de,this.stateChanges.next(void 0)),de&&this._isInitialized&&Pe.blur&&Pe.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(B){this._model=B,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(de=>{if(this._shouldHandleChangeEvent(de)){const Pe=this._getValueFromModel(de.selection);this._lastValueValid=this._isValidValue(Pe),this._cvaOnChange(Pe),this._onTouched(),this._formatValue(Pe),this.dateInput.emit(new cn(this,this._elementRef.nativeElement)),this.dateChange.emit(new cn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(B){lt(B,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(B){this._validatorOnChange=B}validate(B){return this._validator?this._validator(B):null}writeValue(B){this._assignValueProgrammatically(B)}registerOnChange(B){this._cvaOnChange=B}registerOnTouched(B){this._onTouched=B}setDisabledState(B){this.disabled=B}_onKeydown(B){B.altKey&&B.keyCode===l.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),B.preventDefault())}_onInput(B){const de=this._lastValueValid;let Pe=this._dateAdapter.parse(B,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Pe),Pe=this._dateAdapter.getValidDateOrNull(Pe),this._dateAdapter.sameDate(Pe,this.value)?(B&&!this.value&&this._cvaOnChange(Pe),de!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(Pe),this._cvaOnChange(Pe),this.dateInput.emit(new cn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new cn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(B){this._elementRef.nativeElement.value=B?this._dateAdapter.format(B,this._dateFormats.display.dateInput):""}_assignValue(B){this._model?(this._assignValueToModel(B),this._pendingValue=null):this._pendingValue=B}_isValidValue(B){return!B||this._dateAdapter.isValid(B)}_parentDisabled(){return!1}_assignValueProgrammatically(B){B=this._dateAdapter.deserialize(B),this._lastValueValid=this._isValidValue(B),B=this._dateAdapter.getValidDateOrNull(B),this._assignValue(B),this._formatValue(B)}_matchesFilter(B){const de=this._getDateFilter();return!de||de(B)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.\u0275\u0275NgOnChangesFeature]}),ue})();function lt(ue,Re){const B=Object.keys(ue);for(let de of B){const{previousValue:Pe,currentValue:Xe}=ue[de];if(!Re.isDateInstance(Pe)||!Re.isDateInstance(Xe))return!0;if(!Re.sameDate(Pe,Xe))return!0}return!1}const ct={provide:A.NG_VALUE_ACCESSOR,useExisting:(0,o.forwardRef)(()=>pt),multi:!0},He={provide:A.NG_VALIDATORS,useExisting:(0,o.forwardRef)(()=>pt),multi:!0};let pt=(()=>{class ue extends An{constructor(B,de,Pe,Xe){super(B,de,Pe),this._formField=Xe,this._closedSubscription=s.w.EMPTY,this._validator=A.Validators.compose(super._getValidators())}set matDatepicker(B){B&&(this._datepicker=B,this._closedSubscription=B.closedStream.subscribe(()=>this._onTouched()),this._registerModel(B.registerInput(this)))}get min(){return this._min}set min(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._min)||(this._min=de,this._validatorOnChange())}get max(){return this._max}set max(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._max)||(this._max=de,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(B){const de=this._matchesFilter(this.value);this._dateFilter=B,this._matchesFilter(this.value)!==de&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(B){return B}_assignValueToModel(B){this._model&&this._model.updateSelection(B,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(B){return B.source!==this}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8),o.\u0275\u0275directiveInject(S.MAT_FORM_FIELD,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("input",function(Xe){return de._onInput(Xe.target.value)})("change",function(){return de._onChange()})("blur",function(){return de._onBlur()})("keydown",function(Xe){return de._onKeydown(Xe)}),2&B&&(o.\u0275\u0275hostProperty("disabled",de.disabled),o.\u0275\u0275attribute("aria-haspopup",de._datepicker?"dialog":null)("aria-owns",(null==de._datepicker?null:de._datepicker.opened)&&de._datepicker.id||null)("min",de.min?de._dateAdapter.toIso8601(de.min):null)("max",de.max?de._dateAdapter.toIso8601(de.max):null)("data-mat-calendar",de._datepicker?de._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[o.\u0275\u0275ProvidersFeature([ct,He,{provide:M.MAT_INPUT_VALUE_ACCESSOR,useExisting:ue}]),o.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ot=(()=>{class ue{}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerToggleIcon",""]]}),ue})(),un=(()=>{class ue{constructor(B,de,Pe){this._intl=B,this._changeDetectorRef=de,this._stateChanges=s.w.EMPTY;const Xe=Number(Pe);this.tabIndex=Xe||0===Xe?Xe:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(B){this._disabled=(0,D.Ig)(B)}ngOnChanges(B){B.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(B){this.datepicker&&!this.disabled&&(this.datepicker.open(),B.stopPropagation())}_watchStateChanges(){const B=this.datepicker?this.datepicker.stateChanges:(0,c.of)(),de=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,c.of)(),Pe=this.datepicker?(0,i.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,c.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,i.T)(this._intl.changes,B,de,Pe).subscribe(()=>this._changeDetectorRef.markForCheck())}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(Lt),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275injectAttribute("tabindex"))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-toggle"]],contentQueries:function(B,de,Pe){if(1&B&&o.\u0275\u0275contentQuery(Pe,Ot,5),2&B){let Xe;o.\u0275\u0275queryRefresh(Xe=o.\u0275\u0275loadQuery())&&(de._customIcon=Xe.first)}},viewQuery:function(B,de){if(1&B&&o.\u0275\u0275viewQuery(le,5),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de._button=Pe.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("click",function(Xe){return de._open(Xe)}),2&B&&(o.\u0275\u0275attribute("tabindex",null)("data-mat-calendar",de.datepicker?de.datepicker.id:null),o.\u0275\u0275classProp("mat-datepicker-toggle-active",de.datepicker&&de.datepicker.opened)("mat-accent",de.datepicker&&"accent"===de.datepicker.color)("mat-warn",de.datepicker&&"warn"===de.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Ye,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(B,de){1&B&&(o.\u0275\u0275projectionDef(Le),o.\u0275\u0275elementStart(0,"button",0,1),o.\u0275\u0275template(2,Oe,2,0,"svg",2),o.\u0275\u0275projection(3),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275property("disabled",de.disabled)("disableRipple",de.disableRipple),o.\u0275\u0275attribute("aria-haspopup",de.datepicker?"dialog":null)("aria-label",de.ariaLabel||de._intl.openCalendarLabel)("tabindex",de.disabled?-1:de.tabIndex),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",!de._customIcon))},directives:[d.MatButton,m.NgIf],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),ue})();const on=new o.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT"),Yn=(0,h.mixinErrorState)((()=>{class ue extends An{constructor(B,de,Pe,Xe,Wt,Ft,Ht,Zt){super(de,Ht,Zt),this._rangeInput=B,this._defaultErrorStateMatcher=Pe,this._injector=Xe,this._parentForm=Wt,this._parentFormGroup=Ft}ngOnInit(){const B=this._injector.get(A.NgControl,null,o.InjectFlags.Self|o.InjectFlags.Optional);B&&(this.ngControl=B)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(B){super._onInput(B),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:B}){return B!==this._rangeInput._startInput&&B!==this._rangeInput._endInput}_assignValueProgrammatically(B){super._assignValueProgrammatically(B);const de=this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput;null==de||de._validatorOnChange()}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(on),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.ErrorStateMatcher),o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(A.NgForm,8),o.\u0275\u0275directiveInject(A.FormGroupDirective,8),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,features:[o.\u0275\u0275InheritDefinitionFeature]}),ue})());let ji=(()=>{class ue extends Yn{constructor(B,de,Pe,Xe,Wt,Ft,Ht,Zt){super(B,de,Pe,Xe,Wt,Ft,Ht,Zt),this._startValidator=an=>{const Tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(an.value)),zn=this._model?this._model.selection.end:null;return!Tn||!zn||this._dateAdapter.compareDate(Tn,zn)<=0?null:{matStartDateInvalid:{end:zn,actual:Tn}}},this._validator=A.Validators.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(B){return B.start}_shouldHandleChangeEvent(B){var de;return!(!super._shouldHandleChangeEvent(B)||((null===(de=B.oldValue)||void 0===de?void 0:de.start)?B.selection.start&&!this._dateAdapter.compareDate(B.oldValue.start,B.selection.start):!B.selection.start))}_assignValueToModel(B){if(this._model){const de=new At(B,this._model.selection.end);this._model.updateSelection(de,this)}}_formatValue(B){super._formatValue(B),this._rangeInput._handleChildValueChange()}getMirrorValue(){const B=this._elementRef.nativeElement,de=B.value;return de.length>0?de:B.placeholder}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(on),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.ErrorStateMatcher),o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(A.NgForm,8),o.\u0275\u0275directiveInject(A.FormGroupDirective,8),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("input",function(Xe){return de._onInput(Xe.target.value)})("change",function(){return de._onChange()})("keydown",function(Xe){return de._onKeydown(Xe)})("blur",function(){return de._onBlur()}),2&B&&(o.\u0275\u0275hostProperty("disabled",de.disabled),o.\u0275\u0275attribute("id",de._rangeInput.id)("aria-haspopup",de._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==de._rangeInput.rangePicker?null:de._rangeInput.rangePicker.opened)&&de._rangeInput.rangePicker.id||null)("min",de._getMinDate()?de._dateAdapter.toIso8601(de._getMinDate()):null)("max",de._getMaxDate()?de._dateAdapter.toIso8601(de._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.\u0275\u0275ProvidersFeature([{provide:A.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0},{provide:A.NG_VALIDATORS,useExisting:ue,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),ue})(),Oi=(()=>{class ue extends Yn{constructor(B,de,Pe,Xe,Wt,Ft,Ht,Zt){super(B,de,Pe,Xe,Wt,Ft,Ht,Zt),this._endValidator=an=>{const Tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(an.value)),zn=this._model?this._model.selection.start:null;return!Tn||!zn||this._dateAdapter.compareDate(Tn,zn)>=0?null:{matEndDateInvalid:{start:zn,actual:Tn}}},this._validator=A.Validators.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(B){return B.end}_shouldHandleChangeEvent(B){var de;return!(!super._shouldHandleChangeEvent(B)||((null===(de=B.oldValue)||void 0===de?void 0:de.end)?B.selection.end&&!this._dateAdapter.compareDate(B.oldValue.end,B.selection.end):!B.selection.end))}_assignValueToModel(B){if(this._model){const de=new At(this._model.selection.start,B);this._model.updateSelection(de,this)}}_onKeydown(B){B.keyCode===l.ZH&&!this._elementRef.nativeElement.value&&this._rangeInput._startInput.focus(),super._onKeydown(B)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(on),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(h.ErrorStateMatcher),o.\u0275\u0275directiveInject(o.Injector),o.\u0275\u0275directiveInject(A.NgForm,8),o.\u0275\u0275directiveInject(A.FormGroupDirective,8),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(h.MAT_DATE_FORMATS,8))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("input",function(Xe){return de._onInput(Xe.target.value)})("change",function(){return de._onChange()})("keydown",function(Xe){return de._onKeydown(Xe)})("blur",function(){return de._onBlur()}),2&B&&(o.\u0275\u0275hostProperty("disabled",de.disabled),o.\u0275\u0275attribute("aria-haspopup",de._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==de._rangeInput.rangePicker?null:de._rangeInput.rangePicker.opened)&&de._rangeInput.rangePicker.id||null)("min",de._getMinDate()?de._dateAdapter.toIso8601(de._getMinDate()):null)("max",de._getMaxDate()?de._dateAdapter.toIso8601(de._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.\u0275\u0275ProvidersFeature([{provide:A.NG_VALUE_ACCESSOR,useExisting:ue,multi:!0},{provide:A.NG_VALIDATORS,useExisting:ue,multi:!0}]),o.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ni=0,Ti=(()=>{class ue{constructor(B,de,Pe,Xe,Wt){if(this._changeDetectorRef=B,this._elementRef=de,this._dateAdapter=Xe,this._formField=Wt,this._closedSubscription=s.w.EMPTY,this.id="mat-date-range-input-"+Ni++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new r.xQ,null==Wt?void 0:Wt._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const Ft=de.nativeElement.classList;Ft.add("mat-mdc-input-element"),Ft.add("mat-mdc-form-field-input-control")}this.ngControl=Pe}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var B,de;const Pe=(null===(B=this._startInput)||void 0===B?void 0:B._getPlaceholder())||"",Xe=(null===(de=this._endInput)||void 0===de?void 0:de._getPlaceholder())||"";return Pe||Xe?`${Pe} ${this.separator} ${Xe}`:""}get rangePicker(){return this._rangePicker}set rangePicker(B){B&&(this._model=B.registerInput(this),this._rangePicker=B,this._closedSubscription.unsubscribe(),this._closedSubscription=B.closedStream.subscribe(()=>{var de,Pe;null===(de=this._startInput)||void 0===de||de._onTouched(),null===(Pe=this._endInput)||void 0===Pe||Pe._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(B){this._required=(0,D.Ig)(B)}get dateFilter(){return this._dateFilter}set dateFilter(B){const de=this._startInput,Pe=this._endInput,Xe=de&&de._matchesFilter(de.value),Wt=Pe&&Pe._matchesFilter(de.value);this._dateFilter=B,de&&de._matchesFilter(de.value)!==Xe&&de._validatorOnChange(),Pe&&Pe._matchesFilter(Pe.value)!==Wt&&Pe._validatorOnChange()}get min(){return this._min}set min(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._min)||(this._min=de,this._revalidate())}get max(){return this._max}set max(B){const de=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(B));this._dateAdapter.sameDate(de,this._max)||(this._max=de,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(B){const de=(0,D.Ig)(B);de!==this._groupDisabled&&(this._groupDisabled=de,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const B=!!this._startInput&&this._startInput.isEmpty(),de=!!this._endInput&&this._endInput.isEmpty();return B&&de}setDescribedByIds(B){this._ariaDescribedBy=B.length?B.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,i.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(B){lt(B,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const B=this._formField;return B&&B._hasFloatingLabel()?B._labelId:null}_updateFocus(B){this.focused=null!==B,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(B){this._startInput&&this._startInput._registerModel(B),this._endInput&&this._endInput._registerModel(B)}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(A.ControlContainer,10),o.\u0275\u0275directiveInject(h.DateAdapter,8),o.\u0275\u0275directiveInject(S.MAT_FORM_FIELD,8))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-date-range-input"]],contentQueries:function(B,de,Pe){if(1&B&&(o.\u0275\u0275contentQuery(Pe,ji,5),o.\u0275\u0275contentQuery(Pe,Oi,5)),2&B){let Xe;o.\u0275\u0275queryRefresh(Xe=o.\u0275\u0275loadQuery())&&(de._startInput=Xe.first),o.\u0275\u0275queryRefresh(Xe=o.\u0275\u0275loadQuery())&&(de._endInput=Xe.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(B,de){2&B&&(o.\u0275\u0275attribute("id",null)("aria-labelledby",de._getAriaLabelledby())("aria-describedby",de._ariaDescribedBy)("data-mat-calendar",de.rangePicker?de.rangePicker.id:null),o.\u0275\u0275classProp("mat-date-range-input-hide-placeholders",de._shouldHidePlaceholders())("mat-date-range-input-required",de.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[o.\u0275\u0275ProvidersFeature([{provide:S.MatFormFieldControl,useExisting:ue},{provide:on,useExisting:ue}]),o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:gt,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(B,de){1&B&&(o.\u0275\u0275projectionDef(Je),o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275listener("cdkFocusChange",function(Xe){return de._updateFocus(Xe)}),o.\u0275\u0275elementStart(1,"div",1),o.\u0275\u0275projection(2),o.\u0275\u0275elementStart(3,"span",2),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"span",3),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"div",4),o.\u0275\u0275projection(8,1),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()),2&B&&(o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate(de._getInputMirrorValue()),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("mat-date-range-input-separator-hidden",de._shouldHideSeparator()),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(de.separator))},directives:[n.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),ue})(),qn=(()=>{class ue extends It{_forwardContentValues(B){super._forwardContentValues(B);const de=this.datepickerInput;de&&(B.comparisonStart=de.comparisonStart,B.comparisonEnd=de.comparisonEnd)}}return ue.\u0275fac=function(){let Re;return function(de){return(Re||(Re=o.\u0275\u0275getInheritedFactory(ue)))(de||ue)}}(),ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[o.\u0275\u0275ProvidersFeature([x,Be,{provide:It,useExisting:ue}]),o.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(B,de){},encapsulation:2,changeDetection:0}),ue})(),Vi=(()=>{class ue{constructor(B){this._datepicker=B}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(It))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("click",function(){return de._applySelection()})}}),ue})(),ci=(()=>{class ue{constructor(B){this._datepicker=B}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(It))},ue.\u0275dir=o.\u0275\u0275defineDirective({type:ue,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(B,de){1&B&&o.\u0275\u0275listener("click",function(){return de._datepicker.close()})}}),ue})(),xe=(()=>{class ue{constructor(B,de){this._datepicker=B,this._viewContainerRef=de}ngAfterViewInit(){this._portal=new v.UE(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){var B;this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&(null===(B=this._portal)||void 0===B||B.detach())}}return ue.\u0275fac=function(B){return new(B||ue)(o.\u0275\u0275directiveInject(It),o.\u0275\u0275directiveInject(o.ViewContainerRef))},ue.\u0275cmp=o.\u0275\u0275defineComponent({type:ue,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(B,de){if(1&B&&o.\u0275\u0275viewQuery(o.TemplateRef,5),2&B){let Pe;o.\u0275\u0275queryRefresh(Pe=o.\u0275\u0275loadQuery())&&(de._template=Pe.first)}},ngContentSelectors:Q,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(B,de){1&B&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,Ue,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),ue})(),Ze=(()=>{class ue{}return ue.\u0275fac=function(B){return new(B||ue)},ue.\u0275mod=o.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=o.\u0275\u0275defineInjector({providers:[Lt,re],imports:[[m.CommonModule,d.MatButtonModule,f.U8,n.rt,v.eL,h.MatCommonModule],u.ZD]}),ue})()},4834:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatDivider:()=>m,MatDividerModule:()=>o});var n=p(5e3),f=p(3191),v=p(508);let m=(()=>{class d{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(h){this._vertical=(0,f.Ig)(h)}get inset(){return this._inset}set inset(h){this._inset=(0,f.Ig)(h)}}return d.\u0275fac=function(h){return new(h||d)},d.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(h,r){2&h&&(n.\u0275\u0275attribute("aria-orientation",r.vertical?"vertical":"horizontal"),n.\u0275\u0275classProp("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(h,r){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),d})(),o=(()=>{class d{}return d.\u0275fac=function(h){return new(h||d)},d.\u0275mod=n.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=n.\u0275\u0275defineInjector({imports:[[v.MatCommonModule],v.MatCommonModule]}),d})()},7322:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_ERROR:()=>J,MAT_FORM_FIELD:()=>Ee,MAT_FORM_FIELD_DEFAULT_OPTIONS:()=>Et,MAT_PREFIX:()=>ft,MAT_SUFFIX:()=>yt,MatError:()=>ie,MatFormField:()=>fe,MatFormFieldControl:()=>le,MatFormFieldModule:()=>H,MatHint:()=>Ue,MatLabel:()=>tt,MatPlaceholder:()=>at,MatPrefix:()=>vt,MatSuffix:()=>ot,_MAT_HINT:()=>gt,getMatFormFieldDuplicatedHintError:()=>Le,getMatFormFieldMissingControlError:()=>Ye,getMatFormFieldPlaceholderConflictError:()=>Oe,matFormFieldAnimations:()=>ae});var n=p(7144),f=p(9808),v=p(5e3),m=p(508),o=p(3191),d=p(8929),u=p(6787),h=p(3753),r=p(1059),s=p(7625),i=p(2986),c=p(1777),l=p(6360),g=p(226),y=p(925);const E=["connectionContainer"],T=["inputContainer"],D=["label"];function O(x,U){1&x&&(v.\u0275\u0275elementContainerStart(0),v.\u0275\u0275elementStart(1,"div",14),v.\u0275\u0275element(2,"div",15),v.\u0275\u0275element(3,"div",16),v.\u0275\u0275element(4,"div",17),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(5,"div",18),v.\u0275\u0275element(6,"div",15),v.\u0275\u0275element(7,"div",16),v.\u0275\u0275element(8,"div",17),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementContainerEnd())}function w(x,U){if(1&x){const Z=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div",19),v.\u0275\u0275listener("cdkObserveContent",function(){return v.\u0275\u0275restoreView(Z),v.\u0275\u0275nextContext().updateOutlineGap()}),v.\u0275\u0275projection(1,1),v.\u0275\u0275elementEnd()}if(2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Z.appearance)}}function A(x,U){if(1&x&&(v.\u0275\u0275elementContainerStart(0),v.\u0275\u0275projection(1,2),v.\u0275\u0275elementStart(2,"span"),v.\u0275\u0275text(3),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementContainerEnd()),2&x){const Z=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(3),v.\u0275\u0275textInterpolate(Z._control.placeholder)}}function S(x,U){1&x&&v.\u0275\u0275projection(0,3,["*ngSwitchCase","true"])}function M(x,U){1&x&&(v.\u0275\u0275elementStart(0,"span",23),v.\u0275\u0275text(1," *"),v.\u0275\u0275elementEnd())}function I(x,U){if(1&x){const Z=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"label",20,21),v.\u0275\u0275listener("cdkObserveContent",function(){return v.\u0275\u0275restoreView(Z),v.\u0275\u0275nextContext().updateOutlineGap()}),v.\u0275\u0275template(2,A,4,1,"ng-container",12),v.\u0275\u0275template(3,S,1,0,"ng-content",12),v.\u0275\u0275template(4,M,2,0,"span",22),v.\u0275\u0275elementEnd()}if(2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275classProp("mat-empty",Z._control.empty&&!Z._shouldAlwaysFloat())("mat-form-field-empty",Z._control.empty&&!Z._shouldAlwaysFloat())("mat-accent","accent"==Z.color)("mat-warn","warn"==Z.color),v.\u0275\u0275property("cdkObserveContentDisabled","outline"!=Z.appearance)("id",Z._labelId)("ngSwitch",Z._hasLabel()),v.\u0275\u0275attribute("for",Z._control.id)("aria-owns",Z._control.id),v.\u0275\u0275advance(2),v.\u0275\u0275property("ngSwitchCase",!1),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngSwitchCase",!0),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",!Z.hideRequiredMarker&&Z._control.required&&!Z._control.disabled)}}function b(x,U){1&x&&(v.\u0275\u0275elementStart(0,"div",24),v.\u0275\u0275projection(1,4),v.\u0275\u0275elementEnd())}function L(x,U){if(1&x&&(v.\u0275\u0275elementStart(0,"div",25),v.\u0275\u0275element(1,"span",26),v.\u0275\u0275elementEnd()),2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275advance(1),v.\u0275\u0275classProp("mat-accent","accent"==Z.color)("mat-warn","warn"==Z.color)}}function F(x,U){if(1&x&&(v.\u0275\u0275elementStart(0,"div"),v.\u0275\u0275projection(1,5),v.\u0275\u0275elementEnd()),2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275property("@transitionMessages",Z._subscriptAnimationState)}}function ne(x,U){if(1&x&&(v.\u0275\u0275elementStart(0,"div",30),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&x){const Z=v.\u0275\u0275nextContext(2);v.\u0275\u0275property("id",Z._hintLabelId),v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate(Z.hintLabel)}}function Y(x,U){if(1&x&&(v.\u0275\u0275elementStart(0,"div",27),v.\u0275\u0275template(1,ne,2,2,"div",28),v.\u0275\u0275projection(2,6),v.\u0275\u0275element(3,"div",29),v.\u0275\u0275projection(4,7),v.\u0275\u0275elementEnd()),2&x){const Z=v.\u0275\u0275nextContext();v.\u0275\u0275property("@transitionMessages",Z._subscriptAnimationState),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngIf",Z.hintLabel)}}const Q=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],te=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let $=0;const J=new v.InjectionToken("MatError");let ie=(()=>{class x{constructor(Z,_e){this.id="mat-error-"+$++,Z||_e.nativeElement.setAttribute("aria-live","polite")}}return x.\u0275fac=function(Z){return new(Z||x)(v.\u0275\u0275injectAttribute("aria-live"),v.\u0275\u0275directiveInject(v.ElementRef))},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Z,_e){2&Z&&v.\u0275\u0275attribute("id",_e.id)},inputs:{id:"id"},features:[v.\u0275\u0275ProvidersFeature([{provide:J,useExisting:x}])]}),x})();const ae={transitionMessages:(0,c.X$)("transitionMessages",[(0,c.SB)("enter",(0,c.oB)({opacity:1,transform:"translateY(0%)"})),(0,c.eR)("void => enter",[(0,c.oB)({opacity:0,transform:"translateY(-5px)"}),(0,c.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let le=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x}),x})();function Oe(){return Error("Placeholder attribute and child element were both specified.")}function Le(x){return Error(`A hint was already declared for 'align="${x}"'.`)}function Ye(){return Error("mat-form-field must contain a MatFormFieldControl.")}let Je=0;const gt=new v.InjectionToken("MatHint");let Ue=(()=>{class x{constructor(){this.align="start",this.id="mat-hint-"+Je++}}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Z,_e){2&Z&&(v.\u0275\u0275attribute("id",_e.id)("align",null),v.\u0275\u0275classProp("mat-form-field-hint-end","end"===_e.align))},inputs:{align:"align",id:"id"},features:[v.\u0275\u0275ProvidersFeature([{provide:gt,useExisting:x}])]}),x})(),tt=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["mat-label"]]}),x})(),at=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["mat-placeholder"]]}),x})();const ft=new v.InjectionToken("MatPrefix");let vt=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["","matPrefix",""]],features:[v.\u0275\u0275ProvidersFeature([{provide:ft,useExisting:x}])]}),x})();const yt=new v.InjectionToken("MatSuffix");let ot=(()=>{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275dir=v.\u0275\u0275defineDirective({type:x,selectors:[["","matSuffix",""]],features:[v.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:x}])]}),x})(),_t=0;const Bt=(0,m.mixinColor)(class{constructor(x){this._elementRef=x}},"primary"),Et=new v.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ee=new v.InjectionToken("MatFormField");let fe=(()=>{class x extends Bt{constructor(Z,_e,Be,$e,st,ut,St){super(Z),this._changeDetectorRef=_e,this._dir=Be,this._defaults=$e,this._platform=st,this._ngZone=ut,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new d.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+_t++,this._labelId="mat-form-field-label-"+_t++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==St,this.appearance=$e&&$e.appearance?$e.appearance:"legacy",this._hideRequiredMarker=!(!$e||null==$e.hideRequiredMarker)&&$e.hideRequiredMarker}get appearance(){return this._appearance}set appearance(Z){const _e=this._appearance;this._appearance=Z||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&_e!==Z&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Z){this._hideRequiredMarker=(0,o.Ig)(Z)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Z){this._hintLabel=Z,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Z){Z!==this._floatLabel&&(this._floatLabel=Z||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Z){this._explicitFormFieldControl=Z}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Z=this._control;Z.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Z.controlType}`),Z.stateChanges.pipe((0,r.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Z.ngControl&&Z.ngControl.valueChanges&&Z.ngControl.valueChanges.pipe((0,s.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,s.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,u.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,r.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,r.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,s.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(Z){const _e=this._control?this._control.ngControl:null;return _e&&_e[Z]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,h.R)(this._label.nativeElement,"transitionend").pipe((0,i.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let Z=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Z.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const _e=this._hintChildren?this._hintChildren.find($e=>"start"===$e.align):null,Be=this._hintChildren?this._hintChildren.find($e=>"end"===$e.align):null;_e?Z.push(_e.id):this._hintLabel&&Z.push(this._hintLabelId),Be&&Z.push(Be.id)}else this._errorChildren&&Z.push(...this._errorChildren.map(_e=>_e.id));this._control.setDescribedByIds(Z)}}_validateControlChild(){}updateOutlineGap(){const Z=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&Z&&Z.children.length&&Z.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let _e=0,Be=0;const $e=this._connectionContainerRef.nativeElement,st=$e.querySelectorAll(".mat-form-field-outline-start"),ut=$e.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const St=$e.getBoundingClientRect();if(0===St.width&&0===St.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Xt=this._getStartEnd(St),tn=Z.children,Dt=this._getStartEnd(tn[0].getBoundingClientRect());let Kt=0;for(let et=0;et0?.75*Kt+10:0}for(let St=0;St{class x{}return x.\u0275fac=function(Z){return new(Z||x)},x.\u0275mod=v.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=v.\u0275\u0275defineInjector({imports:[[f.CommonModule,m.MatCommonModule,n.Q8],m.MatCommonModule]}),x})()},5245:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{ICON_REGISTRY_PROVIDER:()=>ne,ICON_REGISTRY_PROVIDER_FACTORY:()=>F,MAT_ICON_LOCATION:()=>J,MAT_ICON_LOCATION_FACTORY:()=>ie,MatIcon:()=>Le,MatIconModule:()=>Ye,MatIconRegistry:()=>L,getMatIconFailedToSanitizeLiteralError:()=>I,getMatIconFailedToSanitizeUrlError:()=>M,getMatIconNameNotFoundError:()=>A,getMatIconNoHttpProviderError:()=>S});var n=p(5e3),f=p(508),v=p(3191),m=p(9808),o=p(1086),d=p(1737),u=p(567),h=p(2654),r=p(2868),s=p(4850),i=p(7221),c=p(537),l=p(8117),g=p(2986),y=p(520),E=p(2313);const T=["*"];let D;function w(Je){var gt;return(null===(gt=function(){if(void 0===D&&(D=null,"undefined"!=typeof window)){const Je=window;void 0!==Je.trustedTypes&&(D=Je.trustedTypes.createPolicy("angular#components",{createHTML:gt=>gt}))}return D}())||void 0===gt?void 0:gt.createHTML(Je))||Je}function A(Je){return Error(`Unable to find icon with the name "${Je}"`)}function S(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function M(Je){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Je}".`)}function I(Je){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Je}".`)}class b{constructor(gt,Ue,tt){this.url=gt,this.svgText=Ue,this.options=tt}}let L=(()=>{class Je{constructor(Ue,tt,at,ft){this._httpClient=Ue,this._sanitizer=tt,this._errorHandler=ft,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=at}addSvgIcon(Ue,tt,at){return this.addSvgIconInNamespace("",Ue,tt,at)}addSvgIconLiteral(Ue,tt,at){return this.addSvgIconLiteralInNamespace("",Ue,tt,at)}addSvgIconInNamespace(Ue,tt,at,ft){return this._addSvgIconConfig(Ue,tt,new b(at,null,ft))}addSvgIconResolver(Ue){return this._resolvers.push(Ue),this}addSvgIconLiteralInNamespace(Ue,tt,at,ft){const vt=this._sanitizer.sanitize(n.SecurityContext.HTML,at);if(!vt)throw I(at);const yt=w(vt);return this._addSvgIconConfig(Ue,tt,new b("",yt,ft))}addSvgIconSet(Ue,tt){return this.addSvgIconSetInNamespace("",Ue,tt)}addSvgIconSetLiteral(Ue,tt){return this.addSvgIconSetLiteralInNamespace("",Ue,tt)}addSvgIconSetInNamespace(Ue,tt,at){return this._addSvgIconSetConfig(Ue,new b(tt,null,at))}addSvgIconSetLiteralInNamespace(Ue,tt,at){const ft=this._sanitizer.sanitize(n.SecurityContext.HTML,tt);if(!ft)throw I(tt);const vt=w(ft);return this._addSvgIconSetConfig(Ue,new b("",vt,at))}registerFontClassAlias(Ue,tt=Ue){return this._fontCssClassesByAlias.set(Ue,tt),this}classNameForFontAlias(Ue){return this._fontCssClassesByAlias.get(Ue)||Ue}setDefaultFontSetClass(Ue){return this._defaultFontSetClass=Ue,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ue){const tt=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Ue);if(!tt)throw M(Ue);const at=this._cachedIconsByUrl.get(tt);return at?(0,o.of)(Y(at)):this._loadSvgIconFromConfig(new b(Ue,null)).pipe((0,r.b)(ft=>this._cachedIconsByUrl.set(tt,ft)),(0,s.U)(ft=>Y(ft)))}getNamedSvgIcon(Ue,tt=""){const at=Q(tt,Ue);let ft=this._svgIconConfigs.get(at);if(ft)return this._getSvgFromConfig(ft);if(ft=this._getIconConfigFromResolvers(tt,Ue),ft)return this._svgIconConfigs.set(at,ft),this._getSvgFromConfig(ft);const vt=this._iconSetConfigs.get(tt);return vt?this._getSvgFromIconSetConfigs(Ue,vt):(0,d._)(A(at))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ue){return Ue.svgText?(0,o.of)(Y(this._svgElementFromConfig(Ue))):this._loadSvgIconFromConfig(Ue).pipe((0,s.U)(tt=>Y(tt)))}_getSvgFromIconSetConfigs(Ue,tt){const at=this._extractIconWithNameFromAnySet(Ue,tt);if(at)return(0,o.of)(at);const ft=tt.filter(vt=>!vt.svgText).map(vt=>this._loadSvgIconSetFromConfig(vt).pipe((0,i.K)(yt=>{const _t=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,vt.url)} failed: ${yt.message}`;return this._errorHandler.handleError(new Error(_t)),(0,o.of)(null)})));return(0,u.D)(ft).pipe((0,s.U)(()=>{const vt=this._extractIconWithNameFromAnySet(Ue,tt);if(!vt)throw A(Ue);return vt}))}_extractIconWithNameFromAnySet(Ue,tt){for(let at=tt.length-1;at>=0;at--){const ft=tt[at];if(ft.svgText&&ft.svgText.toString().indexOf(Ue)>-1){const vt=this._svgElementFromConfig(ft),yt=this._extractSvgIconFromSet(vt,Ue,ft.options);if(yt)return yt}}return null}_loadSvgIconFromConfig(Ue){return this._fetchIcon(Ue).pipe((0,r.b)(tt=>Ue.svgText=tt),(0,s.U)(()=>this._svgElementFromConfig(Ue)))}_loadSvgIconSetFromConfig(Ue){return Ue.svgText?(0,o.of)(null):this._fetchIcon(Ue).pipe((0,r.b)(tt=>Ue.svgText=tt))}_extractSvgIconFromSet(Ue,tt,at){const ft=Ue.querySelector(`[id="${tt}"]`);if(!ft)return null;const vt=ft.cloneNode(!0);if(vt.removeAttribute("id"),"svg"===vt.nodeName.toLowerCase())return this._setSvgAttributes(vt,at);if("symbol"===vt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(vt),at);const yt=this._svgElementFromString(w(""));return yt.appendChild(vt),this._setSvgAttributes(yt,at)}_svgElementFromString(Ue){const tt=this._document.createElement("DIV");tt.innerHTML=Ue;const at=tt.querySelector("svg");if(!at)throw Error(" tag not found");return at}_toSvgElement(Ue){const tt=this._svgElementFromString(w("")),at=Ue.attributes;for(let ft=0;ftw(At)),(0,c.x)(()=>this._inProgressUrlFetches.delete(yt)),(0,l.B)());return this._inProgressUrlFetches.set(yt,_t),_t}_addSvgIconConfig(Ue,tt,at){return this._svgIconConfigs.set(Q(Ue,tt),at),this}_addSvgIconSetConfig(Ue,tt){const at=this._iconSetConfigs.get(Ue);return at?at.push(tt):this._iconSetConfigs.set(Ue,[tt]),this}_svgElementFromConfig(Ue){if(!Ue.svgElement){const tt=this._svgElementFromString(Ue.svgText);this._setSvgAttributes(tt,Ue.options),Ue.svgElement=tt}return Ue.svgElement}_getIconConfigFromResolvers(Ue,tt){for(let at=0;atgt?gt.pathname+gt.search:""}}const ae=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],le=ae.map(Je=>`[${Je}]`).join(", "),Oe=/^url\(['"]?#(.*?)['"]?\)$/;let Le=(()=>{class Je extends ${constructor(Ue,tt,at,ft,vt){super(Ue),this._iconRegistry=tt,this._location=ft,this._errorHandler=vt,this._inline=!1,this._currentIconFetch=h.w.EMPTY,at||Ue.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Ue){this._inline=(0,v.Ig)(Ue)}get svgIcon(){return this._svgIcon}set svgIcon(Ue){Ue!==this._svgIcon&&(Ue?this._updateSvgIcon(Ue):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ue)}get fontSet(){return this._fontSet}set fontSet(Ue){const tt=this._cleanupFontValue(Ue);tt!==this._fontSet&&(this._fontSet=tt,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ue){const tt=this._cleanupFontValue(Ue);tt!==this._fontIcon&&(this._fontIcon=tt,this._updateFontIconClasses())}_splitIconName(Ue){if(!Ue)return["",""];const tt=Ue.split(":");switch(tt.length){case 1:return["",tt[0]];case 2:return tt;default:throw Error(`Invalid icon name: "${Ue}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ue=this._elementsWithExternalReferences;if(Ue&&Ue.size){const tt=this._location.getPathname();tt!==this._previousPath&&(this._previousPath=tt,this._prependPathToReferences(tt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ue){this._clearSvgElement();const tt=Ue.querySelectorAll("style");for(let ft=0;ft{at.forEach(vt=>{ft.setAttribute(vt.name,`url('${Ue}#${vt.value}')`)})})}_cacheChildrenWithExternalReferences(Ue){const tt=Ue.querySelectorAll(le),at=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ft=0;ft{const yt=tt[ft],ot=yt.getAttribute(vt),_t=ot?ot.match(Oe):null;if(_t){let At=at.get(yt);At||(At=[],at.set(yt,At)),At.push({name:vt,value:_t[1]})}})}_updateSvgIcon(Ue){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ue){const[tt,at]=this._splitIconName(Ue);tt&&(this._svgNamespace=tt),at&&(this._svgName=at),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(at,tt).pipe((0,g.q)(1)).subscribe(ft=>this._setSvgElement(ft),ft=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${tt}:${at}! ${ft.message}`))})}}}return Je.\u0275fac=function(Ue){return new(Ue||Je)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(L),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(J),n.\u0275\u0275directiveInject(n.ErrorHandler))},Je.\u0275cmp=n.\u0275\u0275defineComponent({type:Je,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Ue,tt){2&Ue&&(n.\u0275\u0275attribute("data-mat-icon-type",tt._usingFontIcon()?"font":"svg")("data-mat-icon-name",tt._svgName||tt.fontIcon)("data-mat-icon-namespace",tt._svgNamespace||tt.fontSet),n.\u0275\u0275classProp("mat-icon-inline",tt.inline)("mat-icon-no-color","primary"!==tt.color&&"accent"!==tt.color&&"warn"!==tt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:T,decls:1,vars:0,template:function(Ue,tt){1&Ue&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),Je})(),Ye=(()=>{class Je{}return Je.\u0275fac=function(Ue){return new(Ue||Je)},Je.\u0275mod=n.\u0275\u0275defineNgModule({type:Je}),Je.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatCommonModule],f.MatCommonModule]}),Je})()},7531:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_INPUT_VALUE_ACCESSOR:()=>y,MatInput:()=>O,MatInputModule:()=>w,getMatInputUnsupportedTypeError:()=>g});var n=p(3191),f=p(925),v=p(5e3),m=p(3075),o=p(508),d=p(7322),u=p(8929),h=p(8896);const r=(0,f.i$)({passive:!0});let s=(()=>{class A{constructor(M,I){this._platform=M,this._ngZone=I,this._monitoredElements=new Map}monitor(M){if(!this._platform.isBrowser)return h.E;const I=(0,n.fI)(M),b=this._monitoredElements.get(I);if(b)return b.subject;const L=new u.xQ,F="cdk-text-field-autofilled",ne=Y=>{"cdk-text-field-autofill-start"!==Y.animationName||I.classList.contains(F)?"cdk-text-field-autofill-end"===Y.animationName&&I.classList.contains(F)&&(I.classList.remove(F),this._ngZone.run(()=>L.next({target:Y.target,isAutofilled:!1}))):(I.classList.add(F),this._ngZone.run(()=>L.next({target:Y.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{I.addEventListener("animationstart",ne,r),I.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(I,{subject:L,unlisten:()=>{I.removeEventListener("animationstart",ne,r)}}),L}stopMonitoring(M){const I=(0,n.fI)(M),b=this._monitoredElements.get(I);b&&(b.unlisten(),b.subject.complete(),I.classList.remove("cdk-text-field-autofill-monitored"),I.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(I))}ngOnDestroy(){this._monitoredElements.forEach((M,I)=>this.stopMonitoring(I))}}return A.\u0275fac=function(M){return new(M||A)(v.\u0275\u0275inject(f.t4),v.\u0275\u0275inject(v.NgZone))},A.\u0275prov=v.\u0275\u0275defineInjectable({token:A,factory:A.\u0275fac,providedIn:"root"}),A})(),l=(()=>{class A{}return A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=v.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=v.\u0275\u0275defineInjector({imports:[[f.ud]]}),A})();function g(A){return Error(`Input type "${A}" isn't supported by matInput.`)}const y=new v.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),E=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let T=0;const D=(0,o.mixinErrorState)(class{constructor(A,S,M,I){this._defaultErrorStateMatcher=A,this._parentForm=S,this._parentFormGroup=M,this.ngControl=I}});let O=(()=>{class A extends D{constructor(M,I,b,L,F,ne,Y,Q,te,$){super(ne,L,F,b),this._elementRef=M,this._platform=I,this._autofillMonitor=Q,this._formField=$,this._uid="mat-input-"+T++,this.focused=!1,this.stateChanges=new u.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(ae=>(0,f.qK)().has(ae));const J=this._elementRef.nativeElement,ie=J.nodeName.toLowerCase();this._inputValueAccessor=Y||J,this._previousNativeValue=this.value,this.id=this.id,I.IOS&&te.runOutsideAngular(()=>{M.nativeElement.addEventListener("keyup",ae=>{const le=ae.target;!le.value&&0===le.selectionStart&&0===le.selectionEnd&&(le.setSelectionRange(1,1),le.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===ie,this._isTextarea="textarea"===ie,this._isInFormField=!!$,this._isNativeSelect&&(this.controlType=J.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(M){this._disabled=(0,n.Ig)(M),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(M){this._id=M||this._uid}get required(){var M,I,b,L;return null!==(L=null!==(M=this._required)&&void 0!==M?M:null===(b=null===(I=this.ngControl)||void 0===I?void 0:I.control)||void 0===b?void 0:b.hasValidator(m.Validators.required))&&void 0!==L&&L}set required(M){this._required=(0,n.Ig)(M)}get type(){return this._type}set type(M){this._type=M||"text",this._validateType(),!this._isTextarea&&(0,f.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(M){M!==this.value&&(this._inputValueAccessor.value=M,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(M){this._readonly=(0,n.Ig)(M)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(M=>{this.autofilled=M.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(M){this._elementRef.nativeElement.focus(M)}_focusChanged(M){M!==this.focused&&(this.focused=M,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var M,I;const b=(null===(I=null===(M=this._formField)||void 0===M?void 0:M._hideControlPlaceholder)||void 0===I?void 0:I.call(M))?null:this.placeholder;if(b!==this._previousPlaceholder){const L=this._elementRef.nativeElement;this._previousPlaceholder=b,b?L.setAttribute("placeholder",b):L.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const M=this._elementRef.nativeElement.value;this._previousNativeValue!==M&&(this._previousNativeValue=M,this.stateChanges.next())}_validateType(){E.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let M=this._elementRef.nativeElement.validity;return M&&M.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const M=this._elementRef.nativeElement,I=M.options[0];return this.focused||M.multiple||!this.empty||!!(M.selectedIndex>-1&&I&&I.label)}return this.focused||!this.empty}setDescribedByIds(M){M.length?this._elementRef.nativeElement.setAttribute("aria-describedby",M.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const M=this._elementRef.nativeElement;return this._isNativeSelect&&(M.multiple||M.size>1)}}return A.\u0275fac=function(M){return new(M||A)(v.\u0275\u0275directiveInject(v.ElementRef),v.\u0275\u0275directiveInject(f.t4),v.\u0275\u0275directiveInject(m.NgControl,10),v.\u0275\u0275directiveInject(m.NgForm,8),v.\u0275\u0275directiveInject(m.FormGroupDirective,8),v.\u0275\u0275directiveInject(o.ErrorStateMatcher),v.\u0275\u0275directiveInject(y,10),v.\u0275\u0275directiveInject(s),v.\u0275\u0275directiveInject(v.NgZone),v.\u0275\u0275directiveInject(d.MAT_FORM_FIELD,8))},A.\u0275dir=v.\u0275\u0275defineDirective({type:A,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(M,I){1&M&&v.\u0275\u0275listener("focus",function(){return I._focusChanged(!0)})("blur",function(){return I._focusChanged(!1)})("input",function(){return I._onInput()}),2&M&&(v.\u0275\u0275hostProperty("disabled",I.disabled)("required",I.required),v.\u0275\u0275attribute("id",I.id)("data-placeholder",I.placeholder)("readonly",I.readonly&&!I._isNativeSelect||null)("aria-invalid",I.empty&&I.required?null:I.errorState)("aria-required",I.required),v.\u0275\u0275classProp("mat-input-server",I._isServer)("mat-native-select-inline",I._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[v.\u0275\u0275ProvidersFeature([{provide:d.MatFormFieldControl,useExisting:A}]),v.\u0275\u0275InheritDefinitionFeature,v.\u0275\u0275NgOnChangesFeature]}),A})(),w=(()=>{class A{}return A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=v.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=v.\u0275\u0275defineInjector({providers:[o.ErrorStateMatcher],imports:[[l,d.MatFormFieldModule,o.MatCommonModule],l,d.MatFormFieldModule]}),A})()},2181:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_MENU_CONTENT:()=>te,MAT_MENU_DEFAULT_OPTIONS:()=>gt,MAT_MENU_PANEL:()=>Le,MAT_MENU_SCROLL_STRATEGY:()=>vt,MatMenu:()=>ft,MatMenuContent:()=>J,MatMenuItem:()=>Je,MatMenuModule:()=>Et,MatMenuTrigger:()=>Bt,_MatMenuBase:()=>at,_MatMenuContentBase:()=>$,_MatMenuTriggerBase:()=>Tt,fadeInItems:()=>Y,matMenuAnimations:()=>ne,transformMenu:()=>Q});var n=p(5664),f=p(3191),v=p(1159),m=p(5e3),o=p(8929),d=p(2654),u=p(6787),h=p(1086),r=p(8139),s=p(1059),i=p(7545),c=p(2986),l=p(2198),g=p(7625),y=p(943),E=p(1777),T=p(7429),D=p(9808),O=p(508),w=p(1314),A=p(925),S=p(226),M=p(9071);const I=["mat-menu-item",""];function b(Ee,fe){1&Ee&&(m.\u0275\u0275namespaceSVG(),m.\u0275\u0275elementStart(0,"svg",2),m.\u0275\u0275element(1,"polygon",3),m.\u0275\u0275elementEnd())}const L=["*"];function F(Ee,fe){if(1&Ee){const H=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"div",0),m.\u0275\u0275listener("keydown",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._handleKeydown(U)})("click",function(){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._onAnimationStart(U)})("@transformMenu.done",function(U){return m.\u0275\u0275restoreView(H),m.\u0275\u0275nextContext()._onAnimationDone(U)}),m.\u0275\u0275elementStart(1,"div",1),m.\u0275\u0275projection(2),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()}if(2&Ee){const H=m.\u0275\u0275nextContext();m.\u0275\u0275property("id",H.panelId)("ngClass",H._classList)("@transformMenu",H._panelAnimationState),m.\u0275\u0275attribute("aria-label",H.ariaLabel||null)("aria-labelledby",H.ariaLabelledby||null)("aria-describedby",H.ariaDescribedby||null)}}const ne={transformMenu:(0,E.X$)("transformMenu",[(0,E.SB)("void",(0,E.oB)({opacity:0,transform:"scale(0.8)"})),(0,E.eR)("void => enter",(0,E.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,E.oB)({opacity:1,transform:"scale(1)"}))),(0,E.eR)("* => void",(0,E.jt)("100ms 25ms linear",(0,E.oB)({opacity:0})))]),fadeInItems:(0,E.X$)("fadeInItems",[(0,E.SB)("showing",(0,E.oB)({opacity:1})),(0,E.eR)("void => *",[(0,E.oB)({opacity:0}),(0,E.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Y=ne.fadeInItems,Q=ne.transformMenu,te=new m.InjectionToken("MatMenuContent");let $=(()=>{class Ee{constructor(H,x,U,Z,_e,Be,$e){this._template=H,this._componentFactoryResolver=x,this._appRef=U,this._injector=Z,this._viewContainerRef=_e,this._document=Be,this._changeDetectorRef=$e,this._attached=new o.xQ}attach(H={}){this._portal||(this._portal=new T.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new T.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const x=this._template.elementRef.nativeElement;x.parentNode.insertBefore(this._outlet.outletElement,x),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,H),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.TemplateRef),m.\u0275\u0275directiveInject(m.ComponentFactoryResolver),m.\u0275\u0275directiveInject(m.ApplicationRef),m.\u0275\u0275directiveInject(m.Injector),m.\u0275\u0275directiveInject(m.ViewContainerRef),m.\u0275\u0275directiveInject(D.DOCUMENT),m.\u0275\u0275directiveInject(m.ChangeDetectorRef))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee}),Ee})(),J=(()=>{class Ee extends ${}return Ee.\u0275fac=function(){let fe;return function(x){return(fe||(fe=m.\u0275\u0275getInheritedFactory(Ee)))(x||Ee)}}(),Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,selectors:[["ng-template","matMenuContent",""]],features:[m.\u0275\u0275ProvidersFeature([{provide:te,useExisting:Ee}]),m.\u0275\u0275InheritDefinitionFeature]}),Ee})();const Le=new m.InjectionToken("MAT_MENU_PANEL"),Ye=(0,O.mixinDisableRipple)((0,O.mixinDisabled)(class{}));let Je=(()=>{class Ee extends Ye{constructor(H,x,U,Z,_e){super(),this._elementRef=H,this._focusMonitor=U,this._parentMenu=Z,this._changeDetectorRef=_e,this.role="menuitem",this._hovered=new o.xQ,this._focused=new o.xQ,this._highlighted=!1,this._triggersSubmenu=!1,Z&&Z.addItem&&Z.addItem(this)}focus(H,x){this._focusMonitor&&H?this._focusMonitor.focusVia(this._getHostElement(),H,x):this._getHostElement().focus(x),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(H){this.disabled&&(H.preventDefault(),H.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var H;const x=this._elementRef.nativeElement.cloneNode(!0),U=x.querySelectorAll("mat-icon, .material-icons");for(let Z=0;Z{class Ee{constructor(H,x,U){this._elementRef=H,this._ngZone=x,this._defaultOptions=U,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new m.QueryList,this._tabSubscription=d.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new m.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+tt++}get xPosition(){return this._xPosition}set xPosition(H){this._xPosition=H,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(H){this._yPosition=H,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(H){this._overlapTrigger=(0,f.Ig)(H)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(H){this._hasBackdrop=(0,f.Ig)(H)}set panelClass(H){const x=this._previousPanelClass;x&&x.length&&x.split(" ").forEach(U=>{this._classList[U]=!1}),this._previousPanelClass=H,H&&H.length&&(H.split(" ").forEach(U=>{this._classList[U]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(H){this.panelClass=H}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,s.O)(this._directDescendantItems),(0,i.w)(H=>(0,u.T)(...H.map(x=>x._focused)))).subscribe(H=>this._keyManager.updateActiveItem(H))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,s.O)(this._directDescendantItems),(0,i.w)(x=>(0,u.T)(...x.map(U=>U._hovered))))}addItem(H){}removeItem(H){}_handleKeydown(H){const x=H.keyCode,U=this._keyManager;switch(x){case v.hY:(0,v.Vb)(H)||(H.preventDefault(),this.closed.emit("keydown"));break;case v.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(x===v.LH||x===v.JH)&&U.setFocusOrigin("keyboard"),U.onKeydown(H)}}focusFirstItem(H="program"){this.lazyContent?this._ngZone.onStable.pipe((0,c.q)(1)).subscribe(()=>this._focusFirstItem(H)):this._focusFirstItem(H)}_focusFirstItem(H){const x=this._keyManager;if(x.setFocusOrigin(H).setFirstItemActive(),!x.activeItem&&this._directDescendantItems.length){let U=this._directDescendantItems.first._getHostElement().parentElement;for(;U;){if("menu"===U.getAttribute("role")){U.focus();break}U=U.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(H){const x=Math.min(this._baseElevation+H,24),U=`${this._elevationPrefix}${x}`,Z=Object.keys(this._classList).find(_e=>_e.startsWith(this._elevationPrefix));(!Z||Z===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[U]=!0,this._previousElevation=U)}setPositionClasses(H=this.xPosition,x=this.yPosition){const U=this._classList;U["mat-menu-before"]="before"===H,U["mat-menu-after"]="after"===H,U["mat-menu-above"]="above"===x,U["mat-menu-below"]="below"===x}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(H){this._animationDone.next(H),this._isAnimating=!1}_onAnimationStart(H){this._isAnimating=!0,"enter"===H.toState&&0===this._keyManager.activeItemIndex&&(H.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,s.O)(this._allItems)).subscribe(H=>{this._directDescendantItems.reset(H.filter(x=>x._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(gt))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,contentQueries:function(H,x,U){if(1&H&&(m.\u0275\u0275contentQuery(U,te,5),m.\u0275\u0275contentQuery(U,Je,5),m.\u0275\u0275contentQuery(U,Je,4)),2&H){let Z;m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(x.lazyContent=Z.first),m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(x._allItems=Z),m.\u0275\u0275queryRefresh(Z=m.\u0275\u0275loadQuery())&&(x.items=Z)}},viewQuery:function(H,x){if(1&H&&m.\u0275\u0275viewQuery(m.TemplateRef,5),2&H){let U;m.\u0275\u0275queryRefresh(U=m.\u0275\u0275loadQuery())&&(x.templateRef=U.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Ee})(),ft=(()=>{class Ee extends at{constructor(H,x,U){super(H,x,U),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(gt))},Ee.\u0275cmp=m.\u0275\u0275defineComponent({type:Ee,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(H,x){2&H&&m.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[m.\u0275\u0275ProvidersFeature([{provide:Le,useExisting:Ee}]),m.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:L,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(H,x){1&H&&(m.\u0275\u0275projectionDef(),m.\u0275\u0275template(0,F,3,6,"ng-template"))},directives:[D.NgClass],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[ne.transformMenu,ne.fadeInItems]},changeDetection:0}),Ee})();const vt=new m.InjectionToken("mat-menu-scroll-strategy"),ot={provide:vt,deps:[w.aV],useFactory:function(Ee){return()=>Ee.scrollStrategies.reposition()}},At=(0,A.i$)({passive:!0});let Tt=(()=>{class Ee{constructor(H,x,U,Z,_e,Be,$e,st){this._overlay=H,this._element=x,this._viewContainerRef=U,this._menuItemInstance=Be,this._dir=$e,this._focusMonitor=st,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=d.w.EMPTY,this._hoverSubscription=d.w.EMPTY,this._menuCloseSubscription=d.w.EMPTY,this._handleTouchStart=ut=>{(0,n.yG)(ut)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new m.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new m.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=Z,this._parentMaterialMenu=_e instanceof at?_e:void 0,x.nativeElement.addEventListener("touchstart",this._handleTouchStart,At),Be&&(Be._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(H){this.menu=H}get menu(){return this._menu}set menu(H){H!==this._menu&&(this._menu=H,this._menuCloseSubscription.unsubscribe(),H&&(this._menuCloseSubscription=H.close.subscribe(x=>{this._destroyMenu(x),("click"===x||"tab"===x)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(x)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,At),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const H=this._createOverlay(),x=H.getConfig();this._setPosition(x.positionStrategy),x.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,H.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof at&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(H,x){this._focusMonitor&&H?this._focusMonitor.focusVia(this._element,H,x):this._element.nativeElement.focus(x)}updatePosition(){var H;null===(H=this._overlayRef)||void 0===H||H.updatePosition()}_destroyMenu(H){if(!this._overlayRef||!this.menuOpen)return;const x=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===H||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,x instanceof at?(x._resetAnimation(),x.lazyContent?x._animationDone.pipe((0,l.h)(U=>"void"===U.toState),(0,c.q)(1),(0,g.R)(x.lazyContent._attached)).subscribe({next:()=>x.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),x.lazyContent&&x.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let H=0,x=this.menu.parentMenu;for(;x;)H++,x=x.parentMenu;this.menu.setElevation(H)}}_setIsMenuOpen(H){this._menuOpen=H,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(H)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const H=this._getOverlayConfig();this._subscribeToPositions(H.positionStrategy),this._overlayRef=this._overlay.create(H),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new w.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(H){this.menu.setPositionClasses&&H.positionChanges.subscribe(x=>{this.menu.setPositionClasses("start"===x.connectionPair.overlayX?"after":"before","top"===x.connectionPair.overlayY?"below":"above")})}_setPosition(H){let[x,U]="before"===this.menu.xPosition?["end","start"]:["start","end"],[Z,_e]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Be,$e]=[Z,_e],[st,ut]=[x,U],St=0;this.triggersSubmenu()?(ut=x="before"===this.menu.xPosition?"start":"end",U=st="end"===x?"start":"end",St="bottom"===Z?8:-8):this.menu.overlapTrigger||(Be="top"===Z?"bottom":"top",$e="top"===_e?"bottom":"top"),H.withPositions([{originX:x,originY:Be,overlayX:st,overlayY:Z,offsetY:St},{originX:U,originY:Be,overlayX:ut,overlayY:Z,offsetY:St},{originX:x,originY:$e,overlayX:st,overlayY:_e,offsetY:-St},{originX:U,originY:$e,overlayX:ut,overlayY:_e,offsetY:-St}])}_menuClosingActions(){const H=this._overlayRef.backdropClick(),x=this._overlayRef.detachments(),U=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,h.of)(),Z=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,l.h)(_e=>_e!==this._menuItemInstance),(0,l.h)(()=>this._menuOpen)):(0,h.of)();return(0,u.T)(H,U,Z,x)}_handleMousedown(H){(0,n.X6)(H)||(this._openedBy=0===H.button?"mouse":void 0,this.triggersSubmenu()&&H.preventDefault())}_handleKeydown(H){const x=H.keyCode;(x===v.K5||x===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(x===v.SV&&"ltr"===this.dir||x===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(H){this.triggersSubmenu()?(H.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,l.h)(H=>H===this._menuItemInstance&&!H.disabled),(0,y.g)(0,r.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof at&&this.menu._isAnimating?this.menu._animationDone.pipe((0,c.q)(1),(0,y.g)(0,r.E),(0,g.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new T.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return Ee.\u0275fac=function(H){return new(H||Ee)(m.\u0275\u0275directiveInject(w.aV),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(m.ViewContainerRef),m.\u0275\u0275directiveInject(vt),m.\u0275\u0275directiveInject(Le,8),m.\u0275\u0275directiveInject(Je,10),m.\u0275\u0275directiveInject(S.Is,8),m.\u0275\u0275directiveInject(n.tE))},Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(H,x){1&H&&m.\u0275\u0275listener("click",function(Z){return x._handleClick(Z)})("mousedown",function(Z){return x._handleMousedown(Z)})("keydown",function(Z){return x._handleKeydown(Z)}),2&H&&m.\u0275\u0275attribute("aria-expanded",x.menuOpen||null)("aria-controls",x.menuOpen?x.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Ee})(),Bt=(()=>{class Ee extends Tt{}return Ee.\u0275fac=function(){let fe;return function(x){return(fe||(fe=m.\u0275\u0275getInheritedFactory(Ee)))(x||Ee)}}(),Ee.\u0275dir=m.\u0275\u0275defineDirective({type:Ee,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[m.\u0275\u0275InheritDefinitionFeature]}),Ee})(),Et=(()=>{class Ee{}return Ee.\u0275fac=function(H){return new(H||Ee)},Ee.\u0275mod=m.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=m.\u0275\u0275defineInjector({providers:[ot],imports:[[D.CommonModule,O.MatCommonModule,O.MatRippleModule,w.U8],M.ZD,O.MatCommonModule]}),Ee})()},7850:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_PAGINATOR_DEFAULT_OPTIONS:()=>st,MAT_PAGINATOR_INTL_PROVIDER:()=>_e,MAT_PAGINATOR_INTL_PROVIDER_FACTORY:()=>Z,MatPaginator:()=>Xt,MatPaginatorIntl:()=>U,MatPaginatorModule:()=>tn,PageEvent:()=>$e,_MatPaginatorBase:()=>St});var n=p(9808),f=p(5e3),v=p(508),m=p(7423),o=p(4107),d=p(1314),u=p(5664),h=p(9071),r=p(3191),s=p(1159),i=p(8929),c=p(6053),l=p(1961),g=p(6498),y=p(2986),E=p(1307),T=p(13),D=p(4850),O=p(1059),w=p(7625),A=p(925);const M=new Set;let I,b=(()=>{class Dt{constructor(et){this._platform=et,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):F}matchMedia(et){return(this._platform.WEBKIT||this._platform.BLINK)&&function(Dt){if(!M.has(Dt))try{I||(I=document.createElement("style"),I.setAttribute("type","text/css"),document.head.appendChild(I)),I.sheet&&(I.sheet.insertRule(`@media ${Dt} {body{ }}`,0),M.add(Dt))}catch(Kt){console.error(Kt)}}(et),this._matchMedia(et)}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275inject(A.t4))},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function F(Dt){return{matches:"all"===Dt||""===Dt,media:Dt,addListener:()=>{},removeListener:()=>{}}}let ne=(()=>{class Dt{constructor(et,xt){this._mediaMatcher=et,this._zone=xt,this._queries=new Map,this._destroySubject=new i.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(et){return Y((0,r.Eq)(et)).some(Lt=>this._registerQuery(Lt).mql.matches)}observe(et){const Lt=Y((0,r.Eq)(et)).map(mt=>this._registerQuery(mt).observable);let Qe=(0,c.aj)(Lt);return Qe=(0,l.z)(Qe.pipe((0,y.q)(1)),Qe.pipe((0,E.T)(1),(0,T.b)(0))),Qe.pipe((0,D.U)(mt=>{const Vt={matches:!1,breakpoints:{}};return mt.forEach(({matches:qt,query:Ne})=>{Vt.matches=Vt.matches||qt,Vt.breakpoints[Ne]=qt}),Vt}))}_registerQuery(et){if(this._queries.has(et))return this._queries.get(et);const xt=this._mediaMatcher.matchMedia(et),Qe={observable:new g.y(mt=>{const Vt=qt=>this._zone.run(()=>mt.next(qt));return xt.addListener(Vt),()=>{xt.removeListener(Vt)}}).pipe((0,O.O)(xt),(0,D.U)(({matches:mt})=>({query:et,matches:mt})),(0,w.R)(this._destroySubject)),mql:xt};return this._queries.set(et,Qe),Qe}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275inject(b),f.\u0275\u0275inject(f.NgZone))},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Y(Dt){return Dt.map(Kt=>Kt.split(",")).reduce((Kt,et)=>Kt.concat(et)).map(Kt=>Kt.trim())}var te=p(7429),$=p(1777),J=p(226);const ie={tooltipState:(0,$.X$)("state",[(0,$.SB)("initial, void, hidden",(0,$.oB)({opacity:0,transform:"scale(0)"})),(0,$.SB)("visible",(0,$.oB)({transform:"scale(1)"})),(0,$.eR)("* => visible",(0,$.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,$.F4)([(0,$.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,$.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,$.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,$.eR)("* => hidden",(0,$.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,$.oB)({opacity:0})))])},Oe="tooltip-panel",Le=(0,A.i$)({passive:!0}),gt=new f.InjectionToken("mat-tooltip-scroll-strategy"),tt={provide:gt,deps:[d.aV],useFactory:function(Dt){return()=>Dt.scrollStrategies.reposition({scrollThrottle:20})}},at=new f.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let vt=(()=>{class Dt{constructor(et,xt,Lt,Qe,mt,Vt,qt,Ne,Se,ee,re,Me){this._overlay=et,this._elementRef=xt,this._scrollDispatcher=Lt,this._viewContainerRef=Qe,this._ngZone=mt,this._platform=Vt,this._ariaDescriber=qt,this._focusMonitor=Ne,this._dir=ee,this._defaultOptions=re,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new i.xQ,this._handleKeydown=ze=>{this._isTooltipVisible()&&ze.keyCode===s.hY&&!(0,s.Vb)(ze)&&(ze.preventDefault(),ze.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=Se,this._document=Me,re&&(re.position&&(this.position=re.position),re.touchGestures&&(this.touchGestures=re.touchGestures)),ee.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),mt.runOutsideAngular(()=>{xt.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(et){var xt;et!==this._position&&(this._position=et,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(xt=this._tooltipInstance)||void 0===xt||xt.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(et){this._disabled=(0,r.Ig)(et),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(et){this._showDelay=(0,r.su)(et)}get hideDelay(){return this._hideDelay}set hideDelay(et){this._hideDelay=(0,r.su)(et)}get message(){return this._message}set message(et){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=et?String(et).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(et){this._tooltipClass=et,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(et=>{et?"keyboard"===et&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const et=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),et.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([xt,Lt])=>{et.removeEventListener(xt,Lt,Le)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(et,this.message,"tooltip"),this._focusMonitor.stopMonitoring(et)}show(et=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const xt=this._createOverlay();this._detach(),this._portal=this._portal||new te.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=xt.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(et)}hide(et=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(et)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const et=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),xt=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(et);return xt.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(Lt=>{this._updateCurrentPositionClass(Lt.connectionPair),this._tooltipInstance&&Lt.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:xt,panelClass:`${this._cssClassPrefix}-${Oe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>{var Lt;return null===(Lt=this._tooltipInstance)||void 0===Lt?void 0:Lt._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(et){const xt=et.getConfig().positionStrategy,Lt=this._getOrigin(),Qe=this._getOverlayPosition();xt.withPositions([this._addOffset(Object.assign(Object.assign({},Lt.main),Qe.main)),this._addOffset(Object.assign(Object.assign({},Lt.fallback),Qe.fallback))])}_addOffset(et){return et}_getOrigin(){const et=!this._dir||"ltr"==this._dir.value,xt=this.position;let Lt;"above"==xt||"below"==xt?Lt={originX:"center",originY:"above"==xt?"top":"bottom"}:"before"==xt||"left"==xt&&et||"right"==xt&&!et?Lt={originX:"start",originY:"center"}:("after"==xt||"right"==xt&&et||"left"==xt&&!et)&&(Lt={originX:"end",originY:"center"});const{x:Qe,y:mt}=this._invertPosition(Lt.originX,Lt.originY);return{main:Lt,fallback:{originX:Qe,originY:mt}}}_getOverlayPosition(){const et=!this._dir||"ltr"==this._dir.value,xt=this.position;let Lt;"above"==xt?Lt={overlayX:"center",overlayY:"bottom"}:"below"==xt?Lt={overlayX:"center",overlayY:"top"}:"before"==xt||"left"==xt&&et||"right"==xt&&!et?Lt={overlayX:"end",overlayY:"center"}:("after"==xt||"right"==xt&&et||"left"==xt&&!et)&&(Lt={overlayX:"start",overlayY:"center"});const{x:Qe,y:mt}=this._invertPosition(Lt.overlayX,Lt.overlayY);return{main:Lt,fallback:{overlayX:Qe,overlayY:mt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,y.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(et){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=et,this._tooltipInstance._markForCheck())}_invertPosition(et,xt){return"above"===this.position||"below"===this.position?"top"===xt?xt="bottom":"bottom"===xt&&(xt="top"):"end"===et?et="start":"start"===et&&(et="end"),{x:et,y:xt}}_updateCurrentPositionClass(et){const{overlayY:xt,originX:Lt,originY:Qe}=et;let mt;if(mt="center"===xt?this._dir&&"rtl"===this._dir.value?"end"===Lt?"left":"right":"start"===Lt?"left":"right":"bottom"===xt&&"top"===Qe?"above":"below",mt!==this._currentPosition){const Vt=this._overlayRef;if(Vt){const qt=`${this._cssClassPrefix}-${Oe}-`;Vt.removePanelClass(qt+this._currentPosition),Vt.addPanelClass(qt+mt)}this._currentPosition=mt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const et=[];if(this._platformSupportsMouseEvents())et.push(["mouseleave",()=>this.hide()],["wheel",xt=>this._wheelListener(xt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const xt=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};et.push(["touchend",xt],["touchcancel",xt])}this._addListeners(et),this._passiveListeners.push(...et)}_addListeners(et){et.forEach(([xt,Lt])=>{this._elementRef.nativeElement.addEventListener(xt,Lt,Le)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(et){if(this._isTooltipVisible()){const xt=this._document.elementFromPoint(et.clientX,et.clientY),Lt=this._elementRef.nativeElement;xt!==Lt&&!Lt.contains(xt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const et=this.touchGestures;if("off"!==et){const xt=this._elementRef.nativeElement,Lt=xt.style;("on"===et||"INPUT"!==xt.nodeName&&"TEXTAREA"!==xt.nodeName)&&(Lt.userSelect=Lt.msUserSelect=Lt.webkitUserSelect=Lt.MozUserSelect="none"),("on"===et||!xt.draggable)&&(Lt.webkitUserDrag="none"),Lt.touchAction="none",Lt.webkitTapHighlightColor="transparent"}}}return Dt.\u0275fac=function(et){f.\u0275\u0275invalidFactory()},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),Dt})(),yt=(()=>{class Dt extends vt{constructor(et,xt,Lt,Qe,mt,Vt,qt,Ne,Se,ee,re,Me){super(et,xt,Lt,Qe,mt,Vt,qt,Ne,Se,ee,re,Me),this._tooltipComponent=_t}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275directiveInject(d.aV),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(h.mF),f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275directiveInject(A.t4),f.\u0275\u0275directiveInject(u.$s),f.\u0275\u0275directiveInject(u.tE),f.\u0275\u0275directiveInject(gt),f.\u0275\u0275directiveInject(J.Is,8),f.\u0275\u0275directiveInject(at,8),f.\u0275\u0275directiveInject(n.DOCUMENT))},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[f.\u0275\u0275InheritDefinitionFeature]}),Dt})(),ot=(()=>{class Dt{constructor(et){this._changeDetectorRef=et,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new i.xQ}show(et){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},et)}hide(et){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},et)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(et){const xt=et.toState;"hidden"===xt&&!this.isVisible()&&this._onHide.next(),("visible"===xt||"hidden"===xt)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275directiveInject(f.ChangeDetectorRef))},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt}),Dt})(),_t=(()=>{class Dt extends ot{constructor(et,xt){super(et),this._breakpointObserver=xt,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(ne))},Dt.\u0275cmp=f.\u0275\u0275defineComponent({type:Dt,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(et,xt){2&et&&f.\u0275\u0275styleProp("zoom","visible"===xt._visibility?1:null)},features:[f.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(et,xt){if(1&et&&(f.\u0275\u0275elementStart(0,"div",0),f.\u0275\u0275listener("@state.start",function(){return xt._animationStart()})("@state.done",function(Qe){return xt._animationDone(Qe)}),f.\u0275\u0275pipe(1,"async"),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd()),2&et){let Lt;f.\u0275\u0275classProp("mat-tooltip-handset",null==(Lt=f.\u0275\u0275pipeBind1(1,5,xt._isHandset))?null:Lt.matches),f.\u0275\u0275property("ngClass",xt.tooltipClass)("@state",xt._visibility),f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate(xt.message)}},directives:[n.NgClass],pipes:[n.AsyncPipe],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ie.tooltipState]},changeDetection:0}),Dt})(),At=(()=>{class Dt{}return Dt.\u0275fac=function(et){return new(et||Dt)},Dt.\u0275mod=f.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=f.\u0275\u0275defineInjector({providers:[tt],imports:[[u.rt,n.CommonModule,d.U8,v.MatCommonModule],v.MatCommonModule,h.ZD]}),Dt})();var Tt=p(7322);function Bt(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"mat-option",19),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&Dt){const et=Kt.$implicit;f.\u0275\u0275property("value",et),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",et," ")}}function Et(Dt,Kt){if(1&Dt){const et=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"mat-form-field",16),f.\u0275\u0275elementStart(1,"mat-select",17),f.\u0275\u0275listener("selectionChange",function(Lt){return f.\u0275\u0275restoreView(et),f.\u0275\u0275nextContext(2)._changePageSize(Lt.value)}),f.\u0275\u0275template(2,Bt,2,2,"mat-option",18),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const et=f.\u0275\u0275nextContext(2);f.\u0275\u0275property("appearance",et._formFieldAppearance)("color",et.color),f.\u0275\u0275advance(1),f.\u0275\u0275property("value",et.pageSize)("disabled",et.disabled)("aria-label",et._intl.itemsPerPageLabel),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngForOf",et._displayedPageSizeOptions)}}function Ee(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"div",20),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&Dt){const et=f.\u0275\u0275nextContext(2);f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate(et.pageSize)}}function fe(Dt,Kt){if(1&Dt&&(f.\u0275\u0275elementStart(0,"div",12),f.\u0275\u0275elementStart(1,"div",13),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(3,Et,3,6,"mat-form-field",14),f.\u0275\u0275template(4,Ee,2,1,"div",15),f.\u0275\u0275elementEnd()),2&Dt){const et=f.\u0275\u0275nextContext();f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate1(" ",et._intl.itemsPerPageLabel," "),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",et._displayedPageSizeOptions.length>1),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",et._displayedPageSizeOptions.length<=1)}}function H(Dt,Kt){if(1&Dt){const et=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"button",21),f.\u0275\u0275listener("click",function(){return f.\u0275\u0275restoreView(et),f.\u0275\u0275nextContext().firstPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(1,"svg",7),f.\u0275\u0275element(2,"path",22),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const et=f.\u0275\u0275nextContext();f.\u0275\u0275property("matTooltip",et._intl.firstPageLabel)("matTooltipDisabled",et._previousButtonsDisabled())("matTooltipPosition","above")("disabled",et._previousButtonsDisabled()),f.\u0275\u0275attribute("aria-label",et._intl.firstPageLabel)}}function x(Dt,Kt){if(1&Dt){const et=f.\u0275\u0275getCurrentView();f.\u0275\u0275namespaceSVG(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275elementStart(0,"button",23),f.\u0275\u0275listener("click",function(){return f.\u0275\u0275restoreView(et),f.\u0275\u0275nextContext().lastPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(1,"svg",7),f.\u0275\u0275element(2,"path",24),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&Dt){const et=f.\u0275\u0275nextContext();f.\u0275\u0275property("matTooltip",et._intl.lastPageLabel)("matTooltipDisabled",et._nextButtonsDisabled())("matTooltipPosition","above")("disabled",et._nextButtonsDisabled()),f.\u0275\u0275attribute("aria-label",et._intl.lastPageLabel)}}let U=(()=>{class Dt{constructor(){this.changes=new i.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(et,xt,Lt)=>{if(0==Lt||0==xt)return`0 of ${Lt}`;const Qe=et*xt;return`${Qe+1} \u2013 ${Qe<(Lt=Math.max(Lt,0))?Math.min(Qe+xt,Lt):Qe+xt} of ${Lt}`}}}return Dt.\u0275fac=function(et){return new(et||Dt)},Dt.\u0275prov=f.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Z(Dt){return Dt||new U}const _e={provide:U,deps:[[new f.Optional,new f.SkipSelf,U]],useFactory:Z};class $e{}const st=new f.InjectionToken("MAT_PAGINATOR_DEFAULT_OPTIONS"),ut=(0,v.mixinDisabled)((0,v.mixinInitialized)(class{}));let St=(()=>{class Dt extends ut{constructor(et,xt,Lt){if(super(),this._intl=et,this._changeDetectorRef=xt,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new f.EventEmitter,this._intlChanges=et.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Lt){const{pageSize:Qe,pageSizeOptions:mt,hidePageSize:Vt,showFirstLastButtons:qt}=Lt;null!=Qe&&(this._pageSize=Qe),null!=mt&&(this._pageSizeOptions=mt),null!=Vt&&(this._hidePageSize=Vt),null!=qt&&(this._showFirstLastButtons=qt)}}get pageIndex(){return this._pageIndex}set pageIndex(et){this._pageIndex=Math.max((0,r.su)(et),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(et){this._length=(0,r.su)(et),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(et){this._pageSize=Math.max((0,r.su)(et),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(et){this._pageSizeOptions=(et||[]).map(xt=>(0,r.su)(xt)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(et){this._hidePageSize=(0,r.Ig)(et)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(et){this._showFirstLastButtons=(0,r.Ig)(et)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const et=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(et)}previousPage(){if(!this.hasPreviousPage())return;const et=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(et)}firstPage(){if(!this.hasPreviousPage())return;const et=this.pageIndex;this.pageIndex=0,this._emitPageEvent(et)}lastPage(){if(!this.hasNextPage())return;const et=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(et)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const et=this.getNumberOfPages()-1;return this.pageIndexet-xt),this._changeDetectorRef.markForCheck())}_emitPageEvent(et){this.page.emit({previousPageIndex:et,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return Dt.\u0275fac=function(et){f.\u0275\u0275invalidFactory()},Dt.\u0275dir=f.\u0275\u0275defineDirective({type:Dt,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[f.\u0275\u0275InheritDefinitionFeature]}),Dt})(),Xt=(()=>{class Dt extends St{constructor(et,xt,Lt){super(et,xt,Lt),Lt&&null!=Lt.formFieldAppearance&&(this._formFieldAppearance=Lt.formFieldAppearance)}}return Dt.\u0275fac=function(et){return new(et||Dt)(f.\u0275\u0275directiveInject(U),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(st,8))},Dt.\u0275cmp=f.\u0275\u0275defineComponent({type:Dt,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[f.\u0275\u0275InheritDefinitionFeature],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(et,xt){1&et&&(f.\u0275\u0275elementStart(0,"div",0),f.\u0275\u0275elementStart(1,"div",1),f.\u0275\u0275template(2,fe,5,3,"div",2),f.\u0275\u0275elementStart(3,"div",3),f.\u0275\u0275elementStart(4,"div",4),f.\u0275\u0275text(5),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(6,H,3,5,"button",5),f.\u0275\u0275elementStart(7,"button",6),f.\u0275\u0275listener("click",function(){return xt.previousPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(8,"svg",7),f.\u0275\u0275element(9,"path",8),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275namespaceHTML(),f.\u0275\u0275elementStart(10,"button",9),f.\u0275\u0275listener("click",function(){return xt.nextPage()}),f.\u0275\u0275namespaceSVG(),f.\u0275\u0275elementStart(11,"svg",7),f.\u0275\u0275element(12,"path",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(13,x,3,5,"button",11),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&et&&(f.\u0275\u0275advance(2),f.\u0275\u0275property("ngIf",!xt.hidePageSize),f.\u0275\u0275advance(3),f.\u0275\u0275textInterpolate1(" ",xt._intl.getRangeLabel(xt.pageIndex,xt.pageSize,xt.length)," "),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",xt.showFirstLastButtons),f.\u0275\u0275advance(1),f.\u0275\u0275property("matTooltip",xt._intl.previousPageLabel)("matTooltipDisabled",xt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",xt._previousButtonsDisabled()),f.\u0275\u0275attribute("aria-label",xt._intl.previousPageLabel),f.\u0275\u0275advance(3),f.\u0275\u0275property("matTooltip",xt._intl.nextPageLabel)("matTooltipDisabled",xt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",xt._nextButtonsDisabled()),f.\u0275\u0275attribute("aria-label",xt._intl.nextPageLabel),f.\u0275\u0275advance(3),f.\u0275\u0275property("ngIf",xt.showFirstLastButtons))},directives:[n.NgIf,m.MatButton,yt,Tt.MatFormField,o.MatSelect,n.NgForOf,v.MatOption],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),Dt})(),tn=(()=>{class Dt{}return Dt.\u0275fac=function(et){return new(et||Dt)},Dt.\u0275mod=f.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=f.\u0275\u0275defineInjector({providers:[_e],imports:[[n.CommonModule,m.MatButtonModule,o.MatSelectModule,At,v.MatCommonModule]]}),Dt})()},773:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS:()=>y,MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY:()=>E,MatProgressSpinner:()=>D,MatProgressSpinnerModule:()=>w,MatSpinner:()=>O});var n=p(5e3),f=p(9808),v=p(508),m=p(3191),o=p(925),d=p(6360);function u(A,S){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const M=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("animation-name","mat-progress-spinner-stroke-rotate-"+M._spinnerAnimationLabel)("stroke-dashoffset",M._getStrokeDashOffset(),"px")("stroke-dasharray",M._getStrokeCircumference(),"px")("stroke-width",M._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",M._getCircleRadius())}}function h(A,S){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const M=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("stroke-dashoffset",M._getStrokeDashOffset(),"px")("stroke-dasharray",M._getStrokeCircumference(),"px")("stroke-width",M._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",M._getCircleRadius())}}function r(A,S){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const M=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("animation-name","mat-progress-spinner-stroke-rotate-"+M._spinnerAnimationLabel)("stroke-dashoffset",M._getStrokeDashOffset(),"px")("stroke-dasharray",M._getStrokeCircumference(),"px")("stroke-width",M._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",M._getCircleRadius())}}function s(A,S){if(1&A&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275element(0,"circle",3)),2&A){const M=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("stroke-dashoffset",M._getStrokeDashOffset(),"px")("stroke-dasharray",M._getStrokeCircumference(),"px")("stroke-width",M._getCircleStrokeWidth(),"%"),n.\u0275\u0275attribute("r",M._getCircleRadius())}}const g=(0,v.mixinColor)(class{constructor(A){this._elementRef=A}},"primary"),y=new n.InjectionToken("mat-progress-spinner-default-options",{providedIn:"root",factory:E});function E(){return{diameter:100}}class D extends g{constructor(S,M,I,b,L){super(S),this._document=I,this._diameter=100,this._value=0,this.mode="determinate";const F=D._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),F.has(I.head)||F.set(I.head,new Set([100])),this._noopAnimations="NoopAnimations"===b&&!!L&&!L._forceAnimations,L&&(L.diameter&&(this.diameter=L.diameter),L.strokeWidth&&(this.strokeWidth=L.strokeWidth))}get diameter(){return this._diameter}set diameter(S){this._diameter=(0,m.su)(S),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(S){this._strokeWidth=(0,m.su)(S)}get value(){return"determinate"===this.mode?this._value:0}set value(S){this._value=Math.max(0,Math.min(100,(0,m.su)(S)))}ngOnInit(){const S=this._elementRef.nativeElement;this._styleRoot=(0,o.kV)(S)||this._document.head,this._attachStyleNode(),S.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const S=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${S} ${S}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const S=this._styleRoot,M=this._diameter,I=D._diameters;let b=I.get(S);if(!b||!b.has(M)){const L=this._document.createElement("style");L.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),L.textContent=this._getAnimationText(),S.appendChild(L),b||(b=new Set,I.set(S,b)),b.add(M)}}_getAnimationText(){const S=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*S).replace(/END_VALUE/g,""+.2*S).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}D._diameters=new WeakMap,D.\u0275fac=function(S){return new(S||D)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(o.t4),n.\u0275\u0275directiveInject(f.DOCUMENT,8),n.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(y))},D.\u0275cmp=n.\u0275\u0275defineComponent({type:D,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(S,M){2&S&&(n.\u0275\u0275attribute("aria-valuemin","determinate"===M.mode?0:null)("aria-valuemax","determinate"===M.mode?100:null)("aria-valuenow","determinate"===M.mode?M.value:null)("mode",M.mode),n.\u0275\u0275styleProp("width",M.diameter,"px")("height",M.diameter,"px"),n.\u0275\u0275classProp("_mat-animation-noopable",M._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(S,M){1&S&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(0,"svg",0),n.\u0275\u0275template(1,u,1,9,"circle",1),n.\u0275\u0275template(2,h,1,7,"circle",2),n.\u0275\u0275elementEnd()),2&S&&(n.\u0275\u0275styleProp("width",M.diameter,"px")("height",M.diameter,"px"),n.\u0275\u0275property("ngSwitch","indeterminate"===M.mode),n.\u0275\u0275attribute("viewBox",M._getViewBox()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!1))},directives:[f.NgSwitch,f.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let O=(()=>{class A extends D{constructor(M,I,b,L,F){super(M,I,b,L,F),this.mode="indeterminate"}}return A.\u0275fac=function(M){return new(M||A)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(o.t4),n.\u0275\u0275directiveInject(f.DOCUMENT,8),n.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(y))},A.\u0275cmp=n.\u0275\u0275defineComponent({type:A,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(M,I){2&M&&(n.\u0275\u0275styleProp("width",I.diameter,"px")("height",I.diameter,"px"),n.\u0275\u0275classProp("_mat-animation-noopable",I._noopAnimations))},inputs:{color:"color"},features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(M,I){1&M&&(n.\u0275\u0275namespaceSVG(),n.\u0275\u0275elementStart(0,"svg",0),n.\u0275\u0275template(1,r,1,9,"circle",1),n.\u0275\u0275template(2,s,1,7,"circle",2),n.\u0275\u0275elementEnd()),2&M&&(n.\u0275\u0275styleProp("width",I.diameter,"px")("height",I.diameter,"px"),n.\u0275\u0275property("ngSwitch","indeterminate"===I.mode),n.\u0275\u0275attribute("viewBox",I._getViewBox()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!0),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngSwitchCase",!1))},directives:[f.NgSwitch,f.NgSwitchCase],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),A})(),w=(()=>{class A{}return A.\u0275fac=function(M){return new(M||A)},A.\u0275mod=n.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=n.\u0275\u0275defineInjector({imports:[[v.MatCommonModule,f.CommonModule],v.MatCommonModule]}),A})()},9814:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_RADIO_DEFAULT_OPTIONS:()=>i,MAT_RADIO_DEFAULT_OPTIONS_FACTORY:()=>c,MAT_RADIO_GROUP:()=>E,MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR:()=>g,MatRadioButton:()=>S,MatRadioChange:()=>y,MatRadioGroup:()=>D,MatRadioModule:()=>M,_MatRadioButtonBase:()=>A,_MatRadioGroupBase:()=>T});var n=p(5e3),f=p(508),v=p(3191),m=p(3075),o=p(6360),d=p(5664),u=p(449);const h=["input"],r=function(I){return{enterDuration:I}},s=["*"],i=new n.InjectionToken("mat-radio-default-options",{providedIn:"root",factory:c});function c(){return{color:"accent"}}let l=0;const g={provide:m.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>D),multi:!0};class y{constructor(b,L){this.source=b,this.value=L}}const E=new n.InjectionToken("MatRadioGroup");let T=(()=>{class I{constructor(L){this._changeDetector=L,this._value=null,this._name="mat-radio-group-"+l++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new n.EventEmitter}get name(){return this._name}set name(L){this._name=L,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(L){this._labelPosition="before"===L?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(L){this._value!==L&&(this._value=L,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(L){this._selected=L,this.value=L?L.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,v.Ig)(L),this._markRadiosForCheck()}get required(){return this._required}set required(L){this._required=(0,v.Ig)(L),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(L=>{L.name=this.name,L._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(F=>{F.checked=this.value===F.value,F.checked&&(this._selected=F)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new y(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(L=>L._markForCheck())}writeValue(L){this.value=L,this._changeDetector.markForCheck()}registerOnChange(L){this._controlValueAccessorChangeFn=L}registerOnTouched(L){this.onTouched=L}setDisabledState(L){this.disabled=L,this._changeDetector.markForCheck()}}return I.\u0275fac=function(L){return new(L||I)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},I.\u0275dir=n.\u0275\u0275defineDirective({type:I,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),I})(),D=(()=>{class I extends T{}return I.\u0275fac=function(){let b;return function(F){return(b||(b=n.\u0275\u0275getInheritedFactory(I)))(F||I)}}(),I.\u0275dir=n.\u0275\u0275defineDirective({type:I,selectors:[["mat-radio-group"]],contentQueries:function(L,F,ne){if(1&L&&n.\u0275\u0275contentQuery(ne,S,5),2&L){let Y;n.\u0275\u0275queryRefresh(Y=n.\u0275\u0275loadQuery())&&(F._radios=Y)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n.\u0275\u0275ProvidersFeature([g,{provide:E,useExisting:I}]),n.\u0275\u0275InheritDefinitionFeature]}),I})();class O{constructor(b){this._elementRef=b}}const w=(0,f.mixinDisableRipple)((0,f.mixinTabIndex)(O));let A=(()=>{class I extends w{constructor(L,F,ne,Y,Q,te,$,J){super(F),this._changeDetector=ne,this._focusMonitor=Y,this._radioDispatcher=Q,this._providerOverride=$,this._uniqueId="mat-radio-"+ ++l,this.id=this._uniqueId,this.change=new n.EventEmitter,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=L,this._noopAnimations="NoopAnimations"===te,J&&(this.tabIndex=(0,v.su)(J,0)),this._removeUniqueSelectionListener=Q.listen((ie,ae)=>{ie!==this.id&&ae===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(L){const F=(0,v.Ig)(L);this._checked!==F&&(this._checked=F,F&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!F&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),F&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(L){this._value!==L&&(this._value=L,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===L),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(L){this._labelPosition=L}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(L){this._setDisabled((0,v.Ig)(L))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(L){this._required=(0,v.Ig)(L)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(L){this._color=L}get inputId(){return`${this.id||this._uniqueId}-input`}focus(L,F){F?this._focusMonitor.focusVia(this._inputElement,F,L):this._inputElement.nativeElement.focus(L)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(L=>{!L&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new y(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(L){L.stopPropagation()}_onInputInteraction(L){if(L.stopPropagation(),!this.checked&&!this.disabled){const F=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),F&&this.radioGroup._emitChangeEvent())}}_setDisabled(L){this._disabled!==L&&(this._disabled=L,this._changeDetector.markForCheck())}}return I.\u0275fac=function(L){n.\u0275\u0275invalidFactory()},I.\u0275dir=n.\u0275\u0275defineDirective({type:I,viewQuery:function(L,F){if(1&L&&n.\u0275\u0275viewQuery(h,5),2&L){let ne;n.\u0275\u0275queryRefresh(ne=n.\u0275\u0275loadQuery())&&(F._inputElement=ne.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[n.\u0275\u0275InheritDefinitionFeature]}),I})(),S=(()=>{class I extends A{constructor(L,F,ne,Y,Q,te,$,J){super(L,F,ne,Y,Q,te,$,J)}}return I.\u0275fac=function(L){return new(L||I)(n.\u0275\u0275directiveInject(E,8),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(d.tE),n.\u0275\u0275directiveInject(u.A8),n.\u0275\u0275directiveInject(o.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(i,8),n.\u0275\u0275injectAttribute("tabindex"))},I.\u0275cmp=n.\u0275\u0275defineComponent({type:I,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(L,F){1&L&&n.\u0275\u0275listener("focus",function(){return F._inputElement.nativeElement.focus()}),2&L&&(n.\u0275\u0275attribute("tabindex",null)("id",F.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.\u0275\u0275classProp("mat-radio-checked",F.checked)("mat-radio-disabled",F.disabled)("_mat-animation-noopable",F._noopAnimations)("mat-primary","primary"===F.color)("mat-accent","accent"===F.color)("mat-warn","warn"===F.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:s,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(L,F){if(1&L&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"label",0,1),n.\u0275\u0275elementStart(2,"span",2),n.\u0275\u0275element(3,"span",3),n.\u0275\u0275element(4,"span",4),n.\u0275\u0275elementStart(5,"input",5,6),n.\u0275\u0275listener("change",function(Y){return F._onInputInteraction(Y)})("click",function(Y){return F._onInputClick(Y)}),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(7,"span",7),n.\u0275\u0275element(8,"span",8),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"span",9),n.\u0275\u0275elementStart(10,"span",10),n.\u0275\u0275text(11,"\xa0"),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(12),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementEnd()),2&L){const ne=n.\u0275\u0275reference(1);n.\u0275\u0275attribute("for",F.inputId),n.\u0275\u0275advance(5),n.\u0275\u0275property("id",F.inputId)("checked",F.checked)("disabled",F.disabled)("tabIndex",F.tabIndex)("required",F.required),n.\u0275\u0275attribute("name",F.name)("value",F.value)("aria-label",F.ariaLabel)("aria-labelledby",F.ariaLabelledby)("aria-describedby",F.ariaDescribedby),n.\u0275\u0275advance(2),n.\u0275\u0275property("matRippleTrigger",ne)("matRippleDisabled",F._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.\u0275\u0275pureFunction1(18,r,F._noopAnimations?0:150)),n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-radio-label-before","before"==F.labelPosition)}},directives:[f.MatRipple],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),I})(),M=(()=>{class I{}return I.\u0275fac=function(L){return new(L||I)},I.\u0275mod=n.\u0275\u0275defineNgModule({type:I}),I.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatRippleModule,f.MatCommonModule],f.MatCommonModule]}),I})()},4107:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_SELECT_CONFIG:()=>vt,MAT_SELECT_SCROLL_STRATEGY:()=>at,MAT_SELECT_SCROLL_STRATEGY_PROVIDER:()=>yt,MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ft,MAT_SELECT_TRIGGER:()=>At,MatSelect:()=>Et,MatSelectChange:()=>ot,MatSelectModule:()=>Ee,MatSelectTrigger:()=>Tt,_MatSelectBase:()=>Bt,matSelectAnimations:()=>J});var n=p(1314),f=p(9808),v=p(5e3),m=p(508),o=p(7322),d=p(9071),u=p(5664),h=p(3191),r=p(449),s=p(1159),i=p(3075),c=p(8929),l=p(8514),g=p(6787),y=p(1059),E=p(7545),T=p(2986),D=p(2198),O=p(4850),w=p(5778),A=p(7625),S=p(1777),M=p(226);const I=["trigger"],b=["panel"];function L(fe,H){if(1&fe&&(v.\u0275\u0275elementStart(0,"span",8),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&fe){const x=v.\u0275\u0275nextContext();v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate(x.placeholder)}}function F(fe,H){if(1&fe&&(v.\u0275\u0275elementStart(0,"span",12),v.\u0275\u0275text(1),v.\u0275\u0275elementEnd()),2&fe){const x=v.\u0275\u0275nextContext(2);v.\u0275\u0275advance(1),v.\u0275\u0275textInterpolate(x.triggerValue)}}function ne(fe,H){1&fe&&v.\u0275\u0275projection(0,0,["*ngSwitchCase","true"])}function Y(fe,H){if(1&fe&&(v.\u0275\u0275elementStart(0,"span",9),v.\u0275\u0275template(1,F,2,1,"span",10),v.\u0275\u0275template(2,ne,1,0,"ng-content",11),v.\u0275\u0275elementEnd()),2&fe){const x=v.\u0275\u0275nextContext();v.\u0275\u0275property("ngSwitch",!!x.customTrigger),v.\u0275\u0275advance(2),v.\u0275\u0275property("ngSwitchCase",!0)}}function Q(fe,H){if(1&fe){const x=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"div",13),v.\u0275\u0275elementStart(1,"div",14,15),v.\u0275\u0275listener("@transformPanel.done",function(Z){return v.\u0275\u0275restoreView(x),v.\u0275\u0275nextContext()._panelDoneAnimatingStream.next(Z.toState)})("keydown",function(Z){return v.\u0275\u0275restoreView(x),v.\u0275\u0275nextContext()._handleKeydown(Z)}),v.\u0275\u0275projection(3,1),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd()}if(2&fe){const x=v.\u0275\u0275nextContext();v.\u0275\u0275property("@transformPanelWrap",void 0),v.\u0275\u0275advance(1),v.\u0275\u0275classMapInterpolate1("mat-select-panel ",x._getPanelTheme(),""),v.\u0275\u0275styleProp("transform-origin",x._transformOrigin)("font-size",x._triggerFontSize,"px"),v.\u0275\u0275property("ngClass",x.panelClass)("@transformPanel",x.multiple?"showing-multiple":"showing"),v.\u0275\u0275attribute("id",x.id+"-panel")("aria-multiselectable",x.multiple)("aria-label",x.ariaLabel||null)("aria-labelledby",x._getPanelAriaLabelledby())}}const te=[[["mat-select-trigger"]],"*"],$=["mat-select-trigger","*"],J={transformPanelWrap:(0,S.X$)("transformPanelWrap",[(0,S.eR)("* => void",(0,S.IO)("@transformPanel",[(0,S.pV)()],{optional:!0}))]),transformPanel:(0,S.X$)("transformPanel",[(0,S.SB)("void",(0,S.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,S.SB)("showing",(0,S.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,S.SB)("showing-multiple",(0,S.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,S.eR)("void => *",(0,S.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,S.eR)("* => void",(0,S.jt)("100ms 25ms linear",(0,S.oB)({opacity:0})))])};let Oe=0;const at=new v.InjectionToken("mat-select-scroll-strategy");function ft(fe){return()=>fe.scrollStrategies.reposition()}const vt=new v.InjectionToken("MAT_SELECT_CONFIG"),yt={provide:at,deps:[n.aV],useFactory:ft};class ot{constructor(H,x){this.source=H,this.value=x}}const _t=(0,m.mixinDisableRipple)((0,m.mixinTabIndex)((0,m.mixinDisabled)((0,m.mixinErrorState)(class{constructor(fe,H,x,U,Z){this._elementRef=fe,this._defaultErrorStateMatcher=H,this._parentForm=x,this._parentFormGroup=U,this.ngControl=Z}})))),At=new v.InjectionToken("MatSelectTrigger");let Tt=(()=>{class fe{}return fe.\u0275fac=function(x){return new(x||fe)},fe.\u0275dir=v.\u0275\u0275defineDirective({type:fe,selectors:[["mat-select-trigger"]],features:[v.\u0275\u0275ProvidersFeature([{provide:At,useExisting:fe}])]}),fe})(),Bt=(()=>{class fe extends _t{constructor(x,U,Z,_e,Be,$e,st,ut,St,Xt,tn,Dt,Kt,et){var xt,Lt,Qe;super(Be,_e,st,ut,Xt),this._viewportRuler=x,this._changeDetectorRef=U,this._ngZone=Z,this._dir=$e,this._parentFormField=St,this._liveAnnouncer=Kt,this._defaultOptions=et,this._panelOpen=!1,this._compareWith=(mt,Vt)=>mt===Vt,this._uid="mat-select-"+Oe++,this._triggerAriaLabelledBy=null,this._destroy=new c.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Oe++,this._panelDoneAnimatingStream=new c.xQ,this._overlayPanelClass=(null===(xt=this._defaultOptions)||void 0===xt?void 0:xt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Qe=null===(Lt=this._defaultOptions)||void 0===Lt?void 0:Lt.disableOptionCentering)&&void 0!==Qe&&Qe,this.ariaLabel="",this.optionSelectionChanges=(0,l.P)(()=>{const mt=this.options;return mt?mt.changes.pipe((0,y.O)(mt),(0,E.w)(()=>(0,g.T)(...mt.map(Vt=>Vt.onSelectionChange)))):this._ngZone.onStable.pipe((0,T.q)(1),(0,E.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.EventEmitter,this._openedStream=this.openedChange.pipe((0,D.h)(mt=>mt),(0,O.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,D.h)(mt=>!mt),(0,O.U)(()=>{})),this.selectionChange=new v.EventEmitter,this.valueChange=new v.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==et?void 0:et.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=et.typeaheadDebounceInterval),this._scrollStrategyFactory=Dt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(tn)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(x){this._placeholder=x,this.stateChanges.next()}get required(){var x,U,Z,_e;return null!==(_e=null!==(x=this._required)&&void 0!==x?x:null===(Z=null===(U=this.ngControl)||void 0===U?void 0:U.control)||void 0===Z?void 0:Z.hasValidator(i.Validators.required))&&void 0!==_e&&_e}set required(x){this._required=(0,h.Ig)(x),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(x){this._multiple=(0,h.Ig)(x)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(x){this._disableOptionCentering=(0,h.Ig)(x)}get compareWith(){return this._compareWith}set compareWith(x){this._compareWith=x,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(x){(x!==this._value||this._multiple&&Array.isArray(x))&&(this.options&&this._setSelectionByValue(x),this._value=x)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(x){this._typeaheadDebounceInterval=(0,h.su)(x)}get id(){return this._id}set id(x){this._id=x||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new r.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,A.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,A.R)(this._destroy)).subscribe(x=>{x.added.forEach(U=>U.select()),x.removed.forEach(U=>U.deselect())}),this.options.changes.pipe((0,y.O)(null),(0,A.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const x=this._getTriggerAriaLabelledby();if(x!==this._triggerAriaLabelledBy){const U=this._elementRef.nativeElement;this._triggerAriaLabelledBy=x,x?U.setAttribute("aria-labelledby",x):U.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(x){x.disabled&&this.stateChanges.next(),x.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(x){this.value=x}registerOnChange(x){this._onChange=x}registerOnTouched(x){this._onTouched=x}setDisabledState(x){this.disabled=x,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var x,U;return this.multiple?(null===(x=this._selectionModel)||void 0===x?void 0:x.selected)||[]:null===(U=this._selectionModel)||void 0===U?void 0:U.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const x=this._selectionModel.selected.map(U=>U.viewValue);return this._isRtl()&&x.reverse(),x.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(x){this.disabled||(this.panelOpen?this._handleOpenKeydown(x):this._handleClosedKeydown(x))}_handleClosedKeydown(x){const U=x.keyCode,Z=U===s.JH||U===s.LH||U===s.oh||U===s.SV,_e=U===s.K5||U===s.L_,Be=this._keyManager;if(!Be.isTyping()&&_e&&!(0,s.Vb)(x)||(this.multiple||x.altKey)&&Z)x.preventDefault(),this.open();else if(!this.multiple){const $e=this.selected;Be.onKeydown(x);const st=this.selected;st&&$e!==st&&this._liveAnnouncer.announce(st.viewValue,1e4)}}_handleOpenKeydown(x){const U=this._keyManager,Z=x.keyCode,_e=Z===s.JH||Z===s.LH,Be=U.isTyping();if(_e&&x.altKey)x.preventDefault(),this.close();else if(Be||Z!==s.K5&&Z!==s.L_||!U.activeItem||(0,s.Vb)(x))if(!Be&&this._multiple&&Z===s.A&&x.ctrlKey){x.preventDefault();const $e=this.options.some(st=>!st.disabled&&!st.selected);this.options.forEach(st=>{st.disabled||($e?st.select():st.deselect())})}else{const $e=U.activeItemIndex;U.onKeydown(x),this._multiple&&_e&&x.shiftKey&&U.activeItem&&U.activeItemIndex!==$e&&U.activeItem._selectViaInteraction()}else x.preventDefault(),U.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,T.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(x){if(this._selectionModel.selected.forEach(U=>U.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&x)Array.isArray(x),x.forEach(U=>this._selectValue(U)),this._sortValues();else{const U=this._selectValue(x);U?this._keyManager.updateActiveItem(U):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(x){const U=this.options.find(Z=>{if(this._selectionModel.isSelected(Z))return!1;try{return null!=Z.value&&this._compareWith(Z.value,x)}catch(_e){return!1}});return U&&this._selectionModel.select(U),U}_initKeyManager(){this._keyManager=new u.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,A.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,A.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const x=(0,g.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,A.R)(x)).subscribe(U=>{this._onSelect(U.source,U.isUserInput),U.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,g.T)(...this.options.map(U=>U._stateChanges)).pipe((0,A.R)(x)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(x,U){const Z=this._selectionModel.isSelected(x);null!=x.value||this._multiple?(Z!==x.selected&&(x.selected?this._selectionModel.select(x):this._selectionModel.deselect(x)),U&&this._keyManager.setActiveItem(x),this.multiple&&(this._sortValues(),U&&this.focus())):(x.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(x.value)),Z!==this._selectionModel.isSelected(x)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const x=this.options.toArray();this._selectionModel.sort((U,Z)=>this.sortComparator?this.sortComparator(U,Z,x):x.indexOf(U)-x.indexOf(Z)),this.stateChanges.next()}}_propagateChanges(x){let U=null;U=this.multiple?this.selected.map(Z=>Z.value):this.selected?this.selected.value:x,this._value=U,this.valueChange.emit(U),this._onChange(U),this.selectionChange.emit(this._getChangeEvent(U)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var x;return!this._panelOpen&&!this.disabled&&(null===(x=this.options)||void 0===x?void 0:x.length)>0}focus(x){this._elementRef.nativeElement.focus(x)}_getPanelAriaLabelledby(){var x;if(this.ariaLabel)return null;const U=null===(x=this._parentFormField)||void 0===x?void 0:x.getLabelId();return this.ariaLabelledby?(U?U+" ":"")+this.ariaLabelledby:U}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var x;if(this.ariaLabel)return null;const U=null===(x=this._parentFormField)||void 0===x?void 0:x.getLabelId();let Z=(U?U+" ":"")+this._valueId;return this.ariaLabelledby&&(Z+=" "+this.ariaLabelledby),Z}_panelDoneAnimating(x){this.openedChange.emit(x)}setDescribedByIds(x){this._ariaDescribedby=x.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return fe.\u0275fac=function(x){return new(x||fe)(v.\u0275\u0275directiveInject(d.rL),v.\u0275\u0275directiveInject(v.ChangeDetectorRef),v.\u0275\u0275directiveInject(v.NgZone),v.\u0275\u0275directiveInject(m.ErrorStateMatcher),v.\u0275\u0275directiveInject(v.ElementRef),v.\u0275\u0275directiveInject(M.Is,8),v.\u0275\u0275directiveInject(i.NgForm,8),v.\u0275\u0275directiveInject(i.FormGroupDirective,8),v.\u0275\u0275directiveInject(o.MAT_FORM_FIELD,8),v.\u0275\u0275directiveInject(i.NgControl,10),v.\u0275\u0275injectAttribute("tabindex"),v.\u0275\u0275directiveInject(at),v.\u0275\u0275directiveInject(u.Kd),v.\u0275\u0275directiveInject(vt,8))},fe.\u0275dir=v.\u0275\u0275defineDirective({type:fe,viewQuery:function(x,U){if(1&x&&(v.\u0275\u0275viewQuery(I,5),v.\u0275\u0275viewQuery(b,5),v.\u0275\u0275viewQuery(n.pI,5)),2&x){let Z;v.\u0275\u0275queryRefresh(Z=v.\u0275\u0275loadQuery())&&(U.trigger=Z.first),v.\u0275\u0275queryRefresh(Z=v.\u0275\u0275loadQuery())&&(U.panel=Z.first),v.\u0275\u0275queryRefresh(Z=v.\u0275\u0275loadQuery())&&(U._overlayDir=Z.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.\u0275\u0275InheritDefinitionFeature,v.\u0275\u0275NgOnChangesFeature]}),fe})(),Et=(()=>{class fe extends Bt{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(x,U,Z){const _e=this._getItemHeight();return Math.min(Math.max(0,_e*x-U+_e/2),Z)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,A.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(x){const U=(0,m._countGroupLabelsBeforeOption)(x,this.options,this.optionGroups),Z=this._getItemHeight();this.panel.nativeElement.scrollTop=0===x&&1===U?0:(0,m._getOptionScrollPosition)((x+U)*Z,Z,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(x){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(x)}_getChangeEvent(x){return new ot(this,x)}_calculateOverlayOffsetX(){const x=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),U=this._viewportRuler.getViewportSize(),Z=this._isRtl(),_e=this.multiple?56:32;let Be;if(this.multiple)Be=40;else if(this.disableOptionCentering)Be=16;else{let ut=this._selectionModel.selected[0]||this.options.first;Be=ut&&ut.group?32:16}Z||(Be*=-1);const $e=0-(x.left+Be-(Z?_e:0)),st=x.right+Be-U.width+(Z?0:_e);$e>0?Be+=$e+8:st>0&&(Be-=st+8),this._overlayDir.offsetX=Math.round(Be),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(x,U,Z){const _e=this._getItemHeight(),Be=(_e-this._triggerRect.height)/2,$e=Math.floor(256/_e);let st;return this.disableOptionCentering?0:(st=0===this._scrollTop?x*_e:this._scrollTop===Z?(x-(this._getItemCount()-$e))*_e+(_e-(this._getItemCount()*_e-256)%_e):U-_e/2,Math.round(-1*st-Be))}_checkOverlayWithinViewport(x){const U=this._getItemHeight(),Z=this._viewportRuler.getViewportSize(),_e=this._triggerRect.top-8,Be=Z.height-this._triggerRect.bottom-8,$e=Math.abs(this._offsetY),ut=Math.min(this._getItemCount()*U,256)-$e-this._triggerRect.height;ut>Be?this._adjustPanelUp(ut,Be):$e>_e?this._adjustPanelDown($e,_e,x):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(x,U){const Z=Math.round(x-U);this._scrollTop-=Z,this._offsetY-=Z,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(x,U,Z){const _e=Math.round(x-U);if(this._scrollTop+=_e,this._offsetY+=_e,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Z)return this._scrollTop=Z,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const x=this._getItemHeight(),U=this._getItemCount(),Z=Math.min(U*x,256),Be=U*x-Z;let $e;$e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),$e+=(0,m._countGroupLabelsBeforeOption)($e,this.options,this.optionGroups);const st=Z/2;this._scrollTop=this._calculateOverlayScroll($e,st,Be),this._offsetY=this._calculateOverlayOffsetY($e,st,Be),this._checkOverlayWithinViewport(Be)}_getOriginBasedOnOption(){const x=this._getItemHeight(),U=(x-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-U+x/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return fe.\u0275fac=function(){let H;return function(U){return(H||(H=v.\u0275\u0275getInheritedFactory(fe)))(U||fe)}}(),fe.\u0275cmp=v.\u0275\u0275defineComponent({type:fe,selectors:[["mat-select"]],contentQueries:function(x,U,Z){if(1&x&&(v.\u0275\u0275contentQuery(Z,At,5),v.\u0275\u0275contentQuery(Z,m.MatOption,5),v.\u0275\u0275contentQuery(Z,m.MAT_OPTGROUP,5)),2&x){let _e;v.\u0275\u0275queryRefresh(_e=v.\u0275\u0275loadQuery())&&(U.customTrigger=_e.first),v.\u0275\u0275queryRefresh(_e=v.\u0275\u0275loadQuery())&&(U.options=_e),v.\u0275\u0275queryRefresh(_e=v.\u0275\u0275loadQuery())&&(U.optionGroups=_e)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(x,U){1&x&&v.\u0275\u0275listener("keydown",function(_e){return U._handleKeydown(_e)})("focus",function(){return U._onFocus()})("blur",function(){return U._onBlur()}),2&x&&(v.\u0275\u0275attribute("id",U.id)("tabindex",U.tabIndex)("aria-controls",U.panelOpen?U.id+"-panel":null)("aria-expanded",U.panelOpen)("aria-label",U.ariaLabel||null)("aria-required",U.required.toString())("aria-disabled",U.disabled.toString())("aria-invalid",U.errorState)("aria-describedby",U._ariaDescribedby||null)("aria-activedescendant",U._getAriaActiveDescendant()),v.\u0275\u0275classProp("mat-select-disabled",U.disabled)("mat-select-invalid",U.errorState)("mat-select-required",U.required)("mat-select-empty",U.empty)("mat-select-multiple",U.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v.\u0275\u0275ProvidersFeature([{provide:o.MatFormFieldControl,useExisting:fe},{provide:m.MAT_OPTION_PARENT_COMPONENT,useExisting:fe}]),v.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(x,U){if(1&x&&(v.\u0275\u0275projectionDef(te),v.\u0275\u0275elementStart(0,"div",0,1),v.\u0275\u0275listener("click",function(){return U.toggle()}),v.\u0275\u0275elementStart(3,"div",2),v.\u0275\u0275template(4,L,2,1,"span",3),v.\u0275\u0275template(5,Y,3,2,"span",4),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementStart(6,"div",5),v.\u0275\u0275element(7,"div",6),v.\u0275\u0275elementEnd(),v.\u0275\u0275elementEnd(),v.\u0275\u0275template(8,Q,4,14,"ng-template",7),v.\u0275\u0275listener("backdropClick",function(){return U.close()})("attach",function(){return U._onAttached()})("detach",function(){return U.close()})),2&x){const Z=v.\u0275\u0275reference(1);v.\u0275\u0275attribute("aria-owns",U.panelOpen?U.id+"-panel":null),v.\u0275\u0275advance(3),v.\u0275\u0275property("ngSwitch",U.empty),v.\u0275\u0275attribute("id",U._valueId),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngSwitchCase",!0),v.\u0275\u0275advance(1),v.\u0275\u0275property("ngSwitchCase",!1),v.\u0275\u0275advance(3),v.\u0275\u0275property("cdkConnectedOverlayPanelClass",U._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",U._scrollStrategy)("cdkConnectedOverlayOrigin",Z)("cdkConnectedOverlayOpen",U.panelOpen)("cdkConnectedOverlayPositions",U._positions)("cdkConnectedOverlayMinWidth",null==U._triggerRect?null:U._triggerRect.width)("cdkConnectedOverlayOffsetY",U._offsetY)}},directives:[n.xu,f.NgSwitch,f.NgSwitchCase,n.pI,f.NgSwitchDefault,f.NgClass],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[J.transformPanelWrap,J.transformPanel]},changeDetection:0}),fe})(),Ee=(()=>{class fe{}return fe.\u0275fac=function(x){return new(x||fe)},fe.\u0275mod=v.\u0275\u0275defineNgModule({type:fe}),fe.\u0275inj=v.\u0275\u0275defineInjector({providers:[yt],imports:[[f.CommonModule,n.U8,m.MatOptionModule,m.MatCommonModule],d.ZD,o.MatFormFieldModule,m.MatOptionModule,m.MatCommonModule]}),fe})()},2368:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS:()=>l,MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR:()=>O,MAT_SLIDE_TOGGLE_VALUE_ACCESSOR:()=>y,MatSlideToggle:()=>D,MatSlideToggleChange:()=>E,MatSlideToggleModule:()=>S,MatSlideToggleRequiredValidator:()=>w,_MatSlideToggleRequiredValidatorModule:()=>A});var n=p(7144),f=p(5e3),v=p(508),m=p(3191),o=p(3075),d=p(6360),u=p(5664);const h=["thumbContainer"],r=["toggleBar"],s=["input"],i=function(M){return{enterDuration:M}},c=["*"],l=new f.InjectionToken("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let g=0;const y={provide:o.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>D),multi:!0};class E{constructor(I,b){this.source=I,this.checked=b}}const T=(0,v.mixinTabIndex)((0,v.mixinColor)((0,v.mixinDisableRipple)((0,v.mixinDisabled)(class{constructor(M){this._elementRef=M}}))));let D=(()=>{class M extends T{constructor(b,L,F,ne,Y,Q){super(b),this._focusMonitor=L,this._changeDetectorRef=F,this.defaults=Y,this._onChange=te=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++g,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new f.EventEmitter,this.toggleChange=new f.EventEmitter,this.tabIndex=parseInt(ne)||0,this.color=this.defaultColor=Y.color||"accent",this._noopAnimations="NoopAnimations"===Q}get required(){return this._required}set required(b){this._required=(0,m.Ig)(b)}get checked(){return this._checked}set checked(b){this._checked=(0,m.Ig)(b),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(b=>{b||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(b){b.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(b){b.stopPropagation()}writeValue(b){this.checked=!!b}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}setDisabledState(b){this.disabled=b,this._changeDetectorRef.markForCheck()}focus(b,L){L?this._focusMonitor.focusVia(this._inputElement,L,b):this._inputElement.nativeElement.focus(b)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new E(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return M.\u0275fac=function(b){return new(b||M)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(u.tE),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(l),f.\u0275\u0275directiveInject(d.ANIMATION_MODULE_TYPE,8))},M.\u0275cmp=f.\u0275\u0275defineComponent({type:M,selectors:[["mat-slide-toggle"]],viewQuery:function(b,L){if(1&b&&(f.\u0275\u0275viewQuery(h,5),f.\u0275\u0275viewQuery(r,5),f.\u0275\u0275viewQuery(s,5)),2&b){let F;f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._thumbEl=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._thumbBarEl=F.first),f.\u0275\u0275queryRefresh(F=f.\u0275\u0275loadQuery())&&(L._inputElement=F.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(b,L){2&b&&(f.\u0275\u0275hostProperty("id",L.id),f.\u0275\u0275attribute("tabindex",null)("aria-label",null)("aria-labelledby",null),f.\u0275\u0275classProp("mat-checked",L.checked)("mat-disabled",L.disabled)("mat-slide-toggle-label-before","before"==L.labelPosition)("_mat-animation-noopable",L._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[f.\u0275\u0275ProvidersFeature([y]),f.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:c,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(b,L){if(1&b&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"label",0,1),f.\u0275\u0275elementStart(2,"div",2,3),f.\u0275\u0275elementStart(4,"input",4,5),f.\u0275\u0275listener("change",function(ne){return L._onChangeEvent(ne)})("click",function(ne){return L._onInputClick(ne)}),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(6,"div",6,7),f.\u0275\u0275element(8,"div",8),f.\u0275\u0275elementStart(9,"div",9),f.\u0275\u0275element(10,"div",10),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(11,"span",11,12),f.\u0275\u0275listener("cdkObserveContent",function(){return L._onLabelTextChange()}),f.\u0275\u0275elementStart(13,"span",13),f.\u0275\u0275text(14,"\xa0"),f.\u0275\u0275elementEnd(),f.\u0275\u0275projection(15),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&b){const F=f.\u0275\u0275reference(1),ne=f.\u0275\u0275reference(12);f.\u0275\u0275attribute("for",L.inputId),f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-slide-toggle-bar-no-side-margin",!ne.textContent||!ne.textContent.trim()),f.\u0275\u0275advance(2),f.\u0275\u0275property("id",L.inputId)("required",L.required)("tabIndex",L.tabIndex)("checked",L.checked)("disabled",L.disabled),f.\u0275\u0275attribute("name",L.name)("aria-checked",L.checked.toString())("aria-label",L.ariaLabel)("aria-labelledby",L.ariaLabelledby)("aria-describedby",L.ariaDescribedby),f.\u0275\u0275advance(5),f.\u0275\u0275property("matRippleTrigger",F)("matRippleDisabled",L.disableRipple||L.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",f.\u0275\u0275pureFunction1(18,i,L._noopAnimations?0:150))}},directives:[v.MatRipple,n.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),M})();const O={provide:o.NG_VALIDATORS,useExisting:(0,f.forwardRef)(()=>w),multi:!0};let w=(()=>{class M extends o.CheckboxRequiredValidator{}return M.\u0275fac=function(){let I;return function(L){return(I||(I=f.\u0275\u0275getInheritedFactory(M)))(L||M)}}(),M.\u0275dir=f.\u0275\u0275defineDirective({type:M,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[f.\u0275\u0275ProvidersFeature([O]),f.\u0275\u0275InheritDefinitionFeature]}),M})(),A=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=f.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=f.\u0275\u0275defineInjector({}),M})(),S=(()=>{class M{}return M.\u0275fac=function(b){return new(b||M)},M.\u0275mod=f.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=f.\u0275\u0275defineInjector({imports:[[A,v.MatRippleModule,v.MatCommonModule,n.Q8],A,v.MatCommonModule]}),M})()},8029:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_SLIDER_VALUE_ACCESSOR:()=>D,MatSlider:()=>A,MatSliderChange:()=>O,MatSliderModule:()=>L});var n=p(9808),f=p(5e3),v=p(508),m=p(3191),o=p(1159),d=p(3075),u=p(6360),h=p(925),r=p(2654),s=p(5664),i=p(226);const c=["sliderWrapper"],l=(0,h.i$)({passive:!1}),D={provide:d.NG_VALUE_ACCESSOR,useExisting:(0,f.forwardRef)(()=>A),multi:!0};class O{}const w=(0,v.mixinTabIndex)((0,v.mixinColor)((0,v.mixinDisabled)(class{constructor(F){this._elementRef=F}}),"accent"));let A=(()=>{class F extends w{constructor(Y,Q,te,$,J,ie,ae,le){super(Y),this._focusMonitor=Q,this._changeDetectorRef=te,this._dir=$,this._ngZone=ie,this._animationMode=le,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new f.EventEmitter,this.input=new f.EventEmitter,this.valueChange=new f.EventEmitter,this.onTouched=()=>{},this._percent=0,this._isSliding=null,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=r.w.EMPTY,this._pointerDown=Oe=>{this.disabled||this._isSliding||!S(Oe)&&0!==Oe.button||this._ngZone.run(()=>{this._touchId=S(Oe)?function(F,ne){for(let Y=0;Y{if("pointer"===this._isSliding){const Le=M(Oe,this._touchId);if(Le){Oe.preventDefault();const Ye=this.value;this._lastPointerEvent=Oe,this._updateValueFromPosition(Le),Ye!=this.value&&this._emitInputEvent()}}},this._pointerUp=Oe=>{"pointer"===this._isSliding&&(!S(Oe)||"number"!=typeof this._touchId||I(Oe.changedTouches,this._touchId))&&(Oe.preventDefault(),this._removeGlobalEvents(),this._isSliding=null,this._touchId=void 0,this._valueOnSlideStart!=this.value&&!this.disabled&&this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=ae,this.tabIndex=parseInt(J)||0,ie.runOutsideAngular(()=>{const Oe=Y.nativeElement;Oe.addEventListener("mousedown",this._pointerDown,l),Oe.addEventListener("touchstart",this._pointerDown,l)})}get invert(){return this._invert}set invert(Y){this._invert=(0,m.Ig)(Y)}get max(){return this._max}set max(Y){this._max=(0,m.su)(Y,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(Y){this._min=(0,m.su)(Y,this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(Y){this._step=(0,m.su)(Y,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(Y){this._thumbLabel=(0,m.Ig)(Y)}get tickInterval(){return this._tickInterval}set tickInterval(Y){this._tickInterval="auto"===Y?"auto":"number"==typeof Y||"string"==typeof Y?(0,m.su)(Y,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(Y){if(Y!==this._value){let Q=(0,m.su)(Y,0);this._roundToDecimal&&Q!==this.min&&Q!==this.max&&(Q=parseFloat(Q.toFixed(this._roundToDecimal))),this._value=Q,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(Y){this._vertical=(0,m.Ig)(Y)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(Y){this._focusHostElement(Y)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const Q=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${Q})`}}_getTrackFillStyles(){const Y=this.percent,te=this.vertical?`1, ${Y}, 1`:`${Y}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${te})`,display:0===Y?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let Y=100*this._tickIntervalPercent,ie={backgroundSize:this.vertical?`2px ${Y}%`:`${Y}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${Y/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const ae=this._shouldInvertAxis();let le;le=this.vertical?ae?"Bottom":"Top":ae?"Right":"Left",ie[`padding${le}`]=`${this._getThumbGap()}px`}return ie}_getThumbContainerStyles(){const Y=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?Y:!Y)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const Y=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?Y:!Y}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(Y=>{this._isActive=!!Y&&"keyboard"!==Y,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const Y=this._elementRef.nativeElement;Y.removeEventListener("mousedown",this._pointerDown,l),Y.removeEventListener("touchstart",this._pointerDown,l),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(Y){if(this.disabled||(0,o.Vb)(Y)||this._isSliding&&"keyboard"!==this._isSliding)return;const Q=this.value;switch(Y.keyCode){case o.Ku:this._increment(10);break;case o.VM:this._increment(-10);break;case o.uR:this.value=this.max;break;case o.Sd:this.value=this.min;break;case o.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case o.LH:this._increment(1);break;case o.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case o.JH:this._increment(-1);break;default:return}Q!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding="keyboard",Y.preventDefault()}_onKeyup(){"keyboard"===this._isSliding&&(this._isSliding=null)}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(Y){const Q=this._document,te=S(Y),J=te?"touchend":"mouseup";Q.addEventListener(te?"touchmove":"mousemove",this._pointerMove,l),Q.addEventListener(J,this._pointerUp,l),te&&Q.addEventListener("touchcancel",this._pointerUp,l);const ie=this._getWindow();void 0!==ie&&ie&&ie.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const Y=this._document;Y.removeEventListener("mousemove",this._pointerMove,l),Y.removeEventListener("mouseup",this._pointerUp,l),Y.removeEventListener("touchmove",this._pointerMove,l),Y.removeEventListener("touchend",this._pointerUp,l),Y.removeEventListener("touchcancel",this._pointerUp,l);const Q=this._getWindow();void 0!==Q&&Q&&Q.removeEventListener("blur",this._windowBlur)}_increment(Y){this.value=this._clamp((this.value||0)+this.step*Y,this.min,this.max)}_updateValueFromPosition(Y){if(!this._sliderDimensions)return;let J=this._clamp(((this.vertical?Y.y:Y.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(J=1-J),0===J)this.value=this.min;else if(1===J)this.value=this.max;else{const ie=this._calculateValue(J),ae=Math.round((ie-this.min)/this.step)*this.step+this.min;this.value=this._clamp(ae,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let Y=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,$=Math.ceil(30/(Y*this.step/(this.max-this.min)))*this.step;this._tickIntervalPercent=$/Y}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(Y=this.value){let Q=new O;return Q.source=this,Q.value=Y,Q}_calculatePercentage(Y){return((Y||0)-this.min)/(this.max-this.min)}_calculateValue(Y){return this.min+Y*(this.max-this.min)}_clamp(Y,Q=0,te=1){return Math.max(Q,Math.min(Y,te))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(Y){this._elementRef.nativeElement.focus(Y)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(Y){this.value=Y}registerOnChange(Y){this._controlValueAccessorChangeFn=Y}registerOnTouched(Y){this.onTouched=Y}setDisabledState(Y){this.disabled=Y}}return F.\u0275fac=function(Y){return new(Y||F)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(s.tE),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(i.Is,8),f.\u0275\u0275injectAttribute("tabindex"),f.\u0275\u0275directiveInject(f.NgZone),f.\u0275\u0275directiveInject(n.DOCUMENT),f.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},F.\u0275cmp=f.\u0275\u0275defineComponent({type:F,selectors:[["mat-slider"]],viewQuery:function(Y,Q){if(1&Y&&f.\u0275\u0275viewQuery(c,5),2&Y){let te;f.\u0275\u0275queryRefresh(te=f.\u0275\u0275loadQuery())&&(Q._sliderWrapper=te.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(Y,Q){1&Y&&f.\u0275\u0275listener("focus",function(){return Q._onFocus()})("blur",function(){return Q._onBlur()})("keydown",function($){return Q._onKeydown($)})("keyup",function(){return Q._onKeyup()})("mouseenter",function(){return Q._onMouseenter()})("selectstart",function($){return $.preventDefault()}),2&Y&&(f.\u0275\u0275hostProperty("tabIndex",Q.tabIndex),f.\u0275\u0275attribute("aria-disabled",Q.disabled)("aria-valuemax",Q.max)("aria-valuemin",Q.min)("aria-valuenow",Q.value)("aria-valuetext",null==Q.valueText?Q.displayValue:Q.valueText)("aria-orientation",Q.vertical?"vertical":"horizontal"),f.\u0275\u0275classProp("mat-slider-disabled",Q.disabled)("mat-slider-has-ticks",Q.tickInterval)("mat-slider-horizontal",!Q.vertical)("mat-slider-axis-inverted",Q._shouldInvertAxis())("mat-slider-invert-mouse-coords",Q._shouldInvertMouseCoords())("mat-slider-sliding",Q._isSliding)("mat-slider-thumb-label-showing",Q.thumbLabel)("mat-slider-vertical",Q.vertical)("mat-slider-min-value",Q._isMinValue())("mat-slider-hide-last-tick",Q.disabled||Q._isMinValue()&&Q._getThumbGap()&&Q._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===Q._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",value:"value",displayWith:"displayWith",valueText:"valueText",vertical:"vertical"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[f.\u0275\u0275ProvidersFeature([D]),f.\u0275\u0275InheritDefinitionFeature],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(Y,Q){1&Y&&(f.\u0275\u0275elementStart(0,"div",0,1),f.\u0275\u0275elementStart(2,"div",2),f.\u0275\u0275element(3,"div",3),f.\u0275\u0275element(4,"div",4),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(5,"div",5),f.\u0275\u0275element(6,"div",6),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(7,"div",7),f.\u0275\u0275element(8,"div",8),f.\u0275\u0275element(9,"div",9),f.\u0275\u0275elementStart(10,"div",10),f.\u0275\u0275elementStart(11,"span",11),f.\u0275\u0275text(12),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&Y&&(f.\u0275\u0275advance(3),f.\u0275\u0275property("ngStyle",Q._getTrackBackgroundStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",Q._getTrackFillStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",Q._getTicksContainerStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",Q._getTicksStyles()),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngStyle",Q._getThumbContainerStyles()),f.\u0275\u0275advance(5),f.\u0275\u0275textInterpolate(Q.displayValue))},directives:[n.NgStyle],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{-webkit-print-color-adjust:exact;color-adjust:exact;position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{-webkit-background-clip:content-box;background-clip:content-box;background-repeat:repeat;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),F})();function S(F){return"t"===F.type[0]}function M(F,ne){let Y;return Y=S(F)?"number"==typeof ne?I(F.touches,ne)||I(F.changedTouches,ne):F.touches[0]||F.changedTouches[0]:F,Y?{x:Y.clientX,y:Y.clientY}:void 0}function I(F,ne){for(let Y=0;Y{class F{}return F.\u0275fac=function(Y){return new(Y||F)},F.\u0275mod=f.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=f.\u0275\u0275defineInjector({imports:[[n.CommonModule,v.MatCommonModule],v.MatCommonModule]}),F})()},6346:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatCell:()=>He,MatCellDef:()=>It,MatColumnDef:()=>An,MatFooterCell:()=>ct,MatFooterCellDef:()=>cn,MatFooterRow:()=>On,MatFooterRowDef:()=>Ot,MatHeaderCell:()=>lt,MatHeaderCellDef:()=>Qt,MatHeaderRow:()=>on,MatHeaderRowDef:()=>pt,MatNoDataRow:()=>ji,MatRecycleRows:()=>Me,MatRow:()=>Yn,MatRowDef:()=>un,MatTable:()=>ze,MatTableDataSource:()=>ci,MatTableModule:()=>Ti,MatTextColumn:()=>Oi,_MatTableDataSource:()=>Vi});var n=p(5e3),f=p(3191),v=p(449),m=p(9808),o=p(8929),d=p(5254),u=p(591),h=p(6498),s=p(1086),i=p(7625),c=p(2986),l=p(226),g=p(925),y=p(9071);const E=[[["caption"]],[["colgroup"],["col"]]],T=["caption","colgroup, col"];function D(xe,Ze){if(1&xe&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&xe){const ue=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",ue.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",ue.headerText," ")}}function O(xe,Ze){if(1&xe&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&xe){const ue=Ze.$implicit,Re=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Re.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Re.dataAccessor(ue,Re.name)," ")}}function w(xe){return class extends xe{constructor(...Ze){super(...Ze),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Ze){const ue=this._sticky;this._sticky=(0,f.Ig)(Ze),this._hasStickyChanged=ue!==this._sticky}hasStickyChanged(){const Ze=this._hasStickyChanged;return this._hasStickyChanged=!1,Ze}resetStickyChanged(){this._hasStickyChanged=!1}}}const A=new n.InjectionToken("CDK_TABLE"),S=new n.InjectionToken("text-column-options");let M=(()=>{class xe{constructor(ue){this.template=ue}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkCellDef",""]]}),xe})(),I=(()=>{class xe{constructor(ue){this.template=ue}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkHeaderCellDef",""]]}),xe})(),b=(()=>{class xe{constructor(ue){this.template=ue}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkFooterCellDef",""]]}),xe})();class L{}const F=w(L);let ne=(()=>{class xe extends F{constructor(ue){super(),this._table=ue,this._stickyEnd=!1}get name(){return this._name}set name(ue){this._setNameInput(ue)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ue){const Re=this._stickyEnd;this._stickyEnd=(0,f.Ig)(ue),this._hasStickyChanged=Re!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ue){ue&&(this._name=ue,this.cssClassFriendlyName=ue.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(A,8))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkColumnDef",""]],contentQueries:function(ue,Re,B){if(1&ue&&(n.\u0275\u0275contentQuery(B,M,5),n.\u0275\u0275contentQuery(B,I,5),n.\u0275\u0275contentQuery(B,b,5)),2&ue){let de;n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re.cell=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re.headerCell=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re.footerCell=de.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})();class Y{constructor(Ze,ue){const Re=ue.nativeElement.classList;for(const B of Ze._columnCssClassName)Re.add(B)}}let Q=(()=>{class xe extends Y{constructor(ue,Re){super(ue,Re)}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(ne),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),te=(()=>{class xe extends Y{constructor(ue,Re){var B;if(super(ue,Re),1===(null===(B=ue._table)||void 0===B?void 0:B._elementRef.nativeElement.nodeType)){const de=ue._table._elementRef.nativeElement.getAttribute("role");Re.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(ne),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),$=(()=>{class xe extends Y{constructor(ue,Re){var B;if(super(ue,Re),1===(null===(B=ue._table)||void 0===B?void 0:B._elementRef.nativeElement.nodeType)){const de=ue._table._elementRef.nativeElement.getAttribute("role");Re.nativeElement.setAttribute("role","grid"===de||"treegrid"===de?"gridcell":"cell")}}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(ne),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})();class J{constructor(){this.tasks=[],this.endTasks=[]}}const ie=new n.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ae=(()=>{class xe{constructor(ue){this._ngZone=ue,this._currentSchedule=null,this._destroyed=new o.xQ}schedule(ue){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ue)}scheduleEnd(ue){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ue)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new J,this._getScheduleObservable().pipe((0,i.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ue=this._currentSchedule;this._currentSchedule=new J;for(const Re of ue.tasks)Re();for(const Re of ue.endTasks)Re()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,d.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,c.q)(1))}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275inject(n.NgZone))},xe.\u0275prov=n.\u0275\u0275defineInjectable({token:xe,factory:xe.\u0275fac}),xe})(),Oe=(()=>{class xe{constructor(ue,Re){this.template=ue,this._differs=Re}ngOnChanges(ue){if(!this._columnsDiffer){const Re=ue.columns&&ue.columns.currentValue||[];this._columnsDiffer=this._differs.find(Re).create(),this._columnsDiffer.diff(Re)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ue){return this instanceof Je?ue.headerCell.template:this instanceof tt?ue.footerCell.template:ue.cell.template}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,features:[n.\u0275\u0275NgOnChangesFeature]}),xe})();class Le extends Oe{}const Ye=w(Le);let Je=(()=>{class xe extends Ye{constructor(ue,Re,B){super(ue,Re),this._table=B}ngOnChanges(ue){super.ngOnChanges(ue)}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),xe})();class gt extends Oe{}const Ue=w(gt);let tt=(()=>{class xe extends Ue{constructor(ue,Re,B){super(ue,Re),this._table=B}ngOnChanges(ue){super.ngOnChanges(ue)}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),xe})(),at=(()=>{class xe extends Oe{constructor(ue,Re,B){super(ue,Re),this._table=B}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(A,8))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),ft=(()=>{class xe{constructor(ue){this._viewContainer=ue,xe.mostRecentCellOutlet=this}ngOnDestroy(){xe.mostRecentCellOutlet===this&&(xe.mostRecentCellOutlet=null)}}return xe.mostRecentCellOutlet=null,xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","cdkCellOutlet",""]]}),xe})(),vt=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),yt=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),ot=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),_t=(()=>{class xe{constructor(ue){this.templateRef=ue,this._contentClassName="cdk-no-data-row"}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.TemplateRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["ng-template","cdkNoDataRow",""]]}),xe})();const At=["top","bottom","left","right"];class Tt{constructor(Ze,ue,Re,B,de=!0,Pe=!0,Xe){this._isNativeHtmlTable=Ze,this._stickCellCss=ue,this.direction=Re,this._coalescedStyleScheduler=B,this._isBrowser=de,this._needsPositionStickyOnElement=Pe,this._positionListener=Xe,this._cachedCellWidths=[],this._borderCellCss={top:`${ue}-border-elem-top`,bottom:`${ue}-border-elem-bottom`,left:`${ue}-border-elem-left`,right:`${ue}-border-elem-right`}}clearStickyPositioning(Ze,ue){const Re=[];for(const B of Ze)if(B.nodeType===B.ELEMENT_NODE){Re.push(B);for(let de=0;de{for(const B of Re)this._removeStickyStyle(B,ue)})}updateStickyColumns(Ze,ue,Re,B=!0){if(!Ze.length||!this._isBrowser||!ue.some(an=>an)&&!Re.some(an=>an))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const de=Ze[0],Pe=de.children.length,Xe=this._getCellWidths(de,B),Wt=this._getStickyStartColumnPositions(Xe,ue),Ft=this._getStickyEndColumnPositions(Xe,Re),Ht=ue.lastIndexOf(!0),Zt=Re.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const an="rtl"===this.direction,Tn=an?"right":"left",zn=an?"left":"right";for(const $n of Ze)for(let ti=0;tiue[ti]?$n:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Zt?[]:Xe.slice(Zt).map(($n,ti)=>Re[ti+Zt]?$n:null).reverse()}))})}stickRows(Ze,ue,Re){if(!this._isBrowser)return;const B="bottom"===Re?Ze.slice().reverse():Ze,de="bottom"===Re?ue.slice().reverse():ue,Pe=[],Xe=[],Wt=[];for(let Ht=0,Zt=0;Ht{var Ht,Zt;for(let an=0;an{ue.some(B=>!B)?this._removeStickyStyle(Re,["bottom"]):this._addStickyStyle(Re,"bottom",0,!1)})}_removeStickyStyle(Ze,ue){for(const B of ue)Ze.style[B]="",Ze.classList.remove(this._borderCellCss[B]);At.some(B=>-1===ue.indexOf(B)&&Ze.style[B])?Ze.style.zIndex=this._getCalculatedZIndex(Ze):(Ze.style.zIndex="",this._needsPositionStickyOnElement&&(Ze.style.position=""),Ze.classList.remove(this._stickCellCss))}_addStickyStyle(Ze,ue,Re,B){Ze.classList.add(this._stickCellCss),B&&Ze.classList.add(this._borderCellCss[ue]),Ze.style[ue]=`${Re}px`,Ze.style.zIndex=this._getCalculatedZIndex(Ze),this._needsPositionStickyOnElement&&(Ze.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ze){const ue={top:100,bottom:10,left:1,right:1};let Re=0;for(const B of At)Ze.style[B]&&(Re+=ue[B]);return Re?`${Re}`:""}_getCellWidths(Ze,ue=!0){if(!ue&&this._cachedCellWidths.length)return this._cachedCellWidths;const Re=[],B=Ze.children;for(let de=0;de0;de--)ue[de]&&(Re[de]=B,B+=Ze[de]);return Re}}const _e=new n.InjectionToken("CDK_SPL");let $e=(()=>{class xe{constructor(ue,Re){this.viewContainer=ue,this.elementRef=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","rowOutlet",""]]}),xe})(),st=(()=>{class xe{constructor(ue,Re){this.viewContainer=ue,this.elementRef=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","headerRowOutlet",""]]}),xe})(),ut=(()=>{class xe{constructor(ue,Re){this.viewContainer=ue,this.elementRef=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","footerRowOutlet",""]]}),xe})(),St=(()=>{class xe{constructor(ue,Re){this.viewContainer=ue,this.elementRef=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","noDataRowOutlet",""]]}),xe})(),Dt=(()=>{class xe{constructor(ue,Re,B,de,Pe,Xe,Wt,Ft,Ht,Zt,an){this._differs=ue,this._changeDetectorRef=Re,this._elementRef=B,this._dir=Pe,this._platform=Wt,this._viewRepeater=Ft,this._coalescedStyleScheduler=Ht,this._viewportRuler=Zt,this._stickyPositioningListener=an,this._onDestroy=new o.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new n.EventEmitter,this.viewChange=new u.X({start:0,end:Number.MAX_VALUE}),de||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Xe,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ue){this._trackByFn=ue}get dataSource(){return this._dataSource}set dataSource(ue){this._dataSource!==ue&&this._switchDataSource(ue)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ue){this._multiTemplateDataRows=(0,f.Ig)(ue),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ue){this._fixedLayout=(0,f.Ig)(ue),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ue,Re)=>this.trackBy?this.trackBy(Re.dataIndex,Re.data):Re),this._viewportRuler.change().pipe((0,i.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Re=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Re,this._forceRecalculateCellWidths=Re,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ue=this._dataDiffer.diff(this._renderRows);if(!ue)return this._updateNoDataRow(),void this.contentChanged.next();const Re=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ue,Re,(B,de,Pe)=>this._getEmbeddedViewArgs(B.item,Pe),B=>B.item.data,B=>{1===B.operation&&B.context&&this._renderCellTemplateForItem(B.record.item.rowDef,B.context)}),this._updateRowIndexContext(),ue.forEachIdentityChange(B=>{Re.get(B.currentIndex).context.$implicit=B.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ue){this._customColumnDefs.add(ue)}removeColumnDef(ue){this._customColumnDefs.delete(ue)}addRowDef(ue){this._customRowDefs.add(ue)}removeRowDef(ue){this._customRowDefs.delete(ue)}addHeaderRowDef(ue){this._customHeaderRowDefs.add(ue),this._headerRowDefChanged=!0}removeHeaderRowDef(ue){this._customHeaderRowDefs.delete(ue),this._headerRowDefChanged=!0}addFooterRowDef(ue){this._customFooterRowDefs.add(ue),this._footerRowDefChanged=!0}removeFooterRowDef(ue){this._customFooterRowDefs.delete(ue),this._footerRowDefChanged=!0}setNoDataRow(ue){this._customNoDataRow=ue}updateStickyHeaderRowStyles(){const ue=this._getRenderedRows(this._headerRowOutlet),B=this._elementRef.nativeElement.querySelector("thead");B&&(B.style.display=ue.length?"":"none");const de=this._headerRowDefs.map(Pe=>Pe.sticky);this._stickyStyler.clearStickyPositioning(ue,["top"]),this._stickyStyler.stickRows(ue,de,"top"),this._headerRowDefs.forEach(Pe=>Pe.resetStickyChanged())}updateStickyFooterRowStyles(){const ue=this._getRenderedRows(this._footerRowOutlet),B=this._elementRef.nativeElement.querySelector("tfoot");B&&(B.style.display=ue.length?"":"none");const de=this._footerRowDefs.map(Pe=>Pe.sticky);this._stickyStyler.clearStickyPositioning(ue,["bottom"]),this._stickyStyler.stickRows(ue,de,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,de),this._footerRowDefs.forEach(Pe=>Pe.resetStickyChanged())}updateStickyColumnStyles(){const ue=this._getRenderedRows(this._headerRowOutlet),Re=this._getRenderedRows(this._rowOutlet),B=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ue,...Re,...B],["left","right"]),this._stickyColumnStylesNeedReset=!1),ue.forEach((de,Pe)=>{this._addStickyColumnStyles([de],this._headerRowDefs[Pe])}),this._rowDefs.forEach(de=>{const Pe=[];for(let Xe=0;Xe{this._addStickyColumnStyles([de],this._footerRowDefs[Pe])}),Array.from(this._columnDefsByName.values()).forEach(de=>de.resetStickyChanged())}_getAllRenderRows(){const ue=[],Re=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let B=0;B{const Xe=B&&B.has(Pe)?B.get(Pe):[];if(Xe.length){const Wt=Xe.shift();return Wt.dataIndex=Re,Wt}return{data:ue,rowDef:Pe,dataIndex:Re}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Kt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Re=>{this._columnDefsByName.has(Re.name),this._columnDefsByName.set(Re.name,Re)})}_cacheRowDefs(){this._headerRowDefs=Kt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Kt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Kt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ue=this._rowDefs.filter(Re=>!Re.when);this._defaultRowDef=ue[0]}_renderUpdatedColumns(){const ue=(Pe,Xe)=>Pe||!!Xe.getColumnsDiff(),Re=this._rowDefs.reduce(ue,!1);Re&&this._forceRenderDataRows();const B=this._headerRowDefs.reduce(ue,!1);B&&this._forceRenderHeaderRows();const de=this._footerRowDefs.reduce(ue,!1);return de&&this._forceRenderFooterRows(),Re||B||de}_switchDataSource(ue){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ue||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ue}_observeRenderChanges(){if(!this.dataSource)return;let ue;(0,v.Z9)(this.dataSource)?ue=this.dataSource.connect(this):function(xe){return!!xe&&(xe instanceof h.y||"function"==typeof xe.lift&&"function"==typeof xe.subscribe)}(this.dataSource)?ue=this.dataSource:Array.isArray(this.dataSource)&&(ue=(0,s.of)(this.dataSource)),this._renderChangeSubscription=ue.pipe((0,i.R)(this._onDestroy)).subscribe(Re=>{this._data=Re||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ue,Re)=>this._renderRow(this._headerRowOutlet,ue,Re)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ue,Re)=>this._renderRow(this._footerRowOutlet,ue,Re)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ue,Re){const B=Array.from(Re.columns||[]).map(Xe=>this._columnDefsByName.get(Xe)),de=B.map(Xe=>Xe.sticky),Pe=B.map(Xe=>Xe.stickyEnd);this._stickyStyler.updateStickyColumns(ue,de,Pe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ue){const Re=[];for(let B=0;B!de.when||de.when(Re,ue));else{let de=this._rowDefs.find(Pe=>Pe.when&&Pe.when(Re,ue))||this._defaultRowDef;de&&B.push(de)}return B}_getEmbeddedViewArgs(ue,Re){return{templateRef:ue.rowDef.template,context:{$implicit:ue.data},index:Re}}_renderRow(ue,Re,B,de={}){const Pe=ue.viewContainer.createEmbeddedView(Re.template,de,B);return this._renderCellTemplateForItem(Re,de),Pe}_renderCellTemplateForItem(ue,Re){for(let B of this._getCellTemplates(ue))ft.mostRecentCellOutlet&&ft.mostRecentCellOutlet._viewContainer.createEmbeddedView(B,Re);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ue=this._rowOutlet.viewContainer;for(let Re=0,B=ue.length;Re{const B=this._columnDefsByName.get(Re);return ue.extractCellTemplate(B)}):[]}_applyNativeTableSections(){const ue=this._document.createDocumentFragment(),Re=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const B of Re){const de=this._document.createElement(B.tag);de.setAttribute("role","rowgroup");for(const Pe of B.outlets)de.appendChild(Pe.elementRef.nativeElement);ue.appendChild(de)}this._elementRef.nativeElement.appendChild(ue)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ue=(Re,B)=>Re||B.hasStickyChanged();this._headerRowDefs.reduce(ue,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ue,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ue,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Tt(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,s.of)()).pipe((0,i.R)(this._onDestroy)).subscribe(Re=>{this._stickyStyler.direction=Re,this.updateStickyColumnStyles()})}_getOwnDefs(ue){return ue.filter(Re=>!Re._table||Re._table===this)}_updateNoDataRow(){const ue=this._customNoDataRow||this._noDataRow;if(!ue)return;const Re=0===this._rowOutlet.viewContainer.length;if(Re===this._isShowingNoDataRow)return;const B=this._noDataRowOutlet.viewContainer;if(Re){const de=B.createEmbeddedView(ue.templateRef),Pe=de.rootNodes[0];1===de.rootNodes.length&&(null==Pe?void 0:Pe.nodeType)===this._document.ELEMENT_NODE&&(Pe.setAttribute("role","row"),Pe.classList.add(ue._contentClassName))}else B.clear();this._isShowingNoDataRow=Re}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275injectAttribute("role"),n.\u0275\u0275directiveInject(l.Is,8),n.\u0275\u0275directiveInject(m.DOCUMENT),n.\u0275\u0275directiveInject(g.t4),n.\u0275\u0275directiveInject(v.k),n.\u0275\u0275directiveInject(ie),n.\u0275\u0275directiveInject(y.rL),n.\u0275\u0275directiveInject(_e,12))},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ue,Re,B){if(1&ue&&(n.\u0275\u0275contentQuery(B,_t,5),n.\u0275\u0275contentQuery(B,ne,5),n.\u0275\u0275contentQuery(B,at,5),n.\u0275\u0275contentQuery(B,Je,5),n.\u0275\u0275contentQuery(B,tt,5)),2&ue){let de;n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._noDataRow=de.first),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._contentColumnDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._contentRowDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._contentHeaderRowDefs=de),n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(Re._contentFooterRowDefs=de)}},viewQuery:function(ue,Re){if(1&ue&&(n.\u0275\u0275viewQuery($e,7),n.\u0275\u0275viewQuery(st,7),n.\u0275\u0275viewQuery(ut,7),n.\u0275\u0275viewQuery(St,7)),2&ue){let B;n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re._rowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re._headerRowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re._footerRowOutlet=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re._noDataRowOutlet=B.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ue,Re){2&ue&&n.\u0275\u0275classProp("cdk-table-fixed-layout",Re.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:A,useExisting:xe},{provide:v.k,useClass:v.yy},{provide:ie,useClass:ae},{provide:_e,useValue:null}])],ngContentSelectors:T,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ue,Re){1&ue&&(n.\u0275\u0275projectionDef(E),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0),n.\u0275\u0275elementContainer(3,1),n.\u0275\u0275elementContainer(4,2),n.\u0275\u0275elementContainer(5,3))},directives:[st,$e,St,ut],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),xe})();function Kt(xe,Ze){return xe.concat(Array.from(Ze))}let et=(()=>{class xe{constructor(ue,Re){this._table=ue,this._options=Re,this.justify="start",this._options=Re||{}}get name(){return this._name}set name(ue){this._name=ue,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((ue,Re)=>ue[Re])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const ue=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(ue):ue[0].toUpperCase()+ue.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return xe.\u0275fac=function(ue){return new(ue||xe)(n.\u0275\u0275directiveInject(Dt,8),n.\u0275\u0275directiveInject(S,8))},xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["cdk-text-column"]],viewQuery:function(ue,Re){if(1&ue&&(n.\u0275\u0275viewQuery(ne,7),n.\u0275\u0275viewQuery(M,7),n.\u0275\u0275viewQuery(I,7)),2&ue){let B;n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re.columnDef=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re.cell=B.first),n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Re.headerCell=B.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(ue,Re){1&ue&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,D,2,3,"th",1),n.\u0275\u0275template(2,O,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},directives:[ne,I,M,Q,$],encapsulation:2}),xe})(),Lt=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275mod=n.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=n.\u0275\u0275defineInjector({imports:[[y.Cl]]}),xe})();var Qe=p(508),mt=p(6787),Vt=p(6053),qt=p(4850);const Ne=[[["caption"]],[["colgroup"],["col"]]],Se=["caption","colgroup, col"];function ee(xe,Ze){if(1&xe&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&xe){const ue=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",ue.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",ue.headerText," ")}}function re(xe,Ze){if(1&xe&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&xe){const ue=Ze.$implicit,Re=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Re.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Re.dataAccessor(ue,Re.name)," ")}}let Me=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:v.k,useClass:v.eX}])]}),xe})(),ze=(()=>{class xe extends Dt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ue,Re){2&ue&&n.\u0275\u0275classProp("mat-table-fixed-layout",Re.fixedLayout)},exportAs:["matTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:v.k,useClass:v.yy},{provide:Dt,useExisting:xe},{provide:A,useExisting:xe},{provide:ie,useClass:ae},{provide:_e,useValue:null}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Se,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ue,Re){1&ue&&(n.\u0275\u0275projectionDef(Ne),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0),n.\u0275\u0275elementContainer(3,1),n.\u0275\u0275elementContainer(4,2),n.\u0275\u0275elementContainer(5,3))},directives:[st,$e,St,ut],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),xe})(),It=(()=>{class xe extends M{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:M,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),Qt=(()=>{class xe extends I{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matHeaderCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:I,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),cn=(()=>{class xe extends b{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matFooterCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:b,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),An=(()=>{class xe extends ne{get name(){return this._name}set name(ue){this._setNameInput(ue)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n.\u0275\u0275ProvidersFeature([{provide:ne,useExisting:xe},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),lt=(()=>{class xe extends Q{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),ct=(()=>{class xe extends te{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),He=(()=>{class xe extends ${}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),xe})(),pt=(()=>{class xe extends Je{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:Je,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),Ot=(()=>{class xe extends tt{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:tt,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),un=(()=>{class xe extends at{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n.\u0275\u0275ProvidersFeature([{provide:at,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),on=(()=>{class xe extends vt{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:vt,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),On=(()=>{class xe extends yt{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),Yn=(()=>{class xe extends ot{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:ot,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ue,Re){1&ue&&n.\u0275\u0275elementContainer(0,0)},directives:[ft],encapsulation:2}),xe})(),ji=(()=>{class xe extends _t{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275dir=n.\u0275\u0275defineDirective({type:xe,selectors:[["ng-template","matNoDataRow",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:_t,useExisting:xe}]),n.\u0275\u0275InheritDefinitionFeature]}),xe})(),Oi=(()=>{class xe extends et{}return xe.\u0275fac=function(){let Ze;return function(Re){return(Ze||(Ze=n.\u0275\u0275getInheritedFactory(xe)))(Re||xe)}}(),xe.\u0275cmp=n.\u0275\u0275defineComponent({type:xe,selectors:[["mat-text-column"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(ue,Re){1&ue&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,ee,2,3,"th",1),n.\u0275\u0275template(2,re,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},directives:[An,Qt,It,lt,He],encapsulation:2}),xe})(),Ti=(()=>{class xe{}return xe.\u0275fac=function(ue){return new(ue||xe)},xe.\u0275mod=n.\u0275\u0275defineNgModule({type:xe}),xe.\u0275inj=n.\u0275\u0275defineInjector({imports:[[Lt,Qe.MatCommonModule],Qe.MatCommonModule]}),xe})();class Vi extends v.o2{constructor(Ze=[]){super(),this._renderData=new u.X([]),this._filter=new u.X(""),this._internalPageChanges=new o.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ue,Re)=>{const B=ue[Re];if((0,f.t6)(B)){const de=Number(B);return de<9007199254740991?de:B}return B},this.sortData=(ue,Re)=>{const B=Re.active,de=Re.direction;return B&&""!=de?ue.sort((Pe,Xe)=>{let Wt=this.sortingDataAccessor(Pe,B),Ft=this.sortingDataAccessor(Xe,B);const Ht=typeof Wt,Zt=typeof Ft;Ht!==Zt&&("number"===Ht&&(Wt+=""),"number"===Zt&&(Ft+=""));let an=0;return null!=Wt&&null!=Ft?Wt>Ft?an=1:Wt{const B=Object.keys(ue).reduce((Pe,Xe)=>Pe+ue[Xe]+"\u25ec","").toLowerCase(),de=Re.trim().toLowerCase();return-1!=B.indexOf(de)},this._data=new u.X(Ze),this._updateChangeSubscription()}get data(){return this._data.value}set data(Ze){this._data.next(Ze),this._renderChangesSubscription||this._filterData(Ze)}get filter(){return this._filter.value}set filter(Ze){this._filter.next(Ze),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ze){this._sort=Ze,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Ze){this._paginator=Ze,this._updateChangeSubscription()}_updateChangeSubscription(){var Ze;const ue=this._sort?(0,mt.T)(this._sort.sortChange,this._sort.initialized):(0,s.of)(null),Re=this._paginator?(0,mt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,s.of)(null),de=(0,Vt.aj)([this._data,this._filter]).pipe((0,qt.U)(([Wt])=>this._filterData(Wt))),Pe=(0,Vt.aj)([de,ue]).pipe((0,qt.U)(([Wt])=>this._orderData(Wt))),Xe=(0,Vt.aj)([Pe,Re]).pipe((0,qt.U)(([Wt])=>this._pageData(Wt)));null===(Ze=this._renderChangesSubscription)||void 0===Ze||Ze.unsubscribe(),this._renderChangesSubscription=Xe.subscribe(Wt=>this._renderData.next(Wt))}_filterData(Ze){return this.filteredData=null==this.filter||""===this.filter?Ze:Ze.filter(ue=>this.filterPredicate(ue,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ze){return this.sort?this.sortData(Ze.slice(),this.sort):Ze}_pageData(Ze){if(!this.paginator)return Ze;const ue=this.paginator.pageIndex*this.paginator.pageSize;return Ze.slice(ue,ue+this.paginator.pageSize)}_updatePaginator(Ze){Promise.resolve().then(()=>{const ue=this.paginator;if(ue&&(ue.length=Ze,ue.pageIndex>0)){const Re=Math.ceil(ue.length/ue.pageSize)-1||0,B=Math.min(ue.pageIndex,Re);B!==ue.pageIndex&&(ue.pageIndex=B,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Ze;null===(Ze=this._renderChangesSubscription)||void 0===Ze||Ze.unsubscribe(),this._renderChangesSubscription=null}}class ci extends Vi{}},3251:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MAT_TAB:()=>yt,MAT_TABS_CONFIG:()=>H,MAT_TAB_GROUP:()=>At,MatInkBar:()=>tt,MatTab:()=>Tt,MatTabBody:()=>fe,MatTabBodyPortal:()=>Et,MatTabChangeEvent:()=>tn,MatTabContent:()=>ft,MatTabGroup:()=>et,MatTabHeader:()=>St,MatTabLabel:()=>ot,MatTabLabelWrapper:()=>U,MatTabLink:()=>Vt,MatTabNav:()=>Lt,MatTabsModule:()=>qt,_MAT_INK_BAR_POSITIONER:()=>gt,_MatTabBodyBase:()=>Ee,_MatTabGroupBase:()=>Kt,_MatTabHeaderBase:()=>ut,_MatTabLinkBase:()=>mt,_MatTabNavBase:()=>xt,matTabsAnimations:()=>Bt});var n=p(5664),f=p(7144),v=p(7429),m=p(9808),o=p(5e3),d=p(508),u=p(6360),h=p(8929),r=p(2654),s=p(3753),i=p(1086),c=p(6787),l=p(8723),g=p(1777),y=p(1059),E=p(5778),T=p(7625),D=p(226),O=p(3191),w=p(1159),A=p(925),S=p(9071);function M(Ne,Se){1&Ne&&o.\u0275\u0275projection(0)}const I=["*"];function b(Ne,Se){}const L=function(Ne){return{animationDuration:Ne}},F=function(Ne,Se){return{value:Ne,params:Se}},ne=["tabListContainer"],Y=["tabList"],Q=["tabListInner"],te=["nextPaginator"],$=["previousPaginator"],J=["tabBodyWrapper"],ie=["tabHeader"];function ae(Ne,Se){}function le(Ne,Se){if(1&Ne&&o.\u0275\u0275template(0,ae,0,0,"ng-template",9),2&Ne){const ee=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275property("cdkPortalOutlet",ee.templateLabel)}}function Oe(Ne,Se){if(1&Ne&&o.\u0275\u0275text(0),2&Ne){const ee=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate(ee.textLabel)}}function Le(Ne,Se){if(1&Ne){const ee=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",6),o.\u0275\u0275listener("click",function(){const Me=o.\u0275\u0275restoreView(ee),ze=Me.$implicit,It=Me.index,Qt=o.\u0275\u0275nextContext(),cn=o.\u0275\u0275reference(1);return Qt._handleClick(ze,cn,It)})("cdkFocusChange",function(Me){const It=o.\u0275\u0275restoreView(ee).index;return o.\u0275\u0275nextContext()._tabFocusChanged(Me,It)}),o.\u0275\u0275elementStart(1,"div",7),o.\u0275\u0275template(2,le,1,1,"ng-template",8),o.\u0275\u0275template(3,Oe,1,1,"ng-template",8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()}if(2&Ne){const ee=Se.$implicit,re=Se.index,Me=o.\u0275\u0275nextContext();o.\u0275\u0275classProp("mat-tab-label-active",Me.selectedIndex==re),o.\u0275\u0275property("id",Me._getTabLabelId(re))("disabled",ee.disabled)("matRippleDisabled",ee.disabled||Me.disableRipple),o.\u0275\u0275attribute("tabIndex",Me._getTabIndex(ee,re))("aria-posinset",re+1)("aria-setsize",Me._tabs.length)("aria-controls",Me._getTabContentId(re))("aria-selected",Me.selectedIndex==re)("aria-label",ee.ariaLabel||null)("aria-labelledby",!ee.ariaLabel&&ee.ariaLabelledby?ee.ariaLabelledby:null),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",ee.templateLabel),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",!ee.templateLabel)}}function Ye(Ne,Se){if(1&Ne){const ee=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"mat-tab-body",10),o.\u0275\u0275listener("_onCentered",function(){return o.\u0275\u0275restoreView(ee),o.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(Me){return o.\u0275\u0275restoreView(ee),o.\u0275\u0275nextContext()._setTabBodyWrapperHeight(Me)}),o.\u0275\u0275elementEnd()}if(2&Ne){const ee=Se.$implicit,re=Se.index,Me=o.\u0275\u0275nextContext();o.\u0275\u0275classProp("mat-tab-body-active",Me.selectedIndex===re),o.\u0275\u0275property("id",Me._getTabContentId(re))("content",ee.content)("position",ee.position)("origin",ee.origin)("animationDuration",Me.animationDuration),o.\u0275\u0275attribute("tabindex",null!=Me.contentTabIndex&&Me.selectedIndex===re?Me.contentTabIndex:null)("aria-labelledby",Me._getTabLabelId(re))}}const Je=["mat-tab-nav-bar",""],gt=new o.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function(){return Se=>({left:Se?(Se.offsetLeft||0)+"px":"0",width:Se?(Se.offsetWidth||0)+"px":"0"})}});let tt=(()=>{class Ne{constructor(ee,re,Me,ze){this._elementRef=ee,this._ngZone=re,this._inkBarPositioner=Me,this._animationMode=ze}alignToElement(ee){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(ee))}):this._setStyles(ee)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(ee){const re=this._inkBarPositioner(ee),Me=this._elementRef.nativeElement;Me.style.left=re.left,Me.style.width=re.width}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(gt),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ee,re){2&ee&&o.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode)}}),Ne})();const at=new o.InjectionToken("MatTabContent");let ft=(()=>{class Ne{constructor(ee){this.template=ee}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.TemplateRef))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","matTabContent",""]],features:[o.\u0275\u0275ProvidersFeature([{provide:at,useExisting:Ne}])]}),Ne})();const vt=new o.InjectionToken("MatTabLabel"),yt=new o.InjectionToken("MAT_TAB");let ot=(()=>{class Ne extends v.ig{constructor(ee,re,Me){super(ee,re),this._closestTab=Me}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(yt,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[o.\u0275\u0275ProvidersFeature([{provide:vt,useExisting:Ne}]),o.\u0275\u0275InheritDefinitionFeature]}),Ne})();const _t=(0,d.mixinDisabled)(class{}),At=new o.InjectionToken("MAT_TAB_GROUP");let Tt=(()=>{class Ne extends _t{constructor(ee,re){super(),this._viewContainerRef=ee,this._closestTabGroup=re,this.textLabel="",this._contentPortal=null,this._stateChanges=new h.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ee){this._setTemplateLabelInput(ee)}get content(){return this._contentPortal}ngOnChanges(ee){(ee.hasOwnProperty("textLabel")||ee.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ee){ee&&ee._closestTab===this&&(this._templateLabel=ee)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(At,8))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-tab"]],contentQueries:function(ee,re,Me){if(1&ee&&(o.\u0275\u0275contentQuery(Me,vt,5),o.\u0275\u0275contentQuery(Me,at,7,o.TemplateRef)),2&ee){let ze;o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re.templateLabel=ze.first),o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re._explicitContent=ze.first)}},viewQuery:function(ee,re){if(1&ee&&o.\u0275\u0275viewQuery(o.TemplateRef,7),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._implicitContent=Me.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[o.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:Ne}]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature],ngContentSelectors:I,decls:1,vars:0,template:function(ee,re){1&ee&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,M,1,0,"ng-template"))},encapsulation:2}),Ne})();const Bt={translateTab:(0,g.X$)("translateTab",[(0,g.SB)("center, void, left-origin-center, right-origin-center",(0,g.oB)({transform:"none"})),(0,g.SB)("left",(0,g.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,g.SB)("right",(0,g.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,g.eR)("* => left, * => right, left => center, right => center",(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,g.eR)("void => left-origin-center",[(0,g.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,g.eR)("void => right-origin-center",[(0,g.oB)({transform:"translate3d(100%, 0, 0)"}),(0,g.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Et=(()=>{class Ne extends v.Pl{constructor(ee,re,Me,ze){super(ee,re,ze),this._host=Me,this._centeringSub=r.w.EMPTY,this._leavingSub=r.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,y.O)(this._host._isCenterPosition(this._host._position))).subscribe(ee=>{ee&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ComponentFactoryResolver),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject((0,o.forwardRef)(()=>fe)),o.\u0275\u0275directiveInject(m.DOCUMENT))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","matTabBodyHost",""]],features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),Ee=(()=>{class Ne{constructor(ee,re,Me){this._elementRef=ee,this._dir=re,this._dirChangeSubscription=r.w.EMPTY,this._translateTabComplete=new h.xQ,this._onCentering=new o.EventEmitter,this._beforeCentering=new o.EventEmitter,this._afterLeavingCenter=new o.EventEmitter,this._onCentered=new o.EventEmitter(!0),this.animationDuration="500ms",re&&(this._dirChangeSubscription=re.change.subscribe(ze=>{this._computePositionAnimationState(ze),Me.markForCheck()})),this._translateTabComplete.pipe((0,E.x)((ze,It)=>ze.fromState===It.fromState&&ze.toState===It.toState)).subscribe(ze=>{this._isCenterPosition(ze.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ze.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ee){this._positionIndex=ee,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ee){const re=this._isCenterPosition(ee.toState);this._beforeCentering.emit(re),re&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ee){return"center"==ee||"left-origin-center"==ee||"right-origin-center"==ee}_computePositionAnimationState(ee=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ee?"left":"right":this._positionIndex>0?"ltr"==ee?"right":"left":"center"}_computePositionFromOrigin(ee){const re=this._getLayoutDirection();return"ltr"==re&&ee<=0||"rtl"==re&&ee>0?"left-origin-center":"right-origin-center"}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Ne})(),fe=(()=>{class Ne extends Ee{constructor(ee,re,Me){super(ee,re,Me)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.ChangeDetectorRef))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-tab-body"]],viewQuery:function(ee,re){if(1&ee&&o.\u0275\u0275viewQuery(v.Pl,5),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._portalHost=Me.first)}},hostAttrs:[1,"mat-tab-body"],features:[o.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ee,re){1&ee&&(o.\u0275\u0275elementStart(0,"div",0,1),o.\u0275\u0275listener("@translateTab.start",function(ze){return re._onTranslateTabStarted(ze)})("@translateTab.done",function(ze){return re._translateTabComplete.next(ze)}),o.\u0275\u0275template(2,b,0,0,"ng-template",2),o.\u0275\u0275elementEnd()),2&ee&&o.\u0275\u0275property("@translateTab",o.\u0275\u0275pureFunction2(3,F,re._position,o.\u0275\u0275pureFunction1(1,L,re.animationDuration)))},directives:[Et],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Bt.translateTab]}}),Ne})();const H=new o.InjectionToken("MAT_TABS_CONFIG"),x=(0,d.mixinDisabled)(class{});let U=(()=>{class Ne extends x{constructor(ee){super(),this.elementRef=ee}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ee,re){2&ee&&(o.\u0275\u0275attribute("aria-disabled",!!re.disabled),o.\u0275\u0275classProp("mat-tab-disabled",re.disabled))},inputs:{disabled:"disabled"},features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})();const Z=(0,A.i$)({passive:!0});let st=(()=>{class Ne{constructor(ee,re,Me,ze,It,Qt,cn){this._elementRef=ee,this._changeDetectorRef=re,this._viewportRuler=Me,this._dir=ze,this._ngZone=It,this._platform=Qt,this._animationMode=cn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new o.EventEmitter,this.indexFocused=new o.EventEmitter,It.runOutsideAngular(()=>{(0,s.R)(ee.nativeElement,"mouseleave").pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(ee){ee=(0,O.su)(ee),this._selectedIndex!=ee&&(this._selectedIndexChanged=!0,this._selectedIndex=ee,this._keyManager&&this._keyManager.updateActiveItem(ee))}ngAfterViewInit(){(0,s.R)(this._previousPaginator.nativeElement,"touchstart",Z).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,s.R)(this._nextPaginator.nativeElement,"touchstart",Z).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ee=this._dir?this._dir.change:(0,i.of)("ltr"),re=this._viewportRuler.change(150),Me=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Me):Me(),(0,c.T)(ee,re,this._items.changes).pipe((0,T.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(Me)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,T.R)(this._destroyed)).subscribe(ze=>{this.indexFocused.emit(ze),this._setTabFocus(ze)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ee){if(!(0,w.Vb)(ee))switch(ee.keyCode){case w.K5:case w.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ee));break;default:this._keyManager.onKeydown(ee)}}_onContentChanges(){const ee=this._elementRef.nativeElement.textContent;ee!==this._currentTextContent&&(this._currentTextContent=ee||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(ee){!this._isValidIndex(ee)||this.focusIndex===ee||!this._keyManager||this._keyManager.setActiveItem(ee)}_isValidIndex(ee){if(!this._items)return!0;const re=this._items?this._items.toArray()[ee]:null;return!!re&&!re.disabled}_setTabFocus(ee){if(this._showPaginationControls&&this._scrollToLabel(ee),this._items&&this._items.length){this._items.toArray()[ee].focus();const re=this._tabListContainer.nativeElement;re.scrollLeft="ltr"==this._getLayoutDirection()?0:re.scrollWidth-re.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ee=this.scrollDistance,re="ltr"===this._getLayoutDirection()?-ee:ee;this._tabList.nativeElement.style.transform=`translateX(${Math.round(re)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ee){this._scrollTo(ee)}_scrollHeader(ee){return this._scrollTo(this._scrollDistance+("before"==ee?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ee){this._stopInterval(),this._scrollHeader(ee)}_scrollToLabel(ee){if(this.disablePagination)return;const re=this._items?this._items.toArray()[ee]:null;if(!re)return;const Me=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ze,offsetWidth:It}=re.elementRef.nativeElement;let Qt,cn;"ltr"==this._getLayoutDirection()?(Qt=ze,cn=Qt+It):(cn=this._tabListInner.nativeElement.offsetWidth-ze,Qt=cn-It);const An=this.scrollDistance,lt=this.scrollDistance+Me;Qtlt&&(this.scrollDistance+=cn-lt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ee=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ee||(this.scrollDistance=0),ee!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ee}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const ee=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,re=ee?ee.elementRef.nativeElement:null;re?this._inkBar.alignToElement(re):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ee,re){re&&null!=re.button&&0!==re.button||(this._stopInterval(),(0,l.H)(650,100).pipe((0,T.R)((0,c.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Me,distance:ze}=this._scrollHeader(ee);(0===ze||ze>=Me)&&this._stopInterval()}))}_scrollTo(ee){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const re=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(re,ee)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:re,distance:this._scrollDistance}}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(S.rL),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{disablePagination:"disablePagination"}}),Ne})(),ut=(()=>{class Ne extends st{constructor(ee,re,Me,ze,It,Qt,cn){super(ee,re,Me,ze,It,Qt,cn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ee){this._disableRipple=(0,O.Ig)(ee)}_itemSelected(ee){ee.preventDefault()}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(S.rL),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{disableRipple:"disableRipple"},features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),St=(()=>{class Ne extends ut{constructor(ee,re,Me,ze,It,Qt,cn){super(ee,re,Me,ze,It,Qt,cn)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(S.rL),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-tab-header"]],contentQueries:function(ee,re,Me){if(1&ee&&o.\u0275\u0275contentQuery(Me,U,4),2&ee){let ze;o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re._items=ze)}},viewQuery:function(ee,re){if(1&ee&&(o.\u0275\u0275viewQuery(tt,7),o.\u0275\u0275viewQuery(ne,7),o.\u0275\u0275viewQuery(Y,7),o.\u0275\u0275viewQuery(Q,7),o.\u0275\u0275viewQuery(te,5),o.\u0275\u0275viewQuery($,5)),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._inkBar=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabListContainer=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabList=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabListInner=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._nextPaginator=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._previousPaginator=Me.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ee,re){2&ee&&o.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",re._showPaginationControls)("mat-tab-header-rtl","rtl"==re._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:I,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ee,re){1&ee&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div",0,1),o.\u0275\u0275listener("click",function(){return re._handlePaginatorClick("before")})("mousedown",function(ze){return re._handlePaginatorPress("before",ze)})("touchend",function(){return re._stopInterval()}),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",3,4),o.\u0275\u0275listener("keydown",function(ze){return re._handleKeydown(ze)}),o.\u0275\u0275elementStart(5,"div",5,6),o.\u0275\u0275listener("cdkObserveContent",function(){return re._onContentChanges()}),o.\u0275\u0275elementStart(7,"div",7,8),o.\u0275\u0275projection(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(10,"mat-ink-bar"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"div",9,10),o.\u0275\u0275listener("mousedown",function(ze){return re._handlePaginatorPress("after",ze)})("click",function(){return re._handlePaginatorClick("after")})("touchend",function(){return re._stopInterval()}),o.\u0275\u0275element(13,"div",2),o.\u0275\u0275elementEnd()),2&ee&&(o.\u0275\u0275classProp("mat-tab-header-pagination-disabled",re._disableScrollBefore),o.\u0275\u0275property("matRippleDisabled",re._disableScrollBefore||re.disableRipple),o.\u0275\u0275advance(5),o.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode),o.\u0275\u0275advance(6),o.\u0275\u0275classProp("mat-tab-header-pagination-disabled",re._disableScrollAfter),o.\u0275\u0275property("matRippleDisabled",re._disableScrollAfter||re.disableRipple))},directives:[d.MatRipple,f.wD,tt],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),Ne})(),Xt=0;class tn{}const Dt=(0,d.mixinColor)((0,d.mixinDisableRipple)(class{constructor(Ne){this._elementRef=Ne}}),"primary");let Kt=(()=>{class Ne extends Dt{constructor(ee,re,Me,ze){var It;super(ee),this._changeDetectorRef=re,this._animationMode=ze,this._tabs=new o.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=r.w.EMPTY,this._tabLabelSubscription=r.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new o.EventEmitter,this.focusChange=new o.EventEmitter,this.animationDone=new o.EventEmitter,this.selectedTabChange=new o.EventEmitter(!0),this._groupId=Xt++,this.animationDuration=Me&&Me.animationDuration?Me.animationDuration:"500ms",this.disablePagination=!(!Me||null==Me.disablePagination)&&Me.disablePagination,this.dynamicHeight=!(!Me||null==Me.dynamicHeight)&&Me.dynamicHeight,this.contentTabIndex=null!==(It=null==Me?void 0:Me.contentTabIndex)&&void 0!==It?It:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ee){this._dynamicHeight=(0,O.Ig)(ee)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ee){this._indexToSelect=(0,O.su)(ee,null)}get animationDuration(){return this._animationDuration}set animationDuration(ee){this._animationDuration=/^\d+$/.test(ee+"")?ee+"ms":ee}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ee){this._contentTabIndex=(0,O.su)(ee,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ee){const re=this._elementRef.nativeElement;re.classList.remove(`mat-background-${this.backgroundColor}`),ee&&re.classList.add(`mat-background-${ee}`),this._backgroundColor=ee}ngAfterContentChecked(){const ee=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ee){const re=null==this._selectedIndex;if(!re){this.selectedTabChange.emit(this._createChangeEvent(ee));const Me=this._tabBodyWrapper.nativeElement;Me.style.minHeight=Me.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Me,ze)=>Me.isActive=ze===ee),re||(this.selectedIndexChange.emit(ee),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((re,Me)=>{re.position=Me-ee,null!=this._selectedIndex&&0==re.position&&!re.origin&&(re.origin=ee-this._selectedIndex)}),this._selectedIndex!==ee&&(this._selectedIndex=ee,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const re=this._tabs.toArray();for(let Me=0;Me{this._tabs.reset(ee.filter(re=>re._closestTabGroup===this||!re._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(ee){const re=this._tabHeader;re&&(re.focusIndex=ee)}_focusChanged(ee){this.focusChange.emit(this._createChangeEvent(ee))}_createChangeEvent(ee){const re=new tn;return re.index=ee,this._tabs&&this._tabs.length&&(re.tab=this._tabs.toArray()[ee]),re}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,c.T)(...this._tabs.map(ee=>ee._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ee){return Math.min(this._tabs.length-1,Math.max(ee||0,0))}_getTabLabelId(ee){return`mat-tab-label-${this._groupId}-${ee}`}_getTabContentId(ee){return`mat-tab-content-${this._groupId}-${ee}`}_setTabBodyWrapperHeight(ee){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const re=this._tabBodyWrapper.nativeElement;re.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(re.style.height=ee+"px")}_removeTabBodyWrapperHeight(){const ee=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ee.clientHeight,ee.style.height="",this.animationDone.emit()}_handleClick(ee,re,Me){ee.disabled||(this.selectedIndex=re.focusIndex=Me)}_getTabIndex(ee,re){return ee.disabled?null:this.selectedIndex===re?0:-1}_tabFocusChanged(ee,re){ee&&"mouse"!==ee&&"touch"!==ee&&(this._tabHeader.focusIndex=re)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(H,8),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),et=(()=>{class Ne extends Kt{constructor(ee,re,Me,ze){super(ee,re,Me,ze)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(H,8),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-tab-group"]],contentQueries:function(ee,re,Me){if(1&ee&&o.\u0275\u0275contentQuery(Me,Tt,5),2&ee){let ze;o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re._allTabs=ze)}},viewQuery:function(ee,re){if(1&ee&&(o.\u0275\u0275viewQuery(J,5),o.\u0275\u0275viewQuery(ie,5)),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabBodyWrapper=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabHeader=Me.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ee,re){2&ee&&o.\u0275\u0275classProp("mat-tab-group-dynamic-height",re.dynamicHeight)("mat-tab-group-inverted-header","below"===re.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[o.\u0275\u0275ProvidersFeature([{provide:At,useExisting:Ne}]),o.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(ee,re){1&ee&&(o.\u0275\u0275elementStart(0,"mat-tab-header",0,1),o.\u0275\u0275listener("indexFocused",function(ze){return re._focusChanged(ze)})("selectFocusedIndex",function(ze){return re.selectedIndex=ze}),o.\u0275\u0275template(2,Le,4,14,"div",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",3,4),o.\u0275\u0275template(5,Ye,1,9,"mat-tab-body",5),o.\u0275\u0275elementEnd()),2&ee&&(o.\u0275\u0275property("selectedIndex",re.selectedIndex||0)("disableRipple",re.disableRipple)("disablePagination",re.disablePagination),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngForOf",re._tabs),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngForOf",re._tabs))},directives:[St,m.NgForOf,U,d.MatRipple,n.kH,m.NgIf,v.Pl,fe],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),Ne})(),xt=(()=>{class Ne extends st{constructor(ee,re,Me,ze,It,Qt,cn){super(ee,ze,It,re,Me,Qt,cn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(ee){const re=this._elementRef.nativeElement.classList;re.remove(`mat-background-${this.backgroundColor}`),ee&&re.add(`mat-background-${ee}`),this._backgroundColor=ee}get disableRipple(){return this._disableRipple}set disableRipple(ee){this._disableRipple=(0,O.Ig)(ee)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,y.O)(null),(0,T.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const ee=this._items.toArray();for(let re=0;re{class Ne extends xt{constructor(ee,re,Me,ze,It,Qt,cn){super(ee,re,Me,ze,It,Qt,cn)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(D.Is,8),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(S.rL),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=o.\u0275\u0275defineComponent({type:Ne,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(ee,re,Me){if(1&ee&&o.\u0275\u0275contentQuery(Me,Vt,5),2&ee){let ze;o.\u0275\u0275queryRefresh(ze=o.\u0275\u0275loadQuery())&&(re._items=ze)}},viewQuery:function(ee,re){if(1&ee&&(o.\u0275\u0275viewQuery(tt,7),o.\u0275\u0275viewQuery(ne,7),o.\u0275\u0275viewQuery(Y,7),o.\u0275\u0275viewQuery(Q,7),o.\u0275\u0275viewQuery(te,5),o.\u0275\u0275viewQuery($,5)),2&ee){let Me;o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._inkBar=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabListContainer=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabList=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._tabListInner=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._nextPaginator=Me.first),o.\u0275\u0275queryRefresh(Me=o.\u0275\u0275loadQuery())&&(re._previousPaginator=Me.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(ee,re){2&ee&&o.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",re._showPaginationControls)("mat-tab-header-rtl","rtl"==re._getLayoutDirection())("mat-primary","warn"!==re.color&&"accent"!==re.color)("mat-accent","accent"===re.color)("mat-warn","warn"===re.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[o.\u0275\u0275InheritDefinitionFeature],attrs:Je,ngContentSelectors:I,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ee,re){1&ee&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div",0,1),o.\u0275\u0275listener("click",function(){return re._handlePaginatorClick("before")})("mousedown",function(ze){return re._handlePaginatorPress("before",ze)})("touchend",function(){return re._stopInterval()}),o.\u0275\u0275element(2,"div",2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"div",3,4),o.\u0275\u0275listener("keydown",function(ze){return re._handleKeydown(ze)}),o.\u0275\u0275elementStart(5,"div",5,6),o.\u0275\u0275listener("cdkObserveContent",function(){return re._onContentChanges()}),o.\u0275\u0275elementStart(7,"div",7,8),o.\u0275\u0275projection(9),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(10,"mat-ink-bar"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(11,"div",9,10),o.\u0275\u0275listener("mousedown",function(ze){return re._handlePaginatorPress("after",ze)})("click",function(){return re._handlePaginatorClick("after")})("touchend",function(){return re._stopInterval()}),o.\u0275\u0275element(13,"div",2),o.\u0275\u0275elementEnd()),2&ee&&(o.\u0275\u0275classProp("mat-tab-header-pagination-disabled",re._disableScrollBefore),o.\u0275\u0275property("matRippleDisabled",re._disableScrollBefore||re.disableRipple),o.\u0275\u0275advance(5),o.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===re._animationMode),o.\u0275\u0275advance(6),o.\u0275\u0275classProp("mat-tab-header-pagination-disabled",re._disableScrollAfter),o.\u0275\u0275property("matRippleDisabled",re._disableScrollAfter||re.disableRipple))},directives:[d.MatRipple,f.wD,tt],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),Ne})();const Qe=(0,d.mixinTabIndex)((0,d.mixinDisableRipple)((0,d.mixinDisabled)(class{})));let mt=(()=>{class Ne extends Qe{constructor(ee,re,Me,ze,It,Qt){super(),this._tabNavBar=ee,this.elementRef=re,this._focusMonitor=It,this._isActive=!1,this.rippleConfig=Me||{},this.tabIndex=parseInt(ze)||0,"NoopAnimations"===Qt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(ee){const re=(0,O.Ig)(ee);re!==this._isActive&&(this._isActive=re,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(xt),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(d.MAT_RIPPLE_GLOBAL_OPTIONS,8),o.\u0275\u0275injectAttribute("tabindex"),o.\u0275\u0275directiveInject(n.tE),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,inputs:{active:"active"},features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),Vt=(()=>{class Ne extends mt{constructor(ee,re,Me,ze,It,Qt,cn,An){super(ee,re,It,Qt,cn,An),this._tabLinkRipple=new d.RippleRenderer(this,Me,re,ze),this._tabLinkRipple.setupTriggerEvents(re.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Ne.\u0275fac=function(ee){return new(ee||Ne)(o.\u0275\u0275directiveInject(Lt),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(A.t4),o.\u0275\u0275directiveInject(d.MAT_RIPPLE_GLOBAL_OPTIONS,8),o.\u0275\u0275injectAttribute("tabindex"),o.\u0275\u0275directiveInject(n.tE),o.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=o.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(ee,re){1&ee&&o.\u0275\u0275listener("focus",function(){return re._handleFocus()}),2&ee&&(o.\u0275\u0275attribute("aria-current",re.active?"page":null)("aria-disabled",re.disabled)("tabIndex",re.tabIndex),o.\u0275\u0275classProp("mat-tab-disabled",re.disabled)("mat-tab-label-active",re.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[o.\u0275\u0275InheritDefinitionFeature]}),Ne})(),qt=(()=>{class Ne{}return Ne.\u0275fac=function(ee){return new(ee||Ne)},Ne.\u0275mod=o.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=o.\u0275\u0275defineInjector({imports:[[m.CommonModule,d.MatCommonModule,v.eL,d.MatRippleModule,f.Q8,n.rt],d.MatCommonModule]}),Ne})()},4594:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{MatToolbar:()=>r,MatToolbarModule:()=>i,MatToolbarRow:()=>h,throwToolbarMixedModesError:()=>s});var n=p(5e3),f=p(508),v=p(9808),m=p(925);const o=["*",[["mat-toolbar-row"]]],d=["*","mat-toolbar-row"],u=(0,f.mixinColor)(class{constructor(c){this._elementRef=c}});let h=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275dir=n.\u0275\u0275defineDirective({type:c,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),c})(),r=(()=>{class c extends u{constructor(g,y,E){super(g),this._platform=y,this._document=E}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return c.\u0275fac=function(g){return new(g||c)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(m.t4),n.\u0275\u0275directiveInject(v.DOCUMENT))},c.\u0275cmp=n.\u0275\u0275defineComponent({type:c,selectors:[["mat-toolbar"]],contentQueries:function(g,y,E){if(1&g&&n.\u0275\u0275contentQuery(E,h,5),2&g){let T;n.\u0275\u0275queryRefresh(T=n.\u0275\u0275loadQuery())&&(y._toolbarRows=T)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(g,y){2&g&&n.\u0275\u0275classProp("mat-toolbar-multiple-rows",y._toolbarRows.length>0)("mat-toolbar-single-row",0===y._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:2,vars:0,template:function(g,y){1&g&&(n.\u0275\u0275projectionDef(o),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),c})();function s(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}let i=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275mod=n.\u0275\u0275defineNgModule({type:c}),c.\u0275inj=n.\u0275\u0275defineInjector({imports:[[f.MatCommonModule],f.MatCommonModule]}),c})()},6360:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{ANIMATION_MODULE_TYPE:()=>rr,BrowserAnimationsModule:()=>ds,NoopAnimationsModule:()=>Bs,\u0275AnimationRenderer:()=>di,\u0275AnimationRendererFactory:()=>In,\u0275BrowserAnimationBuilder:()=>k,\u0275BrowserAnimationFactory:()=>V,\u0275InjectableAnimationEngine:()=>Ei});var n=p(5e3),f=p(2313),v=p(1777);function m(){return"undefined"!=typeof window&&void 0!==window.document}function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function d(we){switch(we.length){case 0:return new v.ZN;case 1:return we[0];default:return new v.ZE(we)}}function u(we,N,G,pe,Ae={},We={}){const rt=[],dt=[];let Rt=-1,Gt=null;if(pe.forEach(rn=>{const pn=rn.offset,Pn=pn==Rt,Ln=Pn&&Gt||{};Object.keys(rn).forEach(_n=>{let Bn=_n,Kn=rn[_n];if("offset"!==_n)switch(Bn=N.normalizePropertyName(Bn,rt),Kn){case v.k1:Kn=Ae[_n];break;case v.l3:Kn=We[_n];break;default:Kn=N.normalizeStyleValue(_n,Bn,Kn,rt)}Ln[Bn]=Kn}),Pn||dt.push(Ln),Gt=Ln,Rt=pn}),rt.length){const rn="\n - ";throw new Error(`Unable to animate due to the following errors:${rn}${rt.join(rn)}`)}return dt}function h(we,N,G,pe){switch(N){case"start":we.onStart(()=>pe(G&&r(G,"start",we)));break;case"done":we.onDone(()=>pe(G&&r(G,"done",we)));break;case"destroy":we.onDestroy(()=>pe(G&&r(G,"destroy",we)))}}function r(we,N,G){const pe=G.totalTime,We=s(we.element,we.triggerName,we.fromState,we.toState,N||we.phaseName,null==pe?we.totalTime:pe,!!G.disabled),rt=we._data;return null!=rt&&(We._data=rt),We}function s(we,N,G,pe,Ae="",We=0,rt){return{element:we,triggerName:N,fromState:G,toState:pe,phaseName:Ae,totalTime:We,disabled:!!rt}}function i(we,N,G){let pe;return we instanceof Map?(pe=we.get(N),pe||we.set(N,pe=G)):(pe=we[N],pe||(pe=we[N]=G)),pe}function c(we){const N=we.indexOf(":");return[we.substring(1,N),we.substr(N+1)]}let l=(we,N)=>!1,g=(we,N,G)=>[];(o()||"undefined"!=typeof Element)&&(l=m()?(we,N)=>{for(;N&&N!==document.documentElement;){if(N===we)return!0;N=N.parentNode||N.host}return!1}:(we,N)=>we.contains(N),g=(we,N,G)=>{let pe=[];if(G){const Ae=we.querySelectorAll(N);for(let We=0;We{const pe=G.replace(/([a-z])([A-Z])/g,"$1-$2");N[pe]=we[G]}),N}let I=(()=>{class we{validateStyleProperty(G){return O(G)}matchesElement(G,pe){return!1}containsElement(G,pe){return A(G,pe)}query(G,pe,Ae){return S(G,pe,Ae)}computeStyle(G,pe,Ae){return Ae||""}animate(G,pe,Ae,We,rt,dt=[],Rt){return new v.ZN(Ae,We)}}return we.\u0275fac=function(G){return new(G||we)},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),b=(()=>{class we{}return we.NOOP=new I,we})();const Y="ng-enter",Q="ng-leave",te="ng-trigger",$=".ng-trigger",J="ng-animating",ie=".ng-animating";function ae(we){if("number"==typeof we)return we;const N=we.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:le(parseFloat(N[1]),N[2])}function le(we,N){return"s"===N?1e3*we:we}function Oe(we,N,G){return we.hasOwnProperty("duration")?we:function(we,N,G){let Ae,We=0,rt="";if("string"==typeof we){const dt=we.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===dt)return N.push(`The provided timing value "${we}" is invalid.`),{duration:0,delay:0,easing:""};Ae=le(parseFloat(dt[1]),dt[2]);const Rt=dt[3];null!=Rt&&(We=le(parseFloat(Rt),dt[4]));const Gt=dt[5];Gt&&(rt=Gt)}else Ae=we;if(!G){let dt=!1,Rt=N.length;Ae<0&&(N.push("Duration values below 0 are not allowed for this animation step."),dt=!0),We<0&&(N.push("Delay values below 0 are not allowed for this animation step."),dt=!0),dt&&N.splice(Rt,0,`The provided timing value "${we}" is invalid.`)}return{duration:Ae,delay:We,easing:rt}}(we,N,G)}function Ye(we,N={}){return Object.keys(we).forEach(G=>{N[G]=we[G]}),N}function gt(we,N,G={}){if(N)for(let pe in we)G[pe]=we[pe];else Ye(we,G);return G}function Ue(we,N,G){return G?N+":"+G+";":""}function tt(we){let N="";for(let G=0;G{const Ae=Et(pe);G&&!G.hasOwnProperty(pe)&&(G[pe]=we.style[Ae]),we.style[Ae]=N[pe]}),o()&&tt(we))}function ft(we,N){we.style&&(Object.keys(N).forEach(G=>{const pe=Et(G);we.style[pe]=""}),o()&&tt(we))}function vt(we){return Array.isArray(we)?1==we.length?we[0]:(0,v.vP)(we):we}const ot=new RegExp("{{\\s*(.+?)\\s*}}","g");function _t(we){let N=[];if("string"==typeof we){let G;for(;G=ot.exec(we);)N.push(G[1]);ot.lastIndex=0}return N}function At(we,N,G){const pe=we.toString(),Ae=pe.replace(ot,(We,rt)=>{let dt=N[rt];return N.hasOwnProperty(rt)||(G.push(`Please provide a value for the animation param ${rt}`),dt=""),dt.toString()});return Ae==pe?we:Ae}function Tt(we){const N=[];let G=we.next();for(;!G.done;)N.push(G.value),G=we.next();return N}const Bt=/-+([a-z0-9])/g;function Et(we){return we.replace(Bt,(...N)=>N[1].toUpperCase())}function Ee(we){return we.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function fe(we,N){return 0===we||0===N}function H(we,N,G){const pe=Object.keys(G);if(pe.length&&N.length){let We=N[0],rt=[];if(pe.forEach(dt=>{We.hasOwnProperty(dt)||rt.push(dt),We[dt]=G[dt]}),rt.length)for(var Ae=1;Aefunction(we,N,G){if(":"==we[0]){const Rt=function(we,N){switch(we){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(G,pe)=>parseFloat(pe)>parseFloat(G);case":decrement":return(G,pe)=>parseFloat(pe) *"}}(we,G);if("function"==typeof Rt)return void N.push(Rt);we=Rt}const pe=we.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==pe||pe.length<4)return G.push(`The provided transition expression "${we}" is not supported`),N;const Ae=pe[1],We=pe[2],rt=pe[3];N.push(St(Ae,rt));"<"==We[0]&&!(Ae==Z&&rt==Z)&&N.push(St(rt,Ae))}(pe,G,N)):G.push(we),G}const st=new Set(["true","1"]),ut=new Set(["false","0"]);function St(we,N){const G=st.has(we)||ut.has(we),pe=st.has(N)||ut.has(N);return(Ae,We)=>{let rt=we==Z||we==Ae,dt=N==Z||N==We;return!rt&&G&&"boolean"==typeof Ae&&(rt=Ae?st.has(we):ut.has(we)),!dt&&pe&&"boolean"==typeof We&&(dt=We?st.has(N):ut.has(N)),rt&&dt}}const tn=new RegExp("s*:selfs*,?","g");function Dt(we,N,G){return new et(we).build(N,G)}class et{constructor(N){this._driver=N}build(N,G){const pe=new Qe(G);return this._resetContextStyleTimingState(pe),x(this,vt(N),pe)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles={},N.collectedStyles[""]={},N.currentTime=0}visitTrigger(N,G){let pe=G.queryCount=0,Ae=G.depCount=0;const We=[],rt=[];return"@"==N.name.charAt(0)&&G.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),N.definitions.forEach(dt=>{if(this._resetContextStyleTimingState(G),0==dt.type){const Rt=dt,Gt=Rt.name;Gt.toString().split(/\s*,\s*/).forEach(rn=>{Rt.name=rn,We.push(this.visitState(Rt,G))}),Rt.name=Gt}else if(1==dt.type){const Rt=this.visitTransition(dt,G);pe+=Rt.queryCount,Ae+=Rt.depCount,rt.push(Rt)}else G.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:N.name,states:We,transitions:rt,queryCount:pe,depCount:Ae,options:null}}visitState(N,G){const pe=this.visitStyle(N.styles,G),Ae=N.options&&N.options.params||null;if(pe.containsDynamicStyles){const We=new Set,rt=Ae||{};if(pe.styles.forEach(dt=>{if(Vt(dt)){const Rt=dt;Object.keys(Rt).forEach(Gt=>{_t(Rt[Gt]).forEach(rn=>{rt.hasOwnProperty(rn)||We.add(rn)})})}}),We.size){const dt=Tt(We.values());G.errors.push(`state("${N.name}", ...) must define default values for all the following style substitutions: ${dt.join(", ")}`)}}return{type:0,name:N.name,style:pe,options:Ae?{params:Ae}:null}}visitTransition(N,G){G.queryCount=0,G.depCount=0;const pe=x(this,vt(N.animation),G);return{type:1,matchers:_e(N.expr,G.errors),animation:pe,queryCount:G.queryCount,depCount:G.depCount,options:Ne(N.options)}}visitSequence(N,G){return{type:2,steps:N.steps.map(pe=>x(this,pe,G)),options:Ne(N.options)}}visitGroup(N,G){const pe=G.currentTime;let Ae=0;const We=N.steps.map(rt=>{G.currentTime=pe;const dt=x(this,rt,G);return Ae=Math.max(Ae,G.currentTime),dt});return G.currentTime=Ae,{type:3,steps:We,options:Ne(N.options)}}visitAnimate(N,G){const pe=function(we,N){let G=null;if(we.hasOwnProperty("duration"))G=we;else if("number"==typeof we)return Se(Oe(we,N).duration,0,"");const pe=we;if(pe.split(/\s+/).some(We=>"{"==We.charAt(0)&&"{"==We.charAt(1))){const We=Se(0,0,"");return We.dynamic=!0,We.strValue=pe,We}return G=G||Oe(pe,N),Se(G.duration,G.delay,G.easing)}(N.timings,G.errors);G.currentAnimateTimings=pe;let Ae,We=N.styles?N.styles:(0,v.oB)({});if(5==We.type)Ae=this.visitKeyframes(We,G);else{let rt=N.styles,dt=!1;if(!rt){dt=!0;const Gt={};pe.easing&&(Gt.easing=pe.easing),rt=(0,v.oB)(Gt)}G.currentTime+=pe.duration+pe.delay;const Rt=this.visitStyle(rt,G);Rt.isEmptyStep=dt,Ae=Rt}return G.currentAnimateTimings=null,{type:4,timings:pe,style:Ae,options:null}}visitStyle(N,G){const pe=this._makeStyleAst(N,G);return this._validateStyleAst(pe,G),pe}_makeStyleAst(N,G){const pe=[];Array.isArray(N.styles)?N.styles.forEach(rt=>{"string"==typeof rt?rt==v.l3?pe.push(rt):G.errors.push(`The provided style string value ${rt} is not allowed.`):pe.push(rt)}):pe.push(N.styles);let Ae=!1,We=null;return pe.forEach(rt=>{if(Vt(rt)){const dt=rt,Rt=dt.easing;if(Rt&&(We=Rt,delete dt.easing),!Ae)for(let Gt in dt)if(dt[Gt].toString().indexOf("{{")>=0){Ae=!0;break}}}),{type:6,styles:pe,easing:We,offset:N.offset,containsDynamicStyles:Ae,options:null}}_validateStyleAst(N,G){const pe=G.currentAnimateTimings;let Ae=G.currentTime,We=G.currentTime;pe&&We>0&&(We-=pe.duration+pe.delay),N.styles.forEach(rt=>{"string"!=typeof rt&&Object.keys(rt).forEach(dt=>{if(!this._driver.validateStyleProperty(dt))return void G.errors.push(`The provided animation property "${dt}" is not a supported CSS property for animations`);const Rt=G.collectedStyles[G.currentQuerySelector],Gt=Rt[dt];let rn=!0;Gt&&(We!=Ae&&We>=Gt.startTime&&Ae<=Gt.endTime&&(G.errors.push(`The CSS property "${dt}" that exists between the times of "${Gt.startTime}ms" and "${Gt.endTime}ms" is also being animated in a parallel animation between the times of "${We}ms" and "${Ae}ms"`),rn=!1),We=Gt.startTime),rn&&(Rt[dt]={startTime:We,endTime:Ae}),G.options&&function(we,N,G){const pe=N.params||{},Ae=_t(we);Ae.length&&Ae.forEach(We=>{pe.hasOwnProperty(We)||G.push(`Unable to resolve the local animation param ${We} in the given list of values`)})}(rt[dt],G.options,G.errors)})})}visitKeyframes(N,G){const pe={type:5,styles:[],options:null};if(!G.currentAnimateTimings)return G.errors.push("keyframes() must be placed inside of a call to animate()"),pe;let We=0;const rt=[];let dt=!1,Rt=!1,Gt=0;const rn=N.steps.map(_i=>{const xi=this._makeStyleAst(_i,G);let sr=null!=xi.offset?xi.offset:function(we){if("string"==typeof we)return null;let N=null;if(Array.isArray(we))we.forEach(G=>{if(Vt(G)&&G.hasOwnProperty("offset")){const pe=G;N=parseFloat(pe.offset),delete pe.offset}});else if(Vt(we)&&we.hasOwnProperty("offset")){const G=we;N=parseFloat(G.offset),delete G.offset}return N}(xi.styles),Qi=0;return null!=sr&&(We++,Qi=xi.offset=sr),Rt=Rt||Qi<0||Qi>1,dt=dt||Qi0&&We{const sr=Pn>0?xi==Ln?1:Pn*xi:rt[xi],Qi=sr*Kn;G.currentTime=_n+Bn.delay+Qi,Bn.duration=Qi,this._validateStyleAst(_i,G),_i.offset=sr,pe.styles.push(_i)}),pe}visitReference(N,G){return{type:8,animation:x(this,vt(N.animation),G),options:Ne(N.options)}}visitAnimateChild(N,G){return G.depCount++,{type:9,options:Ne(N.options)}}visitAnimateRef(N,G){return{type:10,animation:this.visitReference(N.animation,G),options:Ne(N.options)}}visitQuery(N,G){const pe=G.currentQuerySelector,Ae=N.options||{};G.queryCount++,G.currentQuery=N;const[We,rt]=function(we){const N=!!we.split(/\s*,\s*/).find(G=>":self"==G);return N&&(we=we.replace(tn,"")),we=we.replace(/@\*/g,$).replace(/@\w+/g,G=>$+"-"+G.substr(1)).replace(/:animating/g,ie),[we,N]}(N.selector);G.currentQuerySelector=pe.length?pe+" "+We:We,i(G.collectedStyles,G.currentQuerySelector,{});const dt=x(this,vt(N.animation),G);return G.currentQuery=null,G.currentQuerySelector=pe,{type:11,selector:We,limit:Ae.limit||0,optional:!!Ae.optional,includeSelf:rt,animation:dt,originalSelector:N.selector,options:Ne(N.options)}}visitStagger(N,G){G.currentQuery||G.errors.push("stagger() can only be used inside of query()");const pe="full"===N.timings?{duration:0,delay:0,easing:"full"}:Oe(N.timings,G.errors,!0);return{type:12,animation:x(this,vt(N.animation),G),timings:pe,options:null}}}class Qe{constructor(N){this.errors=N,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 Vt(we){return!Array.isArray(we)&&"object"==typeof we}function Ne(we){return we?(we=Ye(we)).params&&(we.params=function(we){return we?Ye(we):null}(we.params)):we={},we}function Se(we,N,G){return{duration:we,delay:N,easing:G}}function ee(we,N,G,pe,Ae,We,rt=null,dt=!1){return{type:1,element:we,keyframes:N,preStyleProps:G,postStyleProps:pe,duration:Ae,delay:We,totalTime:Ae+We,easing:rt,subTimeline:dt}}class re{constructor(){this._map=new Map}get(N){return this._map.get(N)||[]}append(N,G){let pe=this._map.get(N);pe||this._map.set(N,pe=[]),pe.push(...G)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const It=new RegExp(":enter","g"),cn=new RegExp(":leave","g");function An(we,N,G,pe,Ae,We={},rt={},dt,Rt,Gt=[]){return(new lt).buildKeyframes(we,N,G,pe,Ae,We,rt,dt,Rt,Gt)}class lt{buildKeyframes(N,G,pe,Ae,We,rt,dt,Rt,Gt,rn=[]){Gt=Gt||new re;const pn=new He(N,G,Gt,Ae,We,rn,[]);pn.options=Rt,pn.currentTimeline.setStyles([rt],null,pn.errors,Rt),x(this,pe,pn);const Pn=pn.timelines.filter(Ln=>Ln.containsAnimation());if(Pn.length&&Object.keys(dt).length){const Ln=Pn[Pn.length-1];Ln.allowOnlyTimelineStyles()||Ln.setStyles([dt],null,pn.errors,Rt)}return Pn.length?Pn.map(Ln=>Ln.buildKeyframes()):[ee(G,[],[],[],0,0,"",!1)]}visitTrigger(N,G){}visitState(N,G){}visitTransition(N,G){}visitAnimateChild(N,G){const pe=G.subInstructions.get(G.element);if(pe){const Ae=G.createSubContext(N.options),We=G.currentTimeline.currentTime,rt=this._visitSubInstructions(pe,Ae,Ae.options);We!=rt&&G.transformIntoNewTimeline(rt)}G.previousNode=N}visitAnimateRef(N,G){const pe=G.createSubContext(N.options);pe.transformIntoNewTimeline(),this.visitReference(N.animation,pe),G.transformIntoNewTimeline(pe.currentTimeline.currentTime),G.previousNode=N}_visitSubInstructions(N,G,pe){let We=G.currentTimeline.currentTime;const rt=null!=pe.duration?ae(pe.duration):null,dt=null!=pe.delay?ae(pe.delay):null;return 0!==rt&&N.forEach(Rt=>{const Gt=G.appendInstructionToTimeline(Rt,rt,dt);We=Math.max(We,Gt.duration+Gt.delay)}),We}visitReference(N,G){G.updateOptions(N.options,!0),x(this,N.animation,G),G.previousNode=N}visitSequence(N,G){const pe=G.subContextCount;let Ae=G;const We=N.options;if(We&&(We.params||We.delay)&&(Ae=G.createSubContext(We),Ae.transformIntoNewTimeline(),null!=We.delay)){6==Ae.previousNode.type&&(Ae.currentTimeline.snapshotCurrentStyles(),Ae.previousNode=ct);const rt=ae(We.delay);Ae.delayNextStep(rt)}N.steps.length&&(N.steps.forEach(rt=>x(this,rt,Ae)),Ae.currentTimeline.applyStylesToKeyframe(),Ae.subContextCount>pe&&Ae.transformIntoNewTimeline()),G.previousNode=N}visitGroup(N,G){const pe=[];let Ae=G.currentTimeline.currentTime;const We=N.options&&N.options.delay?ae(N.options.delay):0;N.steps.forEach(rt=>{const dt=G.createSubContext(N.options);We&&dt.delayNextStep(We),x(this,rt,dt),Ae=Math.max(Ae,dt.currentTimeline.currentTime),pe.push(dt.currentTimeline)}),pe.forEach(rt=>G.currentTimeline.mergeTimelineCollectedStyles(rt)),G.transformIntoNewTimeline(Ae),G.previousNode=N}_visitTiming(N,G){if(N.dynamic){const pe=N.strValue;return Oe(G.params?At(pe,G.params,G.errors):pe,G.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,G){const pe=G.currentAnimateTimings=this._visitTiming(N.timings,G),Ae=G.currentTimeline;pe.delay&&(G.incrementTime(pe.delay),Ae.snapshotCurrentStyles());const We=N.style;5==We.type?this.visitKeyframes(We,G):(G.incrementTime(pe.duration),this.visitStyle(We,G),Ae.applyStylesToKeyframe()),G.currentAnimateTimings=null,G.previousNode=N}visitStyle(N,G){const pe=G.currentTimeline,Ae=G.currentAnimateTimings;!Ae&&pe.getCurrentStyleProperties().length&&pe.forwardFrame();const We=Ae&&Ae.easing||N.easing;N.isEmptyStep?pe.applyEmptyStep(We):pe.setStyles(N.styles,We,G.errors,G.options),G.previousNode=N}visitKeyframes(N,G){const pe=G.currentAnimateTimings,Ae=G.currentTimeline.duration,We=pe.duration,dt=G.createSubContext().currentTimeline;dt.easing=pe.easing,N.styles.forEach(Rt=>{dt.forwardTime((Rt.offset||0)*We),dt.setStyles(Rt.styles,Rt.easing,G.errors,G.options),dt.applyStylesToKeyframe()}),G.currentTimeline.mergeTimelineCollectedStyles(dt),G.transformIntoNewTimeline(Ae+We),G.previousNode=N}visitQuery(N,G){const pe=G.currentTimeline.currentTime,Ae=N.options||{},We=Ae.delay?ae(Ae.delay):0;We&&(6===G.previousNode.type||0==pe&&G.currentTimeline.getCurrentStyleProperties().length)&&(G.currentTimeline.snapshotCurrentStyles(),G.previousNode=ct);let rt=pe;const dt=G.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!Ae.optional,G.errors);G.currentQueryTotal=dt.length;let Rt=null;dt.forEach((Gt,rn)=>{G.currentQueryIndex=rn;const pn=G.createSubContext(N.options,Gt);We&&pn.delayNextStep(We),Gt===G.element&&(Rt=pn.currentTimeline),x(this,N.animation,pn),pn.currentTimeline.applyStylesToKeyframe(),rt=Math.max(rt,pn.currentTimeline.currentTime)}),G.currentQueryIndex=0,G.currentQueryTotal=0,G.transformIntoNewTimeline(rt),Rt&&(G.currentTimeline.mergeTimelineCollectedStyles(Rt),G.currentTimeline.snapshotCurrentStyles()),G.previousNode=N}visitStagger(N,G){const pe=G.parentContext,Ae=G.currentTimeline,We=N.timings,rt=Math.abs(We.duration),dt=rt*(G.currentQueryTotal-1);let Rt=rt*G.currentQueryIndex;switch(We.duration<0?"reverse":We.easing){case"reverse":Rt=dt-Rt;break;case"full":Rt=pe.currentStaggerTime}const rn=G.currentTimeline;Rt&&rn.delayNextStep(Rt);const pn=rn.currentTime;x(this,N.animation,G),G.previousNode=N,pe.currentStaggerTime=Ae.currentTime-pn+(Ae.startTime-pe.currentTimeline.startTime)}}const ct={};class He{constructor(N,G,pe,Ae,We,rt,dt,Rt){this._driver=N,this.element=G,this.subInstructions=pe,this._enterClassName=Ae,this._leaveClassName=We,this.errors=rt,this.timelines=dt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Rt||new pt(this._driver,G,0),dt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,G){if(!N)return;const pe=N;let Ae=this.options;null!=pe.duration&&(Ae.duration=ae(pe.duration)),null!=pe.delay&&(Ae.delay=ae(pe.delay));const We=pe.params;if(We){let rt=Ae.params;rt||(rt=this.options.params={}),Object.keys(We).forEach(dt=>{(!G||!rt.hasOwnProperty(dt))&&(rt[dt]=At(We[dt],rt,this.errors))})}}_copyOptions(){const N={};if(this.options){const G=this.options.params;if(G){const pe=N.params={};Object.keys(G).forEach(Ae=>{pe[Ae]=G[Ae]})}}return N}createSubContext(N=null,G,pe){const Ae=G||this.element,We=new He(this._driver,Ae,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ae,pe||0));return We.previousNode=this.previousNode,We.currentAnimateTimings=this.currentAnimateTimings,We.options=this._copyOptions(),We.updateOptions(N),We.currentQueryIndex=this.currentQueryIndex,We.currentQueryTotal=this.currentQueryTotal,We.parentContext=this,this.subContextCount++,We}transformIntoNewTimeline(N){return this.previousNode=ct,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,G,pe){const Ae={duration:null!=G?G:N.duration,delay:this.currentTimeline.currentTime+(null!=pe?pe:0)+N.delay,easing:""},We=new Ot(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,Ae,N.stretchStartingKeyframe);return this.timelines.push(We),Ae}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,G,pe,Ae,We,rt){let dt=[];if(Ae&&dt.push(this.element),N.length>0){N=(N=N.replace(It,"."+this._enterClassName)).replace(cn,"."+this._leaveClassName);let Gt=this._driver.query(this.element,N,1!=pe);0!==pe&&(Gt=pe<0?Gt.slice(Gt.length+pe,Gt.length):Gt.slice(0,pe)),dt.push(...Gt)}return!We&&0==dt.length&&rt.push(`\`query("${G}")\` returned zero elements. (Use \`query("${G}", { optional: true })\` if you wish to allow this.)`),dt}}class pt{constructor(N,G,pe,Ae){this._driver=N,this.element=G,this.startTime=pe,this._elementTimelineStylesLookup=Ae,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(G),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(G,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(N){const G=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||G?(this.forwardTime(this.currentTime+N),G&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,G){return this.applyStylesToKeyframe(),new pt(this._driver,N,G||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(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,G){this._localTimelineStyles[N]=G,this._globalTimelineStyles[N]=G,this._styleSummary[N]={time:this.currentTime,value:G}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&(this._previousKeyframe.easing=N),Object.keys(this._globalTimelineStyles).forEach(G=>{this._backFill[G]=this._globalTimelineStyles[G]||v.l3,this._currentKeyframe[G]=v.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,G,pe,Ae){G&&(this._previousKeyframe.easing=G);const We=Ae&&Ae.params||{},rt=function(we,N){const G={};let pe;return we.forEach(Ae=>{"*"===Ae?(pe=pe||Object.keys(N),pe.forEach(We=>{G[We]=v.l3})):gt(Ae,!1,G)}),G}(N,this._globalTimelineStyles);Object.keys(rt).forEach(dt=>{const Rt=At(rt[dt],We,pe);this._pendingStyles[dt]=Rt,this._localTimelineStyles.hasOwnProperty(dt)||(this._backFill[dt]=this._globalTimelineStyles.hasOwnProperty(dt)?this._globalTimelineStyles[dt]:v.l3),this._updateStyle(dt,Rt)})}applyStylesToKeyframe(){const N=this._pendingStyles,G=Object.keys(N);0!=G.length&&(this._pendingStyles={},G.forEach(pe=>{this._currentKeyframe[pe]=N[pe]}),Object.keys(this._localTimelineStyles).forEach(pe=>{this._currentKeyframe.hasOwnProperty(pe)||(this._currentKeyframe[pe]=this._localTimelineStyles[pe])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(N=>{const G=this._localTimelineStyles[N];this._pendingStyles[N]=G,this._updateStyle(N,G)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let G in this._currentKeyframe)N.push(G);return N}mergeTimelineCollectedStyles(N){Object.keys(N._styleSummary).forEach(G=>{const pe=this._styleSummary[G],Ae=N._styleSummary[G];(!pe||Ae.time>pe.time)&&this._updateStyle(G,Ae.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,G=new Set,pe=1===this._keyframes.size&&0===this.duration;let Ae=[];this._keyframes.forEach((dt,Rt)=>{const Gt=gt(dt,!0);Object.keys(Gt).forEach(rn=>{const pn=Gt[rn];pn==v.k1?N.add(rn):pn==v.l3&&G.add(rn)}),pe||(Gt.offset=Rt/this.duration),Ae.push(Gt)});const We=N.size?Tt(N.values()):[],rt=G.size?Tt(G.values()):[];if(pe){const dt=Ae[0],Rt=Ye(dt);dt.offset=0,Rt.offset=1,Ae=[dt,Rt]}return ee(this.element,Ae,We,rt,this.duration,this.startTime,this.easing,!1)}}class Ot extends pt{constructor(N,G,pe,Ae,We,rt,dt=!1){super(N,G,rt.delay),this.keyframes=pe,this.preStyleProps=Ae,this.postStyleProps=We,this._stretchStartingKeyframe=dt,this.timings={duration:rt.duration,delay:rt.delay,easing:rt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:G,duration:pe,easing:Ae}=this.timings;if(this._stretchStartingKeyframe&&G){const We=[],rt=pe+G,dt=G/rt,Rt=gt(N[0],!1);Rt.offset=0,We.push(Rt);const Gt=gt(N[0],!1);Gt.offset=un(dt),We.push(Gt);const rn=N.length-1;for(let pn=1;pn<=rn;pn++){let Pn=gt(N[pn],!1);Pn.offset=un((G+Pn.offset*pe)/rt),We.push(Pn)}pe=rt,G=0,Ae="",N=We}return ee(this.element,N,this.preStyleProps,this.postStyleProps,pe,G,Ae,!0)}}function un(we,N=3){const G=Math.pow(10,N-1);return Math.round(we*G)/G}class Yn{}class Oi extends Yn{normalizePropertyName(N,G){return Et(N)}normalizeStyleValue(N,G,pe,Ae){let We="";const rt=pe.toString().trim();if(Ni[G]&&0!==pe&&"0"!==pe)if("number"==typeof pe)We="px";else{const dt=pe.match(/^[+-]?[\d\.]+([a-z]*)$/);dt&&0==dt[1].length&&Ae.push(`Please provide a CSS unit value for ${N}:${pe}`)}return rt+We}}const Ni=(()=>function(we){const N={};return we.forEach(G=>N[G]=!0),N}("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 qn(we,N,G,pe,Ae,We,rt,dt,Rt,Gt,rn,pn,Pn){return{type:0,element:we,triggerName:N,isRemovalTransition:Ae,fromState:G,fromStyles:We,toState:pe,toStyles:rt,timelines:dt,queriedElements:Rt,preStyleProps:Gt,postStyleProps:rn,totalTime:pn,errors:Pn}}const Vi={};class ci{constructor(N,G,pe){this._triggerName=N,this.ast=G,this._stateStyles=pe}match(N,G,pe,Ae){return function(we,N,G,pe,Ae){return we.some(We=>We(N,G,pe,Ae))}(this.ast.matchers,N,G,pe,Ae)}buildStyles(N,G,pe){const Ae=this._stateStyles["*"],We=this._stateStyles[N],rt=Ae?Ae.buildStyles(G,pe):{};return We?We.buildStyles(G,pe):rt}build(N,G,pe,Ae,We,rt,dt,Rt,Gt,rn){const pn=[],Pn=this.ast.options&&this.ast.options.params||Vi,_n=this.buildStyles(pe,dt&&dt.params||Vi,pn),Bn=Rt&&Rt.params||Vi,Kn=this.buildStyles(Ae,Bn,pn),_i=new Set,xi=new Map,sr=new Map,Qi="void"===Ae,Nr={params:Object.assign(Object.assign({},Pn),Bn)},fr=rn?[]:An(N,G,this.ast.animation,We,rt,_n,Kn,Nr,Gt,pn);let Xi=0;if(fr.forEach(zi=>{Xi=Math.max(zi.duration+zi.delay,Xi)}),pn.length)return qn(G,this._triggerName,pe,Ae,Qi,_n,Kn,[],[],xi,sr,Xi,pn);fr.forEach(zi=>{const Pr=zi.element,ys=i(xi,Pr,{});zi.preStyleProps.forEach(Ur=>ys[Ur]=!0);const Yi=i(sr,Pr,{});zi.postStyleProps.forEach(Ur=>Yi[Ur]=!0),Pr!==G&&_i.add(Pr)});const gr=Tt(_i.values());return qn(G,this._triggerName,pe,Ae,Qi,_n,Kn,fr,gr,xi,sr,Xi)}}class Ze{constructor(N,G,pe){this.styles=N,this.defaultParams=G,this.normalizer=pe}buildStyles(N,G){const pe={},Ae=Ye(this.defaultParams);return Object.keys(N).forEach(We=>{const rt=N[We];null!=rt&&(Ae[We]=rt)}),this.styles.styles.forEach(We=>{if("string"!=typeof We){const rt=We;Object.keys(rt).forEach(dt=>{let Rt=rt[dt];Rt.length>1&&(Rt=At(Rt,Ae,G));const Gt=this.normalizer.normalizePropertyName(dt,G);Rt=this.normalizer.normalizeStyleValue(dt,Gt,Rt,G),pe[Gt]=Rt})}}),pe}}class Re{constructor(N,G,pe){this.name=N,this.ast=G,this._normalizer=pe,this.transitionFactories=[],this.states={},G.states.forEach(Ae=>{this.states[Ae.name]=new Ze(Ae.style,Ae.options&&Ae.options.params||{},pe)}),de(this.states,"true","1"),de(this.states,"false","0"),G.transitions.forEach(Ae=>{this.transitionFactories.push(new ci(N,Ae,this.states))}),this.fallbackTransition=function(we,N,G){return new ci(we,{type:1,animation:{type:2,steps:[],options:null},matchers:[(rt,dt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,G,pe,Ae){return this.transitionFactories.find(rt=>rt.match(N,G,pe,Ae))||null}matchStyles(N,G,pe){return this.fallbackTransition.buildStyles(N,G,pe)}}function de(we,N,G){we.hasOwnProperty(N)?we.hasOwnProperty(G)||(we[G]=we[N]):we.hasOwnProperty(G)&&(we[N]=we[G])}const Pe=new re;class Xe{constructor(N,G,pe){this.bodyNode=N,this._driver=G,this._normalizer=pe,this._animations={},this._playersById={},this.players=[]}register(N,G){const pe=[],Ae=Dt(this._driver,G,pe);if(pe.length)throw new Error(`Unable to build the animation due to the following errors: ${pe.join("\n")}`);this._animations[N]=Ae}_buildPlayer(N,G,pe){const Ae=N.element,We=u(0,this._normalizer,0,N.keyframes,G,pe);return this._driver.animate(Ae,We,N.duration,N.delay,N.easing,[],!0)}create(N,G,pe={}){const Ae=[],We=this._animations[N];let rt;const dt=new Map;if(We?(rt=An(this._driver,G,We,Y,Q,{},{},pe,Pe,Ae),rt.forEach(rn=>{const pn=i(dt,rn.element,{});rn.postStyleProps.forEach(Pn=>pn[Pn]=null)})):(Ae.push("The requested animation doesn't exist or has already been destroyed"),rt=[]),Ae.length)throw new Error(`Unable to create the animation due to the following errors: ${Ae.join("\n")}`);dt.forEach((rn,pn)=>{Object.keys(rn).forEach(Pn=>{rn[Pn]=this._driver.computeStyle(pn,Pn,v.l3)})});const Gt=d(rt.map(rn=>{const pn=dt.get(rn.element);return this._buildPlayer(rn,{},pn)}));return this._playersById[N]=Gt,Gt.onDestroy(()=>this.destroy(N)),this.players.push(Gt),Gt}destroy(N){const G=this._getPlayer(N);G.destroy(),delete this._playersById[N];const pe=this.players.indexOf(G);pe>=0&&this.players.splice(pe,1)}_getPlayer(N){const G=this._playersById[N];if(!G)throw new Error(`Unable to find the timeline player referenced by ${N}`);return G}listen(N,G,pe,Ae){const We=s(G,"","","");return h(this._getPlayer(N),pe,We,Ae),()=>{}}command(N,G,pe,Ae){if("register"==pe)return void this.register(N,Ae[0]);if("create"==pe)return void this.create(N,G,Ae[0]||{});const We=this._getPlayer(N);switch(pe){case"play":We.play();break;case"pause":We.pause();break;case"reset":We.reset();break;case"restart":We.restart();break;case"finish":We.finish();break;case"init":We.init();break;case"setPosition":We.setPosition(parseFloat(Ae[0]));break;case"destroy":this.destroy(N)}}}const Wt="ng-animate-queued",Ht="ng-animate-disabled",zn=[],$n={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jn="__ng_removed";class Qn{constructor(N,G=""){this.namespaceId=G;const pe=N&&N.hasOwnProperty("value");if(this.value=null!=(we=pe?N.value:N)?we:null,pe){const We=Ye(N);delete We.value,this.options=We}else this.options={};var we;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(N){const G=N.params;if(G){const pe=this.options.params;Object.keys(G).forEach(Ae=>{null==pe[Ae]&&(pe[Ae]=G[Ae])})}}}const kn="void",Mi=new Qn(kn);class Zi{constructor(N,G,pe){this.id=N,this.hostElement=G,this._engine=pe,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+N,Fn(G,this._hostClassName)}listen(N,G,pe,Ae){if(!this._triggers.hasOwnProperty(G))throw new Error(`Unable to listen on the animation trigger event "${pe}" because the animation trigger "${G}" doesn't exist!`);if(null==pe||0==pe.length)throw new Error(`Unable to listen on the animation trigger "${G}" because the provided event is undefined!`);if("start"!=(we=pe)&&"done"!=we)throw new Error(`The provided animation trigger event "${pe}" for the animation trigger "${G}" is not supported!`);var we;const We=i(this._elementListeners,N,[]),rt={name:G,phase:pe,callback:Ae};We.push(rt);const dt=i(this._engine.statesByElement,N,{});return dt.hasOwnProperty(G)||(Fn(N,te),Fn(N,te+"-"+G),dt[G]=Mi),()=>{this._engine.afterFlush(()=>{const Rt=We.indexOf(rt);Rt>=0&&We.splice(Rt,1),this._triggers[G]||delete dt[G]})}}register(N,G){return!this._triggers[N]&&(this._triggers[N]=G,!0)}_getTrigger(N){const G=this._triggers[N];if(!G)throw new Error(`The provided animation trigger "${N}" has not been registered!`);return G}trigger(N,G,pe,Ae=!0){const We=this._getTrigger(G),rt=new pi(this.id,G,N);let dt=this._engine.statesByElement.get(N);dt||(Fn(N,te),Fn(N,te+"-"+G),this._engine.statesByElement.set(N,dt={}));let Rt=dt[G];const Gt=new Qn(pe,this.id);if(!(pe&&pe.hasOwnProperty("value"))&&Rt&&Gt.absorbOptions(Rt.options),dt[G]=Gt,Rt||(Rt=Mi),Gt.value!==kn&&Rt.value===Gt.value){if(!function(we,N){const G=Object.keys(we),pe=Object.keys(N);if(G.length!=pe.length)return!1;for(let Ae=0;Ae{ft(N,Kn),at(N,_i)})}return}const Pn=i(this._engine.playersByElement,N,[]);Pn.forEach(Bn=>{Bn.namespaceId==this.id&&Bn.triggerName==G&&Bn.queued&&Bn.destroy()});let Ln=We.matchTransition(Rt.value,Gt.value,N,Gt.params),_n=!1;if(!Ln){if(!Ae)return;Ln=We.fallbackTransition,_n=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:G,transition:Ln,fromState:Rt,toState:Gt,player:rt,isFallbackTransition:_n}),_n||(Fn(N,Wt),rt.onStart(()=>{$i(N,Wt)})),rt.onDone(()=>{let Bn=this.players.indexOf(rt);Bn>=0&&this.players.splice(Bn,1);const Kn=this._engine.playersByElement.get(N);if(Kn){let _i=Kn.indexOf(rt);_i>=0&&Kn.splice(_i,1)}}),this.players.push(rt),Pn.push(rt),rt}deregister(N){delete this._triggers[N],this._engine.statesByElement.forEach((G,pe)=>{delete G[N]}),this._elementListeners.forEach((G,pe)=>{this._elementListeners.set(pe,G.filter(Ae=>Ae.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const G=this._engine.playersByElement.get(N);G&&(G.forEach(pe=>pe.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,G){const pe=this._engine.driver.query(N,$,!0);pe.forEach(Ae=>{if(Ae[jn])return;const We=this._engine.fetchNamespacesByElement(Ae);We.size?We.forEach(rt=>rt.triggerLeaveAnimation(Ae,G,!1,!0)):this.clearElementCache(Ae)}),this._engine.afterFlushAnimationsDone(()=>pe.forEach(Ae=>this.clearElementCache(Ae)))}triggerLeaveAnimation(N,G,pe,Ae){const We=this._engine.statesByElement.get(N);if(We){const rt=[];if(Object.keys(We).forEach(dt=>{if(this._triggers[dt]){const Rt=this.trigger(N,dt,kn,Ae);Rt&&rt.push(Rt)}}),rt.length)return this._engine.markElementAsRemoved(this.id,N,!0,G),pe&&d(rt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const G=this._elementListeners.get(N),pe=this._engine.statesByElement.get(N);if(G&&pe){const Ae=new Set;G.forEach(We=>{const rt=We.name;if(Ae.has(rt))return;Ae.add(rt);const Rt=this._triggers[rt].fallbackTransition,Gt=pe[rt]||Mi,rn=new Qn(kn),pn=new pi(this.id,rt,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:rt,transition:Rt,fromState:Gt,toState:rn,player:pn,isFallbackTransition:!0})})}}removeNode(N,G){const pe=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,G),this.triggerLeaveAnimation(N,G,!0))return;let Ae=!1;if(pe.totalAnimations){const We=pe.players.length?pe.playersByQueriedElement.get(N):[];if(We&&We.length)Ae=!0;else{let rt=N;for(;rt=rt.parentNode;)if(pe.statesByElement.get(rt)){Ae=!0;break}}}if(this.prepareLeaveAnimationListeners(N),Ae)pe.markElementAsRemoved(this.id,N,!1,G);else{const We=N[jn];(!We||We===$n)&&(pe.afterFlush(()=>this.clearElementCache(N)),pe.destroyInnerAnimations(N),pe._onRemovalComplete(N,G))}}insertNode(N,G){Fn(N,this._hostClassName)}drainQueuedTransitions(N){const G=[];return this._queue.forEach(pe=>{const Ae=pe.player;if(Ae.destroyed)return;const We=pe.element,rt=this._elementListeners.get(We);rt&&rt.forEach(dt=>{if(dt.name==pe.triggerName){const Rt=s(We,pe.triggerName,pe.fromState.value,pe.toState.value);Rt._data=N,h(pe.player,dt.phase,Rt,dt.callback)}}),Ae.markedForDestroy?this._engine.afterFlush(()=>{Ae.destroy()}):G.push(pe)}),this._queue=[],G.sort((pe,Ae)=>{const We=pe.transition.ast.depCount,rt=Ae.transition.ast.depCount;return 0==We||0==rt?We-rt:this._engine.driver.containsElement(pe.element,Ae.element)?1:-1})}destroy(N){this.players.forEach(G=>G.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}elementContainsData(N){let G=!1;return this._elementListeners.has(N)&&(G=!0),G=!!this._queue.find(pe=>pe.element===N)||G,G}}class Xn{constructor(N,G,pe){this.bodyNode=N,this.driver=G,this._normalizer=pe,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=(Ae,We)=>{}}_onRemovalComplete(N,G){this.onRemovalComplete(N,G)}get queuedPlayers(){const N=[];return this._namespaceList.forEach(G=>{G.players.forEach(pe=>{pe.queued&&N.push(pe)})}),N}createNamespace(N,G){const pe=new Zi(N,G,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,G)?this._balanceNamespaceList(pe,G):(this.newHostElements.set(G,pe),this.collectEnterElement(G)),this._namespaceLookup[N]=pe}_balanceNamespaceList(N,G){const pe=this._namespaceList.length-1;if(pe>=0){let Ae=!1;for(let We=pe;We>=0;We--)if(this.driver.containsElement(this._namespaceList[We].hostElement,G)){this._namespaceList.splice(We+1,0,N),Ae=!0;break}Ae||this._namespaceList.splice(0,0,N)}else this._namespaceList.push(N);return this.namespacesByHostElement.set(G,N),N}register(N,G){let pe=this._namespaceLookup[N];return pe||(pe=this.createNamespace(N,G)),pe}registerTrigger(N,G,pe){let Ae=this._namespaceLookup[N];Ae&&Ae.register(G,pe)&&this.totalAnimations++}destroy(N,G){if(!N)return;const pe=this._fetchNamespace(N);this.afterFlush(()=>{this.namespacesByHostElement.delete(pe.hostElement),delete this._namespaceLookup[N];const Ae=this._namespaceList.indexOf(pe);Ae>=0&&this._namespaceList.splice(Ae,1)}),this.afterFlushAnimationsDone(()=>pe.destroy(G))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const G=new Set,pe=this.statesByElement.get(N);if(pe){const Ae=Object.keys(pe);for(let We=0;We=0&&this.collectedLeaveElements.splice(rt,1)}if(N){const rt=this._fetchNamespace(N);rt&&rt.insertNode(G,pe)}Ae&&this.collectEnterElement(G)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,G){G?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Fn(N,Ht)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),$i(N,Ht))}removeNode(N,G,pe,Ae){if(tr(G)){const We=N?this._fetchNamespace(N):null;if(We?We.removeNode(G,Ae):this.markElementAsRemoved(N,G,!1,Ae),pe){const rt=this.namespacesByHostElement.get(G);rt&&rt.id!==N&&rt.removeNode(G,Ae)}}else this._onRemovalComplete(G,Ae)}markElementAsRemoved(N,G,pe,Ae){this.collectedLeaveElements.push(G),G[jn]={namespaceId:N,setForRemoval:Ae,hasAnimation:pe,removedBeforeQueried:!1}}listen(N,G,pe,Ae,We){return tr(G)?this._fetchNamespace(N).listen(G,pe,Ae,We):()=>{}}_buildInstruction(N,G,pe,Ae,We){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,pe,Ae,N.fromState.options,N.toState.options,G,We)}destroyInnerAnimations(N){let G=this.driver.query(N,$,!0);G.forEach(pe=>this.destroyActiveAnimationsForElement(pe)),0!=this.playersByQueriedElement.size&&(G=this.driver.query(N,ie,!0),G.forEach(pe=>this.finishActiveQueriedAnimationOnElement(pe)))}destroyActiveAnimationsForElement(N){const G=this.playersByElement.get(N);G&&G.forEach(pe=>{pe.queued?pe.markedForDestroy=!0:pe.destroy()})}finishActiveQueriedAnimationOnElement(N){const G=this.playersByQueriedElement.get(N);G&&G.forEach(pe=>pe.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return d(this.players).onDone(()=>N());N()})}processLeaveNode(N){var G;const pe=N[jn];if(pe&&pe.setForRemoval){if(N[jn]=$n,pe.namespaceId){this.destroyInnerAnimations(N);const Ae=this._fetchNamespace(pe.namespaceId);Ae&&Ae.clearElementCache(N)}this._onRemovalComplete(N,pe.setForRemoval)}(null===(G=N.classList)||void 0===G?void 0:G.contains(Ht))&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(Ae=>{this.markElementAsDisabled(Ae,!1)})}flush(N=-1){let G=[];if(this.newHostElements.size&&(this.newHostElements.forEach((pe,Ae)=>this._balanceNamespaceList(pe,Ae)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let pe=0;pepe()),this._flushFns=[],this._whenQuietFns.length){const pe=this._whenQuietFns;this._whenQuietFns=[],G.length?d(G).onDone(()=>{pe.forEach(Ae=>Ae())}):pe.forEach(Ae=>Ae())}}reportError(N){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${N.join("\n")}`)}_flushAnimations(N,G){const pe=new re,Ae=[],We=new Map,rt=[],dt=new Map,Rt=new Map,Gt=new Map,rn=new Set;this.disabledNodes.forEach(mn=>{rn.add(mn);const Mn=this.driver.query(mn,".ng-animate-queued",!0);for(let En=0;En{const En=Y+Bn++;_n.set(Mn,En),mn.forEach(li=>Fn(li,En))});const Kn=[],_i=new Set,xi=new Set;for(let mn=0;mn_i.add(li)):xi.add(Mn))}const sr=new Map,Qi=oi(Pn,Array.from(_i));Qi.forEach((mn,Mn)=>{const En=Q+Bn++;sr.set(Mn,En),mn.forEach(li=>Fn(li,En))}),N.push(()=>{Ln.forEach((mn,Mn)=>{const En=_n.get(Mn);mn.forEach(li=>$i(li,En))}),Qi.forEach((mn,Mn)=>{const En=sr.get(Mn);mn.forEach(li=>$i(li,En))}),Kn.forEach(mn=>{this.processLeaveNode(mn)})});const Nr=[],fr=[];for(let mn=this._namespaceList.length-1;mn>=0;mn--)this._namespaceList[mn].drainQueuedTransitions(G).forEach(En=>{const li=En.player,ii=En.element;if(Nr.push(li),this.collectedEnterElements.length){const or=ii[jn];if(or&&or.setForMove)return void li.destroy()}const Hi=!pn||!this.driver.containsElement(pn,ii),Zn=sr.get(ii),dr=_n.get(ii),Si=this._buildInstruction(En,pe,dr,Zn,Hi);if(Si.errors&&Si.errors.length)return void fr.push(Si);if(Hi)return li.onStart(()=>ft(ii,Si.fromStyles)),li.onDestroy(()=>at(ii,Si.toStyles)),void Ae.push(li);if(En.isFallbackTransition)return li.onStart(()=>ft(ii,Si.fromStyles)),li.onDestroy(()=>at(ii,Si.toStyles)),void Ae.push(li);const Es=[];Si.timelines.forEach(or=>{or.stretchStartingKeyframe=!0,this.disabledNodes.has(or.element)||Es.push(or)}),Si.timelines=Es,pe.append(ii,Si.timelines),rt.push({instruction:Si,player:li,element:ii}),Si.queriedElements.forEach(or=>i(dt,or,[]).push(li)),Si.preStyleProps.forEach((or,ar)=>{const Ir=Object.keys(or);if(Ir.length){let _r=Rt.get(ar);_r||Rt.set(ar,_r=new Set),Ir.forEach(ts=>_r.add(ts))}}),Si.postStyleProps.forEach((or,ar)=>{const Ir=Object.keys(or);let _r=Gt.get(ar);_r||Gt.set(ar,_r=new Set),Ir.forEach(ts=>_r.add(ts))})});if(fr.length){const mn=[];fr.forEach(Mn=>{mn.push(`@${Mn.triggerName} has failed due to:\n`),Mn.errors.forEach(En=>mn.push(`- ${En}\n`))}),Nr.forEach(Mn=>Mn.destroy()),this.reportError(mn)}const Xi=new Map,gr=new Map;rt.forEach(mn=>{const Mn=mn.element;pe.has(Mn)&&(gr.set(Mn,Mn),this._beforeAnimationBuild(mn.player.namespaceId,mn.instruction,Xi))}),Ae.forEach(mn=>{const Mn=mn.element;this._getPreviousPlayers(Mn,!1,mn.namespaceId,mn.triggerName,null).forEach(li=>{i(Xi,Mn,[]).push(li),li.destroy()})});const zi=Kn.filter(mn=>yn(mn,Rt,Gt)),Pr=new Map;qi(Pr,this.driver,xi,Gt,v.l3).forEach(mn=>{yn(mn,Rt,Gt)&&zi.push(mn)});const Yi=new Map;Ln.forEach((mn,Mn)=>{qi(Yi,this.driver,new Set(mn),Rt,v.k1)}),zi.forEach(mn=>{const Mn=Pr.get(mn),En=Yi.get(mn);Pr.set(mn,Object.assign(Object.assign({},Mn),En))});const Ur=[],bs=[],Cs={};rt.forEach(mn=>{const{element:Mn,player:En,instruction:li}=mn;if(pe.has(Mn)){if(rn.has(Mn))return En.onDestroy(()=>at(Mn,li.toStyles)),En.disabled=!0,En.overrideTotalTime(li.totalTime),void Ae.push(En);let ii=Cs;if(gr.size>1){let Zn=Mn;const dr=[];for(;Zn=Zn.parentNode;){const Si=gr.get(Zn);if(Si){ii=Si;break}dr.push(Zn)}dr.forEach(Si=>gr.set(Si,ii))}const Hi=this._buildAnimation(En.namespaceId,li,Xi,We,Yi,Pr);if(En.setRealPlayer(Hi),ii===Cs)Ur.push(En);else{const Zn=this.playersByElement.get(ii);Zn&&Zn.length&&(En.parentPlayer=d(Zn)),Ae.push(En)}}else ft(Mn,li.fromStyles),En.onDestroy(()=>at(Mn,li.toStyles)),bs.push(En),rn.has(Mn)&&Ae.push(En)}),bs.forEach(mn=>{const Mn=We.get(mn.element);if(Mn&&Mn.length){const En=d(Mn);mn.setRealPlayer(En)}}),Ae.forEach(mn=>{mn.parentPlayer?mn.syncPlayerEvents(mn.parentPlayer):mn.destroy()});for(let mn=0;mn!Hi.destroyed);ii.length?mi(this,Mn,ii):this.processLeaveNode(Mn)}return Kn.length=0,Ur.forEach(mn=>{this.players.push(mn),mn.onDone(()=>{mn.destroy();const Mn=this.players.indexOf(mn);this.players.splice(Mn,1)}),mn.play()}),Ur}elementContainsData(N,G){let pe=!1;const Ae=G[jn];return Ae&&Ae.setForRemoval&&(pe=!0),this.playersByElement.has(G)&&(pe=!0),this.playersByQueriedElement.has(G)&&(pe=!0),this.statesByElement.has(G)&&(pe=!0),this._fetchNamespace(N).elementContainsData(G)||pe}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,G,pe,Ae,We){let rt=[];if(G){const dt=this.playersByQueriedElement.get(N);dt&&(rt=dt)}else{const dt=this.playersByElement.get(N);if(dt){const Rt=!We||We==kn;dt.forEach(Gt=>{Gt.queued||!Rt&&Gt.triggerName!=Ae||rt.push(Gt)})}}return(pe||Ae)&&(rt=rt.filter(dt=>!(pe&&pe!=dt.namespaceId||Ae&&Ae!=dt.triggerName))),rt}_beforeAnimationBuild(N,G,pe){const We=G.element,rt=G.isRemovalTransition?void 0:N,dt=G.isRemovalTransition?void 0:G.triggerName;for(const Rt of G.timelines){const Gt=Rt.element,rn=Gt!==We,pn=i(pe,Gt,[]);this._getPreviousPlayers(Gt,rn,rt,dt,G.toState).forEach(Ln=>{const _n=Ln.getRealPlayer();_n.beforeDestroy&&_n.beforeDestroy(),Ln.destroy(),pn.push(Ln)})}ft(We,G.fromStyles)}_buildAnimation(N,G,pe,Ae,We,rt){const dt=G.triggerName,Rt=G.element,Gt=[],rn=new Set,pn=new Set,Pn=G.timelines.map(_n=>{const Bn=_n.element;rn.add(Bn);const Kn=Bn[jn];if(Kn&&Kn.removedBeforeQueried)return new v.ZN(_n.duration,_n.delay);const _i=Bn!==Rt,xi=function(we){const N=[];return ur(we,N),N}((pe.get(Bn)||zn).map(Xi=>Xi.getRealPlayer())).filter(Xi=>!!Xi.element&&Xi.element===Bn),sr=We.get(Bn),Qi=rt.get(Bn),Nr=u(0,this._normalizer,0,_n.keyframes,sr,Qi),fr=this._buildPlayer(_n,Nr,xi);if(_n.subTimeline&&Ae&&pn.add(Bn),_i){const Xi=new pi(N,dt,Bn);Xi.setRealPlayer(fr),Gt.push(Xi)}return fr});Gt.forEach(_n=>{i(this.playersByQueriedElement,_n.element,[]).push(_n),_n.onDone(()=>function(we,N,G){let pe;if(we instanceof Map){if(pe=we.get(N),pe){if(pe.length){const Ae=pe.indexOf(G);pe.splice(Ae,1)}0==pe.length&&we.delete(N)}}else if(pe=we[N],pe){if(pe.length){const Ae=pe.indexOf(G);pe.splice(Ae,1)}0==pe.length&&delete we[N]}return pe}(this.playersByQueriedElement,_n.element,_n))}),rn.forEach(_n=>Fn(_n,J));const Ln=d(Pn);return Ln.onDestroy(()=>{rn.forEach(_n=>$i(_n,J)),at(Rt,G.toStyles)}),pn.forEach(_n=>{i(Ae,_n,[]).push(Ln)}),Ln}_buildPlayer(N,G,pe){return G.length>0?this.driver.animate(N.element,G,N.duration,N.delay,N.easing,pe):new v.ZN(N.duration,N.delay)}}class pi{constructor(N,G,pe){this.namespaceId=N,this.triggerName=G,this.element=pe,this._player=new v.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(N){this._containsRealPlayer||(this._player=N,Object.keys(this._queuedCallbacks).forEach(G=>{this._queuedCallbacks[G].forEach(pe=>h(N,G,void 0,pe))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const G=this._player;G.triggerCallback&&N.onStart(()=>G.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,G){i(this._queuedCallbacks,N,[]).push(G)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}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(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const G=this._player;G.triggerCallback&&G.triggerCallback(N)}}function tr(we){return we&&1===we.nodeType}function Rn(we,N){const G=we.style.display;return we.style.display=null!=N?N:"none",G}function qi(we,N,G,pe,Ae){const We=[];G.forEach(Rt=>We.push(Rn(Rt)));const rt=[];pe.forEach((Rt,Gt)=>{const rn={};Rt.forEach(pn=>{const Pn=rn[pn]=N.computeStyle(Gt,pn,Ae);(!Pn||0==Pn.length)&&(Gt[jn]=ti,rt.push(Gt))}),we.set(Gt,rn)});let dt=0;return G.forEach(Rt=>Rn(Rt,We[dt++])),rt}function oi(we,N){const G=new Map;if(we.forEach(dt=>G.set(dt,[])),0==N.length)return G;const Ae=new Set(N),We=new Map;function rt(dt){if(!dt)return 1;let Rt=We.get(dt);if(Rt)return Rt;const Gt=dt.parentNode;return Rt=G.has(Gt)?Gt:Ae.has(Gt)?1:rt(Gt),We.set(dt,Rt),Rt}return N.forEach(dt=>{const Rt=rt(dt);1!==Rt&&G.get(Rt).push(dt)}),G}function Fn(we,N){var G;null===(G=we.classList)||void 0===G||G.add(N)}function $i(we,N){var G;null===(G=we.classList)||void 0===G||G.remove(N)}function mi(we,N,G){d(G).onDone(()=>we.processLeaveNode(N))}function ur(we,N){for(let G=0;GAe.add(We)):N.set(we,pe),G.delete(we),!0}class Sn{constructor(N,G,pe){this.bodyNode=N,this._driver=G,this._normalizer=pe,this._triggerCache={},this.onRemovalComplete=(Ae,We)=>{},this._transitionEngine=new Xn(N,G,pe),this._timelineEngine=new Xe(N,G,pe),this._transitionEngine.onRemovalComplete=(Ae,We)=>this.onRemovalComplete(Ae,We)}registerTrigger(N,G,pe,Ae,We){const rt=N+"-"+Ae;let dt=this._triggerCache[rt];if(!dt){const Rt=[],Gt=Dt(this._driver,We,Rt);if(Rt.length)throw new Error(`The animation trigger "${Ae}" has failed to build due to the following errors:\n - ${Rt.join("\n - ")}`);dt=function(we,N,G){return new Re(we,N,G)}(Ae,Gt,this._normalizer),this._triggerCache[rt]=dt}this._transitionEngine.registerTrigger(G,Ae,dt)}register(N,G){this._transitionEngine.register(N,G)}destroy(N,G){this._transitionEngine.destroy(N,G)}onInsert(N,G,pe,Ae){this._transitionEngine.insertNode(N,G,pe,Ae)}onRemove(N,G,pe,Ae){this._transitionEngine.removeNode(N,G,Ae||!1,pe)}disableAnimations(N,G){this._transitionEngine.markElementAsDisabled(N,G)}process(N,G,pe,Ae){if("@"==pe.charAt(0)){const[We,rt]=c(pe);this._timelineEngine.command(We,G,rt,Ae)}else this._transitionEngine.trigger(N,G,pe,Ae)}listen(N,G,pe,Ae,We){if("@"==pe.charAt(0)){const[rt,dt]=c(pe);return this._timelineEngine.listen(rt,G,dt,We)}return this._transitionEngine.listen(N,G,pe,Ae,We)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Wn(we,N){let G=null,pe=null;return Array.isArray(N)&&N.length?(G=Li(N[0]),N.length>1&&(pe=Li(N[N.length-1]))):N&&(G=Li(N)),G||pe?new Ri(we,G,pe):null}let Ri=(()=>{class we{constructor(G,pe,Ae){this._element=G,this._startStyles=pe,this._endStyles=Ae,this._state=0;let We=we.initialStylesByElement.get(G);We||we.initialStylesByElement.set(G,We={}),this._initialStyles=We}start(){this._state<1&&(this._startStyles&&at(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(at(this._element,this._initialStyles),this._endStyles&&(at(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(we.initialStylesByElement.delete(this._element),this._startStyles&&(ft(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ft(this._element,this._endStyles),this._endStyles=null),at(this._element,this._initialStyles),this._state=3)}}return we.initialStylesByElement=new WeakMap,we})();function Li(we){let N=null;const G=Object.keys(we);for(let pe=0;pethis._handleCallback(Rt)}apply(){(function(we,N){const G=Hr(we,"").trim();let pe=0;G.length&&(function(we,N){let G=0;for(let pe=0;pe=this._delay&&pe>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Sr(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(we,N){const pe=Hr(we,"").split(","),Ae=Cr(pe,N);Ae>=0&&(pe.splice(Ae,1),mr(we,"",pe.join(",")))}(this._element,this._name))}}function $r(we,N,G){mr(we,"PlayState",G,ir(we,N))}function ir(we,N){const G=Hr(we,"");return G.indexOf(",")>0?Cr(G.split(","),N):Cr([G],N)}function Cr(we,N){for(let G=0;G=0)return G;return-1}function Sr(we,N,G){G?we.removeEventListener(Or,N):we.addEventListener(Or,N)}function mr(we,N,G,pe){const Ae=nr+N;if(null!=pe){const We=we.style[Ae];if(We.length){const rt=We.split(",");rt[pe]=G,G=rt.join(",")}}we.style[Ae]=G}function Hr(we,N){return we.style[nr+N]||""}class Rr{constructor(N,G,pe,Ae,We,rt,dt,Rt){this.element=N,this.keyframes=G,this.animationName=pe,this._duration=Ae,this._delay=We,this._finalStyles=dt,this._specialStyles=Rt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=rt||"linear",this.totalTime=Ae+We,this._buildStyler()}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(N=>N()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(N=>N()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(N){this._styler.setPosition(N)}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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new cr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(N){const G="start"==N?this._onStartFns:this._onDoneFns;G.forEach(pe=>pe()),G.length=0}beforeDestroy(){this.init();const N={};if(this.hasStarted()){const G=this._state>=3;Object.keys(this._finalStyles).forEach(pe=>{"offset"!=pe&&(N[pe]=G?this._finalStyles[pe]:U(this.element,pe))})}this.currentSnapshot=N}}class Dr extends v.ZN{constructor(N,G){super(),this.element=N,this._startingStyles={},this.__initialized=!1,this._styles=M(G)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(N=>{this._startingStyles[N]=this.element.style[N]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(N=>this.element.style.setProperty(N,this._styles[N])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(N=>{const G=this._startingStyles[N];G?this.element.style.setProperty(N,G):this.element.style.removeProperty(N)}),this._startingStyles=null,super.destroy())}}class Fr{constructor(){this._count=0}validateStyleProperty(N){return O(N)}matchesElement(N,G){return!1}containsElement(N,G){return A(N,G)}query(N,G,pe){return S(N,G,pe)}computeStyle(N,G,pe){return window.getComputedStyle(N)[G]}buildKeyframeElement(N,G,pe){pe=pe.map(dt=>M(dt));let Ae=`@keyframes ${G} {\n`,We="";pe.forEach(dt=>{We=" ";const Rt=parseFloat(dt.offset);Ae+=`${We}${100*Rt}% {\n`,We+=" ",Object.keys(dt).forEach(Gt=>{const rn=dt[Gt];switch(Gt){case"offset":return;case"easing":return void(rn&&(Ae+=`${We}animation-timing-function: ${rn};\n`));default:return void(Ae+=`${We}${Gt}: ${rn};\n`)}}),Ae+=`${We}}\n`}),Ae+="}\n";const rt=document.createElement("style");return rt.textContent=Ae,rt}animate(N,G,pe,Ae,We,rt=[],dt){const Rt=rt.filter(Kn=>Kn instanceof Rr),Gt={};fe(pe,Ae)&&Rt.forEach(Kn=>{let _i=Kn.currentSnapshot;Object.keys(_i).forEach(xi=>Gt[xi]=_i[xi])});const rn=function(we){let N={};return we&&(Array.isArray(we)?we:[we]).forEach(pe=>{Object.keys(pe).forEach(Ae=>{"offset"==Ae||"easing"==Ae||(N[Ae]=pe[Ae])})}),N}(G=H(N,G,Gt));if(0==pe)return new Dr(N,rn);const pn="gen_css_kf_"+this._count++,Pn=this.buildKeyframeElement(N,pn,G);(function(we){var N;const G=null===(N=we.getRootNode)||void 0===N?void 0:N.call(we);return"undefined"!=typeof ShadowRoot&&G instanceof ShadowRoot?G:document.head})(N).appendChild(Pn);const _n=Wn(N,G),Bn=new Rr(N,G,pn,pe,Ae,We,rn,_n);return Bn.onDestroy(()=>{var we;(we=Pn).parentNode.removeChild(we)}),Bn}}class si{constructor(N,G,pe,Ae){this.element=N,this.keyframes=G,this.options=pe,this._specialStyles=Ae,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=pe.duration,this._delay=pe.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const N=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,N,this.options),this._finalKeyframe=N.length?N[N.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(N,G,pe){return N.animate(G,pe)}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(N=>N()),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(N=>N()),this._onDestroyFns=[])}setPosition(N){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=N*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N={};if(this.hasStarted()){const G=this._finalKeyframe;Object.keys(G).forEach(pe=>{"offset"!=pe&&(N[pe]=this._finished?G[pe]:U(this.element,pe))})}this.currentSnapshot=N}triggerCallback(N){const G="start"==N?this._onStartFns:this._onDoneFns;G.forEach(pe=>pe()),G.length=0}}class zr{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(be().toString()),this._cssKeyframesDriver=new Fr}validateStyleProperty(N){return O(N)}matchesElement(N,G){return!1}containsElement(N,G){return A(N,G)}query(N,G,pe){return S(N,G,pe)}computeStyle(N,G,pe){return window.getComputedStyle(N)[G]}overrideWebAnimationsSupport(N){this._isNativeImpl=N}animate(N,G,pe,Ae,We,rt=[],dt){if(!dt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(N,G,pe,Ae,We,rt);const rn={duration:pe,delay:Ae,fill:0==Ae?"both":"forwards"};We&&(rn.easing=We);const pn={},Pn=rt.filter(_n=>_n instanceof si);fe(pe,Ae)&&Pn.forEach(_n=>{let Bn=_n.currentSnapshot;Object.keys(Bn).forEach(Kn=>pn[Kn]=Bn[Kn])});const Ln=Wn(N,G=H(N,G=G.map(_n=>gt(_n,!1)),pn));return new si(N,G,rn,Ln)}}function be(){return m()&&Element.prototype.animate||{}}var X=p(9808);let k=(()=>{class we extends v._j{constructor(G,pe){super(),this._nextAnimationId=0,this._renderer=G.createRenderer(pe.body,{id:"0",encapsulation:n.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(G){const pe=this._nextAnimationId.toString();this._nextAnimationId++;const Ae=Array.isArray(G)?(0,v.vP)(G):G;return nt(this._renderer,null,pe,"register",[Ae]),new V(pe,this._renderer)}}return we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(X.DOCUMENT))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class V extends v.LC{constructor(N,G){super(),this._id=N,this._renderer=G}create(N,G){return new ve(this._id,N,G||{},this._renderer)}}class ve{constructor(N,G,pe,Ae){this.id=N,this.element=G,this._renderer=Ae,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",pe)}_listen(N,G){return this._renderer.listen(this.element,`@@${this.id}:${N}`,G)}_command(N,...G){return nt(this._renderer,this.element,this.id,N,G)}onDone(N){this._listen("done",N)}onStart(N){this._listen("start",N)}onDestroy(N){this._listen("destroy",N)}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"),this._started=!1}setPosition(N){this._command("setPosition",N)}getPosition(){var N,G;return null!==(G=null===(N=this._renderer.engine.players[+this.id])||void 0===N?void 0:N.getPosition())&&void 0!==G?G:0}}function nt(we,N,G,pe,Ae){return we.setProperty(N,`@@${G}:${pe}`,Ae)}const nn="@.disabled";let In=(()=>{class we{constructor(G,pe,Ae){this.delegate=G,this.engine=pe,this._zone=Ae,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),pe.onRemovalComplete=(We,rt)=>{const dt=null==rt?void 0:rt.parentNode(We);dt&&rt.removeChild(dt,We)}}createRenderer(G,pe){const We=this.delegate.createRenderer(G,pe);if(!(G&&pe&&pe.data&&pe.data.animation)){let rn=this._rendererCache.get(We);return rn||(rn=new ni("",We,this.engine),this._rendererCache.set(We,rn)),rn}const rt=pe.id,dt=pe.id+"-"+this._currentId;this._currentId++,this.engine.register(dt,G);const Rt=rn=>{Array.isArray(rn)?rn.forEach(Rt):this.engine.registerTrigger(rt,dt,G,rn.name,rn)};return pe.data.animation.forEach(Rt),new di(this,dt,We,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(G,pe,Ae){G>=0&&Gpe(Ae)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(We=>{const[rt,dt]=We;rt(dt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([pe,Ae]))}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 we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(Sn),n.\u0275\u0275inject(n.NgZone))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class ni{constructor(N,G,pe){this.namespaceId=N,this.delegate=G,this.engine=pe,this.destroyNode=this.delegate.destroyNode?Ae=>G.destroyNode(Ae):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(N,G){return this.delegate.createElement(N,G)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,G){this.delegate.appendChild(N,G),this.engine.onInsert(this.namespaceId,G,N,!1)}insertBefore(N,G,pe,Ae=!0){this.delegate.insertBefore(N,G,pe),this.engine.onInsert(this.namespaceId,G,N,Ae)}removeChild(N,G,pe){this.engine.onRemove(this.namespaceId,G,this.delegate,pe)}selectRootElement(N,G){return this.delegate.selectRootElement(N,G)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,G,pe,Ae){this.delegate.setAttribute(N,G,pe,Ae)}removeAttribute(N,G,pe){this.delegate.removeAttribute(N,G,pe)}addClass(N,G){this.delegate.addClass(N,G)}removeClass(N,G){this.delegate.removeClass(N,G)}setStyle(N,G,pe,Ae){this.delegate.setStyle(N,G,pe,Ae)}removeStyle(N,G,pe){this.delegate.removeStyle(N,G,pe)}setProperty(N,G,pe){"@"==G.charAt(0)&&G==nn?this.disableAnimations(N,!!pe):this.delegate.setProperty(N,G,pe)}setValue(N,G){this.delegate.setValue(N,G)}listen(N,G,pe){return this.delegate.listen(N,G,pe)}disableAnimations(N,G){this.engine.disableAnimations(N,G)}}class di extends ni{constructor(N,G,pe,Ae){super(G,pe,Ae),this.factory=N,this.namespaceId=G}setProperty(N,G,pe){"@"==G.charAt(0)?"."==G.charAt(1)&&G==nn?this.disableAnimations(N,pe=void 0===pe||!!pe):this.engine.process(this.namespaceId,N,G.substr(1),pe):this.delegate.setProperty(N,G,pe)}listen(N,G,pe){if("@"==G.charAt(0)){const Ae=function(we){switch(we){case"body":return document.body;case"document":return document;case"window":return window;default:return we}}(N);let We=G.substr(1),rt="";return"@"!=We.charAt(0)&&([We,rt]=function(we){const N=we.indexOf(".");return[we.substring(0,N),we.substr(N+1)]}(We)),this.engine.listen(this.namespaceId,Ae,We,rt,dt=>{this.factory.scheduleListenerCallback(dt._data||-1,pe,dt)})}return this.delegate.listen(N,G,pe)}}let Ei=(()=>{class we extends Sn{constructor(G,pe,Ae){super(G.body,pe,Ae)}ngOnDestroy(){this.flush()}}return we.\u0275fac=function(G){return new(G||we)(n.\u0275\u0275inject(X.DOCUMENT),n.\u0275\u0275inject(b),n.\u0275\u0275inject(Yn))},we.\u0275prov=n.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const rr=new n.InjectionToken("AnimationModuleType"),xr=[{provide:v._j,useClass:k},{provide:Yn,useFactory:function(){return new Oi}},{provide:Sn,useClass:Ei},{provide:n.RendererFactory2,useFactory:function(we,N,G){return new In(we,N,G)},deps:[f.\u0275DomRendererFactory2,Sn,n.NgZone]}],cs=[{provide:b,useFactory:function(){return"function"==typeof be()?new zr:new Fr}},{provide:rr,useValue:"BrowserAnimations"},...xr],es=[{provide:b,useClass:I},{provide:rr,useValue:"NoopAnimations"},...xr];let ds=(()=>{class we{static withConfig(G){return{ngModule:we,providers:G.disableAnimations?es:cs}}}return we.\u0275fac=function(G){return new(G||we)},we.\u0275mod=n.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=n.\u0275\u0275defineInjector({providers:cs,imports:[f.BrowserModule]}),we})(),Bs=(()=>{class we{}return we.\u0275fac=function(G){return new(G||we)},we.\u0275mod=n.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=n.\u0275\u0275defineInjector({providers:es,imports:[f.BrowserModule]}),we})()},2313:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{\u0275getDOM:()=>n.\u0275getDOM,BrowserModule:()=>Tt,BrowserTransferStateModule:()=>mt,By:()=>Vt,DomSanitizer:()=>It,EVENT_MANAGER_PLUGINS:()=>g,EventManager:()=>y,HAMMER_GESTURE_CONFIG:()=>Se,HAMMER_LOADER:()=>ee,HammerGestureConfig:()=>re,HammerModule:()=>ze,Meta:()=>Et,Title:()=>H,TransferState:()=>Lt,VERSION:()=>An,disableDebugTools:()=>Dt,enableDebugTools:()=>tn,makeStateKey:()=>xt,platformBrowser:()=>_t,\u0275BrowserDomAdapter:()=>m,\u0275BrowserGetTestability:()=>c,\u0275DomEventsPlugin:()=>Oe,\u0275DomRendererFactory2:()=>te,\u0275DomSanitizerImpl:()=>cn,\u0275DomSharedStylesHost:()=>D,\u0275HammerGesturesPlugin:()=>Me,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>ot,\u0275KeyEventsPlugin:()=>tt,\u0275NAMESPACE_URIS:()=>w,\u0275SharedStylesHost:()=>T,\u0275TRANSITION_ID:()=>r,\u0275escapeHtml:()=>Kt,\u0275flattenStyles:()=>ne,\u0275initDomAdapter:()=>ft,\u0275shimContentAttribute:()=>L,\u0275shimHostAttribute:()=>F});var n=p(9808),f=p(5e3);class v extends n.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class m extends v{static makeCurrent(){(0,n.\u0275setRootDomAdapter)(new m)}onAndCancel(ct,He,pt){return ct.addEventListener(He,pt,!1),()=>{ct.removeEventListener(He,pt,!1)}}dispatchEvent(ct,He){ct.dispatchEvent(He)}remove(ct){ct.parentNode&&ct.parentNode.removeChild(ct)}createElement(ct,He){return(He=He||this.getDefaultDocument()).createElement(ct)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ct){return ct.nodeType===Node.ELEMENT_NODE}isShadowRoot(ct){return ct instanceof DocumentFragment}getGlobalEventTarget(ct,He){return"window"===He?window:"document"===He?ct:"body"===He?ct.body:null}getBaseHref(ct){const He=(o=o||document.querySelector("base"),o?o.getAttribute("href"):null);return null==He?null:function(lt){u=u||document.createElement("a"),u.setAttribute("href",lt);const ct=u.pathname;return"/"===ct.charAt(0)?ct:`/${ct}`}(He)}resetBaseElement(){o=null}getUserAgent(){return window.navigator.userAgent}getCookie(ct){return(0,n.\u0275parseCookieValue)(document.cookie,ct)}}let u,o=null;const r=new f.InjectionToken("TRANSITION_ID"),i=[{provide:f.APP_INITIALIZER,useFactory:function(lt,ct,He){return()=>{He.get(f.ApplicationInitStatus).donePromise.then(()=>{const pt=(0,n.\u0275getDOM)(),Ot=ct.querySelectorAll(`style[ng-transition="${lt}"]`);for(let un=0;un{const un=ct.findTestabilityInTree(pt,Ot);if(null==un)throw new Error("Could not find testability for element.");return un},f.\u0275global.getAllAngularTestabilities=()=>ct.getAllTestabilities(),f.\u0275global.getAllAngularRootElements=()=>ct.getAllRootElements(),f.\u0275global.frameworkStabilizers||(f.\u0275global.frameworkStabilizers=[]),f.\u0275global.frameworkStabilizers.push(pt=>{const Ot=f.\u0275global.getAllAngularTestabilities();let un=Ot.length,on=!1;const On=function(Yn){on=on||Yn,un--,0==un&&pt(on)};Ot.forEach(function(Yn){Yn.whenStable(On)})})}findTestabilityInTree(ct,He,pt){if(null==He)return null;const Ot=ct.getTestability(He);return null!=Ot?Ot:pt?(0,n.\u0275getDOM)().isShadowRoot(He)?this.findTestabilityInTree(ct,He.host,!0):this.findTestabilityInTree(ct,He.parentElement,!0):null}}let l=(()=>{class lt{build(){return new XMLHttpRequest}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();const g=new f.InjectionToken("EventManagerPlugins");let y=(()=>{class lt{constructor(He,pt){this._zone=pt,this._eventNameToPlugin=new Map,He.forEach(Ot=>Ot.manager=this),this._plugins=He.slice().reverse()}addEventListener(He,pt,Ot){return this._findPluginFor(pt).addEventListener(He,pt,Ot)}addGlobalEventListener(He,pt,Ot){return this._findPluginFor(pt).addGlobalEventListener(He,pt,Ot)}getZone(){return this._zone}_findPluginFor(He){const pt=this._eventNameToPlugin.get(He);if(pt)return pt;const Ot=this._plugins;for(let un=0;un{class lt{constructor(){this._stylesSet=new Set}addStyles(He){const pt=new Set;He.forEach(Ot=>{this._stylesSet.has(Ot)||(this._stylesSet.add(Ot),pt.add(Ot))}),this.onStylesAdded(pt)}onStylesAdded(He){}getAllStyles(){return Array.from(this._stylesSet)}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),D=(()=>{class lt extends T{constructor(He){super(),this._doc=He,this._hostNodes=new Map,this._hostNodes.set(He.head,[])}_addStylesToHost(He,pt,Ot){He.forEach(un=>{const on=this._doc.createElement("style");on.textContent=un,Ot.push(pt.appendChild(on))})}addHost(He){const pt=[];this._addStylesToHost(this._stylesSet,He,pt),this._hostNodes.set(He,pt)}removeHost(He){const pt=this._hostNodes.get(He);pt&&pt.forEach(O),this._hostNodes.delete(He)}onStylesAdded(He){this._hostNodes.forEach((pt,Ot)=>{this._addStylesToHost(He,Ot,pt)})}ngOnDestroy(){this._hostNodes.forEach(He=>He.forEach(O))}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function O(lt){(0,n.\u0275getDOM)().remove(lt)}const w={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/"},A=/%COMP%/g,M="%COMP%",I=`_nghost-${M}`,b=`_ngcontent-${M}`;function L(lt){return b.replace(A,lt)}function F(lt){return I.replace(A,lt)}function ne(lt,ct,He){for(let pt=0;pt{if("__ngUnwrap__"===ct)return lt;!1===lt(ct)&&(ct.preventDefault(),ct.returnValue=!1)}}let te=(()=>{class lt{constructor(He,pt,Ot){this.eventManager=He,this.sharedStylesHost=pt,this.appId=Ot,this.rendererByCompId=new Map,this.defaultRenderer=new $(He)}createRenderer(He,pt){if(!He||!pt)return this.defaultRenderer;switch(pt.encapsulation){case f.ViewEncapsulation.Emulated:{let Ot=this.rendererByCompId.get(pt.id);return Ot||(Ot=new ae(this.eventManager,this.sharedStylesHost,pt,this.appId),this.rendererByCompId.set(pt.id,Ot)),Ot.applyToHost(He),Ot}case 1:case f.ViewEncapsulation.ShadowDom:return new le(this.eventManager,this.sharedStylesHost,He,pt);default:if(!this.rendererByCompId.has(pt.id)){const Ot=ne(pt.id,pt.styles,[]);this.sharedStylesHost.addStyles(Ot),this.rendererByCompId.set(pt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(y),f.\u0275\u0275inject(D),f.\u0275\u0275inject(f.APP_ID))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();class ${constructor(ct){this.eventManager=ct,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ct,He){return He?document.createElementNS(w[He]||He,ct):document.createElement(ct)}createComment(ct){return document.createComment(ct)}createText(ct){return document.createTextNode(ct)}appendChild(ct,He){ct.appendChild(He)}insertBefore(ct,He,pt){ct&&ct.insertBefore(He,pt)}removeChild(ct,He){ct&&ct.removeChild(He)}selectRootElement(ct,He){let pt="string"==typeof ct?document.querySelector(ct):ct;if(!pt)throw new Error(`The selector "${ct}" did not match any elements`);return He||(pt.textContent=""),pt}parentNode(ct){return ct.parentNode}nextSibling(ct){return ct.nextSibling}setAttribute(ct,He,pt,Ot){if(Ot){He=Ot+":"+He;const un=w[Ot];un?ct.setAttributeNS(un,He,pt):ct.setAttribute(He,pt)}else ct.setAttribute(He,pt)}removeAttribute(ct,He,pt){if(pt){const Ot=w[pt];Ot?ct.removeAttributeNS(Ot,He):ct.removeAttribute(`${pt}:${He}`)}else ct.removeAttribute(He)}addClass(ct,He){ct.classList.add(He)}removeClass(ct,He){ct.classList.remove(He)}setStyle(ct,He,pt,Ot){Ot&(f.RendererStyleFlags2.DashCase|f.RendererStyleFlags2.Important)?ct.style.setProperty(He,pt,Ot&f.RendererStyleFlags2.Important?"important":""):ct.style[He]=pt}removeStyle(ct,He,pt){pt&f.RendererStyleFlags2.DashCase?ct.style.removeProperty(He):ct.style[He]=""}setProperty(ct,He,pt){ct[He]=pt}setValue(ct,He){ct.nodeValue=He}listen(ct,He,pt){return"string"==typeof ct?this.eventManager.addGlobalEventListener(ct,He,Y(pt)):this.eventManager.addEventListener(ct,He,Y(pt))}}class ae extends ${constructor(ct,He,pt,Ot){super(ct),this.component=pt;const un=ne(Ot+"-"+pt.id,pt.styles,[]);He.addStyles(un),this.contentAttr=L(Ot+"-"+pt.id),this.hostAttr=F(Ot+"-"+pt.id)}applyToHost(ct){super.setAttribute(ct,this.hostAttr,"")}createElement(ct,He){const pt=super.createElement(ct,He);return super.setAttribute(pt,this.contentAttr,""),pt}}class le extends ${constructor(ct,He,pt,Ot){super(ct),this.sharedStylesHost=He,this.hostEl=pt,this.shadowRoot=pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const un=ne(Ot.id,Ot.styles,[]);for(let on=0;on{class lt extends E{constructor(He){super(He)}supports(He){return!0}addEventListener(He,pt,Ot){return He.addEventListener(pt,Ot,!1),()=>this.removeEventListener(He,pt,Ot)}removeEventListener(He,pt,Ot){return He.removeEventListener(pt,Ot)}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();const Le=["alt","control","meta","shift"],Je={"\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"},gt={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"},Ue={alt:lt=>lt.altKey,control:lt=>lt.ctrlKey,meta:lt=>lt.metaKey,shift:lt=>lt.shiftKey};let tt=(()=>{class lt extends E{constructor(He){super(He)}supports(He){return null!=lt.parseEventName(He)}addEventListener(He,pt,Ot){const un=lt.parseEventName(pt),on=lt.eventCallback(un.fullKey,Ot,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.\u0275getDOM)().onAndCancel(He,un.domEventName,on))}static parseEventName(He){const pt=He.toLowerCase().split("."),Ot=pt.shift();if(0===pt.length||"keydown"!==Ot&&"keyup"!==Ot)return null;const un=lt._normalizeKey(pt.pop());let on="";if(Le.forEach(Yn=>{const ji=pt.indexOf(Yn);ji>-1&&(pt.splice(ji,1),on+=Yn+".")}),on+=un,0!=pt.length||0===un.length)return null;const On={};return On.domEventName=Ot,On.fullKey=on,On}static getEventFullKey(He){let pt="",Ot=function(lt){let ct=lt.key;if(null==ct){if(ct=lt.keyIdentifier,null==ct)return"Unidentified";ct.startsWith("U+")&&(ct=String.fromCharCode(parseInt(ct.substring(2),16)),3===lt.location&>.hasOwnProperty(ct)&&(ct=gt[ct]))}return Je[ct]||ct}(He);return Ot=Ot.toLowerCase()," "===Ot?Ot="space":"."===Ot&&(Ot="dot"),Le.forEach(un=>{un!=Ot&&Ue[un](He)&&(pt+=un+".")}),pt+=Ot,pt}static eventCallback(He,pt,Ot){return un=>{lt.getEventFullKey(un)===He&&Ot.runGuarded(()=>pt(un))}}static _normalizeKey(He){return"esc"===He?"escape":He}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function ft(){m.makeCurrent(),c.init()}const ot=[{provide:f.PLATFORM_ID,useValue:n.\u0275PLATFORM_BROWSER_ID},{provide:f.PLATFORM_INITIALIZER,useValue:ft,multi:!0},{provide:n.DOCUMENT,useFactory:function(){return(0,f.\u0275setDocument)(document),document},deps:[]}],_t=(0,f.createPlatformFactory)(f.platformCore,"browser",ot),At=[{provide:f.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:f.ErrorHandler,useFactory:function(){return new f.ErrorHandler},deps:[]},{provide:g,useClass:Oe,multi:!0,deps:[n.DOCUMENT,f.NgZone,f.PLATFORM_ID]},{provide:g,useClass:tt,multi:!0,deps:[n.DOCUMENT]},{provide:te,useClass:te,deps:[y,D,f.APP_ID]},{provide:f.RendererFactory2,useExisting:te},{provide:T,useExisting:D},{provide:D,useClass:D,deps:[n.DOCUMENT]},{provide:f.Testability,useClass:f.Testability,deps:[f.NgZone]},{provide:y,useClass:y,deps:[g,f.NgZone]},{provide:n.XhrFactory,useClass:l,deps:[]}];let Tt=(()=>{class lt{constructor(He){if(He)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(He){return{ngModule:lt,providers:[{provide:f.APP_ID,useValue:He.appId},{provide:r,useExisting:f.APP_ID},i]}}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(lt,12))},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:At,imports:[n.CommonModule,f.ApplicationModule]}),lt})(),Et=(()=>{class lt{constructor(He){this._doc=He,this._dom=(0,n.\u0275getDOM)()}addTag(He,pt=!1){return He?this._getOrCreateElement(He,pt):null}addTags(He,pt=!1){return He?He.reduce((Ot,un)=>(un&&Ot.push(this._getOrCreateElement(un,pt)),Ot),[]):[]}getTag(He){return He&&this._doc.querySelector(`meta[${He}]`)||null}getTags(He){if(!He)return[];const pt=this._doc.querySelectorAll(`meta[${He}]`);return pt?[].slice.call(pt):[]}updateTag(He,pt){if(!He)return null;pt=pt||this._parseSelector(He);const Ot=this.getTag(pt);return Ot?this._setMetaElementAttributes(He,Ot):this._getOrCreateElement(He,!0)}removeTag(He){this.removeTagElement(this.getTag(He))}removeTagElement(He){He&&this._dom.remove(He)}_getOrCreateElement(He,pt=!1){if(!pt){const on=this._parseSelector(He),On=this.getTags(on).filter(Yn=>this._containsAttributes(He,Yn))[0];if(void 0!==On)return On}const Ot=this._dom.createElement("meta");return this._setMetaElementAttributes(He,Ot),this._doc.getElementsByTagName("head")[0].appendChild(Ot),Ot}_setMetaElementAttributes(He,pt){return Object.keys(He).forEach(Ot=>pt.setAttribute(this._getMetaKeyMap(Ot),He[Ot])),pt}_parseSelector(He){const pt=He.name?"name":"property";return`${pt}="${He[pt]}"`}_containsAttributes(He,pt){return Object.keys(He).every(Ot=>pt.getAttribute(this._getMetaKeyMap(Ot))===He[Ot])}_getMetaKeyMap(He){return Ee[He]||He}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let pt=null;return pt=He?new He:new Et((0,f.\u0275\u0275inject)(n.DOCUMENT)),pt},providedIn:"root"}),lt})();const Ee={httpEquiv:"http-equiv"};let H=(()=>{class lt{constructor(He){this._doc=He}getTitle(){return this._doc.title}setTitle(He){this._doc.title=He||""}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let pt=null;return pt=He?new He:new H((0,f.\u0275\u0275inject)(n.DOCUMENT)),pt},providedIn:"root"}),lt})();function Be(lt,ct){"undefined"!=typeof COMPILED&&COMPILED||((f.\u0275global.ng=f.\u0275global.ng||{})[lt]=ct)}const $e="undefined"!=typeof window&&window||{};class st{constructor(ct,He){this.msPerTick=ct,this.numTicks=He}}class ut{constructor(ct){this.appRef=ct.injector.get(f.ApplicationRef)}timeChangeDetection(ct){const He=ct&&ct.record,pt="Change Detection",Ot=null!=$e.console.profile;He&&Ot&&$e.console.profile(pt);const un=St();let on=0;for(;on<5||St()-un<500;)this.appRef.tick(),on++;const On=St();He&&Ot&&$e.console.profileEnd(pt);const Yn=(On-un)/on;return $e.console.log(`ran ${on} change detection cycles`),$e.console.log(`${Yn.toFixed(2)} ms per check`),new st(Yn,on)}}function St(){return $e.performance&&$e.performance.now?$e.performance.now():(new Date).getTime()}const Xt="profiler";function tn(lt){return Be(Xt,new ut(lt)),lt}function Dt(){Be(Xt,null)}function Kt(lt){const ct={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return lt.replace(/[&"'<>]/g,He=>ct[He])}function xt(lt){return lt}let Lt=(()=>{class lt{constructor(){this.store={},this.onSerializeCallbacks={}}static init(He){const pt=new lt;return pt.store=He,pt}get(He,pt){return void 0!==this.store[He]?this.store[He]:pt}set(He,pt){this.store[He]=pt}remove(He){delete this.store[He]}hasKey(He){return this.store.hasOwnProperty(He)}onSerialize(He,pt){this.onSerializeCallbacks[He]=pt}toJson(){for(const He in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(He))try{this.store[He]=this.onSerializeCallbacks[He]()}catch(pt){console.warn("Exception in onSerialize callback: ",pt)}return JSON.stringify(this.store)}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})();function Qe(lt,ct){const He=lt.getElementById(ct+"-state");let pt={};if(He&&He.textContent)try{pt=JSON.parse(function(lt){const ct={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return lt.replace(/&[^;]+;/g,He=>ct[He])}(He.textContent))}catch(Ot){console.warn("Exception while restoring TransferState for app "+ct,Ot)}return Lt.init(pt)}let mt=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:[{provide:Lt,useFactory:Qe,deps:[n.DOCUMENT,f.APP_ID]}]}),lt})();class Vt{static all(){return()=>!0}static css(ct){return He=>null!=He.nativeElement&&function(lt,ct){return!!(0,n.\u0275getDOM)().isElementNode(lt)&&(lt.matches&<.matches(ct)||lt.msMatchesSelector&<.msMatchesSelector(ct)||lt.webkitMatchesSelector&<.webkitMatchesSelector(ct))}(He.nativeElement,ct)}static directive(ct){return He=>-1!==He.providerTokens.indexOf(ct)}}const Ne={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Se=new f.InjectionToken("HammerGestureConfig"),ee=new f.InjectionToken("HammerLoader");let re=(()=>{class lt{constructor(){this.events=[],this.overrides={}}buildHammer(He){const pt=new Hammer(He,this.options);pt.get("pinch").set({enable:!0}),pt.get("rotate").set({enable:!0});for(const Ot in this.overrides)pt.get(Ot).set(this.overrides[Ot]);return pt}}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),Me=(()=>{class lt extends E{constructor(He,pt,Ot,un){super(He),this._config=pt,this.console=Ot,this.loader=un,this._loaderPromise=null}supports(He){return!(!Ne.hasOwnProperty(He.toLowerCase())&&!this.isCustomEvent(He)||!window.Hammer&&!this.loader)}addEventListener(He,pt,Ot){const un=this.manager.getZone();if(pt=pt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let on=!1,On=()=>{on=!0};return this._loaderPromise.then(()=>{window.Hammer?on||(On=this.addEventListener(He,pt,Ot)):On=()=>{}}).catch(()=>{On=()=>{}}),()=>{On()}}return un.runOutsideAngular(()=>{const on=this._config.buildHammer(He),On=function(Yn){un.runGuarded(function(){Ot(Yn)})};return on.on(pt,On),()=>{on.off(pt,On),"function"==typeof on.destroy&&on.destroy()}})}isCustomEvent(He){return this._config.events.indexOf(He)>-1}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT),f.\u0275\u0275inject(Se),f.\u0275\u0275inject(f.\u0275Console),f.\u0275\u0275inject(ee,8))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:lt.\u0275fac}),lt})(),ze=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275mod=f.\u0275\u0275defineNgModule({type:lt}),lt.\u0275inj=f.\u0275\u0275defineInjector({providers:[{provide:g,useClass:Me,multi:!0,deps:[n.DOCUMENT,Se,f.\u0275Console,[new f.Optional,ee]]},{provide:Se,useClass:re,deps:[]}]}),lt})(),It=(()=>{class lt{}return lt.\u0275fac=function(He){return new(He||lt)},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let pt=null;return pt=He?new(He||lt):f.\u0275\u0275inject(cn),pt},providedIn:"root"}),lt})(),cn=(()=>{class lt extends It{constructor(He){super(),this._doc=He}sanitize(He,pt){if(null==pt)return null;switch(He){case f.SecurityContext.NONE:return pt;case f.SecurityContext.HTML:return(0,f.\u0275allowSanitizationBypassAndThrow)(pt,"HTML")?(0,f.\u0275unwrapSafeValue)(pt):(0,f.\u0275_sanitizeHtml)(this._doc,String(pt)).toString();case f.SecurityContext.STYLE:return(0,f.\u0275allowSanitizationBypassAndThrow)(pt,"Style")?(0,f.\u0275unwrapSafeValue)(pt):pt;case f.SecurityContext.SCRIPT:if((0,f.\u0275allowSanitizationBypassAndThrow)(pt,"Script"))return(0,f.\u0275unwrapSafeValue)(pt);throw new Error("unsafe value used in a script context");case f.SecurityContext.URL:return(0,f.\u0275getSanitizationBypassType)(pt),(0,f.\u0275allowSanitizationBypassAndThrow)(pt,"URL")?(0,f.\u0275unwrapSafeValue)(pt):(0,f.\u0275_sanitizeUrl)(String(pt));case f.SecurityContext.RESOURCE_URL:if((0,f.\u0275allowSanitizationBypassAndThrow)(pt,"ResourceURL"))return(0,f.\u0275unwrapSafeValue)(pt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${He} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(He){return(0,f.\u0275bypassSanitizationTrustHtml)(He)}bypassSecurityTrustStyle(He){return(0,f.\u0275bypassSanitizationTrustStyle)(He)}bypassSecurityTrustScript(He){return(0,f.\u0275bypassSanitizationTrustScript)(He)}bypassSecurityTrustUrl(He){return(0,f.\u0275bypassSanitizationTrustUrl)(He)}bypassSecurityTrustResourceUrl(He){return(0,f.\u0275bypassSanitizationTrustResourceUrl)(He)}}return lt.\u0275fac=function(He){return new(He||lt)(f.\u0275\u0275inject(n.DOCUMENT))},lt.\u0275prov=f.\u0275\u0275defineInjectable({token:lt,factory:function(He){let pt=null;return pt=He?new He:function(lt){return new cn(lt.get(n.DOCUMENT))}(f.\u0275\u0275inject(f.Injector)),pt},providedIn:"root"}),lt})();const An=new f.Version("13.1.1")},4202:(ye,j,p)=>{"use strict";p.r(j),p.d(j,{ActivatedRoute:()=>B,ActivatedRouteSnapshot:()=>Xe,ActivationEnd:()=>ft,ActivationStart:()=>at,BaseRouteReuseStrategy:()=>Xi,ChildActivationEnd:()=>tt,ChildActivationStart:()=>Ue,ChildrenOutletContexts:()=>hr,DefaultUrlSerializer:()=>ee,GuardsCheckEnd:()=>Oe,GuardsCheckStart:()=>le,NavigationCancel:()=>J,NavigationEnd:()=>$,NavigationError:()=>ie,NavigationStart:()=>te,NoPreloading:()=>ar,OutletContext:()=>$r,PRIMARY_OUTLET:()=>yt,PreloadAllModules:()=>or,PreloadingStrategy:()=>ws,ROUTER_CONFIGURATION:()=>Br,ROUTER_INITIALIZER:()=>ln,ROUTES:()=>zi,ResolveEnd:()=>Ye,ResolveStart:()=>Le,RouteConfigLoadEnd:()=>gt,RouteConfigLoadStart:()=>Je,RouteReuseStrategy:()=>fr,Router:()=>En,RouterEvent:()=>Q,RouterLink:()=>Hi,RouterLinkActive:()=>Si,RouterLinkWithHref:()=>Zn,RouterModule:()=>rs,RouterOutlet:()=>qr,RouterPreloader:()=>Ir,RouterState:()=>Ze,RouterStateSnapshot:()=>Wt,RoutesRecognized:()=>ae,Scroll:()=>vt,UrlHandlingStrategy:()=>ys,UrlSegment:()=>mt,UrlSegmentGroup:()=>Qe,UrlSerializer:()=>Se,UrlTree:()=>Lt,VERSION:()=>Ki,convertToParamMap:()=>_t,provideRoutes:()=>Ss,\u0275EmptyOutletComponent:()=>Cr,\u0275ROUTER_PROVIDERS:()=>qs,\u0275assignExtraOptionsToRouter:()=>z,\u0275flatten:()=>x});var n=p(5e3),f=p(5254),v=p(1086),m=p(591),o=p(6053),d=p(6498),u=p(4450),h=p(1961),r=p(8514),s=p(8896),i=p(1762),c=p(8929),l=p(4850),g=p(7545),y=p(2986),E=p(1059),T=p(2014),D=p(2198),O=p(7221),w=p(1406),A=p(8127),S=p(7224),M=p(1709),I=p(2868),b=p(2821),L=p(4327),F=p(537),ne=p(9146),Y=p(9808);class Q{constructor(oe,q){this.id=oe,this.url=q}}class te extends Q{constructor(oe,q,Ce="imperative",Te=null){super(oe,q),this.navigationTrigger=Ce,this.restoredState=Te}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $ extends Q{constructor(oe,q,Ce){super(oe,q),this.urlAfterRedirects=Ce}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class J extends Q{constructor(oe,q,Ce){super(oe,q),this.reason=Ce}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ie extends Q{constructor(oe,q,Ce){super(oe,q),this.error=Ce}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ae extends Q{constructor(oe,q,Ce,Te){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class le extends Q{constructor(oe,q,Ce,Te){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oe extends Q{constructor(oe,q,Ce,Te,Ve){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te,this.shouldActivate=Ve}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Le extends Q{constructor(oe,q,Ce,Te){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ye extends Q{constructor(oe,q,Ce,Te){super(oe,q),this.urlAfterRedirects=Ce,this.state=Te}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Je{constructor(oe){this.route=oe}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gt{constructor(oe){this.route=oe}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ue{constructor(oe){this.snapshot=oe}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tt{constructor(oe){this.snapshot=oe}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(oe){this.snapshot=oe}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ft{constructor(oe){this.snapshot=oe}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(oe,q,Ce){this.routerEvent=oe,this.position=q,this.anchor=Ce}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const yt="primary";class ot{constructor(oe){this.params=oe||{}}has(oe){return Object.prototype.hasOwnProperty.call(this.params,oe)}get(oe){if(this.has(oe)){const q=this.params[oe];return Array.isArray(q)?q[0]:q}return null}getAll(oe){if(this.has(oe)){const q=this.params[oe];return Array.isArray(q)?q:[q]}return[]}get keys(){return Object.keys(this.params)}}function _t(me){return new ot(me)}const At="ngNavigationCancelingError";function Tt(me){const oe=Error("NavigationCancelingError: "+me);return oe[At]=!0,oe}function Et(me,oe,q){const Ce=q.path.split("/");if(Ce.length>me.length||"full"===q.pathMatch&&(oe.hasChildren()||Ce.lengthCe[Ve]===Te)}return me===oe}function x(me){return Array.prototype.concat.apply([],me)}function U(me){return me.length>0?me[me.length-1]:null}function _e(me,oe){for(const q in me)me.hasOwnProperty(q)&&oe(me[q],q)}function Be(me){return(0,n.\u0275isObservable)(me)?me:(0,n.\u0275isPromise)(me)?(0,f.D)(Promise.resolve(me)):(0,v.of)(me)}const st={exact:function tn(me,oe,q){if(!qt(me.segments,oe.segments)||!xt(me.segments,oe.segments,q)||me.numberOfChildren!==oe.numberOfChildren)return!1;for(const Ce in oe.children)if(!me.children[Ce]||!tn(me.children[Ce],oe.children[Ce],q))return!1;return!0},subset:Kt},ut={exact:function(me,oe){return fe(me,oe)},subset:function(me,oe){return Object.keys(oe).length<=Object.keys(me).length&&Object.keys(oe).every(q=>H(me[q],oe[q]))},ignored:()=>!0};function St(me,oe,q){return st[q.paths](me.root,oe.root,q.matrixParams)&&ut[q.queryParams](me.queryParams,oe.queryParams)&&!("exact"===q.fragment&&me.fragment!==oe.fragment)}function Kt(me,oe,q){return et(me,oe,oe.segments,q)}function et(me,oe,q,Ce){if(me.segments.length>q.length){const Te=me.segments.slice(0,q.length);return!(!qt(Te,q)||oe.hasChildren()||!xt(Te,q,Ce))}if(me.segments.length===q.length){if(!qt(me.segments,q)||!xt(me.segments,q,Ce))return!1;for(const Te in oe.children)if(!me.children[Te]||!Kt(me.children[Te],oe.children[Te],Ce))return!1;return!0}{const Te=q.slice(0,me.segments.length),Ve=q.slice(me.segments.length);return!!(qt(me.segments,Te)&&xt(me.segments,Te,Ce)&&me.children[yt])&&et(me.children[yt],oe,Ve,Ce)}}function xt(me,oe,q){return oe.every((Ce,Te)=>ut[q](me[Te].parameters,Ce.parameters))}class Lt{constructor(oe,q,Ce){this.root=oe,this.queryParams=q,this.fragment=Ce}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return re.serialize(this)}}class Qe{constructor(oe,q){this.segments=oe,this.children=q,this.parent=null,_e(q,(Ce,Te)=>Ce.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Me(this)}}class mt{constructor(oe,q){this.path=oe,this.parameters=q}get parameterMap(){return this._parameterMap||(this._parameterMap=_t(this.parameters)),this._parameterMap}toString(){return He(this)}}function qt(me,oe){return me.length===oe.length&&me.every((q,Ce)=>q.path===oe[Ce].path)}class Se{}class ee{parse(oe){const q=new Ni(oe);return new Lt(q.parseRootSegment(),q.parseQueryParams(),q.parseFragment())}serialize(oe){const q=`/${ze(oe.root,!0)}`,Ce=function(me){const oe=Object.keys(me).map(q=>{const Ce=me[q];return Array.isArray(Ce)?Ce.map(Te=>`${Qt(q)}=${Qt(Te)}`).join("&"):`${Qt(q)}=${Qt(Ce)}`}).filter(q=>!!q);return oe.length?`?${oe.join("&")}`:""}(oe.queryParams);var me;return`${q}${Ce}${"string"==typeof oe.fragment?`#${me=oe.fragment,encodeURI(me)}`:""}`}}const re=new ee;function Me(me){return me.segments.map(oe=>He(oe)).join("/")}function ze(me,oe){if(!me.hasChildren())return Me(me);if(oe){const q=me.children[yt]?ze(me.children[yt],!1):"",Ce=[];return _e(me.children,(Te,Ve)=>{Ve!==yt&&Ce.push(`${Ve}:${ze(Te,!1)}`)}),Ce.length>0?`${q}(${Ce.join("//")})`:q}{const q=function(me,oe){let q=[];return _e(me.children,(Ce,Te)=>{Te===yt&&(q=q.concat(oe(Ce,Te)))}),_e(me.children,(Ce,Te)=>{Te!==yt&&(q=q.concat(oe(Ce,Te)))}),q}(me,(Ce,Te)=>Te===yt?[ze(me.children[yt],!1)]:[`${Te}:${ze(Ce,!1)}`]);return 1===Object.keys(me.children).length&&null!=me.children[yt]?`${Me(me)}/${q[0]}`:`${Me(me)}/(${q.join("//")})`}}function It(me){return encodeURIComponent(me).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qt(me){return It(me).replace(/%3B/gi,";")}function An(me){return It(me).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lt(me){return decodeURIComponent(me)}function ct(me){return lt(me.replace(/\+/g,"%20"))}function He(me){return`${An(me.path)}${function(me){return Object.keys(me).map(oe=>`;${An(oe)}=${An(me[oe])}`).join("")}(me.parameters)}`}const un=/^[^\/()?;=#]+/;function on(me){const oe=me.match(un);return oe?oe[0]:""}const On=/^[^=?&#]+/,ji=/^[^&#]+/;class Ni{constructor(oe){this.url=oe,this.remaining=oe}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qe([],{}):new Qe([],this.parseChildren())}parseQueryParams(){const oe={};if(this.consumeOptional("?"))do{this.parseQueryParam(oe)}while(this.consumeOptional("&"));return oe}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const oe=[];for(this.peekStartsWith("(")||oe.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),oe.push(this.parseSegment());let q={};this.peekStartsWith("/(")&&(this.capture("/"),q=this.parseParens(!0));let Ce={};return this.peekStartsWith("(")&&(Ce=this.parseParens(!1)),(oe.length>0||Object.keys(q).length>0)&&(Ce[yt]=new Qe(oe,q)),Ce}parseSegment(){const oe=on(this.remaining);if(""===oe&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(oe),new mt(lt(oe),this.parseMatrixParams())}parseMatrixParams(){const oe={};for(;this.consumeOptional(";");)this.parseParam(oe);return oe}parseParam(oe){const q=on(this.remaining);if(!q)return;this.capture(q);let Ce="";if(this.consumeOptional("=")){const Te=on(this.remaining);Te&&(Ce=Te,this.capture(Ce))}oe[lt(q)]=lt(Ce)}parseQueryParam(oe){const q=function(me){const oe=me.match(On);return oe?oe[0]:""}(this.remaining);if(!q)return;this.capture(q);let Ce="";if(this.consumeOptional("=")){const it=function(me){const oe=me.match(ji);return oe?oe[0]:""}(this.remaining);it&&(Ce=it,this.capture(Ce))}const Te=ct(q),Ve=ct(Ce);if(oe.hasOwnProperty(Te)){let it=oe[Te];Array.isArray(it)||(it=[it],oe[Te]=it),it.push(Ve)}else oe[Te]=Ve}parseParens(oe){const q={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ce=on(this.remaining),Te=this.remaining[Ce.length];if("/"!==Te&&")"!==Te&&";"!==Te)throw new Error(`Cannot parse url '${this.url}'`);let Ve;Ce.indexOf(":")>-1?(Ve=Ce.substr(0,Ce.indexOf(":")),this.capture(Ve),this.capture(":")):oe&&(Ve=yt);const it=this.parseChildren();q[Ve]=1===Object.keys(it).length?it[yt]:new Qe([],it),this.consumeOptional("//")}return q}peekStartsWith(oe){return this.remaining.startsWith(oe)}consumeOptional(oe){return!!this.peekStartsWith(oe)&&(this.remaining=this.remaining.substring(oe.length),!0)}capture(oe){if(!this.consumeOptional(oe))throw new Error(`Expected "${oe}".`)}}class Ti{constructor(oe){this._root=oe}get root(){return this._root.value}parent(oe){const q=this.pathFromRoot(oe);return q.length>1?q[q.length-2]:null}children(oe){const q=qn(oe,this._root);return q?q.children.map(Ce=>Ce.value):[]}firstChild(oe){const q=qn(oe,this._root);return q&&q.children.length>0?q.children[0].value:null}siblings(oe){const q=Vi(oe,this._root);return q.length<2?[]:q[q.length-2].children.map(Te=>Te.value).filter(Te=>Te!==oe)}pathFromRoot(oe){return Vi(oe,this._root).map(q=>q.value)}}function qn(me,oe){if(me===oe.value)return oe;for(const q of oe.children){const Ce=qn(me,q);if(Ce)return Ce}return null}function Vi(me,oe){if(me===oe.value)return[oe];for(const q of oe.children){const Ce=Vi(me,q);if(Ce.length)return Ce.unshift(oe),Ce}return[]}class ci{constructor(oe,q){this.value=oe,this.children=q}toString(){return`TreeNode(${this.value})`}}function xe(me){const oe={};return me&&me.children.forEach(q=>oe[q.value.outlet]=q),oe}class Ze extends Ti{constructor(oe,q){super(oe),this.snapshot=q,Ft(this,oe)}toString(){return this.snapshot.toString()}}function ue(me,oe){const q=function(me,oe){const it=new Xe([],{},{},"",{},yt,oe,null,me.root,-1,{});return new Wt("",new ci(it,[]))}(me,oe),Ce=new m.X([new mt("",{})]),Te=new m.X({}),Ve=new m.X({}),it=new m.X({}),bt=new m.X(""),zt=new B(Ce,Te,it,bt,Ve,yt,oe,q.root);return zt.snapshot=q.root,new Ze(new ci(zt,[]),q)}class B{constructor(oe,q,Ce,Te,Ve,it,bt,zt){this.url=oe,this.params=q,this.queryParams=Ce,this.fragment=Te,this.data=Ve,this.outlet=it,this.component=bt,this._futureSnapshot=zt}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((0,l.U)(oe=>_t(oe)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,l.U)(oe=>_t(oe)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function de(me,oe="emptyOnly"){const q=me.pathFromRoot;let Ce=0;if("always"!==oe)for(Ce=q.length-1;Ce>=1;){const Te=q[Ce],Ve=q[Ce-1];if(Te.routeConfig&&""===Te.routeConfig.path)Ce--;else{if(Ve.component)break;Ce--}}return function(me){return me.reduce((oe,q)=>({params:Object.assign(Object.assign({},oe.params),q.params),data:Object.assign(Object.assign({},oe.data),q.data),resolve:Object.assign(Object.assign({},oe.resolve),q._resolvedData)}),{params:{},data:{},resolve:{}})}(q.slice(Ce))}class Xe{constructor(oe,q,Ce,Te,Ve,it,bt,zt,vn,fi,Dn){this.url=oe,this.params=q,this.queryParams=Ce,this.fragment=Te,this.data=Ve,this.outlet=it,this.component=bt,this.routeConfig=zt,this._urlSegment=vn,this._lastPathIndex=fi,this._resolve=Dn}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=_t(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ce=>Ce.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Wt extends Ti{constructor(oe,q){super(q),this.url=oe,Ft(this,q)}toString(){return Ht(this._root)}}function Ft(me,oe){oe.value._routerState=me,oe.children.forEach(q=>Ft(me,q))}function Ht(me){const oe=me.children.length>0?` { ${me.children.map(Ht).join(", ")} } `:"";return`${me.value}${oe}`}function Zt(me){if(me.snapshot){const oe=me.snapshot,q=me._futureSnapshot;me.snapshot=q,fe(oe.queryParams,q.queryParams)||me.queryParams.next(q.queryParams),oe.fragment!==q.fragment&&me.fragment.next(q.fragment),fe(oe.params,q.params)||me.params.next(q.params),function(me,oe){if(me.length!==oe.length)return!1;for(let q=0;qfe(q.parameters,oe[Ce].parameters))}(me.url,oe.url);return q&&!(!me.parent!=!oe.parent)&&(!me.parent||an(me.parent,oe.parent))}function zn(me,oe,q){if(q&&me.shouldReuseRoute(oe.value,q.value.snapshot)){const Ce=q.value;Ce._futureSnapshot=oe.value;const Te=function(me,oe,q){return oe.children.map(Ce=>{for(const Te of q.children)if(me.shouldReuseRoute(Ce.value,Te.value.snapshot))return zn(me,Ce,Te);return zn(me,Ce)})}(me,oe,q);return new ci(Ce,Te)}{if(me.shouldAttach(oe.value)){const Ve=me.retrieve(oe.value);if(null!==Ve){const it=Ve.route;return it.value._futureSnapshot=oe.value,it.children=oe.children.map(bt=>zn(me,bt)),it}}const Ce=function(me){return new B(new m.X(me.url),new m.X(me.params),new m.X(me.queryParams),new m.X(me.fragment),new m.X(me.data),me.outlet,me.component,me)}(oe.value),Te=oe.children.map(Ve=>zn(me,Ve));return new ci(Ce,Te)}}function Qn(me){return"object"==typeof me&&null!=me&&!me.outlets&&!me.segmentPath}function kn(me){return"object"==typeof me&&null!=me&&me.outlets}function Mi(me,oe,q,Ce,Te){let Ve={};return Ce&&_e(Ce,(it,bt)=>{Ve[bt]=Array.isArray(it)?it.map(zt=>`${zt}`):`${it}`}),new Lt(q.root===me?oe:Zi(q.root,me,oe),Ve,Te)}function Zi(me,oe,q){const Ce={};return _e(me.children,(Te,Ve)=>{Ce[Ve]=Te===oe?q:Zi(Te,oe,q)}),new Qe(me.segments,Ce)}class Xn{constructor(oe,q,Ce){if(this.isAbsolute=oe,this.numberOfDoubleDots=q,this.commands=Ce,oe&&Ce.length>0&&Qn(Ce[0]))throw new Error("Root segment cannot have matrix parameters");const Te=Ce.find(kn);if(Te&&Te!==U(Ce))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Gi{constructor(oe,q,Ce){this.segmentGroup=oe,this.processChildren=q,this.index=Ce}}function Rn(me,oe,q){if(me||(me=new Qe([],{})),0===me.segments.length&&me.hasChildren())return qi(me,oe,q);const Ce=function(me,oe,q){let Ce=0,Te=oe;const Ve={match:!1,pathIndex:0,commandIndex:0};for(;Te=q.length)return Ve;const it=me.segments[Te],bt=q[Ce];if(kn(bt))break;const zt=`${bt}`,vn=Ce0&&void 0===zt)break;if(zt&&vn&&"object"==typeof vn&&void 0===vn.outlets){if(!Gn(zt,vn,it))return Ve;Ce+=2}else{if(!Gn(zt,{},it))return Ve;Ce++}Te++}return{match:!0,pathIndex:Te,commandIndex:Ce}}(me,oe,q),Te=q.slice(Ce.commandIndex);if(Ce.match&&Ce.pathIndex{"string"==typeof Ve&&(Ve=[Ve]),null!==Ve&&(Te[it]=Rn(me.children[it],oe,Ve))}),_e(me.children,(Ve,it)=>{void 0===Ce[it]&&(Te[it]=Ve)}),new Qe(me.segments,Te)}}function Fn(me,oe,q){const Ce=me.segments.slice(0,oe);let Te=0;for(;Te{"string"==typeof q&&(q=[q]),null!==q&&(oe[Ce]=Fn(new Qe([],{}),0,q))}),oe}function mi(me){const oe={};return _e(me,(q,Ce)=>oe[Ce]=`${q}`),oe}function Gn(me,oe,q){return me==q.path&&fe(oe,q.parameters)}class gn{constructor(oe,q,Ce,Te){this.routeReuseStrategy=oe,this.futureState=q,this.currState=Ce,this.forwardEvent=Te}activate(oe){const q=this.futureState._root,Ce=this.currState?this.currState._root:null;this.deactivateChildRoutes(q,Ce,oe),Zt(this.futureState.root),this.activateChildRoutes(q,Ce,oe)}deactivateChildRoutes(oe,q,Ce){const Te=xe(q);oe.children.forEach(Ve=>{const it=Ve.value.outlet;this.deactivateRoutes(Ve,Te[it],Ce),delete Te[it]}),_e(Te,(Ve,it)=>{this.deactivateRouteAndItsChildren(Ve,Ce)})}deactivateRoutes(oe,q,Ce){const Te=oe.value,Ve=q?q.value:null;if(Te===Ve)if(Te.component){const it=Ce.getContext(Te.outlet);it&&this.deactivateChildRoutes(oe,q,it.children)}else this.deactivateChildRoutes(oe,q,Ce);else Ve&&this.deactivateRouteAndItsChildren(q,Ce)}deactivateRouteAndItsChildren(oe,q){oe.value.component&&this.routeReuseStrategy.shouldDetach(oe.value.snapshot)?this.detachAndStoreRouteSubtree(oe,q):this.deactivateRouteAndOutlet(oe,q)}detachAndStoreRouteSubtree(oe,q){const Ce=q.getContext(oe.value.outlet),Te=Ce&&oe.value.component?Ce.children:q,Ve=xe(oe);for(const it of Object.keys(Ve))this.deactivateRouteAndItsChildren(Ve[it],Te);if(Ce&&Ce.outlet){const it=Ce.outlet.detach(),bt=Ce.children.onOutletDeactivated();this.routeReuseStrategy.store(oe.value.snapshot,{componentRef:it,route:oe,contexts:bt})}}deactivateRouteAndOutlet(oe,q){const Ce=q.getContext(oe.value.outlet),Te=Ce&&oe.value.component?Ce.children:q,Ve=xe(oe);for(const it of Object.keys(Ve))this.deactivateRouteAndItsChildren(Ve[it],Te);Ce&&Ce.outlet&&(Ce.outlet.deactivate(),Ce.children.onOutletDeactivated(),Ce.attachRef=null,Ce.resolver=null,Ce.route=null)}activateChildRoutes(oe,q,Ce){const Te=xe(q);oe.children.forEach(Ve=>{this.activateRoutes(Ve,Te[Ve.value.outlet],Ce),this.forwardEvent(new ft(Ve.value.snapshot))}),oe.children.length&&this.forwardEvent(new tt(oe.value.snapshot))}activateRoutes(oe,q,Ce){const Te=oe.value,Ve=q?q.value:null;if(Zt(Te),Te===Ve)if(Te.component){const it=Ce.getOrCreateContext(Te.outlet);this.activateChildRoutes(oe,q,it.children)}else this.activateChildRoutes(oe,q,Ce);else if(Te.component){const it=Ce.getOrCreateContext(Te.outlet);if(this.routeReuseStrategy.shouldAttach(Te.snapshot)){const bt=this.routeReuseStrategy.retrieve(Te.snapshot);this.routeReuseStrategy.store(Te.snapshot,null),it.children.onOutletReAttached(bt.contexts),it.attachRef=bt.componentRef,it.route=bt.route.value,it.outlet&&it.outlet.attach(bt.componentRef,bt.route.value),Zt(bt.route.value),this.activateChildRoutes(oe,null,it.children)}else{const bt=function(me){for(let oe=me.parent;oe;oe=oe.parent){const q=oe.routeConfig;if(q&&q._loadedConfig)return q._loadedConfig;if(q&&q.component)return null}return null}(Te.snapshot),zt=bt?bt.module.componentFactoryResolver:null;it.attachRef=null,it.route=Te,it.resolver=zt,it.outlet&&it.outlet.activateWith(Te,zt),this.activateChildRoutes(oe,null,it.children)}}else this.activateChildRoutes(oe,null,Ce)}}class Sn{constructor(oe,q){this.routes=oe,this.module=q}}function Wn(me){return"function"==typeof me}function Li(me){return me instanceof Lt}const Mr=Symbol("INITIAL_VALUE");function cr(){return(0,g.w)(me=>(0,o.aj)(me.map(oe=>oe.pipe((0,y.q)(1),(0,E.O)(Mr)))).pipe((0,T.R)((oe,q)=>{let Ce=!1;return q.reduce((Te,Ve,it)=>Te!==Mr?Te:(Ve===Mr&&(Ce=!0),Ce||!1!==Ve&&it!==q.length-1&&!Li(Ve)?Te:Ve),oe)},Mr),(0,D.h)(oe=>oe!==Mr),(0,l.U)(oe=>Li(oe)?oe:!0===oe),(0,y.q)(1)))}class $r{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new hr,this.attachRef=null}}class hr{constructor(){this.contexts=new Map}onChildOutletCreated(oe,q){const Ce=this.getOrCreateContext(oe);Ce.outlet=q,this.contexts.set(oe,Ce)}onChildOutletDestroyed(oe){const q=this.getContext(oe);q&&(q.outlet=null,q.attachRef=null)}onOutletDeactivated(){const oe=this.contexts;return this.contexts=new Map,oe}onOutletReAttached(oe){this.contexts=oe}getOrCreateContext(oe){let q=this.getContext(oe);return q||(q=new $r,this.contexts.set(oe,q)),q}getContext(oe){return this.contexts.get(oe)||null}}let qr=(()=>{class me{constructor(q,Ce,Te,Ve,it){this.parentContexts=q,this.location=Ce,this.resolver=Te,this.changeDetector=it,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.attachEvents=new n.EventEmitter,this.detachEvents=new n.EventEmitter,this.name=Ve||yt,q.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const q=this.parentContexts.getContext(this.name);q&&q.route&&(q.attachRef?this.attach(q.attachRef,q.route):this.activateWith(q.route,q.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 q=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(q.instance),q}attach(q,Ce){this.activated=q,this._activatedRoute=Ce,this.location.insert(q.hostView),this.attachEvents.emit(q.instance)}deactivate(){if(this.activated){const q=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(q)}}activateWith(q,Ce){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=q;const it=(Ce=Ce||this.resolver).resolveComponentFactory(q._futureSnapshot.routeConfig.component),bt=this.parentContexts.getOrCreateContext(this.name).children,zt=new ir(q,bt,this.location.injector);this.activated=this.location.createComponent(it,this.location.length,zt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(hr),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275injectAttribute("name"),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),me})();class ir{constructor(oe,q,Ce){this.route=oe,this.childContexts=q,this.parent=Ce}get(oe,q){return oe===B?this.route:oe===hr?this.childContexts:this.parent.get(oe,q)}}let Cr=(()=>{class me{}return me.\u0275fac=function(q){return new(q||me)},me.\u0275cmp=n.\u0275\u0275defineComponent({type:me,selectors:[["ng-component"]],decls:1,vars:0,template:function(q,Ce){1&q&&n.\u0275\u0275element(0,"router-outlet")},directives:[qr],encapsulation:2}),me})();function Sr(me,oe=""){for(let q=0;qWi(Ce)===oe);return q.push(...me.filter(Ce=>Wi(Ce)!==oe)),q}const Rr={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Dr(me,oe,q){var Ce;if(""===oe.path)return"full"===oe.pathMatch&&(me.hasChildren()||q.length>0)?Object.assign({},Rr):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ve=(oe.matcher||Et)(q,me,oe);if(!Ve)return Object.assign({},Rr);const it={};_e(Ve.posParams,(zt,vn)=>{it[vn]=zt.path});const bt=Ve.consumed.length>0?Object.assign(Object.assign({},it),Ve.consumed[Ve.consumed.length-1].parameters):it;return{matched:!0,consumedSegments:Ve.consumed,lastChild:Ve.consumed.length,parameters:bt,positionalParamSegments:null!==(Ce=Ve.posParams)&&void 0!==Ce?Ce:{}}}function Lr(me,oe,q,Ce,Te="corrected"){if(q.length>0&&function(me,oe,q){return q.some(Ce=>Jr(me,oe,Ce)&&Wi(Ce)!==yt)}(me,q,Ce)){const it=new Qe(oe,function(me,oe,q,Ce){const Te={};Te[yt]=Ce,Ce._sourceSegment=me,Ce._segmentIndexShift=oe.length;for(const Ve of q)if(""===Ve.path&&Wi(Ve)!==yt){const it=new Qe([],{});it._sourceSegment=me,it._segmentIndexShift=oe.length,Te[Wi(Ve)]=it}return Te}(me,oe,Ce,new Qe(q,me.children)));return it._sourceSegment=me,it._segmentIndexShift=oe.length,{segmentGroup:it,slicedSegments:[]}}if(0===q.length&&function(me,oe,q){return q.some(Ce=>Jr(me,oe,Ce))}(me,q,Ce)){const it=new Qe(me.segments,function(me,oe,q,Ce,Te,Ve){const it={};for(const bt of Ce)if(Jr(me,q,bt)&&!Te[Wi(bt)]){const zt=new Qe([],{});zt._sourceSegment=me,zt._segmentIndexShift="legacy"===Ve?me.segments.length:oe.length,it[Wi(bt)]=zt}return Object.assign(Object.assign({},Te),it)}(me,oe,q,Ce,me.children,Te));return it._sourceSegment=me,it._segmentIndexShift=oe.length,{segmentGroup:it,slicedSegments:q}}const Ve=new Qe(me.segments,me.children);return Ve._sourceSegment=me,Ve._segmentIndexShift=oe.length,{segmentGroup:Ve,slicedSegments:q}}function Jr(me,oe,q){return(!(me.hasChildren()||oe.length>0)||"full"!==q.pathMatch)&&""===q.path}function Tr(me,oe,q,Ce){return!!(Wi(me)===Ce||Ce!==yt&&Jr(oe,q,me))&&("**"===me.path||Dr(oe,me,q).matched)}function us(me,oe,q){return 0===oe.length&&!me.children[q]}class si{constructor(oe){this.segmentGroup=oe||null}}class zr{constructor(oe){this.urlTree=oe}}function Er(me){return new d.y(oe=>oe.error(new si(me)))}function be(me){return new d.y(oe=>oe.error(new zr(me)))}function X(me){return new d.y(oe=>oe.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${me}'`)))}class ve{constructor(oe,q,Ce,Te,Ve){this.configLoader=q,this.urlSerializer=Ce,this.urlTree=Te,this.config=Ve,this.allowRedirects=!0,this.ngModule=oe.get(n.NgModuleRef)}apply(){const oe=Lr(this.urlTree.root,[],[],this.config).segmentGroup,q=new Qe(oe.segments,oe.children);return this.expandSegmentGroup(this.ngModule,this.config,q,yt).pipe((0,l.U)(Ve=>this.createUrlTree(Nt(Ve),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,O.K)(Ve=>{if(Ve instanceof zr)return this.allowRedirects=!1,this.match(Ve.urlTree);throw Ve instanceof si?this.noMatchError(Ve):Ve}))}match(oe){return this.expandSegmentGroup(this.ngModule,this.config,oe.root,yt).pipe((0,l.U)(Te=>this.createUrlTree(Nt(Te),oe.queryParams,oe.fragment))).pipe((0,O.K)(Te=>{throw Te instanceof si?this.noMatchError(Te):Te}))}noMatchError(oe){return new Error(`Cannot match any routes. URL Segment: '${oe.segmentGroup}'`)}createUrlTree(oe,q,Ce){const Te=oe.segments.length>0?new Qe([],{[yt]:oe}):oe;return new Lt(Te,q,Ce)}expandSegmentGroup(oe,q,Ce,Te){return 0===Ce.segments.length&&Ce.hasChildren()?this.expandChildren(oe,q,Ce).pipe((0,l.U)(Ve=>new Qe([],Ve))):this.expandSegment(oe,Ce,q,Ce.segments,Te,!0)}expandChildren(oe,q,Ce){const Te=[];for(const Ve of Object.keys(Ce.children))"primary"===Ve?Te.unshift(Ve):Te.push(Ve);return(0,f.D)(Te).pipe((0,w.b)(Ve=>{const it=Ce.children[Ve],bt=Wr(q,Ve);return this.expandSegmentGroup(oe,bt,it,Ve).pipe((0,l.U)(zt=>({segment:zt,outlet:Ve})))}),(0,T.R)((Ve,it)=>(Ve[it.outlet]=it.segment,Ve),{}),(0,A.Z)())}expandSegment(oe,q,Ce,Te,Ve,it){return(0,f.D)(Ce).pipe((0,w.b)(bt=>this.expandSegmentAgainstRoute(oe,q,Ce,bt,Te,Ve,it).pipe((0,O.K)(vn=>{if(vn instanceof si)return(0,v.of)(null);throw vn}))),(0,S.P)(bt=>!!bt),(0,O.K)((bt,zt)=>{if(bt instanceof u.K||"EmptyError"===bt.name){if(us(q,Te,Ve))return(0,v.of)(new Qe([],{}));throw new si(q)}throw bt}))}expandSegmentAgainstRoute(oe,q,Ce,Te,Ve,it,bt){return Tr(Te,q,Ve,it)?void 0===Te.redirectTo?this.matchSegmentAgainstRoute(oe,q,Te,Ve,it):bt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(oe,q,Ce,Te,Ve,it):Er(q):Er(q)}expandSegmentAgainstRouteUsingRedirect(oe,q,Ce,Te,Ve,it){return"**"===Te.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(oe,Ce,Te,it):this.expandRegularSegmentAgainstRouteUsingRedirect(oe,q,Ce,Te,Ve,it)}expandWildCardWithParamsAgainstRouteUsingRedirect(oe,q,Ce,Te){const Ve=this.applyRedirectCommands([],Ce.redirectTo,{});return Ce.redirectTo.startsWith("/")?be(Ve):this.lineralizeSegments(Ce,Ve).pipe((0,M.zg)(it=>{const bt=new Qe(it,{});return this.expandSegment(oe,bt,q,it,Te,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(oe,q,Ce,Te,Ve,it){const{matched:bt,consumedSegments:zt,lastChild:vn,positionalParamSegments:fi}=Dr(q,Te,Ve);if(!bt)return Er(q);const Dn=this.applyRedirectCommands(zt,Te.redirectTo,fi);return Te.redirectTo.startsWith("/")?be(Dn):this.lineralizeSegments(Te,Dn).pipe((0,M.zg)(vi=>this.expandSegment(oe,q,Ce,vi.concat(Ve.slice(vn)),it,!1)))}matchSegmentAgainstRoute(oe,q,Ce,Te,Ve){if("**"===Ce.path)return Ce.loadChildren?(Ce._loadedConfig?(0,v.of)(Ce._loadedConfig):this.configLoader.load(oe.injector,Ce)).pipe((0,l.U)(vi=>(Ce._loadedConfig=vi,new Qe(Te,{})))):(0,v.of)(new Qe(Te,{}));const{matched:it,consumedSegments:bt,lastChild:zt}=Dr(q,Ce,Te);if(!it)return Er(q);const vn=Te.slice(zt);return this.getChildConfig(oe,Ce,Te).pipe((0,M.zg)(Dn=>{const vi=Dn.module,Di=Dn.routes,{segmentGroup:hs,slicedSegments:Gr}=Lr(q,bt,vn,Di),fs=new Qe(hs.segments,hs.children);if(0===Gr.length&&fs.hasChildren())return this.expandChildren(vi,Di,fs).pipe((0,l.U)(Rs=>new Qe(bt,Rs)));if(0===Di.length&&0===Gr.length)return(0,v.of)(new Qe(bt,{}));const ps=Wi(Ce)===Ve;return this.expandSegment(vi,fs,Di,Gr,ps?yt:Ve,!0).pipe((0,l.U)(ss=>new Qe(bt.concat(ss.segments),ss.children)))}))}getChildConfig(oe,q,Ce){return q.children?(0,v.of)(new Sn(q.children,oe)):q.loadChildren?void 0!==q._loadedConfig?(0,v.of)(q._loadedConfig):this.runCanLoadGuards(oe.injector,q,Ce).pipe((0,M.zg)(Te=>{return Te?this.configLoader.load(oe.injector,q).pipe((0,l.U)(Ve=>(q._loadedConfig=Ve,Ve))):(me=q,new d.y(oe=>oe.error(Tt(`Cannot load children because the guard of the route "path: '${me.path}'" returned false`))));var me})):(0,v.of)(new Sn([],oe))}runCanLoadGuards(oe,q,Ce){const Te=q.canLoad;if(!Te||0===Te.length)return(0,v.of)(!0);const Ve=Te.map(it=>{const bt=oe.get(it);let zt;if((me=bt)&&Wn(me.canLoad))zt=bt.canLoad(q,Ce);else{if(!Wn(bt))throw new Error("Invalid CanLoad guard");zt=bt(q,Ce)}var me;return Be(zt)});return(0,v.of)(Ve).pipe(cr(),(0,I.b)(it=>{if(!Li(it))return;const bt=Tt(`Redirecting to "${this.urlSerializer.serialize(it)}"`);throw bt.url=it,bt}),(0,l.U)(it=>!0===it))}lineralizeSegments(oe,q){let Ce=[],Te=q.root;for(;;){if(Ce=Ce.concat(Te.segments),0===Te.numberOfChildren)return(0,v.of)(Ce);if(Te.numberOfChildren>1||!Te.children[yt])return X(oe.redirectTo);Te=Te.children[yt]}}applyRedirectCommands(oe,q,Ce){return this.applyRedirectCreatreUrlTree(q,this.urlSerializer.parse(q),oe,Ce)}applyRedirectCreatreUrlTree(oe,q,Ce,Te){const Ve=this.createSegmentGroup(oe,q.root,Ce,Te);return new Lt(Ve,this.createQueryParams(q.queryParams,this.urlTree.queryParams),q.fragment)}createQueryParams(oe,q){const Ce={};return _e(oe,(Te,Ve)=>{if("string"==typeof Te&&Te.startsWith(":")){const bt=Te.substring(1);Ce[Ve]=q[bt]}else Ce[Ve]=Te}),Ce}createSegmentGroup(oe,q,Ce,Te){const Ve=this.createSegments(oe,q.segments,Ce,Te);let it={};return _e(q.children,(bt,zt)=>{it[zt]=this.createSegmentGroup(oe,bt,Ce,Te)}),new Qe(Ve,it)}createSegments(oe,q,Ce,Te){return q.map(Ve=>Ve.path.startsWith(":")?this.findPosParam(oe,Ve,Te):this.findOrReturn(Ve,Ce))}findPosParam(oe,q,Ce){const Te=Ce[q.path.substring(1)];if(!Te)throw new Error(`Cannot redirect to '${oe}'. Cannot find '${q.path}'.`);return Te}findOrReturn(oe,q){let Ce=0;for(const Te of q){if(Te.path===oe.path)return q.splice(Ce),Te;Ce++}return oe}}function Nt(me){const oe={};for(const Ce of Object.keys(me.children)){const Ve=Nt(me.children[Ce]);(Ve.segments.length>0||Ve.hasChildren())&&(oe[Ce]=Ve)}return function(me){if(1===me.numberOfChildren&&me.children[yt]){const oe=me.children[yt];return new Qe(me.segments.concat(oe.segments),oe.children)}return me}(new Qe(me.segments,oe))}class In{constructor(oe){this.path=oe,this.route=this.path[this.path.length-1]}}class ni{constructor(oe,q){this.component=oe,this.route=q}}function di(me,oe,q){const Ce=me._root;return ki(Ce,oe?oe._root:null,q,[Ce.value])}function hi(me,oe,q){const Ce=function(me){if(!me)return null;for(let oe=me.parent;oe;oe=oe.parent){const q=oe.routeConfig;if(q&&q._loadedConfig)return q._loadedConfig}return null}(oe);return(Ce?Ce.module.injector:q).get(me)}function ki(me,oe,q,Ce,Te={canDeactivateChecks:[],canActivateChecks:[]}){const Ve=xe(oe);return me.children.forEach(it=>{(function(me,oe,q,Ce,Te={canDeactivateChecks:[],canActivateChecks:[]}){const Ve=me.value,it=oe?oe.value:null,bt=q?q.getContext(me.value.outlet):null;if(it&&Ve.routeConfig===it.routeConfig){const zt=function(me,oe,q){if("function"==typeof q)return q(me,oe);switch(q){case"pathParamsChange":return!qt(me.url,oe.url);case"pathParamsOrQueryParamsChange":return!qt(me.url,oe.url)||!fe(me.queryParams,oe.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!an(me,oe)||!fe(me.queryParams,oe.queryParams);default:return!an(me,oe)}}(it,Ve,Ve.routeConfig.runGuardsAndResolvers);zt?Te.canActivateChecks.push(new In(Ce)):(Ve.data=it.data,Ve._resolvedData=it._resolvedData),ki(me,oe,Ve.component?bt?bt.children:null:q,Ce,Te),zt&&bt&&bt.outlet&&bt.outlet.isActivated&&Te.canDeactivateChecks.push(new ni(bt.outlet.component,it))}else it&&rr(oe,bt,Te),Te.canActivateChecks.push(new In(Ce)),ki(me,null,Ve.component?bt?bt.children:null:q,Ce,Te)})(it,Ve[it.value.outlet],q,Ce.concat([it.value]),Te),delete Ve[it.value.outlet]}),_e(Ve,(it,bt)=>rr(it,q.getContext(bt),Te)),Te}function rr(me,oe,q){const Ce=xe(me),Te=me.value;_e(Ce,(Ve,it)=>{rr(Ve,Te.component?oe?oe.children.getContext(it):null:oe,q)}),q.canDeactivateChecks.push(new ni(Te.component&&oe&&oe.outlet&&oe.outlet.isActivated?oe.outlet.component:null,Te))}class pe{}function Ae(me){return new d.y(oe=>oe.error(me))}class rt{constructor(oe,q,Ce,Te,Ve,it){this.rootComponentType=oe,this.config=q,this.urlTree=Ce,this.url=Te,this.paramsInheritanceStrategy=Ve,this.relativeLinkResolution=it}recognize(){const oe=Lr(this.urlTree.root,[],[],this.config.filter(it=>void 0===it.redirectTo),this.relativeLinkResolution).segmentGroup,q=this.processSegmentGroup(this.config,oe,yt);if(null===q)return null;const Ce=new Xe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},yt,this.rootComponentType,null,this.urlTree.root,-1,{}),Te=new ci(Ce,q),Ve=new Wt(this.url,Te);return this.inheritParamsAndData(Ve._root),Ve}inheritParamsAndData(oe){const q=oe.value,Ce=de(q,this.paramsInheritanceStrategy);q.params=Object.freeze(Ce.params),q.data=Object.freeze(Ce.data),oe.children.forEach(Te=>this.inheritParamsAndData(Te))}processSegmentGroup(oe,q,Ce){return 0===q.segments.length&&q.hasChildren()?this.processChildren(oe,q):this.processSegment(oe,q,q.segments,Ce)}processChildren(oe,q){const Ce=[];for(const Ve of Object.keys(q.children)){const it=q.children[Ve],bt=Wr(oe,Ve),zt=this.processSegmentGroup(bt,it,Ve);if(null===zt)return null;Ce.push(...zt)}const Te=rn(Ce);return Te.sort((oe,q)=>oe.value.outlet===yt?-1:q.value.outlet===yt?1:oe.value.outlet.localeCompare(q.value.outlet)),Te}processSegment(oe,q,Ce,Te){for(const Ve of oe){const it=this.processSegmentAgainstRoute(Ve,q,Ce,Te);if(null!==it)return it}return us(q,Ce,Te)?[]:null}processSegmentAgainstRoute(oe,q,Ce,Te){if(oe.redirectTo||!Tr(oe,q,Ce,Te))return null;let Ve,it=[],bt=[];if("**"===oe.path){const Di=Ce.length>0?U(Ce).parameters:{};Ve=new Xe(Ce,Di,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(oe),Wi(oe),oe.component,oe,Pn(q),Ln(q)+Ce.length,Bn(oe))}else{const Di=Dr(q,oe,Ce);if(!Di.matched)return null;it=Di.consumedSegments,bt=Ce.slice(Di.lastChild),Ve=new Xe(it,Di.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,_n(oe),Wi(oe),oe.component,oe,Pn(q),Ln(q)+it.length,Bn(oe))}const zt=(me=oe).children?me.children:me.loadChildren?me._loadedConfig.routes:[],{segmentGroup:vn,slicedSegments:fi}=Lr(q,it,bt,zt.filter(Di=>void 0===Di.redirectTo),this.relativeLinkResolution);var me;if(0===fi.length&&vn.hasChildren()){const Di=this.processChildren(zt,vn);return null===Di?null:[new ci(Ve,Di)]}if(0===zt.length&&0===fi.length)return[new ci(Ve,[])];const Dn=Wi(oe)===Te,vi=this.processSegment(zt,vn,fi,Dn?yt:Te);return null===vi?null:[new ci(Ve,vi)]}}function Gt(me){const oe=me.value.routeConfig;return oe&&""===oe.path&&void 0===oe.redirectTo}function rn(me){const oe=[],q=new Set;for(const Ce of me){if(!Gt(Ce)){oe.push(Ce);continue}const Te=oe.find(Ve=>Ce.value.routeConfig===Ve.value.routeConfig);void 0!==Te?(Te.children.push(...Ce.children),q.add(Te)):oe.push(Ce)}for(const Ce of q){const Te=rn(Ce.children);oe.push(new ci(Ce.value,Te))}return oe.filter(Ce=>!q.has(Ce))}function Pn(me){let oe=me;for(;oe._sourceSegment;)oe=oe._sourceSegment;return oe}function Ln(me){let oe=me,q=oe._segmentIndexShift?oe._segmentIndexShift:0;for(;oe._sourceSegment;)oe=oe._sourceSegment,q+=oe._segmentIndexShift?oe._segmentIndexShift:0;return q-1}function _n(me){return me.data||{}}function Bn(me){return me.resolve||{}}function Nr(me){return(0,g.w)(oe=>{const q=me(oe);return q?(0,f.D)(q).pipe((0,l.U)(()=>oe)):(0,v.of)(oe)})}class fr{}class Xi{shouldDetach(oe){return!1}store(oe,q){}shouldAttach(oe){return!1}retrieve(oe){return null}shouldReuseRoute(oe,q){return oe.routeConfig===q.routeConfig}}class gr extends Xi{}const zi=new n.InjectionToken("ROUTES");class Pr{constructor(oe,q,Ce,Te){this.injector=oe,this.compiler=q,this.onLoadStartListener=Ce,this.onLoadEndListener=Te}load(oe,q){if(q._loader$)return q._loader$;this.onLoadStartListener&&this.onLoadStartListener(q);const Te=this.loadModuleFactory(q.loadChildren).pipe((0,l.U)(Ve=>{this.onLoadEndListener&&this.onLoadEndListener(q);const it=Ve.create(oe);return new Sn(x(it.injector.get(zi,void 0,n.InjectFlags.Self|n.InjectFlags.Optional)).map(jr),it)}),(0,O.K)(Ve=>{throw q._loader$=void 0,Ve}));return q._loader$=new i.c(Te,()=>new c.xQ).pipe((0,L.x)()),q._loader$}loadModuleFactory(oe){return Be(oe()).pipe((0,M.zg)(q=>q instanceof n.NgModuleFactory?(0,v.of)(q):(0,f.D)(this.compiler.compileModuleAsync(q))))}}class ys{}class Yi{shouldProcessUrl(oe){return!0}extract(oe){return oe}merge(oe,q){return oe}}function Ur(me){throw me}function bs(me,oe,q){return oe.parse("/")}function Cs(me,oe){return(0,v.of)(null)}const mn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Mn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let En=(()=>{class me{constructor(q,Ce,Te,Ve,it,bt,zt){this.rootComponentType=q,this.urlSerializer=Ce,this.rootContexts=Te,this.location=Ve,this.config=zt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new c.xQ,this.errorHandler=Ur,this.malformedUriErrorHandler=bs,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Cs,afterPreactivation:Cs},this.urlHandlingStrategy=new Yi,this.routeReuseStrategy=new gr,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=it.get(n.NgModuleRef),this.console=it.get(n.\u0275Console);const Dn=it.get(n.NgZone);this.isNgZoneEnabled=Dn instanceof n.NgZone&&n.NgZone.isInAngularZone(),this.resetConfig(zt),this.currentUrlTree=new Lt(new Qe([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Pr(it,bt,vi=>this.triggerEvent(new Je(vi)),vi=>this.triggerEvent(new gt(vi))),this.routerState=ue(this.currentUrlTree,this.rootComponentType),this.transitions=new m.X({id:0,targetPageId: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()}get browserPageId(){var q;return null===(q=this.location.getState())||void 0===q?void 0:q.\u0275routerPageId}setupNavigations(q){const Ce=this.events;return q.pipe((0,D.h)(Te=>0!==Te.id),(0,l.U)(Te=>Object.assign(Object.assign({},Te),{extractedUrl:this.urlHandlingStrategy.extract(Te.rawUrl)})),(0,g.w)(Te=>{let Ve=!1,it=!1;return(0,v.of)(Te).pipe((0,I.b)(bt=>{this.currentNavigation={id:bt.id,initialUrl:bt.currentRawUrl,extractedUrl:bt.extractedUrl,trigger:bt.source,extras:bt.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,g.w)(bt=>{const zt=this.browserUrlTree.toString(),vn=!this.navigated||bt.extractedUrl.toString()!==zt||zt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||vn)&&this.urlHandlingStrategy.shouldProcessUrl(bt.rawUrl))return ii(bt.source)&&(this.browserUrlTree=bt.extractedUrl),(0,v.of)(bt).pipe((0,g.w)(Dn=>{const vi=this.transitions.getValue();return Ce.next(new te(Dn.id,this.serializeUrl(Dn.extractedUrl),Dn.source,Dn.restoredState)),vi!==this.transitions.getValue()?s.E:Promise.resolve(Dn)}),function(me,oe,q,Ce){return(0,g.w)(Te=>function(me,oe,q,Ce,Te){return new ve(me,oe,q,Ce,Te).apply()}(me,oe,q,Te.extractedUrl,Ce).pipe((0,l.U)(Ve=>Object.assign(Object.assign({},Te),{urlAfterRedirects:Ve}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,I.b)(Dn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Dn.urlAfterRedirects})}),function(me,oe,q,Ce,Te){return(0,M.zg)(Ve=>function(me,oe,q,Ce,Te="emptyOnly",Ve="legacy"){try{const it=new rt(me,oe,q,Ce,Te,Ve).recognize();return null===it?Ae(new pe):(0,v.of)(it)}catch(it){return Ae(it)}}(me,oe,Ve.urlAfterRedirects,q(Ve.urlAfterRedirects),Ce,Te).pipe((0,l.U)(it=>Object.assign(Object.assign({},Ve),{targetSnapshot:it}))))}(this.rootComponentType,this.config,Dn=>this.serializeUrl(Dn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,I.b)(Dn=>{if("eager"===this.urlUpdateStrategy){if(!Dn.extras.skipLocationChange){const Di=this.urlHandlingStrategy.merge(Dn.urlAfterRedirects,Dn.rawUrl);this.setBrowserUrl(Di,Dn)}this.browserUrlTree=Dn.urlAfterRedirects}const vi=new ae(Dn.id,this.serializeUrl(Dn.extractedUrl),this.serializeUrl(Dn.urlAfterRedirects),Dn.targetSnapshot);Ce.next(vi)}));if(vn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:vi,extractedUrl:Di,source:hs,restoredState:Gr,extras:fs}=bt,ps=new te(vi,this.serializeUrl(Di),hs,Gr);Ce.next(ps);const eo=ue(Di,this.rootComponentType).snapshot;return(0,v.of)(Object.assign(Object.assign({},bt),{targetSnapshot:eo,urlAfterRedirects:Di,extras:Object.assign(Object.assign({},fs),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=bt.rawUrl,bt.resolve(null),s.E}),Nr(bt=>{const{targetSnapshot:zt,id:vn,extractedUrl:fi,rawUrl:Dn,extras:{skipLocationChange:vi,replaceUrl:Di}}=bt;return this.hooks.beforePreactivation(zt,{navigationId:vn,appliedUrlTree:fi,rawUrlTree:Dn,skipLocationChange:!!vi,replaceUrl:!!Di})}),(0,I.b)(bt=>{const zt=new le(bt.id,this.serializeUrl(bt.extractedUrl),this.serializeUrl(bt.urlAfterRedirects),bt.targetSnapshot);this.triggerEvent(zt)}),(0,l.U)(bt=>Object.assign(Object.assign({},bt),{guards:di(bt.targetSnapshot,bt.currentSnapshot,this.rootContexts)})),function(me,oe){return(0,M.zg)(q=>{const{targetSnapshot:Ce,currentSnapshot:Te,guards:{canActivateChecks:Ve,canDeactivateChecks:it}}=q;return 0===it.length&&0===Ve.length?(0,v.of)(Object.assign(Object.assign({},q),{guardsResult:!0})):function(me,oe,q,Ce){return(0,f.D)(me).pipe((0,M.zg)(Te=>function(me,oe,q,Ce,Te){const Ve=oe&&oe.routeConfig?oe.routeConfig.canDeactivate:null;if(!Ve||0===Ve.length)return(0,v.of)(!0);const it=Ve.map(bt=>{const zt=hi(bt,oe,Te);let vn;if(function(me){return me&&Wn(me.canDeactivate)}(zt))vn=Be(zt.canDeactivate(me,oe,q,Ce));else{if(!Wn(zt))throw new Error("Invalid CanDeactivate guard");vn=Be(zt(me,oe,q,Ce))}return vn.pipe((0,S.P)())});return(0,v.of)(it).pipe(cr())}(Te.component,Te.route,q,oe,Ce)),(0,S.P)(Te=>!0!==Te,!0))}(it,Ce,Te,me).pipe((0,M.zg)(bt=>bt&&function(me){return"boolean"==typeof me}(bt)?function(me,oe,q,Ce){return(0,f.D)(oe).pipe((0,w.b)(Te=>(0,h.z)(function(me,oe){return null!==me&&oe&&oe(new Ue(me)),(0,v.of)(!0)}(Te.route.parent,Ce),function(me,oe){return null!==me&&oe&&oe(new at(me)),(0,v.of)(!0)}(Te.route,Ce),function(me,oe,q){const Ce=oe[oe.length-1],Ve=oe.slice(0,oe.length-1).reverse().map(it=>function(me){const oe=me.routeConfig?me.routeConfig.canActivateChild:null;return oe&&0!==oe.length?{node:me,guards:oe}:null}(it)).filter(it=>null!==it).map(it=>(0,r.P)(()=>{const bt=it.guards.map(zt=>{const vn=hi(zt,it.node,q);let fi;if(function(me){return me&&Wn(me.canActivateChild)}(vn))fi=Be(vn.canActivateChild(Ce,me));else{if(!Wn(vn))throw new Error("Invalid CanActivateChild guard");fi=Be(vn(Ce,me))}return fi.pipe((0,S.P)())});return(0,v.of)(bt).pipe(cr())}));return(0,v.of)(Ve).pipe(cr())}(me,Te.path,q),function(me,oe,q){const Ce=oe.routeConfig?oe.routeConfig.canActivate:null;if(!Ce||0===Ce.length)return(0,v.of)(!0);const Te=Ce.map(Ve=>(0,r.P)(()=>{const it=hi(Ve,oe,q);let bt;if(function(me){return me&&Wn(me.canActivate)}(it))bt=Be(it.canActivate(oe,me));else{if(!Wn(it))throw new Error("Invalid CanActivate guard");bt=Be(it(oe,me))}return bt.pipe((0,S.P)())}));return(0,v.of)(Te).pipe(cr())}(me,Te.route,q))),(0,S.P)(Te=>!0!==Te,!0))}(Ce,Ve,me,oe):(0,v.of)(bt)),(0,l.U)(bt=>Object.assign(Object.assign({},q),{guardsResult:bt})))})}(this.ngModule.injector,bt=>this.triggerEvent(bt)),(0,I.b)(bt=>{if(Li(bt.guardsResult)){const vn=Tt(`Redirecting to "${this.serializeUrl(bt.guardsResult)}"`);throw vn.url=bt.guardsResult,vn}const zt=new Oe(bt.id,this.serializeUrl(bt.extractedUrl),this.serializeUrl(bt.urlAfterRedirects),bt.targetSnapshot,!!bt.guardsResult);this.triggerEvent(zt)}),(0,D.h)(bt=>!!bt.guardsResult||(this.restoreHistory(bt),this.cancelNavigationTransition(bt,""),!1)),Nr(bt=>{if(bt.guards.canActivateChecks.length)return(0,v.of)(bt).pipe((0,I.b)(zt=>{const vn=new Le(zt.id,this.serializeUrl(zt.extractedUrl),this.serializeUrl(zt.urlAfterRedirects),zt.targetSnapshot);this.triggerEvent(vn)}),(0,g.w)(zt=>{let vn=!1;return(0,v.of)(zt).pipe(function(me,oe){return(0,M.zg)(q=>{const{targetSnapshot:Ce,guards:{canActivateChecks:Te}}=q;if(!Te.length)return(0,v.of)(q);let Ve=0;return(0,f.D)(Te).pipe((0,w.b)(it=>function(me,oe,q,Ce){return function(me,oe,q,Ce){const Te=Object.keys(me);if(0===Te.length)return(0,v.of)({});const Ve={};return(0,f.D)(Te).pipe((0,M.zg)(it=>function(me,oe,q,Ce){const Te=hi(me,oe,Ce);return Be(Te.resolve?Te.resolve(oe,q):Te(oe,q))}(me[it],oe,q,Ce).pipe((0,I.b)(bt=>{Ve[it]=bt}))),(0,b.h)(1),(0,M.zg)(()=>Object.keys(Ve).length===Te.length?(0,v.of)(Ve):s.E))}(me._resolve,me,oe,Ce).pipe((0,l.U)(Ve=>(me._resolvedData=Ve,me.data=Object.assign(Object.assign({},me.data),de(me,q).resolve),null)))}(it.route,Ce,me,oe)),(0,I.b)(()=>Ve++),(0,b.h)(1),(0,M.zg)(it=>Ve===Te.length?(0,v.of)(q):s.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,I.b)({next:()=>vn=!0,complete:()=>{vn||(this.restoreHistory(zt),this.cancelNavigationTransition(zt,"At least one route resolver didn't emit any value."))}}))}),(0,I.b)(zt=>{const vn=new Ye(zt.id,this.serializeUrl(zt.extractedUrl),this.serializeUrl(zt.urlAfterRedirects),zt.targetSnapshot);this.triggerEvent(vn)}))}),Nr(bt=>{const{targetSnapshot:zt,id:vn,extractedUrl:fi,rawUrl:Dn,extras:{skipLocationChange:vi,replaceUrl:Di}}=bt;return this.hooks.afterPreactivation(zt,{navigationId:vn,appliedUrlTree:fi,rawUrlTree:Dn,skipLocationChange:!!vi,replaceUrl:!!Di})}),(0,l.U)(bt=>{const zt=function(me,oe,q){const Ce=zn(me,oe._root,q?q._root:void 0);return new Ze(Ce,oe)}(this.routeReuseStrategy,bt.targetSnapshot,bt.currentRouterState);return Object.assign(Object.assign({},bt),{targetRouterState:zt})}),(0,I.b)(bt=>{this.currentUrlTree=bt.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(bt.urlAfterRedirects,bt.rawUrl),this.routerState=bt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(bt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,bt),this.browserUrlTree=bt.urlAfterRedirects)}),((me,oe,q)=>(0,l.U)(Ce=>(new gn(oe,Ce.targetRouterState,Ce.currentRouterState,q).activate(me),Ce)))(this.rootContexts,this.routeReuseStrategy,bt=>this.triggerEvent(bt)),(0,I.b)({next(){Ve=!0},complete(){Ve=!0}}),(0,F.x)(()=>{var bt;Ve||it||this.cancelNavigationTransition(Te,`Navigation ID ${Te.id} is not equal to the current navigation id ${this.navigationId}`),(null===(bt=this.currentNavigation)||void 0===bt?void 0:bt.id)===Te.id&&(this.currentNavigation=null)}),(0,O.K)(bt=>{if(it=!0,function(me){return me&&me[At]}(bt)){const zt=Li(bt.url);zt||(this.navigated=!0,this.restoreHistory(Te,!0));const vn=new J(Te.id,this.serializeUrl(Te.extractedUrl),bt.message);Ce.next(vn),zt?setTimeout(()=>{const fi=this.urlHandlingStrategy.merge(bt.url,this.rawUrlTree),Dn={skipLocationChange:Te.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ii(Te.source)};this.scheduleNavigation(fi,"imperative",null,Dn,{resolve:Te.resolve,reject:Te.reject,promise:Te.promise})},0):Te.resolve(!1)}else{this.restoreHistory(Te,!0);const zt=new ie(Te.id,this.serializeUrl(Te.extractedUrl),bt);Ce.next(zt);try{Te.resolve(this.errorHandler(bt))}catch(vn){Te.reject(vn)}}return s.E}))}))}resetRootComponentType(q){this.rootComponentType=q,this.routerState.root.component=this.rootComponentType}setTransition(q){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),q))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(q=>{const Ce="popstate"===q.type?"popstate":"hashchange";"popstate"===Ce&&setTimeout(()=>{var Te;const Ve={replaceUrl:!0},it=(null===(Te=q.state)||void 0===Te?void 0:Te.navigationId)?q.state:null;if(it){const zt=Object.assign({},it);delete zt.navigationId,delete zt.\u0275routerPageId,0!==Object.keys(zt).length&&(Ve.state=zt)}const bt=this.parseUrl(q.url);this.scheduleNavigation(bt,Ce,it,Ve)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(q){this.events.next(q)}resetConfig(q){Sr(q),this.config=q.map(jr),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(q,Ce={}){const{relativeTo:Te,queryParams:Ve,fragment:it,queryParamsHandling:bt,preserveFragment:zt}=Ce,vn=Te||this.routerState.root,fi=zt?this.currentUrlTree.fragment:it;let Dn=null;switch(bt){case"merge":Dn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ve);break;case"preserve":Dn=this.currentUrlTree.queryParams;break;default:Dn=Ve||null}return null!==Dn&&(Dn=this.removeEmptyProps(Dn)),function(me,oe,q,Ce,Te){if(0===q.length)return Mi(oe.root,oe.root,oe,Ce,Te);const Ve=function(me){if("string"==typeof me[0]&&1===me.length&&"/"===me[0])return new Xn(!0,0,me);let oe=0,q=!1;const Ce=me.reduce((Te,Ve,it)=>{if("object"==typeof Ve&&null!=Ve){if(Ve.outlets){const bt={};return _e(Ve.outlets,(zt,vn)=>{bt[vn]="string"==typeof zt?zt.split("/"):zt}),[...Te,{outlets:bt}]}if(Ve.segmentPath)return[...Te,Ve.segmentPath]}return"string"!=typeof Ve?[...Te,Ve]:0===it?(Ve.split("/").forEach((bt,zt)=>{0==zt&&"."===bt||(0==zt&&""===bt?q=!0:".."===bt?oe++:""!=bt&&Te.push(bt))}),Te):[...Te,Ve]},[]);return new Xn(q,oe,Ce)}(q);if(Ve.toRoot())return Mi(oe.root,new Qe([],{}),oe,Ce,Te);const it=function(me,oe,q){if(me.isAbsolute)return new Gi(oe.root,!0,0);if(-1===q.snapshot._lastPathIndex){const Ve=q.snapshot._urlSegment;return new Gi(Ve,Ve===oe.root,0)}const Ce=Qn(me.commands[0])?0:1;return function(me,oe,q){let Ce=me,Te=oe,Ve=q;for(;Ve>Te;){if(Ve-=Te,Ce=Ce.parent,!Ce)throw new Error("Invalid number of '../'");Te=Ce.segments.length}return new Gi(Ce,!1,Te-Ve)}(q.snapshot._urlSegment,q.snapshot._lastPathIndex+Ce,me.numberOfDoubleDots)}(Ve,oe,me),bt=it.processChildren?qi(it.segmentGroup,it.index,Ve.commands):Rn(it.segmentGroup,it.index,Ve.commands);return Mi(it.segmentGroup,bt,oe,Ce,Te)}(vn,this.currentUrlTree,q,Dn,null!=fi?fi:null)}navigateByUrl(q,Ce={skipLocationChange:!1}){const Te=Li(q)?q:this.parseUrl(q),Ve=this.urlHandlingStrategy.merge(Te,this.rawUrlTree);return this.scheduleNavigation(Ve,"imperative",null,Ce)}navigate(q,Ce={skipLocationChange:!1}){return function(me){for(let oe=0;oe{const Ve=q[Te];return null!=Ve&&(Ce[Te]=Ve),Ce},{})}processNavigations(){this.navigations.subscribe(q=>{this.navigated=!0,this.lastSuccessfulId=q.id,this.currentPageId=q.targetPageId,this.events.next(new $(q.id,this.serializeUrl(q.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,q.resolve(!0)},q=>{this.console.warn(`Unhandled Navigation Error: ${q}`)})}scheduleNavigation(q,Ce,Te,Ve,it){var bt,zt,vn;if(this.disposed)return Promise.resolve(!1);const fi=this.transitions.value,Dn=ii(Ce)&&fi&&!ii(fi.source),vi=fi.rawUrl.toString()===q.toString(),Di=fi.id===(null===(bt=this.currentNavigation)||void 0===bt?void 0:bt.id);if(Dn&&vi&&Di)return Promise.resolve(!0);let Gr,fs,ps;it?(Gr=it.resolve,fs=it.reject,ps=it.promise):ps=new Promise((Rs,ua)=>{Gr=Rs,fs=ua});const eo=++this.navigationId;let ss;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(Te=this.location.getState()),ss=Te&&Te.\u0275routerPageId?Te.\u0275routerPageId:Ve.replaceUrl||Ve.skipLocationChange?null!==(zt=this.browserPageId)&&void 0!==zt?zt:0:(null!==(vn=this.browserPageId)&&void 0!==vn?vn:0)+1):ss=0,this.setTransition({id:eo,targetPageId:ss,source:Ce,restoredState:Te,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:q,extras:Ve,resolve:Gr,reject:fs,promise:ps,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ps.catch(Rs=>Promise.reject(Rs))}setBrowserUrl(q,Ce){const Te=this.urlSerializer.serialize(q),Ve=Object.assign(Object.assign({},Ce.extras.state),this.generateNgRouterState(Ce.id,Ce.targetPageId));this.location.isCurrentPathEqualTo(Te)||Ce.extras.replaceUrl?this.location.replaceState(Te,"",Ve):this.location.go(Te,"",Ve)}restoreHistory(q,Ce=!1){var Te,Ve;if("computed"===this.canceledNavigationResolution){const it=this.currentPageId-q.targetPageId;"popstate"!==q.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(Te=this.currentNavigation)||void 0===Te?void 0:Te.finalUrl)||0===it?this.currentUrlTree===(null===(Ve=this.currentNavigation)||void 0===Ve?void 0:Ve.finalUrl)&&0===it&&(this.resetState(q),this.browserUrlTree=q.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(it)}else"replace"===this.canceledNavigationResolution&&(Ce&&this.resetState(q),this.resetUrlToCurrentUrlTree())}resetState(q){this.routerState=q.currentRouterState,this.currentUrlTree=q.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,q.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(q,Ce){const Te=new J(q.id,this.serializeUrl(q.extractedUrl),Ce);this.triggerEvent(Te),q.resolve(!1)}generateNgRouterState(q,Ce){return"computed"===this.canceledNavigationResolution?{navigationId:q,\u0275routerPageId:Ce}:{navigationId:q}}}return me.\u0275fac=function(q){n.\u0275\u0275invalidFactory()},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();function ii(me){return"imperative"!==me}let Hi=(()=>{class me{constructor(q,Ce,Te,Ve,it){this.router=q,this.route=Ce,this.tabIndexAttribute=Te,this.renderer=Ve,this.el=it,this.commands=null,this.onChanges=new c.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(q){if(null!=this.tabIndexAttribute)return;const Ce=this.renderer,Te=this.el.nativeElement;null!==q?Ce.setAttribute(Te,"tabindex",q):Ce.removeAttribute(Te,"tabindex")}ngOnChanges(q){this.onChanges.next(this)}set routerLink(q){null!=q?(this.commands=Array.isArray(q)?q:[q],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const q={skipLocationChange:dr(this.skipLocationChange),replaceUrl:dr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,q),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dr(this.preserveFragment)})}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(B),n.\u0275\u0275injectAttribute("tabindex"),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(q,Ce){1&q&&n.\u0275\u0275listener("click",function(){return Ce.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.\u0275\u0275NgOnChangesFeature]}),me})(),Zn=(()=>{class me{constructor(q,Ce,Te){this.router=q,this.route=Ce,this.locationStrategy=Te,this.commands=null,this.href=null,this.onChanges=new c.xQ,this.subscription=q.events.subscribe(Ve=>{Ve instanceof $&&this.updateTargetUrlAndHref()})}set routerLink(q){this.commands=null!=q?Array.isArray(q)?q:[q]:null}ngOnChanges(q){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(q,Ce,Te,Ve,it){if(0!==q||Ce||Te||Ve||it||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const bt={skipLocationChange:dr(this.skipLocationChange),replaceUrl:dr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,bt),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:dr(this.preserveFragment)})}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(B),n.\u0275\u0275directiveInject(Y.LocationStrategy))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(q,Ce){1&q&&n.\u0275\u0275listener("click",function(Ve){return Ce.onClick(Ve.button,Ve.ctrlKey,Ve.shiftKey,Ve.altKey,Ve.metaKey)}),2&q&&n.\u0275\u0275attribute("target",Ce.target)("href",Ce.href,n.\u0275\u0275sanitizeUrl)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.\u0275\u0275NgOnChangesFeature]}),me})();function dr(me){return""===me||!!me}let Si=(()=>{class me{constructor(q,Ce,Te,Ve,it,bt){this.router=q,this.element=Ce,this.renderer=Te,this.cdr=Ve,this.link=it,this.linkWithHref=bt,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new n.EventEmitter,this.routerEventsSubscription=q.events.subscribe(zt=>{zt instanceof $&&this.update()})}ngAfterContentInit(){(0,v.of)(this.links.changes,this.linksWithHrefs.changes,(0,v.of)(null)).pipe((0,ne.J)()).subscribe(q=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var q;null===(q=this.linkInputChangesSubscription)||void 0===q||q.unsubscribe();const Ce=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Te=>!!Te).map(Te=>Te.onChanges);this.linkInputChangesSubscription=(0,f.D)(Ce).pipe((0,ne.J)()).subscribe(Te=>{this.isActive!==this.isLinkActive(this.router)(Te)&&this.update()})}set routerLinkActive(q){const Ce=Array.isArray(q)?q:q.split(" ");this.classes=Ce.filter(Te=>!!Te)}ngOnChanges(q){this.update()}ngOnDestroy(){var q;this.routerEventsSubscription.unsubscribe(),null===(q=this.linkInputChangesSubscription)||void 0===q||q.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const q=this.hasActiveLinks();this.isActive!==q&&(this.isActive=q,this.cdr.markForCheck(),this.classes.forEach(Ce=>{q?this.renderer.addClass(this.element.nativeElement,Ce):this.renderer.removeClass(this.element.nativeElement,Ce)}),this.isActiveChange.emit(q))})}isLinkActive(q){const Ce=function(me){return!!me.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Te=>!!Te.urlTree&&q.isActive(Te.urlTree,Ce)}hasActiveLinks(){const q=this.isLinkActive(this.router);return this.link&&q(this.link)||this.linkWithHref&&q(this.linkWithHref)||this.links.some(q)||this.linksWithHrefs.some(q)}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275directiveInject(En),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Hi,8),n.\u0275\u0275directiveInject(Zn,8))},me.\u0275dir=n.\u0275\u0275defineDirective({type:me,selectors:[["","routerLinkActive",""]],contentQueries:function(q,Ce,Te){if(1&q&&(n.\u0275\u0275contentQuery(Te,Hi,5),n.\u0275\u0275contentQuery(Te,Zn,5)),2&q){let Ve;n.\u0275\u0275queryRefresh(Ve=n.\u0275\u0275loadQuery())&&(Ce.links=Ve),n.\u0275\u0275queryRefresh(Ve=n.\u0275\u0275loadQuery())&&(Ce.linksWithHrefs=Ve)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[n.\u0275\u0275NgOnChangesFeature]}),me})();class ws{}class or{preload(oe,q){return q().pipe((0,O.K)(()=>(0,v.of)(null)))}}class ar{preload(oe,q){return(0,v.of)(null)}}let Ir=(()=>{class me{constructor(q,Ce,Te,Ve){this.router=q,this.injector=Te,this.preloadingStrategy=Ve,this.loader=new Pr(Te,Ce,zt=>q.triggerEvent(new Je(zt)),zt=>q.triggerEvent(new gt(zt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,D.h)(q=>q instanceof $),(0,w.b)(()=>this.preload())).subscribe(()=>{})}preload(){const q=this.injector.get(n.NgModuleRef);return this.processRoutes(q,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(q,Ce){const Te=[];for(const Ve of Ce)if(Ve.loadChildren&&!Ve.canLoad&&Ve._loadedConfig){const it=Ve._loadedConfig;Te.push(this.processRoutes(it.module,it.routes))}else Ve.loadChildren&&!Ve.canLoad?Te.push(this.preloadConfig(q,Ve)):Ve.children&&Te.push(this.processRoutes(q,Ve.children));return(0,f.D)(Te).pipe((0,ne.J)(),(0,l.U)(Ve=>{}))}preloadConfig(q,Ce){return this.preloadingStrategy.preload(Ce,()=>(Ce._loadedConfig?(0,v.of)(Ce._loadedConfig):this.loader.load(q.injector,Ce)).pipe((0,M.zg)(Ve=>(Ce._loadedConfig=Ve,this.processRoutes(Ve.module,Ve.routes)))))}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(En),n.\u0275\u0275inject(n.Compiler),n.\u0275\u0275inject(n.Injector),n.\u0275\u0275inject(ws))},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})(),_r=(()=>{class me{constructor(q,Ce,Te={}){this.router=q,this.viewportScroller=Ce,this.options=Te,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Te.scrollPositionRestoration=Te.scrollPositionRestoration||"disabled",Te.anchorScrolling=Te.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(q=>{q instanceof te?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=q.navigationTrigger,this.restoredId=q.restoredState?q.restoredState.navigationId:0):q instanceof $&&(this.lastId=q.id,this.scheduleScrollEvent(q,this.router.parseUrl(q.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(q=>{q instanceof vt&&(q.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(q.position):q.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(q.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(q,Ce){this.router.triggerEvent(new vt(q,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ce))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return me.\u0275fac=function(q){n.\u0275\u0275invalidFactory()},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();const Br=new n.InjectionToken("ROUTER_CONFIGURATION"),Vs=new n.InjectionToken("ROUTER_FORROOT_GUARD"),qs=[Y.Location,{provide:Se,useClass:ee},{provide:En,useFactory:function(me,oe,q,Ce,Te,Ve,it={},bt,zt){const vn=new En(null,me,oe,q,Ce,Te,x(Ve));return bt&&(vn.urlHandlingStrategy=bt),zt&&(vn.routeReuseStrategy=zt),z(it,vn),it.enableTracing&&vn.events.subscribe(fi=>{var Dn,vi;null===(Dn=console.group)||void 0===Dn||Dn.call(console,`Router Event: ${fi.constructor.name}`),console.log(fi.toString()),console.log(fi),null===(vi=console.groupEnd)||void 0===vi||vi.call(console)}),vn},deps:[Se,hr,Y.Location,n.Injector,n.Compiler,zi,Br,[ys,new n.Optional],[fr,new n.Optional]]},hr,{provide:B,useFactory:function(me){return me.routerState.root},deps:[En]},Ir,ar,or,{provide:Br,useValue:{enableTracing:!1}}];function ns(){return new n.NgProbeToken("Router",En)}let rs=(()=>{class me{constructor(q,Ce){}static forRoot(q,Ce){return{ngModule:me,providers:[qs,Ss(q),{provide:Vs,useFactory:Ms,deps:[[En,new n.Optional,new n.SkipSelf]]},{provide:Br,useValue:Ce||{}},{provide:Y.LocationStrategy,useFactory:Js,deps:[Y.PlatformLocation,[new n.Inject(Y.APP_BASE_HREF),new n.Optional],Br]},{provide:_r,useFactory:$s,deps:[En,Y.ViewportScroller,Br]},{provide:ws,useExisting:Ce&&Ce.preloadingStrategy?Ce.preloadingStrategy:ar},{provide:n.NgProbeToken,multi:!0,useFactory:ns},[je,{provide:n.APP_INITIALIZER,multi:!0,useFactory:Mt,deps:[je]},{provide:ln,useFactory:jt,deps:[je]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:ln}]]}}static forChild(q){return{ngModule:me,providers:[Ss(q)]}}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(Vs,8),n.\u0275\u0275inject(En,8))},me.\u0275mod=n.\u0275\u0275defineNgModule({type:me}),me.\u0275inj=n.\u0275\u0275defineInjector({}),me})();function $s(me,oe,q){return q.scrollOffset&&oe.setOffset(q.scrollOffset),new _r(me,oe,q)}function Js(me,oe,q={}){return q.useHash?new Y.HashLocationStrategy(me,oe):new Y.PathLocationStrategy(me,oe)}function Ms(me){return"guarded"}function Ss(me){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:me},{provide:zi,multi:!0,useValue:me}]}function z(me,oe){me.errorHandler&&(oe.errorHandler=me.errorHandler),me.malformedUriErrorHandler&&(oe.malformedUriErrorHandler=me.malformedUriErrorHandler),me.onSameUrlNavigation&&(oe.onSameUrlNavigation=me.onSameUrlNavigation),me.paramsInheritanceStrategy&&(oe.paramsInheritanceStrategy=me.paramsInheritanceStrategy),me.relativeLinkResolution&&(oe.relativeLinkResolution=me.relativeLinkResolution),me.urlUpdateStrategy&&(oe.urlUpdateStrategy=me.urlUpdateStrategy),me.canceledNavigationResolution&&(oe.canceledNavigationResolution=me.canceledNavigationResolution)}let je=(()=>{class me{constructor(q){this.injector=q,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new c.xQ}appInitializer(){return this.injector.get(Y.LOCATION_INITIALIZED,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Ce=null;const Te=new Promise(bt=>Ce=bt),Ve=this.injector.get(En),it=this.injector.get(Br);return"disabled"===it.initialNavigation?(Ve.setUpLocationChangeListener(),Ce(!0)):"enabled"===it.initialNavigation||"enabledBlocking"===it.initialNavigation?(Ve.hooks.afterPreactivation=()=>this.initNavigation?(0,v.of)(null):(this.initNavigation=!0,Ce(!0),this.resultOfPreactivationDone),Ve.initialNavigation()):Ce(!0),Te})}bootstrapListener(q){const Ce=this.injector.get(Br),Te=this.injector.get(Ir),Ve=this.injector.get(_r),it=this.injector.get(En),bt=this.injector.get(n.ApplicationRef);q===bt.components[0]&&(("enabledNonBlocking"===Ce.initialNavigation||void 0===Ce.initialNavigation)&&it.initialNavigation(),Te.setUpPreloading(),Ve.init(),it.resetRootComponentType(bt.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return me.\u0275fac=function(q){return new(q||me)(n.\u0275\u0275inject(n.Injector))},me.\u0275prov=n.\u0275\u0275defineInjectable({token:me,factory:me.\u0275fac}),me})();function Mt(me){return me.appInitializer.bind(me)}function jt(me){return me.bootstrapListener.bind(me)}const ln=new n.InjectionToken("Router Initializer"),Ki=new n.Version("13.1.1")},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AUTH_CONFIG:()=>AUTH_CONFIG,AbstractValidationHandler:()=>AbstractValidationHandler,AuthConfig:()=>AuthConfig,DateTimeProvider:()=>DateTimeProvider,DefaultHashHandler:()=>DefaultHashHandler,DefaultOAuthInterceptor:()=>DefaultOAuthInterceptor,HashHandler:()=>HashHandler,JwksValidationHandler:()=>JwksValidationHandler,LoginOptions:()=>LoginOptions,MemoryStorage:()=>MemoryStorage,NullValidationHandler:()=>NullValidationHandler,OAuthErrorEvent:()=>OAuthErrorEvent,OAuthEvent:()=>OAuthEvent,OAuthInfoEvent:()=>OAuthInfoEvent,OAuthLogger:()=>OAuthLogger,OAuthModule:()=>OAuthModule,OAuthModuleConfig:()=>OAuthModuleConfig,OAuthNoopResourceServerErrorHandler:()=>OAuthNoopResourceServerErrorHandler,OAuthResourceServerConfig:()=>OAuthResourceServerConfig,OAuthResourceServerErrorHandler:()=>OAuthResourceServerErrorHandler,OAuthService:()=>OAuthService,OAuthStorage:()=>OAuthStorage,OAuthSuccessEvent:()=>OAuthSuccessEvent,ReceivedTokens:()=>ReceivedTokens,SystemDateTimeProvider:()=>SystemDateTimeProvider,UrlHelperService:()=>UrlHelperService,ValidationHandler:()=>ValidationHandler});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7e3),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class ye extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return ye.\u0275fac=function(){let j;return function(n){return(j||(j=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275getInheritedFactory(ye)))(n||ye)}}(),ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class ye{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,n){this.data.set(p,n)}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class ReceivedTokens{}class OAuthEvent{constructor(j){this.type=j}}class OAuthSuccessEvent extends OAuthEvent{constructor(j,p=null){super(j),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(j,p=null){super(j),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(j,p,n=null){super(j),this.reason=p,this.params=n}}function b64DecodeUnicode(ye){const j=ye.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(j).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(ye){return btoa(ye).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(j){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},j&&Object.assign(this,j)}}class WebHttpUrlEncodingCodec{encodeKey(j){return encodeURIComponent(j)}encodeValue(j){return encodeURIComponent(j)}decodeKey(j){return decodeURIComponent(j)}decodeValue(j){return decodeURIComponent(j)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(j){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){let p=this.inferHashAlgorithm(j.idTokenHeader),n=yield this.calcHash(j.accessToken,p),v=base64UrlEncode(n.substr(0,n.length/2)),m=j.idTokenClaims.at_hash.replace(/=/g,"");return v!==m&&(console.error("exptected at_hash: "+v),console.error("actual at_hash: "+m)),v===m})}inferHashAlgorithm(j){let p=j.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class ye{getHashFragmentParams(p){let n=p||window.location.hash;if(n=decodeURIComponent(n),0!==n.indexOf("#"))return{};const f=n.indexOf("?");return n=n.substr(f>-1?f+1:1),this.parseQueryString(n)}parseQueryString(p){const n={};let f,v,m,o,d,u,h;if(null===p)return n;f=p.split("&");for(let r=0;r>6,v[o++]=128|63&d):d<55296||d>=57344?(v[o++]=224|d>>12,v[o++]=128|d>>6&63,v[o++]=128|63&d):(d=65536+((1023&d)<<10|1023&ye.charCodeAt(++n)),v[o++]=240|d>>18,v[o++]=128|d>>12&63,v[o++]=128|d>>6&63,v[o++]=128|63&d);ye=v}else{if("object"!==f)throw new Error(ERROR);if(null===ye)throw new Error(ERROR);if(ARRAY_BUFFER&&ye.constructor===ArrayBuffer)ye=new Uint8Array(ye);else if(!(Array.isArray(ye)||ARRAY_BUFFER&&ArrayBuffer.isView(ye)))throw new Error(ERROR)}ye.length>64&&(ye=new Sha256(j,!0).update(ye).array());var u=[],h=[];for(n=0;n<64;++n){var r=ye[n]||0;u[n]=92^r,h[n]=54^r}Sha256.call(this,j,p),this.update(h),this.oKeyPad=u,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function(ye){if(!this.finalized){var j,p=typeof ye;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===ye)throw new Error(ERROR);if(ARRAY_BUFFER&&ye.constructor===ArrayBuffer)ye=new Uint8Array(ye);else if(!(Array.isArray(ye)||ARRAY_BUFFER&&ArrayBuffer.isView(ye)))throw new Error(ERROR);j=!0}for(var n,v,f=0,m=ye.length,o=this.blocks;f>2]|=ye[f]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(o[v>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=o[16],this.start=v-64,this.hash(),this.hashed=!0):this.start=v}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var ye=this.blocks,j=this.lastByteIndex;ye[16]=this.block,ye[j>>2]|=EXTRA[3&j],this.block=ye[16],j>=56&&(this.hashed||this.hash(),ye[0]=this.block,ye[16]=ye[1]=ye[2]=ye[3]=ye[4]=ye[5]=ye[6]=ye[7]=ye[8]=ye[9]=ye[10]=ye[11]=ye[12]=ye[13]=ye[14]=ye[15]=0),ye[14]=this.hBytes<<3|this.bytes>>>29,ye[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var u,i,g,y,E,T,ye=this.h0,j=this.h1,p=this.h2,n=this.h3,f=this.h4,v=this.h5,m=this.h6,o=this.h7,d=this.blocks;for(u=16;u<64;++u)d[u]=d[u-16]+(((i=d[u-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)+d[u-7]+(((i=d[u-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)<<0;for(T=j&p,u=0;u<64;u+=4)this.first?(this.is224?(g=300032,o=(i=d[0]-1413257819)-150054599<<0,n=i+24177077<<0):(g=704751109,o=(i=d[0]-210244248)-1521486534<<0,n=i+143694565<<0),this.first=!1):(o=n+(i=o+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&v^~f&m)+K[u]+d[u])<<0,n=i+(((ye>>>2|ye<<30)^(ye>>>13|ye<<19)^(ye>>>22|ye<<10))+((g=ye&j)^ye&p^T))<<0),m=p+(i=m+((o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7))+(o&f^~o&v)+K[u+1]+d[u+1])<<0,p=i+(((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+((y=n&ye)^n&j^g))<<0,v=j+(i=v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&o^~m&f)+K[u+2]+d[u+2])<<0,j=i+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((E=p&n)^p&ye^y))<<0,f=ye+(i=f+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&m^~v&o)+K[u+3]+d[u+3])<<0,ye=i+(((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+((T=j&p)^j&n^E))<<0;this.h0=this.h0+ye<<0,this.h1=this.h1+j<<0,this.h2=this.h2+p<<0,this.h3=this.h3+n<<0,this.h4=this.h4+f<<0,this.h5=this.h5+v<<0,this.h6=this.h6+m<<0,this.h7=this.h7+o<<0},Sha256.prototype.hex=function(){this.finalize();var ye=this.h0,j=this.h1,p=this.h2,n=this.h3,f=this.h4,v=this.h5,m=this.h6,o=this.h7,d=HEX_CHARS[ye>>28&15]+HEX_CHARS[ye>>24&15]+HEX_CHARS[ye>>20&15]+HEX_CHARS[ye>>16&15]+HEX_CHARS[ye>>12&15]+HEX_CHARS[ye>>8&15]+HEX_CHARS[ye>>4&15]+HEX_CHARS[15&ye]+HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[15&f]+HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[15&v]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[15&m];return this.is224||(d+=HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]),d},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var ye=this.h0,j=this.h1,p=this.h2,n=this.h3,f=this.h4,v=this.h5,m=this.h6,o=this.h7,d=[ye>>24&255,ye>>16&255,ye>>8&255,255&ye,j>>24&255,j>>16&255,j>>8&255,255&j,p>>24&255,p>>16&255,p>>8&255,255&p,n>>24&255,n>>16&255,n>>8&255,255&n,f>>24&255,f>>16&255,f>>8&255,255&f,v>>24&255,v>>16&255,v>>8&255,255&v,m>>24&255,m>>16&255,m>>8&255,255&m];return this.is224||d.push(o>>24&255,o>>16&255,o>>8&255,255&o),d},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var ye=new ArrayBuffer(this.is224?28:32),j=new DataView(ye);return j.setUint32(0,this.h0),j.setUint32(4,this.h1),j.setUint32(8,this.h2),j.setUint32(12,this.h3),j.setUint32(16,this.h4),j.setUint32(20,this.h5),j.setUint32(24,this.h6),this.is224||j.setUint32(28,this.h7),ye},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var ye=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(ye),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(ye){if("string"!=typeof ye)throw new TypeError("expected string");var j,p=ye,n=new Uint8Array(p.length);for(j=0;j{class ye{calcHash(p,n){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})}toHashString2(p){let n="";for(let f of p)n+=String.fromCharCode(f);return n}toHashString(p){const n=new Uint8Array(p);let f="";for(let v of n)f+=String.fromCharCode(v);return f}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})(),OAuthService=(()=>{class ye extends AuthConfig{constructor(p,n,f,v,m,o,d,u,h,r){var s;super(),this.ngZone=p,this.http=n,this.config=m,this.urlHelper=o,this.logger=d,this.crypto=u,this.dateTimeService=r,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=h,m||(m={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),v&&(this.tokenValidationHandler=v),m&&this.configure(m);try{f?this.setStorage(f):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(i){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",i)}if(this.checkLocalStorageAccessable()){const i=null===(s=null==window?void 0:window.navigator)||void 0===s?void 0:s.userAgent;((null==i?void 0:i.includes("MSIE "))||(null==i?void 0:i.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const p="test";try{return void 0!==window.localStorage&&(localStorage.setItem(p,p),localStorage.removeItem(p),!0)}catch(n){return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},n,f=!0){let v=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(m=>{"token_received"===m.type?v=!0:"logout"===m.type&&(v=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>"token_expires"===m.type&&(null==n||"any"===n||m.info===n)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(m=>{v&&this.refreshInternal(p,f).catch(o=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,n){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,n):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(n=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(n=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const n=[],f=this.validateUrlForHttps(p),v=this.validateUrlAgainstIssuer(p);return f||n.push("https for all urls required. Also for urls received by discovery."),v||n.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),n}validateUrlForHttps(p){if(!p)return!0;const n=p.toLowerCase();return!(!1!==this.requireHttps&&(!n.match(/^http:\/\/localhost($|[:\/])/)&&!n.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||n.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,n){if(!p)throw new Error(`'${n}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${n}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),n=this.getAccessTokenStoredAt(),f=this.calcTimeout(n,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(v=>{this.ngZone.run(()=>{this.eventsSubject.next(v)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),n=this.getIdTokenStoredAt(),f=this.calcTimeout(n,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(f)).subscribe(v=>{this.ngZone.run(()=>{this.eventsSubject.next(v)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,n){const f=this.dateTimeService.now();return Math.max(0,(n-p)*this.timeoutFactor-(f-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((n,f)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(v=>{if(!this.validateDiscoveryDocument(v))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void f("discovery_document_validation_error");this.loginUrl=v.authorization_endpoint,this.logoutUrl=v.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=v.grant_types_supported,this.issuer=v.issuer,this.tokenEndpoint=v.token_endpoint,this.userinfoEndpoint=v.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=v.jwks_uri,this.sessionCheckIFrameUrl=v.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(v),this.revocationEndpoint=v.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(m=>{const d=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:v,jwks:m});this.eventsSubject.next(d),n(d)}).catch(m=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",m)),f(m)})},v=>{this.logger.error("error loading discovery document",v),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",v)),f(v)}):f("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,n)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(f=>{this.jwks=f,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(f)},f=>{this.logger.error("error loading jwks",f),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",f)),n(f)}):p(null)})}validateDiscoveryDocument(p){let n;return this.skipIssuerCheck||p.issuer===this.issuer?(n=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),n.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),n.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.token_endpoint),n.length>0&&this.logger.error("error validating token_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),n.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),n.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(p.jwks_uri),n.length>0?(this.logger.error("error validating jwks_uri in discovery document",n),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){return this.fetchTokenUsingPasswordFlow(p,n,f).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,n)=>{const f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:f,observe:"response",responseType:"text"}).subscribe(v=>{if(this.debug("userinfo received",JSON.stringify(v)),v.headers.get("content-type").startsWith("application/json")){let m=JSON.parse(v.body);const o=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!o.sub||m.sub!==o.sub))return void n("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");m=Object.assign({},o,m),this._storage.setItem("id_token_claims_obj",JSON.stringify(m)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:m})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(v.body))},v=>{this.logger.error("error loading user info",v),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",v)),n(v)})})}fetchTokenUsingPasswordFlow(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){return this.fetchTokenUsingGrant("password",{username:p,password:n},f)}fetchTokenUsingGrant(p,n,f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let v=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const m=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+m)}if(this.useHttpBasicAuth||(v=v.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(v=v.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))v=v.set(m,this.customQueryParams[m]);for(const m of Object.keys(n))v=v.set(m,n[m]);return f=f.set("Content-Type","application/x-www-form-urlencoded"),new Promise((m,o)=>{this.http.post(this.tokenEndpoint,v,{headers:f}).subscribe(d=>{this.debug("tokenResponse",d),this.storeAccessTokenResponse(d.access_token,d.refresh_token,d.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d.scope,this.extractRecognizedCustomParameters(d)),this.oidc&&d.id_token&&this.processIdToken(d.id_token,d.access_token).then(u=>{this.storeIdToken(u),m(d)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),m(d)},d=>{this.logger.error("Error performing ${grantType} flow",d),this.eventsSubject.next(new OAuthErrorEvent("token_error",d)),o(d)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,n)=>{let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),v=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const m=btoa(`${this.clientId}:${this.dummyClientSecret}`);v=v.set("Authorization","Basic "+m)}if(this.useHttpBasicAuth||(f=f.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(f=f.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))f=f.set(m,this.customQueryParams[m]);this.http.post(this.tokenEndpoint,f,{headers:v}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(m=>m.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(m.id_token,m.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(o=>this.storeIdToken(o)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(o=>m)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(m))).subscribe(m=>{this.debug("refresh tokenResponse",m),this.storeAccessTokenResponse(m.access_token,m.refresh_token,m.expires_in||this.fallbackAccessTokenExpirationTimeInSec,m.scope,this.extractRecognizedCustomParameters(m)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(m)},m=>{this.logger.error("Error refreshing token",m),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",m)),n(m)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const n=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:n,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(f=>this.debug("tryLogin during silent refresh failed",f))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},n=!0){const f=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const v=this.document.getElementById(this.silentRefreshIFrameName);v&&this.document.body.removeChild(v),this.silentRefreshSubject=f.sub;const m=this.document.createElement("iframe");m.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,n,p).then(r=>{m.setAttribute("src",r),this.silentRefreshShowIFrame||(m.style.display="none"),this.document.body.appendChild(m)});const d=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(r=>r instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),u=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(r=>"token_received"===r.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),h=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([d,u,h]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(r=>{if(r instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===r.type||(r=new OAuthErrorEvent("silent_refresh_error",r)),this.eventsSubject.next(r),r;return"token_received"===r.type&&(r=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(r)),r})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(n=>new Promise((f,v)=>{let d,o=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(o=p.windowRef,o.location.href=n):o=window.open(n,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const u=c=>{this.tryLogin({customHashFragment:c,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{r(),f(!0)},l=>{r(),v(l)})};o?d=window.setInterval(()=>{(!o||o.closed)&&(r(),v(new OAuthErrorEvent("popup_closed",{})))},500):v(new OAuthErrorEvent("popup_blocked",{}));const r=()=>{window.clearInterval(d),window.removeEventListener("storage",i),window.removeEventListener("message",s),null!==o&&o.close(),o=null},s=c=>{const l=this.processMessageEventMessage(c);l&&null!==l?(window.removeEventListener("storage",i),u(l)):console.log("false event firing")},i=c=>{"auth_hash"===c.key&&(window.removeEventListener("message",s),u(c.newValue))};window.addEventListener("message",s),window.addEventListener("storage",i)}))}calculatePopupFeatures(p){const n=p.height||470,f=p.width||500,v=window.screenLeft+(window.outerWidth-f)/2;return`location=no,toolbar=no,width=${f},height=${n},top=${window.screenTop+(window.outerHeight-n)/2},left=${v}`}processMessageEventMessage(p){let n="#";if(this.silentRefreshMessagePrefix&&(n+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const f=p.data;return f.startsWith(n)?"#"+f.substr(n.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const n=p.origin.toLowerCase(),f=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),f.startsWith(n)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",n,"expected",f,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const n=this.document.createElement("iframe");n.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),n.setAttribute("src",this.sessionCheckIFrameUrl),n.style.display="none",this.document.body.appendChild(n),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const n=this.getSessionState();n||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+n,this.issuer)}createLoginUrl(p="",n="",f="",v=!1,m={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){const o=this;let d;d=f||this.redirectUri;const u=yield this.createAndSaveNonce();if(p=p?u+this.config.nonceStateSeparator+encodeURIComponent(p):u,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const h=o.loginUrl.indexOf("?")>-1?"&":"?";let r=o.scope;this.oidc&&!r.match(/(^|\s)openid($|\s)/)&&(r="openid "+r);let s=o.loginUrl+h+"response_type="+encodeURIComponent(o.responseType)+"&client_id="+encodeURIComponent(o.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(d)+"&scope="+encodeURIComponent(r);if(this.responseType.includes("code")&&!this.disablePKCE){const[i,c]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",c):this._storage.setItem("PKCE_verifier",c),s+="&code_challenge="+i,s+="&code_challenge_method=S256"}n&&(s+="&login_hint="+encodeURIComponent(n)),o.resource&&(s+="&resource="+encodeURIComponent(o.resource)),o.oidc&&(s+="&nonce="+encodeURIComponent(u)),v&&(s+="&prompt=none");for(const i of Object.keys(m))s+="&"+encodeURIComponent(i)+"="+encodeURIComponent(m[i]);if(this.customQueryParams)for(const i of Object.getOwnPropertyNames(this.customQueryParams))s+="&"+i+"="+encodeURIComponent(this.customQueryParams[i]);return s})}initImplicitFlowInternal(p="",n=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},v=null;"string"==typeof n?v=n:"object"==typeof n&&(f=n),this.createLoginUrl(p,v,null,!1,f).then(this.config.openUri).catch(m=>{console.error("Error in initImplicitFlow",m),this.inImplicitFlow=!1})}initImplicitFlow(p="",n=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,n):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(f=>"discovery_document_loaded"===f.type)).subscribe(f=>this.initImplicitFlowInternal(p,n))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const n=this;if(p.onTokenReceived){const f={idClaims:n.getIdentityClaims(),idToken:n.getIdToken(),accessToken:n.getAccessToken(),state:n.state};p.onTokenReceived(f)}}storeAccessTokenResponse(p,n,f,v,m){if(this._storage.setItem("access_token",p),v&&!Array.isArray(v)?this._storage.setItem("granted_scopes",JSON.stringify(v.split(" "))):v&&Array.isArray(v)&&this._storage.setItem("granted_scopes",JSON.stringify(v)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),f){const o=1e3*f,u=this.dateTimeService.new().getTime()+o;this._storage.setItem("expires_at",""+u)}n&&this._storage.setItem("refresh_token",n),m&&m.forEach((o,d)=>{this._storage.setItem(d,o)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(n=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){const n=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,f=this.getCodePartsFromUrl(n),v=f.code,m=f.state,o=f.session_state;if(!p.preventClearHashAfterLogin){const h=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,h)}let[d,u]=this.parseState(m);if(this.state=u,f.error){this.debug("error trying to login"),this.handleLoginError(p,f);const h=new OAuthErrorEvent("code_error",{},f);return this.eventsSubject.next(h),Promise.reject(h)}if(!p.disableNonceCheck){if(!d)return this.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!this.validateNonce(d)){const r=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(r),Promise.reject(r)}return this.storeSessionState(o),v&&(yield this.getTokenFromCode(v,p),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,n){let f=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",n.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let v;v=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),v?f=f.set("code_verifier",v):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(f,n)}fetchAndProcessToken(p,n){n=n||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let f=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const v=btoa(`${this.clientId}:${this.dummyClientSecret}`);f=f.set("Authorization","Basic "+v)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((v,m)=>{if(this.customQueryParams)for(let o of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(o,this.customQueryParams[o]);this.http.post(this.tokenEndpoint,p,{headers:f}).subscribe(o=>{this.debug("refresh tokenResponse",o),this.storeAccessTokenResponse(o.access_token,o.refresh_token,o.expires_in||this.fallbackAccessTokenExpirationTimeInSec,o.scope,this.extractRecognizedCustomParameters(o)),this.oidc&&o.id_token?this.processIdToken(o.id_token,o.access_token,n.disableNonceCheck).then(d=>{this.storeIdToken(d),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),v(o)}).catch(d=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",d)),console.error("Error validating tokens"),console.error(d),m(d)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),v(o))},o=>{console.error("Error getting token",o),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",o)),m(o)})})}tryLoginImplicitFlow(p=null){let n;n=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",n);const f=n.state;let[v,m]=this.parseState(f);if(this.state=m,n.error){this.debug("error trying to login"),this.handleLoginError(p,n);const r=new OAuthErrorEvent("token_error",{},n);return this.eventsSubject.next(r),Promise.reject(r)}const o=n.access_token,d=n.id_token,u=n.session_state,h=n.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!o||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!f||this.oidc&&!d)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!u&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(v)){const s=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(s),Promise.reject(s)}return this.requestAccessToken&&this.storeAccessTokenResponse(o,null,n.expires_in||this.fallbackAccessTokenExpirationTimeInSec,h),this.oidc?this.processIdToken(d,o,p.disableNonceCheck).then(r=>p.validationHandler?p.validationHandler({accessToken:o,idClaims:r.idTokenClaims,idToken:r.idToken,state:f}).then(s=>r):r).then(r=>(this.storeIdToken(r),this.storeSessionState(u),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(r=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",r)),this.logger.error("Error validating tokens"),this.logger.error(r),Promise.reject(r))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let n=p,f="";if(p){const v=p.indexOf(this.config.nonceStateSeparator);v>-1&&(n=p.substr(0,v),f=p.substr(v+this.config.nonceStateSeparator.length))}return[n,f]}validateNonce(p){let n;return n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),n===p||(console.error("Validating access_token failed, wrong state/nonce.",n,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,n){p.onLoginError&&p.onLoginError(n),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,n,f=!1){const v=p.split("."),o=b64DecodeUnicode(this.padBase64(v[0])),d=JSON.parse(o),h=b64DecodeUnicode(this.padBase64(v[1])),r=JSON.parse(h);let s;if(s=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(r.aud)){if(r.aud.every(E=>E!==this.clientId)){const E="Wrong audience: "+r.aud.join(",");return this.logger.warn(E),Promise.reject(E)}}else if(r.aud!==this.clientId){const E="Wrong audience: "+r.aud;return this.logger.warn(E),Promise.reject(E)}if(!r.sub){const E="No sub claim in id_token";return this.logger.warn(E),Promise.reject(E)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==r.sub){const E=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${r.sub}`;return this.logger.warn(E),Promise.reject(E)}if(!r.iat){const E="No iat claim in id_token";return this.logger.warn(E),Promise.reject(E)}if(!this.skipIssuerCheck&&r.iss!==this.issuer){const E="Wrong issuer: "+r.iss;return this.logger.warn(E),Promise.reject(E)}if(!f&&r.nonce!==s){const E="Wrong nonce: "+r.nonce;return this.logger.warn(E),Promise.reject(E)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!r.at_hash){const E="An at_hash is needed!";return this.logger.warn(E),Promise.reject(E)}const i=this.dateTimeService.now(),c=1e3*r.iat,l=1e3*r.exp,g=this.getClockSkewInMsec();if(c-g>=i||l+g<=i){const E="Token has expired";return console.error(E),console.error({now:i,issuedAtMSec:c,expiresAtMSec:l}),Promise.reject(E)}const y={accessToken:n,idToken:p,jwks:this.jwks,idTokenClaims:r,idTokenHeader:d,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(y).then(E=>({idToken:p,idTokenClaims:r,idTokenClaimsJson:h,idTokenHeader:d,idTokenHeaderJson:o,idTokenExpiresAt:l})):this.checkAtHash(y).then(E=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!E){const T="Wrong at_hash";return this.logger.warn(T),Promise.reject(T)}return this.checkSignature(y).then(T=>{const O={idToken:p,idTokenClaims:r,idTokenClaimsJson:h,idTokenHeader:d,idTokenHeaderJson:o,idTokenExpiresAt:l};return this.disableAtHashCheck?O:this.checkAtHash(y).then(w=>{if(this.requestAccessToken&&!w){const A="Wrong at_hash";return this.logger.warn(A),Promise.reject(A)}return O})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),n=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},n=""){let f=!1;"boolean"==typeof p&&(f=p,p={});const v=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(o=>this._storage.removeItem(o)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||f||!v&&!this.postLogoutRedirectUri)return;let m;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)m=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(v)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec});v&&(o=o.set("id_token_hint",v));const d=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";d&&(o=o.set("post_logout_redirect_uri",d),n&&(o=o.set("state",n)));for(let u in p)o=o.set(u,p[u]);m=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+o.toString()}this.config.openUri(m)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(n){return p.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",n):p._storage.setItem("nonce",n),n})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const n=this.document.getElementById(this.sessionCheckIFrameName);n&&n.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let f=45,v="";const m="undefined"==typeof self?null:self.crypto||self.msCrypto;if(m){let o=new Uint8Array(f);m.getRandomValues(o),o.map||(o.map=Array.prototype.map),o=o.map(d=>n.charCodeAt(d%n.length)),v=String.fromCharCode.apply(null,o)}else for(;0"discovery_document_loaded"===f.type)).subscribe(f=>this.initCodeFlowInternal(p,n))}initCodeFlowInternal(p="",n={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let f={},v=null;"string"==typeof n?v=n:"object"==typeof n&&(f=n),this.createLoginUrl(p,v,null,!1,f).then(this.config.openUri).catch(m=>{console.error("Error in initAuthorizationCodeFlow"),console.error(m)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const p=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(p,"sha-256")),p]})}extractRecognizedCustomParameters(p){let n=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(f=>{p[f]&&n.set(f,JSON.stringify(p[f]))}),n}revokeTokenAndLogout(p={},n=!1){let f=this.revocationEndpoint,v=this.getAccessToken(),m=this.getRefreshToken();if(!v)return;let o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpParams({encoder:new WebHttpUrlEncodingCodec}),d=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpHeaders).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const u=btoa(`${this.clientId}:${this.dummyClientSecret}`);d=d.set("Authorization","Basic "+u)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const u of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(u,this.customQueryParams[u]);return new Promise((u,h)=>{let r,s;if(v){let i=o.set("token",v).set("token_type_hint","access_token");r=this.http.post(f,i,{headers:d})}else r=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(m){let i=o.set("token",m).set("token_type_hint","refresh_token");s=this.http.post(f,i,{headers:d})}else s=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);n&&(r=r.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(i=>0===i.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(i))),s=s.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(i=>0===i.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(i)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([r,s]).subscribe(i=>{this.logOut(p),u(i),this.logger.info("Token successfully revoked")},i=>{this.logger.error("Error revoking token",i),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",i)),h(i)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return ye.\u0275fac=function(p){return new(p||ye)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_core__WEBPACK_IMPORTED_MODULE_1__.NgZone),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HttpClient),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(_angular_common__WEBPACK_IMPORTED_MODULE_18__.DOCUMENT),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(DateTimeProvider))},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(j){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(j)}}let DefaultOAuthInterceptor=(()=>{class ye{constructor(p,n,f){this.oAuthService=p,this.errorHandler=n,this.moduleConfig=f}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(n=>p.toLowerCase().startsWith(n.toLowerCase()))}intercept(p,n){const f=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(f)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>!!m)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(m=>"token_received"===m.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(m=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(m=>{if(m){const d=p.headers.set("Authorization","Bearer "+m);p=p.clone({headers:d})}return n.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(o=>this.errorHandler.handleError(o)))})):n.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>this.errorHandler.handleError(m))):n.handle(p)}}return ye.\u0275fac=function(p){return new(p||ye)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275inject(OAuthModuleConfig,8))},ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye})();class NullValidationHandler{validateSignature(j){return Promise.resolve(null)}validateAtHash(j){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class ye{static forRoot(p=null,n=NullValidationHandler){return{ngModule:ye,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:n},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.HTTP_INTERCEPTORS,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return ye.\u0275fac=function(p){return new(p||ye)},ye.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineNgModule({type:ye}),ye.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.\u0275\u0275defineInjector({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.CommonModule]]}),ye})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.InjectionToken("AUTH_CONFIG")},4956:(ye,j,p)=>{"use strict";function o(P){let Ie=P.length;for(;--Ie>=0;)P[Ie]=0}p.r(j),p.d(j,{Deflate:()=>Co,Inflate:()=>Xa,constants:()=>Yr,default:()=>ma,deflate:()=>ho,deflateRaw:()=>fa,gzip:()=>Qa,inflate:()=>Wl,inflateRaw:()=>zl,ungzip:()=>pa});const I=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),b=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Y=new Array(576);o(Y);const Q=new Array(60);o(Q);const te=new Array(512);o(te);const $=new Array(256);o($);const J=new Array(29);o(J);const ie=new Array(30);function ae(P,Ie,he,Ge,Fe){this.static_tree=P,this.extra_bits=Ie,this.extra_base=he,this.elems=Ge,this.max_length=Fe,this.has_stree=P&&P.length}let le,Oe,Le;function Ye(P,Ie){this.dyn_tree=P,this.max_code=0,this.stat_desc=Ie}o(ie);const Je=P=>P<256?te[P]:te[256+(P>>>7)],gt=(P,Ie)=>{P.pending_buf[P.pending++]=255&Ie,P.pending_buf[P.pending++]=Ie>>>8&255},Ue=(P,Ie,he)=>{P.bi_valid>16-he?(P.bi_buf|=Ie<>16-P.bi_valid,P.bi_valid+=he-16):(P.bi_buf|=Ie<{Ue(P,he[2*Ie],he[2*Ie+1])},at=(P,Ie)=>{let he=0;do{he|=1&P,P>>>=1,he<<=1}while(--Ie>0);return he>>>1},yt=(P,Ie,he)=>{const Ge=new Array(16);let ht,Ut,Fe=0;for(ht=1;ht<=15;ht++)Ge[ht]=Fe=Fe+he[ht-1]<<1;for(Ut=0;Ut<=Ie;Ut++){let kt=P[2*Ut+1];0!==kt&&(P[2*Ut]=at(Ge[kt]++,kt))}},_t=P=>{let Ie;for(Ie=0;Ie<286;Ie++)P.dyn_ltree[2*Ie]=0;for(Ie=0;Ie<30;Ie++)P.dyn_dtree[2*Ie]=0;for(Ie=0;Ie<19;Ie++)P.bl_tree[2*Ie]=0;P.dyn_ltree[512]=1,P.opt_len=P.static_len=0,P.last_lit=P.matches=0},At=P=>{P.bi_valid>8?gt(P,P.bi_buf):P.bi_valid>0&&(P.pending_buf[P.pending++]=P.bi_buf),P.bi_buf=0,P.bi_valid=0},Bt=(P,Ie,he,Ge)=>{const Fe=2*Ie,ht=2*he;return P[Fe]{const Ge=P.heap[he];let Fe=he<<1;for(;Fe<=P.heap_len&&(Fe{let Ge,Fe,Ut,kt,ht=0;if(0!==P.last_lit)do{Ge=P.pending_buf[P.d_buf+2*ht]<<8|P.pending_buf[P.d_buf+2*ht+1],Fe=P.pending_buf[P.l_buf+ht],ht++,0===Ge?tt(P,Fe,Ie):(Ut=$[Fe],tt(P,Ut+256+1,Ie),kt=I[Ut],0!==kt&&(Fe-=J[Ut],Ue(P,Fe,kt)),Ge--,Ut=Je(Ge),tt(P,Ut,he),kt=b[Ut],0!==kt&&(Ge-=ie[Ut],Ue(P,Ge,kt)))}while(ht{const he=Ie.dyn_tree,Ge=Ie.stat_desc.static_tree,Fe=Ie.stat_desc.has_stree,ht=Ie.stat_desc.elems;let Ut,kt,wt,bn=-1;for(P.heap_len=0,P.heap_max=573,Ut=0;Ut>1;Ut>=1;Ut--)Et(P,he,Ut);wt=ht;do{Ut=P.heap[1],P.heap[1]=P.heap[P.heap_len--],Et(P,he,1),kt=P.heap[1],P.heap[--P.heap_max]=Ut,P.heap[--P.heap_max]=kt,he[2*wt]=he[2*Ut]+he[2*kt],P.depth[wt]=(P.depth[Ut]>=P.depth[kt]?P.depth[Ut]:P.depth[kt])+1,he[2*Ut+1]=he[2*kt+1]=wt,P.heap[1]=wt++,Et(P,he,1)}while(P.heap_len>=2);P.heap[--P.heap_max]=P.heap[1],((P,Ie)=>{const he=Ie.dyn_tree,Ge=Ie.max_code,Fe=Ie.stat_desc.static_tree,ht=Ie.stat_desc.has_stree,Ut=Ie.stat_desc.extra_bits,kt=Ie.stat_desc.extra_base,bn=Ie.stat_desc.max_length;let wt,$t,Ii,hn,en,Nn,er=0;for(hn=0;hn<=15;hn++)P.bl_count[hn]=0;for(he[2*P.heap[P.heap_max]+1]=0,wt=P.heap_max+1;wt<573;wt++)$t=P.heap[wt],hn=he[2*he[2*$t+1]+1]+1,hn>bn&&(hn=bn,er++),he[2*$t+1]=hn,!($t>Ge)&&(P.bl_count[hn]++,en=0,$t>=kt&&(en=Ut[$t-kt]),Nn=he[2*$t],P.opt_len+=Nn*(hn+en),ht&&(P.static_len+=Nn*(Fe[2*$t+1]+en)));if(0!==er){do{for(hn=bn-1;0===P.bl_count[hn];)hn--;P.bl_count[hn]--,P.bl_count[hn+1]+=2,P.bl_count[bn]--,er-=2}while(er>0);for(hn=bn;0!==hn;hn--)for($t=P.bl_count[hn];0!==$t;)Ii=P.heap[--wt],!(Ii>Ge)&&(he[2*Ii+1]!==hn&&(P.opt_len+=(hn-he[2*Ii+1])*he[2*Ii],he[2*Ii+1]=hn),$t--)}})(P,Ie),yt(he,bn,P.bl_count)},H=(P,Ie,he)=>{let Ge,ht,Fe=-1,Ut=Ie[1],kt=0,bn=7,wt=4;for(0===Ut&&(bn=138,wt=3),Ie[2*(he+1)+1]=65535,Ge=0;Ge<=he;Ge++)ht=Ut,Ut=Ie[2*(Ge+1)+1],!(++kt{let Ge,ht,Fe=-1,Ut=Ie[1],kt=0,bn=7,wt=4;for(0===Ut&&(bn=138,wt=3),Ge=0;Ge<=he;Ge++)if(ht=Ut,Ut=Ie[2*(Ge+1)+1],!(++kt{Ue(P,0+(Ge?1:0),3),((P,Ie,he,Ge)=>{At(P),gt(P,he),gt(P,~he),P.pending_buf.set(P.window.subarray(Ie,Ie+he),P.pending),P.pending+=he})(P,Ie,he)};var Lt={_tr_init:P=>{Be||((()=>{let P,Ie,he,Ge,Fe;const ht=new Array(16);for(he=0,Ge=0;Ge<28;Ge++)for(J[Ge]=he,P=0;P<1<>=7;Ge<30;Ge++)for(ie[Ge]=Fe<<7,P=0;P<1<{let Fe,ht,Ut=0;P.level>0?(2===P.strm.data_type&&(P.strm.data_type=(P=>{let he,Ie=4093624447;for(he=0;he<=31;he++,Ie>>>=1)if(1&Ie&&0!==P.dyn_ltree[2*he])return 0;if(0!==P.dyn_ltree[18]||0!==P.dyn_ltree[20]||0!==P.dyn_ltree[26])return 1;for(he=32;he<256;he++)if(0!==P.dyn_ltree[2*he])return 1;return 0})(P)),fe(P,P.l_desc),fe(P,P.d_desc),Ut=(P=>{let Ie;for(H(P,P.dyn_ltree,P.l_desc.max_code),H(P,P.dyn_dtree,P.d_desc.max_code),fe(P,P.bl_desc),Ie=18;Ie>=3&&0===P.bl_tree[2*F[Ie]+1];Ie--);return P.opt_len+=3*(Ie+1)+5+5+4,Ie})(P),Fe=P.opt_len+3+7>>>3,ht=P.static_len+3+7>>>3,ht<=Fe&&(Fe=ht)):Fe=ht=he+5,he+4<=Fe&&-1!==Ie?st(P,Ie,he,Ge):4===P.strategy||ht===Fe?(Ue(P,2+(Ge?1:0),3),Ee(P,Y,Q)):(Ue(P,4+(Ge?1:0),3),((P,Ie,he,Ge)=>{let Fe;for(Ue(P,Ie-257,5),Ue(P,he-1,5),Ue(P,Ge-4,4),Fe=0;Fe(P.pending_buf[P.d_buf+2*P.last_lit]=Ie>>>8&255,P.pending_buf[P.d_buf+2*P.last_lit+1]=255&Ie,P.pending_buf[P.l_buf+P.last_lit]=255&he,P.last_lit++,0===Ie?P.dyn_ltree[2*he]++:(P.matches++,Ie--,P.dyn_ltree[2*($[he]+256+1)]++,P.dyn_dtree[2*Je(Ie)]++),P.last_lit===P.lit_bufsize-1),_tr_align:P=>{Ue(P,2,3),tt(P,256,Y),(P=>{16===P.bi_valid?(gt(P,P.bi_buf),P.bi_buf=0,P.bi_valid=0):P.bi_valid>=8&&(P.pending_buf[P.pending++]=255&P.bi_buf,P.bi_buf>>=8,P.bi_valid-=8)})(P)}},mt=(P,Ie,he,Ge)=>{let Fe=65535&P|0,ht=P>>>16&65535|0,Ut=0;for(;0!==he;){Ut=he>2e3?2e3:he,he-=Ut;do{Fe=Fe+Ie[Ge++]|0,ht=ht+Fe|0}while(--Ut);Fe%=65521,ht%=65521}return Fe|ht<<16|0};const qt=new Uint32Array((()=>{let P,Ie=[];for(var he=0;he<256;he++){P=he;for(var Ge=0;Ge<8;Ge++)P=1&P?3988292384^P>>>1:P>>>1;Ie[he]=P}return Ie})());var Se=(P,Ie,he,Ge)=>{const Fe=qt,ht=Ge+he;P^=-1;for(let Ut=Ge;Ut>>8^Fe[255&(P^Ie[Ut])];return-1^P},ee={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},re={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Me,_tr_stored_block:ze,_tr_flush_block:It,_tr_tally:Qt,_tr_align:cn}=Lt,{Z_NO_FLUSH:An,Z_PARTIAL_FLUSH:lt,Z_FULL_FLUSH:ct,Z_FINISH:He,Z_BLOCK:pt,Z_OK:Ot,Z_STREAM_END:un,Z_STREAM_ERROR:on,Z_DATA_ERROR:On,Z_BUF_ERROR:Yn,Z_DEFAULT_COMPRESSION:ji,Z_FILTERED:Oi,Z_HUFFMAN_ONLY:Ni,Z_RLE:Ti,Z_FIXED:qn,Z_DEFAULT_STRATEGY:Vi,Z_UNKNOWN:ci,Z_DEFLATED:xe}=re,Tn=262,bi=(P,Ie)=>(P.msg=ee[Ie],Ie),Rn=P=>(P<<1)-(P>4?9:0),qi=P=>{let Ie=P.length;for(;--Ie>=0;)P[Ie]=0};let Fn=(P,Ie,he)=>(Ie<{const Ie=P.state;let he=Ie.pending;he>P.avail_out&&(he=P.avail_out),0!==he&&(P.output.set(Ie.pending_buf.subarray(Ie.pending_out,Ie.pending_out+he),P.next_out),P.next_out+=he,Ie.pending_out+=he,P.total_out+=he,P.avail_out-=he,Ie.pending-=he,0===Ie.pending&&(Ie.pending_out=0))},mi=(P,Ie)=>{It(P,P.block_start>=0?P.block_start:-1,P.strstart-P.block_start,Ie),P.block_start=P.strstart,$i(P.strm)},Gn=(P,Ie)=>{P.pending_buf[P.pending++]=Ie},ur=(P,Ie)=>{P.pending_buf[P.pending++]=Ie>>>8&255,P.pending_buf[P.pending++]=255&Ie},gn=(P,Ie,he,Ge)=>{let Fe=P.avail_in;return Fe>Ge&&(Fe=Ge),0===Fe?0:(P.avail_in-=Fe,Ie.set(P.input.subarray(P.next_in,P.next_in+Fe),he),1===P.state.wrap?P.adler=mt(P.adler,Ie,Fe,he):2===P.state.wrap&&(P.adler=Se(P.adler,Ie,Fe,he)),P.next_in+=Fe,P.total_in+=Fe,Fe)},yn=(P,Ie)=>{let Fe,ht,he=P.max_chain_length,Ge=P.strstart,Ut=P.prev_length,kt=P.nice_match;const bn=P.strstart>P.w_size-Tn?P.strstart-(P.w_size-Tn):0,wt=P.window,$t=P.w_mask,Ii=P.prev,hn=P.strstart+258;let en=wt[Ge+Ut-1],Nn=wt[Ge+Ut];P.prev_length>=P.good_match&&(he>>=2),kt>P.lookahead&&(kt=P.lookahead);do{if(Fe=Ie,wt[Fe+Ut]===Nn&&wt[Fe+Ut-1]===en&&wt[Fe]===wt[Ge]&&wt[++Fe]===wt[Ge+1]){Ge+=2,Fe++;do{}while(wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&wt[++Ge]===wt[++Fe]&&GeUt){if(P.match_start=Ie,Ut=ht,ht>=kt)break;en=wt[Ge+Ut-1],Nn=wt[Ge+Ut]}}}while((Ie=Ii[Ie&$t])>bn&&0!=--he);return Ut<=P.lookahead?Ut:P.lookahead},Sn=P=>{const Ie=P.w_size;let he,Ge,Fe,ht,Ut;do{if(ht=P.window_size-P.lookahead-P.strstart,P.strstart>=Ie+(Ie-Tn)){P.window.set(P.window.subarray(Ie,Ie+Ie),0),P.match_start-=Ie,P.strstart-=Ie,P.block_start-=Ie,Ge=P.hash_size,he=Ge;do{Fe=P.head[--he],P.head[he]=Fe>=Ie?Fe-Ie:0}while(--Ge);Ge=Ie,he=Ge;do{Fe=P.prev[--he],P.prev[he]=Fe>=Ie?Fe-Ie:0}while(--Ge);ht+=Ie}if(0===P.strm.avail_in)break;if(Ge=gn(P.strm,P.window,P.strstart+P.lookahead,ht),P.lookahead+=Ge,P.lookahead+P.insert>=3)for(Ut=P.strstart-P.insert,P.ins_h=P.window[Ut],P.ins_h=Fn(P,P.ins_h,P.window[Ut+1]);P.insert&&(P.ins_h=Fn(P,P.ins_h,P.window[Ut+3-1]),P.prev[Ut&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=Ut,Ut++,P.insert--,!(P.lookahead+P.insert<3)););}while(P.lookahead{let he,Ge;for(;;){if(P.lookahead=3&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),0!==he&&P.strstart-he<=P.w_size-Tn&&(P.match_length=yn(P,he)),P.match_length>=3)if(Ge=Qt(P,P.strstart-P.match_start,P.match_length-3),P.lookahead-=P.match_length,P.match_length<=P.max_lazy_match&&P.lookahead>=3){P.match_length--;do{P.strstart++,P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart}while(0!=--P.match_length);P.strstart++}else P.strstart+=P.match_length,P.match_length=0,P.ins_h=P.window[P.strstart],P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+1]);else Ge=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++;if(Ge&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=P.strstart<2?P.strstart:2,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2},Li=(P,Ie)=>{let he,Ge,Fe;for(;;){if(P.lookahead=3&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),P.prev_length=P.match_length,P.prev_match=P.match_start,P.match_length=2,0!==he&&P.prev_length4096)&&(P.match_length=2)),P.prev_length>=3&&P.match_length<=P.prev_length){Fe=P.strstart+P.lookahead-3,Ge=Qt(P,P.strstart-1-P.prev_match,P.prev_length-3),P.lookahead-=P.prev_length-1,P.prev_length-=2;do{++P.strstart<=Fe&&(P.ins_h=Fn(P,P.ins_h,P.window[P.strstart+3-1]),he=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart)}while(0!=--P.prev_length);if(P.match_available=0,P.match_length=2,P.strstart++,Ge&&(mi(P,!1),0===P.strm.avail_out))return 1}else if(P.match_available){if(Ge=Qt(P,0,P.window[P.strstart-1]),Ge&&mi(P,!1),P.strstart++,P.lookahead--,0===P.strm.avail_out)return 1}else P.match_available=1,P.strstart++,P.lookahead--}return P.match_available&&(Ge=Qt(P,0,P.window[P.strstart-1]),P.match_available=0),P.insert=P.strstart<2?P.strstart:2,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2};function nr(P,Ie,he,Ge,Fe){this.good_length=P,this.max_lazy=Ie,this.nice_length=he,this.max_chain=Ge,this.func=Fe}const Or=[new nr(0,0,0,0,(P,Ie)=>{let he=65535;for(he>P.pending_buf_size-5&&(he=P.pending_buf_size-5);;){if(P.lookahead<=1){if(Sn(P),0===P.lookahead&&Ie===An)return 1;if(0===P.lookahead)break}P.strstart+=P.lookahead,P.lookahead=0;const Ge=P.block_start+he;if((0===P.strstart||P.strstart>=Ge)&&(P.lookahead=P.strstart-Ge,P.strstart=Ge,mi(P,!1),0===P.strm.avail_out)||P.strstart-P.block_start>=P.w_size-Tn&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):(P.strstart>P.block_start&&mi(P,!1),1)}),new nr(4,4,8,4,Ri),new nr(4,5,16,8,Ri),new nr(4,6,32,32,Ri),new nr(4,4,16,16,Li),new nr(8,16,32,32,Li),new nr(8,16,128,128,Li),new nr(8,32,128,256,Li),new nr(32,128,258,1024,Li),new nr(32,258,258,4096,Li)];function cr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=xe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),qi(this.dyn_ltree),qi(this.dyn_dtree),qi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),qi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),qi(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const $r=P=>{if(!P||!P.state)return bi(P,on);P.total_in=P.total_out=0,P.data_type=ci;const Ie=P.state;return Ie.pending=0,Ie.pending_out=0,Ie.wrap<0&&(Ie.wrap=-Ie.wrap),Ie.status=Ie.wrap?42:113,P.adler=2===Ie.wrap?0:1,Ie.last_flush=An,Me(Ie),Ot},hr=P=>{const Ie=$r(P);return Ie===Ot&&(P=>{P.window_size=2*P.w_size,qi(P.head),P.max_lazy_match=Or[P.level].max_lazy,P.good_match=Or[P.level].good_length,P.nice_match=Or[P.level].nice_length,P.max_chain_length=Or[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=2,P.match_available=0,P.ins_h=0})(P.state),Ie},ir=(P,Ie,he,Ge,Fe,ht)=>{if(!P)return on;let Ut=1;if(Ie===ji&&(Ie=6),Ge<0?(Ut=0,Ge=-Ge):Ge>15&&(Ut=2,Ge-=16),Fe<1||Fe>9||he!==xe||Ge<8||Ge>15||Ie<0||Ie>9||ht<0||ht>qn)return bi(P,on);8===Ge&&(Ge=9);const kt=new cr;return P.state=kt,kt.strm=P,kt.wrap=Ut,kt.gzhead=null,kt.w_bits=Ge,kt.w_size=1<P&&P.state&&2===P.state.wrap?(P.state.gzhead=Ie,Ot):on,kr_deflate=(P,Ie)=>{let he,Ge;if(!P||!P.state||Ie>pt||Ie<0)return P?bi(P,on):on;const Fe=P.state;if(!P.output||!P.input&&0!==P.avail_in||666===Fe.status&&Ie!==He)return bi(P,0===P.avail_out?Yn:on);Fe.strm=P;const ht=Fe.last_flush;if(Fe.last_flush=Ie,42===Fe.status)if(2===Fe.wrap)P.adler=0,Gn(Fe,31),Gn(Fe,139),Gn(Fe,8),Fe.gzhead?(Gn(Fe,(Fe.gzhead.text?1:0)+(Fe.gzhead.hcrc?2:0)+(Fe.gzhead.extra?4:0)+(Fe.gzhead.name?8:0)+(Fe.gzhead.comment?16:0)),Gn(Fe,255&Fe.gzhead.time),Gn(Fe,Fe.gzhead.time>>8&255),Gn(Fe,Fe.gzhead.time>>16&255),Gn(Fe,Fe.gzhead.time>>24&255),Gn(Fe,9===Fe.level?2:Fe.strategy>=Ni||Fe.level<2?4:0),Gn(Fe,255&Fe.gzhead.os),Fe.gzhead.extra&&Fe.gzhead.extra.length&&(Gn(Fe,255&Fe.gzhead.extra.length),Gn(Fe,Fe.gzhead.extra.length>>8&255)),Fe.gzhead.hcrc&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending,0)),Fe.gzindex=0,Fe.status=69):(Gn(Fe,0),Gn(Fe,0),Gn(Fe,0),Gn(Fe,0),Gn(Fe,0),Gn(Fe,9===Fe.level?2:Fe.strategy>=Ni||Fe.level<2?4:0),Gn(Fe,3),Fe.status=113);else{let Ut=xe+(Fe.w_bits-8<<4)<<8,kt=-1;kt=Fe.strategy>=Ni||Fe.level<2?0:Fe.level<6?1:6===Fe.level?2:3,Ut|=kt<<6,0!==Fe.strstart&&(Ut|=32),Ut+=31-Ut%31,Fe.status=113,ur(Fe,Ut),0!==Fe.strstart&&(ur(Fe,P.adler>>>16),ur(Fe,65535&P.adler)),P.adler=1}if(69===Fe.status)if(Fe.gzhead.extra){for(he=Fe.pending;Fe.gzindex<(65535&Fe.gzhead.extra.length)&&(Fe.pending!==Fe.pending_buf_size||(Fe.gzhead.hcrc&&Fe.pending>he&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),$i(P),he=Fe.pending,Fe.pending!==Fe.pending_buf_size));)Gn(Fe,255&Fe.gzhead.extra[Fe.gzindex]),Fe.gzindex++;Fe.gzhead.hcrc&&Fe.pending>he&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),Fe.gzindex===Fe.gzhead.extra.length&&(Fe.gzindex=0,Fe.status=73)}else Fe.status=73;if(73===Fe.status)if(Fe.gzhead.name){he=Fe.pending;do{if(Fe.pending===Fe.pending_buf_size&&(Fe.gzhead.hcrc&&Fe.pending>he&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),$i(P),he=Fe.pending,Fe.pending===Fe.pending_buf_size)){Ge=1;break}Ge=Fe.gzindexhe&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),0===Ge&&(Fe.gzindex=0,Fe.status=91)}else Fe.status=91;if(91===Fe.status)if(Fe.gzhead.comment){he=Fe.pending;do{if(Fe.pending===Fe.pending_buf_size&&(Fe.gzhead.hcrc&&Fe.pending>he&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),$i(P),he=Fe.pending,Fe.pending===Fe.pending_buf_size)){Ge=1;break}Ge=Fe.gzindexhe&&(P.adler=Se(P.adler,Fe.pending_buf,Fe.pending-he,he)),0===Ge&&(Fe.status=103)}else Fe.status=103;if(103===Fe.status&&(Fe.gzhead.hcrc?(Fe.pending+2>Fe.pending_buf_size&&$i(P),Fe.pending+2<=Fe.pending_buf_size&&(Gn(Fe,255&P.adler),Gn(Fe,P.adler>>8&255),P.adler=0,Fe.status=113)):Fe.status=113),0!==Fe.pending){if($i(P),0===P.avail_out)return Fe.last_flush=-1,Ot}else if(0===P.avail_in&&Rn(Ie)<=Rn(ht)&&Ie!==He)return bi(P,Yn);if(666===Fe.status&&0!==P.avail_in)return bi(P,Yn);if(0!==P.avail_in||0!==Fe.lookahead||Ie!==An&&666!==Fe.status){let Ut=Fe.strategy===Ni?((P,Ie)=>{let he;for(;;){if(0===P.lookahead&&(Sn(P),0===P.lookahead)){if(Ie===An)return 1;break}if(P.match_length=0,he=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++,he&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2})(Fe,Ie):Fe.strategy===Ti?((P,Ie)=>{let he,Ge,Fe,ht;const Ut=P.window;for(;;){if(P.lookahead<=258){if(Sn(P),P.lookahead<=258&&Ie===An)return 1;if(0===P.lookahead)break}if(P.match_length=0,P.lookahead>=3&&P.strstart>0&&(Fe=P.strstart-1,Ge=Ut[Fe],Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe])){ht=P.strstart+258;do{}while(Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&Ge===Ut[++Fe]&&FeP.lookahead&&(P.match_length=P.lookahead)}if(P.match_length>=3?(he=Qt(P,1,P.match_length-3),P.lookahead-=P.match_length,P.strstart+=P.match_length,P.match_length=0):(he=Qt(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++),he&&(mi(P,!1),0===P.strm.avail_out))return 1}return P.insert=0,Ie===He?(mi(P,!0),0===P.strm.avail_out?3:4):P.last_lit&&(mi(P,!1),0===P.strm.avail_out)?1:2})(Fe,Ie):Or[Fe.level].func(Fe,Ie);if((3===Ut||4===Ut)&&(Fe.status=666),1===Ut||3===Ut)return 0===P.avail_out&&(Fe.last_flush=-1),Ot;if(2===Ut&&(Ie===lt?cn(Fe):Ie!==pt&&(ze(Fe,0,0,!1),Ie===ct&&(qi(Fe.head),0===Fe.lookahead&&(Fe.strstart=0,Fe.block_start=0,Fe.insert=0))),$i(P),0===P.avail_out))return Fe.last_flush=-1,Ot}return Ie!==He?Ot:Fe.wrap<=0?un:(2===Fe.wrap?(Gn(Fe,255&P.adler),Gn(Fe,P.adler>>8&255),Gn(Fe,P.adler>>16&255),Gn(Fe,P.adler>>24&255),Gn(Fe,255&P.total_in),Gn(Fe,P.total_in>>8&255),Gn(Fe,P.total_in>>16&255),Gn(Fe,P.total_in>>24&255)):(ur(Fe,P.adler>>>16),ur(Fe,65535&P.adler)),$i(P),Fe.wrap>0&&(Fe.wrap=-Fe.wrap),0!==Fe.pending?Ot:un)},kr_deflateEnd=P=>{if(!P||!P.state)return on;const Ie=P.state.status;return 42!==Ie&&69!==Ie&&73!==Ie&&91!==Ie&&103!==Ie&&113!==Ie&&666!==Ie?bi(P,on):(P.state=null,113===Ie?bi(P,On):Ot)},kr_deflateSetDictionary=(P,Ie)=>{let he=Ie.length;if(!P||!P.state)return on;const Ge=P.state,Fe=Ge.wrap;if(2===Fe||1===Fe&&42!==Ge.status||Ge.lookahead)return on;if(1===Fe&&(P.adler=mt(P.adler,Ie,he,0)),Ge.wrap=0,he>=Ge.w_size){0===Fe&&(qi(Ge.head),Ge.strstart=0,Ge.block_start=0,Ge.insert=0);let bn=new Uint8Array(Ge.w_size);bn.set(Ie.subarray(he-Ge.w_size,he),0),Ie=bn,he=Ge.w_size}const ht=P.avail_in,Ut=P.next_in,kt=P.input;for(P.avail_in=he,P.next_in=0,P.input=Ie,Sn(Ge);Ge.lookahead>=3;){let bn=Ge.strstart,wt=Ge.lookahead-2;do{Ge.ins_h=Fn(Ge,Ge.ins_h,Ge.window[bn+3-1]),Ge.prev[bn&Ge.w_mask]=Ge.head[Ge.ins_h],Ge.head[Ge.ins_h]=bn,bn++}while(--wt);Ge.strstart=bn,Ge.lookahead=2,Sn(Ge)}return Ge.strstart+=Ge.lookahead,Ge.block_start=Ge.strstart,Ge.insert=Ge.lookahead,Ge.lookahead=0,Ge.match_length=Ge.prev_length=2,Ge.match_available=0,P.next_in=Ut,P.input=kt,P.avail_in=ht,Ge.wrap=Fe,Ot};const Jr=(P,Ie)=>Object.prototype.hasOwnProperty.call(P,Ie);var si_assign=function(P){const Ie=Array.prototype.slice.call(arguments,1);for(;Ie.length;){const he=Ie.shift();if(he){if("object"!=typeof he)throw new TypeError(he+"must be non-object");for(const Ge in he)Jr(he,Ge)&&(P[Ge]=he[Ge])}}return P},si_flattenChunks=P=>{let Ie=0;for(let Ge=0,Fe=P.length;Ge=252?6:P>=248?5:P>=240?4:P>=224?3:P>=192?2:1;Er[254]=Er[254]=1;var ve_string2buf=P=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(P);let Ie,he,Ge,Fe,ht,Ut=P.length,kt=0;for(Fe=0;Fe>>6,Ie[ht++]=128|63&he):he<65536?(Ie[ht++]=224|he>>>12,Ie[ht++]=128|he>>>6&63,Ie[ht++]=128|63&he):(Ie[ht++]=240|he>>>18,Ie[ht++]=128|he>>>12&63,Ie[ht++]=128|he>>>6&63,Ie[ht++]=128|63&he);return Ie},ve_buf2string=(P,Ie)=>{const he=Ie||P.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(P.subarray(0,Ie));let Ge,Fe;const ht=new Array(2*he);for(Fe=0,Ge=0;Ge4)ht[Fe++]=65533,Ge+=kt-1;else{for(Ut&=2===kt?31:3===kt?15:7;kt>1&&Ge1?ht[Fe++]=65533:Ut<65536?ht[Fe++]=Ut:(Ut-=65536,ht[Fe++]=55296|Ut>>10&1023,ht[Fe++]=56320|1023&Ut)}}return((P,Ie)=>{if(Ie<65534&&P.subarray&&zr)return String.fromCharCode.apply(null,P.length===Ie?P:P.subarray(0,Ie));let he="";for(let Ge=0;Ge{(Ie=Ie||P.length)>P.length&&(Ie=P.length);let he=Ie-1;for(;he>=0&&128==(192&P[he]);)he--;return he<0||0===he?Ie:he+Er[P[he]]>Ie?he:Ie},Nt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const nn=Object.prototype.toString,{Z_NO_FLUSH:In,Z_SYNC_FLUSH:ni,Z_FULL_FLUSH:di,Z_FINISH:ai,Z_OK:hi,Z_STREAM_END:Ei,Z_DEFAULT_COMPRESSION:ki,Z_DEFAULT_STRATEGY:xn,Z_DEFLATED:Kr}=re;function rr(P){this.options=si_assign({level:ki,method:Kr,chunkSize:16384,windowBits:15,memLevel:8,strategy:xn},P||{});let Ie=this.options;Ie.raw&&Ie.windowBits>0?Ie.windowBits=-Ie.windowBits:Ie.gzip&&Ie.windowBits>0&&Ie.windowBits<16&&(Ie.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nt,this.strm.avail_out=0;let he=kr_deflateInit2(this.strm,Ie.level,Ie.method,Ie.windowBits,Ie.memLevel,Ie.strategy);if(he!==hi)throw new Error(ee[he]);if(Ie.header&&kr_deflateSetHeader(this.strm,Ie.header),Ie.dictionary){let Ge;if(Ge="string"==typeof Ie.dictionary?ve_string2buf(Ie.dictionary):"[object ArrayBuffer]"===nn.call(Ie.dictionary)?new Uint8Array(Ie.dictionary):Ie.dictionary,he=kr_deflateSetDictionary(this.strm,Ge),he!==hi)throw new Error(ee[he]);this._dict_set=!0}}function xr(P,Ie){const he=new rr(Ie);if(he.push(P,!0),he.err)throw he.msg||ee[he.err];return he.result}rr.prototype.push=function(P,Ie){const he=this.strm,Ge=this.options.chunkSize;let Fe,ht;if(this.ended)return!1;for(ht=Ie===~~Ie?Ie:!0===Ie?ai:In,he.input="string"==typeof P?ve_string2buf(P):"[object ArrayBuffer]"===nn.call(P)?new Uint8Array(P):P,he.next_in=0,he.avail_in=he.input.length;;)if(0===he.avail_out&&(he.output=new Uint8Array(Ge),he.next_out=0,he.avail_out=Ge),(ht===ni||ht===di)&&he.avail_out<=6)this.onData(he.output.subarray(0,he.next_out)),he.avail_out=0;else{if(Fe=kr_deflate(he,ht),Fe===Ei)return he.next_out>0&&this.onData(he.output.subarray(0,he.next_out)),Fe=kr_deflateEnd(this.strm),this.onEnd(Fe),this.ended=!0,Fe===hi;if(0!==he.avail_out){if(ht>0&&he.next_out>0)this.onData(he.output.subarray(0,he.next_out)),he.avail_out=0;else if(0===he.avail_in)break}else this.onData(he.output)}return!0},rr.prototype.onData=function(P){this.chunks.push(P)},rr.prototype.onEnd=function(P){P===hi&&(this.result=si_flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};var pe={Deflate:rr,deflate:xr,deflateRaw:function(P,Ie){return(Ie=Ie||{}).raw=!0,xr(P,Ie)},gzip:function(P,Ie){return(Ie=Ie||{}).gzip=!0,xr(P,Ie)},constants:re},rt=function(Ie,he){let Ge,Fe,ht,Ut,kt,bn,wt,$t,Ii,hn,en,Nn,er,Ci,ui,Ai,gi,fn,wi,wr,Cn,Pi,Fi,ri;const Jn=Ie.state;Ge=Ie.next_in,Fi=Ie.input,Fe=Ge+(Ie.avail_in-5),ht=Ie.next_out,ri=Ie.output,Ut=ht-(he-Ie.avail_out),kt=ht+(Ie.avail_out-257),bn=Jn.dmax,wt=Jn.wsize,$t=Jn.whave,Ii=Jn.wnext,hn=Jn.window,en=Jn.hold,Nn=Jn.bits,er=Jn.lencode,Ci=Jn.distcode,ui=(1<>>24,en>>>=fn,Nn-=fn,fn=gi>>>16&255,0===fn)ri[ht++]=65535&gi;else{if(!(16&fn)){if(0==(64&fn)){gi=er[(65535&gi)+(en&(1<>>=fn,Nn-=fn),Nn<15&&(en+=Fi[Ge++]<>>24,en>>>=fn,Nn-=fn,fn=gi>>>16&255,!(16&fn)){if(0==(64&fn)){gi=Ci[(65535&gi)+(en&(1<bn){Ie.msg="invalid distance too far back",Jn.mode=30;break e}if(en>>>=fn,Nn-=fn,fn=ht-Ut,wr>fn){if(fn=wr-fn,fn>$t&&Jn.sane){Ie.msg="invalid distance too far back",Jn.mode=30;break e}if(Cn=0,Pi=hn,0===Ii){if(Cn+=wt-fn,fn2;)ri[ht++]=Pi[Cn++],ri[ht++]=Pi[Cn++],ri[ht++]=Pi[Cn++],wi-=3;wi&&(ri[ht++]=Pi[Cn++],wi>1&&(ri[ht++]=Pi[Cn++]))}else{Cn=ht-wr;do{ri[ht++]=ri[Cn++],ri[ht++]=ri[Cn++],ri[ht++]=ri[Cn++],wi-=3}while(wi>2);wi&&(ri[ht++]=ri[Cn++],wi>1&&(ri[ht++]=ri[Cn++]))}break}}break}}while(Ge>3,Ge-=wi,Nn-=wi<<3,en&=(1<{const bn=kt.bits;let gi,fn,wi,wr,Cn,ri,wt=0,$t=0,Ii=0,hn=0,en=0,Nn=0,er=0,Ci=0,ui=0,Ai=0,Pi=null,Fi=0;const Jn=new Uint16Array(16),no=new Uint16Array(16);let fo,Is,io,Ro=null,Za=0;for(wt=0;wt<=15;wt++)Jn[wt]=0;for($t=0;$t=1&&0===Jn[hn];hn--);if(en>hn&&(en=hn),0===hn)return Fe[ht++]=20971520,Fe[ht++]=20971520,kt.bits=1,0;for(Ii=1;Ii0&&(0===P||1!==hn))return-1;for(no[1]=0,wt=1;wt<15;wt++)no[wt+1]=no[wt]+Jn[wt];for($t=0;$t852||2===P&&ui>592)return 1;for(;;){fo=wt-er,Ut[$t]ri?(Is=Ro[Za+Ut[$t]],io=Pi[Fi+Ut[$t]]):(Is=96,io=0),gi=1<>er)+fn]=fo<<24|Is<<16|io|0}while(0!==fn);for(gi=1<>=1;if(0!==gi?(Ai&=gi-1,Ai+=gi):Ai=0,$t++,0==--Jn[wt]){if(wt===hn)break;wt=Ie[he+Ut[$t]]}if(wt>en&&(Ai&wr)!==wi){for(0===er&&(er=en),Cn+=Ii,Nn=wt-er,Ci=1<852||2===P&&ui>592)return 1;wi=Ai&wr,Fe[wi]=en<<24|Nn<<16|Cn-ht|0}}return 0!==Ai&&(Fe[Cn+Ai]=wt-er<<24|64<<16|0),kt.bits=en,0};const{Z_FINISH:fr,Z_BLOCK:Xi,Z_TREES:gr,Z_OK:zi,Z_STREAM_END:Pr,Z_NEED_DICT:ys,Z_STREAM_ERROR:Yi,Z_DATA_ERROR:Ur,Z_MEM_ERROR:bs,Z_BUF_ERROR:Cs,Z_DEFLATED:mn}=re,Ce=P=>(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24);function Te(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ve=P=>{if(!P||!P.state)return Yi;const Ie=P.state;return P.total_in=P.total_out=Ie.total=0,P.msg="",Ie.wrap&&(P.adler=1&Ie.wrap),Ie.mode=1,Ie.last=0,Ie.havedict=0,Ie.dmax=32768,Ie.head=null,Ie.hold=0,Ie.bits=0,Ie.lencode=Ie.lendyn=new Int32Array(852),Ie.distcode=Ie.distdyn=new Int32Array(592),Ie.sane=1,Ie.back=-1,zi},it=P=>{if(!P||!P.state)return Yi;const Ie=P.state;return Ie.wsize=0,Ie.whave=0,Ie.wnext=0,Ve(P)},bt=(P,Ie)=>{let he;if(!P||!P.state)return Yi;const Ge=P.state;return Ie<0?(he=0,Ie=-Ie):(he=1+(Ie>>4),Ie<48&&(Ie&=15)),Ie&&(Ie<8||Ie>15)?Yi:(null!==Ge.window&&Ge.wbits!==Ie&&(Ge.window=null),Ge.wrap=he,Ge.wbits=Ie,it(P))},zt=(P,Ie)=>{if(!P)return Yi;const he=new Te;P.state=he,he.window=null;const Ge=bt(P,Ie);return Ge!==zi&&(P.state=null),Ge};let Dn,vi,fi=!0;const Di=P=>{if(fi){Dn=new Int32Array(512),vi=new Int32Array(32);let Ie=0;for(;Ie<144;)P.lens[Ie++]=8;for(;Ie<256;)P.lens[Ie++]=9;for(;Ie<280;)P.lens[Ie++]=7;for(;Ie<288;)P.lens[Ie++]=8;for(xi(1,P.lens,0,288,Dn,0,P.work,{bits:9}),Ie=0;Ie<32;)P.lens[Ie++]=5;xi(2,P.lens,0,32,vi,0,P.work,{bits:5}),fi=!1}P.lencode=Dn,P.lenbits=9,P.distcode=vi,P.distbits=5},hs=(P,Ie,he,Ge)=>{let Fe;const ht=P.state;return null===ht.window&&(ht.wsize=1<=ht.wsize?(ht.window.set(Ie.subarray(he-ht.wsize,he),0),ht.wnext=0,ht.whave=ht.wsize):(Fe=ht.wsize-ht.wnext,Fe>Ge&&(Fe=Ge),ht.window.set(Ie.subarray(he-Ge,he-Ge+Fe),ht.wnext),(Ge-=Fe)?(ht.window.set(Ie.subarray(he-Ge,he),0),ht.wnext=Ge,ht.whave=ht.wsize):(ht.wnext+=Fe,ht.wnext===ht.wsize&&(ht.wnext=0),ht.whave{let he,Ge,Fe,ht,Ut,kt,bn,wt,$t,Ii,hn,en,Nn,er,ui,Ai,gi,fn,wi,wr,Cn,Pi,Ci=0;const Fi=new Uint8Array(4);let ri,Jn;const no=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!P||!P.state||!P.output||!P.input&&0!==P.avail_in)return Yi;he=P.state,12===he.mode&&(he.mode=13),Ut=P.next_out,Fe=P.output,bn=P.avail_out,ht=P.next_in,Ge=P.input,kt=P.avail_in,wt=he.hold,$t=he.bits,Ii=kt,hn=bn,Pi=zi;e:for(;;)switch(he.mode){case 1:if(0===he.wrap){he.mode=13;break}for(;$t<16;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(2&he.wrap&&35615===wt){he.check=0,Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0),wt=0,$t=0,he.mode=2;break}if(he.flags=0,he.head&&(he.head.done=!1),!(1&he.wrap)||(((255&wt)<<8)+(wt>>8))%31){P.msg="incorrect header check",he.mode=30;break}if((15&wt)!==mn){P.msg="unknown compression method",he.mode=30;break}if(wt>>>=4,$t-=4,Cn=8+(15&wt),0===he.wbits)he.wbits=Cn;else if(Cn>he.wbits){P.msg="invalid window size",he.mode=30;break}he.dmax=1<>8&1),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0,he.mode=3;case 3:for(;$t<32;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}he.head&&(he.head.time=wt),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,Fi[2]=wt>>>16&255,Fi[3]=wt>>>24&255,he.check=Se(he.check,Fi,4,0)),wt=0,$t=0,he.mode=4;case 4:for(;$t<16;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}he.head&&(he.head.xflags=255&wt,he.head.os=wt>>8),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0,he.mode=5;case 5:if(1024&he.flags){for(;$t<16;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}he.length=wt,he.head&&(he.head.extra_len=wt),512&he.flags&&(Fi[0]=255&wt,Fi[1]=wt>>>8&255,he.check=Se(he.check,Fi,2,0)),wt=0,$t=0}else he.head&&(he.head.extra=null);he.mode=6;case 6:if(1024&he.flags&&(en=he.length,en>kt&&(en=kt),en&&(he.head&&(Cn=he.head.extra_len-he.length,he.head.extra||(he.head.extra=new Uint8Array(he.head.extra_len)),he.head.extra.set(Ge.subarray(ht,ht+en),Cn)),512&he.flags&&(he.check=Se(he.check,Ge,en,ht)),kt-=en,ht+=en,he.length-=en),he.length))break e;he.length=0,he.mode=7;case 7:if(2048&he.flags){if(0===kt)break e;en=0;do{Cn=Ge[ht+en++],he.head&&Cn&&he.length<65536&&(he.head.name+=String.fromCharCode(Cn))}while(Cn&&en>9&1,he.head.done=!0),P.adler=he.check=0,he.mode=12;break;case 10:for(;$t<32;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}P.adler=he.check=Ce(wt),wt=0,$t=0,he.mode=11;case 11:if(0===he.havedict)return P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,ys;P.adler=he.check=1,he.mode=12;case 12:if(Ie===Xi||Ie===gr)break e;case 13:if(he.last){wt>>>=7&$t,$t-=7&$t,he.mode=27;break}for(;$t<3;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}switch(he.last=1&wt,wt>>>=1,$t-=1,3&wt){case 0:he.mode=14;break;case 1:if(Di(he),he.mode=20,Ie===gr){wt>>>=2,$t-=2;break e}break;case 2:he.mode=17;break;case 3:P.msg="invalid block type",he.mode=30}wt>>>=2,$t-=2;break;case 14:for(wt>>>=7&$t,$t-=7&$t;$t<32;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if((65535&wt)!=(wt>>>16^65535)){P.msg="invalid stored block lengths",he.mode=30;break}if(he.length=65535&wt,wt=0,$t=0,he.mode=15,Ie===gr)break e;case 15:he.mode=16;case 16:if(en=he.length,en){if(en>kt&&(en=kt),en>bn&&(en=bn),0===en)break e;Fe.set(Ge.subarray(ht,ht+en),Ut),kt-=en,ht+=en,bn-=en,Ut+=en,he.length-=en;break}he.mode=12;break;case 17:for(;$t<14;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(he.nlen=257+(31&wt),wt>>>=5,$t-=5,he.ndist=1+(31&wt),wt>>>=5,$t-=5,he.ncode=4+(15&wt),wt>>>=4,$t-=4,he.nlen>286||he.ndist>30){P.msg="too many length or distance symbols",he.mode=30;break}he.have=0,he.mode=18;case 18:for(;he.have>>=3,$t-=3}for(;he.have<19;)he.lens[no[he.have++]]=0;if(he.lencode=he.lendyn,he.lenbits=7,ri={bits:he.lenbits},Pi=xi(0,he.lens,0,19,he.lencode,0,he.work,ri),he.lenbits=ri.bits,Pi){P.msg="invalid code lengths set",he.mode=30;break}he.have=0,he.mode=19;case 19:for(;he.have>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(gi<16)wt>>>=ui,$t-=ui,he.lens[he.have++]=gi;else{if(16===gi){for(Jn=ui+2;$t>>=ui,$t-=ui,0===he.have){P.msg="invalid bit length repeat",he.mode=30;break}Cn=he.lens[he.have-1],en=3+(3&wt),wt>>>=2,$t-=2}else if(17===gi){for(Jn=ui+3;$t>>=ui,$t-=ui,Cn=0,en=3+(7&wt),wt>>>=3,$t-=3}else{for(Jn=ui+7;$t>>=ui,$t-=ui,Cn=0,en=11+(127&wt),wt>>>=7,$t-=7}if(he.have+en>he.nlen+he.ndist){P.msg="invalid bit length repeat",he.mode=30;break}for(;en--;)he.lens[he.have++]=Cn}}if(30===he.mode)break;if(0===he.lens[256]){P.msg="invalid code -- missing end-of-block",he.mode=30;break}if(he.lenbits=9,ri={bits:he.lenbits},Pi=xi(1,he.lens,0,he.nlen,he.lencode,0,he.work,ri),he.lenbits=ri.bits,Pi){P.msg="invalid literal/lengths set",he.mode=30;break}if(he.distbits=6,he.distcode=he.distdyn,ri={bits:he.distbits},Pi=xi(2,he.lens,he.nlen,he.ndist,he.distcode,0,he.work,ri),he.distbits=ri.bits,Pi){P.msg="invalid distances set",he.mode=30;break}if(he.mode=20,Ie===gr)break e;case 20:he.mode=21;case 21:if(kt>=6&&bn>=258){P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,rt(P,hn),Ut=P.next_out,Fe=P.output,bn=P.avail_out,ht=P.next_in,Ge=P.input,kt=P.avail_in,wt=he.hold,$t=he.bits,12===he.mode&&(he.back=-1);break}for(he.back=0;Ci=he.lencode[wt&(1<>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(Ai&&0==(240&Ai)){for(fn=ui,wi=Ai,wr=gi;Ci=he.lencode[wr+((wt&(1<>fn)],ui=Ci>>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(fn+ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}wt>>>=fn,$t-=fn,he.back+=fn}if(wt>>>=ui,$t-=ui,he.back+=ui,he.length=gi,0===Ai){he.mode=26;break}if(32&Ai){he.back=-1,he.mode=12;break}if(64&Ai){P.msg="invalid literal/length code",he.mode=30;break}he.extra=15&Ai,he.mode=22;case 22:if(he.extra){for(Jn=he.extra;$t>>=he.extra,$t-=he.extra,he.back+=he.extra}he.was=he.length,he.mode=23;case 23:for(;Ci=he.distcode[wt&(1<>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(0==(240&Ai)){for(fn=ui,wi=Ai,wr=gi;Ci=he.distcode[wr+((wt&(1<>fn)],ui=Ci>>>24,Ai=Ci>>>16&255,gi=65535&Ci,!(fn+ui<=$t);){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}wt>>>=fn,$t-=fn,he.back+=fn}if(wt>>>=ui,$t-=ui,he.back+=ui,64&Ai){P.msg="invalid distance code",he.mode=30;break}he.offset=gi,he.extra=15&Ai,he.mode=24;case 24:if(he.extra){for(Jn=he.extra;$t>>=he.extra,$t-=he.extra,he.back+=he.extra}if(he.offset>he.dmax){P.msg="invalid distance too far back",he.mode=30;break}he.mode=25;case 25:if(0===bn)break e;if(en=hn-bn,he.offset>en){if(en=he.offset-en,en>he.whave&&he.sane){P.msg="invalid distance too far back",he.mode=30;break}en>he.wnext?(en-=he.wnext,Nn=he.wsize-en):Nn=he.wnext-en,en>he.length&&(en=he.length),er=he.window}else er=Fe,Nn=Ut-he.offset,en=he.length;en>bn&&(en=bn),bn-=en,he.length-=en;do{Fe[Ut++]=er[Nn++]}while(--en);0===he.length&&(he.mode=21);break;case 26:if(0===bn)break e;Fe[Ut++]=he.length,bn--,he.mode=21;break;case 27:if(he.wrap){for(;$t<32;){if(0===kt)break e;kt--,wt|=Ge[ht++]<<$t,$t+=8}if(hn-=bn,P.total_out+=hn,he.total+=hn,hn&&(P.adler=he.check=he.flags?Se(he.check,Fe,hn,Ut-hn):mt(he.check,Fe,hn,Ut-hn)),hn=bn,(he.flags?wt:Ce(wt))!==he.check){P.msg="incorrect data check",he.mode=30;break}wt=0,$t=0}he.mode=28;case 28:if(he.wrap&&he.flags){for(;$t<32;){if(0===kt)break e;kt--,wt+=Ge[ht++]<<$t,$t+=8}if(wt!==(4294967295&he.total)){P.msg="incorrect length check",he.mode=30;break}wt=0,$t=0}he.mode=29;case 29:Pi=Pr;break e;case 30:Pi=Ur;break e;case 31:return bs;default:return Yi}return P.next_out=Ut,P.avail_out=bn,P.next_in=ht,P.avail_in=kt,he.hold=wt,he.bits=$t,(he.wsize||hn!==P.avail_out&&he.mode<30&&(he.mode<27||Ie!==fr))&&hs(P,P.output,P.next_out,hn-P.avail_out),Ii-=P.avail_in,hn-=P.avail_out,P.total_in+=Ii,P.total_out+=hn,he.total+=hn,he.wrap&&hn&&(P.adler=he.check=he.flags?Se(he.check,Fe,hn,P.next_out-hn):mt(he.check,Fe,hn,P.next_out-hn)),P.data_type=he.bits+(he.last?64:0)+(12===he.mode?128:0)+(20===he.mode||15===he.mode?256:0),(0===Ii&&0===hn||Ie===fr)&&Pi===zi&&(Pi=Cs),Pi},Ds_inflateEnd=P=>{if(!P||!P.state)return Yi;let Ie=P.state;return Ie.window&&(Ie.window=null),P.state=null,zi},Ds_inflateGetHeader=(P,Ie)=>{if(!P||!P.state)return Yi;const he=P.state;return 0==(2&he.wrap)?Yi:(he.head=Ie,Ie.done=!1,zi)},Ds_inflateSetDictionary=(P,Ie)=>{const he=Ie.length;let Ge,Fe,ht;return P&&P.state&&(Ge=P.state,0===Ge.wrap||11===Ge.mode)?11===Ge.mode&&(Fe=1,Fe=mt(Fe,Ie,he,0),Fe!==Ge.check)?Ur:(ht=hs(P,Ie,he,he),ht?(Ge.mode=31,bs):(Ge.havedict=1,zi)):Yi},da=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const to=Object.prototype.toString,{Z_NO_FLUSH:uo,Z_FINISH:co,Z_OK:Ts,Z_STREAM_END:_o,Z_NEED_DICT:Hs,Z_STREAM_ERROR:js,Z_DATA_ERROR:ha,Z_MEM_ERROR:lr}=re;function vo(P){this.options=si_assign({chunkSize:65536,windowBits:15,to:""},P||{});const Ie=this.options;Ie.raw&&Ie.windowBits>=0&&Ie.windowBits<16&&(Ie.windowBits=-Ie.windowBits,0===Ie.windowBits&&(Ie.windowBits=-15)),Ie.windowBits>=0&&Ie.windowBits<16&&!(P&&P.windowBits)&&(Ie.windowBits+=32),Ie.windowBits>15&&Ie.windowBits<48&&0==(15&Ie.windowBits)&&(Ie.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nt,this.strm.avail_out=0;let he=Ds_inflateInit2(this.strm,Ie.windowBits);if(he!==Ts)throw new Error(ee[he]);if(this.header=new da,Ds_inflateGetHeader(this.strm,this.header),Ie.dictionary&&("string"==typeof Ie.dictionary?Ie.dictionary=ve_string2buf(Ie.dictionary):"[object ArrayBuffer]"===to.call(Ie.dictionary)&&(Ie.dictionary=new Uint8Array(Ie.dictionary)),Ie.raw&&(he=Ds_inflateSetDictionary(this.strm,Ie.dictionary),he!==Ts)))throw new Error(ee[he])}function Ao(P,Ie){const he=new vo(Ie);if(he.push(P),he.err)throw he.msg||ee[he.err];return he.result}vo.prototype.push=function(P,Ie){const he=this.strm,Ge=this.options.chunkSize,Fe=this.options.dictionary;let ht,Ut,kt;if(this.ended)return!1;for(Ut=Ie===~~Ie?Ie:!0===Ie?co:uo,he.input="[object ArrayBuffer]"===to.call(P)?new Uint8Array(P):P,he.next_in=0,he.avail_in=he.input.length;;){for(0===he.avail_out&&(he.output=new Uint8Array(Ge),he.next_out=0,he.avail_out=Ge),ht=Ds_inflate(he,Ut),ht===Hs&&Fe&&(ht=Ds_inflateSetDictionary(he,Fe),ht===Ts?ht=Ds_inflate(he,Ut):ht===ha&&(ht=Hs));he.avail_in>0&&ht===_o&&he.state.wrap>0&&0!==P[he.next_in];)Ds_inflateReset(he),ht=Ds_inflate(he,Ut);switch(ht){case js:case ha:case Hs:case lr:return this.onEnd(ht),this.ended=!0,!1}if(kt=he.avail_out,he.next_out&&(0===he.avail_out||ht===_o))if("string"===this.options.to){let bn=ve_utf8border(he.output,he.next_out),wt=he.next_out-bn,$t=ve_buf2string(he.output,bn);he.next_out=wt,he.avail_out=Ge-wt,wt&&he.output.set(he.output.subarray(bn,bn+wt),0),this.onData($t)}else this.onData(he.output.length===he.next_out?he.output:he.output.subarray(0,he.next_out));if(ht!==Ts||0!==kt){if(ht===_o)return ht=Ds_inflateEnd(this.strm),this.onEnd(ht),this.ended=!0,!0;if(0===he.avail_in)break}}return!0},vo.prototype.onData=function(P){this.chunks.push(P)},vo.prototype.onEnd=function(P){P===Ts&&(this.result="string"===this.options.to?this.chunks.join(""):si_flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg};var Gd={Inflate:vo,inflate:Ao,inflateRaw:function(P,Ie){return(Ie=Ie||{}).raw=!0,Ao(P,Ie)},ungzip:Ao,constants:re};const{Deflate:yr,deflate:Oo,deflateRaw:bo,gzip:Yd}=pe,{Inflate:jl,inflate:os,inflateRaw:xs,ungzip:Ya}=Gd;var Co=yr,ho=Oo,fa=bo,Qa=Yd,Xa=jl,Wl=os,zl=xs,pa=Ya,Yr=re,ma={Deflate:yr,deflate:Oo,deflateRaw:bo,gzip:Yd,Inflate:jl,inflate:os,inflateRaw:xs,ungzip:Ya,constants:re}},8210:ye=>{"use strict";ye.exports=JSON.parse('{"license":"The following data (prefixes and units) was generated by the UCUM LHC code from the UCUM data and selected LOINC combinations of UCUM units. The license for the UCUM LHC code (demo and library code as well as the combined units) is located at https://github.com/lhncbc/ucum-lhc/blob/LICENSE.md.","prefixes":{"config":["code_","ciCode_","name_","printSymbol_","value_","exp_"],"data":[["E","EX","exa","E",1000000000000000000,"18"],["G","GA","giga","G",1000000000,"9"],["Gi","GIB","gibi","Gi",1073741824,null],["Ki","KIB","kibi","Ki",1024,null],["M","MA","mega","M",1000000,"6"],["Mi","MIB","mebi","Mi",1048576,null],["P","PT","peta","P",1000000000000000,"15"],["T","TR","tera","T",1000000000000,"12"],["Ti","TIB","tebi","Ti",1099511627776,null],["Y","YA","yotta","Y",1e+24,"24"],["Z","ZA","zetta","Z",1e+21,"21"],["a","A","atto","a",1e-18,"-18"],["c","C","centi","c",0.01,"-2"],["d","D","deci","d",0.1,"-1"],["da","DA","deka","da",10,"1"],["f","F","femto","f",1e-15,"-15"],["h","H","hecto","h",100,"2"],["k","K","kilo","k",1000,"3"],["m","M","milli","m",0.001,"-3"],["n","N","nano","n",1e-9,"-9"],["p","P","pico","p",1e-12,"-12"],["u","U","micro","\u03bc",0.000001,"-6"],["y","YO","yocto","y",1.0000000000000001e-24,"-24"],["z","ZO","zepto","z",1e-21,"-21"]]},"units":{"config":["isBase_","name_","csCode_","ciCode_","property_","magnitude_",["dim_","dimVec_"],"printSymbol_","class_","isMetric_","variable_","cnv_","cnvPfx_","isSpecial_","isArbitrary_","moleExp_","synonyms_","source_","loincProperty_","category_","guidance_","csUnitString_","ciUnitString_","baseFactorStr_","baseFactor_","defError_"],"data":[[true,"meter","m","M","length",1,[1,0,0,0,0,0,0],"m",null,false,"L",null,1,false,false,0,"meters; metres; distance","UCUM","Len","Clinical","unit of length = 1.09361 yards",null,null,null,null,false],[true,"second - time","s","S","time",1,[0,1,0,0,0,0,0],"s",null,false,"T",null,1,false,false,0,"seconds","UCUM","Time","Clinical","",null,null,null,null,false],[true,"gram","g","G","mass",1,[0,0,1,0,0,0,0],"g",null,false,"M",null,1,false,false,0,"grams; gm","UCUM","Mass","Clinical","",null,null,null,null,false],[true,"radian","rad","RAD","plane angle",1,[0,0,0,1,0,0,0],"rad",null,false,"A",null,1,false,false,0,"radians","UCUM","Angle","Clinical","unit of angular measure where 1 radian = 1/2\u03c0 turn = 57.296 degrees. ",null,null,null,null,false],[true,"degree Kelvin","K","K","temperature",1,[0,0,0,0,1,0,0],"K",null,false,"C",null,1,false,false,0,"Kelvin; degrees","UCUM","Temp","Clinical","absolute, thermodynamic temperature scale ",null,null,null,null,false],[true,"coulomb","C","C","electric charge",1,[0,0,0,0,0,1,0],"C",null,false,"Q",null,1,false,false,0,"coulombs","UCUM","","Clinical","defined as amount of 1 electron charge = 6.2415093\xd710^18 e, and equivalent to 1 Ampere-second",null,null,null,null,false],[true,"candela","cd","CD","luminous intensity",1,[0,0,0,0,0,0,1],"cd",null,false,"F",null,1,false,false,0,"candelas","UCUM","","Clinical","SI base unit of luminous intensity",null,null,null,null,false],[false,"the number ten for arbitrary powers","10*","10*","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10^; 10 to the arbitrary powers","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number ten for arbitrary powers","10^","10^","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10*; 10 to the arbitrary power","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number pi","[pi]","[PI]","number",3.141592653589793,[0,0,0,0,0,0,0],"\u03c0","dimless",false,null,null,1,false,false,0,"\u03c0","UCUM","","Constant","a mathematical constant; the ratio of a circle\'s circumference to its diameter \u2248 3.14159","1","1","3.1415926535897932384626433832795028841971693993751058209749445923",3.141592653589793,false],[false,"","%","%","fraction",0.01,[0,0,0,0,0,0,0],"%","dimless",false,null,null,1,false,false,0,"percents","UCUM","FR; NFR; MFR; CFR; SFR Rto; etc. ","Clinical","","10*-2","10*-2","1",1,false],[false,"parts per thousand","[ppth]","[PPTH]","fraction",0.001,[0,0,0,0,0,0,0],"ppth","dimless",false,null,null,1,false,false,0,"ppth; 10^-3","UCUM","MCnc; MCnt","Clinical","[ppth] is often used in solution concentrations as 1 g/L or 1 g/kg.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-3","10*-3","1",1,false],[false,"parts per million","[ppm]","[PPM]","fraction",0.000001,[0,0,0,0,0,0,0],"ppm","dimless",false,null,null,1,false,false,0,"ppm; 10^-6","UCUM","MCnt; MCnc; SFr","Clinical","[ppm] is often used in solution concentrations as 1 mg/L or 1 mg/kg. Also used to express mole fractions as 1 mmol/mol.\\n\\n[ppm] is also used in nuclear magnetic resonance (NMR) to represent chemical shift - the difference of a measured frequency in parts per million from the reference frequency.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-6","10*-6","1",1,false],[false,"parts per billion","[ppb]","[PPB]","fraction",1e-9,[0,0,0,0,0,0,0],"ppb","dimless",false,null,null,1,false,false,0,"ppb; 10^-9","UCUM","MCnt; MCnc; SFr","Clinical","[ppb] is often used in solution concentrations as 1 ug/L or 1 ug/kg. Also used to express mole fractions as 1 umol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-9","10*-9","1",1,false],[false,"parts per trillion","[pptr]","[PPTR]","fraction",1e-12,[0,0,0,0,0,0,0],"pptr","dimless",false,null,null,1,false,false,0,"pptr; 10^-12","UCUM","MCnt; MCnc; SFr","Clinical","[pptr] is often used in solution concentrations as 1 ng/L or 1 ng/kg. Also used to express mole fractions as 1 nmol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-12","10*-12","1",1,false],[false,"mole","mol","MOL","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"mol","si",true,null,null,1,false,false,1,"moles","UCUM","Sub","Clinical","Measure the number of molecules ","10*23","10*23","6.0221367",6.0221367,false],[false,"steradian - solid angle","sr","SR","solid angle",1,[0,0,0,2,0,0,0],"sr","si",true,null,null,1,false,false,0,"square radian; rad2; rad^2","UCUM","Angle","Clinical","unit of solid angle in three-dimensional geometry analagous to radian; used in photometry which measures the perceived brightness of object by human eye (e.g. radiant intensity = watt/steradian)","rad2","RAD2","1",1,false],[false,"hertz","Hz","HZ","frequency",1,[0,-1,0,0,0,0,0],"Hz","si",true,null,null,1,false,false,0,"Herz; frequency; frequencies","UCUM","Freq; Num","Clinical","equal to one cycle per second","s-1","S-1","1",1,false],[false,"newton","N","N","force",1000,[1,-2,1,0,0,0,0],"N","si",true,null,null,1,false,false,0,"Newtons","UCUM","Force","Clinical","unit of force with base units kg.m/s2","kg.m/s2","KG.M/S2","1",1,false],[false,"pascal","Pa","PAL","pressure",1000,[-1,-2,1,0,0,0,0],"Pa","si",true,null,null,1,false,false,0,"pascals","UCUM","Pres","Clinical","standard unit of pressure equal to 1 newton per square meter (N/m2)","N/m2","N/M2","1",1,false],[false,"joule","J","J","energy",1000,[2,-2,1,0,0,0,0],"J","si",true,null,null,1,false,false,0,"joules","UCUM","Enrg","Clinical","unit of energy defined as the work required to move an object 1 m with a force of 1 N (N.m) or an electric charge of 1 C through 1 V (C.V), or to produce 1 W for 1 s (W.s) ","N.m","N.M","1",1,false],[false,"watt","W","W","power",1000,[2,-3,1,0,0,0,0],"W","si",true,null,null,1,false,false,0,"watts","UCUM","EngRat","Clinical","unit of power equal to 1 Joule per second (J/s) = kg\u22c5m2\u22c5s\u22123","J/s","J/S","1",1,false],[false,"Ampere","A","A","electric current",1,[0,-1,0,0,0,1,0],"A","si",true,null,null,1,false,false,0,"Amperes","UCUM","ElpotRat","Clinical","unit of electric current equal to flow rate of electrons equal to 16.2415\xd710^18 elementary charges moving past a boundary in one second or 1 Coulomb/second","C/s","C/S","1",1,false],[false,"volt","V","V","electric potential",1000,[2,-2,1,0,0,-1,0],"V","si",true,null,null,1,false,false,0,"volts","UCUM","Elpot","Clinical","unit of electric potential (voltage) = 1 Joule per Coulomb (J/C)","J/C","J/C","1",1,false],[false,"farad","F","F","electric capacitance",0.001,[-2,2,-1,0,0,2,0],"F","si",true,null,null,1,false,false,0,"farads; electric capacitance","UCUM","","Clinical","CGS unit of electric capacitance with base units C/V (Coulomb per Volt)","C/V","C/V","1",1,false],[false,"ohm","Ohm","OHM","electric resistance",1000,[2,-1,1,0,0,-2,0],"\u03a9","si",true,null,null,1,false,false,0,"\u03a9; resistance; ohms","UCUM","","Clinical","unit of electrical resistance with units of Volt per Ampere","V/A","V/A","1",1,false],[false,"siemens","S","SIE","electric conductance",0.001,[-2,1,-1,0,0,2,0],"S","si",true,null,null,1,false,false,0,"Reciprocal ohm; mho; \u03a9\u22121; conductance","UCUM","","Clinical","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","Ohm-1","OHM-1","1",1,false],[false,"weber","Wb","WB","magnetic flux",1000,[2,-1,1,0,0,-1,0],"Wb","si",true,null,null,1,false,false,0,"magnetic flux; webers","UCUM","","Clinical","unit of magnetic flux equal to Volt second","V.s","V.S","1",1,false],[false,"degree Celsius","Cel","CEL","temperature",1,[0,0,0,0,1,0,0],"\xb0C","si",true,null,"Cel",1,true,false,0,"\xb0C; degrees","UCUM","Temp","Clinical","","K",null,null,1,false],[false,"tesla","T","T","magnetic flux density",1000,[0,-1,1,0,0,-1,0],"T","si",true,null,null,1,false,false,0,"Teslas; magnetic field","UCUM","","Clinical","SI unit of magnetic field strength for magnetic field B equal to 1 Weber/square meter = 1 kg/(s2*A)","Wb/m2","WB/M2","1",1,false],[false,"henry","H","H","inductance",1000,[2,0,1,0,0,-2,0],"H","si",true,null,null,1,false,false,0,"henries; inductance","UCUM","","Clinical","unit of electrical inductance; usually expressed in millihenrys (mH) or microhenrys (uH).","Wb/A","WB/A","1",1,false],[false,"lumen","lm","LM","luminous flux",1,[0,0,0,2,0,0,1],"lm","si",true,null,null,1,false,false,0,"luminous flux; lumens","UCUM","","Clinical","unit of luminous flux defined as 1 lm = 1 cd\u22c5sr (candela times sphere)","cd.sr","CD.SR","1",1,false],[false,"lux","lx","LX","illuminance",1,[-2,0,0,2,0,0,1],"lx","si",true,null,null,1,false,false,0,"illuminance; luxes","UCUM","","Clinical","unit of illuminance equal to one lumen per square meter. ","lm/m2","LM/M2","1",1,false],[false,"becquerel","Bq","BQ","radioactivity",1,[0,-1,0,0,0,0,0],"Bq","si",true,null,null,1,false,false,0,"activity; radiation; becquerels","UCUM","","Clinical","measure of the atomic radiation rate with units s^-1","s-1","S-1","1",1,false],[false,"gray","Gy","GY","energy dose",1,[2,-2,0,0,0,0,0],"Gy","si",true,null,null,1,false,false,0,"absorbed doses; ionizing radiation doses; kerma; grays","UCUM","EngCnt","Clinical","unit of ionizing radiation dose with base units of 1 joule of radiation energy per kilogram of matter","J/kg","J/KG","1",1,false],[false,"sievert","Sv","SV","dose equivalent",1,[2,-2,0,0,0,0,0],"Sv","si",true,null,null,1,false,false,0,"sieverts; radiation dose quantities; equivalent doses; effective dose; operational dose; committed dose","UCUM","","Clinical","SI unit for radiation dose equivalent equal to 1 Joule/kilogram.","J/kg","J/KG","1",1,false],[false,"degree - plane angle","deg","DEG","plane angle",0.017453292519943295,[0,0,0,1,0,0,0],"\xb0","iso1000",false,null,null,1,false,false,0,"\xb0; degree of arc; arc degree; arcdegree; angle","UCUM","Angle","Clinical","one degree is equivalent to \u03c0/180 radians.","[pi].rad/360","[PI].RAD/360","2",2,false],[false,"gon","gon","GON","plane angle",0.015707963267948967,[0,0,0,1,0,0,0],"\u25a1g","iso1000",false,null,null,1,false,false,0,"gon (grade); gons","UCUM","Angle","Nonclinical","unit of plane angle measurement equal to 1/400 circle","deg","DEG","0.9",0.9,false],[false,"arc minute","\'","\'","plane angle",0.0002908882086657216,[0,0,0,1,0,0,0],"\'","iso1000",false,null,null,1,false,false,0,"arcminutes; arcmin; arc minutes; arc mins","UCUM","Angle","Clinical","equal to 1/60 degree; used in optometry and opthamology (e.g. visual acuity tests)","deg/60","DEG/60","1",1,false],[false,"arc second","\'\'","\'\'","plane angle",0.00000484813681109536,[0,0,0,1,0,0,0],"\'\'","iso1000",false,null,null,1,false,false,0,"arcseconds; arcsecs","UCUM","Angle","Clinical","equal to 1/60 arcminute = 1/3600 degree; used in optometry and opthamology (e.g. visual acuity tests)","\'/60","\'/60","1",1,false],[false,"Liters","l","L","volume",0.001,[3,0,0,0,0,0,0],"l","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","dm3","DM3","1",1,false],[false,"Liters","L","L","volume",0.001,[3,0,0,0,0,0,0],"L","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","l",null,"1",1,false],[false,"are","ar","AR","area",100,[2,0,0,0,0,0,0],"a","iso1000",true,null,null,1,false,false,0,"100 m2; 100 m^2; 100 square meter; meters squared; metres","UCUM","Area","Clinical","metric base unit for area defined as 100 m^2","m2","M2","100",100,false],[false,"minute","min","MIN","time",60,[0,1,0,0,0,0,0],"min","iso1000",false,null,null,1,false,false,0,"minutes","UCUM","Time","Clinical","","s","S","60",60,false],[false,"hour","h","HR","time",3600,[0,1,0,0,0,0,0],"h","iso1000",false,null,null,1,false,false,0,"hours; hrs; age","UCUM","Time","Clinical","","min","MIN","60",60,false],[false,"day","d","D","time",86400,[0,1,0,0,0,0,0],"d","iso1000",false,null,null,1,false,false,0,"days; age; dy; 24 hours; 24 hrs","UCUM","Time","Clinical","","h","HR","24",24,false],[false,"tropical year","a_t","ANN_T","time",31556925.216,[0,1,0,0,0,0,0],"at","iso1000",false,null,null,1,false,false,0,"solar years; a tropical; years","UCUM","Time","Clinical","has an average of 365.242181 days but is constantly changing.","d","D","365.24219",365.24219,false],[false,"mean Julian year","a_j","ANN_J","time",31557600,[0,1,0,0,0,0,0],"aj","iso1000",false,null,null,1,false,false,0,"mean Julian yr; a julian; years","UCUM","Time","Clinical","has an average of 365.25 days, and in everyday use, has been replaced by the Gregorian year. However, this unit is used in astronomy to calculate light year. ","d","D","365.25",365.25,false],[false,"mean Gregorian year","a_g","ANN_G","time",31556952,[0,1,0,0,0,0,0],"ag","iso1000",false,null,null,1,false,false,0,"mean Gregorian yr; a gregorian; years","UCUM","Time","Clinical","has an average of 365.2425 days and is the most internationally used civil calendar.","d","D","365.2425",365.2425,false],[false,"year","a","ANN","time",31557600,[0,1,0,0,0,0,0],"a","iso1000",false,null,null,1,false,false,0,"years; a; yr, yrs; annum","UCUM","Time","Clinical","","a_j","ANN_J","1",1,false],[false,"week","wk","WK","time",604800,[0,1,0,0,0,0,0],"wk","iso1000",false,null,null,1,false,false,0,"weeks; wks","UCUM","Time","Clinical","","d","D","7",7,false],[false,"synodal month","mo_s","MO_S","time",2551442.976,[0,1,0,0,0,0,0],"mos","iso1000",false,null,null,1,false,false,0,"Moon; synodic month; lunar month; mo-s; mo s; months; moons","UCUM","Time","Nonclinical","has an average of 29.53 days per month, unit used in astronomy","d","D","29.53059",29.53059,false],[false,"mean Julian month","mo_j","MO_J","time",2629800,[0,1,0,0,0,0,0],"moj","iso1000",false,null,null,1,false,false,0,"mo-julian; mo Julian; months","UCUM","Time","Clinical","has an average of 30.435 days per month","a_j/12","ANN_J/12","1",1,false],[false,"mean Gregorian month","mo_g","MO_G","time",2629746,[0,1,0,0,0,0,0],"mog","iso1000",false,null,null,1,false,false,0,"months; month-gregorian; mo-gregorian","UCUM","Time","Clinical","has an average 30.436875 days per month and is from the most internationally used civil calendar.","a_g/12","ANN_G/12","1",1,false],[false,"month","mo","MO","time",2629800,[0,1,0,0,0,0,0],"mo","iso1000",false,null,null,1,false,false,0,"months; duration","UCUM","Time","Clinical","based on Julian calendar which has an average of 30.435 days per month (this unit is used in astronomy but not in everyday life - see mo_g)","mo_j","MO_J","1",1,false],[false,"metric ton","t","TNE","mass",1000000,[0,0,1,0,0,0,0],"t","iso1000",true,null,null,1,false,false,0,"tonnes; megagrams; tons","UCUM","Mass","Nonclinical","equal to 1000 kg used in the US (recognized by NIST as metric ton), and internationally (recognized as tonne)","kg","KG","1e3",1000,false],[false,"bar","bar","BAR","pressure",100000000,[-1,-2,1,0,0,0,0],"bar","iso1000",true,null,null,1,false,false,0,"bars","UCUM","Pres","Nonclinical","unit of pressure equal to 10^5 Pascals, primarily used by meteorologists and in weather forecasting","Pa","PAL","1e5",100000,false],[false,"unified atomic mass unit","u","AMU","mass",1.6605402e-24,[0,0,1,0,0,0,0],"u","iso1000",true,null,null,1,false,false,0,"unified atomic mass units; amu; Dalton; Da","UCUM","Mass","Clinical","the mass of 1/12 of an unbound Carbon-12 atom nuclide equal to 1.6606x10^-27 kg ","g","G","1.6605402e-24",1.6605402e-24,false],[false,"astronomic unit","AU","ASU","length",149597870691,[1,0,0,0,0,0,0],"AU","iso1000",false,null,null,1,false,false,0,"AU; units","UCUM","Len","Clinical","unit of length used in astronomy for measuring distance in Solar system","Mm","MAM","149597.870691",149597.870691,false],[false,"parsec","pc","PRS","length",30856780000000000,[1,0,0,0,0,0,0],"pc","iso1000",true,null,null,1,false,false,0,"parsecs","UCUM","Len","Clinical","unit of length equal to 3.26 light years, nad used to measure large distances to objects outside our Solar System","m","M","3.085678e16",30856780000000000,false],[false,"velocity of light in a vacuum","[c]","[C]","velocity",299792458,[1,-1,0,0,0,0,0],"c","const",true,null,null,1,false,false,0,"speed of light","UCUM","Vel","Constant","equal to 299792458 m/s (approximately 3 x 10^8 m/s)","m/s","M/S","299792458",299792458,false],[false,"Planck constant","[h]","[H]","action",6.6260755e-31,[2,-1,1,0,0,0,0],"h","const",true,null,null,1,false,false,0,"Planck\'s constant","UCUM","","Constant","constant = 6.62607004 \xd7 10-34 m2.kg/s; defined as quantum of action","J.s","J.S","6.6260755e-34",6.6260755e-34,false],[false,"Boltzmann constant","[k]","[K]","(unclassified)",1.380658e-20,[2,-2,1,0,-1,0,0],"k","const",true,null,null,1,false,false,0,"k; kB","UCUM","","Constant","physical constant relating energy at the individual particle level with temperature = 1.38064852 \xd710^\u221223 J/K","J/K","J/K","1.380658e-23",1.380658e-23,false],[false,"permittivity of vacuum - electric","[eps_0]","[EPS_0]","electric permittivity",8.854187817000001e-15,[-3,2,-1,0,0,2,0],"\u03b50","const",true,null,null,1,false,false,0,"\u03b50; Electric Constant; vacuum permittivity; permittivity of free space ","UCUM","","Constant","approximately equal to 8.854\u2009\xd7 10^\u221212 F/m (farads per meter)","F/m","F/M","8.854187817e-12",8.854187817e-12,false],[false,"permeability of vacuum - magnetic","[mu_0]","[MU_0]","magnetic permeability",0.0012566370614359172,[1,0,1,0,0,-2,0],"\u03bc0","const",true,null,null,1,false,false,0,"\u03bc0; vacuum permeability; permeability of free space; magnetic constant","UCUM","","Constant","equal to 4\u03c0\xd710^\u22127 N/A2 (Newtons per square ampere) \u2248 1.2566\xd710^\u22126 H/m (Henry per meter)","N/A2","4.[PI].10*-7.N/A2","1",0.0000012566370614359173,false],[false,"elementary charge","[e]","[E]","electric charge",1.60217733e-19,[0,0,0,0,0,1,0],"e","const",true,null,null,1,false,false,0,"e; q; electric charges","UCUM","","Constant","the magnitude of the electric charge carried by a single electron or proton \u2248 1.60217\xd710^-19 Coulombs","C","C","1.60217733e-19",1.60217733e-19,false],[false,"electronvolt","eV","EV","energy",1.60217733e-16,[2,-2,1,0,0,0,0],"eV","iso1000",true,null,null,1,false,false,0,"Electron Volts; electronvolts","UCUM","Eng","Clinical","unit of kinetic energy = 1 V * 1.602\xd710^\u221219 C = 1.6\xd710\u221219 Joules","[e].V","[E].V","1",1,false],[false,"electron mass","[m_e]","[M_E]","mass",9.1093897e-28,[0,0,1,0,0,0,0],"me","const",true,null,null,1,false,false,0,"electron rest mass; me","UCUM","Mass","Constant","approximately equal to 9.10938356 \xd7 10-31 kg; defined as the mass of a stationary electron","g","g","9.1093897e-28",9.1093897e-28,false],[false,"proton mass","[m_p]","[M_P]","mass",1.6726231e-24,[0,0,1,0,0,0,0],"mp","const",true,null,null,1,false,false,0,"mp; masses","UCUM","Mass","Constant","approximately equal to 1.672622\xd710\u221227 kg","g","g","1.6726231e-24",1.6726231e-24,false],[false,"Newtonian constant of gravitation","[G]","[GC]","(unclassified)",6.67259e-14,[3,-2,-1,0,0,0,0],"G","const",true,null,null,1,false,false,0,"G; gravitational constant; Newton\'s constant","UCUM","","Constant","gravitational constant = 6.674\xd710\u221211 N\u22c5m2/kg2","m3.kg-1.s-2","M3.KG-1.S-2","6.67259e-11",6.67259e-11,false],[false,"standard acceleration of free fall","[g]","[G]","acceleration",9.80665,[1,-2,0,0,0,0,0],"gn","const",true,null,null,1,false,false,0,"standard gravity; g; \u02610; \u0261n","UCUM","Accel","Constant","defined by standard = 9.80665 m/s2","m/s2","M/S2","980665e-5",9.80665,false],[false,"Torr","Torr","Torr","pressure",133322,[-1,-2,1,0,0,0,0],"Torr","const",false,null,null,1,false,false,0,"torrs","UCUM","Pres","Clinical","1 torr = 1 mmHg; unit used to measure blood pressure","Pa","PAL","133.322",133.322,false],[false,"standard atmosphere","atm","ATM","pressure",101325000,[-1,-2,1,0,0,0,0],"atm","const",false,null,null,1,false,false,0,"reference pressure; atmos; std atmosphere","UCUM","Pres","Clinical","defined as being precisely equal to 101,325 Pa","Pa","PAL","101325",101325,false],[false,"light-year","[ly]","[LY]","length",9460730472580800,[1,0,0,0,0,0,0],"l.y.","const",true,null,null,1,false,false,0,"light years; ly","UCUM","Len","Constant","unit of astronomal distance = 5.88\xd710^12 mi","[c].a_j","[C].ANN_J","1",1,false],[false,"gram-force","gf","GF","force",9.80665,[1,-2,1,0,0,0,0],"gf","const",true,null,null,1,false,false,0,"Newtons; gram forces","UCUM","Force","Clinical","May be specific to unit related to cardiac output","g.[g]","G.[G]","1",1,false],[false,"Kayser","Ky","KY","lineic number",100,[-1,0,0,0,0,0,0],"K","cgs",true,null,null,1,false,false,0,"wavenumbers; kaysers","UCUM","InvLen","Clinical","unit of wavelength equal to cm^-1","cm-1","CM-1","1",1,false],[false,"Gal","Gal","GL","acceleration",0.01,[1,-2,0,0,0,0,0],"Gal","cgs",true,null,null,1,false,false,0,"galileos; Gals","UCUM","Accel","Clinical","unit of acceleration used in gravimetry; equivalent to cm/s2 ","cm/s2","CM/S2","1",1,false],[false,"dyne","dyn","DYN","force",0.01,[1,-2,1,0,0,0,0],"dyn","cgs",true,null,null,1,false,false,0,"dynes","UCUM","Force","Clinical","unit of force equal to 10^-5 Newtons","g.cm/s2","G.CM/S2","1",1,false],[false,"erg","erg","ERG","energy",0.0001,[2,-2,1,0,0,0,0],"erg","cgs",true,null,null,1,false,false,0,"10^-7 Joules, 10-7 Joules; 100 nJ; 100 nanoJoules; 1 dyne cm; 1 g.cm2/s2","UCUM","Eng","Clinical","unit of energy = 1 dyne centimeter = 10^-7 Joules","dyn.cm","DYN.CM","1",1,false],[false,"Poise","P","P","dynamic viscosity",100,[-1,-1,1,0,0,0,0],"P","cgs",true,null,null,1,false,false,0,"dynamic viscosity; poises","UCUM","Visc","Clinical","unit of dynamic viscosity where 1 Poise = 1/10 Pascal second","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"Biot","Bi","BI","electric current",10,[0,-1,0,0,0,1,0],"Bi","cgs",true,null,null,1,false,false,0,"Bi; abamperes; abA","UCUM","ElpotRat","Clinical","equal to 10 amperes","A","A","10",10,false],[false,"Stokes","St","ST","kinematic viscosity",0.0001,[2,-1,0,0,0,0,0],"St","cgs",true,null,null,1,false,false,0,"kinematic viscosity","UCUM","Visc","Clinical","unit of kimematic viscosity with units cm2/s","cm2/s","CM2/S","1",1,false],[false,"Maxwell","Mx","MX","flux of magnetic induction",0.00001,[2,-1,1,0,0,-1,0],"Mx","cgs",true,null,null,1,false,false,0,"magnetix flux; Maxwells","UCUM","","Clinical","unit of magnetic flux","Wb","WB","1e-8",1e-8,false],[false,"Gauss","G","GS","magnetic flux density",0.1,[0,-1,1,0,0,-1,0],"Gs","cgs",true,null,null,1,false,false,0,"magnetic fields; magnetic flux density; induction; B","UCUM","magnetic","Clinical","CGS unit of magnetic flux density, known as magnetic field B; defined as one maxwell unit per square centimeter (see Oersted for CGS unit for H field)","T","T","1e-4",0.0001,false],[false,"Oersted","Oe","OE","magnetic field intensity",79.57747154594767,[-1,-1,0,0,0,1,0],"Oe","cgs",true,null,null,1,false,false,0,"H magnetic B field; Oersteds","UCUM","","Clinical","CGS unit of the auxiliary magnetic field H defined as 1 dyne per unit pole = 1000/4\u03c0 amperes per meter (see Gauss for CGS unit for B field)","A/m","/[PI].A/M","250",79.57747154594767,false],[false,"Gilbert","Gb","GB","magnetic tension",0.7957747154594768,[0,-1,0,0,0,1,0],"Gb","cgs",true,null,null,1,false,false,0,"Gi; magnetomotive force; Gilberts","UCUM","","Clinical","unit of magnetomotive force (magnetic potential)","Oe.cm","OE.CM","1",1,false],[false,"stilb","sb","SB","lum. intensity density",10000,[-2,0,0,0,0,0,1],"sb","cgs",true,null,null,1,false,false,0,"stilbs","UCUM","","Obsolete","unit of luminance; equal to and replaced by unit candela per square centimeter (cd/cm2)","cd/cm2","CD/CM2","1",1,false],[false,"Lambert","Lmb","LMB","brightness",3183.098861837907,[-2,0,0,0,0,0,1],"L","cgs",true,null,null,1,false,false,0,"luminance; lamberts","UCUM","","Clinical","unit of luminance defined as 1 lambert = 1/ \u03c0 candela per square meter","cd/cm2/[pi]","CD/CM2/[PI]","1",1,false],[false,"phot","ph","PHT","illuminance",0.0001,[-2,0,0,2,0,0,1],"ph","cgs",true,null,null,1,false,false,0,"phots","UCUM","","Clinical","CGS photometric unit of illuminance, or luminous flux through an area equal to 10000 lumens per square meter = 10000 lux","lx","LX","1e-4",0.0001,false],[false,"Curie","Ci","CI","radioactivity",37000000000,[0,-1,0,0,0,0,0],"Ci","cgs",true,null,null,1,false,false,0,"curies","UCUM","","Obsolete","unit for measuring atomic disintegration rate; replaced by the Bequerel (Bq) unit","Bq","BQ","37e9",37000000000,false],[false,"Roentgen","R","ROE","ion dose",2.58e-7,[0,0,-1,0,0,1,0],"R","cgs",true,null,null,1,false,false,0,"r\xf6ntgen; Roentgens","UCUM","","Clinical","unit of exposure of X-rays and gamma rays in air; unit used primarily in the US but strongly discouraged by NIST","C/kg","C/KG","2.58e-4",0.000258,false],[false,"radiation absorbed dose","RAD","[RAD]","energy dose",0.01,[2,-2,0,0,0,0,0],"RAD","cgs",true,null,null,1,false,false,0,"doses","UCUM","","Clinical","unit of radiation absorbed dose used primarily in the US with base units 100 ergs per gram of material. Also see the SI unit Gray (Gy).","erg/g","ERG/G","100",100,false],[false,"radiation equivalent man","REM","[REM]","dose equivalent",0.01,[2,-2,0,0,0,0,0],"REM","cgs",true,null,null,1,false,false,0,"Roentgen Equivalent in Man; rems; dose equivalents","UCUM","","Clinical","unit of equivalent dose which measures the effect of radiation on humans equal to 0.01 sievert. Used primarily in the US. Also see SI unit Sievert (Sv)","RAD","[RAD]","1",1,false],[false,"inch","[in_i]","[IN_I]","length",0.025400000000000002,[1,0,0,0,0,0,0],"in","intcust",false,null,null,1,false,false,0,"inches; in; international inch; body height","UCUM","Len","Clinical","standard unit for inch in the US and internationally","cm","CM","254e-2",2.54,false],[false,"foot","[ft_i]","[FT_I]","length",0.3048,[1,0,0,0,0,0,0],"ft","intcust",false,null,null,1,false,false,0,"ft; fts; foot; international foot; feet; international feet; height","UCUM","Len","Clinical","unit used in the US and internationally","[in_i]","[IN_I]","12",12,false],[false,"yard","[yd_i]","[YD_I]","length",0.9144000000000001,[1,0,0,0,0,0,0],"yd","intcust",false,null,null,1,false,false,0,"international yards; yds; distance","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","3",3,false],[false,"mile","[mi_i]","[MI_I]","length",1609.344,[1,0,0,0,0,0,0],"mi","intcust",false,null,null,1,false,false,0,"international miles; mi I; statute mile","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","5280",5280,false],[false,"fathom","[fth_i]","[FTH_I]","depth of water",1.8288000000000002,[1,0,0,0,0,0,0],"fth","intcust",false,null,null,1,false,false,0,"international fathoms","UCUM","Len","Nonclinical","unit used in the US and internationally to measure depth of water; same length as the US fathom","[ft_i]","[FT_I]","6",6,false],[false,"nautical mile","[nmi_i]","[NMI_I]","length",1852,[1,0,0,0,0,0,0],"n.mi","intcust",false,null,null,1,false,false,0,"nautical mile; nautical miles; international nautical mile; international nautical miles; nm; n.m.; nmi","UCUM","Len","Nonclinical","standard unit used in the US and internationally","m","M","1852",1852,false],[false,"knot","[kn_i]","[KN_I]","velocity",0.5144444444444445,[1,-1,0,0,0,0,0],"knot","intcust",false,null,null,1,false,false,0,"kn; kt; international knots","UCUM","Vel","Nonclinical","defined as equal to one nautical mile (1.852 km) per hour","[nmi_i]/h","[NMI_I]/H","1",1,false],[false,"square inch","[sin_i]","[SIN_I]","area",0.0006451600000000001,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in2; in^2; inches squared; sq inch; inches squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[in_i]2","[IN_I]2","1",1,false],[false,"square foot","[sft_i]","[SFT_I]","area",0.09290304,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft2; ft^2; ft squared; sq ft; feet; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[ft_i]2","[FT_I]2","1",1,false],[false,"square yard","[syd_i]","[SYD_I]","area",0.8361273600000002,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"yd2; yd^2; sq. yds; yards squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[yd_i]2","[YD_I]2","1",1,false],[false,"cubic inch","[cin_i]","[CIN_I]","volume",0.000016387064000000003,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in3; in^3; in*3; inches^3; inches*3; cu. in; cu in; cubic inches; inches cubed; cin","UCUM","Vol","Clinical","standard unit used in the US and internationally","[in_i]3","[IN_I]3","1",1,false],[false,"cubic foot","[cft_i]","[CFT_I]","volume",0.028316846592000004,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft3; ft^3; ft*3; cu. ft; cubic feet; cubed; [ft_i]3; international","UCUM","Vol","Clinical","","[ft_i]3","[FT_I]3","1",1,false],[false,"cubic yard","[cyd_i]","[CYD_I]","volume",0.7645548579840002,[3,0,0,0,0,0,0],"cu.yd","intcust",false,null,null,1,false,false,0,"cubic yards; cubic yds; cu yards; CYs; yards^3; yd^3; yds^3; yd3; yds3","UCUM","Vol","Nonclinical","standard unit used in the US and internationally","[yd_i]3","[YD_I]3","1",1,false],[false,"board foot","[bf_i]","[BF_I]","volume",0.002359737216,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"BDFT; FBM; BF; board feet; international","UCUM","Vol","Nonclinical","unit of volume used to measure lumber","[in_i]3","[IN_I]3","144",144,false],[false,"cord","[cr_i]","[CR_I]","volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"crd I; international cords","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3","[ft_i]3","[FT_I]3","128",128,false],[false,"mil","[mil_i]","[MIL_I]","length",0.000025400000000000004,[1,0,0,0,0,0,0],"mil","intcust",false,null,null,1,false,false,0,"thou, thousandth; mils; international","UCUM","Len","Clinical","equal to 0.001 international inch","[in_i]","[IN_I]","1e-3",0.001,false],[false,"circular mil","[cml_i]","[CML_I]","area",5.067074790974979e-10,[2,0,0,0,0,0,0],"circ.mil","intcust",false,null,null,1,false,false,0,"circular mils; cml I; international","UCUM","Area","Clinical","","[pi]/4.[mil_i]2","[PI]/4.[MIL_I]2","1",1,false],[false,"hand","[hd_i]","[HD_I]","height of horses",0.10160000000000001,[1,0,0,0,0,0,0],"hd","intcust",false,null,null,1,false,false,0,"hands; international","UCUM","Len","Nonclinical","used to measure horse height","[in_i]","[IN_I]","4",4,false],[false,"foot - US","[ft_us]","[FT_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],"ftus","us-lengths",false,null,null,1,false,false,0,"US foot; foot US; us ft; ft us; height; visual distance; feet","UCUM","Len","Obsolete","Better to use [ft_i] which refers to the length used worldwide, including in the US; [ft_us] may be confused with land survey units. ","m/3937","M/3937","1200",1200,false],[false,"yard - US","[yd_us]","[YD_US]","length",0.9144018288036575,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US yards; us yds; distance","UCUM","Len; Nrat","Obsolete","Better to use [yd_i] which refers to the length used worldwide, including in the US; [yd_us] refers to unit used in land surveys in the US","[ft_us]","[FT_US]","3",3,false],[false,"inch - US","[in_us]","[IN_US]","length",0.0254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US inches; in us; us in; inch US","UCUM","Len","Obsolete","Better to use [in_i] which refers to the length used worldwide, including in the US","[ft_us]/12","[FT_US]/12","1",1,false],[false,"rod - US","[rd_us]","[RD_US]","length",5.029210058420117,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US rod; US rods; rd US; US rd","UCUM","Len","Obsolete","","[ft_us]","[FT_US]","16.5",16.5,false],[false,"Gunter\'s chain - US","[ch_us]","[CH_US]","length",20.116840233680467,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"surveyor\'s chain; Surveyor\'s chain USA; Gunter\u2019s measurement; surveyor\u2019s measurement; Gunter\'s Chain USA","UCUM","Len","Obsolete","historical unit used for land survey used only in the US","[rd_us]","[RD_US]","4",4,false],[false,"link for Gunter\'s chain - US","[lk_us]","[LK_US]","length",0.20116840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Links for Gunter\'s Chain USA","UCUM","Len","Obsolete","","[ch_us]/100","[CH_US]/100","1",1,false],[false,"Ramden\'s chain - US","[rch_us]","[RCH_US]","length",30.480060960121918,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Ramsden\'s chain; engineer\'s chains","UCUM","Len","Obsolete","distance measuring device used for\xa0land survey","[ft_us]","[FT_US]","100",100,false],[false,"link for Ramden\'s chain - US","[rlk_us]","[RLK_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"links for Ramsden\'s chain","UCUM","Len","Obsolete","","[rch_us]/100","[RCH_US]/100","1",1,false],[false,"fathom - US","[fth_us]","[FTH_US]","length",1.828803657607315,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US fathoms; fathom USA; fth us","UCUM","Len","Obsolete","same length as the international fathom - better to use international fathom ([fth_i])","[ft_us]","[FT_US]","6",6,false],[false,"furlong - US","[fur_us]","[FUR_US]","length",201.16840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US furlongs; fur us","UCUM","Len","Nonclinical","distance unit in horse racing","[rd_us]","[RD_US]","40",40,false],[false,"mile - US","[mi_us]","[MI_US]","length",1609.3472186944373,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"U.S. Survey Miles; US statute miles; survey mi; US mi; distance","UCUM","Len","Nonclinical","Better to use [mi_i] which refers to the length used worldwide, including in the US","[fur_us]","[FUR_US]","8",8,false],[false,"acre - US","[acr_us]","[ACR_US]","area",4046.872609874252,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Acre USA Survey; Acre USA; survey acres","UCUM","Area","Nonclinical","an older unit based on pre 1959 US statute lengths that is still sometimes used in the US only for land survey purposes. ","[rd_us]2","[RD_US]2","160",160,false],[false,"square rod - US","[srd_us]","[SRD_US]","area",25.292953811714074,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"rod2; rod^2; sq. rod; rods squared","UCUM","Area","Nonclinical","Used only in the US to measure land area, based on US statute land survey length units","[rd_us]2","[RD_US]2","1",1,false],[false,"square mile - US","[smi_us]","[SMI_US]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"mi2; mi^2; sq mi; miles squared","UCUM","Area","Nonclinical","historical unit used only in the US for land survey purposes (based on the US survey mile), not the internationally recognized [mi_i]","[mi_us]2","[MI_US]2","1",1,false],[false,"section","[sct]","[SCT]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"sct; sections","UCUM","Area","Nonclinical","tract of land approximately equal to 1 mile square containing 640 acres","[mi_us]2","[MI_US]2","1",1,false],[false,"township","[twp]","[TWP]","area",93239944.93150276,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"twp; townships","UCUM","Area","Nonclinical","land measurement equal to 6 mile square","[sct]","[SCT]","36",36,false],[false,"mil - US","[mil_us]","[MIL_US]","length",0.0000254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"thou, thousandth; mils","UCUM","Len","Obsolete","better to use [mil_i] which is based on the internationally recognized inch","[in_us]","[IN_US]","1e-3",0.001,false],[false,"inch - British","[in_br]","[IN_BR]","length",0.025399980000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial inches; imp in; br in; british inches","UCUM","Len","Obsolete","","cm","CM","2.539998",2.539998,false],[false,"foot - British","[ft_br]","[FT_BR]","length",0.30479976000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British Foot; Imperial Foot; feet; imp fts; br fts","UCUM","Len","Obsolete","","[in_br]","[IN_BR]","12",12,false],[false,"rod - British","[rd_br]","[RD_BR]","length",5.02919604,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British rods; br rd","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","16.5",16.5,false],[false,"Gunter\'s chain - British","[ch_br]","[CH_BR]","length",20.11678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Gunter\'s Chain British; Gunters Chain British; Surveyor\'s Chain British","UCUM","Len","Obsolete","historical unit used for land survey used only in Great Britain","[rd_br]","[RD_BR]","4",4,false],[false,"link for Gunter\'s chain - British","[lk_br]","[LK_BR]","length",0.2011678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Links for Gunter\'s Chain British","UCUM","Len","Obsolete","","[ch_br]/100","[CH_BR]/100","1",1,false],[false,"fathom - British","[fth_br]","[FTH_BR]","length",1.82879856,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British fathoms; imperial fathoms; br fth; imp fth","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6",6,false],[false,"pace - British","[pc_br]","[PC_BR]","length",0.7619994000000001,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British paces; br pc","UCUM","Len","Nonclinical","traditional unit of length equal to 152.4 centimeters, or 1.52 meter. ","[ft_br]","[FT_BR]","2.5",2.5,false],[false,"yard - British","[yd_br]","[YD_BR]","length",0.91439928,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British yards; Br yds; distance","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","3",3,false],[false,"mile - British","[mi_br]","[MI_BR]","length",1609.3427328000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial miles; British miles; English statute miles; imp mi, br mi","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","5280",5280,false],[false,"nautical mile - British","[nmi_br]","[NMI_BR]","length",1853.1825408000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British nautical miles; Imperial nautical miles; Admiralty miles; n.m. br; imp nm","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6080",6080,false],[false,"knot - British","[kn_br]","[KN_BR]","velocity",0.5147729280000001,[1,-1,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British knots; kn br; kt","UCUM","Vel","Obsolete","based on obsolete British nautical mile ","[nmi_br]/h","[NMI_BR]/H","1",1,false],[false,"acre","[acr_br]","[ACR_BR]","area",4046.850049400269,[2,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Imperial acres; British; a; ac; ar; acr","UCUM","Area","Nonclinical","the standard unit for acre used in the US and internationally","[yd_br]2","[YD_BR]2","4840",4840,false],[false,"gallon - US","[gal_us]","[GAL_US]","fluid volume",0.0037854117840000006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gallons; US liquid gallon; gal us; Queen Anne\'s wine gallon","UCUM","Vol","Nonclinical","only gallon unit used in the US; [gal_us] is only used in some other countries in South American and Africa to measure gasoline volume","[in_i]3","[IN_I]3","231",231,false],[false,"barrel - US","[bbl_us]","[BBL_US]","fluid volume",0.158987294928,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"bbl","UCUM","Vol","Nonclinical","[bbl_us] is the standard unit for oil barrel, which is a unit only used in the US to measure the volume oil. ","[gal_us]","[GAL_US]","42",42,false],[false,"quart - US","[qt_us]","[QT_US]","fluid volume",0.0009463529460000001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US quarts; us qts","UCUM","Vol","Clinical","Used only in the US","[gal_us]/4","[GAL_US]/4","1",1,false],[false,"pint - US","[pt_us]","[PT_US]","fluid volume",0.00047317647300000007,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pints; pint US; liquid pint; pt us; us pt","UCUM","Vol","Clinical","Used only in the US","[qt_us]/2","[QT_US]/2","1",1,false],[false,"gill - US","[gil_us]","[GIL_US]","fluid volume",0.00011829411825000002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gills; gil us","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in the US","[pt_us]/4","[PT_US]/4","1",1,false],[false,"fluid ounce - US","[foz_us]","[FOZ_US]","fluid volume",0.000029573529562500005,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"US fluid ounces; fl ozs; FO; fl. oz.; foz us","UCUM","Vol","Clinical","unit used only in the US","[gil_us]/4","[GIL_US]/4","1",1,false],[false,"fluid dram - US","[fdr_us]","[FDR_US]","fluid volume",0.0000036966911953125006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US fluid drams; fdr us","UCUM","Vol","Nonclinical","equal to 1/8 US fluid ounce = 3.69 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_us]/8","[FOZ_US]/8","1",1,false],[false,"minim - US","[min_us]","[MIN_US]","fluid volume",6.1611519921875e-8,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"min US; US min; \u264f US","UCUM","Vol","Obsolete","","[fdr_us]/60","[FDR_US]/60","1",1,false],[false,"cord - US","[crd_us]","[CRD_US]","fluid volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US cord; US cords; crd us; us crd","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3 (the same as international cord [cr_i])","[ft_i]3","[FT_I]3","128",128,false],[false,"bushel - US","[bu_us]","[BU_US]","dry volume",0.03523907016688001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US bushels; US bsh; US bu","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[in_i]3","[IN_I]3","2150.42",2150.42,false],[false,"gallon - historical","[gal_wi]","[GAL_WI]","dry volume",0.004404883770860001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Corn Gallon British; Dry Gallon US; Gallons Historical; Grain Gallon British; Winchester Corn Gallon; historical winchester gallons; wi gal","UCUM","Vol","Obsolete","historical unit of dry volume no longer used","[bu_us]/8","[BU_US]/8","1",1,false],[false,"peck - US","[pk_us]","[PK_US]","dry volume",0.008809767541720002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pecks; US pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[bu_us]/4","[BU_US]/4","1",1,false],[false,"dry quart - US","[dqt_us]","[DQT_US]","dry volume",0.0011012209427150002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry quarts; dry quart US; US dry quart; dry qt; us dry qt; dqt; dqt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[pk_us]/8","[PK_US]/8","1",1,false],[false,"dry pint - US","[dpt_us]","[DPT_US]","dry volume",0.0005506104713575001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry pints; dry pint US; US dry pint; dry pt; dpt; dpt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[dqt_us]/2","[DQT_US]/2","1",1,false],[false,"tablespoon - US","[tbs_us]","[TBS_US]","volume",0.000014786764781250002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Tbs; tbsp; tbs us; US tablespoons","UCUM","Vol","Clinical","unit defined as 0.5 US fluid ounces or 3 teaspoons - used only in the US. See [tbs_m] for the unit used internationally and in the US for nutrional labelling. ","[foz_us]/2","[FOZ_US]/2","1",1,false],[false,"teaspoon - US","[tsp_us]","[TSP_US]","volume",0.0000049289215937500005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; US teaspoons","UCUM","Vol","Nonclinical","unit defined as 1/6 US fluid ounces - used only in the US. See [tsp_m] for the unit used internationally and in the US for nutrional labelling. ","[tbs_us]/3","[TBS_US]/3","1",1,false],[false,"cup - US customary","[cup_us]","[CUP_US]","volume",0.00023658823650000004,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup us; us cups","UCUM","Vol","Nonclinical","Unit defined as 1/2 US pint or 16 US tablespoons \u2248 236.59 mL, which is not the standard unit defined by the FDA of 240 mL - see [cup_m] (metric cup)","[tbs_us]","[TBS_US]","16",16,false],[false,"fluid ounce - metric","[foz_m]","[FOZ_M]","fluid volume",0.000029999999999999997,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"metric fluid ounces; fozs m; fl ozs m","UCUM","Vol","Clinical","unit used only in the US for nutritional labelling, as set by the FDA","mL","ML","30",30,false],[false,"cup - US legal","[cup_m]","[CUP_M]","volume",0.00023999999999999998,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup m; metric cups","UCUM","Vol","Clinical","standard unit equal to 240 mL used in the US for nutritional labelling, as defined by the FDA. Note that this is different from the US customary cup (236.59 mL) and the metric cup used in Commonwealth nations (250 mL).","mL","ML","240",240,false],[false,"teaspoon - metric","[tsp_m]","[TSP_M]","volume",0.0000049999999999999996,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; metric teaspoons","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","5",5,false],[false,"tablespoon - metric","[tbs_m]","[TBS_M]","volume",0.000014999999999999999,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"metric tablespoons; Tbs; tbsp; T; tbs m","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","15",15,false],[false,"gallon- British","[gal_br]","[GAL_BR]","volume",0.004546090000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gallons, UK gallons; British gallons; br gal; imp gal","UCUM","Vol","Nonclinical","Used only in Great Britain and other Commonwealth countries","l","L","4.54609",4.54609,false],[false,"peck - British","[pk_br]","[PK_BR]","volume",0.009092180000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial pecks; British pecks; br pk; imp pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[gal_br]","[GAL_BR]","2",2,false],[false,"bushel - British","[bu_br]","[BU_BR]","volume",0.03636872000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British bushels; imperial; br bsh; br bu; imp","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[pk_br]","[PK_BR]","4",4,false],[false,"quart - British","[qt_br]","[QT_BR]","volume",0.0011365225000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British quarts; imperial quarts; br qts","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gal_br]/4","[GAL_BR]/4","1",1,false],[false,"pint - British","[pt_br]","[PT_BR]","volume",0.0005682612500000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British pints; imperial pints; pt br; br pt; imp pt; pt imp","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[qt_br]/2","[QT_BR]/2","1",1,false],[false,"gill - British","[gil_br]","[GIL_BR]","volume",0.00014206531250000003,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gills; British gills; imp gill, br gill","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in Great Britain","[pt_br]/4","[PT_BR]/4","1",1,false],[false,"fluid ounce - British","[foz_br]","[FOZ_BR]","volume",0.000028413062500000005,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid ounces; Imperial fluid ounces; br fozs; imp fozs; br fl ozs","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gil_br]/5","[GIL_BR]/5","1",1,false],[false,"fluid dram - British","[fdr_br]","[FDR_BR]","volume",0.0000035516328125000006,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid drams; fdr br","UCUM","Vol","Nonclinical","equal to 1/8 Imperial fluid ounce = 3.55 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_br]/8","[FOZ_BR]/8","1",1,false],[false,"minim - British","[min_br]","[MIN_BR]","volume",5.919388020833334e-8,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"min br; br min; \u264f br","UCUM","Vol","Obsolete","","[fdr_br]/60","[FDR_BR]/60","1",1,false],[false,"grain","[gr]","[GR]","mass",0.06479891,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"gr; grains","UCUM","Mass","Nonclinical","an apothecary measure of mass rarely used today","mg","MG","64.79891",64.79891,false],[false,"pound","[lb_av]","[LB_AV]","mass",453.59237,[0,0,1,0,0,0,0],"lb","avoirdupois",false,null,null,1,false,false,0,"avoirdupois pounds, international pounds; av lbs; pounds","UCUM","Mass","Clinical","standard unit used in the US and internationally","[gr]","[GR]","7000",7000,false],[false,"pound force - US","[lbf_av]","[LBF_AV]","force",4448.2216152605,[1,-2,1,0,0,0,0],"lbf","const",false,null,null,1,false,false,0,"lbfs; US lbf; US pound forces","UCUM","Force","Clinical","only rarely needed in health care - see [lb_av] which is the more common unit to express weight","[lb_av].[g]","[LB_AV].[G]","1",1,false],[false,"ounce","[oz_av]","[OZ_AV]","mass",28.349523125,[0,0,1,0,0,0,0],"oz","avoirdupois",false,null,null,1,false,false,0,"ounces; international ounces; avoirdupois ounces; av ozs","UCUM","Mass","Clinical","standard unit used in the US and internationally","[lb_av]/16","[LB_AV]/16","1",1,false],[false,"Dram mass unit","[dr_av]","[DR_AV]","mass",1.7718451953125,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"Dram; drams avoirdupois; avoidupois dram; international dram","UCUM","Mass","Clinical","unit from the avoirdupois system, which is used in the US and internationally","[oz_av]/16","[OZ_AV]/16","1",1,false],[false,"short hundredweight","[scwt_av]","[SCWT_AV]","mass",45359.237,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"hundredweights; s cwt; scwt; avoirdupois","UCUM","Mass","Nonclinical","Used only in the US to equal 100 pounds","[lb_av]","[LB_AV]","100",100,false],[false,"long hundredweight","[lcwt_av]","[LCWT_AV]","mass",50802.345440000005,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial hundredweights; imp cwt; lcwt; avoirdupois","UCUM","Mass","Obsolete","","[lb_av]","[LB_AV]","112",112,false],[false,"short ton - US","[ston_av]","[STON_AV]","mass",907184.74,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"ton; US tons; avoirdupois tons","UCUM","Mass","Clinical","Used only in the US","[scwt_av]","[SCWT_AV]","20",20,false],[false,"long ton - British","[lton_av]","[LTON_AV]","mass",1016046.9088000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial tons; weight tons; British long tons; long ton avoirdupois","UCUM","Mass","Nonclinical","Used only in Great Britain and other Commonwealth countries","[lcwt_av]","[LCWT_AV]","20",20,false],[false,"stone - British","[stone_av]","[STONE_AV]","mass",6350.293180000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"British stones; avoirdupois","UCUM","Mass","Nonclinical","Used primarily in the UK and Ireland to measure body weight","[lb_av]","[LB_AV]","14",14,false],[false,"pennyweight - troy","[pwt_tr]","[PWT_TR]","mass",1.5551738400000001,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"dwt; denarius weights","UCUM","Mass","Obsolete","historical unit used to measure mass and cost of precious metals","[gr]","[GR]","24",24,false],[false,"ounce - troy","[oz_tr]","[OZ_TR]","mass",31.103476800000003,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy ounces; tr ozs","UCUM","Mass","Nonclinical","unit of mass for precious metals and gemstones only","[pwt_tr]","[PWT_TR]","20",20,false],[false,"pound - troy","[lb_tr]","[LB_TR]","mass",373.2417216,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy pounds; tr lbs","UCUM","Mass","Nonclinical","only used for weighing precious metals","[oz_tr]","[OZ_TR]","12",12,false],[false,"scruple","[sc_ap]","[SC_AP]","mass",1.2959782,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"scruples; sc ap","UCUM","Mass","Obsolete","","[gr]","[GR]","20",20,false],[false,"dram - apothecary","[dr_ap]","[DR_AP]","mass",3.8879346,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"\u0292; drachm; apothecaries drams; dr ap; dram ap","UCUM","Mass","Nonclinical","unit still used in the US occasionally to measure amount of drugs in pharmacies","[sc_ap]","[SC_AP]","3",3,false],[false,"ounce - apothecary","[oz_ap]","[OZ_AP]","mass",31.1034768,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary ounces; oz ap; ap ozs; ozs ap","UCUM","Mass","Obsolete","","[dr_ap]","[DR_AP]","8",8,false],[false,"pound - apothecary","[lb_ap]","[LB_AP]","mass",373.2417216,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary pounds; apothecaries pounds; ap lb; lb ap; ap lbs; lbs ap","UCUM","Mass","Obsolete","","[oz_ap]","[OZ_AP]","12",12,false],[false,"ounce - metric","[oz_m]","[OZ_M]","mass",28,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"metric ounces; m ozs","UCUM","Mass","Clinical","see [oz_av] (the avoirdupois ounce) for the standard ounce used internationally; [oz_m] is equal to 28 grams and is based on the apothecaries\' system of mass units which is used in some US pharmacies. ","g","g","28",28,false],[false,"line","[lne]","[LNE]","length",0.002116666666666667,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"British lines; br L; L; l","UCUM","Len","Obsolete","","[in_i]/12","[IN_I]/12","1",1,false],[false,"point (typography)","[pnt]","[PNT]","length",0.0003527777777777778,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"DTP points; desktop publishing point; pt; pnt","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[lne]/6","[LNE]/6","1",1,false],[false,"pica (typography)","[pca]","[PCA]","length",0.004233333333333334,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt]","[PNT]","12",12,false],[false,"Printer\'s point (typography)","[pnt_pr]","[PNT_PR]","length",0.00035145980000000004,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pnt pr","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[in_i]","[IN_I]","0.013837",0.013837,false],[false,"Printer\'s pica (typography)","[pca_pr]","[PCA_PR]","length",0.004217517600000001,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pca pr; Printer\'s picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt_pr]","[PNT_PR]","12",12,false],[false,"pied","[pied]","[PIED]","length",0.3248,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pieds du roi; Paris foot; royal; French; feet","UCUM","Len","Obsolete","","cm","CM","32.48",32.48,false],[false,"pouce","[pouce]","[POUCE]","length",0.027066666666666666,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"historical French inches; French royal inches","UCUM","Len","Obsolete","","[pied]/12","[PIED]/12","1",1,false],[false,"ligne","[ligne]","[LIGNE]","length",0.0022555555555555554,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Paris lines; lignes","UCUM","Len","Obsolete","","[pouce]/12","[POUCE]/12","1",1,false],[false,"didot","[didot]","[DIDOT]","length",0.0003759259259259259,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot point; dd; Didots Point; didots; points","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[ligne]/6","[LIGNE]/6","1",1,false],[false,"cicero","[cicero]","[CICERO]","length",0.004511111111111111,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot\'s pica; ciceros; picas","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[didot]","[DIDOT]","12",12,false],[false,"degrees Fahrenheit","[degF]","[DEGF]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"\xb0F","heat",false,null,"degF",1,true,false,0,"\xb0F; deg F","UCUM","Temp","Clinical","","K",null,null,0.5555555555555556,false],[false,"degrees Rankine","[degR]","[degR]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"\xb0R","heat",false,null,null,1,false,false,0,"\xb0R; \xb0Ra; Rankine","UCUM","Temp","Obsolete","Replaced by Kelvin","K/9","K/9","5",5,false],[false,"degrees R\xe9aumur","[degRe]","[degRe]","temperature",1.25,[0,0,0,0,1,0,0],"\xb0R\xe9","heat",false,null,"degRe",1,true,false,0,"\xb0R\xe9, \xb0Re, \xb0r; R\xe9aumur; degree Reaumur; Reaumur","UCUM","Temp","Obsolete","replaced by Celsius","K",null,null,1.25,false],[false,"calorie at 15\xb0C","cal_[15]","CAL_[15]","energy",4185.8,[2,-2,1,0,0,0,0],"cal15\xb0C","heat",true,null,null,1,false,false,0,"calorie 15 C; cals 15 C; calories at 15 C","UCUM","Enrg","Nonclinical","equal to 4.1855 joules; calorie most often used in engineering","J","J","4.18580",4.1858,false],[false,"calorie at 20\xb0C","cal_[20]","CAL_[20]","energy",4181.9,[2,-2,1,0,0,0,0],"cal20\xb0C","heat",true,null,null,1,false,false,0,"calorie 20 C; cal 20 C; calories at 20 C","UCUM","Enrg","Clinical","equal to 4.18190 joules. ","J","J","4.18190",4.1819,false],[false,"mean calorie","cal_m","CAL_M","energy",4190.0199999999995,[2,-2,1,0,0,0,0],"calm","heat",true,null,null,1,false,false,0,"mean cals; mean calories","UCUM","Enrg","Clinical","equal to 4.19002 joules. ","J","J","4.19002",4.19002,false],[false,"international table calorie","cal_IT","CAL_IT","energy",4186.8,[2,-2,1,0,0,0,0],"calIT","heat",true,null,null,1,false,false,0,"calories IT; IT cals; international steam table calories","UCUM","Enrg","Nonclinical","used in engineering steam tables and defined as 1/860 international watt-hour; equal to 4.1868 joules","J","J","4.1868",4.1868,false],[false,"thermochemical calorie","cal_th","CAL_TH","energy",4184,[2,-2,1,0,0,0,0],"calth","heat",true,null,null,1,false,false,0,"thermochemical calories; th cals","UCUM","Enrg","Clinical","equal to 4.184 joules; used as the unit in medicine and biochemistry (equal to cal)","J","J","4.184",4.184,false],[false,"calorie","cal","CAL","energy",4184,[2,-2,1,0,0,0,0],"cal","heat",true,null,null,1,false,false,0,"gram calories; small calories","UCUM","Enrg","Clinical","equal to 4.184 joules (the same value as the thermochemical calorie, which is the most common calorie used in medicine and biochemistry)","cal_th","CAL_TH","1",1,false],[false,"nutrition label Calories","[Cal]","[CAL]","energy",4184000,[2,-2,1,0,0,0,0],"Cal","heat",false,null,null,1,false,false,0,"food calories; Cal; kcal","UCUM","Eng","Clinical","","kcal_th","KCAL_TH","1",1,false],[false,"British thermal unit at 39\xb0F","[Btu_39]","[BTU_39]","energy",1059670,[2,-2,1,0,0,0,0],"Btu39\xb0F","heat",false,null,null,1,false,false,0,"BTU 39F; BTU 39 F; B.T.U. 39 F; B.Th.U. 39 F; BThU 39 F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05967 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05967",1.05967,false],[false,"British thermal unit at 59\xb0F","[Btu_59]","[BTU_59]","energy",1054800,[2,-2,1,0,0,0,0],"Btu59\xb0F","heat",false,null,null,1,false,false,0,"BTU 59 F; BTU 59F; B.T.U. 59 F; B.Th.U. 59 F; BThU 59F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05480 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05480",1.0548,false],[false,"British thermal unit at 60\xb0F","[Btu_60]","[BTU_60]","energy",1054680,[2,-2,1,0,0,0,0],"Btu60\xb0F","heat",false,null,null,1,false,false,0,"BTU 60 F; BTU 60F; B.T.U. 60 F; B.Th.U. 60 F; BThU 60 F; British thermal units 60 F","UCUM","Eng","Nonclinical","equal to 1.05468 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05468",1.05468,false],[false,"mean British thermal unit","[Btu_m]","[BTU_M]","energy",1055870,[2,-2,1,0,0,0,0],"Btum","heat",false,null,null,1,false,false,0,"BTU mean; B.T.U. mean; B.Th.U. mean; BThU mean; British thermal units mean; ","UCUM","Eng","Nonclinical","equal to 1.05587 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05587",1.05587,false],[false,"international table British thermal unit","[Btu_IT]","[BTU_IT]","energy",1055055.85262,[2,-2,1,0,0,0,0],"BtuIT","heat",false,null,null,1,false,false,0,"BTU IT; B.T.U. IT; B.Th.U. IT; BThU IT; British thermal units IT","UCUM","Eng","Nonclinical","equal to 1.055 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05505585262",1.05505585262,false],[false,"thermochemical British thermal unit","[Btu_th]","[BTU_TH]","energy",1054350,[2,-2,1,0,0,0,0],"Btuth","heat",false,null,null,1,false,false,0,"BTU Th; B.T.U. Th; B.Th.U. Th; BThU Th; thermochemical British thermal units","UCUM","Eng","Nonclinical","equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.054350",1.05435,false],[false,"British thermal unit","[Btu]","[BTU]","energy",1054350,[2,-2,1,0,0,0,0],"btu","heat",false,null,null,1,false,false,0,"BTU; B.T.U. ; B.Th.U.; BThU; British thermal units","UCUM","Eng","Nonclinical","equal to the thermochemical British thermal unit equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","[Btu_th]","[BTU_TH]","1",1,false],[false,"horsepower - mechanical","[HP]","[HP]","power",745699.8715822703,[2,-3,1,0,0,0,0],null,"heat",false,null,null,1,false,false,0,"imperial horsepowers","UCUM","EngRat","Nonclinical","refers to mechanical horsepower, which is unit used to measure engine power primarily in the US. ","[ft_i].[lbf_av]/s","[FT_I].[LBF_AV]/S","550",550,false],[false,"tex","tex","TEX","linear mass density (of textile thread)",0.001,[-1,0,1,0,0,0,0],"tex","heat",true,null,null,1,false,false,0,"linear mass density; texes","UCUM","","Clinical","unit of linear mass density for fibers equal to gram per 1000 meters","g/km","G/KM","1",1,false],[false,"Denier (linear mass density)","[den]","[DEN]","linear mass density (of textile thread)",0.0001111111111111111,[-1,0,1,0,0,0,0],"den","heat",false,null,null,1,false,false,0,"den; deniers","UCUM","","Nonclinical","equal to the mass in grams per 9000 meters of the fiber (1 denier = 1 strand of silk)","g/9/km","G/9/KM","1",1,false],[false,"meter of water column","m[H2O]","M[H2O]","pressure",9806650,[-1,-2,1,0,0,0,0],"m\xa0HO2","clinical",true,null,null,1,false,false,0,"mH2O; m H2O; meters of water column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"meter of mercury column","m[Hg]","M[HG]","pressure",133322000,[-1,-2,1,0,0,0,0],"m\xa0Hg","clinical",true,null,null,1,false,false,0,"mHg; m Hg; meters of mercury column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","133.3220",133.322,false],[false,"inch of water column","[in_i\'H2O]","[IN_I\'H2O]","pressure",249088.91000000003,[-1,-2,1,0,0,0,0],"in\xa0HO2","clinical",false,null,null,1,false,false,0,"inches WC; inAq; in H2O; inch of water gauge; iwg; pressure","UCUM","Pres","Clinical","unit of pressure, especially in respiratory and ventilation care","m[H2O].[in_i]/m","M[H2O].[IN_I]/M","1",1,false],[false,"inch of mercury column","[in_i\'Hg]","[IN_I\'HG]","pressure",3386378.8000000003,[-1,-2,1,0,0,0,0],"in\xa0Hg","clinical",false,null,null,1,false,false,0,"inHg; in Hg; pressure; inches","UCUM","Pres","Clinical","unit of pressure used in US to measure barometric pressure and occasionally blood pressure (see mm[Hg] for unit used internationally)","m[Hg].[in_i]/m","M[HG].[IN_I]/M","1",1,false],[false,"peripheral vascular resistance unit","[PRU]","[PRU]","fluid resistance",133322000000,[-4,-1,1,0,0,0,0],"P.R.U.","clinical",false,null,null,1,false,false,0,"peripheral vascular resistance units; peripheral resistance unit; peripheral resistance units; PRU","UCUM","FldResist","Clinical","used to assess blood flow in the capillaries; equal to 1 mmH.min/mL = 133.3 Pa\xb7min/mL","mm[Hg].s/ml","MM[HG].S/ML","1",1,false],[false,"Wood unit","[wood\'U]","[WOOD\'U]","fluid resistance",7999320000,[-4,-1,1,0,0,0,0],"Wood U.","clinical",false,null,null,1,false,false,0,"hybrid reference units; HRU; mmHg.min/L; vascular resistance","UCUM","Pres","Clinical","simplified unit of measurement for for measuring pulmonary vascular resistance that uses pressure; equal to mmHg.min/L","mm[Hg].min/L","MM[HG].MIN/L","1",1,false],[false,"diopter (lens)","[diop]","[DIOP]","refraction of a lens",1,[1,0,0,0,0,0,0],"dpt","clinical",false,null,"inv",1,false,false,0,"diopters; diop; dioptre; dpt; refractive power","UCUM","InvLen","Clinical","unit of optical power of lens represented by inverse meters (m^-1)","m","/M","1",1,false],[false,"prism diopter (magnifying power)","[p\'diop]","[P\'DIOP]","refraction of a prism",1,[0,0,0,1,0,0,0],"PD","clinical",false,null,"tanTimes100",1,true,false,0,"diopters; dioptres; p diops; pdiop; dpt; pdptr; \u0394; cm/m; centimeter per meter; centimetre; metre","UCUM","Angle","Clinical","unit for prism correction in eyeglass prescriptions","rad",null,null,1,false],[false,"percent of slope","%[slope]","%[SLOPE]","slope",0.017453292519943295,[0,0,0,1,0,0,0],"%","clinical",false,null,"100tan",1,true,false,0,"% slope; %slope; percents slopes","UCUM","VelFr; ElpotRatFr; VelRtoFr; AccelFr","Clinical","","deg",null,null,1,false],[false,"mesh","[mesh_i]","[MESH_I]","lineic number",0.025400000000000002,[1,0,0,0,0,0,0],null,"clinical",false,null,"inv",1,false,false,0,"meshes","UCUM","NLen (lineic number)","Clinical","traditional unit of length defined as the number of strands or particles per inch","[in_i]","/[IN_I]","1",1,false],[false,"French (catheter gauge) ","[Ch]","[CH]","gauge of catheters",0.0003333333333333333,[1,0,0,0,0,0,0],"Ch","clinical",false,null,null,1,false,false,0,"Charri\xe8res, French scales; French gauges; Fr, Fg, Ga, FR, Ch","UCUM","Len; Circ; Diam","Clinical","","mm/3","MM/3","1",1,false],[false,"drop - metric (1/20 mL)","[drp]","[DRP]","volume",5e-8,[3,0,0,0,0,0,0],"drp","clinical",false,null,null,1,false,false,0,"drop dosing units; metric drops; gtt","UCUM","Vol","Clinical","standard unit used in the US and internationally for clinical medicine but note that although [drp] is defined as 1/20 milliliter, in practice, drop sizes will vary due to external factors","ml/20","ML/20","1",1,false],[false,"Hounsfield unit","[hnsf\'U]","[HNSF\'U]","x-ray attenuation",1,[0,0,0,0,0,0,0],"HF","clinical",false,null,null,1,false,false,0,"HU; units","UCUM","","Clinical","used to measure X-ray attenuation, especially in CT scans.","1","1","1",1,false],[false,"Metabolic Equivalent of Task ","[MET]","[MET]","metabolic cost of physical activity",5.833333333333334e-11,[3,-1,-1,0,0,0,0],"MET","clinical",false,null,null,1,false,false,0,"metabolic equivalents","UCUM","RelEngRat","Clinical","unit used to measure rate of energy expenditure per power in treadmill and other functional tests","mL/min/kg","ML/MIN/KG","3.5",3.5,false],[false,"homeopathic potency of decimal series (retired)","[hp\'_X]","[HP\'_X]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,"hpX",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of centesimal series (retired)","[hp\'_C]","[HP\'_C]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,"hpC",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of millesimal series (retired)","[hp\'_M]","[HP\'_M]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,"hpM",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of quintamillesimal series (retired)","[hp\'_Q]","[HP\'_Q]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,"hpQ",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of decimal hahnemannian series","[hp_X]","[HP_X]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal hahnemannian series","[hp_C]","[HP_C]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal hahnemannian series","[hp_M]","[HP_M]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal hahnemannian series","[hp_Q]","[HP_Q]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of decimal korsakovian series","[kp_X]","[KP_X]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal korsakovian series","[kp_C]","[KP_C]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal korsakovian series","[kp_M]","[KP_M]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal korsakovian series","[kp_Q]","[KP_Q]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"equivalent","eq","EQ","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"eq","chemical",true,null,null,1,false,false,1,"equivalents","UCUM","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"osmole","osm","OSM","amount of substance (dissolved particles)",6.0221367e+23,[0,0,0,0,0,0,0],"osm","chemical",true,null,null,1,false,false,1,"osmoles; osmols","UCUM","Osmol","Clinical","the number of moles of solute that contribute to the osmotic pressure of a solution","mol","MOL","1",1,false],[false,"pH","[pH]","[PH]","acidity",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"pH","chemical",false,null,"pH",1,true,false,0,"pH scale","UCUM","LogCnc","Clinical","Log concentration of H+","mol/l",null,null,1,false],[false,"gram percent","g%","G%","mass concentration",10000,[-3,0,1,0,0,0,0],"g%","chemical",true,null,null,1,false,false,0,"gram %; gram%; grams per deciliter; g/dL; gm per dL; gram percents","UCUM","MCnc","Clinical","equivalent to unit gram per deciliter (g/dL), a unit often used in medical tests to represent solution concentrations","g/dl","G/DL","1",1,false],[false,"Svedberg unit","[S]","[S]","sedimentation coefficient",1e-13,[0,1,0,0,0,0,0],"S","chemical",false,null,null,1,false,false,0,"Sv; 10^-13 seconds; 100 fs; 100 femtoseconds","UCUM","Time","Clinical","unit of time used in measuring particle\'s sedimentation rate, usually after centrifugation. ","s","10*-13.S","1",1e-13,false],[false,"high power field (microscope)","[HPF]","[HPF]","view area in microscope",1,[0,0,0,0,0,0,0],"HPF","chemical",false,null,null,1,false,false,0,"HPF","UCUM","Area","Clinical","area visible under the maximum magnification power of the objective in microscopy (usually 400x)\\n","1","1","1",1,false],[false,"low power field (microscope)","[LPF]","[LPF]","view area in microscope",1,[0,0,0,0,0,0,0],"LPF","chemical",false,null,null,1,false,false,0,"LPF; fields","UCUM","Area","Clinical","area visible under the low magnification of the objective in microscopy (usually 100 x)\\n","1","1","100",100,false],[false,"katal","kat","KAT","catalytic activity",6.0221367e+23,[0,-1,0,0,0,0,0],"kat","chemical",true,null,null,1,false,false,1,"mol/secs; moles per second; mol*sec-1; mol*s-1; mol.s-1; katals; catalytic activity; enzymatic; enzyme units; activities","UCUM","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"enzyme unit","U","U","catalytic activity",10036894500000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"micromoles per minute; umol/min; umol per minute; umol min-1; enzymatic activity; enzyme activity","UCUM","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"international unit - arbitrary","[iU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"IU","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","1",1,false],[false,"international unit - arbitrary","[IU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"i.U.","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"arbitary unit","[arb\'U]","[ARB\'U]","arbitrary",1,[0,0,0,0,0,0,0],"arb. U","chemical",false,null,null,1,false,true,0,"arbitary units; arb units; arbU","UCUM","Arb","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"United States Pharmacopeia unit","[USP\'U]","[USP\'U]","arbitrary",1,[0,0,0,0,0,0,0],"U.S.P.","chemical",false,null,null,1,false,true,0,"USP U; USP\'U","UCUM","Arb","Clinical","a dose unit to express potency of drugs and vitamins defined by the United States Pharmacopoeia; usually 1 USP = 1 IU","1","1","1",1,false],[false,"GPL unit","[GPL\'U]","[GPL\'U]","biologic activity of anticardiolipin IgG",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"GPL Units; GPL U; IgG anticardiolipin units; IgG Phospholipid","UCUM","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"MPL unit","[MPL\'U]","[MPL\'U]","biologic activity of anticardiolipin IgM",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"MPL units; MPL U; MPL\'U; IgM anticardiolipin units; IgM Phospholipid Units ","UCUM","ACnc","Clinical","units for antiphospholipid test","1","1","1",1,false],[false,"APL unit","[APL\'U]","[APL\'U]","biologic activity of anticardiolipin IgA",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"APL units; APL U; IgA anticardiolipin; IgA Phospholipid; biologic activity of","UCUM","AMass; ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"Bethesda unit","[beth\'U]","[BETH\'U]","biologic activity of factor VIII inhibitor",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"BU","UCUM","ACnc","Clinical","measures of blood coagulation inhibitior for many blood factors","1","1","1",1,false],[false,"anti factor Xa unit","[anti\'Xa\'U]","[ANTI\'XA\'U]","biologic activity of factor Xa inhibitor (heparin)",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","ACnc","Clinical","[anti\'Xa\'U] unit is equivalent to and can be converted to IU/mL. ","1","1","1",1,false],[false,"Todd unit","[todd\'U]","[TODD\'U]","biologic activity antistreptolysin O",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","InvThres; RtoThres","Clinical","the unit for the results of the testing for antistreptolysin O (ASO)","1","1","1",1,false],[false,"Dye unit","[dye\'U]","[DYE\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","CCnc","Obsolete","equivalent to the Somogyi unit, which is an enzyme unit for amylase but better to use U, the standard enzyme unit for measuring catalytic activity","1","1","1",1,false],[false,"Somogyi unit","[smgy\'U]","[SMGY\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Somogyi units; smgy U","UCUM","CAct","Clinical","measures the enzymatic activity of amylase in blood serum - better to use base units mg/mL ","1","1","1",1,false],[false,"Bodansky unit","[bdsk\'U]","[BDSK\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"","UCUM","ACnc","Obsolete","Enzyme unit specific to alkaline phosphatase - better to use standard enzyme unit of U","1","1","1",1,false],[false,"King-Armstrong unit","[ka\'U]","[KA\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"King-Armstrong Units; King units","UCUM","AMass","Obsolete","enzyme units for acid phosphatase - better to use enzyme unit [U]","1","1","1",1,false],[false,"Kunkel unit","[knk\'U]","[KNK\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"Mac Lagan unit","[mclg\'U]","[MCLG\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"galactose index; galactose tolerance test; thymol turbidity test unit; mclg U; units; indexes","UCUM","ACnc","Obsolete","unit for liver tests - previously used in thymol turbidity tests for liver disease diagnoses, and now is sometimes referred to in the oral galactose tolerance test","1","1","1",1,false],[false,"tuberculin unit","[tb\'U]","[TB\'U]","biologic activity of tuberculin",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"TU; units","UCUM","Arb","Clinical","amount of tuberculin antigen -usually in reference to a TB skin test ","1","1","1",1,false],[false,"50% cell culture infectious dose","[CCID_50]","[CCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"CCID50","chemical",false,null,null,1,false,true,0,"CCID50; 50% cell culture infective doses","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% tissue culture infectious dose","[TCID_50]","[TCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"TCID50","chemical",false,null,null,1,false,true,0,"TCID50; 50% tissue culture infective dose","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% embryo infectious dose","[EID_50]","[EID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"EID50","chemical",false,null,null,1,false,true,0,"EID50; 50% embryo infective doses; EID50 Egg Infective Dosage","UCUM","thresNum","Clinical","","1","1","1",1,false],[false,"plaque forming units","[PFU]","[PFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"PFU","chemical",false,null,null,1,false,true,0,"PFU","UCUM","ACnc","Clinical","tests usually report unit as number of PFU per unit volume","1","1","1",1,false],[false,"focus forming units (cells)","[FFU]","[FFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"FFU","chemical",false,null,null,1,false,true,0,"FFU","UCUM","EntNum","Clinical","","1","1","1",1,false],[false,"colony forming units","[CFU]","[CFU]","amount of a proliferating organism",1,[0,0,0,0,0,0,0],"CFU","chemical",false,null,null,1,false,true,0,"CFU","UCUM","Num","Clinical","","1","1","1",1,false],[false,"index of reactivity (allergen)","[IR]","[IR]","amount of an allergen callibrated through in-vivo testing using the Stallergenes\xae method.",1,[0,0,0,0,0,0,0],"IR","chemical",false,null,null,1,false,true,0,"IR; indexes","UCUM","Acnc","Clinical","amount of an allergen callibrated through in-vivo testing using the Stallergenes method. Usually reported in tests as IR/mL","1","1","1",1,false],[false,"bioequivalent allergen unit","[BAU]","[BAU]","amount of an allergen callibrated through in-vivo testing based on the ID50EAL method of (intradermal dilution for 50mm sum of erythema diameters",1,[0,0,0,0,0,0,0],"BAU","chemical",false,null,null,1,false,true,0,"BAU; Bioequivalent Allergy Units; bioequivalent allergen units","UCUM","Arb","Clinical","","1","1","1",1,false],[false,"allergy unit","[AU]","[AU]","procedure defined amount of an allergen using some reference standard",1,[0,0,0,0,0,0,0],"AU","chemical",false,null,null,1,false,true,0,"allergy units; allergen units; AU","UCUM","Arb","Clinical","Most standard test allergy units are reported as [IU] or as %. ","1","1","1",1,false],[false,"allergen unit for Ambrosia artemisiifolia","[Amb\'a\'1\'U]","[AMB\'A\'1\'U]","procedure defined amount of the major allergen of ragweed.",1,[0,0,0,0,0,0,0],"Amb a 1 U","chemical",false,null,null,1,false,true,0,"Amb a 1 unit; Antigen E; AgE U; allergen units","UCUM","Arb","Clinical","Amb a 1 is the major allergen in short ragweed, and can be converted Bioequivalent allergen units (BAU) where 350 Amb a 1 U/mL = 100,000 BAU/mL","1","1","1",1,false],[false,"protein nitrogen unit (allergen testing)","[PNU]","[PNU]","procedure defined amount of a protein substance",1,[0,0,0,0,0,0,0],"PNU","chemical",false,null,null,1,false,true,0,"protein nitrogen units; PNU","UCUM","Mass","Clinical","defined as 0.01 ug of phosphotungstic acid-precipitable protein nitrogen. Being replaced by bioequivalent allergy units (BAU).","1","1","1",1,false],[false,"Limit of flocculation","[Lf]","[LF]","procedure defined amount of an antigen substance",1,[0,0,0,0,0,0,0],"Lf","chemical",false,null,null,1,false,true,0,"Lf doses","UCUM","Arb","Clinical","the antigen content forming 1:1 ratio against 1 unit of antitoxin","1","1","1",1,false],[false,"D-antigen unit (polio)","[D\'ag\'U]","[D\'AG\'U]","procedure defined amount of a poliomyelitis d-antigen substance",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"DAgU; units","UCUM","Acnc","Clinical","unit of potency of poliovirus vaccine used for poliomyelitis prevention reported as D antigen units/mL. The unit is poliovirus type-specific.","1","1","1",1,false],[false,"fibrinogen equivalent units","[FEU]","[FEU]","amount of fibrinogen broken down into the measured d-dimers",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"FEU","UCUM","MCnc","Clinical","Note both the FEU and DDU units are used to report D-dimer measurements. 1 DDU = 1/2 FFU","1","1","1",1,false],[false,"ELISA unit","[ELU]","[ELU]","arbitrary ELISA unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Enzyme-Linked Immunosorbent Assay Units; ELU; EL. U","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"Ehrlich units (urobilinogen)","[EU]","[EU]","Ehrlich unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"EU/dL; mg{urobilinogen}/dL","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"neper","Np","NEP","level",1,[0,0,0,0,0,0,0],"Np","levels",true,null,"ln",1,true,false,0,"nepers","UCUM","LogRto","Clinical","logarithmic unit for ratios of measurements of physical field and power quantities, such as gain and loss of electronic signals","1",null,null,1,false],[false,"bel","B","B","level",1,[0,0,0,0,0,0,0],"B","levels",true,null,"lg",1,true,false,0,"bels","UCUM","LogRto","Clinical","Logarithm of the ratio of power- or field-type quantities; usually expressed in decibels ","1",null,null,1,false],[false,"bel sound pressure","B[SPL]","B[SPL]","pressure level",0.02,[-1,-2,1,0,0,0,0],"B(SPL)","levels",true,null,"lgTimes2",1,true,false,0,"bel SPL; B SPL; sound pressure bels","UCUM","LogRto","Clinical","used to measure sound level in acoustics","Pa",null,null,0.00002,false],[false,"bel volt","B[V]","B[V]","electric potential level",1000,[2,-2,1,0,0,-1,0],"B(V)","levels",true,null,"lgTimes2",1,true,false,0,"bel V; B V; volts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","V",null,null,1,false],[false,"bel millivolt","B[mV]","B[MV]","electric potential level",1,[2,-2,1,0,0,-1,0],"B(mV)","levels",true,null,"lgTimes2",1,true,false,0,"bel mV; B mV; millivolt bels; 10^-3V bels; 10*-3V ","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","mV",null,null,1,false],[false,"bel microvolt","B[uV]","B[UV]","electric potential level",0.001,[2,-2,1,0,0,-1,0],"B(\u03bcV)","levels",true,null,"lgTimes2",1,true,false,0,"bel uV; B uV; microvolts bels; 10^-6V bel; 10*-6V bel","UCUM","LogRto","Clinical","used to express power gain in electrical circuits","uV",null,null,1,false],[false,"bel 10 nanovolt","B[10.nV]","B[10.NV]","electric potential level",0.000010000000000000003,[2,-2,1,0,0,-1,0],"B(10 nV)","levels",true,null,"lgTimes2",1,true,false,0,"bel 10 nV; B 10 nV; 10 nanovolts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","nV",null,null,10,false],[false,"bel watt","B[W]","B[W]","power level",1000,[2,-3,1,0,0,0,0],"B(W)","levels",true,null,"lg",1,true,false,0,"bel W; b W; b Watt; Watts bels","UCUM","LogRto","Clinical","used to express power","W",null,null,1,false],[false,"bel kilowatt","B[kW]","B[KW]","power level",1000000,[2,-3,1,0,0,0,0],"B(kW)","levels",true,null,"lg",1,true,false,0,"bel kW; B kW; kilowatt bel; kW bel; kW B","UCUM","LogRto","Clinical","used to express power","kW",null,null,1,false],[false,"stere","st","STR","volume",1,[3,0,0,0,0,0,0],"st","misc",true,null,null,1,false,false,0,"st\xe8re; m3; cubic meter; m^3; meters cubed; metre","UCUM","Vol","Nonclinical","equal to one cubic meter, usually used for measuring firewoord","m3","M3","1",1,false],[false,"\xc5ngstr\xf6m","Ao","AO","length",1.0000000000000002e-10,[1,0,0,0,0,0,0],"\xc5","misc",false,null,null,1,false,false,0,"\xc5; Angstroms; Ao; \xc5ngstr\xf6ms","UCUM","Len","Clinical","equal to 10^-10 meters; used to express wave lengths and atom scaled differences ","nm","NM","0.1",0.1,false],[false,"barn","b","BRN","action area",9.999999999999999e-29,[2,0,0,0,0,0,0],"b","misc",false,null,null,1,false,false,0,"barns","UCUM","Area","Clinical","used in high-energy physics to express cross-sectional areas","fm2","FM2","100",100,false],[false,"technical atmosphere","att","ATT","pressure",98066499.99999999,[-1,-2,1,0,0,0,0],"at","misc",false,null,null,1,false,false,0,"at; tech atm; tech atmosphere; kgf/cm2; atms; atmospheres","UCUM","Pres","Obsolete","non-SI unit of pressure equal to one kilogram-force per square centimeter","kgf/cm2","KGF/CM2","1",1,false],[false,"mho","mho","MHO","electric conductance",0.001,[-2,1,-1,0,0,2,0],"mho","misc",true,null,null,1,false,false,0,"siemens; ohm reciprocals; \u03a9^\u22121; \u03a9-1 ","UCUM","","Obsolete","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","S","S","1",1,false],[false,"pound per square inch","[psi]","[PSI]","pressure",6894757.293168359,[-1,-2,1,0,0,0,0],"psi","misc",false,null,null,1,false,false,0,"psi; lb/in2; lb per in2","UCUM","Pres","Clinical","","[lbf_av]/[in_i]2","[LBF_AV]/[IN_I]2","1",1,false],[false,"circle - plane angle","circ","CIRC","plane angle",6.283185307179586,[0,0,0,1,0,0,0],"circ","misc",false,null,null,1,false,false,0,"angles; circles","UCUM","Angle","Clinical","","[pi].rad","[PI].RAD","2",2,false],[false,"spere - solid angle","sph","SPH","solid angle",12.566370614359172,[0,0,0,2,0,0,0],"sph","misc",false,null,null,1,false,false,0,"speres","UCUM","Angle","Clinical","equal to the solid angle of an entire sphere = 4\u03c0sr (sr = steradian) ","[pi].sr","[PI].SR","4",4,false],[false,"metric carat","[car_m]","[CAR_M]","mass",0.2,[0,0,1,0,0,0,0],"ctm","misc",false,null,null,1,false,false,0,"carats; ct; car m","UCUM","Mass","Nonclinical","unit of mass for gemstones","g","G","2e-1",0.2,false],[false,"carat of gold alloys","[car_Au]","[CAR_AU]","mass fraction",0.041666666666666664,[0,0,0,0,0,0,0],"ctAu","misc",false,null,null,1,false,false,0,"karats; k; kt; car au; carats","UCUM","MFr","Nonclinical","unit of purity for gold alloys","/24","/24","1",1,false],[false,"Smoot","[smoot]","[SMOOT]","length",1.7018000000000002,[1,0,0,0,0,0,0],null,"misc",false,null,null,1,false,false,0,"","UCUM","Len","Nonclinical","prank unit of length from MIT","[in_i]","[IN_I]","67",67,false],[false,"meter per square seconds per square root of hertz","[m/s2/Hz^(1/2)]","[M/S2/HZ^(1/2)]","amplitude spectral density",1,[2,-3,0,0,0,0,0],null,"misc",false,null,"sqrt",1,true,false,0,"m/s2/(Hz^.5); m/s2/(Hz^(1/2)); m per s2 per Hz^1/2","UCUM","","Constant","measures amplitude spectral density, and is equal to the square root of power spectral density\\n ","m2/s4/Hz",null,null,1,false],[false,"bit - logarithmic","bit_s","BIT_S","amount of information",1,[0,0,0,0,0,0,0],"bits","infotech",false,null,"ld",1,true,false,0,"bit-s; bit s; bit logarithmic","UCUM","LogA","Nonclinical","defined as the log base 2 of the number of distinct signals; cannot practically be used to express more than 1000 bits\\n\\nIn information theory, the definition of the amount of self-information and information entropy is often expressed with the binary logarithm (log base 2)","1",null,null,1,false],[false,"bit","bit","BIT","amount of information",1,[0,0,0,0,0,0,0],"bit","infotech",true,null,null,1,false,false,0,"bits","UCUM","","Nonclinical","dimensionless information unit of 1 used in computing and digital communications","1","1","1",1,false],[false,"byte","By","BY","amount of information",8,[0,0,0,0,0,0,0],"B","infotech",true,null,null,1,false,false,0,"bytes","UCUM","","Nonclinical","equal to 8 bits","bit","bit","8",8,false],[false,"baud","Bd","BD","signal transmission rate",1,[0,1,0,0,0,0,0],"Bd","infotech",true,null,"inv",1,false,false,0,"Bd; bauds","UCUM","Freq","Nonclinical","unit to express rate in symbols per second or pulses per second. ","s","/s","1",1,false],[false,"per twelve hour","/(12.h)","/HR","",0.000023148148148148147,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"per 12 hours; 12hrs; 12 hrs; /12hrs","LOINC","Rat","Clinical","",null,null,null,null,false],[false,"per arbitrary unit","/[arb\'U]","/[ARB\'U]","",1,[0,0,0,0,0,0,0],"/arb/ U",null,false,null,null,1,false,true,0,"/arbU","LOINC","InvA ","Clinical","",null,null,null,null,false],[false,"per high power field","/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"/HPF; per HPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per international unit","/[IU]","/[IU]","",1,[0,0,0,0,0,0,0],"/i/U.",null,false,null,null,1,false,true,0,"international units; /IU; per IU","LOINC","InvA","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)",null,null,null,null,false],[false,"per low power field","/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"/LPF; per LPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per 10 billion ","/10*10","/10*10","",1e-10,[0,0,0,0,0,0,0],"/1010<.sup>",null,false,null,null,1,false,false,0,"/10^10; per 10*10","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per trillion ","/10*12","/10*12","",1e-12,[0,0,0,0,0,0,0],"/1012<.sup>",null,false,null,null,1,false,false,0,"/10^12; per 10*12","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per thousand","/10*3","/10*3","",0.001,[0,0,0,0,0,0,0],"/103<.sup>",null,false,null,null,1,false,false,0,"/10^3; per 10*3","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per million","/10*6","/10*6","",0.000001,[0,0,0,0,0,0,0],"/106<.sup>",null,false,null,null,1,false,false,0,"/10^6; per 10*6;","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per billion","/10*9","/10*9","",1e-9,[0,0,0,0,0,0,0],"/109<.sup>",null,false,null,null,1,false,false,0,"/10^9; per 10*9","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100","/100","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"per hundred; 10^2; 10*2","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100 cells","/100{cells}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 cells; /100cells; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 neutrophils","/100{neutrophils}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 neutrophils; /100neutrophils; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 spermatozoa","/100{spermatozoa}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 spermatozoa; /100spermatozoa; per hundred","LOINC","NFr","Clinical","",null,null,null,null,false],[false,"per 100 white blood cells","/100{WBCs}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 WBCs; /100WBCs; per hundred","LOINC","Ratio; NFr","Clinical","",null,null,null,null,false],[false,"per year","/a","/ANN","",3.168808781402895e-8,[0,-1,0,0,0,0,0],"/a",null,false,null,null,1,false,false,0,"/Years; /yrs; yearly","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per centimeter of water","/cm[H2O]","/CM[H2O]","",0.000010197162129779282,[1,2,-1,0,0,0,0],"/cm\xa0HO2<.r>",null,false,null,null,1,false,false,0,"/cmH2O; /cm H2O; centimeters; centimetres","LOINC","InvPress","Clinical","",null,null,null,null,false],[false,"per day","/d","/D","",0.000011574074074074073,[0,-1,0,0,0,0,0],"/d",null,false,null,null,1,false,false,0,"/dy; per day","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per deciliter","/dL","/DL","",10000,[-3,0,0,0,0,0,0],"/dL",null,false,null,null,1,false,false,0,"per dL; /deciliter; decilitre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per gram","/g","/G","",1,[0,0,-1,0,0,0,0],"/g",null,false,null,null,1,false,false,0,"/gm; /gram; per g","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per hour","/h","/HR","",0.0002777777777777778,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"/hr; /hour; per hr","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per kilogram","/kg","/KG","",0.001,[0,0,-1,0,0,0,0],"/kg",null,false,null,null,1,false,false,0,"per kg; per kilogram","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per liter","/L","/L","",1000,[-3,0,0,0,0,0,0],"/L",null,false,null,null,1,false,false,0,"/liter; litre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per square meter","/m2","/M2","",1,[-2,0,0,0,0,0,0],"/m2<.sup>",null,false,null,null,1,false,false,0,"/m^2; /m*2; /sq. m; per square meter; meter squared; metre","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per cubic meter","/m3","/M3","",1,[-3,0,0,0,0,0,0],"/m3<.sup>",null,false,null,null,1,false,false,0,"/m^3; /m*3; /cu. m; per cubic meter; meter cubed; per m3; metre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per milligram","/mg","/MG","",1000,[0,0,-1,0,0,0,0],"/mg",null,false,null,null,1,false,false,0,"/milligram; per mg","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per minute","/min","/MIN","",0.016666666666666666,[0,-1,0,0,0,0,0],"/min",null,false,null,null,1,false,false,0,"/minute; per mins; breaths beats per minute","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per milliliter","/mL","/ML","",1000000,[-3,0,0,0,0,0,0],"/mL",null,false,null,null,1,false,false,0,"/milliliter; per mL; millilitre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per millimeter","/mm","/MM","",1000,[-1,0,0,0,0,0,0],"/mm",null,false,null,null,1,false,false,0,"/millimeter; per mm; millimetre","LOINC","InvLen","Clinical","",null,null,null,null,false],[false,"per month","/mo","/MO","",3.802570537683474e-7,[0,-1,0,0,0,0,0],"/mo",null,false,null,null,1,false,false,0,"/month; per mo; monthly; month","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per second","/s","/S","",1,[0,-1,0,0,0,0,0],"/s",null,false,null,null,1,false,false,0,"/second; /sec; per sec; frequency; Hertz; Herz; Hz; becquerels; Bq; s-1; s^-1","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per enzyme unit","/U","/U","",9.963241120049633e-17,[0,1,0,0,0,0,0],"/U",null,false,null,null,1,false,false,-1,"/enzyme units; per U","LOINC","InvC; NCat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"per microliter","/uL","/UL","",999999999.9999999,[-3,0,0,0,0,0,0],"/\u03bcL",null,false,null,null,1,false,false,0,"/microliter; microlitre; /mcl; per uL","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"per week","/wk","/WK","",0.0000016534391534391535,[0,-1,0,0,0,0,0],"/wk",null,false,null,null,1,false,false,0,"/week; per wk; weekly, weeks","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"APL unit per milliliter","[APL\'U]/mL","[APL\'U]/ML","biologic activity of anticardiolipin IgA",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"APL/mL; APL\'U/mL; APL U/mL; APL/milliliter; IgA anticardiolipin units per milliliter; IgA Phospholipid Units; millilitre; biologic activity of","LOINC","ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"arbitrary unit per milliliter","[arb\'U]/mL","[ARB\'U]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(arb. U)/mL","chemical",false,null,null,1,false,true,0,"arb\'U/mL; arbU/mL; arb U/mL; arbitrary units per milliliter; millilitre","LOINC","ACnc","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"colony forming units per liter","[CFU]/L","[CFU]/L","amount of a proliferating organism",1000,[-3,0,0,0,0,0,0],"CFU/L","chemical",false,null,null,1,false,true,0,"CFU per Liter; CFU/L","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"colony forming units per milliliter","[CFU]/mL","[CFU]/ML","amount of a proliferating organism",1000000,[-3,0,0,0,0,0,0],"CFU/mL","chemical",false,null,null,1,false,true,0,"CFU per mL; CFU/mL","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"foot per foot - US","[ft_us]/[ft_us]","[FT_US]/[FT_US]","length",1,[0,0,0,0,0,0,0],"(ftus)/(ftus)","us-lengths",false,null,null,1,false,false,0,"ft/ft; ft per ft; feet per feet; visual acuity","","LenRto","Clinical","distance ratio to measure 20:20 vision","m/3937","M/3937","1200",1200,false],[false,"GPL unit per milliliter","[GPL\'U]/mL","[GPL\'U]/ML","biologic activity of anticardiolipin IgG",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"GPL U/mL; GPL\'U/mL; GPL/mL; GPL U per mL; IgG Phospholipid Units per milliliters; IgG anticardiolipin units; millilitres ","LOINC","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"international unit per 2 hour","[IU]/(2.h)","[IU]/HR","arbitrary",0.0001388888888888889,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/2hrs; IU/2 hours; IU per 2 hrs; international units per 2 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per 24 hour","[IU]/(24.h)","[IU]/HR","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/24hr; IU/24 hours; IU per 24 hrs; international units per 24 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per day","[IU]/d","[IU]/D","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/d","chemical",true,null,null,1,false,true,0,"IU/dy; IU/days; IU per dys; international units per day","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per deciliter","[IU]/dL","[IU]/DL","arbitrary",10000,[-3,0,0,0,0,0,0],"(i.U.)/dL","chemical",true,null,null,1,false,true,0,"IU/dL; IU per dL; international units per deciliters; decilitres","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per gram","[IU]/g","[IU]/G","arbitrary",1,[0,0,-1,0,0,0,0],"(i.U.)/g","chemical",true,null,null,1,false,true,0,"IU/gm; IU/gram; IU per gm; IU per g; international units per gram","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per hour","[IU]/h","[IU]/HR","arbitrary",0.0002777777777777778,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/hrs; IU per hours; international units per hour","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram","[IU]/kg","[IU]/KG","arbitrary",0.001,[0,0,-1,0,0,0,0],"(i.U.)/kg","chemical",true,null,null,1,false,true,0,"IU/kg; IU/kilogram; IU per kg; units","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram per day","[IU]/kg/d","[IU]/KG/D","arbitrary",1.1574074074074074e-8,[0,-1,-1,0,0,0,0],"(i.U.)/kg/d","chemical",true,null,null,1,false,true,0,"IU/kg/dy; IU/kg/day; IU/kilogram/day; IU per kg per day; units","LOINC","ACntRat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per liter","[IU]/L","[IU]/L","arbitrary",1000,[-3,0,0,0,0,0,0],"(i.U.)/L","chemical",true,null,null,1,false,true,0,"IU/L; IU/liter; IU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per minute","[IU]/min","[IU]/MIN","arbitrary",0.016666666666666666,[0,-1,0,0,0,0,0],"(i.U.)/min","chemical",true,null,null,1,false,true,0,"IU/min; IU/minute; IU per minute; international units","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per milliliter","[IU]/mL","[IU]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(i.U.)/mL","chemical",true,null,null,1,false,true,0,"IU/mL; IU per mL; international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"MPL unit per milliliter","[MPL\'U]/mL","[MPL\'U]/ML","biologic activity of anticardiolipin IgM",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"MPL/mL; MPL U/mL; MPL\'U/mL; IgM anticardiolipin units; IgM Phospholipid Units; millilitre ","LOINC","ACnc","Clinical","units for antiphospholipid test\\n","1","1","1",1,false],[false,"number per high power field","{#}/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"#/HPF; # per HPF; number/HPF; numbers per high power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"number per low power field","{#}/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"#/LPF; # per LPF; number/LPF; numbers per low power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"IgA antiphosphatidylserine unit ","{APS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"APS Unit; Phosphatidylserine Antibody IgA Units","LOINC","ACnc","Clinical","unit for antiphospholipid test",null,null,null,null,false],[false,"EIA index","{EIA_index}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"enzyme immunoassay index","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"kaolin clotting time","{KCT\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"KCT","LOINC","Time","Clinical","sensitive\xa0test to detect\xa0lupus anticoagulants; measured in seconds",null,null,null,null,false],[false,"IgM antiphosphatidylserine unit","{MPS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"Phosphatidylserine Antibody IgM Measurement ","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"trillion per liter","10*12/L","(10*12)/L","number",1000000000000000,[-3,0,0,0,0,0,0],"(1012)/L","dimless",false,null,null,1,false,false,0,"10^12/L; 10*12 per Liter; trillion per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^3 (used for cell count)","10*3","10*3","number",1000,[0,0,0,0,0,0,0],"103","dimless",false,null,null,1,false,false,0,"10^3; thousand","LOINC","Num","Clinical","usually used for counting entities (e.g. blood cells) per volume","1","1","10",10,false],[false,"thousand per liter","10*3/L","(10*3)/L","number",1000000,[-3,0,0,0,0,0,0],"(103)/L","dimless",false,null,null,1,false,false,0,"10^3/L; 10*3 per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per milliliter","10*3/mL","(10*3)/ML","number",1000000000,[-3,0,0,0,0,0,0],"(103)/mL","dimless",false,null,null,1,false,false,0,"10^3/mL; 10*3 per mL; thousand per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per microliter","10*3/uL","(10*3)/UL","number",999999999999.9999,[-3,0,0,0,0,0,0],"(103)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^3/uL; 10*3 per uL; thousand per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 thousand per microliter","10*4/uL","(10*4)/UL","number",10000000000000,[-3,0,0,0,0,0,0],"(104)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^4/uL; 10*4 per uL; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^5 ","10*5","10*5","number",100000,[0,0,0,0,0,0,0],"105","dimless",false,null,null,1,false,false,0,"one hundred thousand","LOINC","Num","Clinical","","1","1","10",10,false],[false,"10^6","10*6","10*6","number",1000000,[0,0,0,0,0,0,0],"106","dimless",false,null,null,1,false,false,0,"","LOINC","Num","Clinical","","1","1","10",10,false],[false,"million colony forming unit per liter","10*6.[CFU]/L","(10*6).[CFU]/L","number",1000000000,[-3,0,0,0,0,0,0],"(106).CFU/L","dimless",false,null,null,1,false,true,0,"10*6 CFU/L; 10^6 CFU/L; 10^6CFU; 10^6 CFU per liter; million colony forming units; litre","LOINC","ACnc","Clinical","","1","1","10",10,false],[false,"million international unit","10*6.[IU]","(10*6).[IU]","number",1000000,[0,0,0,0,0,0,0],"(106).(i.U.)","dimless",false,null,null,1,false,true,0,"10*6 IU; 10^6 IU; international units","LOINC","arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","10",10,false],[false,"million per 24 hour","10*6/(24.h)","(10*6)/HR","number",11.574074074074074,[0,-1,0,0,0,0,0],"(106)/h","dimless",false,null,null,1,false,false,0,"10*6/24hrs; 10^6/24 hrs; 10*6 per 24 hrs; 10^6 per 24 hours","LOINC","NRat","Clinical","","1","1","10",10,false],[false,"million per kilogram","10*6/kg","(10*6)/KG","number",1000,[0,0,-1,0,0,0,0],"(106)/kg","dimless",false,null,null,1,false,false,0,"10^6/kg; 10*6 per kg; 10*6 per kilogram; millions","LOINC","NCnt","Clinical","","1","1","10",10,false],[false,"million per liter","10*6/L","(10*6)/L","number",1000000000,[-3,0,0,0,0,0,0],"(106)/L","dimless",false,null,null,1,false,false,0,"10^6/L; 10*6 per Liter; 10^6 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per milliliter","10*6/mL","(10*6)/ML","number",1000000000000,[-3,0,0,0,0,0,0],"(106)/mL","dimless",false,null,null,1,false,false,0,"10^6/mL; 10*6 per mL; 10*6 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per microliter","10*6/uL","(10*6)/UL","number",1000000000000000,[-3,0,0,0,0,0,0],"(106)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^6/uL; 10^6 per uL; 10^6/mcl; 10^6 per mcl; 10^6 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^8","10*8","10*8","number",100000000,[0,0,0,0,0,0,0],"108","dimless",false,null,null,1,false,false,0,"100 million; one hundred million; 10^8","LOINC","Num","Clinical","","1","1","10",10,false],[false,"billion per liter","10*9/L","(10*9)/L","number",1000000000000,[-3,0,0,0,0,0,0],"(109)/L","dimless",false,null,null,1,false,false,0,"10^9/L; 10*9 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per milliliter","10*9/mL","(10*9)/ML","number",1000000000000000,[-3,0,0,0,0,0,0],"(109)/mL","dimless",false,null,null,1,false,false,0,"10^9/mL; 10*9 per mL; 10^9 per mL; 10*9 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per microliter","10*9/uL","(10*9)/UL","number",1000000000000000000,[-3,0,0,0,0,0,0],"(109)/\u03bcL","dimless",false,null,null,1,false,false,0,"10^9/uL; 10^9 per uL; 10^9/mcl; 10^9 per mcl; 10*9 per uL; 10*9 per mcl; 10*9/mcl; 10^9 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 liter per minute per square meter","10.L/(min.m2)","L/(MIN.M2)","",0.00016666666666666666,[1,-1,0,0,0,0,0],"L/(min.(m2))",null,false,null,null,1,false,false,0,"10 liters per minutes per square meter; 10 L per min per m2; m^2; 10 L/(min*m2); 10L/(min*m^2); litres; sq. meter; metre; meters squared","LOINC","ArVRat","Clinical","",null,null,null,null,false],[false,"10 liter per minute","10.L/min","L/MIN","",0.00016666666666666666,[3,-1,0,0,0,0,0],"L/min",null,false,null,null,1,false,false,0,"10 liters per minute; 10 L per min; 10L; 10 L/min; litre","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"10 micronewton second per centimeter to the fifth power per square meter","10.uN.s/(cm5.m2)","(UN.S)/(CM5.M2)","",100000000,[-6,-1,1,0,0,0,0],"(\u03bcN.s)/(cm5).(m2)",null,false,null,null,1,false,false,0,"dyne seconds per centimeter5 and square meter; dyn.s/(cm5.m2); dyn.s/cm5/m2; cm^5; m^2","LOINC","","Clinical","unit to measure systemic vascular resistance per body surface area",null,null,null,null,false],[false,"24 hour","24.h","HR","",86400,[0,1,0,0,0,0,0],"h",null,false,null,null,1,false,false,0,"24hrs; 24 hrs; 24 hours; days; dy","LOINC","Time","Clinical","",null,null,null,null,false],[false,"ampere per meter","A/m","A/M","electric current",1,[-1,-1,0,0,0,1,0],"A/m","si",true,null,null,1,false,false,0,"A/m; amp/meter; magnetic field strength; H; B; amperes per meter; metre","LOINC","","Clinical","unit of magnetic field strength","C/s","C/S","1",1,false],[true,"centigram","cg","CG","mass",0.01,[0,0,1,0,0,0,0],"cg",null,false,"M",null,1,false,false,0,"centigrams; cg; cgm","LOINC","Mass","Clinical","",null,null,null,null,false],[false,"centiliter","cL","CL","volume",0.00001,[3,0,0,0,0,0,0],"cL","iso1000",true,null,null,1,false,false,0,"centiliters; centilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"centimeter","cm","CM","length",0.01,[1,0,0,0,0,0,0],"cm",null,false,"L",null,1,false,false,0,"centimeters; centimetres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"centimeter of water","cm[H2O]","CM[H2O]","pressure",98066.5,[-1,-2,1,0,0,0,0],"cm\xa0HO2","clinical",true,null,null,1,false,false,0,"cm H2O; cmH2O; centimetres; pressure","LOINC","Pres","Clinical","unit of pressure mostly applies to blood pressure","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per liter per second","cm[H2O]/L/s","(CM[H2O]/L)/S","pressure",98066500,[-4,-3,1,0,0,0,0],"(cm\xa0HO2)/L/s","clinical",true,null,null,1,false,false,0,"cm[H2O]/(L/s); cm[H2O].s/L; cm H2O/L/sec; cmH2O/L/sec; cmH2O/Liter; cmH2O per L per secs; centimeters of water per liters per second; centimetres; litres; cm[H2O]/(L/s)","LOINC","PresRat","Clinical","unit used to measure mean pulmonary resistance","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per second per meter","cm[H2O]/s/m","(CM[H2O]/S)/M","pressure",98066.5,[-2,-3,1,0,0,0,0],"(cm\xa0HO2)/s/m","clinical",true,null,null,1,false,false,0,"cm[H2O]/(s.m); cm H2O/s/m; cmH2O; cmH2O/sec/m; cmH2O per secs per meters; centimeters of water per seconds per meter; centimetres; metre","LOINC","PresRat","Clinical","unit used to measure pulmonary pressure time product","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of mercury","cm[Hg]","CM[HG]","pressure",1333220,[-1,-2,1,0,0,0,0],"cm\xa0Hg","clinical",true,null,null,1,false,false,0,"centimeters of mercury; centimetres; cmHg; cm Hg","LOINC","Pres","Clinical","unit of pressure where 1 cmHg = 10 torr","kPa","KPAL","133.3220",133.322,false],[true,"square centimeter","cm2","CM2","length",0.0001,[2,0,0,0,0,0,0],"cm2",null,false,"L",null,1,false,false,0,"cm^2; sq cm; centimeters squared; square centimeters; centimetre; area","LOINC","Area","Clinical","",null,null,null,null,false],[true,"square centimeter per second","cm2/s","CM2/S","length",0.0001,[2,-1,0,0,0,0,0],"(cm2)/s",null,false,"L",null,1,false,false,0,"cm^2/sec; square centimeters per second; sq cm per sec; cm2; centimeters squared; centimetres","LOINC","AreaRat","Clinical","",null,null,null,null,false],[false,"centipoise","cP","CP","dynamic viscosity",1,[-1,-1,1,0,0,0,0],"cP","cgs",true,null,null,1,false,false,0,"cps; centiposes","LOINC","Visc","Clinical","unit of dynamic viscosity in the CGS system with base units: 10^\u22123 Pa.s = 1 mPa\xb7.s (1 millipascal second)","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"centistoke","cSt","CST","kinematic viscosity",0.0000010000000000000002,[2,-1,0,0,0,0,0],"cSt","cgs",true,null,null,1,false,false,0,"centistokes","LOINC","Visc","Clinical","unit for kinematic viscosity with base units of mm^2/s (square millimeter per second)","cm2/s","CM2/S","1",1,false],[false,"dekaliter per minute","daL/min","DAL/MIN","volume",0.00016666666666666666,[3,-1,0,0,0,0,0],"daL/min","iso1000",true,null,null,1,false,false,0,"dekalitres; dekaliters per minute; per min","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"dekaliter per minute per square meter","daL/min/m2","(DAL/MIN)/M2","volume",0.00016666666666666666,[1,-1,0,0,0,0,0],"(daL/min)/(m2)","iso1000",true,null,null,1,false,false,0,"daL/min/m^2; daL/minute/m2; sq. meter; dekaliters per minutes per square meter; meter squared; dekalitres; metre","LOINC","ArVRat","Clinical","The area usually is the body surface area used to normalize cardiovascular measures for patient\'s size","l",null,"1",1,false],[false,"decibel","dB","DB","level",1,[0,0,0,0,0,0,0],"dB","levels",true,null,"lg",0.1,true,false,0,"decibels","LOINC","LogRto","Clinical","unit most commonly used in acoustics as unit of sound pressure level. (also see B[SPL] or bel sound pressure level). ","1",null,null,1,false],[false,"degree per second","deg/s","DEG/S","plane angle",0.017453292519943295,[0,-1,0,1,0,0,0],"\xb0/s","iso1000",false,null,null,1,false,false,0,"deg/sec; deg per sec; \xb0/sec; twist rate; angular speed; rotational speed","LOINC","ARat","Clinical","unit of angular (rotational) speed used to express turning rate","[pi].rad/360","[PI].RAD/360","2",2,false],[true,"decigram","dg","DG","mass",0.1,[0,0,1,0,0,0,0],"dg",null,false,"M",null,1,false,false,0,"decigrams; dgm; 0.1 grams; 1/10 gm","LOINC","Mass","Clinical","equal to 1/10 gram",null,null,null,null,false],[false,"deciliter","dL","DL","volume",0.0001,[3,0,0,0,0,0,0],"dL","iso1000",true,null,null,1,false,false,0,"deciliters; decilitres; 0.1 liters; 1/10 L","LOINC","Vol","Clinical","equal to 1/10 liter","l",null,"1",1,false],[true,"decimeter","dm","DM","length",0.1,[1,0,0,0,0,0,0],"dm",null,false,"L",null,1,false,false,0,"decimeters; decimetres; 0.1 meters; 1/10 m; 10 cm; centimeters","LOINC","Len","Clinical","equal to 1/10 meter or 10 centimeters",null,null,null,null,false],[true,"square decimeter per square second","dm2/s2","DM2/S2","length",0.010000000000000002,[2,-2,0,0,0,0,0],"(dm2)/(s2)",null,false,"L",null,1,false,false,0,"dm2 per s2; dm^2/s^2; decimeters squared per second squared; sq dm; sq sec","LOINC","EngMass (massic energy)","Clinical","units for energy per unit mass or Joules per kilogram (J/kg = kg.m2/s2/kg = m2/s2) ",null,null,null,null,false],[false,"dyne second per centimeter per square meter","dyn.s/(cm.m2)","(DYN.S)/(CM.M2)","force",1,[-2,-1,1,0,0,0,0],"(dyn.s)/(cm.(m2))","cgs",true,null,null,1,false,false,0,"(dyn*s)/(cm*m2); (dyn*s)/(cm*m^2); dyn s per cm per m2; m^2; dyne seconds per centimeters per square meter; centimetres; sq. meter; squared","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"dyne second per centimeter","dyn.s/cm","(DYN.S)/CM","force",1,[0,-1,1,0,0,0,0],"(dyn.s)/cm","cgs",true,null,null,1,false,false,0,"(dyn*s)/cm; dyn sec per cm; seconds; centimetre; dyne seconds","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"equivalent per liter","eq/L","EQ/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"eq/L","chemical",true,null,null,1,false,false,1,"eq/liter; eq/litre; eqs; equivalents per liter; litre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per milliliter","eq/mL","EQ/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"eq/mL","chemical",true,null,null,1,false,false,1,"equivalent/milliliter; equivalents per milliliter; eq per mL; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per millimole","eq/mmol","EQ/MMOL","amount of substance",1000,[0,0,0,0,0,0,0],"eq/mmol","chemical",true,null,null,1,false,false,0,"equivalent/millimole; equivalents per millimole; eq per mmol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per micromole","eq/umol","EQ/UMOL","amount of substance",1000000,[0,0,0,0,0,0,0],"eq/\u03bcmol","chemical",true,null,null,1,false,false,0,"equivalent/micromole; equivalents per micromole; eq per umol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"femtogram","fg","FG","mass",1e-15,[0,0,1,0,0,0,0],"fg",null,false,"M",null,1,false,false,0,"fg; fgm; femtograms; weight","LOINC","Mass","Clinical","equal to 10^-15 grams",null,null,null,null,false],[false,"femtoliter","fL","FL","volume",1e-18,[3,0,0,0,0,0,0],"fL","iso1000",true,null,null,1,false,false,0,"femtolitres; femtoliters","LOINC","Vol; EntVol","Clinical","equal to 10^-15 liters","l",null,"1",1,false],[true,"femtometer","fm","FM","length",1e-15,[1,0,0,0,0,0,0],"fm",null,false,"L",null,1,false,false,0,"femtometres; femtometers","LOINC","Len","Clinical","equal to 10^-15 meters",null,null,null,null,false],[false,"femtomole","fmol","FMOL","amount of substance",602213670,[0,0,0,0,0,0,0],"fmol","si",true,null,null,1,false,false,1,"femtomoles","LOINC","EntSub","Clinical","equal to 10^-15 moles","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per gram","fmol/g","FMOL/G","amount of substance",602213670,[0,0,-1,0,0,0,0],"fmol/g","si",true,null,null,1,false,false,1,"femtomoles; fmol/gm; fmol per gm","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per liter","fmol/L","FMOL/L","amount of substance",602213670000,[-3,0,0,0,0,0,0],"fmol/L","si",true,null,null,1,false,false,1,"femtomoles; fmol per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milligram","fmol/mg","FMOL/MG","amount of substance",602213670000,[0,0,-1,0,0,0,0],"fmol/mg","si",true,null,null,1,false,false,1,"fmol per mg; femtomoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milliliter","fmol/mL","FMOL/ML","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"fmol/mL","si",true,null,null,1,false,false,1,"femtomoles; millilitre; fmol per mL; fmol per milliliter","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"gram meter","g.m","G.M","mass",1,[1,0,1,0,0,0,0],"g.m",null,false,"M",null,1,false,false,0,"g*m; gxm; meters; metres","LOINC","Enrg","Clinical","Unit for measuring stroke work (heart work)",null,null,null,null,false],[true,"gram per 100 gram","g/(100.g)","G/G","mass",0.01,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"g/100 gm; 100gm; grams per 100 grams; gm per 100 gm","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per 12 hour","g/(12.h)","G/HR","mass",0.000023148148148148147,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/12hrs; 12 hrs; gm per 12 hrs; 12hrs; grams per 12 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 24 hour","g/(24.h)","G/HR","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; gm/dy; gm per dy; grams per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 3 days","g/(3.d)","G/D","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/3dy; gm/3 dy; gm per 3 days; grams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 4 hour","g/(4.h)","G/HR","mass",0.00006944444444444444,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/4hrs; gm/4 hrs; gm per 4 hrs; 4hrs; grams per 4 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 48 hour","g/(48.h)","G/HR","mass",0.000005787037037037037,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/48hrs; gm/48 hrs; gm per 48 hrs; 48hrs; grams per 48 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 5 hour","g/(5.h)","G/HR","mass",0.00005555555555555556,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/5hrs; gm/5 hrs; gm per 5 hrs; 5hrs; grams per 5 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 6 hour","g/(6.h)","G/HR","mass",0.000046296296296296294,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/6hrs; gm/6 hrs; gm per 6 hrs; 6hrs; grams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 72 hour","g/(72.h)","G/HR","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/72hrs; gm/72 hrs; gm per 72 hrs; 72hrs; grams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per cubic centimeter","g/cm3","G/CM3","mass",999999.9999999999,[-3,0,1,0,0,0,0],"g/(cm3)",null,false,"M",null,1,false,false,0,"g/cm^3; gm per cm3; g per cm^3; grams per centimeter cubed; cu. cm; centimetre; g/mL; gram per milliliter; millilitre","LOINC","MCnc","Clinical","g/cm3 = g/mL",null,null,null,null,false],[true,"gram per day","g/d","G/D","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/dy; gm per dy; grams per day; gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; serving","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per deciliter","g/dL","G/DL","mass",10000,[-3,0,1,0,0,0,0],"g/dL",null,false,"M",null,1,false,false,0,"gm/dL; gm per dL; grams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per gram","g/g","G/G","mass",1,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"gm; grams","LOINC","MRto ","Clinical","",null,null,null,null,false],[true,"gram per hour","g/h","G/HR","mass",0.0002777777777777778,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/hr; gm per hr; grams; intake; output","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per hour per square meter","g/h/m2","(G/HR)/M2","mass",0.0002777777777777778,[-2,-1,1,0,0,0,0],"(g/h)/(m2)",null,false,"M",null,1,false,false,0,"gm/hr/m2; gm/h/m2; /m^2; sq. m; g per hr per m2; grams per hours per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"gram per kilogram","g/kg ","G/KG","mass",0.001,[0,0,0,0,0,0,0],"g/kg",null,false,"M",null,1,false,false,0,"g per kg; gram per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per kilogram per 8 hour ","g/kg/(8.h)","(G/KG)/HR","mass",3.472222222222222e-8,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(8.kg.h); gm/kg/8hrs; 8 hrs; g per kg per 8 hrs; 8hrs; grams per kilograms per 8 hours; shift","LOINC","MCntRat; RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a 8 hours, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per day","g/kg/d","(G/KG)/D","mass",1.1574074074074074e-8,[0,-1,0,0,0,0,0],"(g/kg)/d",null,false,"M",null,1,false,false,0,"g/(kg.d); gm/kg/dy; gm per kg per dy; grams per kilograms per day","LOINC","RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a day, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per hour","g/kg/h","(G/KG)/HR","mass",2.7777777777777776e-7,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(kg.h); g/kg/hr; g per kg per hrs; grams per kilograms per hour","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per minute","g/kg/min","(G/KG)/MIN","mass",0.000016666666666666667,[0,-1,0,0,0,0,0],"(g/kg)/min",null,false,"M",null,1,false,false,0,"g/(kg.min); g/kg/min; g per kg per min; grams per kilograms per minute","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per liter","g/L","G/L","mass",1000,[-3,0,1,0,0,0,0],"g/L",null,false,"M",null,1,false,false,0,"gm per liter; g/liter; grams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per square meter","g/m2","G/M2","mass",1,[-2,0,1,0,0,0,0],"g/(m2)",null,false,"M",null,1,false,false,0,"g/m^2; gram/square meter; g/sq m; g per m2; g per m^2; grams per square meter; meters squared; metre","LOINC","ArMass","Clinical","Tests measure myocardial mass (heart ventricle system) per body surface area; unit used to measure mass dose per body surface area",null,null,null,null,false],[true,"gram per milligram","g/mg","G/MG","mass",1000,[0,0,0,0,0,0,0],"g/mg",null,false,"M",null,1,false,false,0,"g per mg; grams per milligram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"gram per minute","g/min","G/MIN","mass",0.016666666666666666,[0,-1,1,0,0,0,0],"g/min",null,false,"M",null,1,false,false,0,"g per min; grams per minute; gram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per milliliter","g/mL","G/ML","mass",1000000,[-3,0,1,0,0,0,0],"g/mL",null,false,"M",null,1,false,false,0,"g per mL; grams per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per millimole","g/mmol","G/MMOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"g/mmol",null,false,"M",null,1,false,false,-1,"grams per millimole; g per mmol","LOINC","Ratio","Clinical","",null,null,null,null,false],[false,"joule per liter","J/L","J/L","energy",1000000,[-1,-2,1,0,0,0,0],"J/L","si",true,null,null,1,false,false,0,"joules per liter; litre; J per L","LOINC","EngCnc","Clinical","","N.m","N.M","1",1,false],[true,"degree Kelvin per Watt","K/W","K/W","temperature",0.001,[-2,3,-1,0,1,0,0],"K/W",null,false,"C",null,1,false,false,0,"degree Kelvin/Watt; K per W; thermal ohm; thermal resistance; degrees","LOINC","TempEngRat","Clinical","unit for absolute thermal resistance equal to the reciprocal of thermal conductance. Unit used for tests to measure work of breathing",null,null,null,null,false],[false,"kilo international unit per liter","k[IU]/L","K[IU]/L","arbitrary",1000000,[-3,0,0,0,0,0,0],"(ki.U.)/L","chemical",true,null,null,1,false,true,0,"kIU/L; kIU per L; kIU per liter; kilo international units; litre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/L","[iU]","[IU]","1",1,false],[false,"kilo international unit per milliliter","k[IU]/mL","K[IU]/ML","arbitrary",1000000000,[-3,0,0,0,0,0,0],"(ki.U.)/mL","chemical",true,null,null,1,false,true,0,"kIU/mL; kIU per mL; kIU per milliliter; kilo international units; millilitre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/mL","[iU]","[IU]","1",1,false],[false,"katal per kilogram","kat/kg","KAT/KG","catalytic activity",602213670000000000000,[0,-1,-1,0,0,0,0],"kat/kg","chemical",true,null,null,1,false,false,1,"kat per kg; katals per kilogram; mol/s/kg; moles per seconds per kilogram","LOINC","CCnt","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"katal per liter","kat/L","KAT/L","catalytic activity",6.0221366999999994e+26,[-3,-1,0,0,0,0,0],"kat/L","chemical",true,null,null,1,false,false,1,"kat per L; katals per liter; litre; mol/s/L; moles per seconds per liter","LOINC","CCnc","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"kilocalorie","kcal","KCAL","energy",4184000,[2,-2,1,0,0,0,0],"kcal","heat",true,null,null,1,false,false,0,"kilogram calories; large calories; food calories; kcals","LOINC","EngRat","Clinical","It is equal to 1000 calories (equal to 4.184 kJ). But in practical usage, kcal refers to food calories which excludes caloric content in fiber and other constitutes that is not digestible by humans. Also see nutrition label Calories ([Cal])","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per 24 hour","kcal/(24.h)","KCAL/HR","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/24hrs; kcal/24 hrs; kcal per 24hrs; kilocalories per 24 hours; kilojoules; kJ/24hr; kJ/(24.h); kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","","EngRat","Clinical","","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per ounce","kcal/[oz_av]","KCAL/[OZ_AV]","energy",147586.25679704445,[2,-2,0,0,0,0,0],"kcal/oz","heat",true,null,null,1,false,false,0,"kcal/oz; kcal per ozs; large calories per ounces; food calories; servings; international","LOINC","EngCnt","Clinical","used in nutrition to represent calorie of food","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per day","kcal/d","KCAL/D","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/d","heat",true,null,null,1,false,false,0,"kcal/dy; kcal per day; kilocalories per days; kilojoules; kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","LOINC","EngRat","Clinical","unit in nutrition for food intake (measured in calories) in a day","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per hour","kcal/h","KCAL/HR","energy",1162.2222222222222,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/hrs; kcals per hr; intake; kilocalories per hours; kilojoules","LOINC","EngRat","Clinical","used in nutrition to represent caloric requirement or consumption","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per kilogram per 24 hour","kcal/kg/(24.h)","(KCAL/KG)/HR","energy",0.04842592592592593,[2,-3,0,0,0,0,0],"(kcal/kg)/h","heat",true,null,null,1,false,false,0,"kcal/kg/24hrs; 24 hrs; kcal per kg per 24hrs; kilocalories per kilograms per 24 hours; kilojoules","LOINC","EngCntRat","Clinical","used in nutrition to represent caloric requirement per day based on subject\'s body weight in kilograms","cal_th","CAL_TH","1",1,false],[true,"kilogram","kg","KG","mass",1000,[0,0,1,0,0,0,0],"kg",null,false,"M",null,1,false,false,0,"kilograms; kgs","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"kilogram meter per second","kg.m/s","(KG.M)/S","mass",1000,[1,-1,1,0,0,0,0],"(kg.m)/s",null,false,"M",null,1,false,false,0,"kg*m/s; kg.m per sec; kg*m per sec; p; momentum","LOINC","","Clinical","unit for momentum = mass times velocity",null,null,null,null,false],[true,"kilogram per second per square meter","kg/(s.m2)","KG/(S.M2)","mass",1000,[-2,-1,1,0,0,0,0],"kg/(s.(m2))",null,false,"M",null,1,false,false,0,"kg/(s*m2); kg/(s*m^2); kg per s per m2; per sec; per m^2; kilograms per seconds per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"kilogram per hour","kg/h","KG/HR","mass",0.2777777777777778,[0,-1,1,0,0,0,0],"kg/h",null,false,"M",null,1,false,false,0,"kg/hr; kg per hr; kilograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per liter","kg/L","KG/L","mass",1000000,[-3,0,1,0,0,0,0],"kg/L",null,false,"M",null,1,false,false,0,"kg per liter; litre; kilograms","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per square meter","kg/m2","KG/M2","mass",1000,[-2,0,1,0,0,0,0],"kg/(m2)",null,false,"M",null,1,false,false,0,"kg/m^2; kg/sq. m; kg per m2; per m^2; per sq. m; kilograms; meter squared; metre; BMI","LOINC","Ratio","Clinical","units for body mass index (BMI)",null,null,null,null,false],[true,"kilogram per cubic meter","kg/m3","KG/M3","mass",1000,[-3,0,1,0,0,0,0],"kg/(m3)",null,false,"M",null,1,false,false,0,"kg/m^3; kg/cu. m; kg per m3; per m^3; per cu. m; kilograms; meters cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per minute","kg/min","KG/MIN","mass",16.666666666666668,[0,-1,1,0,0,0,0],"kg/min",null,false,"M",null,1,false,false,0,"kilogram/minute; kg per min; kilograms per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per mole","kg/mol","KG/MOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"kg/mol",null,false,"M",null,1,false,false,-1,"kilogram/mole; kg per mol; kilograms per mole","LOINC","SCnt","Clinical","",null,null,null,null,false],[true,"kilogram per second","kg/s","KG/S","mass",1000,[0,-1,1,0,0,0,0],"kg/s",null,false,"M",null,1,false,false,0,"kg/sec; kilogram/second; kg per sec; kilograms; second","LOINC","MRat","Clinical","",null,null,null,null,false],[false,"kiloliter","kL","KL","volume",1,[3,0,0,0,0,0,0],"kL","iso1000",true,null,null,1,false,false,0,"kiloliters; kilolitres; m3; m^3; meters cubed; metre","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"kilometer","km","KM","length",1000,[1,0,0,0,0,0,0],"km",null,false,"L",null,1,false,false,0,"kilometers; kilometres; distance","LOINC","Len","Clinical","",null,null,null,null,false],[false,"kilopascal","kPa","KPAL","pressure",1000000,[-1,-2,1,0,0,0,0],"kPa","si",true,null,null,1,false,false,0,"kilopascals; pressure","LOINC","Pres; PPresDiff","Clinical","","N/m2","N/M2","1",1,false],[true,"kilosecond","ks","KS","time",1000,[0,1,0,0,0,0,0],"ks",null,false,"T",null,1,false,false,0,"kiloseconds; ksec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"kilo enzyme unit","kU","KU","catalytic activity",10036894500000000000,[0,-1,0,0,0,0,0],"kU","chemical",true,null,null,1,false,false,1,"units; mmol/min; millimoles per minute","LOINC","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per gram","kU/g","KU/G","catalytic activity",10036894500000000000,[0,-1,-1,0,0,0,0],"kU/g","chemical",true,null,null,1,false,false,1,"units per grams; kU per gm","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per liter","kU/L","KU/L","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"kU/L","chemical",true,null,null,1,false,false,1,"units per liter; litre; enzymatic activity; enzyme activity per volume; activities","LOINC","ACnc; CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per milliliter","kU/mL","KU/ML","catalytic activity",1.00368945e+25,[-3,-1,0,0,0,0,0],"kU/mL","chemical",true,null,null,1,false,false,1,"kU per mL; units per milliliter; millilitre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Liters per 24 hour","L/(24.h)","L/HR","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/24hrs; L/24 hrs; L per 24hrs; liters per 24 hours; day; dy; litres; volume flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per 8 hour","L/(8.h)","L/HR","volume",3.472222222222222e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/8hrs; L/8 hrs; L per 8hrs; liters per 8 hours; litres; volume flow rate; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/(min.m2) ","L/(MIN.M2)","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"L/(min.(m2))","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per day","L/d","L/D","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/d","iso1000",true,null,null,1,false,false,0,"L/dy; L per day; 24hrs; 24 hrs; 24 hours; liters; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per hour","L/h","L/HR","volume",2.7777777777777776e-7,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/hr; L per hr; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per kilogram","L/kg","L/KG","volume",0.000001,[3,0,-1,0,0,0,0],"L/kg","iso1000",true,null,null,1,false,false,0,"L per kg; litre","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"Liters per liter","L/L","L/L","volume",1,[0,0,0,0,0,0,0],"L/L","iso1000",true,null,null,1,false,false,0,"L per L; liter/liter; litre","LOINC","VFr","Clinical","","l",null,"1",1,false],[false,"Liters per minute","L/min","L/MIN","volume",0.000016666666666666667,[3,-1,0,0,0,0,0],"L/min","iso1000",true,null,null,1,false,false,0,"liters per minute; litre","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/min/m2","(L/MIN)/M2","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"(L/min)/(m2)","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per second","L/s","L/S","volume",0.001,[3,-1,0,0,0,0,0],"L/s","iso1000",true,null,null,1,false,false,0,"L per sec; litres","LOINC","VRat","Clinical","unit used often to measure gas flow and peak expiratory flow","l",null,"1",1,false],[false,"Liters per second per square second","L/s/s2","(L/S)/S2","volume",0.001,[3,-3,0,0,0,0,0],"(L/s)/(s2)","iso1000",true,null,null,1,false,false,0,"L/s/s^2; L/sec/sec2; L/sec/sec^2; L/sec/sq. sec; L per s per s2; L per sec per sec2; s^2; sec^2; liters per seconds per square second; second squared; litres ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output/body surface area","l",null,"1",1,false],[false,"lumen square meter","lm.m2","LM.M2","luminous flux",1,[2,0,0,2,0,0,1],"lm.(m2)","si",true,null,null,1,false,false,0,"lm*m2; lm*m^2; lumen meters squared; lumen sq. meters; metres","LOINC","","Clinical","","cd.sr","CD.SR","1",1,false],[true,"meter per second","m/s","M/S","length",1,[1,-1,0,0,0,0,0],"m/s",null,false,"L",null,1,false,false,0,"meter/second; m per sec; meters per second; metres; velocity; speed","LOINC","Vel","Clinical","unit of velocity",null,null,null,null,false],[true,"meter per square second","m/s2","M/S2","length",1,[1,-2,0,0,0,0,0],"m/(s2)",null,false,"L",null,1,false,false,0,"m/s^2; m/sq. sec; m per s2; per s^2; meters per square second; second squared; sq second; metres; acceleration","LOINC","Accel","Clinical","unit of acceleration",null,null,null,null,false],[false,"milli international unit per liter","m[IU]/L","M[IU]/L","arbitrary",1,[-3,0,0,0,0,0,0],"(mi.U.)/L","chemical",true,null,null,1,false,true,0,"mIU/L; m IU/L; mIU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"milli international unit per milliliter","m[IU]/mL","M[IU]/ML","arbitrary",1000.0000000000001,[-3,0,0,0,0,0,0],"(mi.U.)/mL","chemical",true,null,null,1,false,true,0,"mIU/mL; m IU/mL; mIU per mL; milli international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[true,"square meter","m2","M2","length",1,[2,0,0,0,0,0,0],"m2",null,false,"L",null,1,false,false,0,"m^2; sq m; square meters; meters squared; metres","LOINC","Area","Clinical","unit often used to represent body surface area",null,null,null,null,false],[true,"square meter per second","m2/s","M2/S","length",1,[2,-1,0,0,0,0,0],"(m2)/s",null,false,"L",null,1,false,false,0,"m^2/sec; m2 per sec; m^2 per sec; sq m/sec; meters squared/seconds; sq m per sec; meters squared; metres","LOINC","ArRat","Clinical","",null,null,null,null,false],[true,"cubic meter per second","m3/s","M3/S","length",1,[3,-1,0,0,0,0,0],"(m3)/s",null,false,"L",null,1,false,false,0,"m^3/sec; m3 per sec; m^3 per sec; cu m/sec; cubic meters per seconds; meters cubed; metres","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"milliampere","mA","MA","electric current",0.001,[0,-1,0,0,0,1,0],"mA","si",true,null,null,1,false,false,0,"mamp; milliamperes","LOINC","ElpotRat","Clinical","unit of electric current","C/s","C/S","1",1,false],[false,"millibar","mbar","MBAR","pressure",100000,[-1,-2,1,0,0,0,0],"mbar","iso1000",true,null,null,1,false,false,0,"millibars","LOINC","Pres","Clinical","unit of pressure","Pa","PAL","1e5",100000,false],[false,"millibar second per liter","mbar.s/L","(MBAR.S)/L","pressure",100000000,[-4,-1,1,0,0,0,0],"(mbar.s)/L","iso1000",true,null,null,1,false,false,0,"mbar*s/L; mbar.s per L; mbar*s per L; millibar seconds per liter; millibar second per litre","LOINC","","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"millibar per liter per second","mbar/L/s","(MBAR/L)/S","pressure",100000000,[-4,-3,1,0,0,0,0],"(mbar/L)/s","iso1000",true,null,null,1,false,false,0,"mbar/(L.s); mbar/L/sec; mbar/liter/second; mbar per L per sec; mbar per liter per second; millibars per liters per seconds; litres","LOINC","PresCncRat","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"milliequivalent","meq","MEQ","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"meq","chemical",true,null,null,1,false,false,1,"milliequivalents; meqs","LOINC","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 2 hour","meq/(2.h)","MEQ/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/2hrs; meq/2 hrs; meq per 2 hrs; milliequivalents per 2 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 24 hour","meq/(24.h)","MEQ/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 8 hour","meq/(8.h)","MEQ/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/8hrs; meq/8 hrs; meq per 8 hrs; milliequivalents per 8 hours; shift","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per day","meq/d","MEQ/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/d","chemical",true,null,null,1,false,false,1,"meq/dy; meq per day; milliquivalents per days; meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per deciliter","meq/dL","MEQ/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"meq/dL","chemical",true,null,null,1,false,false,1,"meq per dL; milliequivalents per deciliter; decilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per gram","meq/g","MEQ/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"meq/g","chemical",true,null,null,1,false,false,1,"mgq/gm; meq per gm; milliequivalents per gram","LOINC","MCnt","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per hour","meq/h","MEQ/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/hrs; meq per hrs; milliequivalents per hour","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per kilogram","meq/kg","MEQ/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"meq/kg","chemical",true,null,null,1,false,false,1,"meq per kg; milliequivalents per kilogram","LOINC","SCnt","Clinical","equivalence equals moles per valence; used to measure dose per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per kilogram per hour","meq/kg/h","(MEQ/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(meq/kg)/h","chemical",true,null,null,1,false,false,1,"meq/(kg.h); meq/kg/hr; meq per kg per hr; milliequivalents per kilograms per hour","LOINC","SCntRat","Clinical","equivalence equals moles per valence; unit used to measure dose rate per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per liter","meq/L","MEQ/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"meq/L","chemical",true,null,null,1,false,false,1,"milliequivalents per liter; litre; meq per l; acidity","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per square meter","meq/m2","MEQ/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"meq/(m2)","chemical",true,null,null,1,false,false,1,"meq/m^2; meq/sq. m; milliequivalents per square meter; meter squared; metre","LOINC","ArSub","Clinical","equivalence equals moles per valence; note that the use of m2 in clinical units ofter refers to body surface area","mol","MOL","1",1,false],[false,"milliequivalent per minute","meq/min","MEQ/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"meq/min","chemical",true,null,null,1,false,false,1,"meq per min; milliequivalents per minute","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per milliliter","meq/mL","MEQ/ML","amount of substance",6.0221367e+26,[-3,0,0,0,0,0,0],"meq/mL","chemical",true,null,null,1,false,false,1,"meq per mL; milliequivalents per milliliter; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"milligram","mg","MG","mass",0.001,[0,0,1,0,0,0,0],"mg",null,false,"M",null,1,false,false,0,"milligrams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"milligram per 10 hour","mg/(10.h)","MG/HR","mass",2.7777777777777777e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/10hrs; mg/10 hrs; mg per 10 hrs; milligrams per 10 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 12 hour","mg/(12.h)","MG/HR","mass",2.3148148148148148e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/12hrs; mg/12 hrs; per 12 hrs; 12hrs; milligrams per 12 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 2 hour","mg/(2.h)","MG/HR","mass",1.3888888888888888e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/2hrs; mg/2 hrs; mg per 2 hrs; 2hrs; milligrams per 2 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 24 hour","mg/(24.h)","MG/HR","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/kg/dy; mg per kg per day; milligrams per kilograms per days","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 6 hour","mg/(6.h)","MG/HR","mass",4.6296296296296295e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/6hrs; mg/6 hrs; mg per 6 hrs; 6hrs; milligrams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 72 hour","mg/(72.h)","MG/HR","mass",3.858024691358025e-9,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/72hrs; mg/72 hrs; 72 hrs; 72hrs; milligrams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 8 hour","mg/(8.h)","MG/HR","mass",3.472222222222222e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/8hrs; mg/8 hrs; milligrams per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per day","mg/d","MG/D","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/d",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/dy; mg per day; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per deciliter","mg/dL","MG/DL","mass",10,[-3,0,1,0,0,0,0],"mg/dL",null,false,"M",null,1,false,false,0,"mg per dL; milligrams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per gram","mg/g","MG/G","mass",0.001,[0,0,0,0,0,0,0],"mg/g",null,false,"M",null,1,false,false,0,"mg per gm; milligrams per gram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"milligram per hour","mg/h","MG/HR","mass",2.7777777777777776e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/hr; mg per hr; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per kilogram","mg/kg","MG/KG","mass",0.000001,[0,0,0,0,0,0,0],"mg/kg",null,false,"M",null,1,false,false,0,"mg per kg; milligrams per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"milligram per kilogram per 8 hour","mg/kg/(8.h)","(MG/KG)/HR","mass",3.472222222222222e-11,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(8.h.kg); mg/kg/8hrs; mg/kg/8 hrs; mg per kg per 8hrs; 8 hrs; milligrams per kilograms per 8 hours; shift","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per day","mg/kg/d","(MG/KG)/D","mass",1.1574074074074074e-11,[0,-1,0,0,0,0,0],"(mg/kg)/d",null,false,"M",null,1,false,false,0,"mg/(kg.d); mg/(kg.24.h)mg/kg/dy; mg per kg per day; milligrams per kilograms per days; mg/kg/(24.h); mg/kg/24hrs; 24 hrs; 24 hours","LOINC","RelMRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per hour","mg/kg/h","(MG/KG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(kg.h); mg/kg/hr; mg per kg per hr; milligrams per kilograms per hour","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per minute","mg/kg/min","(MG/KG)/MIN","mass",1.6666666666666667e-8,[0,-1,0,0,0,0,0],"(mg/kg)/min",null,false,"M",null,1,false,false,0,"mg/(kg.min); mg per kg per min; milligrams per kilograms per minute","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per liter","mg/L","MG/L","mass",1,[-3,0,1,0,0,0,0],"mg/L",null,false,"M",null,1,false,false,0,"mg per l; milligrams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per square meter","mg/m2","MG/M2","mass",0.001,[-2,0,1,0,0,0,0],"mg/(m2)",null,false,"M",null,1,false,false,0,"mg/m^2; mg/sq. m; mg per m2; mg per m^2; mg per sq. milligrams; meter squared; metre","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"milligram per cubic meter","mg/m3","MG/M3","mass",0.001,[-3,0,1,0,0,0,0],"mg/(m3)",null,false,"M",null,1,false,false,0,"mg/m^3; mg/cu. m; mg per m3; milligrams per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per milligram","mg/mg","MG/MG","mass",1,[0,0,0,0,0,0,0],"mg/mg",null,false,"M",null,1,false,false,0,"mg per mg; milligrams; milligram/milligram","LOINC","MRto","Clinical","",null,null,null,null,false],[true,"milligram per minute","mg/min","MG/MIN","mass",0.000016666666666666667,[0,-1,1,0,0,0,0],"mg/min",null,false,"M",null,1,false,false,0,"mg per min; milligrams per minutes; milligram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per milliliter","mg/mL","MG/ML","mass",1000.0000000000001,[-3,0,1,0,0,0,0],"mg/mL",null,false,"M",null,1,false,false,0,"mg per mL; milligrams per milliliters; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per millimole","mg/mmol","MG/MMOL","mass",1.660540186674939e-24,[0,0,1,0,0,0,0],"mg/mmol",null,false,"M",null,1,false,false,-1,"mg per mmol; milligrams per millimole; ","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"milligram per week","mg/wk","MG/WK","mass",1.6534391534391535e-9,[0,-1,1,0,0,0,0],"mg/wk",null,false,"M",null,1,false,false,0,"mg/week; mg per wk; milligrams per weeks; milligram/week","LOINC","Mrat","Clinical","",null,null,null,null,false],[false,"milliliter","mL","ML","volume",0.000001,[3,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"milliliters; millilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"milliliter per 10 hour","mL/(10.h)","ML/HR","volume",2.7777777777777777e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/10hrs; ml/10 hrs; mL per 10hrs; 10 hrs; milliliters per 10 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 12 hour","mL/(12.h)","ML/HR","volume",2.3148148148148147e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/12hrs; ml/12 hrs; mL per 12hrs; 12 hrs; milliliters per 12 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 2 hour","mL/(2.h)","ML/HR","volume",1.3888888888888888e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/2hrs; ml/2 hrs; mL per 2hrs; 2 hrs; milliliters per 2 hours; millilitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 24 hour","mL/(24.h)","ML/HR","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/24hrs; ml/24 hrs; mL per 24hrs; 24 hrs; milliliters per 24 hours; millilitres; ml/dy; /day; ml per dy; days; fluid outputs; fluid inputs; flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 4 hour","mL/(4.h)","ML/HR","volume",6.944444444444444e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/4hrs; ml/4 hrs; mL per 4hrs; 4 hrs; milliliters per 4 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 5 hour","mL/(5.h)","ML/HR","volume",5.5555555555555553e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/5hrs; ml/5 hrs; mL per 5hrs; 5 hrs; milliliters per 5 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 6 hour","mL/(6.h)","ML/HR","volume",4.6296296296296294e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/6hrs; ml/6 hrs; mL per 6hrs; 6 hrs; milliliters per 6 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 72 hour","mL/(72.h)","ML/HR","volume",3.8580246913580245e-12,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/72hrs; ml/72 hrs; mL per 72hrs; 72 hrs; milliliters per 72 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour","mL/(8.h)","ML/HR","volume",3.472222222222222e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/8hrs; ml/8 hrs; mL per 8hrs; 8 hrs; milliliters per 8 hours; millilitres; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour per kilogram","mL/(8.h)/kg","(ML/HR)/KG","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/h)/kg","iso1000",true,null,null,1,false,false,0,"mL/kg/(8.h); ml/8h/kg; ml/8 h/kg; ml/8hr/kg; ml/8 hr/kgr; mL per 8h per kg; 8 h; 8hr; 8 hr; milliliters per 8 hours per kilogram; millilitres; shift","LOINC","VRatCnt","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per square inch (international)","mL/[sin_i]","ML/[SIN_I]","volume",0.0015500031000061998,[1,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"mL/sin; mL/in2; mL/in^2; mL per sin; in2; in^2; sq. in; milliliters per square inch; inch squared","LOINC","ArVol","Clinical","","l",null,"1",1,false],[false,"milliliter per centimeter of water","mL/cm[H2O]","ML/CM[H2O]","volume",1.0197162129779282e-11,[4,2,-1,0,0,0,0],"mL/(cm\xa0HO2)","iso1000",true,null,null,1,false,false,0,"milliliters per centimeter of water; millilitre per centimetre of water; millilitres per centimetre of water; mL/cmH2O; mL/cm H2O; mL per cmH2O; mL per cm H2O","LOINC","Compli","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per day","mL/d","ML/D","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/d","iso1000",true,null,null,1,false,false,0,"ml/day; ml per day; milliliters per day; 24 hours; 24hrs; millilitre;","LOINC","VRat","Clinical","usually used to measure fluid output or input; flow rate","l",null,"1",1,false],[false,"milliliter per deciliter","mL/dL","ML/DL","volume",0.009999999999999998,[0,0,0,0,0,0,0],"mL/dL","iso1000",true,null,null,1,false,false,0,"mL per dL; millilitres; decilitre; milliliters","LOINC","VFr; VFrDiff","Clinical","","l",null,"1",1,false],[false,"milliliter per hour","mL/h","ML/HR","volume",2.7777777777777777e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"mL/hr; mL per hr; milliliters per hour; millilitres; fluid intake; fluid output","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram","mL/kg","ML/KG","volume",9.999999999999999e-10,[3,0,-1,0,0,0,0],"mL/kg","iso1000",true,null,null,1,false,false,0,"mL per kg; milliliters per kilogram; millilitres","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram per 8 hour","mL/kg/(8.h)","(ML/KG)/HR","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(8.h.kg); mL/kg/8hrs; mL/kg/8 hrs; mL per kg per 8hrs; 8 hrs; milliliters per kilograms per 8 hours; millilitres; shift","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per day","mL/kg/d","(ML/KG)/D","volume",1.1574074074074072e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/d","iso1000",true,null,null,1,false,false,0,"mL/(kg.d); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; mg/kg/24hrs; 24 hrs; per 24 hours millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per hour","mL/kg/h","(ML/KG)/HR","volume",2.7777777777777774e-13,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(kg.h); mL/kg/hr; mL per kg per hr; milliliters per kilograms per hour; millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per minute","mL/kg/min","(ML/KG)/MIN","volume",1.6666666666666664e-11,[3,-1,-1,0,0,0,0],"(mL/kg)/min","iso1000",true,null,null,1,false,false,0,"mL/(kg.min); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; millilitres","LOINC","RelEngRat","Clinical","used for tests that measure activity metabolic rate compared to standard resting metabolic rate ","l",null,"1",1,false],[false,"milliliter per square meter","mL/m2","ML/M2","volume",0.000001,[1,0,0,0,0,0,0],"mL/(m2)","iso1000",true,null,null,1,false,false,0,"mL/m^2; mL/sq. meter; mL per m2; m^2; sq. meter; milliliters per square meter; millilitres; meter squared","LOINC","ArVol","Clinical","used for tests that relate to heart work - e.g. ventricular stroke volume; atrial volume per body surface area","l",null,"1",1,false],[false,"milliliter per millibar","mL/mbar","ML/MBAR","volume",1e-11,[4,2,-1,0,0,0,0],"mL/mbar","iso1000",true,null,null,1,false,false,0,"mL per mbar; milliliters per millibar; millilitres","LOINC","","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per minute","mL/min","ML/MIN","volume",1.6666666666666667e-8,[3,-1,0,0,0,0,0],"mL/min","iso1000",true,null,null,1,false,false,0,"mL per min; milliliters; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per minute per square meter","mL/min/m2","(ML/MIN)/M2","volume",1.6666666666666667e-8,[1,-1,0,0,0,0,0],"(mL/min)/(m2)","iso1000",true,null,null,1,false,false,0,"ml/min/m^2; ml/min/sq. meter; mL per min per m2; m^2; sq. meter; milliliters per minutes per square meter; millilitres; metre; meter squared","LOINC","ArVRat","Clinical","unit used to measure volume per body surface area; oxygen consumption index","l",null,"1",1,false],[false,"milliliter per millimeter","mL/mm","ML/MM","volume",0.001,[2,0,0,0,0,0,0],"mL/mm","iso1000",true,null,null,1,false,false,0,"mL per mm; milliliters per millimeter; millilitres; millimetre","LOINC","Lineic Volume","Clinical","","l",null,"1",1,false],[false,"milliliter per second","mL/s","ML/S","volume",0.000001,[3,-1,0,0,0,0,0],"mL/s","iso1000",true,null,null,1,false,false,0,"ml/sec; mL per sec; milliliters per second; millilitres","LOINC","Vel; VelRat; VRat","Clinical","","l",null,"1",1,false],[true,"millimeter","mm","MM","length",0.001,[1,0,0,0,0,0,0],"mm",null,false,"L",null,1,false,false,0,"millimeters; millimetres; height; length; diameter; thickness; axis; curvature; size","LOINC","Len","Clinical","",null,null,null,null,false],[true,"millimeter per hour","mm/h","MM/HR","length",2.7777777777777776e-7,[1,-1,0,0,0,0,0],"mm/h",null,false,"L",null,1,false,false,0,"mm/hr; mm per hr; millimeters per hour; millimetres","LOINC","Vel","Clinical","unit to measure sedimentation rate",null,null,null,null,false],[true,"millimeter per minute","mm/min","MM/MIN","length",0.000016666666666666667,[1,-1,0,0,0,0,0],"mm/min",null,false,"L",null,1,false,false,0,"mm per min; millimeters per minute; millimetres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"millimeter of water","mm[H2O]","MM[H2O]","pressure",9806.65,[-1,-2,1,0,0,0,0],"mm\xa0HO2","clinical",true,null,null,1,false,false,0,"mmH2O; mm H2O; millimeters of water; millimetres","LOINC","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"millimeter of mercury","mm[Hg]","MM[HG]","pressure",133322,[-1,-2,1,0,0,0,0],"mm\xa0Hg","clinical",true,null,null,1,false,false,0,"mmHg; mm Hg; millimeters of mercury; millimetres","LOINC","Pres; PPres; Ratio","Clinical","1 mm[Hg] = 1 torr; unit to measure blood pressure","kPa","KPAL","133.3220",133.322,false],[true,"square millimeter","mm2","MM2","length",0.000001,[2,0,0,0,0,0,0],"mm2",null,false,"L",null,1,false,false,0,"mm^2; sq. mm.; sq. millimeters; millimeters squared; millimetres","LOINC","Area","Clinical","",null,null,null,null,false],[false,"millimole","mmol","MMOL","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"mmol","si",true,null,null,1,false,false,1,"millimoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 12 hour","mmol/(12.h)","MMOL/HR","amount of substance",13940131250000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/12hrs; mmol/12 hrs; mmol per 12 hrs; 12hrs; millimoles per 12 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 2 hour","mmol/(2.h)","MMOL/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/2hrs; mmol/2 hrs; mmol per 2 hrs; 2hrs; millimoles per 2 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 24 hour","mmol/(24.h)","MMOL/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 5 hour","mmol/(5.h)","MMOL/HR","amount of substance",33456315000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/5hrs; mmol/5 hrs; mmol per 5 hrs; 5hrs; millimoles per 5 hours","LOINC","SRat","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 6 hour","mmol/(6.h)","MMOL/HR","amount of substance",27880262500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/6hrs; mmol/6 hrs; mmol per 6 hrs; 6hrs; millimoles per 6 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 8 hour","mmol/(8.h)","MMOL/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/8hrs; mmol/8 hrs; mmol per 8 hrs; 8hrs; millimoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per day","mmol/d","MMOL/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/d","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per deciliter","mmol/dL","MMOL/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"mmol/dL","si",true,null,null,1,false,false,1,"mmol per dL; millimoles; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per gram","mmol/g","MMOL/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mmol/g","si",true,null,null,1,false,false,1,"mmol per gram; millimoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per hour","mmol/h","MMOL/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/hr; mmol per hr; millimoles per hour","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram","mmol/kg","MMOL/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"mmol/kg","si",true,null,null,1,false,false,1,"mmol per kg; millimoles per kilogram","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per 8 hour","mmol/kg/(8.h)","(MMOL/KG)/HR","amount of substance",20910196875000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/(8.h.kg); mmol/kg/8hrs; mmol/kg/8 hrs; mmol per kg per 8hrs; 8 hrs; millimoles per kilograms per 8 hours; shift","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per day","mmol/kg/d","(MMOL/KG)/D","amount of substance",6970065625000,[0,-1,-1,0,0,0,0],"(mmol/kg)/d","si",true,null,null,1,false,false,1,"mmol/kg/dy; mmol/kg/day; mmol per kg per dy; millimoles per kilograms per day","LOINC","RelSRat","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per hour","mmol/kg/h","(MMOL/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/kg/hr; mmol per kg per hr; millimoles per kilograms per hour","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per minute","mmol/kg/min","(MMOL/KG)/MIN","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/min","si",true,null,null,1,false,false,1,"mmol/(kg.min); mmol/kg/min; mmol per kg per min; millimoles per kilograms per minute","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass; note that the unit for the enzyme unit U = umol/min. mmol/kg/min = kU/kg; ","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per liter","mmol/L","MMOL/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mmol/L","si",true,null,null,1,false,false,1,"mmol per L; millimoles per liter; litre","LOINC","SCnc","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per square meter","mmol/m2","MMOL/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"mmol/(m2)","si",true,null,null,1,false,false,1,"mmol/m^2; mmol/sq. meter; mmol per m2; m^2; sq. meter; millimoles; meter squared; metre","LOINC","ArSub","Clinical","unit used to measure molar dose per patient body surface area","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per minute","mmol/min","MMOL/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"mmol/min","si",true,null,null,1,false,false,1,"mmol per min; millimoles per minute","LOINC","Srat; CAct","Clinical","unit for the enzyme unit U = umol/min. mmol/min = kU","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per millimole","mmol/mmol","MMOL/MMOL","amount of substance",1,[0,0,0,0,0,0,0],"mmol/mmol","si",true,null,null,1,false,false,0,"mmol per mmol; millimoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per mole","mmol/mol","MMOL/MOL","amount of substance",0.001,[0,0,0,0,0,0,0],"mmol/mol","si",true,null,null,1,false,false,0,"mmol per mol; millimoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per second per liter","mmol/s/L","(MMOL/S)/L","amount of substance",6.0221367e+23,[-3,-1,0,0,0,0,0],"(mmol/s)/L","si",true,null,null,1,false,false,1,"mmol/sec/L; mmol per s per L; per sec; millimoles per seconds per liter; litre","LOINC","CCnc ","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram","mol/kg","MOL/KG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mol/kg","si",true,null,null,1,false,false,1,"mol per kg; moles; mols","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram per second","mol/kg/s","(MOL/KG)/S","amount of substance",602213670000000000000,[0,-1,-1,0,0,0,0],"(mol/kg)/s","si",true,null,null,1,false,false,1,"mol/kg/sec; mol per kg per sec; moles per kilograms per second; mols","LOINC","CCnt","Clinical","unit of catalytic activity (mol/s) per mass (kg)","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per liter","mol/L","MOL/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"mol/L","si",true,null,null,1,false,false,1,"mol per L; moles per liter; litre; moles; mols","LOINC","SCnc","Clinical","unit often used in tests measuring oxygen content","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per cubic meter","mol/m3","MOL/M3","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mol/(m3)","si",true,null,null,1,false,false,1,"mol/m^3; mol/cu. m; mol per m3; m^3; cu. meter; mols; moles; meters cubed; metre; mole per kiloliter; kilolitre; mol/kL","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per milliliter","mol/mL","MOL/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"mol/mL","si",true,null,null,1,false,false,1,"mol per mL; moles; millilitre; mols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per mole","mol/mol","MOL/MOL","amount of substance",1,[0,0,0,0,0,0,0],"mol/mol","si",true,null,null,1,false,false,0,"mol per mol; moles per mol; mols","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per second","mol/s","MOL/S","amount of substance",6.0221367e+23,[0,-1,0,0,0,0,0],"mol/s","si",true,null,null,1,false,false,1,"mol per sec; moles per second; mols","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"milliosmole","mosm","MOSM","amount of substance (dissolved particles)",602213670000000000000,[0,0,0,0,0,0,0],"mosm","chemical",true,null,null,1,false,false,1,"milliosmoles","LOINC","Osmol","Clinical","equal to 1/1000 of an osmole","mol","MOL","1",1,false],[false,"milliosmole per kilogram","mosm/kg","MOSM/KG","amount of substance (dissolved particles)",602213670000000000,[0,0,-1,0,0,0,0],"mosm/kg","chemical",true,null,null,1,false,false,1,"mosm per kg; milliosmoles per kilogram","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"milliosmole per liter","mosm/L","MOSM/L","amount of substance (dissolved particles)",6.0221367e+23,[-3,0,0,0,0,0,0],"mosm/L","chemical",true,null,null,1,false,false,1,"mosm per liter; litre; milliosmoles","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"millipascal","mPa","MPAL","pressure",1,[-1,-2,1,0,0,0,0],"mPa","si",true,null,null,1,false,false,0,"millipascals","LOINC","Pres","Clinical","unit of pressure","N/m2","N/M2","1",1,false],[false,"millipascal second","mPa.s","MPAL.S","pressure",1,[-1,-1,1,0,0,0,0],"mPa.s","si",true,null,null,1,false,false,0,"mPa*s; millipoise; mP; dynamic viscosity","LOINC","Visc","Clinical","base units for millipoise, a measurement of dynamic viscosity","N/m2","N/M2","1",1,false],[true,"megasecond","Ms","MAS","time",1000000,[0,1,0,0,0,0,0],"Ms",null,false,"T",null,1,false,false,0,"megaseconds","LOINC","Time","Clinical","",null,null,null,null,false],[true,"millisecond","ms","MS","time",0.001,[0,1,0,0,0,0,0],"ms",null,false,"T",null,1,false,false,0,"milliseconds; duration","LOINC","Time","Clinical","",null,null,null,null,false],[false,"milli enzyme unit per gram","mU/g","MU/G","catalytic activity",10036894500000,[0,-1,-1,0,0,0,0],"mU/g","chemical",true,null,null,1,false,false,1,"mU per gm; milli enzyme units per gram; enzyme activity; enzymatic activity per mass","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per liter","mU/L","MU/L","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"mU/L","chemical",true,null,null,1,false,false,1,"mU per liter; litre; milli enzyme units enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milligram","mU/mg","MU/MG","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"mU/mg","chemical",true,null,null,1,false,false,1,"mU per mg; milli enzyme units per milligram","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter","mU/mL","MU/ML","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"mU/mL","chemical",true,null,null,1,false,false,1,"mU per mL; milli enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter per minute","mU/mL/min","(MU/ML)/MIN","catalytic activity",167281575000000000,[-3,-2,0,0,0,0,0],"(mU/mL)/min","chemical",true,null,null,1,false,false,1,"mU per mL per min; mU per milliliters per minute; millilitres; milli enzyme units; enzymatic activity; enzyme activity","LOINC","CCncRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"millivolt","mV","MV","electric potential",1,[2,-2,1,0,0,-1,0],"mV","si",true,null,null,1,false,false,0,"millivolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false],[false,"Newton centimeter","N.cm","N.CM","force",10,[2,-2,1,0,0,0,0],"N.cm","si",true,null,null,1,false,false,0,"N*cm; Ncm; N cm; Newton*centimeters; Newton* centimetres; torque; work","LOINC","","Clinical","as a measurement of work, N.cm = 1/100 Joules;\\nnote that N.m is the standard unit of measurement for torque (although dimensionally equivalent to Joule), and N.cm can also be thought of as a torqe unit","kg.m/s2","KG.M/S2","1",1,false],[false,"Newton second","N.s","N.S","force",1000,[1,-1,1,0,0,0,0],"N.s","si",true,null,null,1,false,false,0,"Newton*seconds; N*s; N s; Ns; impulse; imp","LOINC","","Clinical","standard unit of impulse","kg.m/s2","KG.M/S2","1",1,false],[true,"nanogram","ng","NG","mass",1e-9,[0,0,1,0,0,0,0],"ng",null,false,"M",null,1,false,false,0,"nanograms","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"nanogram per 24 hour","ng/(24.h)","NG/HR","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/24hrs; ng/24 hrs; nanograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per 8 hour","ng/(8.h)","NG/HR","mass",3.4722222222222224e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/8hrs; ng/8 hrs; nanograms per 8 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per million","ng/10*6","NG/(10*6)","mass",1e-15,[0,0,1,0,0,0,0],"ng/(106)",null,false,"M",null,1,false,false,0,"ng/10^6; ng per 10*6; 10^6; nanograms","LOINC","MNum","Clinical","",null,null,null,null,false],[true,"nanogram per day","ng/d","NG/D","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/d",null,false,"M",null,1,false,false,0,"ng/dy; ng per day; nanograms ","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per deciliter","ng/dL","NG/DL","mass",0.00001,[-3,0,1,0,0,0,0],"ng/dL",null,false,"M",null,1,false,false,0,"ng per dL; nanograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per gram","ng/g","NG/G","mass",1e-9,[0,0,0,0,0,0,0],"ng/g",null,false,"M",null,1,false,false,0,"ng/gm; ng per gm; nanograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per hour","ng/h","NG/HR","mass",2.777777777777778e-13,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/hr; ng per hr; nanograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram","ng/kg","NG/KG","mass",1e-12,[0,0,0,0,0,0,0],"ng/kg",null,false,"M",null,1,false,false,0,"ng per kg; nanograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram per 8 hour","ng/kg/(8.h)","(NG/KG)/HR","mass",3.472222222222222e-17,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(8.h.kg); ng/kg/8hrs; ng/kg/8 hrs; ng per kg per 8hrs; 8 hrs; nanograms per kilograms per 8 hours; shift","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per hour","ng/kg/h","(NG/KG)/HR","mass",2.7777777777777775e-16,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(kg.h); ng/kg/hr; ng per kg per hr; nanograms per kilograms per hour","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per minute","ng/kg/min","(NG/KG)/MIN","mass",1.6666666666666667e-14,[0,-1,0,0,0,0,0],"(ng/kg)/min",null,false,"M",null,1,false,false,0,"ng/(kg.min); ng per kg per min; nanograms per kilograms per minute","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per liter","ng/L","NG/L","mass",0.000001,[-3,0,1,0,0,0,0],"ng/L",null,false,"M",null,1,false,false,0,"ng per L; nanograms per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per square meter","ng/m2","NG/M2","mass",1e-9,[-2,0,1,0,0,0,0],"ng/(m2)",null,false,"M",null,1,false,false,0,"ng/m^2; ng/sq. m; ng per m2; m^2; sq. meter; nanograms; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"nanogram per milligram","ng/mg","NG/MG","mass",0.000001,[0,0,0,0,0,0,0],"ng/mg",null,false,"M",null,1,false,false,0,"ng per mg; nanograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per milligram per hour","ng/mg/h","(NG/MG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(ng/mg)/h",null,false,"M",null,1,false,false,0,"ng/mg/hr; ng per mg per hr; nanograms per milligrams per hour","LOINC","MRtoRat ","Clinical","",null,null,null,null,false],[true,"nanogram per minute","ng/min","NG/MIN","mass",1.6666666666666667e-11,[0,-1,1,0,0,0,0],"ng/min",null,false,"M",null,1,false,false,0,"ng per min; nanograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per millliiter","ng/mL","NG/ML","mass",0.001,[-3,0,1,0,0,0,0],"ng/mL",null,false,"M",null,1,false,false,0,"ng per mL; nanograms; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per milliliter per hour","ng/mL/h","(NG/ML)/HR","mass",2.7777777777777776e-7,[-3,-1,1,0,0,0,0],"(ng/mL)/h",null,false,"M",null,1,false,false,0,"ng/mL/hr; ng per mL per mL; nanograms per milliliter per hour; nanogram per millilitre per hour; nanograms per millilitre per hour; enzymatic activity per volume; enzyme activity per milliliters","LOINC","CCnc","Clinical","tests that measure enzymatic activity",null,null,null,null,false],[true,"nanogram per second","ng/s","NG/S","mass",1e-9,[0,-1,1,0,0,0,0],"ng/s",null,false,"M",null,1,false,false,0,"ng/sec; ng per sec; nanograms per second","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per enzyme unit","ng/U","NG/U","mass",9.963241120049634e-26,[0,1,1,0,0,0,0],"ng/U",null,false,"M",null,1,false,false,-1,"ng per U; nanograms per enzyme unit","LOINC","CMass","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"nanokatal","nkat","NKAT","catalytic activity",602213670000000,[0,-1,0,0,0,0,0],"nkat","chemical",true,null,null,1,false,false,1,"nanokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"nanoliter","nL","NL","volume",1.0000000000000002e-12,[3,0,0,0,0,0,0],"nL","iso1000",true,null,null,1,false,false,0,"nanoliters; nanolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"nanometer","nm","NM","length",1e-9,[1,0,0,0,0,0,0],"nm",null,false,"L",null,1,false,false,0,"nanometers; nanometres","LOINC","Len","Clinical","",null,null,null,null,false],[true,"nanometer per second per liter","nm/s/L","(NM/S)/L","length",0.000001,[-2,-1,0,0,0,0,0],"(nm/s)/L",null,false,"L",null,1,false,false,0,"nm/sec/liter; nm/sec/litre; nm per s per l; nm per sec per l; nanometers per second per liter; nanometre per second per litre; nanometres per second per litre","LOINC","VelCnc","Clinical","",null,null,null,null,false],[false,"nanomole","nmol","NMOL","amount of substance",602213670000000,[0,0,0,0,0,0,0],"nmol","si",true,null,null,1,false,false,1,"nanomoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per 24 hour","nmol/(24.h)","NMOL/HR","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/h","si",true,null,null,1,false,false,1,"nmol/24hr; nmol/24 hr; nanomoles per 24 hours; nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per day","nmol/d","NMOL/D","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/d","si",true,null,null,1,false,false,1,"nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day; nmol/24hr; nmol/24 hr; nanomoles per 24 hours; ","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per deciliter","nmol/dL","NMOL/DL","amount of substance",6022136700000000000,[-3,0,0,0,0,0,0],"nmol/dL","si",true,null,null,1,false,false,1,"nmol per dL; nanomoles per deciliter; nanomole per decilitre; nanomoles per decilitre; nanomole/deciliter; nanomole/decilitre; nanomol/deciliter; nanomol/decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per gram","nmol/g","NMOL/G","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"nmol/g","si",true,null,null,1,false,false,1,"nmol per gram; nanomoles per gram; nanomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per hour per liter","nmol/h/L","(NMOL/HR)/L","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(nmol/h)/L","si",true,null,null,1,false,false,1,"nmol/hrs/L; nmol per hrs per L; nanomoles per hours per liter; litre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per liter","nmol/L","NMOL/L","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"nmol/L","si",true,null,null,1,false,false,1,"nmol per L; nanomoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram","nmol/mg","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nmol per mg; nanomoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram per hour","nmol/mg/h","(NMOL/MG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(nmol/mg)/h","si",true,null,null,1,false,false,1,"nmol/mg/hr; nmol per mg per hr; nanomoles per milligrams per hour","LOINC","SCntRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram of protein","nmol/mg{prot}","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nanomoles; nmol/mg prot; nmol per mg prot","LOINC","Ratio; CCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute","nmol/min","NMOL/MIN","amount of substance",10036894500000,[0,-1,0,0,0,0,0],"nmol/min","si",true,null,null,1,false,false,1,"nmol per min; nanomoles per minute; milli enzyme units; enzyme activity per volume; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/min = mU (milli enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute per milliliter","nmol/min/mL","(NMOL/MIN)/ML","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/min)/mL","si",true,null,null,1,false,false,1,"nmol per min per mL; nanomoles per minutes per milliliter; millilitre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter","nmol/mL","NMOL/ML","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"nmol/mL","si",true,null,null,1,false,false,1,"nmol per mL; nanomoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per hour","nmol/mL/h","(NMOL/ML)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/h","si",true,null,null,1,false,false,1,"nmol/mL/hr; nmol per mL per hr; nanomoles per milliliters per hour; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per minute","nmol/mL/min","(NMOL/ML)/MIN","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/min","si",true,null,null,1,false,false,1,"nmol per mL per min; nanomoles per milliliters per min; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole","nmol/mmol","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nmol per mmol; nanomoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole of creatinine","nmol/mmol{creat}","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per mole","nmol/mol","NMOL/MOL","amount of substance",1e-9,[0,0,0,0,0,0,0],"nmol/mol","si",true,null,null,1,false,false,0,"nmol per mole; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per nanomole","nmol/nmol","NMOL/NMOL","amount of substance",1,[0,0,0,0,0,0,0],"nmol/nmol","si",true,null,null,1,false,false,0,"nmol per nmol; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second","nmol/s","NMOL/S","amount of substance",602213670000000,[0,-1,0,0,0,0,0],"nmol/s","si",true,null,null,1,false,false,1,"nmol/sec; nmol per sec; nanomoles per sercond; milli enzyme units; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second per liter","nmol/s/L","(NMOL/S)/L","amount of substance",602213670000000000,[-3,-1,0,0,0,0,0],"(nmol/s)/L","si",true,null,null,1,false,false,1,"nmol/sec/L; nmol per s per L; nmol per sec per L; nanomoles per seconds per liter; litre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[true,"nanosecond","ns","NS","time",1e-9,[0,1,0,0,0,0,0],"ns",null,false,"T",null,1,false,false,0,"nanoseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"nanoenzyme unit per milliliter","nU/mL","NU/ML","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"nU/mL","chemical",true,null,null,1,false,false,1,"nU per mL; nanoenzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 fU = pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Ohm meter","Ohm.m","OHM.M","electric resistance",1000,[3,-1,1,0,0,-2,0],"\u03a9.m","si",true,null,null,1,false,false,0,"electric resistivity; meters; metres","LOINC","","Clinical","unit of electric resistivity","V/A","V/A","1",1,false],[false,"osmole per kilogram","osm/kg","OSM/KG","amount of substance (dissolved particles)",602213670000000000000,[0,0,-1,0,0,0,0],"osm/kg","chemical",true,null,null,1,false,false,1,"osm per kg; osmoles per kilogram; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"osmole per liter","osm/L","OSM/L","amount of substance (dissolved particles)",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"osm/L","chemical",true,null,null,1,false,false,1,"osm per L; osmoles per liter; litre; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"picoampere","pA","PA","electric current",1e-12,[0,-1,0,0,0,1,0],"pA","si",true,null,null,1,false,false,0,"picoamperes","LOINC","","Clinical","equal to 10^-12 amperes","C/s","C/S","1",1,false],[true,"picogram","pg","PG","mass",1e-12,[0,0,1,0,0,0,0],"pg",null,false,"M",null,1,false,false,0,"picograms","LOINC","Mass; EntMass","Clinical","",null,null,null,null,false],[true,"picogram per deciliter","pg/dL","PG/DL","mass",9.999999999999999e-9,[-3,0,1,0,0,0,0],"pg/dL",null,false,"M",null,1,false,false,0,"pg per dL; picograms; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per liter","pg/L","PG/L","mass",1e-9,[-3,0,1,0,0,0,0],"pg/L",null,false,"M",null,1,false,false,0,"pg per L; picograms; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per milligram","pg/mg","PG/MG","mass",1e-9,[0,0,0,0,0,0,0],"pg/mg",null,false,"M",null,1,false,false,0,"pg per mg; picograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"picogram per milliliter","pg/mL","PG/ML","mass",0.000001,[-3,0,1,0,0,0,0],"pg/mL",null,false,"M",null,1,false,false,0,"pg per mL; picograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per millimeter","pg/mm","PG/MM","mass",1e-9,[-1,0,1,0,0,0,0],"pg/mm",null,false,"M",null,1,false,false,0,"pg per mm; picogram/millimeter; picogram/millimetre; picograms per millimeter; millimetre","LOINC","Lineic Mass","Clinical","",null,null,null,null,false],[false,"picokatal","pkat","PKAT","catalytic activity",602213670000,[0,-1,0,0,0,0,0],"pkat","chemical",true,null,null,1,false,false,1,"pkats; picokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"picoliter","pL","PL","volume",1e-15,[3,0,0,0,0,0,0],"pL","iso1000",true,null,null,1,false,false,0,"picoliters; picolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"picometer","pm","PM","length",1e-12,[1,0,0,0,0,0,0],"pm",null,false,"L",null,1,false,false,0,"picometers; picometres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"picomole","pmol","PMOL","amount of substance",602213670000,[0,0,0,0,0,0,0],"pmol","si",true,null,null,1,false,false,1,"picomoles; pmols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per 24 hour","pmol/(24.h)","PMOL/HR","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/h","si",true,null,null,1,false,false,1,"pmol/24hrs; pmol/24 hrs; pmol per 24 hrs; 24hrs; days; dy; picomoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per day","pmol/d","PMOL/D","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/d","si",true,null,null,1,false,false,1,"pmol/dy; pmol per day; 24 hours; 24hrs; 24 hrs; picomoles","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per deciliter","pmol/dL","PMOL/DL","amount of substance",6022136700000000,[-3,0,0,0,0,0,0],"pmol/dL","si",true,null,null,1,false,false,1,"pmol per dL; picomoles per deciliter; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per gram","pmol/g","PMOL/G","amount of substance",602213670000,[0,0,-1,0,0,0,0],"pmol/g","si",true,null,null,1,false,false,1,"pmol per gm; picomoles per gram; picomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per hour per milliliter ","pmol/h/mL","(PMOL/HR)/ML","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(pmol/h)/mL","si",true,null,null,1,false,false,1,"pmol/hrs/mL; pmol per hrs per mL; picomoles per hour per milliliter; millilitre; micro enzyme units per volume; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. ","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per liter","pmol/L","PMOL/L","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"pmol/L","si",true,null,null,1,false,false,1,"picomole/liter; pmol per L; picomoles; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per minute","pmol/min","PMOL/MIN","amount of substance",10036894500,[0,-1,0,0,0,0,0],"pmol/min","si",true,null,null,1,false,false,1,"picomole/minute; pmol per min; picomoles per minute; micro enzyme units; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. pmol/min = uU (micro enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per milliliter","pmol/mL","PMOL/ML","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"pmol/mL","si",true,null,null,1,false,false,1,"picomole/milliliter; picomole/millilitre; pmol per mL; picomoles; millilitre; picomols; pmols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per micromole","pmol/umol","PMOL/UMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"pmol/\u03bcmol","si",true,null,null,1,false,false,0,"pmol/mcgmol; picomole/micromole; pmol per umol; pmol per mcgmol; picomoles ","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"picosecond","ps","PS","time",1e-12,[0,1,0,0,0,0,0],"ps",null,false,"T",null,1,false,false,0,"picoseconds; psec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"picotesla","pT","PT","magnetic flux density",1e-9,[0,-1,1,0,0,-1,0],"pT","si",true,null,null,1,false,false,0,"picoteslas","LOINC","","Clinical","SI unit of magnetic field strength for magnetic field B","Wb/m2","WB/M2","1",1,false],[false,"enzyme unit per 12 hour","U/(12.h)","U/HR","catalytic activity",232335520833.33334,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/12hrs; U/ 12hrs; U per 12 hrs; 12hrs; enzyme units per 12 hours; enzyme activity; enzymatic activity per time; umol per min per 12 hours; micromoles per minute per 12 hours; umol/min/12hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 2 hour","U/(2.h)","U/HR","catalytic activity",1394013125000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/2hrs; U/ 2hrs; U per 2 hrs; 2hrs; enzyme units per 2 hours; enzyme activity; enzymatic activity per time; umol per minute per 2 hours; micromoles per minute; umol/min/2hr; umol per min per 2hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 24 hour","U/(24.h)","U/HR","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/24hrs; U/ 24hrs; U per 24 hrs; 24hrs; enzyme units per 24 hours; enzyme activity; enzymatic activity per time; micromoles per minute per 24 hours; umol/min/24hr; umol per min per 24hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10","U/10","U","catalytic activity",1003689450000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"enzyme unit/10; U per 10; enzyme units per 10; enzymatic activity; enzyme activity; micromoles per minute; umol/min/10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10 billion","U/10*10","U/(10*10)","catalytic activity",1003689.45,[0,-1,0,0,0,0,0],"U/(1010)","chemical",true,null,null,1,false,false,1,"U per 10*10; enzyme units per 10*10; U per 10 billion; enzyme units; enzymatic activity; micromoles per minute per 10 billion; umol/min/10*10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per trillion","U/10*12","U/(10*12)","catalytic activity",10036.8945,[0,-1,0,0,0,0,0],"U/(1012)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*12; U per 10*12; enzyme units per 10*12; enzyme units per trillion; enzymatic activity; micromoles per minute per trillion; umol/min/10*12; umol per min per 10*12","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per million","U/10*6","U/(10*6)","catalytic activity",10036894500,[0,-1,0,0,0,0,0],"U/(106)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*6; U per 10*6; enzyme units per 10*6; enzyme units; enzymatic activity per volume; micromoles per minute per million; umol/min/10*6; umol per min per 10*6","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per billion","U/10*9","U/(10*9)","catalytic activity",10036894.5,[0,-1,0,0,0,0,0],"U/(109)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*9; U per 10*9; enzyme units per 10*9; enzymatic activity per volume; micromoles per minute per billion; umol/min/10*9; umol per min per 10*9","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per day","U/d","U/D","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/d","chemical",true,null,null,1,false,false,1,"U/dy; enzyme units per day; enzyme units; enzyme activity; enzymatic activity per time; micromoles per minute per day; umol/min/day; umol per min per day","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per deciliter","U/dL","U/DL","catalytic activity",100368945000000000000,[-3,-1,0,0,0,0,0],"U/dL","chemical",true,null,null,1,false,false,1,"U per dL; enzyme units per deciliter; decilitre; micromoles per minute per deciliter; umol/min/dL; umol per min per dL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per gram","U/g","U/G","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"U/g","chemical",true,null,null,1,false,false,1,"U/gm; U per gm; enzyme units per gram; micromoles per minute per gram; umol/min/g; umol per min per g","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per hour","U/h","U/HR","catalytic activity",2788026250000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/hr; U per hr; enzyme units per hour; micromoles per minute per hour; umol/min/hr; umol per min per hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per liter","U/L","U/L","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"U/L","chemical",true,null,null,1,false,false,1,"enzyme unit/liter; enzyme unit/litre; U per L; enzyme units per liter; enzyme unit per litre; micromoles per minute per liter; umol/min/L; umol per min per L","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per minute","U/min","U/MIN","catalytic activity",167281575000000,[0,-2,0,0,0,0,0],"U/min","chemical",true,null,null,1,false,false,1,"enzyme unit/minute; U per min; enzyme units; umol/min/min; micromoles per minute per minute; micromoles per min per min; umol","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per milliliter","U/mL","U/ML","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"U/mL","chemical",true,null,null,1,false,false,1,"U per mL; enzyme units per milliliter; millilitre; micromoles per minute per milliliter; umol/min/mL; umol per min per mL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per second","U/s","U/S","catalytic activity",10036894500000000,[0,-2,0,0,0,0,0],"U/s","chemical",true,null,null,1,false,false,1,"U/sec; U per second; enzyme units per second; micromoles per minute per second; umol/min/sec; umol per min per sec","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"micro international unit","u[IU]","U[IU]","arbitrary",0.000001,[0,0,0,0,0,0,0],"\u03bci.U.","chemical",true,null,null,1,false,true,0,"uIU; u IU; microinternational units","LOINC","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per liter","u[IU]/L","U[IU]/L","arbitrary",0.001,[-3,0,0,0,0,0,0],"(\u03bci.U.)/L","chemical",true,null,null,1,false,true,0,"uIU/L; u IU/L; uIU per L; microinternational units per liter; litre; ","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per milliliter","u[IU]/mL","U[IU]/ML","arbitrary",1,[-3,0,0,0,0,0,0],"(\u03bci.U.)/mL","chemical",true,null,null,1,false,true,0,"uIU/mL; u IU/mL; uIU per mL; microinternational units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"microequivalent","ueq","UEQ","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"\u03bceq","chemical",true,null,null,1,false,false,1,"microequivalents; 10^-6 equivalents; 10-6 equivalents","LOINC","Sub","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per liter","ueq/L","UEQ/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"\u03bceq/L","chemical",true,null,null,1,false,false,1,"ueq per liter; litre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per milliliter","ueq/mL","UEQ/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"\u03bceq/mL","chemical",true,null,null,1,false,false,1,"ueq per milliliter; millilitre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[true,"microgram","ug","UG","mass",0.000001,[0,0,1,0,0,0,0],"\u03bcg",null,false,"M",null,1,false,false,0,"mcg; micrograms; 10^-6 grams; 10-6 grams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"microgram per 100 gram","ug/(100.g)","UG/G","mass",1e-8,[0,0,0,0,0,0,0],"\u03bcg/g",null,false,"M",null,1,false,false,0,"ug/100gm; ug/100 gm; mcg; ug per 100g; 100 gm; mcg per 100g; micrograms per 100 grams","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per 24 hour","ug/(24.h)","UG/HR","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/24hrs; ug/24 hrs; mcg/24hrs; ug per 24hrs; mcg per 24hrs; 24 hrs; micrograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per 8 hour","ug/(8.h)","UG/HR","mass",3.472222222222222e-11,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/8hrs; ug/8 hrs; mcg/8hrs; ug per 8hrs; mcg per 8hrs; 8 hrs; micrograms per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per square foot (international)","ug/[sft_i]","UG/[SFT_I]","mass",0.000010763910416709721,[-2,0,1,0,0,0,0],"\u03bcg",null,false,"M",null,1,false,false,0,"ug/sft; ug/ft2; ug/ft^2; ug/sq. ft; micrograms; sq. foot; foot squared","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"microgram per day","ug/d","UG/D","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"\u03bcg/d",null,false,"M",null,1,false,false,0,"ug/dy; mcg/dy; ug per day; mcg; micrograms per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per deciliter","ug/dL","UG/DL","mass",0.009999999999999998,[-3,0,1,0,0,0,0],"\u03bcg/dL",null,false,"M",null,1,false,false,0,"ug per dL; mcg/dl; mcg per dl; micrograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per gram","ug/g","UG/G","mass",0.000001,[0,0,0,0,0,0,0],"\u03bcg/g",null,false,"M",null,1,false,false,0,"ug per gm; mcg/gm; mcg per g; micrograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per hour","ug/h","UG/HR","mass",2.7777777777777777e-10,[0,-1,1,0,0,0,0],"\u03bcg/h",null,false,"M",null,1,false,false,0,"ug/hr; mcg/hr; mcg per hr; ug per hr; ug per hour; micrograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per kilogram","ug/kg","UG/KG","mass",9.999999999999999e-10,[0,0,0,0,0,0,0],"\u03bcg/kg",null,false,"M",null,1,false,false,0,"ug per kg; mcg/kg; mcg per kg; micrograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per kilogram per 8 hour","ug/kg/(8.h)","(UG/KG)/HR","mass",3.472222222222222e-14,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/h",null,false,"M",null,1,false,false,0,"ug/kg/8hrs; mcg/kg/8hrs; ug/kg/8 hrs; mcg/kg/8 hrs; ug per kg per 8hrs; 8 hrs; mcg per kg per 8hrs; micrograms per kilograms per 8 hours; shift","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per day","ug/kg/d","(UG/KG)/D","mass",1.1574074074074072e-14,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/d",null,false,"M",null,1,false,false,0,"ug/(kg.d); ug/kg/dy; mcg/kg/day; ug per kg per dy; 24 hours; 24hrs; mcg; kilograms; microgram per kilogram and day","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per hour","ug/kg/h","(UG/KG)/HR","mass",2.7777777777777774e-13,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/h",null,false,"M",null,1,false,false,0,"ug/(kg.h); ug/kg/hr; mcg/kg/hr; ug per kg per hr; mcg per kg per hr; kilograms","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per minute","ug/kg/min","(UG/KG)/MIN","mass",1.6666666666666664e-11,[0,-1,0,0,0,0,0],"(\u03bcg/kg)/min",null,false,"M",null,1,false,false,0,"ug/kg/min; ug/kg/min; mcg/kg/min; ug per kg per min; mcg; micrograms per kilograms per minute ","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per liter","ug/L","UG/L","mass",0.001,[-3,0,1,0,0,0,0],"\u03bcg/L",null,false,"M",null,1,false,false,0,"mcg/L; ug per L; mcg; micrograms per liter; litre ","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per liter per 24 hour","ug/L/(24.h)","(UG/L)/HR","mass",1.1574074074074074e-8,[-3,-1,1,0,0,0,0],"(\u03bcg/L)/h",null,false,"M",null,1,false,false,0,"ug/L/24hrs; ug/L/24 hrs; mcg/L/24hrs; ug per L per 24hrs; 24 hrs; day; dy mcg; micrograms per liters per 24 hours; litres","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per square meter","ug/m2","UG/M2","mass",0.000001,[-2,0,1,0,0,0,0],"\u03bcg/(m2)",null,false,"M",null,1,false,false,0,"ug/m^2; ug/sq. m; mcg/m2; mcg/m^2; mcg/sq. m; ug per m2; m^2; sq. meter; mcg; micrograms per square meter; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"microgram per cubic meter","ug/m3","UG/M3","mass",0.000001,[-3,0,1,0,0,0,0],"\u03bcg/(m3)",null,false,"M",null,1,false,false,0,"ug/m^3; ug/cu. m; mcg/m3; mcg/m^3; mcg/cu. m; ug per m3; ug per m^3; ug per cu. m; mcg; micrograms per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per milligram","ug/mg","UG/MG","mass",0.001,[0,0,0,0,0,0,0],"\u03bcg/mg",null,false,"M",null,1,false,false,0,"ug per mg; mcg/mg; mcg per mg; micromilligrams per milligram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per minute","ug/min","UG/MIN","mass",1.6666666666666667e-8,[0,-1,1,0,0,0,0],"\u03bcg/min",null,false,"M",null,1,false,false,0,"ug per min; mcg/min; mcg per min; microminutes per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per milliliter","ug/mL","UG/ML","mass",1,[-3,0,1,0,0,0,0],"\u03bcg/mL",null,false,"M",null,1,false,false,0,"ug per mL; mcg/mL; mcg per mL; micrograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per millimole","ug/mmol","UG/MMOL","mass",1.660540186674939e-27,[0,0,1,0,0,0,0],"\u03bcg/mmol",null,false,"M",null,1,false,false,-1,"ug per mmol; mcg/mmol; mcg per mmol; micrograms per millimole","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"microgram per nanogram","ug/ng","UG/NG","mass",999.9999999999999,[0,0,0,0,0,0,0],"\u03bcg/ng",null,false,"M",null,1,false,false,0,"ug per ng; mcg/ng; mcg per ng; micrograms per nanogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[false,"microkatal","ukat","UKAT","catalytic activity",602213670000000000,[0,-1,0,0,0,0,0],"\u03bckat","chemical",true,null,null,1,false,false,1,"microkatals; ukats","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"microliter","uL","UL","volume",1e-9,[3,0,0,0,0,0,0],"\u03bcL","iso1000",true,null,null,1,false,false,0,"microliters; microlitres; mcl","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"microliter per 2 hour","uL/(2.h)","UL/HR","volume",1.388888888888889e-13,[3,-1,0,0,0,0,0],"\u03bcL/h","iso1000",true,null,null,1,false,false,0,"uL/2hrs; uL/2 hrs; mcg/2hr; mcg per 2hr; uL per 2hr; uL per 2 hrs; microliters per 2 hours; microlitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"microliter per hour","uL/h","UL/HR","volume",2.777777777777778e-13,[3,-1,0,0,0,0,0],"\u03bcL/h","iso1000",true,null,null,1,false,false,0,"uL/hr; mcg/hr; mcg per hr; uL per hr; microliters per hour; microlitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[true,"micrometer","um","UM","length",0.000001,[1,0,0,0,0,0,0],"\u03bcm",null,false,"L",null,1,false,false,0,"micrometers; micrometres; \u03bcm; microns","LOINC","Len","Clinical","Unit of length that is usually used in tests related to the eye",null,null,null,null,false],[true,"microns per second","um/s","UM/S","length",0.000001,[1,-1,0,0,0,0,0],"\u03bcm/s",null,false,"L",null,1,false,false,0,"um/sec; micron/second; microns/second; um per sec; micrometers per second; micrometres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"micromole","umol","UMOL","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"\u03bcmol","si",true,null,null,1,false,false,1,"micromoles; umols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 2 hour","umol/(2.h)","UMOL/HR","amount of substance",83640787500000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/2hrs; umol/2 hrs; umol per 2 hrs; 2hrs; micromoles per 2 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 24 hour","umol/(24.h)","UMOL/HR","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/24hrs; umol/24 hrs; umol per 24 hrs; per 24hrs; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 8 hour","umol/(8.h)","UMOL/HR","amount of substance",20910196875000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/8hr; umol/8 hr; umol per 8 hr; umol per 8hr; umols per 8hr; umol per 8 hours; micromoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per day","umol/d","UMOL/D","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"\u03bcmol/d","si",true,null,null,1,false,false,1,"umol/day; umol per day; umols per day; umol per days; micromoles per days; umol/24hr; umol/24 hr; umol per 24 hr; umol per 24hr; umols per 24hr; umol per 24 hours; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per deciliter","umol/dL","UMOL/DL","amount of substance",6.0221367e+21,[-3,0,0,0,0,0,0],"\u03bcmol/dL","si",true,null,null,1,false,false,1,"micromole/deciliter; micromole/decilitre; umol per dL; micromoles per deciliters; micromole per decilitres","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per gram","umol/g","UMOL/G","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"\u03bcmol/g","si",true,null,null,1,false,false,1,"micromole/gram; umol per g; micromoles per gram","LOINC","SCnt; Ratio","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per hour","umol/h","UMOL/HR","amount of substance",167281575000000,[0,-1,0,0,0,0,0],"\u03bcmol/h","si",true,null,null,1,false,false,1,"umol/hr; umol per hr; umol per hour; micromoles per hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per kilogram","umol/kg","UMOL/KG","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"\u03bcmol/kg","si",true,null,null,1,false,false,1,"umol per kg; micromoles per kilogram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter","umol/L","UMOL/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"\u03bcmol/L","si",true,null,null,1,false,false,1,"micromole/liter; micromole/litre; umol per liter; micromoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter per hour","umol/L/h","(UMOL/L)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(\u03bcmol/L)/h","si",true,null,null,1,false,false,1,"umol/liter/hr; umol/litre/hr; umol per L per hr; umol per liter per hour; micromoles per liters per hour; litre","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min; umol/L/h is a derived unit of enzyme units","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milligram","umol/mg","UMOL/MG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"\u03bcmol/mg","si",true,null,null,1,false,false,1,"micromole/milligram; umol per mg; micromoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute","umol/min","UMOL/MIN","amount of substance",10036894500000000,[0,-1,0,0,0,0,0],"\u03bcmol/min","si",true,null,null,1,false,false,1,"micromole/minute; umol per min; micromoles per minute; enzyme units","LOINC","CAct","Clinical","unit for the enzyme unit U = umol/min","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per gram","umol/min/g","(UMOL/MIN)/G","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(\u03bcmol/min)/g","si",true,null,null,1,false,false,1,"umol/min/gm; umol per min per gm; micromoles per minutes per gram; U/g; enzyme units","LOINC","CCnt","Clinical","unit for the enzyme unit U = umol/min. umol/min/g = U/g","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per liter","umol/min/L","(UMOL/MIN)/L","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(\u03bcmol/min)/L","si",true,null,null,1,false,false,1,"umol/min/liter; umol/minute/liter; micromoles per minutes per liter; litre; enzyme units; U/L","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/min/L = U/L","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter","umol/mL","UMOL/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"\u03bcmol/mL","si",true,null,null,1,false,false,1,"umol per mL; micromoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter per minute","umol/mL/min","(UMOL/ML)/MIN","amount of substance",1.00368945e+22,[-3,-1,0,0,0,0,0],"(\u03bcmol/mL)/min","si",true,null,null,1,false,false,1,"umol per mL per min; micromoles per milliliters per minute; millilitres","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/mL/min = U/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per millimole","umol/mmol","UMOL/MMOL","amount of substance",0.001,[0,0,0,0,0,0,0],"\u03bcmol/mmol","si",true,null,null,1,false,false,0,"umol per mmol; micromoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per mole","umol/mol","UMOL/MOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"\u03bcmol/mol","si",true,null,null,1,false,false,0,"umol per mol; micromoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per micromole","umol/umol","UMOL/UMOL","amount of substance",1,[0,0,0,0,0,0,0],"\u03bcmol/\u03bcmol","si",true,null,null,1,false,false,0,"umol per umol; micromoles per micromole","LOINC","Srto; SFr; EntSRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"microOhm","uOhm","UOHM","electric resistance",0.001,[2,-1,1,0,0,-2,0],"\u03bc\u03a9","si",true,null,null,1,false,false,0,"microOhms; \xb5\u03a9","LOINC","","Clinical","unit of electric resistance","V/A","V/A","1",1,false],[true,"microsecond","us","US","time",0.000001,[0,1,0,0,0,0,0],"\u03bcs",null,false,"T",null,1,false,false,0,"microseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"micro enzyme unit per gram","uU/g","UU/G","catalytic activity",10036894500,[0,-1,-1,0,0,0,0],"\u03bcU/g","chemical",true,null,null,1,false,false,1,"uU per gm; micro enzyme units per gram; micro enzymatic activity per mass; enzyme activity","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per liter","uU/L","UU/L","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"\u03bcU/L","chemical",true,null,null,1,false,false,1,"uU per L; micro enzyme units per liter; litre; enzymatic activity per volume; enzyme activity ","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per milliliter","uU/mL","UU/ML","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"\u03bcU/mL","chemical",true,null,null,1,false,false,1,"uU per mL; micro enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"microvolt","uV","UV","electric potential",0.001,[2,-2,1,0,0,-1,0],"\u03bcV","si",true,null,null,1,false,false,0,"microvolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false]]}}')},4147:ye=>{"use strict";ye.exports=JSON.parse('{"name":"matchboxv3","version":"3.2.1","license":"MIT","scripts":{"ng":"ng","start":"ng serve","build":"ng build --configuration production --base-href /matchboxv3/","test":"ng test","test-ci":"ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox --code-coverage","lint":"ng lint","e2e":"ng e2e"},"private":true,"dependencies":{"@angular/animations":"^13.1.1","@angular/common":"^13.1.1","@angular/core":"^13.1.1","@angular/forms":"^13.1.1","@angular/material":"^13.1.1","@angular/platform-browser":"^13.1.1","@angular/platform-browser-dynamic":"^13.1.1","@angular/router":"^13.1.1","@ngx-translate/core":"^11.0.1","@ngx-translate/http-loader":"^4.0.0","@types/jasmine":"^3.6.9","@types/pako":"^1.0.3","ace-builds":"^1.4.14","angular-oauth2-oidc":"^13.0.1","browserify-zlib":"^0.2.0","core-js":"^2.6.2","debug":"^4.3.1","fhir-kit-client":"1.9.2","fhirpath":"^2.10.2","jasmine":"^3.7.0","js-base64":"^3.7.2","js-untar":"^2.0.0","ngx-highlightjs":"^4.1.3","pako":"^2.0.4","rxjs":"^6.6.7","tslib":"^2.0.0","uuid":"^8.3.2","yarn":"^1.22.17","zone.js":"^0.11.4"},"devDependencies":{"@angular-devkit/build-angular":"^13.1.2","@angular-eslint/builder":"13.0.0-alpha.1","@angular-eslint/eslint-plugin":"13.0.0-alpha.1","@angular-eslint/eslint-plugin-template":"13.0.0-alpha.1","@angular-eslint/schematics":"13.0.0-alpha.1","@angular-eslint/template-parser":"13.0.0-alpha.1","@angular/cli":"^13.1.2","@angular/compiler-cli":"^13.1.1","@angular/language-service":"^13.1.1","@types/debug":"^4.1.5","@types/node":"^10.12.18","@types/ramda":"^0.26.44","@typescript-eslint/eslint-plugin":"5.3.0","@typescript-eslint/parser":"5.3.0","eslint":"^8.2.0","husky":"^1.3.1","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","json-patch":"^0.7.0","karma":"~6.3.1","karma-chrome-launcher":"~3.1.0","karma-cli":"~2.0.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","prettier":"2.2.1","pretty-quick":"^1.10.0","protractor":"~7.0.0","ts-node":"~7.0.1","tslint":"~6.1.0","typescript":"~4.5.4"},"browser":{"fs":false,"os":false,"path":false,"zlib":false},"prettier":{"singleQuote":true,"trailingComma":"es5"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}}}')}},ye=>{ye(ye.s=4431)}]); \ No newline at end of file